<?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>Rants from Vas &#187; Internet</title>
	<atom:link href="http://www.vastheman.com/blog/category/technolgy/internet/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vastheman.com/blog</link>
	<description>The Anthony Mundine of geeks!</description>
	<lastBuildDate>Tue, 24 Jan 2012 10:16:52 +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>Naked</title>
		<link>http://www.vastheman.com/blog/2010/01/30/naked/</link>
		<comments>http://www.vastheman.com/blog/2010/01/30/naked/#comments</comments>
		<pubDate>Sat, 30 Jan 2010 01:10:34 +0000</pubDate>
		<dc:creator>vastheman</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Technolgy]]></category>

		<guid isPermaLink="false">http://www.vastheman.com/blog/?p=129</guid>
		<description><![CDATA[As of yesterday, my Internet connection has finally started working. It’s been unbelievably frustrating, and I cannot in good conscience recommend naked ADSL Internet – I honestly thing it would be a better experience to get Telstra or Optus cable. There are too many levels of indirection between you and the people who actually get [...]]]></description>
			<content:encoded><![CDATA[<p>As of yesterday, my Internet connection has finally started working.  It’s been unbelievably frustrating, and I cannot in good conscience recommend naked ADSL Internet – I honestly thing it would be a better experience to get Telstra or Optus cable.  There are too many levels of indirection between you and the people who actually get stuff done with ADSL, and it would appear that communication is poor and contractors are incompetent.</p>
<p>I needed a brand-new service, as there was no existing POTS or DSL line – only Telstra cable and CATV.  There was a lengthy waiting period, and after the installation date, I called an electrician to wire up a socket.  It turned out the MDF hadn&#8217;t been tagged.  After much arguing, Internode sent someone out to tag it properly.  However, I had to call out (and pay) an electrician to jumper it.  So if your ISP tells you your MDF or boundary point is tagged, don’t believe them – check for yourself before you call out an electrician.</p>
<p>At this point, I had a socket connected to the correct cable and pair, but still no DSL.  Internode insisted that I find an analog telephone to listen to the line.  I want naked DSL – why should I need an analog telephone?  Anyway, I discovered that I had a POTS service of some kind, and even found out what its number was, and told Internode.  They informed me that they needed a technician to come and “perform tests”.  It took another week for the guy to come out, and he didn’t arrive on time.  He just confirmed what I’d told them: my socket was connected to the correct cable and pair, but had POTS service.  Apparently they don’t believe their customers.</p>
<p>After this, it took another day for the exchange to be patched correctly.  I now have a working Internet connection, but my high-speed ADSL2+ here is barely faster than my plain ADSL1 in Melbourne, and I now have to fight for a refund for the period when I was being billed for a service that didn’t work.  If you’re thinking of getting naked ADSL, save yourself the trouble and get something where a single vendor is responsible for the whole solution.  Cable Internet or ADSL with a Telstra DSLAM would be a whole lot less trouble.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vastheman.com/blog/2010/01/30/naked/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spam for Spam</title>
		<link>http://www.vastheman.com/blog/2009/01/30/spam/</link>
		<comments>http://www.vastheman.com/blog/2009/01/30/spam/#comments</comments>
		<pubDate>Fri, 30 Jan 2009 11:37:39 +0000</pubDate>
		<dc:creator>vastheman</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Technolgy]]></category>

		<guid isPermaLink="false">http://www.vastheman.com/blog/?p=69</guid>
		<description><![CDATA[My comment spam filter has picked up a couple of spam comments of a new breed recently: spam comments advertising comment spamming services. It’s a bit odd on a number of fronts. First of all, why waste resources you could be using to push out spam for your clients? Or has the economic downturn affected [...]]]></description>
			<content:encoded><![CDATA[<p>My comment spam filter has picked up a couple of spam comments of a new breed recently: spam comments advertising comment spamming services.  It’s a bit odd on a number of fronts.  First of all, why waste resources you could be using to push out spam for your clients?  Or has the economic downturn affected the spammers’ business, too?  Secondly, the comments were collected by my spam filter.  That means the only person who will see them is me.  And because the comments were caught by the filter, I’d be pretty dubious as to their ability to get anything advertising my services past anyone else’s filters.  All in all, it doesn’t seem to be good business.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vastheman.com/blog/2009/01/30/spam/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Evil Upgrade!</title>
		<link>http://www.vastheman.com/blog/2007/10/30/evil-upgrade/</link>
		<comments>http://www.vastheman.com/blog/2007/10/30/evil-upgrade/#comments</comments>
		<pubDate>Tue, 30 Oct 2007 04:24:03 +0000</pubDate>
		<dc:creator>vastheman</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Technolgy]]></category>

		<guid isPermaLink="false">http://www.vastheman.com/blog/index.php/2007/10/30/evil-upgrade/</guid>
		<description><![CDATA[I’ve been using WordPress to power my blog ever since I started wasting time with it, and it’s been pretty good to me so far. However, there was something that bothered me: despite serving UTF-8 to the browser, the actual database table collation being used was latin1_swedish_ci. Now the way WordPress was getting away with [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve been using <a href="http://wordpress.org">WordPress</a> to power my blog ever since I started wasting time with it, and it’s been pretty good to me so far.  However, there was something that bothered me: despite serving UTF-8 to the browser, the actual database table collation being used was <tt>latin1_swedish_ci</tt>.  Now the way WordPress was getting away with this was by passing 8-bit UTF-8 text to the database server and telling it that it was 8-bit Windows Latin 1.  This is very bad, as sorting and searching wouldn’t behave properly.</p>
<p>Now with WordPress 2.3, all that’s in the past.  WordPress now seems to be able to do the right thing with text encodings.  It’s just too bad the upgrade script can’t clean up the rot left from previous versions.  After running the upgrade script, I found that every piece of Japanese text, every typographical quote, every accented character, in fact everything outside 7-bit ASCII, was horribly mangled.  Now I had a number of options for going forward:</p>
<p><span id="more-41"></span></p>
<ul>
<li>Go back to a previous version of WordPress</li>
<li>Leave it and hope no-one minds.</li>
<li>Delete every post that got mangled.</li>
<li>Manually fix every affected post.</li>
<li>Come up with a l33t way to solve it without manual effort.</li>
</ul>
<p>Now the first option would have been easy.  I had a complete backup (like you should, too), and I could have rolled it back in a matter of minutes.  But I like to be on the curve, and I like to have all the newest features, even if I never use them.  Also, having the latest security updates is nice.</p>
<p>The second option wouldn’t fly, because even if the readers wouldn’t mind, I’d mind.  The third option would probably mean deleting every post, since I’m in the habit of using typographical quotes, non-breaking spaces and dashes (as opposed to hyphens).  Deleting all my posts after an upgrade would defeat the purpose of keeping a blog.  The fourth option would be excessively time-consuming, and I’d have to play fill the blanks, which may not even be possible if important things were mangled.</p>
<p>So the only way to fix it would be to call on my inner geek.  I had a quick look at the database contents in <a href="www.phpmyadmin.net/">phpMyAdmin</a>, and had a look at the database code in WordPress.  I noted that the new tables created by WordPress 2.3 had the collation <tt>utf8_general_ci</tt> while the upgraded tables had the collation <tt>latin1_swedish_ci</tt>, and WordPress was asking MySQL to communicate in UTF-8.  Armed with this, I downloaded a UTF-8 SQL dump of the database.</p>
<p>The rest of it was actually reasonably simple: I opened the SQL dump in <a href="http://www.barebones.com/products/textwrangler/">TextWrangler</a>, which correctly identified it as being UTF-8 with no “byte order mark”.  I then found all references to the <tt>latin1</tt> character set and replaced them with <tt>utf8</tt>.  That would fix the issue with the upgraded tables having the wrong collation, but not the corrupted data.</p>
<p>So here’s the trick: you need to convert the UTF-8 representation of what was in in the database back to its old binary representation, and then interpret that as UTF-8.  I tried to save the file as ISO Latin 1 (ISO 8859-1), but TextWrangler complained about unmappable characters.  It turns out that MySQL’s <tt>latin1</tt> is actually Windows Latin 1 (code page 1252).  So I saved the file in this encoding, and then told TextWrangler to reinterpret it as UTF-8.  It all went smoothly, and I had my data back!  I could play the SQL dump back on the server, and everything is as it should be.</p>
<p>So what are the morals of the story?</p>
<ul>
<li>Always keep backups – particularly when you plan to do something drastic like an upgrade.  Even though I didn’t actually need the backup this time, it was comforting to know it was there.</li>
<li>Don’t trust upgrade/migration scripts – always check the result to ensure it’s actually what you want.</li>
<li>Store data in appropriate formats – hacks will always come back and bite you.  I shouldn’t have been using WordPress when I knew it was doing the wrong thing with my data.</li>
<li>When you’re writing a migration script, try to ensure that it actually works!  Then you don’t risk infuriating and/or losing your users.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.vastheman.com/blog/2007/10/30/evil-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I Hate Firefox!</title>
		<link>http://www.vastheman.com/blog/2007/08/19/firefox/</link>
		<comments>http://www.vastheman.com/blog/2007/08/19/firefox/#comments</comments>
		<pubDate>Sun, 19 Aug 2007 02:09:04 +0000</pubDate>
		<dc:creator>vastheman</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Technolgy]]></category>

		<guid isPermaLink="false">http://www.vastheman.com/blog/index.php/2007/08/19/firefox/</guid>
		<description><![CDATA[Yes, I really do (yes, I’m talking about the web browser, not the movie). And yet I use it every day. There are things that I like about Firefox – plugins like Aardvark, Firebug and Web developer, for example – but as a whole, I think it’s a lousy web browser. Take its text rendering, [...]]]></description>
			<content:encoded><![CDATA[<p>Yes, I really do (yes, I’m talking about the web browser, not the movie).  And yet I use it every day.  There are things that I like about Firefox – plugins like Aardvark, Firebug and Web developer, for example – but as a whole, I think it’s a lousy web browser.</p>
<p>Take its text rendering, for example.  Since the primary purpose of a web browser is to get text on the screen, you’d think they’d have that right.  But no, apparently version 2.0 is still too early to expect decent text rendering.  Compare these two snaps:</p>
<table style="text-align: center">
<tr>
<th style="width: 50%; padding: 0.25em">Firefox</th>
<th style="width: 50%; padding: 0.25em">Safari</th>
</tr>
<tr>
<td style="width: 50%; vertical-align: middle; padding:0.25em"><img src="/inc/2007/08/19/firefox/firefox_code.png" width="142" height="82" alt="Code in Firefox" /></td>
<td style="width: 50%; vertical-align: middle; padding:0.25em"><img src="/inc/2007/08/19/firefox/safari_code.png" width="164" height="84" alt="Code in Safari" /></td>
</tr>
</table>
<p>How has Firefox managed to screw up the fixed-pitch text so badly?  It’s just plain illegible!  I have absolutely know idea, but however they really should have fixed this kind of thing before version 1.0 – not left it in at 2.0.  How about italic text.  Maybe they could get that right:</p>
<table style="text-align: center">
<tr>
<th style="width: 50%; padding: 0.25em">Firefox</th>
<th style="width: 50%; padding: 0.25em">Safari</th>
</tr>
<tr>
<td style="width: 50%; vertical-align: middle; padding:0.25em"><img src="/inc/2007/08/19/firefox/firefox_italic.png" width="101" height="28" alt="Italic text in Firefox" /></td>
<td style="width: 50%; vertical-align: middle; padding:0.25em"><img src="/inc/2007/08/19/firefox/safari_italic.png" width="105" height="30" alt="Italic text in Safari" /></td>
</tr>
<tr>
<td style="width: 50%; vertical-align: middle; padding:0.25em"><img src="/inc/2007/08/19/firefox/firefox_selection.png" width="104" height="29" alt="Selected italic text in Firefox" /></td>
<td style="width: 50%; vertical-align: middle; padding:0.25em"><img src="/inc/2007/08/19/firefox/safari_selection.png" width="105" height="31" alt="Selected italic text in Safari" /></td>
</tr>
</table>
<p>Once again, Safari has rendered it beautifully, but Firefox looks like it’s using a synthetic oblique style, the way System 6 used to when you didn’t have an italic version of the font available – it’s most noticeable in the capital S.  And then when you select the text, some of the last italic letter gets cut off.  Come on, this is pretty basic stuff, guys!</p>
<p><span id="more-37"></span></p>
<p>On the topic of selection, Firefox won’t use Mac conventions in handling double-click and drag.  It’s supposed to select whole words, but Firefox selects just one whole word.  The same goes for triple-click and drag for lines.  (Yes, I know Safari’s selection behaviour isn’t quite standard, and there’s no excuse for that, either.)  And speaking of things being non-standard, why can’t Firefox use standard OS widgets?  For example, the drop-down menus from items on the bookmark bar don&#8217;t respond to clicks in the same way as regular menus (items with submenus, in particular).  The controls on forms just look like horrible Windows wannabes:</p>
<table style="text-align: center">
<tr>
<th style="width: 50%; padding: 0.25em">Firefox</th>
<th style="width: 50%; padding: 0.25em">Safari</th>
</tr>
<tr>
<td style="width: 50%; vertical-align: middle; padding:0.25em"><img src="/inc/2007/08/19/firefox/firefox_forms.png" width="239" height="46" alt="Forms in Firefox" /></td>
<td style="width: 50%; vertical-align: middle; padding:0.25em"><img src="/inc/2007/08/19/firefox/safari_forms.png" width="231" height="44" alt="Forms in Safari" /></td>
</tr>
</table>
<p>Safari is more usable, too.  In Firefox’s bookmarks window, why can’t I drag object from the tree view in the left-hand pane?  Why can’t I rename or edit a link in-place, rather than clicking the <b>Properties</b> or <b>Rename</b> button?  Speaking of which, why are there two buttons, when both of them bring up exactly the same sheet, with exactly the same text field selected?  And on the topic of bookmarks, when I try to drag the URL to the bookmarks bar, Firefox puts a tooltip in the way to thwart my efforts:</p>
<p><img src="/inc/2007/08/19/firefox/firefox_tooltip.png" width="341" height="79" alt="Evil tooltip in Firefox" /></p>
<p>When you have lots of tabs on the same site, Safari cuts off any common prefix it can find in the titles, so you have more chance of knowing which is which:</p>
<table style="text-align: center">
<tr>
<th style="text-align: right; vertical-align: middle; padding: 0.25em">Firefox</th>
<td style="width: 50%; vertical-align: middle; padding:0.25em"><img src="/inc/2007/08/19/firefox/firefox_tabs.png" width="587" height="68" alt="Firefox tab bar" /></td>
</tr>
<tr>
<th style="text-align: right; vertical-align: middle; padding: 0.25em">Safari</th>
<td style="width: 50%; vertical-align: middle; padding:0.25em"><img src="/inc/2007/08/19/firefox/safari_tabs.png" width="588" height="60" alt="Safari tab bar" /></td>
</tr>
</table>
<p>And on top of this, there are the small things.  Like ripping a YouTube video, for example – in Safari, you can easily find it in the activity window, and hold option and double-click.  Firefox won’t use the system-wide spelling dictionaries.  Firefox takes longer to launch.</p>
<p>So if I hate it, why do I use it?  First of all, on Linux and Windows there’s no meaningful competition.  On the Mac, Safari has three flaws that are too bad to live with: it can’t deal with table cells spanning multiple rows in XHTML (although it can in regular HTML – this mystifies me), it doesn’t deal with character entities correctly in XHTML and it gives you the spinning pinwheel of death far too often.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vastheman.com/blog/2007/08/19/firefox/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Migration</title>
		<link>http://www.vastheman.com/blog/2007/06/27/migration/</link>
		<comments>http://www.vastheman.com/blog/2007/06/27/migration/#comments</comments>
		<pubDate>Wed, 27 Jun 2007 04:19:59 +0000</pubDate>
		<dc:creator>vastheman</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Technolgy]]></category>

		<guid isPermaLink="false">http://www.vastheman.com/blog/index.php/2007/06/27/migration/</guid>
		<description><![CDATA[As you probably didn’t notice, I’ve moved this site from a data center in the US to a data centre in Brisbane. To my surprise, the operation was completely painless. I had everything back up in a couple of minutes. The Internet really is becoming simpler and more accessible to non-technical users. I guess it’s [...]]]></description>
			<content:encoded><![CDATA[<p>As you probably <em>didn’t</em> notice, I’ve moved this site from a data center in the US to a data centre in Brisbane.  To my surprise, the operation was completely painless.  I had everything back up in a couple of minutes.  The Internet really is becoming simpler and more accessible to non-technical users.  I guess it’s a testament to how bad things used to be that I was expecting things to be difficult.</p>
<p>While I’m on the topic, I’ll put in a plug for my hosting provider <a href="http://www.selpaw.net.au/" type="text/html">Selpaw Services</a> in Perth.  Their support is always speedy and first-rate.  Thanks for everything, Luke.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vastheman.com/blog/2007/06/27/migration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Herding Macs</title>
		<link>http://www.vastheman.com/blog/2006/11/30/herding_macs/</link>
		<comments>http://www.vastheman.com/blog/2006/11/30/herding_macs/#comments</comments>
		<pubDate>Thu, 30 Nov 2006 02:24:19 +0000</pubDate>
		<dc:creator>vastheman</dc:creator>
				<category><![CDATA[Apple]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Technolgy]]></category>

		<guid isPermaLink="false">http://www.vastheman.com/blog/index.php/2006/11/30/herding_macs/</guid>
		<description><![CDATA[With all the talk that goes on about how and why Macs are or aren’t as secure as any other computers, I thought I’d weigh in. Now I’m not a professional security expert. I’m just a regular software developer, although I do put on the “white hat” regularly and try to find exploits in the [...]]]></description>
			<content:encoded><![CDATA[<p>With all the talk that goes on about how and why Macs are or aren’t as secure as any other computers, I thought I’d weigh in.  Now I’m not a professional security expert.  I’m just a regular software developer, although I do put on the “white hat” regularly and try to find exploits in the products I build.  My theory on the conspicuous absence of OS X malware is that the scale just isn’t big enough.  Sure, there are plenty of Macs in use, but bot herders need massive scales to achieve their goals.</p>
<p><span id="more-26"></span></p>
<p>Suppose I’m a bot herder (I hope it’s obvious that this is purely hypothetical).  I unleash malware that takes over computers and “calls home,” allowing me to send spam for my paying clients.  Since the number of people who read spam is very low, and the number of people who buy products advertised in spam is even lower, I need to send huge volumes of spam to make my services worthwhile for my clients.  And sending lots of spam requires lots of compromised computers.</p>
<p>As software vendors patch vulnerabilities in their software, I have to find new vulnerabilities and write new malware to exploit them.  This requires considerable effort on my part, and takes away from time I could spend doing things I enjoy.  Also, as more users become more security-conscious, there are less machines left open to attack.</p>
<p>Suppose for a moment Windows, Linux and Mac OS X are all equally exploitable, and writing a piece of malware for each takes the same amount of time.  What am I going to do?  Am I going to write three sets of malware to attack the three platforms, or will I pick one to concentrate on?</p>
<p>Of course, the answer depends on market share.  The more even the market share, the more likely I would be to write malware for multiple platforms.  Also, it’s worth thinking about where the machines are primarily used.</p>
<p>Linux is used primarily in server and professional environments.  Machines that are critical for business operations run by tech-savy operators means the machines are more likely to be secured properly and suspicious software will be removed promptly.  So scratch Linux.  I want to target home users with DSL or cable internet.</p>
<p>So I’m left with a choice of targeting Windows or OS X.  What do I do?  I look at market share.  I know these figures are probably wrong, but suppose OS X runs on 5% of my target machines and Windows runs on 90%.  What am I going to target?</p>
<p>The answer should be obvious.  I’ll target Windows.  I could target OS X as well, but then I’d be spending twice as much time writing malware for less than 6% more compromised machines to send spam from.  It just doesn’t make business sense.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.vastheman.com/blog/2006/11/30/herding_macs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

