<?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>fusi0n &#187; Firefox</title>
	<atom:link href="http://fusi0n.org/tag/firefox/feed" rel="self" type="application/rss+xml" />
	<link>http://fusi0n.org</link>
	<description>pL&#039;s blog on tech/mobile</description>
	<lastBuildDate>Tue, 31 Jan 2012 10:29:45 +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>Installing mod_pagespeed on CentOS (cPanel/WHM)</title>
		<link>http://fusi0n.org/linux/installing-googles-mod_pagespeed-on-centos-with-cpanel-and-whm</link>
		<comments>http://fusi0n.org/linux/installing-googles-mod_pagespeed-on-centos-with-cpanel-and-whm#comments</comments>
		<pubDate>Thu, 11 Nov 2010 00:27:02 +0000</pubDate>
		<dc:creator>pluc</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[HOWTO]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[WHM]]></category>

		<guid isPermaLink="false">http://fusi0n.org/?p=1360</guid>
		<description><![CDATA[This month, Google announced the release of an Apache module to optimize rendering times called mod_pagespeed. They've long been on to the optimization wagon: last year, they released "Page Speed", a Firefox extension to help developers optimize their pages and embed most of mod_pagespeed's diagnostics in their Webmaster Tools platform. If you want to install [...]]]></description>
			<content:encoded><![CDATA[<p>This month, Google <a href="http://googlewebmastercentral.blogspot.com/2010/11/make-your-websites-run-faster.html" target="_blank">announced</a> the release of an <a href="http://httpd.apache.org" target="_blank">Apache</a> module to optimize rendering times called <a href="http://code.google.com/speed/page-speed/docs/module.html" target="_blank">mod_pagespeed</a>. They've long been on to the optimization wagon: <a href="http://googlewebmastercentral.blogspot.com/2009/06/introducing-page-speed.html" target="_blank">last year</a>, they released "<a href="http://code.google.com/speed/page-speed/" target="_blank">Page Speed</a>", a Firefox extension to help developers optimize their pages and <a href="https://www.google.com/webmasters/tools/labs-site-performance-1" target="_blank">embed</a> most of mod_pagespeed's diagnostics in their <a href="https://www.google.com/webmasters/tools" target="_blank">Webmaster Tools</a> platform. If you want to install mod_pagespeed on your CentOS server running cPanel and WHM, you might have a few problems since the mod_pagespeed RPM depends on the httpd 2.2 package and it usually isn't installed when running cPanel/WHM since those app want to be able to control versioning themselves and not through <a title="YUM" href="http://yum.baseurl.org/" target="_blank">YUM</a>, so we'll do it manually. This guide is intended for 32bit CentOS servers where you have superuser privileges on and run cPanel and WHM. If you're running a 64bit, simply adapt the various paths and files used throughout this article.</p>
<p>What you need to do is rather simple and safe. It does involve modifying the Apache configuration files though, so make backups of every file mentioned in this article if you feel the need to. <span id="more-1360"></span></p>
<p>While you could <a href="http://code.google.com/p/modpagespeed/wiki/HowToBuild" target="_blank">build mod_pagespeed from the source</a>, (with the official <a href="http://code.google.com/p/modpagespeed/wiki/HowToBuild" target="_blank">instructions provided on the mod_pagespeed wiki</a>) we'll use the RPM binaries that you can get for your distribution <a href="http://code.google.com/speed/page-speed/download.html" target="_blank">here</a>. I suggest you copy the appropriate file's URL (such as <em>https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_i386.rpm</em>) so you can <a href="http://www.gnu.org/software/wget/" target="_blank"><em>wget</em></a> it later. Here goes some shell code you'll want to <strong>run as root</strong>:</p>
<pre class="brush: bash; title: ; notranslate">
cd /usr/local/src
mkdir mod_pagespeed
cd mod_pagespeed
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-beta_current_i386.rpm
rpm2cpio mod-pagespeed-beta_current_i386.rpm | cpio -idmv
cp /usr/local/src/mod-pagespeed/usr/lib/httpd/modules/mod_pagespeed.so /usr/local/apache/modules/
cp /usr/local/src/mod-pagespeed/etc/httpd/conf.d/pagespeed.conf /usr/local/apache/conf/
chmod 755 /usr/local/apache/modules/mod_pagespeed.so
mkdir /var/mod_pagespeed/{cache,files} -p
chown nobody:nobody /var/mod_pagespeed/*
</pre>
<p>mod_pagespeed has a dependency that you'll want to enable: mod_deflate (the httpd source directory (2.2.16) may vary depending on your install):</p>
<pre class="brush: bash; title: ; notranslate">
/usr/local/apache/bin/apxs -c -i /home/cpeasyapache/src/httpd-2.2.16/modules/filters/mod_deflate.c
</pre>
<p>After that, we'll have to edit the mod_pagespeed configuration file located at <em>/usr/local/apache/conf/pagespeed.conf</em> to reflect the correct paths, the LoadModule directives should fetch the modules in "<em>modules/module_name.so</em>":</p>
<pre class="brush: plain; title: ; notranslate">LoadModule pagespeed_module modules/mod_pagespeed.so
LoadModule deflate_module modules/mod_deflate.so
ModPagespeedFileCachePath            &amp;quot;/var/mod_pagespeed/cache/&amp;quot;
ModPagespeedGeneratedFilePrefix      &amp;quot;/var/mod_pagespeed/files/&amp;quot;</pre>
<p>After that, we'll need to include the mod_pagespeed configuration in Apache's configuration file (<em>/usr/local/apache/conf/httpd.conf</em>):</p>
<pre class="brush: plain; title: ; notranslate">Include â€œconf/pagespeed.confâ€</pre>
<p>And finally, restart your HTTP server by issuing a <em>service httpd restart</em> command. Once your web server fires up, it'll be mod_pagespeed-enabled. If all goes well, you should be able to see a new "<em>X-Mod-Pagespeed</em>" header when requesting resources on your server.</p>
]]></content:encoded>
			<wfw:commentRss>http://fusi0n.org/linux/installing-googles-mod_pagespeed-on-centos-with-cpanel-and-whm/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Firefox Quick Searches with Smart Keywords</title>
		<link>http://fusi0n.org/productivity/firefox-quick-searches-with-smart-keywords</link>
		<comments>http://fusi0n.org/productivity/firefox-quick-searches-with-smart-keywords#comments</comments>
		<pubDate>Mon, 16 Feb 2009 01:05:41 +0000</pubDate>
		<dc:creator>pluc</dc:creator>
				<category><![CDATA[Productivity]]></category>
		<category><![CDATA[Firefox]]></category>
		<category><![CDATA[gtd]]></category>
		<category><![CDATA[HOWTO]]></category>

		<guid isPermaLink="false">http://blog.fusi0n.org/?p=582</guid>
		<description><![CDATA[One thing I've never understood about Firefox users is how they use Firefox's buit-in search box. It's a nice feature and it's extendable, I'll give you that, but I find there is something so much more powerful and convenient also built into Firefox that doesn't get the credit it deserves: Quick Searches (or Smart Keywords). [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-583" title="Firefox Search Suggestion" src="https://fusi0n.org/wp-content/uploads/2009/02/search-suggestions1.png" alt="Firefox Search Suggestion" width="186" height="188" />One thing I've never understood about Firefox users is how they use Firefox's buit-in search box. It's a nice feature and <a title="Firefox Search Engines Addons" href="https://addons.mozilla.org/en-US/firefox/browse/type:4" target="_blank">it's extendable</a>, I'll give you that, but I find there is something so much more powerful and convenient also built into Firefox that doesn't get the credit it deserves: Quick Searches (or <a title="Firefox Smart Keywords" href="http://www.mozilla.org/products/firefox/smart-keywords.html" target="_blank">Smart Keywords</a>). It's not even mentioned on the <a title="Firefox Features" href="http://www.mozilla.com/en-US/firefox/features/" target="_blank">Firefox Features page</a>! The idea of quick searches is relatively simple. It's a bookmark with a keyword. You use that keyword to access the bookmark. You can add parameters to your keyword in such a way that Firefox will replace a given string in the bookmark's URL with your parameter, therefore making it a powerful <a title="Hypertext Transfer Protocol Request Methods" href="http://en.wikipedia.org/wiki/HTTP#Request_methods" target="_blank">GET URL</a> shortcut.</p>
<p>With the recent addition of the Awesome Bar (or<a title="Firefox Smart Location Bar" href="http://www.mozilla.com/en-US/firefox/features/#location-bar" target="_blank"> Smart Location Bar</a>) since Firefox 3, the location bar has become the place where most power users will type their queries in. Why use another box to query specific search engines/sites? You can access the location bar effortlessly with F6 or with a mouse click, so why would you bother with a whole other bar for the same purposes as the main one?<span id="more-582"></span></p>
<h4>Here's how to create a Firefox Quick Search bookmark.</h4>
<h5>Method #1 - The manual one (so you understand what you're doing!)</h5>
<div id="attachment_585" class="wp-caption alignleft" style="width: 356px"><img class="size-full wp-image-585" title="Firefox Bookmark Folder Creation" src="https://fusi0n.org/wp-content/uploads/2009/02/folder1.png" alt="Firefox Bookmark Folder Creation" width="346" height="169" /><p class="wp-caption-text">Firefox Bookmark Folder Creation</p></div>
<p>First, I suggest you create a 'Quick Searches' bookmark for the sake of clarity. It's simple enough to do so: in your menu bar, click 'Bookmarks' then 'Organize Bookmarks'. Once the Bookmark Organizer window comes up, right click on 'Bookmark Menu' and select 'New Folder'. Name it whatever you want; I use 'Quick Searches' with a self-explanatory description that reads 'Firefox Quick Searches'. Once that's done, we're set to start adding our shortcuts, and this is where you realize the potential of this feature. Say you want to make a shortcut for a Google search, which is something everyone uses dozens of times a day. First, go to the regular Google site and perform a search for a simple word, like "test". You'll be directed to the results page with an URL that looks like this: <em>http://www.google.ca/search?hl=en&amp;q=<span style="text-decoration: underline;"><strong>test</strong></span>&amp;btnG=Google+Search&amp;meta=</em>. You need some very basic understanding of URLs at this point. Everything after the "?" symbol is called a query string. Every item is divided in key/value pairs and separated by an ampersand (&amp;). So we have the "hl" key that is set to "en", the "q" key set to "test", and so on. What interests us here is the "q" (query) key and its value. Obviously you've noticed that the value is set to that of your Google query, and it may be URL encoded (spaces replaced by "+" and such). Copy the URL, and get back to the Firefox Bookmark Organizer.</p>
<div id="attachment_588" class="wp-caption alignright" style="width: 356px"><img class="size-full wp-image-588" title="Firefox Quick Search Bookmark" src="https://fusi0n.org/wp-content/uploads/2009/02/picture-31.png" alt="Firefox Quick Search Bookmark" width="346" height="249" /><p class="wp-caption-text">Firefox Quick Search Bookmark</p></div>
<p>In the Bookmark Organizer, in your newly created folder, create a new bookmark. In the window that opens, enter "Google" as name and paste the URL you got from your Google search in the "Location" field. All we need to do then is edit the URL a bit. I've shortened it to <em>http://www.google.ca/search?hl=en&amp;q=test</em> because I know Google doesn't need the <em>btnG</em> and <em>meta</em> keys in order to perform a search. All that's left to do then is replace your initial query ("test") with the magic string "%s". Basically, that will tell Firefox to replace "%s" with whatever you're passing to the keywords. Set a short keyword, like "g" or "gg", enter an optional description and click "Add". That's it, you just added a quick search to Firefox. Now in order to use it, just write the keyword in the location bar followed by your query "g Firefox" and it will take you directly to Google's search results for your arguments!</p>
<p>That was easy, wasn't it?</p>
<h5>Method #2 - The lazy one</h5>
<div id="attachment_594" class="wp-caption alignleft" style="width: 218px"><img class="size-full wp-image-594" title="Firefox Smart Keyword Context Menu" src="https://fusi0n.org/wp-content/uploads/2009/02/smart-keywords-21.png" alt="Firefox Smart Keyword Context Menu" width="208" height="135" /><p class="wp-caption-text">Smart Keyword Context Menu</p></div>
<p>There's another convenient way to add Firefox quick searches. When you come across a search box you can right click on it and select "Add a keyword for this search". A dialog will pop up asking you to provide a name and keyword for the new Quick Search. Once you do that, your new Quick Search should be accessible the same manner as the manual creation example, using your keyword in the location bar.<br />
So isn't that better than clicking away from the location bar, selecting the search engine you want to use and writing your query there? All you have to do is clear the location bar and type "g query" and you're at the result page of Google. I find that much more productive than its alternatives. Oh, and don't forget to get rid of the Search Box that now uselessly clutters your Firefox GUI <img src='http://fusi0n.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Here are a few good-to-have Firefox Quick Searches (Right click and "Bookmark This Link" or right click in the text box and select "Add keyword for this search" to save):</p>
<ul>
<li> <a title="YouTube Search" href="http://www.youtube.com/results?search_query=%s&amp;search_type=&amp;aq=f">YouTube</a> (keyword: yt)<br />
<form action="http://www.youtube.com/results">
<input name="search_query" type="text" />
<input name="aq" type="hidden" value="f" /></form>
</li>
<li> <a title="PHP Manual Search" href="http://docs.php.net/manual-lookup.php?pattern=%s">PHP Manual</a> (keyword: php)<br />
<form action="http://docs.php.net/manual-lookup.php">
<input name="pattern" type="text" /></form>
</li>
<li> <a title="Ubuntu Packages Search (Intrepid)" href="http://packages.ubuntu.com/search?keywords=%s&amp;searchon=names&amp;suite=jaunty&amp;section=all">Ubuntu Jaunty Packages</a> (keyword: apt)<br />
<form action="http://packages.ubuntu.com/search">
<input name="keywords" type="text" />
<input name="searchon" type="hidden" value="names" />
<input name="suite" type="hidden" value="intrepid" />
<input name="section" type="hidden" value="all" /></form>
</li>
<li> <a title="IMDB Search" href="http://www.imdb.com/find?s=all&amp;q=%s&amp;x=0&amp;y=0">IMDB</a> (keyword: imdb)<br />
<form>
<input name="s" type="hidden" value="all" />
<input name="q" type="text" /></form>
</li>
<li> <a title="Twitter Search" href="http://search.twitter.com/search?q=%s">Twitter</a> (keyword: st)<br />
<form action="http://search.twitter.com/search">
<input name="q" type="text" /></form>
</li>
<li> <a title="del.icio.us Search" href="http://delicious.com/search?p=%s&amp;context=main&amp;fr=del_icio_us&amp;lc=0">del.icio.us</a> (keyword: del)<br />
<form>
<input name="p" type="text" />
<input name="context" type="hidden" value="main" />
<input name="fr" type="hidden" value="del_icio_us" />
<input name="lc" type="hidden" value="0" /></form>
</li>
<li> <a title="Flickr Search" href="http://flickr.com/search/?q=asd&amp;m=text">Flickr</a> (keyword: flickr)<br />
<form action="http://flickr.com/search/">
<input name="q" type="text" />
<input name="m" type="hidden" value="text" /></form>
</li>
<li> <a title="Acronym Finder Search" href="http://www.acronymfinder.com/af-query.asp?Acronym=%s&amp;String=exact">Acronym Finder</a> (keyword: acro)<br />
<form action="http://www.acronymfinder.com/af-query.asp">
<input name="Acronym" type="text" />
<input name="String" type="hidden" value="exact" /></form>
</li>
<li> <a title="Wikipedia Search" href="http://en.wikipedia.org/wiki/Special:Search?search=%s">Wikipedia</a> (keyword: w)<br />
<form action="http://en.wikipedia.org/wiki/Special:Search">
<input name="search" type="text" /></form>
</li>
<li> <a title="Urban Dictionary Search" href="http://www.urbandictionary.com/define.php?term=%s">Urban Dictionary</a> (keyword: slang)<br />
<form action="http://www.urbandictionary.com/define.php">
<input name="term" type="text" /></form>
</li>
<li> <a title="WordPress Plugins Search" href="http://wordpress.org/extend/plugins/search.php?q=%s">WordPress plugins</a> (keyword: wp)<br />
<form action="http://wordpress.org/extend/plugins/search.php">
<input name="q" type="text" /></form>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://fusi0n.org/productivity/firefox-quick-searches-with-smart-keywords/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

