Without too much effort I was able to find multiple search results that said HAProxy could direct traffic according to domain name. Unfortunately I was hard pressed to find any example configurations demonstrating that functionality. Turns out it is in section 7.7 of the documentation.If we wanted to direct traffic for foo.com and bar.com to different servers we could do so as follows:frontend http_proxy bind 192.168.0.1:80 acl is_foo hdr_dom(host) -i foo acl is_bar hdr_dom(host) -i bar ... Read Full Story
Without too much effort I was able to find multiple search results that said HAProxy could direct traffic according to domain name. Unfortunately I was hard pressed to find any example configurations demonstrating that functionality. Turns out it is in section 7.7 of the documentation.If we wanted to direct traffic for foo.com and bar.com to different servers we could do so as follows:frontend http_proxy bind 192.168.0.1:80 acl is_foo hdr_dom(host) -i foo acl is_bar hdr_dom(host) -i bar ... Read Full Story
I found the "Dynamo Paper" by Amazon to be interesting. In particular I liked the idea of small services. Nothing new, but I liked the concept and wanted to play with it. The result was the 71 line SQS Mailer, available on Github.For this experiment the code polls an Amazon SQS queue. If there are messages in that queue, it retrieves them, parses them, and sends them out as emails via SMTP. If there are no messages waiting, it just sleeps for 5 seconds and tries again. So if you ran mul... Read Full Story
I found the "Dynamo Paper" by Amazon to be interesting. In particular I liked the idea of small services. Nothing new, but I liked the concept and wanted to play with it. The result was the 71 line SQS Mailer, available on Github.For this experiment the code polls an Amazon SQS queue. If there are messages in that queue, it retrieves them, parses them, and sends them out as emails via SMTP. If there are no messages waiting, it just sleeps for 5 seconds and tries again. So if you ran mul... Read Full Story
Do you spend significant time "off-hours" on tech projects?If so, are you driven by passion or fear of becoming irrelevant?Whether driven by passion or fear, does the amount of time involved negatively impact other areas of your life?Would be interested to hear what people think.
Read Full Story
I've been setting up my fresh Snow Leopard installation today.I followed the guide from Hivelogic: Compiling Mercurial on Snow Leopard. The installation completed without issue and 'which hg' showed everything was in place.However, when I tried to issue an 'hg' command the following error popped up:"abort: couldn't find mercurial libraries"Google came to the rescue, and revealed these tweets:https://wincent.com/twitter/155https://wincent.com/twitter/156For Snow Leopard, I just needed:export ... Read Full Story
I've been setting up my fresh Snow Leopard installation today.I followed the guide from Hivelogic: Compiling Mercurial on Snow Leopard. The installation completed without issue and 'which hg' showed everything was in place.However, when I tried to issue an 'hg' command the following error popped up:"abort: couldn't find mercurial libraries"Google came to the rescue, and revealed these tweets:https://wincent.com/twitter/155https://wincent.com/twitter/156For Snow Leopard, I just needed:export ... Read Full Story
If you have any doubt that the Internet changes the dynamics of "business as usual", take a moment to consider the case of Mr. Dave Carroll.According to his side of the story, while flying United Airlines his guitar was broken. After 1 year of frustrated attempts to receive compensation for his loss he was told "No".5 to 10 years ago that would have been the end of the story.Not so today.Dave Carroll told United Airlines that he was going to write 3 songs about the incident and produce video... Read Full Story
If you have any doubt that the Internet changes the dynamics of "business as usual", take a moment to consider the case of Mr. Dave Carroll.According to his side of the story, while flying United Airlines his guitar was broken. After 1 year of frustrated attempts to receive compensation for his loss he was told "No".5 to 10 years ago that would have been the end of the story.Not so today.Dave Carroll told United Airlines that he was going to write 3 songs about the incident and produce video... Read Full Story
This last week has seen a few posts on the necessity, or lack thereof, for good touch typing skills.We Are Typists First, Programmers Second - Jeff AtwoodIs Typing A Necessity For Programming? - Abhijit NadgoudaI originally was going to say something along the lines of "I think it depends on how you view programming." I was then going to differentiate between whether you just view programming as a job (where you are looking to scrape by with minimum investment), or a skill/craft/art to be cu... Read Full Story