Category: Programming

Looking Back 2024

2024 is the inflation year and is the year I turned 40. Everything went up this year. GST went from 8% to 9% in Singapore. In 2023, GST was increased from 7% to 8%. In hindsight, it might be better to increase from 7% to 9% straightaway rather than break it up into 2 years. The increase in GST twice worsens the inflation.

Gadget
Probably the most interesting gadget I bought in 2024 got to be the Ray-Ban Meta Wayfarer.

· 0 Views · Comments

Microsoft //Build/ Singapore 2015

Microsoft //Build/ Singapore 2015 took place in Singapore last Thursday (28th May 2015) at Resorts World Sentosa.

For the unaware, Microsoft Build is Microsoft’s developer conference, similar to Google’s I/O and Apple’s WWDC.

Microsoft Build Singapore 2015 Main Keynote Speaker - Giorgio Sardo
Microsoft Build Singapore 2015 Main Keynote Speaker – Giorgio Sardo, Senior Director of the Developer Experience and Evangelism Group in Microsoft

· 0 Views · Comments

Getting Real IP For nginx & Blocking IP on HAProxy

In Tech in Asia, we are using HAProxy as our load balancer and the request is passed on to either of the two web servers running on nginx to process the request. Because the request always comes from the load balancer, under the access logs, the IP will always be the load balancer IP.

Our HAProxy uses the setting option forwardfor which will forward the original client’s IP under the “X-Forwarded-For” header.

HAProxy
HAProxy

· 0 Views · Comments

CDN Serving Dynamic PHP Pages

Mark Jaquith‘s presentation on Confident Commits, Delightful Deploys brought up something which I didn’t thought of, “CDN proxies everything including dynamic php pages”.

In his example, he pointed out cdn.wpengine.com and wpengine.com, cdn.page.ly and page.ly, cdn.zippykid.com and zippykid.com are all serving the same content with their CDN counterpart.

EdgeRules
EdgeRules

· 0 Views · Comments