Tales of an IT Nobody

devbox:~$ iptables -A OUTPUT -j DROP

Configuring Aptana/Eclipse with PHPUnit – Part 4 of 4 June 25, 2009

No Comments on Configuring Aptana/Eclipse with PHPUnit – Part 4 of 4
Categories: php

Configuring Aptana/Eclipse with PHPUnit – Part 3 of 4

No Comments on Configuring Aptana/Eclipse with PHPUnit – Part 3 of 4
Categories: php programming

Configuring Aptana/Eclipse with PHPUnit – Part 2 of 4

No Comments on Configuring Aptana/Eclipse with PHPUnit – Part 2 of 4
Categories: php programming

Configuring Aptana/Eclipse with PHPUnit – Part 1 of 4

As mentioned in the video, you can obtain the phpunit file for extraction here: http://pear.phpunit.de/get/

2 Comments on Configuring Aptana/Eclipse with PHPUnit – Part 1 of 4
Categories: php programming

Using PHP_CodeSniffer June 12, 2009

INSTALLATION
There’s many ways to install PHP_CodeSniffer.
You could try (on debian-base) apt-get install php-codesniffer – or if you have pear installed you could try pear install PHP_CodeSniffer. Or lastly, the way I like to do it, manually.

I like to perform a manual installation on tools like this so I know where to find them and manipulate them in the future.

Manual install:


Next, you need to replace the php_bin path in the phpcs file with the path to the php binary:

Test it out with:
./phpcs /path/to/some/phpfile.php

Now to finalize the install, there’s many places you could place the binary, I personally prefer to camp the working files like this in /usr/local/bin

No Comments on Using PHP_CodeSniffer
Categories: Uncategorized

Very in-depth explanation of *nix filesystem

Came across this while reading about build integration for development and thought I’d make a note about it. It’s much more than just a ‘user files go in the /home/’ directory sheet – it’s everything you could imagine regarding why *nix systems are laid out like they are. Link:
http://www.pathname.com/fhs/

No Comments on Very in-depth explanation of *nix filesystem
Categories: linux servers

Tuning apache directory indexes June 11, 2009

Are you a fan of Options +Indexes like I am?

There’s a few tweaks you can apply to this feature to make it behave more like you want.
Throw a gander at the IndexOptions directive documentation for fine-details.

You can place these in a site configuration, or if allowed, in a .htaccess file.

Notable options:

Make sure you pay attention when using the FancyIndexing option since it resets directives before it. e.g:

No Comments on Tuning apache directory indexes
Categories: apache servers

VirtualBox Rocks! June 9, 2009

If you’re looking for a lightweight virtualization solution – for something simple like running Ubuntu from within Windows look no further.

VirtualBox has everything a growing boy/gal needs. I asked a co-worker if he knew of anything better than MS Virtual PC, but not as heavy as VMWare and he mentioned VirtualBox to me.

I quickly downloaded it and was suprised as to how lightweight and perfect of a solution it was.

Quick notes of awesome-ness (At least through my eyes from Vista host to my Ubuntu guest OS)

Mouse handling:
Once you install the virtualization drivers – you can seamlessly move your mouse from guest to host OS without having to hit any hotkeys or anything.

Fullscreen mode:
I’m currently typing from Firefox within Vista, and on my right screen I have Ubuntu fired up in fullscreen – we’re not talking crappy emulation either – i’ve got effects jammin and it’s just like working within full boot-mode.

Networking:
Networking threw me for a quick loop through my own stupidity. You can easily configure multiple adapters of many types – NAT, Bridged, you name it.

Graphics support:
Still a little lacking but for non-gaming desktop purposes the power is there for sure. I only say this because I’ve had a little difficulty with fullscreen OpenGL -style screensavers – and that might be due to my lack of installed drivers. We’ll see. But at any rate, I’m running window effects on a 1920×1200 resolution screen without any lag or issues.

Screenshot: Simple print-screen grabs both- note fullscreen ubuntu =]

No Comments on VirtualBox Rocks!
Categories: linux tools

vnstat/vnstati for quick mrtg style bandwidth graphs June 2, 2009

Ever want the nifty bandwidth charts that MRTG produces, but without the overhead of learning and manipulating the RRD (Round Robin Database) stuff?

vnstati has a built in tool that produces some very sexy snaps of interface bandwidth.

Compile and install from source and play around with the options –

For our dev box where I work I’m running 5 and 10min crons on summary, daily and monthly views:

Output – Can you tell what time our backup is copied? =]

No Comments on vnstat/vnstati for quick mrtg style bandwidth graphs
Categories: linux servers