<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://jennyandlih.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>firefox</title>
 <link>http://jennyandlih.com/note-type/tech/firefox</link>
 <description>The taxonomy view.</description>
 <language>en</language>
<item>
 <title>UTF8 in Crowbar</title>
 <link>http://jennyandlih.com/utf8-crowbar</link>
 <description>&lt;p&gt;Crowbar is an awesome scraping tool, but it messes up if the page contains non ascii characters. After snooping around crowbar&#039;s source, the following is a &quot;fix&quot; I came up with.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;var converter = Components.classes[&amp;quot;@mozilla.org/intl/converter-output-stream;1&amp;quot;].&lt;br /&gt;							&amp;nbsp; createInstance(Components.interfaces.nsIConverterOutputStream);&lt;br /&gt;converter.init(outstream, &amp;quot;UTF-8&amp;quot;, 0, 0);&lt;br /&gt;converter.writeString(response);&lt;br /&gt;//outstream.write(response, response.length); //&amp;lt;-----original &lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://jennyandlih.com/utf8-crowbar#comments</comments>
 <category domain="http://jennyandlih.com/note-type/tech/firefox">firefox</category>
 <category domain="http://jennyandlih.com/note-type/tech/other">Other</category>
 <pubDate>Sat, 29 Jan 2011 23:12:07 -0700</pubDate>
 <dc:creator>lih</dc:creator>
 <guid isPermaLink="false">2200 at http://jennyandlih.com</guid>
</item>
<item>
 <title>URI Encoding an image</title>
 <link>http://jennyandlih.com/uri-encoding-image</link>
 <description>&lt;p&gt;I&#039;ve known for some time that it&#039;s possible to embed an image into CSS (useful for greasemonkey scripts), using a format like so:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;url(data:[mimetype];base64,[data])&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;...where [mimetype] is the mime type of your data (eg, image/png).&lt;/p&gt;
&lt;p&gt;It&#039;s eluded me until now how exactly to get at the [data] bit of this equation.  This is simply the base64 encoded string of the actual bytes of the file, which you can get like so:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;cat foo.png | base64&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;This will spit a bunch of garbage to your screen, which you copy and paste into the [data] placeholder.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://jennyandlih.com/uri-encoding-image&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://jennyandlih.com/uri-encoding-image#comments</comments>
 <category domain="http://jennyandlih.com/note-type/tech/firefox">firefox</category>
 <category domain="http://jennyandlih.com/note-type/tech/linux-commands">Linux Commands</category>
 <pubDate>Fri, 19 Jun 2009 17:34:06 -0600</pubDate>
 <dc:creator>jenny</dc:creator>
 <guid isPermaLink="false">1783 at http://jennyandlih.com</guid>
</item>
<item>
 <title>Setting print margins on Firefox 3 (linux)</title>
 <link>http://jennyandlih.com/setting-print-margins-firefox-3-linux</link>
 <description>&lt;ul class=&quot;easylist&quot;&gt;
&lt;li&gt; File -&amp;gt; Page Setup
&lt;/li&gt;
&lt;li&gt; Paper Size -&amp;gt; Manage Custom Size
&lt;/li&gt;
&lt;li&gt; Enter Margins and Close
&lt;/li&gt;
&lt;li&gt; Select new custom setting
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Not exactly intuitive...&lt;/p&gt;
</description>
 <comments>http://jennyandlih.com/setting-print-margins-firefox-3-linux#comments</comments>
 <category domain="http://jennyandlih.com/note-type/tech/firefox">firefox</category>
 <pubDate>Sun, 22 Feb 2009 21:49:13 -0700</pubDate>
 <dc:creator>jenny</dc:creator>
 <guid isPermaLink="false">1369 at http://jennyandlih.com</guid>
</item>
<item>
 <title>Firefox caches form values</title>
 <link>http://jennyandlih.com/firefox-caches-form-values</link>
 <description>&lt;p&gt;Firefox caches form values.  Most noticeably, it caches the selected position on select boxes.  I less often run into cached checkbox and radio button values... even the occasional cached text box value.  If you&#039;re a developer, you will be familiar with this and its work-around -- clicking into the url box and hitting enter rather than refreshing while debugging.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://jennyandlih.com/firefox-caches-form-values&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://jennyandlih.com/firefox-caches-form-values#comments</comments>
 <category domain="http://jennyandlih.com/note-type/tech/drupal">Drupal</category>
 <category domain="http://jennyandlih.com/note-type/tech/firefox">firefox</category>
 <pubDate>Thu, 11 Dec 2008 19:25:01 -0700</pubDate>
 <dc:creator>jenny</dc:creator>
 <guid isPermaLink="false">881 at http://jennyandlih.com</guid>
</item>
<item>
 <title>Resolved: Logging to Firebug console breaks IE</title>
 <link>http://jennyandlih.com/resolved-logging-firebug-console-breaks-ie</link>
 <description>&lt;p&gt;The firebug console is great for debugging javascript -- but it&#039;s &lt;b&gt;really&lt;/b&gt; annoying when you want to quickly check something in IE and can&#039;t without first removing all your debug statements to avoid a bunch of javascript errors.&lt;/p&gt;
&lt;p&gt;Here&#039;s a handy log function which checks first that firebug is in use before trying to log to the console.  The function is a no-op in IE.&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;log_debug = function() {&lt;br /&gt;&amp;nbsp; if(window.console &amp;amp;&amp;amp; window.console.firebug) console.log.apply(this, arguments)&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;log_debug(&amp;#039;foo&amp;#039;, &amp;#039;bar&amp;#039;, &amp;#039;bash&amp;#039;)&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
</description>
 <comments>http://jennyandlih.com/resolved-logging-firebug-console-breaks-ie#comments</comments>
 <category domain="http://jennyandlih.com/note-type/tech/firefox">firefox</category>
 <category domain="http://jennyandlih.com/note-type/tech/javascript">JavaScript</category>
 <category domain="http://jennyandlih.com/note-type/tech/jquery">jQuery</category>
 <category domain="http://jennyandlih.com/note-type/tech/windoze">Windoze</category>
 <pubDate>Sat, 07 Jun 2008 18:05:15 -0600</pubDate>
 <dc:creator>jenny</dc:creator>
 <guid isPermaLink="false">652 at http://jennyandlih.com</guid>
</item>
<item>
 <title>Tab switching keybindings</title>
 <link>http://jennyandlih.com/tab-switching-keybindings</link>
 <description>&lt;p&gt;For some reason, I always forget this exists.&lt;/p&gt;
&lt;p&gt;Switching tabs left-to-right: &lt;code&gt;Ctrl+Tab&lt;/code&gt;&lt;br /&gt;
Switch tabs right-to-left: &lt;code&gt;Shift+Ctrl+Tab&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;More shortcut keys here:&lt;br /&gt;
&lt;a href=&quot;http://lifehacker.com/software/feature/hack-attack-mouseless-firefox-139495.php&quot; title=&quot;http://lifehacker.com/software/feature/hack-attack-mouseless-firefox-139495.php&quot;&gt;http://lifehacker.com/software/feature/hack-attack-mouseless-firefox-139495.php&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;They claim that you can switch between tabs 1-9 with &lt;code&gt;Ctrl+[1-9]&lt;/code&gt;, but on firefox/linux that functionality is actually &lt;code&gt;Alt+[1-9]&lt;/code&gt;.&lt;/p&gt;
</description>
 <comments>http://jennyandlih.com/tab-switching-keybindings#comments</comments>
 <category domain="http://jennyandlih.com/note-type/tech/firefox">firefox</category>
 <pubDate>Thu, 13 Mar 2008 19:36:06 -0600</pubDate>
 <dc:creator>jenny</dc:creator>
 <guid isPermaLink="false">484 at http://jennyandlih.com</guid>
</item>
<item>
 <title>Turning on firefox emacs keybindings</title>
 <link>http://jennyandlih.com/turning-firefox-emacs-keybindings</link>
 <description>&lt;ul class=&quot;easylist&quot;&gt;
&lt;li&gt; Run gconf-editor from the command line
&lt;/li&gt;
&lt;li&gt; Change the key &lt;code&gt;/desktop/gnome/interface/gtk_key_theme&lt;/code&gt; from &quot;Default&quot; to &quot;Emacs&quot;
&lt;/li&gt;
&lt;li&gt; Restart Firefox
&lt;/li&gt;
&lt;/ul&gt;
</description>
 <comments>http://jennyandlih.com/turning-firefox-emacs-keybindings#comments</comments>
 <category domain="http://jennyandlih.com/note-type/tech/emacs">Emacs</category>
 <category domain="http://jennyandlih.com/note-type/tech/firefox">firefox</category>
 <category domain="http://jennyandlih.com/note-type/tech/gnome">Gnome</category>
 <pubDate>Fri, 30 Nov 2007 21:30:15 -0700</pubDate>
 <dc:creator>jenny</dc:creator>
 <guid isPermaLink="false">335 at http://jennyandlih.com</guid>
</item>
<item>
 <title>Open certain tabs by default in firefox</title>
 <link>http://jennyandlih.com/open-certain-tabs-default-firefox</link>
 <description>&lt;p&gt;Open the tabs you&#039;d like to have opened on startup.&lt;/p&gt;
&lt;p&gt;linux:&lt;br /&gt;
Go to Edit &amp;gt; Preferences &amp;gt; Main &amp;gt; and in the Startup section, click on the &quot;Use Current Pages&quot; button.&lt;/p&gt;
&lt;p&gt;(windows?)&lt;br /&gt;
Go to Tools &amp;gt; Options &amp;gt; Main &amp;gt; and in the Startup section, click on the &quot;Use Current Pages&quot; button.&lt;/p&gt;
&lt;p&gt;Hit OK and those tabs will open up each time you start Firefox.&lt;/p&gt;
</description>
 <comments>http://jennyandlih.com/open-certain-tabs-default-firefox#comments</comments>
 <category domain="http://jennyandlih.com/note-type/tech/firefox">firefox</category>
 <pubDate>Fri, 17 Aug 2007 13:43:50 -0600</pubDate>
 <dc:creator>jenny</dc:creator>
 <guid isPermaLink="false">133 at http://jennyandlih.com</guid>
</item>
</channel>
</rss>

