<?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>Grumble Grumble</title>
	<atom:link href="http://littlesvr.ca/grumble/feed/" rel="self" type="application/rss+xml" />
	<link>http://littlesvr.ca/grumble</link>
	<description>The things that piss me off.</description>
	<lastBuildDate>Thu, 16 May 2013 13:16:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Measuring project effort in something other than Lines-Of-Code</title>
		<link>http://littlesvr.ca/grumble/2013/05/16/measuring-project-effort-in-something-other-than-lines-of-code/</link>
		<comments>http://littlesvr.ca/grumble/2013/05/16/measuring-project-effort-in-something-other-than-lines-of-code/#comments</comments>
		<pubDate>Thu, 16 May 2013 13:16:03 +0000</pubDate>
		<dc:creator>Andrew Smith</dc:creator>
				<category><![CDATA[Safe For Seneca]]></category>

		<guid isPermaLink="false">http://littlesvr.ca/grumble/?p=750</guid>
		<description><![CDATA[It occurred to me recently that when it comes to a software project &#8211; it takes more than just code to make it successful but at the same time we typically only measure the scope of a software project in lines of code (LOCs). In most organisations it&#8217;s laughed at as an official measure of [...]]]></description>
				<content:encoded><![CDATA[<p><span>It occurred to me recently that when it comes to a software project &#8211; it takes more than just code to make it successful but at the same time we typically only measure the scope of a software project in lines of code (<span>LOCs</span>). In most organisations it&#8217;s laughed at as an official measure of productivity, but think about it &#8211; when was the last time your manager put socialising or pondering or answering email or relearning your own code on the project plan?</span></p>
<p><span>I don&#8217;t have the time to go looking at the mass of research about measuring programmer productivity or project complexity, but I&#8217;ve had this quick idea I can share: instead of lines of code (which is just a part of the effort involved in maintaining a project) we can measure the entire effort it takes to conceive it, design it, build it, and maintain it.</span></p>
<p><span>What unit of measurement? Days of effort, of course, or <span>DOE</span>. Unless it&#8217;s a big project, in which case we can measure in months of effort, or <span>MOE</span>. If it&#8217;s a really big project &#8211; years of effort, <span>YOE</span>. But tiny projects should not be forgotten &#8211; so hours of effort must also be accounted for, as <span>HOEs</span>.</span></p>
<p>I think I will suggest that to my project manager if I have one again some time soon..</p>
]]></content:encoded>
			<wfw:commentRss>http://littlesvr.ca/grumble/2013/05/16/measuring-project-effort-in-something-other-than-lines-of-code/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Whee, I got DDOSed</title>
		<link>http://littlesvr.ca/grumble/2013/05/09/whee-i-got-ddosed/</link>
		<comments>http://littlesvr.ca/grumble/2013/05/09/whee-i-got-ddosed/#comments</comments>
		<pubDate>Thu, 09 May 2013 18:19:02 +0000</pubDate>
		<dc:creator>Andrew Smith</dc:creator>
				<category><![CDATA[Safe For Seneca]]></category>

		<guid isPermaLink="false">http://littlesvr.ca/grumble/?p=728</guid>
		<description><![CDATA[Once a month I archive my Apache logs. Which involves downloading them from the server and analysing them a little. This month (last month actually, I am slow with my blogging) there was something obviously unusual from the beginning: instead of the typical six or seven logrotated 50MB access logs I had 15. While I [...]]]></description>
				<content:encoded><![CDATA[<p>Once a month I archive my Apache logs. Which involves downloading them from the server and analysing them a little.</p>
<p>This month (last month actually, I am slow with my blogging) there was something obviously unusual from the beginning: instead of the typical six or seven logrotated 50MB access logs I had 15.</p>
<p>While I did hope for a couple of seconds that all of a sudden the popularity of one of my projcts doubled &#8211; I suspected immediately that the extra logs were full of bad rather than good things.</p>
<p>And so they were! I opened one of the middle files, access_log.07 and found many many lines like this:</p>
<blockquote><p>178.65.217.96 &#8211; - [24/Mar/2013:04:40:09 -0400] &#8220;GET /isomaster/releases/isomaster-1.3w-installer.exe HTTP/1.1&#8243; 404 3121 &#8220;-&#8221; &#8220;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)&#8221;<br />
77.35.44.146 &#8211; - [24/Mar/2013:04:40:10 -0400] &#8220;GET /isomaster/releases/isomaster-1.3w-installer.exe HTTP/1.1&#8243; 404 3121 &#8220;-&#8221; &#8220;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)&#8221;<br />
94.51.3.138 &#8211; - [24/Mar/2013:04:40:10 -0400] &#8220;GET /isomaster/releases/isomaster-1.3w-installer.exe HTTP/1.1&#8243; 404 3121 &#8220;-&#8221; &#8220;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)&#8221;<br />
178.65.217.96 &#8211; - [24/Mar/2013:04:40:10 -0400] &#8220;GET /isomaster/releases/isomaster-1.3w-installer.exe HTTP/1.1&#8243; 404 3121 &#8220;-&#8221; &#8220;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)&#8221;<br />
77.35.44.146 &#8211; - [24/Mar/2013:04:40:11 -0400] &#8220;GET /isomaster/releases/isomaster-1.3w-installer.exe HTTP/1.1&#8243; 404 3121 &#8220;-&#8221; &#8220;Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)&#8221;</p></blockquote>
<p>Yep, that&#8217;s 3 requests per second. And how long has it been happening? Some quick grep commands found that it started on &#8220;21 Mar 08:01:11&#8243; and ended on &#8220;1 Apr 14:36:26&#8243;, that&#8217;s 12 days of constant hammering!</p>
<p>The file the requests are for has been removed months ago, I got tired of dealing with the windows version of ISO Master, so my first thought was that this was someone&#8217;s broken script that was supposed to download the latest version or something, but then I noticed that the IPs are different. Note that even in the random 5 lines I pasted in above the requests are coming from 3 different IPs!</p>
<p>Sure is starting to smell like a DDOS attack, but why? Who cares enough about my server, or about me to bother wasting valuable botnet nodes on it?</p>
<p>Let&#8217;s do some more grep magic, this attack:</p>
<ul>
<li><strong>| wc -l</strong>: Made a total of 2.6 million requests, that&#8217;s 260 thousand requests per day.</li>
<li><strong>| cut -f 1 -d&#8217; &#8216; | sort | uniq | wc -l</strong>: Used 1183 unique machines (or at least IP addresses).</li>
<li><strong>| cut -f 1 -d&#8217; &#8216; | sort | uniq -c | sort -b -g | tail -20</strong>: Had these 20 worst offenders, check out that last one, two hundred and seventy thousand requests!</li>
</ul>
<blockquote><p>24209 46.41.102.187<br />
33104 95.27.161.96<br />
34276 109.201.122.167<br />
35827 178.159.30.31<br />
37249 109.201.103.230<br />
41455 91.124.244.192<br />
41603 176.96.64.243<br />
42493 109.201.119.242<br />
43714 158.46.46.195<br />
47652 95.106.16.222<br />
54098 178.65.217.96<br />
59760 37.229.68.141<br />
67490 188.122.249.84<br />
67596 46.118.177.113<br />
68509 5.142.224.71<br />
107007 178.213.194.220<br />
109235 92.240.209.14<br />
183352 46.185.61.81<br />
197865 109.185.126.177<br />
273314 5.35.29.186</p></blockquote>
<p>John recently told me that you can use the host command to do reverse DNS lookups, and I did a few, but didn&#8217;t record the results, though I remember that 2 out of 3 were russian. Let&#8217;s try again now (do you like my mad commandline skills? :))</p>
<p><strong>for IP in `grep &#8216;/isomaster/releases/isomaster-1.3w-installer.exe&#8217; 2011-mar-access_log | cut -f 1 -d&#8217; &#8216; | sort | uniq -c | sort -b -g | tail -20 | sed &#8216;s/ *//&#8217; | cut -f 2 -d&#8217; &#8216;`; do host $IP; done</strong></p>
<blockquote><p>187.102.41.46.in-addr.arpa domain name pointer 187.102.41.46.donpac.ru.<br />
96.161.27.95.in-addr.arpa domain name pointer 95-27-161-96.broadband.corbina.ru.<br />
Host 167.122.201.109.in-addr.arpa. not found: 3(NXDOMAIN)<br />
31.30.159.178.in-addr.arpa domain name pointer peer31-30-159-178.ll.magnitogorsk.multinex.ru.<br />
Host 230.103.201.109.in-addr.arpa. not found: 3(NXDOMAIN)<br />
192.244.124.91.in-addr.arpa domain name pointer 192-244-124-91.pool.ukrtel.net.<br />
Host 243.64.96.176.in-addr.arpa. not found: 3(NXDOMAIN)<br />
Host 242.119.201.109.in-addr.arpa. not found: 3(NXDOMAIN)<br />
Host 195.46.46.158.in-addr.arpa. not found: 3(NXDOMAIN)<br />
Host 222.16.106.95.in-addr.arpa. not found: 3(NXDOMAIN)<br />
96.217.65.178.in-addr.arpa domain name pointer pppoe.178-65-217-96.dynamic.avangarddsl.ru.<br />
141.68.229.37.in-addr.arpa domain name pointer 37-229-68-141-broadband.kyivstar.net.<br />
84.249.122.188.in-addr.arpa domain name pointer 188-122-249-84.clients.tlt.100megabit.ru.<br />
113.177.118.46.in-addr.arpa domain name pointer SOL-FTTB.113.177.118.46.sovam.net.ua.<br />
Host 71.224.142.5.in-addr.arpa. not found: 3(NXDOMAIN)<br />
Host 220.194.213.178.in-addr.arpa. not found: 3(NXDOMAIN)<br />
Host 14.209.240.92.in-addr.arpa. not found: 3(NXDOMAIN)<br />
81.61.185.46.in-addr.arpa domain name pointer 46-185-61-81-sum.broadband.kyivstar.net.<br />
177.126.185.109.in-addr.arpa domain name pointer host-static-109-185-126-177.moldtelecom.md.<br />
Host 186.29.35.5.in-addr.arpa. not found: 3(NXDOMAIN)</p></blockquote>
<p>Some of the hosts are no longer online, but pretty much every other one is either from Russia or Ukraine (except the one from Moldova). Interesting. Actually they are not offline, they just don&#8217;t have reverse DNS working. The biggest one I found via whois (thank you Gnome Network Tools) has an address and everything:</p>
<blockquote><p>address:        LLC &#8220;Multiscan&#8221;<br />
address:        I.Lukyanova<br />
address:        ul. Sokolova, 8<br />
address:        141090 Yubileynyy, Moscow Region<br />
address:        RUSSIAN FEDERATION<br />
phone:          +74959743623<br />
fax-no:         +74957555344</p></blockquote>
<p>Hm, suspicious looking building, it&#8217;s too nice for where it is:</p>
<p><a href="http://littlesvr.ca/grumble/wp-content/uploads/2013/05/DDOSed-from-here.jpg"><img class="alignnone size-full wp-image-743" alt="DDOSed from here" src="http://littlesvr.ca/grumble/wp-content/uploads/2013/05/DDOSed-from-here.jpg" width="800" height="577" /></a></p>
<p>I don&#8217;t recall having any enemies back home, in fact I remember eastern europe with fondness. So my guess is this had nothing to do with me (since noone contacted me about it) and is rather some practice or testrun for something or someone or another.</p>
<p>I won&#8217;t be able to figure out much more than that (cause I&#8217;ll be busy with other things), oh well, it was an interesting experience and I&#8217;m quite smug about that my server took it so well that I haven&#8217;t even noticed the attack during the 10 days it was going on. And I use this server all day long! Sackware rocks.</p>
]]></content:encoded>
			<wfw:commentRss>http://littlesvr.ca/grumble/2013/05/09/whee-i-got-ddosed/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>APNG in Chromium</title>
		<link>http://littlesvr.ca/grumble/2013/03/28/apng-in-chromium/</link>
		<comments>http://littlesvr.ca/grumble/2013/03/28/apng-in-chromium/#comments</comments>
		<pubDate>Thu, 28 Mar 2013 15:55:23 +0000</pubDate>
		<dc:creator>Andrew Smith</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Safe For Seneca]]></category>

		<guid isPermaLink="false">http://littlesvr.ca/grumble/?p=722</guid>
		<description><![CDATA[Max Stepin (the APNG maintainer) has added APNG support to Chromium. Good job, man!]]></description>
				<content:encoded><![CDATA[<p>Max Stepin (the APNG maintainer) has added APNG support to Chromium. Good job, man!</p>
<p><a href="http://littlesvr.ca/grumble/wp-content/uploads/2013/03/Mageia-APNG.png"><img class="alignnone size-medium wp-image-723" alt="Mageia-APNG" src="http://littlesvr.ca/grumble/wp-content/uploads/2013/03/Mageia-APNG-300x225.png" width="300" height="225" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://littlesvr.ca/grumble/2013/03/28/apng-in-chromium/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>GtkFileChooser not choosing</title>
		<link>http://littlesvr.ca/grumble/2012/12/29/gtkfilechooser-not-choosing/</link>
		<comments>http://littlesvr.ca/grumble/2012/12/29/gtkfilechooser-not-choosing/#comments</comments>
		<pubDate>Sat, 29 Dec 2012 05:03:25 +0000</pubDate>
		<dc:creator>Andrew Smith</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Safe For Seneca]]></category>

		<guid isPermaLink="false">http://littlesvr.ca/grumble/?p=714</guid>
		<description><![CDATA[I maintain a reasonably popular app called Asunder. This app has in its preferences a GtkFileChooserButton, and implementation of the (supposedly) interface GtkFileChooser. I&#8217;ve been getting bug reports about the selected directory not being saved when you save the preferences and looked into it again today. I could hardly believe what I found. If I [...]]]></description>
				<content:encoded><![CDATA[<p>I maintain a reasonably popular app called Asunder. This app has in its preferences a GtkFileChooserButton, and implementation of the (supposedly) interface GtkFileChooser.</p>
<p>I&#8217;ve been getting bug reports about the selected directory not being saved when you save the preferences and looked into it again today. I could hardly believe what I found.</p>
<p>If I double-click on the directory I want selected and click &#8220;Open&#8221;, what I get looks like this:</p>
<p><a href="http://littlesvr.ca/grumble/wp-content/uploads/2012/12/gtkfilechooserbutton.png"><img class="alignnone size-full wp-image-715" alt="gtkfilechooserbutton" src="http://littlesvr.ca/grumble/wp-content/uploads/2012/12/gtkfilechooserbutton.png" width="438" height="33" /></a></p>
<p>But gtk_file_chooser_get_filename() returns.. &#8220;/home/andrew&#8221;. I dug and dug through my code and the GTK reference looking for an explanation, but found none. After experimenting some more I found the problem:</p>
<p>This only happens if I double-click on the directory I want (&#8220;temp&#8221; in this case). If instead I single-click on the directory I want &#8211; I get it. Using other GtkFileChooser getters doesn&#8217;t fix anything. So this is not a bug in my code (in fact I don&#8217;t think I could hack around this even if I wanted to), this is probably some retard deciding that his 0.001% use case is more important design-wise than everyone else who uses GTK.</p>
<p>I guess that&#8217;s just the way things are in a lot of open source. Instead of being brushed aside because you&#8217;re not the highest-paying customer your needs are brushed aside because they aren&#8217;t matching someone else&#8217;s vision.</p>
<p>There&#8217;s a chance that this is an honest bug (not a design decision), but how is one to know for sure? I mean look at what they&#8217;ve done to KDE4 and Gnome3.. my faith in open source is starting to waver.</p>
]]></content:encoded>
			<wfw:commentRss>http://littlesvr.ca/grumble/2012/12/29/gtkfilechooser-not-choosing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I thought LibreOffice was going to be better</title>
		<link>http://littlesvr.ca/grumble/2012/12/24/i-thought-libreoffice-was-going-to-be-better/</link>
		<comments>http://littlesvr.ca/grumble/2012/12/24/i-thought-libreoffice-was-going-to-be-better/#comments</comments>
		<pubDate>Tue, 25 Dec 2012 03:27:59 +0000</pubDate>
		<dc:creator>Andrew Smith</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Safe For Seneca]]></category>

		<guid isPermaLink="false">http://littlesvr.ca/grumble/?p=709</guid>
		<description><![CDATA[I ran into a major issue with LibreOffice today, the version (3.6.22) that comes with LinuxMint14. It will not open the spreadsheet with my grades for last semester! It just hangs there at &#8220;Loading document&#8221;. Same thing happening on both computers I have that are both running the same Mint. I hope this is not [...]]]></description>
				<content:encoded><![CDATA[<p>I ran into a major issue with LibreOffice today, the version (3.6.22) that comes with LinuxMint14. It will not open the spreadsheet with my grades for last semester! It just hangs there at &#8220;Loading document&#8221;. Same thing happening on both computers I have that are both running the same Mint.</p>
<p>I hope this is not a sign of things to come.. There is no alternative for linux. I don&#8217;t want to be as screwed as the Mac people!</p>
<p>Thankfully the file opened in a Windows vm where I installed 3.6.4</p>
<p><a href="http://littlesvr.ca/grumble/wp-content/uploads/2012/12/lobroken.png"><img class="alignnone size-full wp-image-710" alt="lobroken" src="http://littlesvr.ca/grumble/wp-content/uploads/2012/12/lobroken.png" width="800" height="450" /></a></p>
<p>To solve</p>
]]></content:encoded>
			<wfw:commentRss>http://littlesvr.ca/grumble/2012/12/24/i-thought-libreoffice-was-going-to-be-better/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Saftey first at York University</title>
		<link>http://littlesvr.ca/grumble/2012/12/24/saftey-first-at-york-university/</link>
		<comments>http://littlesvr.ca/grumble/2012/12/24/saftey-first-at-york-university/#comments</comments>
		<pubDate>Mon, 24 Dec 2012 23:07:08 +0000</pubDate>
		<dc:creator>Andrew Smith</dc:creator>
				<category><![CDATA[Safe For Seneca]]></category>

		<guid isPermaLink="false">http://littlesvr.ca/grumble/?p=703</guid>
		<description><![CDATA[I&#8217;m the last guy to be anal about safety, but this is just hilarious!]]></description>
				<content:encoded><![CDATA[<p>I&#8217;m the last guy to be anal about safety, but this is just hilarious!</p>
<p><a href="http://littlesvr.ca/grumble/wp-content/uploads/2012/12/safetyfirstatyork.jpg"><img class="alignnone size-full wp-image-706" alt="safetyfirstatyork" src="http://littlesvr.ca/grumble/wp-content/uploads/2012/12/safetyfirstatyork.jpg" width="478" height="799" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://littlesvr.ca/grumble/2012/12/24/saftey-first-at-york-university/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>If I had a car like this when I was young&#8230;</title>
		<link>http://littlesvr.ca/grumble/2012/12/24/if-i-had-a-car-like-this-when-i-was-young/</link>
		<comments>http://littlesvr.ca/grumble/2012/12/24/if-i-had-a-car-like-this-when-i-was-young/#comments</comments>
		<pubDate>Mon, 24 Dec 2012 23:00:56 +0000</pubDate>
		<dc:creator>Andrew Smith</dc:creator>
				<category><![CDATA[Safe For Seneca]]></category>

		<guid isPermaLink="false">http://littlesvr.ca/grumble/?p=699</guid>
		<description><![CDATA[Things would have been different! I guess that&#8217;s not the type of machine you can transport on the highway other than in pieces, so here are just the enormous tires: &#160;]]></description>
				<content:encoded><![CDATA[<p>Things would have been different! I guess that&#8217;s not the type of machine you can transport on the highway other than in pieces, so here are just the enormous tires:</p>
<p><a href="http://littlesvr.ca/grumble/wp-content/uploads/2012/12/bigtires.jpg"><img class="alignnone size-medium wp-image-700" alt="bigtires" src="http://littlesvr.ca/grumble/wp-content/uploads/2012/12/bigtires-300x300.jpg" width="300" height="300" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://littlesvr.ca/grumble/2012/12/24/if-i-had-a-car-like-this-when-i-was-young/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install all the -dev and -doc packages in Debian/Ubuntu/Mint</title>
		<link>http://littlesvr.ca/grumble/2012/12/12/install-all-the-dev-and-doc-packages-in-debianubuntumint/</link>
		<comments>http://littlesvr.ca/grumble/2012/12/12/install-all-the-dev-and-doc-packages-in-debianubuntumint/#comments</comments>
		<pubDate>Wed, 12 Dec 2012 17:01:34 +0000</pubDate>
		<dc:creator>Andrew Smith</dc:creator>
				<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Safe For Seneca]]></category>

		<guid isPermaLink="false">http://littlesvr.ca/grumble/?p=690</guid>
		<description><![CDATA[Hey look, it&#8217;s 2012/12/12 &#8211; cool! But that&#8217;s not what this post is about. It always pissed me off big time that the more popular Linux distros don&#8217;t install the development files (like header files) or the documentation for the software that comes with them. Being a developer &#8211; this is a big pain in [...]]]></description>
				<content:encoded><![CDATA[<p>Hey look, it&#8217;s 2012/12/12 &#8211; cool! But that&#8217;s not what this post is about.</p>
<p>It always pissed me off big time that the more popular Linux distros don&#8217;t install the development files (like header files) or the documentation for the software that comes with them. Being a developer &#8211; this is a big pain in the ass for me. It became a really big pain in the ass when I switched from Slackware to Linux Mint a couple of months ago.</p>
<p>I&#8217;m no free software fanatic, but damn, why the hell not include the development tools and documentation with Linux? Not only will that make my life easier, but it may encourage some other people to dabble in programming on Linux. Otherwise, do you know what a serious roadblock it is to get a newbie to figure out that there&#8217;s a metapackage called build-essential and a package called libgtk2.0-dev which you have to type in exactly like that, with the lib and the dot and the (wrong) version and the dash and the dev? Hell, it&#8217;s easier to set up a development environment in Windows (you should be ashamed, Debian).</p>
<p>Whining about it would have been enough, but I actually needed to solve this problem, so here is the solution, you can use it too. It&#8217;s <a href="http://littlesvr.ca/misc/install-all-dev-packages.sh">a shell script you can download here</a> or copy paste from here:</p>
<pre>#!/bin/sh
#
# install-all-dev-packages.sh
#
# Author: Andrew Smith http://littlesvr.ca
# Version 1.0 (12 Dec 2012)
#
# The following script installs all the -dev and -doc packages that should have
# been installed with your software but were omitted for some stupid reason.
#
# Tested on Linux Mint 13 but should work on any Debian/Ubuntu/Mint 
# or really on any Debian derivative.
#
# If you get errors like A : Conflicts: B but C is to be installed
# then add those packages (all of the A) into the following list:  
BADPKGLIST="libdb5.1 libglew1.5 libglew1.6 librdf0"

# List of all available packages
apt-cache pkgnames &gt; /tmp/allpackages

NEWPKGLIST="build-essential"

echo "Searching for required -dev and -doc packages..."
for PKG in `dpkg --get-selections | cut -f 1`
do
  # Make sure it's not in the ignore list
  echo $BADPKGLIST | grep -q $PKG
  if [ $? -eq 0 ]
  then
    continue
  fi
  # See if a -dev package is available
  grep -qe "^$PKG-dev$" /tmp/allpackages
  if [ $? -eq 0 ]
  then
    NEWPKGLIST=" $NEWPKGLIST $PKG-dev"
  fi
  # See if a -doc package is available
  grep -qe "^$PKG-doc$" /tmp/allpackages
  if [ $? -eq 0 ] 
  then
    NEWPKGLIST=" $NEWPKGLIST $PKG-doc"
  fi
done

echo "The following packages have been found:"
echo
echo sudo apt-get install $NEWPKGLIST
echo
echo -n "Do you want to install them? (y/n) "
read YN
if [ a$YN = ay ]
then
  sudo apt-get install $NEWPKGLIST --install-suggests
fi

if [ $? -eq 100 ]
then
  echo
  echo "If you got apt-get erros such as 'A Conflicts: B but C is to be installed'"\
       " then make a change at the top of this script to ignore those packages,"\
       " hopefully that will work."
fi</pre>
<p>There is potential for some typical apt-get quircks with the &#8220;bla bla is to be installed screw you haha&#8221; messages but that&#8217;s solvable, you just need to edit the script and blacklist those packages that are erroring. Presumably the list will be different on different OS versions.</p>
<p>Enjoy, you&#8217;re welcome!</p>
]]></content:encoded>
			<wfw:commentRss>http://littlesvr.ca/grumble/2012/12/12/install-all-the-dev-and-doc-packages-in-debianubuntumint/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to spend your vacation properly</title>
		<link>http://littlesvr.ca/grumble/2012/11/17/how-to-spend-your-vacation-properly/</link>
		<comments>http://littlesvr.ca/grumble/2012/11/17/how-to-spend-your-vacation-properly/#comments</comments>
		<pubDate>Sat, 17 Nov 2012 20:48:18 +0000</pubDate>
		<dc:creator>Andrew Smith</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://littlesvr.ca/grumble/?p=553</guid>
		<description><![CDATA[I don&#8217;t think I&#8217;ve ever had a summer as successful as this one in terms of vacations. I went to Newfoundland and back on my motorcycle, and I went on a 5-day canoe trip in Killarney. Now what could I possibly do to compete with that in the coming winter&#8230;]]></description>
				<content:encoded><![CDATA[<p>I don&#8217;t think I&#8217;ve ever had a summer as successful as this one in terms of vacations. I went to <a href="http://littlesvr.ca/misc/toronto-newfoundland-motorcycle/">Newfoundland and back on my motorcycle</a>, and I went on a 5-day <a href="http://littlesvr.ca/misc/killarney-canoe/">canoe trip in Killarney</a>. Now what could I possibly do to compete with that in the coming winter&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://littlesvr.ca/grumble/2012/11/17/how-to-spend-your-vacation-properly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wireless security.. right</title>
		<link>http://littlesvr.ca/grumble/2012/11/13/wireless-security-right/</link>
		<comments>http://littlesvr.ca/grumble/2012/11/13/wireless-security-right/#comments</comments>
		<pubDate>Tue, 13 Nov 2012 13:54:44 +0000</pubDate>
		<dc:creator>Andrew Smith</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://littlesvr.ca/grumble/?p=546</guid>
		<description><![CDATA[For quite a few years I resisted the temptation of setting up a wireless network at home. Story after story suggested that WiFi is a crappy, unstable, and awfully insecure set of technologies. Finally though things seemed to have settled down, and with WPA2 the wardriving stories ended. So a couple of years ago I [...]]]></description>
				<content:encoded><![CDATA[<p>For quite a few years I resisted the temptation of setting up a wireless network at home. Story after story suggested that WiFi is a crappy, unstable, and awfully insecure set of technologies. Finally though things seemed to have settled down, and with WPA2 the wardriving stories ended.</p>
<p>So a couple of years ago I went against my instinct and embraced the convenience of wireless networks. I thought I had secure setups, using WPA2 only, but recently I found out this is not enough.</p>
<p>I switched away from that lame ISP called Rogers to ElectronicBox (a DSL provider), and I returned the wireless router to Rogers. To replace it I bought a new router and set up a new network with the same SSID and password.</p>
<p>What a shock I got when every WiFi device in the house with the exception of my Slackware laptop happily connected to the new hotspot! That basically means that if someone else set up a wireless router with the same SSID &#8211; all my devices would happily send my password to that hotspot. Yay! Even if the password is hashed &#8211; that is some scary shit.</p>
<p>Now I have to spend hours reading about Wireless security again, and require PSKes or something to avoid such nonsense. Piece of shit stupid crappy garbage technology..</p>
]]></content:encoded>
			<wfw:commentRss>http://littlesvr.ca/grumble/2012/11/13/wireless-security-right/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
