How to install Ruby on Rails in Windows


I recently started playing around with Ruby and Rails. I haven’t done much with it yet short of these CodeSchool courses, but it seems really powerful. I did run into a bit of a hiccup when installing it, though, so I thought I’d write a quick post on how to get it installed in windows.

Read the rest of this entry »

How to get data from the server with JSON/jQuery


In web development, sending data back and forth between the server is a common occurrence. When using jQuery, sending the data is pretty straightforward, however receiving information back from the server is not so simple. You could receive data in different formats (ie. JOSN or HTML), the user may have lost authentication and are no longer permitted to access the page or you may want to send back different information depending on whether or not the task was successful. Over the years, I’ve developed a system for handling these situations that utilizes jQuery and JSON. It’s something that I roll out enough that even if noone finds this post, it’ll help me to have the basic code posted where I can easily access it. So, I’ve decided to document it here.

You can find the code after the break:

Read the rest of this entry »

New Theme & WordPress Child Themes


After several years, I’ve updated SystemRoot’s theme! Believe it or not, the old theme was from WordPress version 1.6. I picked this design from the WordPress theme search utility. It’s called “SnC Mono” and it was designed by Three Circles.

Naturally, I wanted to update the settings of it a bit more than it allowed by default so I did a little searching about an easy way to edit themes without necessarily breaking them. It turns out that WordPress supports this great feature call “Child Themes” (linked to WordPress docs). It allows you to create a separate set of files from your theme that you can use to override certain parts of it. You can override whole pages/files or just some CSS styles.

So, here’s the basic idea for setting up your own child theme…

Read the rest of this entry »

How to Fix MySQL Error 2006: “MySQL server has gone away for the query”


I use Mantis at work (and at play) to manage bug and issue tracking. If you’re not familiar with it, I highly recommend checking it out.

So recently, I wanted to attach a large file (10MB wowzers!) to one of my bugs and received an error.

Read the rest of this entry »

How to find the systemroot (in C#, C++ and Java)


Naturally, a lot of my search engine traffic comes here from searching for terms like “system root in &ltinsert language here>” or “%systemroot%”. So, to live up to my domain, and you Googler’s expectations, I’ve decided to write a post about how to get the path to the system root in a few languages. If you know more, drop a comment and I’ll add it here.

Read the rest of this entry »

Latest Posts



Post Calendar

August 2014
M T W T F S S
« Jun    
 123
45678910
11121314151617
18192021222324
25262728293031