{ Josh Rendek }

<3 Go & Kubernetes

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

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…

Interesting little bug, or perhaps design choice?

Small Updates

Oct 16, 2009 - 1 minutes

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.

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.

Servly - What I've been busy with...

Sep 30, 2009 - 1 minutes

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:

Apple jokes...

Sep 7, 2009 - 1 minutes

This always cracks me up whenever I hit “Get Info” for a PC….BSOD!

Leapord -> Snow Leapord MySQL Issue

Sep 5, 2009 - 1 minutes

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.

XPM not being found on php configure

Aug 29, 2009 - 1 minutes

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

Was playing around with using the loopback devices to mount some OS images on CentOS and following the losetup followed by a mount command would indeed mount the image, but umount wouldn’t unmount it and would leave it stagnant, leaving me with this error:

Interestingly enough though the lomount command

and then using umount to unmount the mountfolder would unmount the loopback device properly and free it for re-use.

Hope this helps someone!

Gem/Rails CRC Error

Jul 14, 2009 - 1 minutes

After about an hour on the rails IRC and talking with a friend over instant messaging about possible issues it ended up boiling down to openssl and openssl-dev not being installed. Install those but you’re not done yet.

cd to your ruby directory then go into the ext directory, once in there cd openssl; ruby extconf.rb; make; make install, cd ../; cd zlib; ruby extconf.rb; make; make install

And the shebang line: gem install rails –verbose and you should be all good to go now :)

Hope this helps someone else as google was pretty empty with any “resolved” solutions.