<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/favorites/darkphotn</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Sat, 11 Oct 2008 06:51:04 GMT</pubDate>
<item>
<title>(JavaScript) Snow JS Script - darkphotn</title>
<link>http://snipplr.com/view/4532/snow-js-script/</link>
<description><![CDATA[ <p>Pour avoir un effet de flocons de neige sur l'écran
Code insertion:</p> ]]></description>
<pubDate>Sun, 13 Jan 2008 14:51:07 GMT</pubDate>
<guid>http://snipplr.com/view/4532/snow-js-script/</guid>
</item>
<item>
<title>(Perl) One liner perl extract content with regular expression - darkphotn</title>
<link>http://snipplr.com/view/4259/one-liner-perl-extract-content-with-regular-expression/</link>
<description><![CDATA[ <p>Don't use the -l switch if you don't want a new line.</p> ]]></description>
<pubDate>Tue, 04 Dec 2007 06:33:22 GMT</pubDate>
<guid>http://snipplr.com/view/4259/one-liner-perl-extract-content-with-regular-expression/</guid>
</item>
<item>
<title>(JavaScript) Optional Function Arguments - darkphotn</title>
<link>http://snipplr.com/view/4238/optional-function-arguments/</link>
<description><![CDATA[ <p>Simple way of allowing functions to take optional arguments. Always place the optional arguments last, so you don't have to explicitly pass an argument as "undefined".</p> ]]></description>
<pubDate>Sun, 02 Dec 2007 06:19:11 GMT</pubDate>
<guid>http://snipplr.com/view/4238/optional-function-arguments/</guid>
</item>
<item>
<title>(CSS) Master Stylesheet - darkphotn</title>
<link>http://snipplr.com/view/4233/master-stylesheet/</link>
<description><![CDATA[ <p>One of the most common mistakes I see beginners and intermediates fall victim to when it comes to CSS is not removing the default browser styling. This leads to inconsistencies in the appearance of your design across browsers, and ultimately leaves a lot of designers blaming the browser. It is a misplaced blame, of course. Before you do anything else when coding a website, you should reset the styling.</p> ]]></description>
<pubDate>Sat, 01 Dec 2007 15:15:09 GMT</pubDate>
<guid>http://snipplr.com/view/4233/master-stylesheet/</guid>
</item>
<item>
<title>(PHP) Prevent SQL Injection - darkphotn</title>
<link>http://snipplr.com/view/4205/prevent-sql-injection/</link>
<description><![CDATA[ <p>Pass a user-inputted variable to this function in order to prevent SQL injection. Example:

mysql_query("INSERT INTO table VALUES('" . sql_sanitize($_POST["variable") . "')");

Instead of:

mysql_query("INSERT INTO table VALUES('" . $_POST["variable"] . "'");</p> ]]></description>
<pubDate>Wed, 28 Nov 2007 09:25:01 GMT</pubDate>
<guid>http://snipplr.com/view/4205/prevent-sql-injection/</guid>
</item>
<item>
<title>(CSS) Transparent in all  browsers - darkphotn</title>
<link>http://snipplr.com/view/4192/transparent-in-all--browsers/</link>
<description><![CDATA[ <p>Transparency is one of those weird things that is treated completely differently in all browsers. To cover all your bases, you need four separate CSS statements. Fortunately they don’t interfere with each other really, so using them all every time you wish to add transparency is no big hassle and worry-free. Here they are, and are currently set to 50% transparency:
    * opacity: 0.5; This is the “most important” one because it is the current standard in CSS. This will work in most versions of Firefox, Safari, and Opera. This would be all you need if all browsers supported current standards. Which, of course, they don’t.
    * filter:alpha(opacity=50); This one you need for IE.
    * -moz-opacity:0.5; You need this one to support way old school versions of the Mozilla browsers like Netscape Navigator.
    * -khtml-opacity: 0.5; This is for way old versions of Safari (1.x) when the rendering engine it was using was still referred to as KTHML, as opposed to the current WebKit.</p> ]]></description>
<pubDate>Sun, 25 Nov 2007 17:24:48 GMT</pubDate>
<guid>http://snipplr.com/view/4192/transparent-in-all--browsers/</guid>
</item>
</channel>
</rss>