<?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>PCR&#039;s notepad &#187; David Dernoncourt</title>
	<atom:link href="http://notepad.patheticcockroach.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://notepad.patheticcockroach.com</link>
	<description>The area in patheticcockroach.com where the EEG isn&#039;t isoelectric</description>
	<lastBuildDate>Sun, 05 Feb 2012 12:11:36 +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>R: working around &#8220;error in La.svd Lapack routine &#8216;dgesdd&#8217;&#8221;</title>
		<link>http://notepad.patheticcockroach.com/2746/r-working-around-error-in-la-svd-lapack-routine-dgesdd/</link>
		<comments>http://notepad.patheticcockroach.com/2746/r-working-around-error-in-la-svd-lapack-routine-dgesdd/#comments</comments>
		<pubDate>Fri, 03 Feb 2012 03:04:03 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[programming]]></category>
		<category><![CDATA[R (R-project)]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=2746</guid>
		<description><![CDATA[That&#8217;s a quite enigmatic and unhelpful error message that apparently can be tracked down to some stuff written in *cough* Fortran (source, look for message 26). I don&#8217;t really have a sure solution, but I did manage to evade that error with, so far, a 100% success rate. I got the error while doing some [...]]]></description>
			<content:encoded><![CDATA[<p>That&#8217;s a quite enigmatic and unhelpful error message that apparently can be tracked down to some stuff written in *cough* Fortran (<a href="https://stat.ethz.ch/pipermail/r-help/2010-May/237778.html">source, look for message 26</a>).</p>
<p>I don&#8217;t really have a sure solution, but I did manage to evade that error with, so far, a 100% success rate. I got the error while doing some machine learning (feature selection + classification task, not sure at which step it broke), and I noticed that even though it was in a pretty large loop, it seemed to be 100% reproducible for me (loop always crashing on the same iteration). I realized that I was using <code>set.seed()</code> in order to get more stable results (I&#8217;m generating lots of artificial data, and having them vary between various experimental conditions adds unwanted noise), and so I thought, since this seems to usually be a random error, maybe setting another seed would work. And indeed it did: changing the seed from 100 to 99 in my case &#8220;solved&#8221; the issue.</p>
<p>Long story short: If it occurs randomly and you don&#8217;t use a seed, if this is a possibility do try setting a seed (try a few if it doesn&#8217;t work the first time). If it occurs deterministically and you do use a seed, try another seed value (same, try a few if needed).<br />
If it occurs deterministically and you don&#8217;t use a seed, I&#8217;m not sure setting a seed would help. If it occurs randomly and you do use a seed, I really don&#8217;t think changing the seed would help. But I guess it costs nothing to try&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/2746/r-working-around-error-in-la-svd-lapack-routine-dgesdd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to safely erase (wipe out) files or folders on Linux</title>
		<link>http://notepad.patheticcockroach.com/2717/safely-erasing-wipe-out-files-or-folders-on-linux/</link>
		<comments>http://notepad.patheticcockroach.com/2717/safely-erasing-wipe-out-files-or-folders-on-linux/#comments</comments>
		<pubDate>Wed, 01 Feb 2012 07:08:15 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[privacy]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=2717</guid>
		<description><![CDATA[I suppose it&#8217;s good practice to wipe out sensitive data from a server before giving it back to your host. On Windows, when I want to safely delete files I use Eraser (NB: versions 5.8.x and 6 suck pretty back &#8211; for instance they just fail to install for me, seemingly because of a bad [...]]]></description>
			<content:encoded><![CDATA[<p>I suppose it&#8217;s good practice to wipe out sensitive data from a server before giving it back to your host. On Windows, when I want to safely delete files I use <a href="http://eraser.heidi.ie/">Eraser</a> (NB: versions 5.8.x and 6 suck pretty back &#8211; for instance they just fail to install for me, seemingly because of a bad packed runtime &#8211; You can get <a href="http://sourceforge.net/projects/eraser/files/Eraser%205/">version 5.7 from Sourceforge</a>, although its shell integration won&#8217;t work in Windows 7). On Linux, until now I had pretty much no idea. But as often, this kind of pretty basic and useful software can be found in usual packages with simple names. And here we are talking about package &#8220;wipe&#8221;, of course <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>To install it, pretty straightforward (NB: I&#8217;m using Ubuntu, should be the same on Debian; on Fedora should be the same but with yum):<br />
<code>apt-get install wipe</code></p>
<p>And then to run it, for basic use it will take ALMOST (see below the warning about wildcards) the same kind of options as &#8220;rm&#8221;:<br />
<code>myLaptop:/home/david$ wipe -r thisFolder<br />
Okay to WIPE 1 directory ? (Yes/No) y<br />
Please answer "Yes" or "No".<br />
Okay to WIPE 1 directory ? (Yes/No) Yes<br />
Wiping ubuntu-11.10-dvd-amd64.iso, pass 9  (12)   [     213 /     5994]</code></p>
<p>The default setting is 34 overwrite passes, which is huge and slow, but I guess helpful if you are paranoid. If you want fewer passes, use -Q [number of passes]. The <a href="http://linux.die.net/man/1/wipe">manual</a> might be an interesting read, too.</p>
<p>A very important warning about using wildcards: DO NOT use <code>wipe -r .*</code>. As <a href="http://us.generation-nt.com/answer/just-info-never-do-wipe-help-200181791.html">reported there</a>, this pattern matches <code>..</code> so wipe will then browse around and erase the whole disk if you&#8217;re running it as root (and even if you&#8217;re not, it will likely get to places where you didn&#8217;t want it to go). This is not a bug, it&#8217;s actually a feature. rm not matching <code>..</code> when you call it on <code>.*</code> is a safeguard, but when you&#8217;re using wipe chances are that it&#8217;s more of a problem to miss deletions than to do too many of them, thus this aggressive behavior. I didn&#8217;t try it but most likely this is true of <code>wipe -r *</code> too.</p>
<p>If you want to erase all the dot files in a folder, you can either use <code>wipe .??*</code> or move on level up and do <code>wipe -r theFolder</code>, like I did in my example.</p>
<p>Edit: actually, I did gave a shot at wipe -q -r .* on a virtual box, it didn&#8217;t wipe everything out, as can be seen from the output:<br />
<code>root@xxxxx:~# wipe -q -r .*<br />
Okay to WIPE 9 regular files and 7 directories ? (Yes/No) Yes<br />
Will not remove .<br />
Will not remove ..<br />
Operation finished.</code></p>
<p>Finally, I thought that could be useful on Windows so I checked out: unfortunately wipe is not available in Cygwin as of today.</p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/2717/safely-erasing-wipe-out-files-or-folders-on-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook&#8217;s latest poop</title>
		<link>http://notepad.patheticcockroach.com/2710/facebooks-latest-poop/</link>
		<comments>http://notepad.patheticcockroach.com/2710/facebooks-latest-poop/#comments</comments>
		<pubDate>Mon, 30 Jan 2012 07:08:07 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[social network stuff]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=2710</guid>
		<description><![CDATA[Looks like the friend request confirmation screenshot that I posted a while ago has become history. Now when hitting the &#8220;add friend&#8221; button you don&#8217;t get any confirmation anymore. The request seems to be sent right away, and you get the &#8220;Friend request sent button&#8221; as well as the following menu to specify the list [...]]]></description>
			<content:encoded><![CDATA[<p>Looks like the friend request confirmation screenshot that I <a href="http://notepad.patheticcockroach.com/1709/facebook-is-tagging-spammy-users-and-threatening-you/">posted a while ago</a> has become history. Now when hitting the &#8220;add friend&#8221; button you don&#8217;t get any confirmation anymore. The request seems to be sent right away, and you get the &#8220;Friend request sent button&#8221; as well as the following menu to specify the list or cancel the request:</p>
<div style="text-align:center;"><img src="http://img.patheticcockroach.com/01/facebook_no_confirmation.png" alt="No confirmation when sending a friend request in Facebook" width="167" height="257"/></div>
<p>The only question left is: do we get a redemption period, say half a minute or something, to undo the request without it actually being sent (via e-mail)? Not really motivated to test that, so if you happen to know please comment about it <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/2710/facebooks-latest-poop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enriching Notepad++&#8217;s lang.xml to add better MySQL support</title>
		<link>http://notepad.patheticcockroach.com/2704/enriching-notepads-lang-xml-to-add-better-mysql-support/</link>
		<comments>http://notepad.patheticcockroach.com/2704/enriching-notepads-lang-xml-to-add-better-mysql-support/#comments</comments>
		<pubDate>Sun, 29 Jan 2012 16:17:55 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[web development]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=2704</guid>
		<description><![CDATA[For the moment, Notepad++ is my editor of choice to edit MySQL stuff. Its syntax highlighting works nice, however for some reason it lacks quite a few keywords, such as DATETIME and UNSIGNED. I don&#8217;t know the reason for this, maybe those types are MySQL-specific and not generic SQL types, but anyway I don&#8217;t really [...]]]></description>
			<content:encoded><![CDATA[<p>For the moment, <a href="http://notepad-plus-plus.org/">Notepad++</a> is my editor of choice to edit MySQL stuff. Its syntax highlighting works nice, however for some reason it lacks quite a few keywords, such as DATETIME and UNSIGNED. I don&#8217;t know the reason for this, maybe those types are MySQL-specific and not generic SQL types, but anyway I don&#8217;t really care about generic SQL, I just want a more comprehensive highlighting for the SQL I use &#8211; MySQL.<br />
Fortunately, it&#8217;s very easy to add language elements: you just need to edit langs.xml (+/- langs.model.xml, I&#8217;m not really sure if you need to edit both, but that&#8217;s what I did), find the SQL section (starts with something like <code>&lt;Language name="sql" ext="sql" commentStart="/*" commentEnd="*/"&gt;</code>), and add the tags. Without further ado, here&#8217;s my edited SQL section. Note that for the moment I didn&#8217;t really add many tags (just the *cough* 5 at the very bottom&#8230;), but more <del>will</del> should come as I stumble upon them&#8230;</p>
<p><code>&lt;Language name="sql" ext="sql" commentStart="/*" commentEnd="*/"&gt;<br />
	&lt;Keywords name="instre1"&gt;abs absolute access acos add add_months adddate admin after aggregate all allocate alter and any app_name are array as asc ascii asin assertion at atan atn2 audit authid authorization autonomous_transaction avg before begin benchmark between bfilename bin binary binary_checksum binary_integer bit bit_count bit_and bit_or blob body boolean both breadth bulk by call cascade cascaded case cast catalog ceil ceiling char char_base character charindex chartorowid check checksum checksum_agg chr class clob close cluster coalesce col_length col_name collate collation collect column comment commit completion compress concat concat_ws connect connection constant constraint constraints constructorcreate contains containsable continue conv convert corr corresponding cos cot count count_big covar_pop covar_samp create cross cube cume_dist current current_date current_path current_role current_time current_timestamp current_user currval cursor cycle data datalength databasepropertyex date date_add date_format date_sub dateadd datediff datename datepart day db_id db_name deallocate dec declare decimal decode default deferrable deferred degrees delete dense_rank depth deref desc describe descriptor destroy destructor deterministic diagnostics dictionary disconnect difference distinct do domain double drop dump dynamic each else elsif empth encode encrypt end end-exec equals escape every except exception exclusive exec execute exists exit exp export_set extends external extract false fetch first first_value file float floor file_id file_name filegroup_id filegroup_name filegroupproperty fileproperty for forall foreign format formatmessage found freetexttable from from_days fulltextcatalog fulltextservice function general get get_lock getdate getansinull getutcdate global go goto grant greatest group grouping having heap hex hextoraw host host_id host_name hour ident_incr ident_seed ident_current identified identity if ifnull ignore immediate in increment index index_col indexproperty indicator initcap initial initialize initially inner inout input insert instr instrb int integer interface intersect interval into is is_member is_srvrolemember is_null is_numeric isdate isnull isolation iterate java join key lag language large last last_day last_value lateral lcase lead leading least left len length lengthb less level like limit limited ln lpad local localtime localtimestamp locator lock log log10 long loop lower ltrim make_ref map match max maxextents mid min minus minute mlslabel mod mode modifies modify module month months_between names national natural naturaln nchar nclob new new_time newid next next_day nextval no noaudit nocompress nocopy none not nowait null nullif number number_base numeric nvl nvl2 object object_id object_name object_property ocirowid oct of off offline old on online only opaque open operator operation option or ord order ordinalityorganization others out outer output package pad parameter parameters partial partition path pctfree percent_rank pi pls_integer positive positiven postfix pow power pragma precision prefix preorder prepare preserve primary prior private privileges procedure public radians raise rand range rank ratio_to_export raw rawtohex read reads real record recursive ref references referencing reftohex relative release release_lock rename repeat replace resource restrict result return returns reverse revoke right rollback rollup round routine row row_number rowid rowidtochar rowlabel rownum rows rowtype rpad rtrim savepoint schema scroll scope search second section seddev_samp select separate sequence session session_user set sets share sign sin sinh size smallint some soundex space specific specifictype sql sqlcode sqlerrm sqlexception sqlstate sqlwarning sqrt start state statement static std stddev stdev_pop strcmp structure subdate substr substrb substring substring_index subtype successful sum synonym sys_context sys_guid sysdate system_user table tan tanh temporary terminate than then time timestamp timezone_abbr timezone_minute timezone_hour timezone_region to to_char to_date to_days to_number to_single_byte trailing transaction translate translation treat trigger trim true trunc truncate type ucase uid under union unique unknown unnest update upper usage use user userenv using validate value values var_pop var_samp varchar varchar2 variable variance varying view vsize when whenever where with without while with work write year zone<br />
	mediumint datetime tinyint text unsigned&lt;/Keywords&gt;<br />
&lt;/Language&gt;</code></p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/2704/enriching-notepads-lang-xml-to-add-better-mysql-support/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A few neat BibTeX tricks</title>
		<link>http://notepad.patheticcockroach.com/2678/a-few-neat-bibtex-tricks/</link>
		<comments>http://notepad.patheticcockroach.com/2678/a-few-neat-bibtex-tricks/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 15:16:12 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=2678</guid>
		<description><![CDATA[LaTeX is one of those remarkable things: it seems to be very widely used in the scientific community, yet available user-friendly software is scarcely available (TeXnicCenter doesn&#8217;t really seem to be actively developed, LyX doesn&#8217;t really provide full support and uses a special, non-LaTeX, file format, and that&#8217;s pretty much it), and the documentation is [...]]]></description>
			<content:encoded><![CDATA[<p>LaTeX is one of those remarkable things: it seems to be very widely used in the scientific community, yet available user-friendly software is scarcely available (TeXnicCenter doesn&#8217;t really seem to be actively developed, LyX doesn&#8217;t really provide full support and uses a special, non-LaTeX, file format, and that&#8217;s pretty much it), and the documentation is rather sparse. So, you have to google every thing you want to do and find variously hackish tips and tricks&#8230; Here are some.</p>
<h2>Comments in BibTeX</h2>
<p>Comments in LaTeX start with a %. I don&#8217;t think they implemented multiline comments. You&#8217;d thing BibTeX would use the same format? Well, thing again. Comments in BibTeX look like:<br />
<code>@Comment{This is my comment}</code><br />
The good news is: it works on multiple line. The bad news is: it doesn&#8217;t work inside another tag. So you can&#8217;t have, say:<br />
<code>@article{Saeys2007,<br />
	@Comment{Nice taxonomy of feature selection methods}<br />
	title={A review of feature selection techniques in bioinformatics.},<br />
	volume={23},<br />
	url={http://www.ncbi.nlm.nih.gov/pubmed/17720704},<br />
	number={19},<br />
	journal={Bioinformatics},<br />
	publisher={Oxford Univ Press},<br />
	author={Saeys, Yvan and Inza, Iñaki and Larrañaga, Pedro},<br />
	year={2007},<br />
	pages={2507--2517}<br />
}</code><br />
But you need to put the comment out of that @article block.</p>
<h2>Forcing a specific display of authors&#8217; names</h2>
<p>I had a case where one of my reference had as an author the &#8220;MAQC Consortium&#8221; (or as an alternative, the huge list of all members of this consortium). The default BibTeX behavior, as programmed by the editor, was to treat authors as &#8220;firstName lastName&#8221;, so I had a reference by &#8220;Consortium, M.&#8221;, not really what I wanted&#8230; It&#8217;s possible, however, to manipulate the author field using the \relax command. Its typical use is to modify the way the firstName is abbreviated, ie to keep more than its first letter like {\relax Jo}hn Doe vs {\relax Ja}mes Doe. But it can as well be used on the whole author&#8217;s name, like:<br />
<code>author={{\relax MAQC Consortium} and John Doe}</code><br />
I guess that&#8217;s cheating, but it works&#8230;</p>
<h2>Getting a BibTeX entry from any PubMed reference</h2>
<p>PubMed let you export entries in &#8220;Medline&#8221; and XML formats, but don&#8217;t offer BibTeX export out of the box. However, there&#8217;s a web service, <a href="http://www.bioinformatics.org/texmed/">TeXMed</a>, able to export PubMed entries to BibTeX. It works by query so you can get a whole batch of entries at the same time by searching by keywords, but if you only want one specific entry just search for its PMID.</p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/2678/a-few-neat-bibtex-tricks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some must-have Firefox hidden settings</title>
		<link>http://notepad.patheticcockroach.com/1368/some-must-have-firefox-hidden-settings/</link>
		<comments>http://notepad.patheticcockroach.com/1368/some-must-have-firefox-hidden-settings/#comments</comments>
		<pubDate>Tue, 24 Jan 2012 20:37:49 +0000</pubDate>
		<dc:creator>David Dernoncourt</dc:creator>
				<category><![CDATA[Firefox]]></category>

		<guid isPermaLink="false">http://notepad.patheticcockroach.com/?p=1368</guid>
		<description><![CDATA[How to hide the &#8220;download finished&#8221; bubble This is controlled by the browser.download.manager.showAlertOnComplete setting (edit it via about:config): set it to false to disable the highly annoying &#8220;download finished&#8221; popup which sloooooowwwwly appears and then diiiiiiiiisappeeeaaaars every time a file has finished downloading (this thing is particularly slow when your GPU is busy doing something [...]]]></description>
			<content:encoded><![CDATA[<h2>How to hide the &#8220;download finished&#8221; bubble</h2>
<p>This is controlled by the <code>browser.download.manager.showAlertOnComplete</code> setting (edit it via <code>about:config</code>): set it to false to disable the highly annoying &#8220;download finished&#8221; popup which sloooooowwwwly appears and then diiiiiiiiisappeeeaaaars every time a file has finished downloading (this thing is particularly slow when your GPU is busy doing something else).</p>
<h2>How to skip antivirus scanning of incoming files + don&#8217;t tag downloaded exe&#8217;s as coming from Internet</h2>
<p>This is controlled by the <code>browser.download.manager.scanWhenDone</code> setting: set it to false to disable the bloody time-wasting virus scan at the end of every file download. This never caught a single virus for me anyway&#8230; Also, it makes the downloaded files bypass Windows security policy checks (the former preference browser.download.manager.skipWinSecurityPolicyChecks was merged into this one), ie when you launch a downloaded executable Windows won&#8217;t bother you with the warning popup &#8220;this program was downloaded from Internet, are you sure you want to run it?&#8221;.</p>
<h2>How to delete words from the personal dictionary</h2>
<p>For some reason, I find it extremely easy to accidentally add misspelled words to the personal dictionary &#8211; I guess that menu item is somewhat misplaced. On the other hand, deleting them is then a pain in the ***, notably the GUI provides no way to do this. You&#8217;ll have to manually edit the dictionary file&#8230;<br />
It&#8217;s located in your profile folder (on Windows NT/2k/XP/Vista/Se7en, it looks like <code>%appdata%\Mozilla\Firefox\Profiles\xxxxxxxx.default</code> &#8211; just browse to <code>%appdata%\Mozilla\Firefox\Profiles\</code> then it will be obvious -, for other OSes, check out <a href="http://kb.mozillazine.org/Profile_folder">Profile folder on MozillaZine</a>, or even simpler go to <code>about:support</code> and click on &#8220;Profile Directory &#8211; Open containing folder&#8221;) and is named persdict.dat. You can edit it with any plain text editor supporting Unix line breaks (for instance Notepad++ is good, the standard Windows notepad isn&#8217;t). Make sure that Firefox isn&#8217;t running, as it will overwrite the file when you close it. <a href="http://ffextensionguru.com/wiki/tweaks/general-tweaks/removing-added-words-from-dictionary/">Source</a></p>
<h2>How to configure several profiles</h2>
<p>Close Firefox (make sure there&#8217;s really no more firefox.exe running in the background), then relaunch it with the <code>-profilemanager</code> argument. On Windows, the easiest way to do is is probably to hit [Windows key]+R (for &#8220;Run&#8221;), and then type <code>firefox.exe -profilemanager</code>. After that, you should get the profile manager window, which should be self-explanatory enough. If you need more details, <a href="http://improvefirefox.com/multiple-firefox-profiles/">this post</a> should be helpful.</p>
<h2>How to prevent Firefox from trimming link URLs</h2>
<p>That stupid feature was added when they replaced the status bar with that retarded add-on bar. Before that, when you hovered a link it&#8217;s target would show up in the status bar. As far as I remember, they then moved that preview to the address bar (with big fat huge trimming, as this is a limited and already well-filled space), and due to enough people getting upset with it, they moved it back to the bottom of the window (to the bottom-left, or when the find bar is opened (bug?), to the bottom-right), but this time above the add-on bar. BUT they didn&#8217;t remove the trimming: that URL preview is by default limited to 50% of the window&#8217;s width. Why the heck not 100%?? Anyway, to change that, go to your chrome folder (you might need to create it manually), which is located in <code>%appdata%\Mozilla\Firefox\Profiles\xxxxxxxx.default\chrome</code> (see the section about dictionary entries for more details and alternative OSes), then edit or create (with a plain text editor) the file userChrome.css. In this file, add the following section:<br />
<code>statuspanel {max-width: 100% !important;}</code><br />
And voilà, when you restart Firefox link URL previews will be able to use the whole width of the window, so they shouldn&#8217;t get trimmed often, then&#8230;</p>
<h2>How to decrease the minimum tab width</h2>
<p>As in the previous tip, you need to create/edit userChrome.css. Add the following code (edit sizes as you wish):<br />
<code>.tabbrowser-tab[fadein]:not([pinned]) {<br />
min-width: 15px !important;<br />
max-width: 250px !important;}</code></p>
<h2>How to force Firefox to display the full URL in the address bar</h2>
<p>By this I mean, the real full URL, including the bloody http:// part. Well, I long thought this was impossible, but eventually a setting was created for this! In about:config, just set <code>browser.urlbar.trimURLs</code> to false. The change will be immediately visible! <img src='http://notepad.patheticcockroach.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Well, that&#8217;s all for today&#8230; Those are pretty much all the dirty hacks I need to perform when dealing with a new Fx install, apart from the ever changing <a href="http://notepad.patheticcockroach.com/2109/extensions-checkcompatibility-they-did-it-again/">extensions.checkCompatibility mess</a>. Keeping them on a single page should make my life easier the next time I need them&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://notepad.patheticcockroach.com/1368/some-must-have-firefox-hidden-settings/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

