<?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>Reverse Engineer</title>
	<atom:link href="http://blog.alexou.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.alexou.net</link>
	<description>It is not enough to succeed. Others must fail.</description>
	<lastBuildDate>Tue, 19 Jul 2011 18:24:26 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Disable fastcgi (php) for one virtual host in lightty</title>
		<link>http://blog.alexou.net/2011/01/20/disable-fastcgi-php-for-one-vhost-in-lighttpd/</link>
		<comments>http://blog.alexou.net/2011/01/20/disable-fastcgi-php-for-one-vhost-in-lighttpd/#comments</comments>
		<pubDate>Fri, 21 Jan 2011 03:52:14 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.alexou.net/?p=570</guid>
		<description><![CDATA[There is no official way to disable fcgi for a specific virtual host in lighttpd. After much experimentation, I found a couple of ways to disable fcgi for a specific vhost. This could be useful if you want to disallow php/perl/ruby (or all of them) on a sensible website, or for a specific customer. One [...]]]></description>
			<content:encoded><![CDATA[<p>There is no official way to disable fcgi for a specific virtual host in lighttpd. After much experimentation, I found a couple of ways to disable fcgi for a specific vhost. This could be useful if you want to disallow php/perl/ruby (or all of them) on a sensible website, or for a specific customer. One possible way was to have a full fastcgi.server for each vhost where it was allowed. This was a bad solution because it will fork a lot of useless php/perl process. And the configuration would quickly become a mess anyway.</p>
<p>I had two goals:</p>
<ul>
<li>Find a way to disable all fcgi for the specific vhost.</li>
<li>Find a way to disable a specific fcgi for the specific vhost. (eg: disable php but allow perl)</li>
</ul>
<p style="padding-top: 30px;">
The first way is to disable all fcgi for a vhost. It is possible by adding the following snippet inside the vhost (<em>the $HTTP["host"] == "domain.td" {} block</em>):</p>
<p style="padding-left: 30px;">
<blockquote><p>static-file.exclude-extensions = ()<br />
fastcgi.server = ()<br />
fastcgi.map-extensions = ()
</p></blockquote>
<p style="padding-top: 30px;">
The second way, and most likely the best way since you can have per-fcgi control, is to match on the file name by adding this snippet in the vhost configuration:
</p>
<blockquote><p>
$HTTP["url"] =~ "<strong>.php</strong>$" {<br />
static-file.exclude-extensions = ()<br />
fastcgi.server = ()<br />
}
</p></blockquote>
<p>
<p style="padding-top: 30px;">
The last method I tried was using a UUID to declare the fcgi, and then map it to its extension. The main problem with this, it's that if your client see your configuration file somehow, he will be able to run a script by renaming it to the UUID.</p>
<p style="padding-left: 30px;">
First, use a UUID instead of an extension to declare your fcgi servers:</p>
<blockquote><p>
fastcgi.server = ( "<strong>034343-43423423-php-342423</strong>" =&gt; ((<br />
"max-procs" =&gt; 1,<br />
"bin-path" =&gt; "/usr/bin/php-cgi",<br />
"bin-environment" =&gt; (<br />
"PHP_FCGI_CHILDREN" =&gt; "3",<br />
"PHP_FCGI_MAX_REQUESTS" =&gt; "250"<br />
),<br />
"socket" =&gt; "/tmp/php.socket"<br />
)),<br />
"<strong>034343-43423423-ruby-342423</strong>" =&gt; ((<br />
"max-procs" =&gt; 1,<br />
"bin-path" =&gt; "/usr/bin/custom-fcgi",<br />
"bin-copy-environment" =&gt; ("LANG", "TERM"),<br />
"socket" =&gt; "/tmp/ruby.socket"<br />
))<br />
)<br />
fastcgi.map-extensions = (".php" =&gt; "034343-43423423-php-342423", ".rb" =&gt; "034343-43423423-ruby-342423" )
</p></blockquote>
<p>And then redeclare the map-extensions inside the vhost configuration according to what you want to allow:<br />
Eg, to disable php:</p>
<blockquote><p>
fastcgi.map-extensions = (".rb" =&gt; "034343-43423423-ruby-342423" )
</p></blockquote>
</p>
<p>I hope that one of those methods will help you!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alexou.net/2011/01/20/disable-fastcgi-php-for-one-vhost-in-lighttpd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lighttpd and WP-Super-Cache</title>
		<link>http://blog.alexou.net/2011/01/20/lighttpd-and-wp-super-cache/</link>
		<comments>http://blog.alexou.net/2011/01/20/lighttpd-and-wp-super-cache/#comments</comments>
		<pubDate>Thu, 20 Jan 2011 11:02:06 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.alexou.net/?p=508</guid>
		<description><![CDATA[I was not able to find a simple way to use wp-super-cache with lighttpd, some were using 100 lines lua script and the others were unreliable at best. After an hour of fiddling, I came with the following configuration. What it does: It serves a cache file only if the user is not logged in. [...]]]></description>
			<content:encoded><![CDATA[<p>I was not able to find a simple way to use wp-super-cache with lighttpd, some were using 100 lines lua script and the others were unreliable at best. After an hour of fiddling, I came with the following configuration.</p>
<p>What it does:
<ul>
<li>It serves a cache file <strong>only if the user is not logged in</strong>.</li>
<li>
If no cache exists, the 404 handler loads index.php which will either find the correct page (and generate missing cache), or return a true 404.</li>
<li>
It does not mess with /wp-admin or /wp-content or any file that exists outside the cache.</li>
</ul>
<p>What might not work:</p>
<ul>
<li>
I did not test if logging works properly in lighttpd when the hit use the 404 handler. Although it should be trivial to fix </li>
</ul>
<p>In green are the values that you will have to edit</p>
<pre>	$HTTP["host"] == "<font color="green">blog.alexou.net</font>" {
		server.document-root = "<font color="green">/var/www/wordpress</font>"
		server.error-handler-404 = "index.php"
		$HTTP["cookie"] !~ "^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$" {
			url.rewrite-once = ( "^/wp-admin(.*)(?:\?(.*))?$" => "wp-admin$1?$2" )
			url.rewrite-if-not-file = ("^/(.*)$" => "wp-content/cache/supercache/<font color="green">blog.alexou.net</font>/$1" )
		}
	}
</pre>
<p>Note: You need lighttpd >= 1.4.24, since earlier versions do not have rewrite-if-not-file.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alexou.net/2011/01/20/lighttpd-and-wp-super-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable open file security warning windows 7</title>
		<link>http://blog.alexou.net/2011/01/09/disable-open-file-security-warning-windows-7/</link>
		<comments>http://blog.alexou.net/2011/01/09/disable-open-file-security-warning-windows-7/#comments</comments>
		<pubDate>Sun, 09 Jan 2011 13:53:13 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.alexou.net/?p=495</guid>
		<description><![CDATA[When you deal with a lot of applications/drivers installations (sys admin?), that retarded warning gets a bit annoying to say the least. YES I DID CLICK THAT FILE, WHY DO YOU ASK ME, AGAIN? Open it already. I know you care about my security dear microsoft software engineer, but i&#8217;ll manage it from here, mk? [...]]]></description>
			<content:encoded><![CDATA[<p>When you deal with a lot of applications/drivers installations (sys admin?), that retarded warning gets a bit annoying to say the least.</p>
<p><img class="alignnone size-full wp-image-496" title="stupidwarning" src="http://blog.alexou.net/wp-content/uploads/2011/01/stupidwarning.png" alt="" width="408" height="304" /></p>
<p><em>YES I DID CLICK THAT FILE, WHY DO YOU ASK ME, AGAIN? Open it already. I know you care about my security dear microsoft software engineer, but i&#8217;ll manage it from here, mk?</em></p>
<p>Sure, one could uncheck the checkbox, but the checkbox applies only to the specific file being executed, not all exes.</p>
<p><strong>Enough blah blah, here&#8217;s the fix:</strong></p>
<p>Fire up the group policy editor (Run -&gt; gpedit.msc) .</p>
<p>And go to User -&gt; Admin Templates -&gt; Windows Components -&gt; Attachment Manager -&gt; Inclusion list for low risk file types.</p>
<p>Click Enable and add .exe;.msi to the list. (See picture)</p>
<p><a href="http://blog.alexou.net/wp-content/uploads/2011/01/stupidwarning1.png"><img class="alignnone size-medium wp-image-497" title="stupidwarning" src="http://blog.alexou.net/wp-content/uploads/2011/01/stupidwarning1-300x166.png" alt="" width="300" height="166" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alexou.net/2011/01/09/disable-open-file-security-warning-windows-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nothing to hide huh?</title>
		<link>http://blog.alexou.net/2010/08/17/nothing-to-hide-huh/</link>
		<comments>http://blog.alexou.net/2010/08/17/nothing-to-hide-huh/#comments</comments>
		<pubDate>Tue, 17 Aug 2010 06:16:59 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.alexou.net/?p=463</guid>
		<description><![CDATA[{ Government, Google, Banks, Telcos }: Well if you have nothing to hide you wouldn&#8217;t mind if I check all your data? Me: Having nothing to hide does not mean having something to share. I&#8217;m doing nothing illegal. But I hide it anyway. That&#8217;s called privacy. People working for the government (Police, Politician) should have [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.alexou.net/wp-content/uploads/2010/08/privacy1.jpg"><img class="size-medium wp-image-464  alignright" title="privacy[1]" src="http://blog.alexou.net/wp-content/uploads/2010/08/privacy1-300x214.jpg" alt="" width="205" height="146" /></a>{ Government, Google, Banks, Telcos }: <em>Well if you have nothing to hide you wouldn&#8217;t mind if I check all your data?</em></p>
<p>Me: <em>Having nothing to hide does not mean having something to share. I&#8217;m doing nothing illegal. But I hide it anyway. That&#8217;s called privacy.</em></p>
<p>People working for the government (Police, Politician) should have <a href="http://yro.slashdot.org/story/10/07/27/0212232/Facing-16-Years-In-Prison-For-Videotaping-Police?from=rss" target="_blank">no privacy</a> AT ALL <strong>while on duty</strong>. Citizens should have a right to privacy.</p>
<p>The idea that if &#8220;I do nothing wrong, I won&#8217;t mind being watched&#8221; assumes that the government is full of good people that will not abuse their power, ever. Anything taken out of context can appear wrong. Can you assure me that nobody with power will never watch me for their own profit? No business competitor? No mad ex wife? No policemen trying to cover its own mistakes? You will never be at the wrong place at the wrong time? Can you assure me that something will never be made illegal? If sex outside wedlock is made illegal, would you still be happy to have all that footage of you raping these thai prostitutes?</p>
<p>Every information about a citizen should be his own property. Sadly, in our world, major corporations and government are above the law.</p>
<p>Just because I&#8217;m paranoid doesn&#8217;t mean that they&#8217;re not out to get you.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alexou.net/2010/08/17/nothing-to-hide-huh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Scrolling in GTK+ apps with synaptics driver</title>
		<link>http://blog.alexou.net/2010/07/30/scrolling-in-gtk-apps-with-synaptics-driver/</link>
		<comments>http://blog.alexou.net/2010/07/30/scrolling-in-gtk-apps-with-synaptics-driver/#comments</comments>
		<pubDate>Fri, 30 Jul 2010 09:33:13 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.alexou.net/?p=457</guid>
		<description><![CDATA[When using a Windows laptop, you might be stuck with a synaptic touchpad. Those crappy drivers with their so-called virtual scrolling create a fake window below the cursor to display their custom scrolling icon. That window interfere with the signal sent to the application under, and GTK for some reason can&#8217;t detect that (most likely [...]]]></description>
			<content:encoded><![CDATA[<p>When using a Windows laptop, you might be stuck with a synaptic touchpad.</p>
<p>Those crappy drivers with their so-called virtual scrolling create a fake window below the cursor to display their custom scrolling icon.</p>
<p>That window interfere with the signal sent to the application under, and GTK for some reason can&#8217;t detect that (most likely the devs don&#8217;t care about us).</p>
<p>The result is being unable to scroll in popular GTK apps like Wireshark or Pidgin.</p>
<p>After playing with Spy++ and Procmon for some time, I found an interesting registry key that solved my problem.</p>
<p>This setting will disable the custom cursor when you scroll, effectively fixing the scrolling problem in GTK apps.</p>
<p>First you have to open regedit. Navigate to <strong>HKEY_LOCAL_MACHINE\SOFTWARE\Synaptics\SynTPEnh</strong> and create a new <strong>DWORD </strong>called <strong>UseScrollCursor </strong>with a value of 0.</p>
<p>Restart SynTPEh (or reboot).</p>
<p>Scrolling should work in GTK apps now, but you won&#8217;t see the scrolling cursor anymore.<br />
<em><br />
<strong>Update:</strong> If that does not work, you can try to run</p>
<blockquote><p>taskkill /im SynTPEnh.exe</p></blockquote>
<p>Source: <a href="http://forums.mozillazine.org/viewtopic.php?f=38&#038;t=1524405">http://forums.mozillazine.org/viewtopic.php?f=38&#038;t=1524405</a><br />
Thanks to pieter for that link!</em></p>
<p>Happy scrolling!</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alexou.net/2010/07/30/scrolling-in-gtk-apps-with-synaptics-driver/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Businesses that you can&#8217;t trust</title>
		<link>http://blog.alexou.net/2009/10/24/businesses-that-you-cant-trust/</link>
		<comments>http://blog.alexou.net/2009/10/24/businesses-that-you-cant-trust/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 06:00:49 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.alexou.net/?p=378</guid>
		<description><![CDATA[Here is a small list with online and real world companies that you should avoid. This list is meant to get larger with time, you are welcome to leave a comment and I&#8217;ll add the scam company! 1and1.com 1and1.fr: They will charge your credit card without any good reason. They also like to renew products [...]]]></description>
			<content:encoded><![CDATA[<p><em>Here is a small list with online <strong>and</strong> real world companies that you should avoid. This list is meant to get larger with time, you are welcome to leave a comment and I&#8217;ll add the scam company!</em></p>
<ol>
<li><strong><a href="http://www.1and1.com">1and1.com</a> <a href="http://www.1and1.fr">1and1.fr</a>:</strong> They will charge your credit card without any good reason. They also like to renew products which were set to NOT auto renew. Their customer service is not of any help. The best part is that they will send your debt to a collecting agency as little as 15 days after the invoice date, ruining your credit mark for a couple of years. <a href="http://www.dc.bbb.org/report.html?national=y&amp;compid=1040770">BBB link</a></li>
<li><strong><a href="http://Wordans.com">Wordans.com</a>: </strong>Bad customer support. Pain in the ass to get a refund. <a href="http://rhodester.net/why-wordans-com-sucks">More stories</a></li>
<li><strong><a href="http://Allopass.com">Allopass.com</a>:</strong> Unfriendly customer support. No matter how hard you try, they WILL steal a part of your money. Until recently, the telephone number in the contact section was 1-800-555-1212, which is directory assistance. It seems to be fixed now, two years late.</li>
<li><strong><a href="http://rogers.ca">Rogers</a>:</strong> Billing irregularities, hidden fees, technical support located in morocco, telemarketing harassment (even if you&#8217;re not a customer, thanks to their auto dialers) are among the fabulous advantages of being a client.</li>
<li><strong><a href="http://bell.ca">Bell Canada</a>: </strong>Take the description of &#8220;Rogers&#8221; above, and add an even poorer customer support. Even though the customer support is located in Canada, they LOVE to piss you off. And with their unreliable services, you WILL have to call them one day or the other. <a href="http://www.google.ca/search?hl=en&amp;source=hp&amp;q=bell+canada+scam&amp;btnG=Google+Search&amp;meta=&amp;aq=f&amp;oq=">Ask google</a> or <a href="http://www.youtube.com/watch?v=-7GHrF3Y1oo">JF</a></li>
<li><strong>Lexmark</strong>:<strong> </strong>Their printers are piece of trash. They love <a href="http://yro.slashdot.org/story/10/08/24/2229209/Lexmark-Sues-24-Companies-Over-Toner-Cartridge-Patents" target="_blank">suing</a> every after-market ink sellers. Their drivers are worthless, barely work on Linux or Mac.</li>
<li><strong>Paypal </strong><strong>: </strong>Let&#8217;s avoid them for God&#8217;s sakes. They do not have to justify any action, therefore they can (and will) close/suspend/block your account and keep your money.</li>
</ol>
<p><em><br />
All these companies have been confirmed to be scam. You can google their name + scam and find a lot of results. I guess it <span style="text-decoration: underline;">is</span> possible to do business with them without getting scammed. But is it worth the risk?</em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alexou.net/2009/10/24/businesses-that-you-cant-trust/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>24 hours restaurants in Montreal</title>
		<link>http://blog.alexou.net/2009/09/28/24-hour-restaurants-in-montreal/</link>
		<comments>http://blog.alexou.net/2009/09/28/24-hour-restaurants-in-montreal/#comments</comments>
		<pubDate>Mon, 28 Sep 2009 09:16:03 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.alexou.net/?p=347</guid>
		<description><![CDATA[Since I&#8217;m working at night, I spend a lot of time searching good 24hr restaurants in Montreal. I tried every restaurants/stores on the list. This list does NOT includes McDonalds or Dunkin Donuts because they are all 24 hours and can be found easily in most major streets of Montreal. Update: I found a 24hr [...]]]></description>
			<content:encoded><![CDATA[<p><img class="size-medium wp-image-373 alignleft" title="open24hours1" src="http://blog.alexou.net/wp-content/uploads/2009/09/open24hours1-300x186.jpg" alt="open24hours1" width="200" height="86" />Since I&#8217;m working at night, I spend a lot of time searching good 24hr restaurants in Montreal. I tried every restaurants/stores on the list.</p>
<p>This list does NOT includes McDonalds or Dunkin Donuts because they are all 24 hours and can be found easily in most major streets of Montreal.</p>
<p><em>Update: I found a 24hr Subway!</em><br />
<em>Update: I found a 24hr Lafleur restaurant!</em><br />
<span style="font-size:20px;">Restaurants</span></p>
<table style="width: 100%;" border="1">
<tbody>
<tr>
<td style="width: 30%; font-weight: bold;">Miami Deli</td>
<td style="width: 35%;">514-525-0600<br />
3090 Sherbrooke Est</td>
<td>Déli, Pizza, Greek, Fish, Pastas, Sandwiches</td>
</tr>
<tr>
<td style="width: 30%; font-weight: bold;">Piazza Gousta</td>
<td style="width: 35%;">514-364-2072<br />
45 90th Ave, LaSalle</td>
<td>Breakfasts,Déli, Pizza, Greek, Fish, Pastas, Sandwiches</td>
</tr>
<tr>
<td style="width: 30%; font-weight: bold;">Chez la mère</td>
<td>514-725-9391<br />
4028 Rue Masson</td>
<td>Déli, Pizza, Pastas, Sandwiches</td>
</tr>
<tr>
<td style="width: 30%; font-weight: bold;">La banquise</td>
<td>514-525-2415<br />
994 rue Rachel Est</td>
<td>99 types of poutine and other fast food</td>
</tr>
<tr>
<td style="width: 30%; font-weight: bold;">Rapido du plateau</td>
<td>514-284-2188<br />
4494 Rue St-Denis</td>
<td></td>
</tr>
<tr>
<td style="width: 30%; font-weight: bold;">Dunn&#8217;s Famous</td>
<td>514-395-1927<br />
1249 Metcalfe</td>
<td>Smoke Meat</td>
</tr>
<tr>
<td style="width: 30%; font-weight: bold;">Orange Julep</td>
<td>514-738-7486<br />
7700 Boulevard Décarie</td>
<td>Famous orange juice and greasy fast food</td>
</tr>
<tr>
<td style="width: 30%; font-weight: bold;">Yoy Sushi</td>
<td>514-844-9884<br />
4526 Saint-Denis</td>
<td>Sushi and Vietnamese food</td>
</tr>
<tr>
<td style="width: 30%; font-weight: bold;">Tim hortons</td>
<td>30 rue De L&#8217;Église</td>
<td>Donuts, sandwiches, bagel and coffee</td>
</tr>
<tr>
<td style="width: 30%; font-weight: bold;">Tim hortons</td>
<td>8080 boul. Champlain</td>
<td>Donuts, sandwiches, bagel and coffee</td>
</tr>
<tr>
<td style="width: 30%; font-weight: bold;">Piazza Gousta</td>
<td>514-364-2072<br />
45 90th Avenue</td>
<td>Pizza and Deli</td>
</tr>
<tr>
<td style="width: 30%; font-weight: bold;">Le Club Sandwich</td>
<td>1578 Sainte-Catherine Est</td>
<td>Sandwiches and french fries. Hot Spot of the Gay Village</td>
</tr>
<tr>
<td style="width: 30%; font-weight: bold;">Chenoy&#8217;s Deli &amp; Steak House</td>
<td>514-620-2584<br />
3616 Saint John&#8217;s Road</td>
<td>Grills, Fast Food and Deli</td>
</tr>
<tr>
<td style="width: 30%; font-weight: bold;">Casino de Montréal</td>
<td>514-392-2746<br />
1 Ave du Casino</td>
<td>Gambling and all kind of food</td>
</tr>
<tr>
<td style="width: 30%; font-weight: bold;">Subway</td>
<td style="width: 35%;">On Guy corner Maisonneuve</td>
<td>Sandwiches</td>
</tr>
</tbody>
</table>
<p><span style="font-size:20px;">Groceries</span></p>
<table style="width: 100%;" border="1">
<tbody>
<tr>
<td style="width: 40%; font-weight: bold;">Couche tard</td>
<td>4460 verdun street</td>
</tr>
<tr>
<td style="width: 40%; font-weight: bold;">Couche tard</td>
<td>3980 Wellington</td>
</tr>
<tr>
<td style="width: 40%; font-weight: bold;">Inter Marché</td>
<td>1670 Mont-Royal Est</td>
</tr>
<tr>
<td style="width: 40%; font-weight: bold;">Provigo</td>
<td>11281 boulevard Albert-Hudon</td>
</tr>
<tr>
<td style="width: 40%; font-weight: bold;">Supermarché 4 frères</td>
<td>3701 boulevard Saint-Laurent</td>
</tr>
</tbody>
</table>
<p><span style="font-size:20px;">Gas</span></p>
<table style="width: 100%;" border="1">
<tbody>
<tr>
<td style="width: 30%; font-weight: bold;">Esso + Tim horton</td>
<td>700 avenue Atwater</td>
</tr>
<tr>
<td style="width: 30%; font-weight: bold;">Petro Canada</td>
<td>5420 Verdun street</td>
</tr>
</tbody>
</table>
<p><span style="font-size:20px;">Drugstore</span></p>
<table style="width: 100%;" border="1">
<tbody>
<tr>
<td style="width: 30%; font-weight: bold;">Pharmaprix</td>
<td>5122 Côte des Neiges</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://blog.alexou.net/2009/09/28/24-hour-restaurants-in-montreal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux (Fedora 10) sur l&#8217;Apple TV via un disque USB !</title>
		<link>http://blog.alexou.net/2009/01/11/linux-fedora-10-sur-lapple-tv-via-un-disque-usb/</link>
		<comments>http://blog.alexou.net/2009/01/11/linux-fedora-10-sur-lapple-tv-via-un-disque-usb/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 08:26:02 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.alexou.net/?p=327</guid>
		<description><![CDATA[J&#8217;ai récemment fait l&#8217;acquisition d&#8217;une apple tv. Je ne suis pas un fan d&#8217;Apple, encore moins du concept &#8220;on vend nos machines trois fois le prix parce qu&#8217;il y a une pomme dessus&#8221; ou de &#8220;je suis supérieur parce que j&#8217;ai un mac&#8221;, mais l&#8217;apple tv semblait être le meilleur compromis taille/possibilités/prix. D&#8217;ailleurs l&#8217;apple tv [...]]]></description>
			<content:encoded><![CDATA[<p>J&#8217;ai récemment fait l&#8217;acquisition d&#8217;une apple tv. Je ne suis pas un fan d&#8217;Apple, encore moins du concept &#8220;on vend nos machines trois fois le prix parce qu&#8217;il y a une pomme dessus&#8221; ou de &#8220;je suis supérieur parce que j&#8217;ai un mac&#8221;, mais l&#8217;apple tv semblait être le meilleur compromis taille/possibilités/prix. D&#8217;ailleurs l&#8217;apple tv <<out of the box>> ne sert à rien du tout, les possibilités sont extrêmement limités : On ne peut pas écouter de vidéos sur un NAS, il supporte seulement certains codec,  il faut  obligatoirement le synchroniser avec itunes, on ne peut pas naviguer sur Internet etc&#8230;</p>
<p>Mais une fois qu&#8217;on parvient à avoir un accès SSH à la machine, les possibilités sont quasi illimités. En installant XBMC on peut écouter des vidéos en streaming, sur le disque dur de l&#8217;apple tv, sur le réseau, sur un serveur de fichier, sur un serveur ftp et il supporte des dizaines de codecs ! Plus besoin de l&#8217;usine à gaz qu&#8217;est itunes, plus besoin de synchroniser tous les fichiers sur l&#8217;apple tv. À l&#8217;aide de certaines extensions kernel, on peut aussi se passer de xbmc et utiliser quicktime, mais l&#8217;interface est nettement moins complète et raffiner qu&#8217;avec XBMC (ça se résume à un explorateur de fichiers). Avec un peu d&#8217;acharnement on peut faire fonctionner la plupart des applications conçues pour mac os 10.4.9.<br />
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/f6N5BA18Utg&#038;hl=en&#038;fs=1&#038;color1=0x2b405b&#038;color2=0x6b8ab6"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/f6N5BA18Utg&#038;hl=en&#038;fs=1&#038;color1=0x2b405b&#038;color2=0x6b8ab6" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object><br />
Bref, après plusieurs heures de travail et des dizaines de tentatives, je suis parvenu à démarrer un kernel linux sur l&#8217;Apple TV. Jusque là rien d&#8217;extra ordinaire, l&#8217;astuce était déjà connue et utilisé pour modifier l&#8217;apple tv sans l&#8217;ouvrir. Par contre j&#8217;ai trouvé très peu d&#8217;explications pour installer une distribution linux sur un disque dur externe (<strong>sans ouvrir l&#8217;apple tv</strong>). Bref, non content d&#8217;avoir démarré un kernel, je suis parvenu à démarrer une distribution complète depuis un disque dur USB. C&#8217;est loin d&#8217;être utilisable vu l&#8217;extrême lenteur, mais je progresse <img src='http://blog.alexou.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Ce qui ne fonctionne pas:</p>
<ul>
<li>Les résolutions utilisables sont limitées à celle que le boot.efi supporte et pas moyen de contourner l&#8217;overscan si on utilise hdmi (bien que dépendant de la tv, les pilotes nvidia normalement supporte une compensation de l&#8217;overscan).</li>
<li>Le son ne fonctionne pas (peut être corrigé avec le patch de <a href="http://www.mythic-beasts.com/resources/appletv/" target="_blank">mythic beasts</a> ou avec un contrôleur audio USB) et pour HDMI <a href="http://artem-astafyev.blogspot.com/2008/11/hdmi-audio-in-linux-running-on-apple-tv.html">ici</a>.</li>
<li>Impossible de fermer complètement l&#8217;Apple TV(À première vue je dirais que le power supply ne supporte pas le mode veille/arrêt. Bref, l&#8217;acpi. Le problème n&#8217;est pas dû à Linux, même problème avec Mac OS X)</li>
<li>Le Wifi (Je n&#8217;ai pas cherché de solution, sans doute un driver manquant)</li>
</ul>
<p><strong>Mise à jour:</strong></p>
<p>J&#8217;ai réussis à démarrer Ubuntu 8.10 (C&#8217;était plus facile qu&#8217;avec Fedora <img src='http://blog.alexou.net/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' />  ), il est beaucoup plus rapide que Fedora. C&#8217;est probablement en grande partie parce que Fedora démarrait depuis une image compressé et Ubuntu non. Enfin, je ferai plus de tests <img src='http://blog.alexou.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/RUXmEi-fSpw&#038;hl=en&#038;fs=1&#038;color1=0x2b405b&#038;color2=0x6b8ab6"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/RUXmEi-fSpw&#038;hl=en&#038;fs=1&#038;color1=0x2b405b&#038;color2=0x6b8ab6" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.alexou.net/2009/01/11/linux-fedora-10-sur-lapple-tv-via-un-disque-usb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup incrémental avec rsync</title>
		<link>http://blog.alexou.net/2008/11/16/backup-incremental-avec-rsync/</link>
		<comments>http://blog.alexou.net/2008/11/16/backup-incremental-avec-rsync/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 01:25:58 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.alexou.net/?p=298</guid>
		<description><![CDATA[Il existe des centaines de méthodes pour faire des bakups dont une bonne dizaine avec rsync. Rsync étant un outil merveilleux et très puissant, dans ce billet je vais vous expliquer une méthode que j'aime bien qui l'utilise. Pour l'exemple on va prendre pour acquis que la sauvegarde se fait tous les jours, mais ça [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: left;"><a href="http://blog.alexou.net/wp-content/uploads/2008/11/newrsynclogo1.jpg"><img class="size-thumbnail wp-image-312 alignleft" title="newrsynclogo1" src="http://blog.alexou.net/wp-content/uploads/2008/11/newrsynclogo1-150x150.jpg" alt="" width="79" height="79" /></a>Il existe des centaines de méthodes pour faire des bakups dont une bonne dizaine avec rsync. <a href="http://fr.wikipedia.org/wiki/Rsync" target="_blank">Rsync</a> étant un outil merveilleux et très puissant, dans ce billet je vais vous expliquer une méthode que j'aime bien qui l'utilise.</p>
<p>Pour l'exemple on va prendre pour acquis que la sauvegarde se fait tous les jours, mais ça pourrait aussi bien être toutes les semaines, tous les deux jours, etc... Cette méthode permet donc de garder une sauvegarde des trois derniers jours mais sans utiliser trois fois l'espace.</p>
<p>Quelques avantages de cette méthode:</p>
<ul>
<li>On ne copie que les fichiers qui ont changés donc utilisation moindre d'espace et un backup beaucoup plus rapide.</li>
<li>On peut remonter trois jours en arrière sans se casser la tête (Souvent les backups incrémentaux garde juste les fichiers qui ont changé, donc pour restaurer un backup on doit tout reconstruire en partant du backup le plus ancien au plus récent.... Nous on va tricher, on va faire semblant que chaque backup est une image complète du dossier source <img src='http://blog.alexou.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  )</li>
</ul>
<p><span id="more-298"></span></p>
<p>Tout d'abord voici de quoi aurait l'air le script bash:</p>
<div style="overflow:scroll">
<pre>#!/bin/sh
TARGET=/mnt/sda2/backups
SOURCE=/home/
/bin/rm -Rf $TARGET/backup.2
/bin/mv $TARGET/backup.1 $TARGET/backup.2
/bin/mv $TARGET/backup.0 $TARGET/backup.1
/usr/bin/rsync -a --no-o --delete --safe-links --link-dest=$TARGET/backup.1 $SOURCE $TARGET/backup.0/</pre>
</div>
<p>Explication:</p>
<p><strong>SOURCE </strong>est le dossier que vous désirez sauvegarder.</p>
<p><strong>TARGET </strong>est la destination des sauvegardes (de préférence un disquedur différent ou, au moins, une partition différente).</p>
<p>Dans le dossier $TARGET vous devez créer trois dossiers: backup.0, backup.1 et backup.2. Ceux si contiendront vos sauvegardes d'aujourd'hui, d'hier et d'avant hier respectivement.</p>
<p>Le script commence par supprimer le dossier <strong>backup.2</strong> qui est le plus ancien backup. Il décale les autres dossiers afin de pouvoir créé un nouveau backup.0, c'est à dire le plus récent (aujourd'hui).</p>
<p>La magie se passe dans la dernière ligne. Rsync va scanner le dossier source en le comparant avec la sauvegarde du jour précédent (--link-dest=$TARGET/backup.1). Il va vérifier tous les fichiers trouvés dans le répertoire source et les comparer avec ceux du jour précédent, backup.1. Lorsqu'il trouve un fichier qui a changé depuis la dernière sauvegarde, il le copie dans backup.0. Par contre, et c'est là toute la beauté de la chose, si le fichier n'a PAS changé, il va créé un <a href="http://fr.wikipedia.org/wiki/Lien_mat%C3%A9riel" target="_blank">lien dur</a> vers le fichier se trouvant dans la sauvegarde d'hier.</p>
<p>De cette façon chaque dossier de sauvegarde backup.0, backup.1 et backup.2 seront des images "complètes" de votre dossier source, mais les fichiers identiques entre les sauvegardes seront stoqués une seule fois sur le disque !</p>
<p>Et voila c'est tout, vous n'avez plus qu'à planifier un cron pour que le script se lance tous les jours à la même heure ! La prochaine fois je vous expliquerai comment faire ça mais en stockant le backup sur un serveur distant, parce que après tout, c'est pour ça que rsync a été conçu au départ <img src='http://blog.alexou.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<h5>Note: Si vous utilisez une vielle version de rsync, il se peut que l'argument --link-dest n'existe pas ou soit brisé, voici donc une version alternative. Cette version va dupliquer la journée d'hier (en créant des <a href="http://en.wikipedia.org/wiki/Hard_link" target="_blank">liens durs</a>, pas des copies) et ensuite rsync va simplement synchroniser ça avec la version actuelle. Ça revient exactement au même résultat que l'autre script, mais beaucoup moins efficace en terme de vitesse:</h5>
<div style="overflow:scroll">
<pre>#!/bin/sh
TARGET=/mnt/sda2/backups
SOURCE=/home/
/bin/rm -Rf $TARGET/backup.2
/bin/mv $TARGET/backup.1 $TARGET/backup.2
cp -al $TARGET/backup.0 $TARGET/backup.1
/usr/bin/rsync -a --no-o --delete --safe-links $SOURCE $TARGET/backup.0/</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.alexou.net/2008/11/16/backup-incremental-avec-rsync/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Configurer le message de connexion Windows 2003</title>
		<link>http://blog.alexou.net/2008/11/16/configurer-le-message-de-connexion-windows-2003/</link>
		<comments>http://blog.alexou.net/2008/11/16/configurer-le-message-de-connexion-windows-2003/#comments</comments>
		<pubDate>Sun, 16 Nov 2008 23:57:48 +0000</pubDate>
		<dc:creator>alex</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.alexou.net/?p=291</guid>
		<description><![CDATA[Vous pouvez configurer un message qui va s&#8217;afficher dès la connexion d&#8217;un utilisateur via remote desktop. Lorsque l&#8217;utilisateur aura cliqué sur OK, le message disparaîtra et il pourra terminer la procédure de connexion. Ce message sert générallement à afficher une notice de bienvenue, des avertissements ou des nouvelles. Connectez vous en tant qu&#8217;administrateur sur votre [...]]]></description>
			<content:encoded><![CDATA[<p>Vous pouvez configurer un message qui va s&#8217;afficher dès la connexion d&#8217;un utilisateur via remote desktop. Lorsque l&#8217;utilisateur aura cliqué sur OK, le message disparaîtra et il pourra terminer la procédure de connexion.</p>
<p>Ce message sert générallement à afficher une notice de bienvenue, des avertissements ou des nouvelles.</p>
<ol>
<li>Connectez vous en tant qu&#8217;administrateur sur votre serveur à l&#8217;aide de remote desktop.</li>
<li> Cliquez sur &#8220;Start&#8221; -&gt; &#8220;Administrative Tools&#8221; -&gt;   &#8220;Local Security Policy.&#8221;<br />
<a href="http://blog.alexou.net/wp-content/uploads/2008/11/security-policy-start-menu.png"><img class="alignnone size-medium wp-image-292" title="security-policy-start-menu" src="http://blog.alexou.net/wp-content/uploads/2008/11/security-policy-start-menu-300x225.png" alt="" width="300" height="225" /></a></li>
<li>Allez dans &#8220;Local Policies&#8221;-&gt;&#8221;Security Options&#8221;. Dans le panneau de droite recherchez les lignes &#8220;Interactive logon: Message text for users attempting to log on&#8221; et &#8220;Interactive logon: Title for users attempting to log on&#8221;.<br />
<a href="http://blog.alexou.net/wp-content/uploads/2008/11/security-policy-options.png"><img class="alignnone size-medium wp-image-293" title="security-policy-options" src="http://blog.alexou.net/wp-content/uploads/2008/11/security-policy-options-300x225.png" alt="" width="300" height="225" /></a></li>
<li>Double cliquez sur les lignes afin de changer le titre et le message de sécurité qui apparaîtra.<br />
<a href="http://blog.alexou.net/wp-content/uploads/2008/11/change-interactive-login-message.png"><img class="alignnone size-medium wp-image-294" title="change-interactive-login-message" src="http://blog.alexou.net/wp-content/uploads/2008/11/change-interactive-login-message-300x225.png" alt="" width="300" height="225" /></a></li>
<li>C&#8217;est déjà tout ! <img src='http://blog.alexou.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://blog.alexou.net/2008/11/16/configurer-le-message-de-connexion-windows-2003/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
