Subscribe
Free Knowledge in an RSS feed

Articles » Tutorials

Scheduling a daily Cron task in Debian to check external IP

July 31st, 2011

Build a cron task in debian to check your public IP. Great for hosting local websites.

Enabling Terminal Background Blur in OS X Lion

July 24th, 2011

Background blur in OS X terminals is sexy. Follow this tutorial to get it running on your machine.

Fixing Apache (Web Sharing) in OS X Snow Leopard to Tiger Update

July 23rd, 2011

This will get your Web Sharing in OS X working properly if you update from Snow Leopard to Tiger.

Building Custom OS X Dashboard Widgets

July 13th, 2011

This is a comprehensive tutorial on building OS X Dashboard Widgets, without the use of Xcode.

How to login via SSH Without a Password

June 6th, 2011

SSH is the defacto way for working on remote servers. But, isn’t it annoying to always enter your password? Follow this tutorial to generate and enable a certificate.

How to copy an entire folder in Linux

June 4th, 2011

The command for copying entire folders under Linux.

Simple PHP MySQL Script

May 28th, 2011

This is a very simple PHP script for working with MySQL databases. I first wrote it back in 2005.

Submitting Multi-Dimensional Array Data to PHP

March 19th, 2011

This article is regarding an under-documented PHP feature when dealing with form data received from an HTML page (this works with both GET and POST data). If you name your HTML elements the proper way, you are able to send multidimensional arrays (or single dimension arrays for that matter) to your PHP script and access [...]

lighttpd configuration to redirect subdomains

February 27th, 2011

For our NeoInvoice project, all requests to the server’s sub-domains are sent right to the main server. This means someone can go to www.neoinvoice.com, ex1.neoinvoice.com, etc. Search engines don’t like to see duplicate content on web servers, cookies being saved on one sub-domain aren’t accessible to another, there are all sorts of problems with this. [...]

MySQL REPLACE vs INSERT ON DUPLICATE KEY UPDATE

February 26th, 2011

Recently, while working on ObsceneArt, we had the need to quickly either insert new data into a database, or update an existing record, specifically used for the rating system. For example, when a user would rate a quote, they might have already rated it once and would like to change their mind, or they would [...]

Apache2 Outperforming lighttpd 1.5

February 8th, 2011

Here’s an output of top on my VPS running Ubuntu 10.04. The first output is while a server was running Apache2 (and lighttpd on a secondary port). The Apache2 instances were under heavy stress testing at the time, and their total CPU was 30.2%. In the second output, lighttpd had taken over as the main [...]

Installing lighttpd on Ubuntu 10.04

February 3rd, 2011

On a VPS with 512 MB of RAM, installing a LAMP stack (Linux, Apache, MySQL, PHP) and the trimmings (eaccelerator @ 40MB, memcached @ 40MB) eats up a LOT of RAM (in my particular case, about 480 MB). In an attempt to bring the amount of RAM usage down, I was looking through the results [...]

Installing PECL :: ncurses on Ubuntu 10.04

January 19th, 2011

I recently had the task of installing the PHP PECL extension ncurses on my Ubuntu 10.04 (Desktop) machine. PECL is a repository manager for PHP extensions. Ncurses is a tool for doing all sorts of awesome command line terminal stuff, such as colors, building windows, updating part of the screen instead of the entire screen, [...]

PHP / MySQL Web Application Migration Steps

October 7th, 2010

I was recently asked how easy it is to move a web application based on the PHP/MySQL realm of web application development. When moving a static website, one can “drag and drop” the website from one location to another, and things usually work just fine, so surely moving a web app is this easy? Unfortunately, [...]

Enabling AJAX result script execution in MochaUI

October 2nd, 2010

While working on the NeoInvoice project, we had the need to be able to execute script tags returned from the server via AJAX requests. For example, a person may make an update to a client, such as renaming the client or updating the clients email address. Depending on which items get changed, the clients panel [...]

Android Nexus Neural Network Live Wallpaper in jQuery

September 4th, 2010

After staring at the live wallpaper for my Android phone for a while, I started to wonder if I could recreate the animations using JavaScript and jQuery. At first it looked like it would be a pain due to keeping track of tiles, colors, flipping the colors, coloring neighboring tiles near the plasma ‘heads’, etc. [...]

Alternate Even and Odd Table Row Classes using jQuery

August 29th, 2010

With the CSS3 pseudo element classes being right around the corner, namely :even and :odd, the ability for us web designers to color even and odd rows will soon be as easy as adding this to our CSS documents: tr:even td { background-color: #ffffff; } tr:odd td { background-color: #fafafa; } But, until browsers support [...]

Experts Exchange Hide Ads

May 17th, 2010

Ever get annoyed with Experts Exchange and that giant block of links before they give you the solution to the problem you’ve Google’d oh so hard for? Here is a GreaseMonkey script I’ve developed to alleviate such a problem.

Introducing SofaDB, a pure PHP CouchDB Alternative

May 1st, 2010

An introduction to our SofaDB project, which is a pure PHP alternative to Apache’s CouchDB project. Useful for storing non-relational data. Currently the project is in alpha stages.

Dynamic Form Actions using Different Buttons

April 25th, 2010

A method for dynamically changing form action depending on which submit button is clicked using JavaScript. Does not require knowledge of the forms name.