BlogFSCKVPS: My Thoughts (hint: It’s Great!)

I was looking around for a nice and cheap vps company that offered a decent amount of RAM at a good price. I was hoping for about 128mb of RAM for $7-$8 USD. After many weeks of searching I found FSCKVPS. They offer a 512mb ram server for $10. I was stunned. It was perfect for me. And right now you can pick it up for $7.46 a month for life using the coupon 25OFF at checkout.

Benefits

Performance is great! PHP runs 5x as fast with similar configuration on my VPS than on my personal computer (3ghz AMD 5000+ Black Edition, 4GB RAM, nVidia 9800 GTX).

This works really well for game servers surprisingly. I can host a 24 person Team Fortress 2 server and still serve up pages with speed.

Support is awesome! All of my tickets have been answered in less than 24 hours and most in less than 12 hours. They will install any OS for you and soon you will be able to use a web admin panel to reboot the server, reinstall the OS and you can currently request for a custom OS to be installed.

I recommend CentOS 5.3 64-bit. It runs great!

You can setup a VNC server as per these directions. I recommend using the following code to make for a much nicer VNC experience (you may need to change 1400×900 to be something smaller than your screen):
vncserver :20 -depth 32 -geometry 1400x900

Cons

Nothing is setup except for SSH. You have to install PHP, Apache and MySQL and anything else from scratch, so you need to be familiar with the command line. XAMPP works really well for a quick fix, but your really want PureFTPd instead of the ProFTPd bundled with XAMPP, but that setup is a whole other can of worms.

My first published tutorial on ThemeForest

I had my first tutorial published on ThemeForest today! I am very excited because I think it will help many beginners in the world of jQuery.

Link: http://blog.themeforest.net/tutorials/7-things-i-wish-i-had-known-about-jquery/

Another Great Reason Why All Versions of IE Are Terrible

Not only does IE render things bad, it renders inconsistently. For example, I am working on a design. I go through my typical program of checking browser compatibility.

This is what it SHOULD look like (FF3, click to enlarge):
ff3

It works perfectly in IE8 (click to enlarge):
ie8
So far so good.

I open IE7 in a virtual machine. I am dumbfounded. It looks terrible:
ie8

I need IE6 Compatibility for this project so I was dreading opening up the IE6 virtual machine. It looks PERFECT (well, there wasn’t PNG transparency and the navigation was 1 pixel off, but that’s not bad!):
ie6

Problems with cl_init.lua

I was writing a gamemode for Garry’s Mod and I came across a odd problem. Suddenly cl_init.lua was seemingly not being run on the client, even though it downloaded.

I spent hours doing a variety of things that were of no use. But the solution is simple. I thought that the client just wasn’t executing or running it.

When you use sv_downloadurl, for some reason it looks for the LUA cache files there and download the 404 error page, which obviously isn’t LUA.

However your don’t upload cl_init.lua

You upload your cache/dua folder and it works perfectly. You have to do this every time you change the gamemode or addons because this is the LUA cache so you should only really use it when you have gotten your gamemode/addons just the way you like it. Remember that you have to let the server start, then upload the cache because the cache is generated when the server starts.

jQuery Plugin: Keycode jQuery Plugin

Sick of looking up what the charcode for escape is so that you can close your dialog box with escape. Well I have the perfect medicine, a new plugin called Keycodes.

Read the rest of this entry »

imageModifier: a PHP Class for manipulating images

imageModifer is a PHP class that allows you to crop and resize images. The following formats are supported:

  • PNG
  • JPG
  • GIF

This class requires PHP 5 and GD2 Library (GD2 with GIF support if you want to modify GIF images).

Read the rest of this entry »

jQuery Plugin: Tooltips Revisited

I made a few changes to my Tooltips plugin today. See the change log below. Download here.

Changelog

  • v0.1 (6/3/2009)
    • Initial Release
  • v0.2 (6/4/2009)
    • Made sure the box didn’t overflow the side of the screen.
    • Made code more efficent.

jQuery Plugin: Tooltips

Edit: SEE THE UPDATED PLUGIN HERE.

I know multiple Tooltip plugins already exist, but they didn’t do exactly what I wanted them to: be relative to the mouse. I found some non-jQuery javascript that did what I wanted, but a jQuery plugin is what I wanted. So I decided to write my own. Read the rest of this entry »