<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NGPixel</title>
	<atom:link href="http://www.ngpixel.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ngpixel.com</link>
	<description>The Development Blog</description>
	<lastBuildDate>Thu, 28 Jan 2010 19:42:04 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The iPad, just a big iPod Touch&#8230;</title>
		<link>http://www.ngpixel.com/2010/01/28/the-ipad-just-a-big-ipod-touch/</link>
		<comments>http://www.ngpixel.com/2010/01/28/the-ipad-just-a-big-ipod-touch/#comments</comments>
		<pubDate>Thu, 28 Jan 2010 19:39:22 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ngpixel.com/2010/01/28/the-ipad-just-a-big-ipod-touch/</guid>
		<description><![CDATA[     Big deception. I was expecting some kind of new UI and more hardware features.    I guess we’ll have to wait for V2 and see…
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ngpixel.com/wp-content/uploads/2010/01/ipad_isityousteve.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="ipad_isityousteve" border="0" alt="ipad_isityousteve" src="http://www.ngpixel.com/wp-content/uploads/2010/01/ipad_isityousteve_thumb.jpg" width="337" height="442" /></a>     <br />Big deception. I was expecting some kind of new UI and more hardware features.    <br />I guess we’ll have to wait for V2 and see…</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ngpixel.com/2010/01/28/the-ipad-just-a-big-ipod-touch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wordpress and Password-Protected Directories</title>
		<link>http://www.ngpixel.com/2010/01/16/wordpress-and-password-protected-directories/</link>
		<comments>http://www.ngpixel.com/2010/01/16/wordpress-and-password-protected-directories/#comments</comments>
		<pubDate>Sat, 16 Jan 2010 18:11:45 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.ngpixel.com/2010/01/16/wordpress-and-password-protected-directories/</guid>
		<description><![CDATA[Wordpress adds a little code to your root .htaccess in order to catch all URLs on your website and process them. It works fine if you only have Wordpress on your websites and normal files/folders. But should you have a password-protected directory, Wordpress might catch the 401 page as well which results in never showing [...]]]></description>
			<content:encoded><![CDATA[<p>Wordpress adds a little code to your root .htaccess in order to catch all URLs on your website and process them. It works fine if you only have Wordpress on your websites and normal files/folders. But should you have a password-protected directory, Wordpress might catch the 401 page as well which results in never showing the login authentication box at all.</p>
<p>I tried to add additional RewriteCond and RewriteRule to catch the password-protected directories before Wordpress does but without success. The trick is in fact much more simple than that. You simply need to tell Apache to go to a custom 401 page of your choice (it can be blank or the default page, doesn’t matter). You will then be prompted with a login box and let you proceed to the password-protected directory. Should the login be wrong, the custom page will be displayed. No more annoying Wordpress url rewriting!</p>
<p>Here’s the code: (notice the usual Wordpress code, you simply need to add the ErrorDocument line above it)</p>
<pre class="brush:xml">ErrorDocument 401 default

# BEGIN WordPress
&lt;ifmodule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
&lt;/ifmodule&gt;
# END WordPress</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.ngpixel.com/2010/01/16/wordpress-and-password-protected-directories/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reaper &gt; Cubase 5</title>
		<link>http://www.ngpixel.com/2009/12/27/reaper-cubase/</link>
		<comments>http://www.ngpixel.com/2009/12/27/reaper-cubase/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 03:36:10 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Audio]]></category>

		<guid isPermaLink="false">http://www.ngpixel.com/2009/12/27/reaper-cubase/</guid>
		<description><![CDATA[DAW software are quite expensive, about 300-500$ depending on the version. I was looking to upgrade my Cubase AI 4 which is 32bit only to a 64bit-capable DAW. Cubase Studio 5 was the logical choice with it’s new 64bit version. Then I saw the price: 339$. Not quite what you call a deal, only to [...]]]></description>
			<content:encoded><![CDATA[<p>DAW software are quite expensive, about 300-500$ depending on the version. I was looking to upgrade my Cubase AI 4 which is 32bit only to a 64bit-capable DAW. Cubase Studio 5 was the logical choice with it’s new 64bit version. Then I saw the price: 339$. Not quite what you call a deal, only to get 64bit support. Considering version 5 had no useful new features (only ANOTHER beat maker among the new “features”, as if we needed YET ANOTHER one). So it was clear I wasn’t going to buy this.</p>
<p>Then I read on <a href="http://www.soundsonline.com/" target="_blank">EastWest</a> forums about <a href="http://www.reaper.fm/" target="_blank">Reaper</a>. It’s a DAW that is even more optimized than Cubase, has 64bit support, free routing of MIDI and audio. The price? 60$. But wait, prepare to be shocked, it only does everything Cubase 5 can do and more. Another surprise? It’s less than 5mb and the license is good for another major upgrade in the future. It looks even better than Cubase 5.</p>
<p>But the best thing about Reaper is the workflow. In less than 2 minutes, I was ready to go, VSTis loaded and ready to play. It appears to be much more stable than Cubase as well and an even lower latency.</p>
<p>I’m still using the 30-day evaluation version but I’m definitely getting a license in the next weeks.</p>
<p>Finally an audio product made by audio developers and not a marketing team.</p>
<p><a href="http://www.ngpixel.com/wp-content/uploads/2009/12/image.png"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="image" border="0" alt="image" src="http://www.ngpixel.com/wp-content/uploads/2009/12/image_thumb.png" width="244" height="172" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.ngpixel.com/2009/12/27/reaper-cubase/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uncharted 2</title>
		<link>http://www.ngpixel.com/2009/10/18/uncharted-2/</link>
		<comments>http://www.ngpixel.com/2009/10/18/uncharted-2/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 05:02:14 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ngpixel.com/2009/10/18/uncharted-2/</guid>
		<description><![CDATA[3 simple words:
BUY THIS GAME
Epic gameplay, graphics, audio and multiplayer. If you own a PS3, it’s definitely a game to get.
]]></description>
			<content:encoded><![CDATA[<p>3 simple words:</p>
<p><strong>BUY THIS GAME</strong></p>
<p>Epic gameplay, graphics, audio and multiplayer. If you own a PS3, it’s definitely a game to get.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ngpixel.com/2009/10/18/uncharted-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gigabyte&#8217;s DES means great problems</title>
		<link>http://www.ngpixel.com/2009/08/29/gigabytes-des-means-great-problems/</link>
		<comments>http://www.ngpixel.com/2009/08/29/gigabytes-des-means-great-problems/#comments</comments>
		<pubDate>Sat, 29 Aug 2009 21:36:23 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ngpixel.com/2009/08/29/gigabytes-des-means-great-problems/</guid>
		<description><![CDATA[Owners of Gigabyte motherboards probably noticed the phase LEDs on their motherboard. Turns out you can have them enabled while using your PC. It shows you the current CPU usage. It requires you to install and activate their Dynamic Energy Saver app.
That’s exactly what I did. Sure enough, the LEDs were working just fine. But [...]]]></description>
			<content:encoded><![CDATA[<p>Owners of Gigabyte motherboards probably noticed the phase LEDs on their motherboard. Turns out you can have them enabled while using your PC. It shows you the current CPU usage. It requires you to install and activate their Dynamic Energy Saver app.</p>
<p>That’s exactly what I did. Sure enough, the LEDs were working just fine. But their dynamic saving features also causes some serious audio issues. I started to hear frequent pops and clicks noises when listening to audio, and that from any audio applications. I first tried to re-install drivers, disable some apps I had recently installed, no luck. Then I had the idea to de-activate the DES functionality: no more audio issues.</p>
<p>Even more proof that you <strong>shouldn’t</strong> install any applications that comes bundled with your hardware.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ngpixel.com/2009/08/29/gigabytes-des-means-great-problems/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The best way to write PHP code</title>
		<link>http://www.ngpixel.com/2009/08/15/the-best-way-to-write-php-code/</link>
		<comments>http://www.ngpixel.com/2009/08/15/the-best-way-to-write-php-code/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 19:47:57 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.ngpixel.com/2009/08/15/the-best-way-to-write-php-code/</guid>
		<description><![CDATA[PHP is quite flexible in the way you write code. You can write same code in about 10 different styles and it’s still going to work. The problem is when you try to read and understand someone else script. It’s either well documented or completely unreadable.
In my opinion, writing large blocks of documentation is, most [...]]]></description>
			<content:encoded><![CDATA[<p>PHP is quite flexible in the way you write code. You can write same code in about 10 different styles and it’s still going to work. The problem is when you try to read and understand someone else script. It’s either well documented or completely unreadable.</p>
<p>In my opinion, writing large blocks of documentation is, most of the time, useless and time consuming. It is possible write code in a way that it can be read by anyone with very short amount of documentation. It all starts with naming your functions correctly, dividing long blocks of code in short functions that are self-explained.</p>
<p>So I decided to share some best practices I’ve read or learned over time.</p>
<p><strong><span style="text-decoration: underline">Naming</span></strong></p>
<pre class="brush:php">// INCORRECT
function Getlastmessages()
function GetLastMessages()
function getLastMessages()

// CORRECT
function get_last_messages()</pre>
<p>Sure the CamelCase version isn&#8217;t bad, but the best way to name methods is by separating words with an underscore.</p>
<p>You should name your classes the same way but by using an uppercase letter as the first letter. (ex: <strong>Get_last_message</strong>) </p>
<p>Constants also follow the same rule but all letters are in uppercase (ex: <strong>GET_LAST_MESSAGE</strong>)</p>
<p><strong><span style="text-decoration: underline">HTML Output</span></strong></p>
<p>Unless the HTML to output is relatively short, you should always close PHP, write your HTML and then open PHP back.</p>
<p>Use the short &lt;?= tag (if enabled on your server) to open PHP to output a variable.</p>
<p><strong><span style="text-decoration: underline">TRUE, FALSE and NULL</span></strong></p>
<pre class="brush:php">// INCORRECT
$var = true;
$var = True;
if($var == null) {}

// CORRECT
$var = TRUE;
$var = FALSE;
if($var == NULL) {}</pre>
<p>Always write conditional values in uppercase.</p>
<p><strong><u>PHP Files ending</u></strong></p>
<p>As strange as it sounds, you shouldn’t close PHP at the end of PHP file. You should instead include a standard comment at the end and that’s it.</p>
<pre class="brush:php">&lt;?php
// PHP CODE HERE

/* End of file index.php
/* Location: ./application/index.php */</pre>
<p>Why? Because PHP will close automatically as it reaches the end of the file but more importantly, it will prevent any whitespace or line breaks issues at the end of the file.</p>
<p><strong><u>UTF-8 File Encoding and Unix line-breaks</u></strong></p>
<p>Your code editor should always be configured to use UTF-8 encoding and Unix style line breaks. This will ensure compatibility with most languages and servers configuration.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ngpixel.com/2009/08/15/the-best-way-to-write-php-code/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Useful Adobe Fireworks tips</title>
		<link>http://www.ngpixel.com/2009/07/27/useful-adobe-fireworks-tips/</link>
		<comments>http://www.ngpixel.com/2009/07/27/useful-adobe-fireworks-tips/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 12:24:59 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://www.ngpixel.com/2009/07/27/useful-adobe-fireworks-tips/</guid>
		<description><![CDATA[- While drawing a line, hold down SHIFT to make it straight horizontally or vertically.
- While drawing a rectangle, press the UP or DOWN arrow keys to make the corners round (or sharp).
- You don’t need to ungroup to edit objects within a group, simply use the Subselection tool to select and edit an object.
- [...]]]></description>
			<content:encoded><![CDATA[<p>- While drawing a line, hold down <strong>SHIFT</strong> to make it straight horizontally or vertically.</p>
<p>- While drawing a rectangle, press the <strong>UP</strong> or <strong>DOWN</strong> arrow keys to make the corners round (or sharp).</p>
<p>- You don’t need to ungroup to edit objects within a group, simply use the <strong>Subselection tool </strong>to select and edit an object.</p>
<p>- Change the corner roundness mode to <strong>px</strong> instead of <strong>%</strong>, making duplicates with various size won’t affect the roundness anymore.</p>
<p>- Use the arrow keys (with an object selected already) to position precisely an object.</p>
<p>- To apply a fade effect on any object, use the <strong>Auto Vector Mask</strong> command found under the <strong>Commands &gt; Creative</strong> menu</p>
<p>- You can curve a text object by drawing an ellipse, selecting the text and the ellipse and applying the <strong>Attach to path</strong> command found under the <strong>Text</strong> menu.</p>
<p>&#160;</p>
<p>That’s it for now! <img src='http://www.ngpixel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ngpixel.com/2009/07/27/useful-adobe-fireworks-tips/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apple = bunch of whiners</title>
		<link>http://www.ngpixel.com/2009/07/16/apple-bunch-of-whiners/</link>
		<comments>http://www.ngpixel.com/2009/07/16/apple-bunch-of-whiners/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 12:46:33 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[News]]></category>

		<guid isPermaLink="false">http://www.ngpixel.com/?p=53</guid>
		<description><![CDATA[Microsoft probably got the best phone call in history, it&#8217;s worth reading:
http://gizmodo.com/5315666/microsoft-gloats-apple-begged-them-to-stop-running-laptop-hunter-ads
Way to go Apple&#8230;
]]></description>
			<content:encoded><![CDATA[<p>Microsoft probably got the best phone call in history, it&#8217;s worth reading:</p>
<p><a href="http://gizmodo.com/5315666/microsoft-gloats-apple-begged-them-to-stop-running-laptop-hunter-ads" target="_blank">http://gizmodo.com/5315666/microsoft-gloats-apple-begged-them-to-stop-running-laptop-hunter-ads</a></p>
<p>Way to go Apple&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ngpixel.com/2009/07/16/apple-bunch-of-whiners/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to bypass Windows Live Messenger anti-virus requirement</title>
		<link>http://www.ngpixel.com/2009/07/15/how-to-bypass-windows-live-messenger-anti-virus-requirement/</link>
		<comments>http://www.ngpixel.com/2009/07/15/how-to-bypass-windows-live-messenger-anti-virus-requirement/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 17:01:00 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://www.ngpixel.com/?p=45</guid>
		<description><![CDATA[If you don&#8217;t use an anti-virus and your friend is trying to send you a file over Windows Live Messenger, you probably noticed that it requires you to have an anti-virus installed or the download will fail. Sure, it&#8217;s a good protection I guess, but providing an option to disable that functionality would have been [...]]]></description>
			<content:encoded><![CDATA[<p>If you don&#8217;t use an anti-virus and your friend is trying to send you a file over Windows Live Messenger, you probably noticed that it requires you to have an anti-virus installed or the download will fail. Sure, it&#8217;s a good protection I guess, but providing an option to disable that functionality would have been appreciated&#8230;</p>
<p>Fortunately, you can bypass this protection quite easily.I made a little C++ .exe that simply returns 0 and exit. Basically, an empty project in Visual Studio! Then you simply assign that .exe as your anti-virus in Windows Live Messenger.</p>
<p><strong>1) Download the app</strong>: <a href="http://www.ngpixel.com/wp-content/uploads/2009/07/DoNothing.zip">DoNothing.zip</a></p>
<p>2) <strong>Extract</strong> the .exe to a location of your choice (My Documents).</p>
<p>3) Set the anti-virus in Windows Live Messenger:</p>
<p>- Go to <strong>Tools &gt; Options &gt; File Transfer</strong><br />
- Check the <strong>Scan files for viruses using</strong> option<br />
- Click <strong>Browse&#8230;</strong> and select the DoNothing.exe application you extracted.</p>
<div id="attachment_48" class="wp-caption alignnone" style="width: 539px"><a href="http://www.ngpixel.com/wp-content/uploads/2009/07/msnavins1.jpg"><img class="size-full wp-image-48" title="Windows Live Messenger - File Transfer Options" src="http://www.ngpixel.com/wp-content/uploads/2009/07/msnavins1.jpg" alt="Windows Live Messenger - File Transfer Options" width="529" height="381" /></a><p class="wp-caption-text">Windows Live Messenger - File Transfer Options</p></div>
<p>Enjoy file transfers without an anti-virus <img src='http://www.ngpixel.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.ngpixel.com/2009/07/15/how-to-bypass-windows-live-messenger-anti-virus-requirement/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>(Adobe Air) Bring a window to front by clicking the systemTrayIcon</title>
		<link>http://www.ngpixel.com/2009/07/06/adobe-air-bring-a-window-to-front-by-clicking-the-systemtrayicon/</link>
		<comments>http://www.ngpixel.com/2009/07/06/adobe-air-bring-a-window-to-front-by-clicking-the-systemtrayicon/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 14:49:39 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Adobe AIR]]></category>

		<guid isPermaLink="false">http://www.ngpixel.com/?p=40</guid>
		<description><![CDATA[While developing an AIR application, I had an issue with bringing the application to front (above all other windows) when clicking the systemTrayIcon.
Usually, you would use the method:
systemTrayIcon.addEventListener("click", function() {
window.nativeWindow.orderToFront();
});
But doing so will result in&#8230; actually nothing at all. The window doesn&#8217;t move.
Using the same code on a menu item of the SystemTrayIcon will work, [...]]]></description>
			<content:encoded><![CDATA[<p>While developing an AIR application, I had an issue with bringing the application to front (above all other windows) when clicking the systemTrayIcon.</p>
<p>Usually, you would use the method:</p>
<pre class="brush:js">systemTrayIcon.addEventListener("click", function() {
window.nativeWindow.orderToFront();
});</pre>
<p>But doing so will result in&#8230; actually nothing at all. The window doesn&#8217;t move.<br />
Using the same code on a menu item of the SystemTrayIcon will work, but not on the click action of the Icon itself.</p>
<p><span style="text-decoration: underline;"><strong>Workaround:</strong></span></p>
<p>Set the window property <strong>alwaysInFront</strong> to true and then to false:</p>
<pre class="brush:js">systemTrayIcon.addEventListener("click", function() {
 window.nativeWindow.alwaysInFront = true;
 window.nativeWindow.alwaysInFront = false;
 });</pre>
<p>Not the way it should be, but it works&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ngpixel.com/2009/07/06/adobe-air-bring-a-window-to-front-by-clicking-the-systemtrayicon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
