Archive for the ‘Uncategorized’ Category

StarCraft II Login screen not showing up

Wednesday, August 25th, 2010

Couldn’t figure out why my Starcraft II wasn’t letting me login (or show up) on my desktop (but was on laptop): Go ~ Documents / Blizzard / Starcraft II

Make a new folder called tmp (or just move it all to the trash) and move the folders and everything in there inside that folder. Load the game and all your settings should be reset and the login screen should show up again.

Random Error

Tuesday, August 10th, 2010

Mind you it was 2 in the morning when I did this, but if you make a rails controller action called send (ie: foocontroller # send) and try to work on the other pages (#index) for example, you’ll get a wrong number of arguments (1 for 0) error…. rename your send method and problem solved.

Puppies!

Wednesday, July 7th, 2010

These are my two new puppies: Spunky (golden) and Licorice (black) — they’re both Lab/Retriever/Terrier mixes that I rescued:

DSCN5441

Simple alias for .bash_rc and script/generate

Saturday, May 29th, 2010

Just add this to your bash_rc … quick easy way to access script/generate

alias rg='script/generate'

Boolean Aglebra / Canonical SOP form

Tuesday, 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….

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

Friday, 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?

Apple jokes…

Monday, September 7th, 2009

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

Leapord -> Snow Leapord MySQL Issue

Saturday, 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

Saturday, 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

Quote of the Day Tweeter

Saturday, August 15th, 2009

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.

Download Here

View source: http://bluescripts.net/quote-of-the-day-tweeter/

© 2008 Josh Rendek.