Servly is getting closer and closer to launch, I’ll provide more information as soon as it goes live….
For now I got a camera (finally) for Christmas and started taking some random photos…. I also managed to drop my iPhone… it still works so hopefully I wont have to replace it for a while…
![]() |
| January Random |
Well I was doing some homework today in XCode and ran across a strange error…
Assume the first line of the file is an integer, lets say 127
ifstream inFile; int number; inFile >> number;
You would think, on both windows and mac this would store 127 in number.
Only on windows. On my mac it would read in 0 as the value.
On mac (specifically in xcode) to get that number…
ifstream inFile; int num; string temp_num; inFile >> temp_num; num = atoi(temp_num.c_str());
Interesting little bug, or perhaps design choice?
Let me know if you notice anything broken or borked… just moved the blog to a new server.
Since my last post I’ve added a few new things to my github account… one is a mmorpg rails plugin and another is a server automator for fresh installs to get them production/development ready.
Server Setup Fu
Servly is also still chugging a long and is going to be offered as SaaS — I’ll post more information about how to sign up once we get closer to launching it.
I originally wrote Servly to be a service where people would register and have their own personal accounts on a server. I’ve redesigned this and done a 180 and plan on making it a solution hosted by whoever uses it on their own hardware (although I may release a shared version for people to use as a software as a service… or may only release it as that, not sure yet).
There’s been a lot of work that has gone into this and it’s still quite a bit from being done but it has a lot of nice features such as aggregate overviews of all servers as well as a network graph (easily pick up on incoming DDOS’s graphically and respond instantly).
Let me know if you have any feature ideas!
Preview below:
This always cracks me up whenever I hit “Get Info” for a PC….BSOD!

Well I was going to write a really long blog post about this but others have already done a really good job. I had to copy all my innodb files over (when you do, make sure permissions are right) and do a pristine gem update but most of it was pretty painless…
Recommended reading:
http://afreshcup.com/2009/09/02/migrating-to-snow-leopard-for-rails-development-a-definitive-guide/
http://frozenplague.net/2009/08/snow-leopard-rubyrails-developer-setup/
A mixture of both and a little bit of tinkering on my own managed to get my development environment back to sanity.
Over all though I’d say the upgrade process for the actual OS worked flawlessly…. pretty much two buttons to click, sit back and watch. Kudos to Apple.
Just spent the better portion of my day fixing a buggered PHP installation…
The magic line:
–with-mysql –enable-shmop –enable-track-vars –enable-sockets –enable-sysvsem –enable-sysvshm –enable-magic-quotes –enable-mbstring –with-curl –with-mcrypt –with-freetype-dir=/usr –with-exec-dir=/usr/bin –with-mhash=shared –with-pear=/usr/share/pear –with-zlib –with-openssl –with-xml –enable-gd-native-ttf –with-png –with-zlib –with-zlib-dir=/usr –with-jpeg-dir=/usr –with-png-dir=/usr –with-gd=/usr
^^ MAKE SURE –with-gd=/usr is at THE END
After about an hour of tinkering around on google and in the terminal here is what you need to do:
wget http://www.lua.org/ftp/lua-5.1.2.tar.gz tar xfz lua-5.1.2.tar.gz cd lua-5.1.2 nano src/Makefile
Replace:
CFLAGS= -O2 -Wall $(MYCFLAGS)
With:
CFLAGS= -O2 -Wall -fPIC $(MYCFLAGS)
make linux install wget http://luaforge.net/frs/download.php/2384/md5-1.0.2.tar.gz tar xfz md5-1.0.2.tar.gz cd md5-1.0.2 make make install cd .. wget http://luaforge.net/frs/download.php/1678/luazlib-0.0.1.rar wget wget http://www.rarlab.com/rar/unrar-3.7.7-centos.gz gunzip unrar-3.7.7-centos.gz chmod +x unrar-3.7.7-centos ./unrar-3.7.7-centos x luazlib-0.0.1.rar cd luazlib-0.0.1 make make install export LUA_CFLAGS="-I/usr/local/include" export LUA_LIBS="-L/usr/local/lib -llua" cd LIGHTTPD_DIRECTORY ./configure -with-lua make make install
All done!
Thanks to:
http://gadelkareem.com/2007/09/17/dynamic-content-caching-using-lighty-mod_magnet-lua/ && http://www.verlihub-project.org/doku.phpid=howto_install_lua_library_on_64_bit
I wrote this to pull from QuotationsPage.com and post the quote of the day to twitter in Python. Download it, edit the username/password line and set it up in cron to run once a day.
View source: http://bluescripts.net/quote-of-the-day-tweeter/