Boolean Aglebra / Canonical SOP form

February 16th, 2010

Got tired of doing these by hand for classes so I made a little program… VERY basic, only handles one missing variable, but it orders them in terms of min terms and multiplies them out properly… perhaps ill generalize it more the N terms and make a little web service out of it….

Epic magic the gathering: online game

January 9th, 2010

I had over 100 elves… he was being kept alive by clerics and two enchantments … I lost from the timer :) .

tribal

Random Stuff

January 3rd, 2010

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

C++ not reading in integers: Windows vs Mac error?

November 6th, 2009

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?

Small Updates

October 16th, 2009

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

A collection of shell scripts that you run once to setup a bare metal server for development or production.
mmo_fu

A rails plugin to interact with MMO websites like: wow armory, lotro armory, etc.

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.

And I’ll leave on this note:

Servly – What I’ve been busy with…

September 30th, 2009

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:

servly-overviewservly-show

Apple jokes…

September 7th, 2009

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

Leapord -> Snow Leapord MySQL Issue

September 5th, 2009

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

August 29th, 2009

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

Lighttpd + mod_magnet on CentOS (64 bit)

August 18th, 2009

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

© 2008 Josh Rendek.