<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.6" -->
<rss version="0.92">
<channel>
	<title>arkinEx Codex</title>
	<link>http://www.arkinex.com</link>
	<description>the place where all my code can be viewed</description>
	<lastBuildDate>Tue, 05 Aug 2008 11:13:30 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Automatically Version your Javascript &#038; Stylesheets</title>
		<description>Recently, I was browsing the internet, as you do, and I came across a great little article that discussed the automatic versioning of stylesheets, javascript, flash and image files.

As i constantly have to hold shift when refreshing to get a full page refresh, I decided this method was genius and ...</description>
		<link>http://www.arkinex.com/guides/36/auto-version-javascript-stylesheets/</link>
			</item>
	<item>
		<title>Benchmark your PHP code</title>
		<description>As a developer I often question myself when I have many occurrences of a function that could be replaced by something else. There are often many ways of achieving the same thing and only opinion standing in the way of a decision.

To solve this problem, I often benchmark certain peices ...</description>
		<link>http://www.arkinex.com/php/34/benchmark-your-php-code/</link>
			</item>
	<item>
		<title>Managing Apache2 on Debian Etch</title>
		<description>Thought i'd write a quick guide on managing apache2 once installed and running under debian.

Covers log file management, adding virtual hosts (with subdomains) and basic security.

During this tutorial, it is important that you have root SSH access to your server.

Although this guide is written for Debian, it can be used ...</description>
		<link>http://www.arkinex.com/guides/33/managing-apache2-on-debian-etch/</link>
			</item>
	<item>
		<title>Swear Words Text File Resource</title>
		<description>When browsing the internet today I found it impossible to find a neat list of swear words in a basic text file. Upon discovering their was none available I decided to create my own for my users and upcoming projects.

Here is a list of swearwords I put together on July ...</description>
		<link>http://www.arkinex.com/blog/32/swear-words-text-file-dl/</link>
			</item>
	<item>
		<title>PHP Function: str_remove()</title>
		<description>Thought it'd be useful and make more sense to make a str_remove() function because there isn't one.


function str_remove($word, $str) {
return str_replace($word, '', $str);
} </description>
		<link>http://www.arkinex.com/php/functions/31/php-function-str_remove/</link>
			</item>
	<item>
		<title>Creating a .tar.gz Backup on Linux</title>
		<description>Very useful commmand to make a .tar.gz compressed backup of important directories.



tar stands for tape archive which can be used to turn many files and directories into a single file, great for backup and storage.

The syntax:


tar [-options] /directory/of/new/file.tar /files/to/backup/*


So, in this example, we want to backup /var/www to /var/backup.tar.gz (.gz ...</description>
		<link>http://www.arkinex.com/guides/30/creating-a-targz-backup-on-linux/</link>
			</item>
	<item>
		<title>Upgrade PHP5 &#038; MySQL 5 to latest on Debian</title>
		<description>Sometimes the packages on your desired apt-get mirror aren't kept up to date.
A friend recently showed me how to upgrade to the latest and securist version using a special apt-get mirror service that specializes in LAMP installations.

 We will be using a service called dotdeb to update PHP5 and MySQL5. ...</description>
		<link>http://www.arkinex.com/guides/29/upgrade-php5-mysql-5-to-latest-on-debian/</link>
			</item>
	<item>
		<title>Installing and Configuring Samba on Debian 4</title>
		<description>In this guide you will learn how to install Samba on Linux (Debian 4 / etch).
Installing Samba allows you to share files over the network for Mac, Windows and other Linux computers.



As always, first of all lets update the Aptitude source list so we get the latest version.
apt-get update
Next, lets ...</description>
		<link>http://www.arkinex.com/guides/28/installing-and-configuring-samba-on-debian-4-etch/</link>
			</item>
	<item>
		<title>Javascript Function: strip_tags()</title>
		<description>A useful function to mimic to PHP function strip_tags() to strip all HTML tags and markup from a string.

Useful when parsing client input on the fly. Extra checks should be added though.


The code:
function strip_tags(str) {
   return str.replace(/&#60;\/?[^&#62;]+&#62;/gi, "");
}
An example:
alert(strip_tags('See the HTML around this message?'));
// The html tags won't ...</description>
		<link>http://www.arkinex.com/javascript/js-functions/27/javascript-function-strip_tags/</link>
			</item>
	<item>
		<title>Javascript Function: htmlentities()</title>
		<description>Convert html tags and code to readable HTML entities. Mimics the PHP functions htmlspecialchars() and htmlentities().
Prevents from HTML script injection.


The code (Updated July 14th):
function html_entity_decode(s) {
var t=document.createElement(’textarea’);
t.innerHTML = s;
var v = t.value;
t.parentNode.removeChild(t);
return v;
}

The old code, which still works:
function htmlentities(str) {
    var i,output='',len,char='';
    len = ...</description>
		<link>http://www.arkinex.com/javascript/js-functions/26/javascript-function-htmlentities/</link>
			</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.265 seconds -->
