<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>VXLabs</title>
	
	<link>http://vxlabs.com</link>
	<description>Visual Nerd Laboratories</description>
	<lastBuildDate>Sun, 06 May 2012 11:49:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/vxlabs" /><feedburner:info uri="vxlabs" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>vxlabs</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:browserFriendly></feedburner:browserFriendly><item>
		<title>Review of Ubuntu Linux 12.04 on the Samsung NP300V3A Core i5 NVIDIA Optimus laptop</title>
		<link>http://vxlabs.com/2012/05/01/review-of-ubuntu-linux-12-04-on-the-samsung-np300v3a-core-i5-nvidia-optimus-laptop/</link>
		<comments>http://vxlabs.com/2012/05/01/review-of-ubuntu-linux-12-04-on-the-samsung-np300v3a-core-i5-nvidia-optimus-laptop/#comments</comments>
		<pubDate>Tue, 01 May 2012 21:44:45 +0000</pubDate>
		<dc:creator>cpbotha</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[review]]></category>
		<category><![CDATA[12.04]]></category>
		<category><![CDATA[core i5]]></category>
		<category><![CDATA[dark]]></category>
		<category><![CDATA[geforce gt520m]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nvidia]]></category>
		<category><![CDATA[optimus]]></category>
		<category><![CDATA[precise pangolin]]></category>
		<category><![CDATA[samsung]]></category>
		<category><![CDATA[samsung np300v3a]]></category>
		<category><![CDATA[skype]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[webcam]]></category>

		<guid isPermaLink="false">http://vxlabs.com/?p=157</guid>
		<description><![CDATA[With the release of Ubuntu 12.04 Precise Pangolin on April 26, 2012, I decided that it was finally time to test this on my almost-a-year-old Samsung NP300V3A laptop. I had been procrastinating up to now, due to all the horror &#8230; <a href="http://vxlabs.com/2012/05/01/review-of-ubuntu-linux-12-04-on-the-samsung-np300v3a-core-i5-nvidia-optimus-laptop/">Continue reading <span class="meta-nav">&#8594;</span></a>
No related posts.]]></description>
			<content:encoded><![CDATA[<p>With the release of Ubuntu 12.04 Precise Pangolin on April 26, 2012, I decided that it was finally time to test this on <a href="http://cpbotha.net/2011/08/16/new-samsung-np300v3a-laptop-is-welcomed-into-the-family/">my almost-a-year-old Samsung NP300V3A laptop</a>. I had been procrastinating up to now, due to all the horror stories about the lack of Linux support for the NVIDIA Optimus graphics, a hardware-software combination that auto-switches in this case between the discrete NVIDIA GeForce GT520m and the CPU-integrated Intel HD3000.</p>
<p>I was quite pleasantly surprised. Read on if you&#8217;re curious as to why.</p>
<div id="attachment_162" class="wp-caption alignnone" style="width: 310px"><a href="http://vxlabs.com/wp-content/uploads/2012/05/unity1204_desktop.png"><img class="size-medium wp-image-162" title="unity1204_desktop" src="http://vxlabs.com/wp-content/uploads/2012/05/unity1204_desktop-300x168.png" alt="" width="300" height="168" /></a><p class="wp-caption-text">The obligatory Ubuntu 12.04 Unity desktop screenshot. My gnome-terminal is using the lovely Solarized colours. Extra indicators include Dropbox, and indicator-multiload for showing the CPU, network, load and disk activity gaphs.</p></div>
<h1>Installation</h1>
<p>With the Linux <em>Startup Disk Utility</em> (actually called the usb-creator-gtk) on my Ubuntu desktop I installed the 12.04 x86_64 image on an old 1GB USB flash drive. A point of criticism is that the final &#8220;installing bootloader&#8221; part takes some minutes, without much feedback other than a progress bar bouncing horizontally. Booting the live disk went perfectly, and I could test basic functionality. Joining my TP-LINK TL-WR1043ND access point went without a hitch. Even suspend and resume worked out of the box. Resuming is fast, almost MacBook speed! During the installation, I used the partition tool to resize an existing NTFS partition to create space for the Linux installation. It still amazes me how smooth this process has become. From start to final boot, the whole installation took 18 minutes.</p>
<h1>NVIDIA Optimus Support</h1>
<p>After bootup, the first two issues I ran into were the miserable (estimated) battery life, and the fact that Super-W did not activate Window-Scale, as I was used to on other Ubuntu installations. A &#8220;ps uaxw | grep -i unity&#8221; revealed that I was running unity-2d, and sniffing through /var/log/Xorg.0.log yielded the tell-tale &#8220;(EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)&#8221; (also that X was getting confused with the seeming presence of both Intel and NVIDIA graphics). It was clear that Ubuntu 12.04 doesn&#8217;t support Optimus out of the box.</p>
<p>On AskUbuntu I found <a title="askubuntu answer about getting optimus to work on ubuntu" href="http://askubuntu.com/a/36936">this fabulous answer</a> by one of the developers of the new Bumblebee. In short:</p>
<pre class="brush: bash; title: ; notranslate">
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo add-apt-repository ppa:bumblebee/stable
sudo apt-get update
sudo apt-get install bumblebee bumblebee-nvidia
sudo usermod -a -G bumblebee $USER
</pre>
<p>After this log out and log back in, and you&#8217;re in Optimus heaven! My battery estimate was soon 3.5h+ on 80% charge (it was just under 2h at 80% before installing bumblebee), unity 3D was running, and I could start applications, using the optirun prefix, running on the NVIDIA graphics. With glxspheres, I get 1.9 frames/sec and 1.9 Mpixels/sec without and 115 frames/sec and 113 Mpixels/sec with NVIDIA graphics. Importantly, bumblebee automatically switches off the NVIDIA graphics when nothing is using it, resulting in the much longer battery life. All hail the four main developers of <a title="bumblebee project website" href="http://www.bumblebee-project.org/">Bumblebee</a>: Thulinma, Lekensteyn, Samsagax and ArchangeGabriel.</p>
<h1>Unity</h1>
<p>Unity, Ubuntu&#8217;s unique GUI, has improved muchly since 11.10. I gave Unity on 11.04 a serious go, and also on 11.10, but I gave up in each instance after a week or two due to glaring bugs. The 12.04 Unity has made great progress in fixing a number of small but irritating bugs, I think it might be a keeper. The heads-up display (HUD) is indeed awesome: Press &#8220;alt&#8221; (the default keybinding) and then type away to search through the menus of the currently foreground application. I&#8217;ve come to appreciate the screen space savings due to the global menubar, although it doesn&#8217;t work for all apps yet, vim-gnome being an example of note. At this moment, my only wish would be to have a window-overview like you get in the gnome3-shell when you press the super key.</p>
<p>There has been much bitching and moaning about the direction Ubuntu has taken with Unity, some of it valid arguments. Especially the fact that much effort is being diverted from the gnome-shell is concerning. However, although I&#8217;ve dirtied many a word using previous versions of Unity, I think it&#8217;s good that it&#8217;s exploring directions that create a new UI experience that represents a counter-pole to the Windows and OS-X approaches.</p>
<h3>Fixing Chrome icon grouping in Unity Launcher</h3>
<p>At the time of this update (2012-05-04) I did run into one old annoyance again. If  you start up Chrome (or Chromium) and then one of its application shortcuts, for example GMail, it groups both under the same icon on the Unity Launcher:</p>
<div id="attachment_189" class="wp-caption alignnone" style="width: 171px"><a href="http://vxlabs.com/wp-content/uploads/2012/05/chrome_icons_bug_bamf.png"><img class="size-full wp-image-189" title="chrome_icons_bug_bamf" src="http://vxlabs.com/wp-content/uploads/2012/05/chrome_icons_bug_bamf.png" alt="" width="161" height="120" /></a><p class="wp-caption-text">Chrome and Chrome Application shortcuts are grouped together under the first launcher icon, whichever that is.</p></div>
<p>If you start up the application shortcut first, for example GMail, subsequent Chrome windows will be grouped under the GMail icon. Durn.</p>
<p>Fortunately, the devs have been working on this <a title="launcher icon grouping bug report" href="https://bugs.launchpad.net/unity/+bug/692462">bug</a>, and the fix should soon appear as a stable release update (SRU). Until that time, you can download and install the bamfdaemon, libbamf and libbamf3-0 deb packages from <a title="bamf 0.2.116 and newer package download" href="https://launchpad.net/~unity-team/+archive/staging/+packages">here</a>. Anything with version 0.2.116 and newer has the fix. Note that this only fixes it for the case where you&#8217;ve started up Chrome first (scenario 1 above), and not an application shortcut. See <a title="behaviour of bamf 0.2.116" href="https://bugs.launchpad.net/unity/+bug/692462/comments/70">my comment</a> on the bug report.</p>
<h1>Multi-monitor support</h1>
<p>I had <a title="link to my critical review of ubuntu feisty. I know it's donkey years ago!" href="http://cpbotha.net/2007/04/10/a-critical-look-at-ubuntu-feisty-beta-on-an-hp-nc8430-laptop/">low(ish) expectations</a> when I connected my 40&#8243; Sony Bravia TV to the HDMI port of the laptop, so I was more or less speechless for a while when, without me having to touch any part of the interface, Ubuntu simply extended its desktop onto the TV panel. BOOM. Just like that.</p>
<p>What I also like <em>very much</em>, is that Ubuntu by default puts the Launcher and its main menu bar on both displays (this is configurable though) and, even more gratifying, that the Dash appears automatically on the display currently containing the mouse cursor when I press the Super key. In the photo below, you can see the laptop below, on battery, outputting to the Sony TV via HDMI, and glxspheres humming along at just over 90 FPS using the discrete NVIDIA graphics. What you don&#8217;t see is me, smiling maniacally behind the camera phone.</p>
<div id="attachment_181" class="wp-caption alignnone" style="width: 310px"><a href="http://vxlabs.com/wp-content/uploads/2012/05/ubuntu1204_multimon_1280.jpg"><img class="size-medium wp-image-181" title="ubuntu1204_multimon_1280" src="http://vxlabs.com/wp-content/uploads/2012/05/ubuntu1204_multimon_1280-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">Ubuntu 12.04 multi-monitor support FTW!</p></div>
<p>The Displays configuration window seems to think the 40&#8243; panel is 72&#8243;, but the resolution has been correctly deduced.</p>
<h1>Miscellaneous hardware support</h1>
<p><strong>Power saving</strong> looks pretty good. With the brightness set to 40% (brightness setting is not persisent unfortunately), my power usage at idle is just under 9W:</p>
<div id="attachment_167" class="wp-caption alignnone" style="width: 310px"><a href="http://vxlabs.com/wp-content/uploads/2012/05/idle_power_consumption.png"><img class="size-medium wp-image-167" title="idle_power_consumption" src="http://vxlabs.com/wp-content/uploads/2012/05/idle_power_consumption-300x50.png" alt="" width="300" height="50" /></a><p class="wp-caption-text">PowerTop says my idle power consumpting at 40% brightness is under 9W.</p></div>
<p>Actually with <em>normal</em> browsing over wlan, I was not able to push it that far over 10W. This is after having toggled 10 or so powertop tunables from &#8220;bad&#8221; to &#8220;good&#8221;. After having installed <a title="laptop-mode-tools website" href="http://samwel.tk/laptop_mode/">laptop-mode-tools</a>, the tunables are all automatically and persistently &#8220;good&#8221;, except for a VM timeout. However, this seems to be a misunderstanding between laptop-mode-tools and powertop, and it is in fact quite OK.</p>
<p>The hardware config panel key (Fn-F1) does nothing, the touchpad disable key (Fn-F5) just works, the volume keys (Fn-F6 to Fn-F8) just work, but the hardware fan (Fn-F11) and wireless (Fn-F12) keys do nothing.</p>
<p>Initially the brightness keys (Fn-F2 and Fn-F3) didn&#8217;t really work, only allowing me to switch between two brightness levels (100% and 90%). Fortunately, this <a title="askubuntu question with acpi_backlight=vendor brightness solution" href="http://askubuntu.com/q/72834">AskUbuntu question</a> had the answer. Adding acpi_backlight=vendor to GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub, running sudo update-grub and then rebooting gives you 100% working hardware brightness control. Based on the information on <a title="acpi backlight information" href="https://wiki.archlinux.org/index.php/Backlight">this page</a>, this configures brightness setting to happen through vendor-specific driver modules instead of through the ACPI default driver.</p>
<p>In the working cases, you get the gorgeous notifier display (and in the case of volume even a mac-like audio feedback as you change levels):</p>
<div id="attachment_158" class="wp-caption alignnone" style="width: 310px"><a href="http://vxlabs.com/wp-content/uploads/2012/05/volume_notifier.png"><img class="size-medium wp-image-158" title="volume_notifier" src="http://vxlabs.com/wp-content/uploads/2012/05/volume_notifier-300x92.png" alt="" width="300" height="92" /></a><p class="wp-caption-text">Pretty notifications with Unity</p></div>
<p>As mentioned before, <strong>suspend to and resume from RAM</strong> works like a charm, out of the box, and the resume is really fast. Hibernate does NOT work. I tested this with &#8220;sudo pm-hibernate&#8221;, but when I switched the laptop back on, it acted like it was being cold-started.</p>
<p>I tested the <strong>webcam and sound setup</strong> (speakers and built-in microphone) with the gmail talk plugin and with the cheese application. These both work fine. However, with Skype 2.2.0.35 for Linux, you get the dreaded too-dark webcam image. The often-posted solution of using luvcview to adjust brightness does NOT work. Here&#8217;s a better solution: Install v4l2ucp, the video4linux2 universal control panel. Keep this running when you start Skype. If the video is dark, switch the &#8220;Exposure, Auto Priority&#8221; off and then back on again. This solves the problem on my setup (built-in WebCam SCB-1100N). Whenever you startup Skype&#8217;s video capturing again, it manages to screw up the setting, so you have to retoggle it with v4l2ucp unfortunately.</p>
<p>The <strong>touchpad</strong> can be easily configured for two-finger scrolling, but not for three-finger gestures like it can be on Windows.</p>
<div id="attachment_163" class="wp-caption alignnone" style="width: 310px"><a href="http://vxlabs.com/wp-content/uploads/2012/05/touchpad_config.png"><img class="size-medium wp-image-163" title="touchpad_config" src="http://vxlabs.com/wp-content/uploads/2012/05/touchpad_config-300x213.png" alt="" width="300" height="213" /></a><p class="wp-caption-text">The touchpad configuration dialogue.</p></div>
<p><strong>USB tethering</strong> with my Android-powered (CyanogenMod 7.1) <a title="HTC Desire Z: An in-depth and nerdy review." href="/2011/01/22/htc-desire-z-an-in-depth-and-nerdy-review/">HTC Desire Z</a> works like a charm. I connect the USB cable, activate USB tethering on the telephone, and my laptop is online. This definitely qualifies as a Just Works(tm), and it seems to connect a whole lot faster than Windows 7 does.</p>
<h1>Conclusions</h1>
<p>When I bought this laptop, I had resigned myself to not being able to use it for Linux, for the largest part due to NVIDIA Optimus. However, due to the efforts of the Bumblebee people, and also due Ubuntu 12.04 as a whole with the multi-monitor support being a highlight, my verdict is that this laptop is a great buy also when you&#8217;re planning to go exclusively Linux.</p>
<h1>More resources</h1>
<ul>
<li>My gnome-terminal uses the Solarized colour scheme from <a title="gnome-terminal solarized" href="https://github.com/sigurdga/gnome-terminal-colors-solarized">here</a>, and my vim (both console and gnome) are using the setup from the <a title="main solarized github repo" href="https://github.com/altercation/solarized">main Solarized repository</a>.</li>
</ul>
<h1>Updates</h1>
<ul>
<li><em><em>May 6, 2012: </em></em>Added USB tethering.</li>
<li><em><em>May 4, 2012:</em> </em>Added the Unity Launcher icon grouping bug fix.</li>
<li><em>May 3, 2012:</em> Added the multi-monitor section after testing with my HDMI Sony TV. Added solution for dark webcam capture in Skype. Also, thanks to Ladislav Bodnar, host of DistroWatch.com, this review is now linked from the <a title="ubuntu page on distrowatch" href="http://distrowatch.com/table.php?distribution=ubuntu">Ubuntu page</a>.</li>
</ul>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://vxlabs.com/2012/05/01/review-of-ubuntu-linux-12-04-on-the-samsung-np300v3a-core-i5-nvidia-optimus-laptop/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Fix for blurry photos on HTC Desire Z</title>
		<link>http://vxlabs.com/2012/03/04/fix-for-blurry-photos-on-htc-desire-z/</link>
		<comments>http://vxlabs.com/2012/03/04/fix-for-blurry-photos-on-htc-desire-z/#comments</comments>
		<pubDate>Sun, 04 Mar 2012 13:19:47 +0000</pubDate>
		<dc:creator>cpbotha</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[blurry]]></category>
		<category><![CDATA[fixed]]></category>
		<category><![CDATA[htc desire z]]></category>
		<category><![CDATA[lens]]></category>
		<category><![CDATA[q-tip]]></category>
		<category><![CDATA[solution]]></category>
		<category><![CDATA[toothpaste]]></category>

		<guid isPermaLink="false">http://vxlabs.com/?p=149</guid>
		<description><![CDATA[As you know, we here at VXLabs are of the educated opinion that the HTC Desire Z is an absolutely brilliant telephone. However, recently we noticed that some of our phones (at least two) started producing very blurry photos. See &#8230; <a href="http://vxlabs.com/2012/03/04/fix-for-blurry-photos-on-htc-desire-z/">Continue reading <span class="meta-nav">&#8594;</span></a>
No related posts.]]></description>
			<content:encoded><![CDATA[<p>As you know, we here at VXLabs are of the educated opinion that the HTC Desire Z is an absolutely brilliant telephone. However, recently we noticed that some of our phones (at least two) started producing very blurry photos. See this test picture of my microwave for example:</p>
<div id="attachment_150" class="wp-caption alignnone" style="width: 232px"><a href="http://vxlabs.com/wp-content/uploads/2012/03/microwave_blurry.jpg"><img class="size-medium wp-image-150" title="microwave_blurry" src="http://vxlabs.com/wp-content/uploads/2012/03/microwave_blurry-222x300.jpg" alt="" width="222" height="300" /></a><p class="wp-caption-text">Blurry-appearing microwave, in reality quite sharp!</p></div>
<p>This is of course quite irritating, especially in a phone that is otherwise sheer brilliance. No amount of moist-cloth lens cleaning could improve the results. Fortunately I came across <a title="htc desire z blurry photos forum thread" href="http://forum.xda-developers.com/showthread.php?t=1223807">this forum thread</a>, where it was suggested either to replace the whole phone back plate including lens, or to have the phone repaired by the service centre, or to clean the lens with a q-tip and some toothpaste. The first two options either costing money or requiring a telephone still within its guarantee were quickly eliminated. Although the third option, suggested by forum user allanl-o, sounds strange, we wanted to explore it, for science&#8217;s sake of course. As an aside, the lenses of our two test telephones as well as that of the thread started looked like this (picture courtesy of xudsa II USERT, the thread started):</p>
<div id="attachment_151" class="wp-caption alignnone" style="width: 290px"><a href="http://vxlabs.com/wp-content/uploads/2012/03/desirez_blurry_lens.jpg"><img class="size-medium wp-image-151" title="desirez_blurry_lens" src="http://vxlabs.com/wp-content/uploads/2012/03/desirez_blurry_lens-280x300.jpg" alt="" width="280" height="300" /></a><p class="wp-caption-text">What your lens probably looks like if you&#39;re taking really blurry pictures.</p></div>
<p>It seems that there&#8217;s some kind of coating that has started to flake off. In any case, it turns out that the mild abrasive in the tooth paste and a minute of two&#8217;s rubbing with a q-tip is just enough to clean up the glass in front of the lens completely, resulting in mega sharp photos again. Look at my microwave, now as sharp in the photo as it is in reality:</p>
<div id="attachment_152" class="wp-caption alignnone" style="width: 241px"><a href="http://vxlabs.com/wp-content/uploads/2012/03/microwave_sharp.jpg"><img class="size-medium wp-image-152" title="microwave_sharp" src="http://vxlabs.com/wp-content/uploads/2012/03/microwave_sharp-231x300.jpg" alt="" width="231" height="300" /></a><p class="wp-caption-text">Microwave, sharp in reality and in the photo!</p></div>
<p>We&#8217;ve performed this procedure on two different HTC Desire Z phones, in both cases with great results. Let us know in the comments if this worked for you!</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://vxlabs.com/2012/03/04/fix-for-blurry-photos-on-htc-desire-z/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to get Zotero IEEE style NOT to abbreviate with et al. in the bibliography</title>
		<link>http://vxlabs.com/2011/12/01/how-to-get-zotero-ieee-style-not-to-abbreviate-with-et-al-in-the-bibliography/</link>
		<comments>http://vxlabs.com/2011/12/01/how-to-get-zotero-ieee-style-not-to-abbreviate-with-et-al-in-the-bibliography/#comments</comments>
		<pubDate>Thu, 01 Dec 2011 08:33:03 +0000</pubDate>
		<dc:creator>cpbotha</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[abbreviation]]></category>
		<category><![CDATA[bibliography]]></category>
		<category><![CDATA[et al]]></category>
		<category><![CDATA[fixed]]></category>
		<category><![CDATA[ieee]]></category>
		<category><![CDATA[zotero]]></category>

		<guid isPermaLink="false">http://vxlabs.com/?p=142</guid>
		<description><![CDATA[In my view, Zotero is currently the best reference manager available, and it&#8217;s also completely open source! I had one niggling problem though with version 2.1.10 (latest stable at the time of this writing): When I would export (or Quick &#8230; <a href="http://vxlabs.com/2011/12/01/how-to-get-zotero-ieee-style-not-to-abbreviate-with-et-al-in-the-bibliography/">Continue reading <span class="meta-nav">&#8594;</span></a>
No related posts.]]></description>
			<content:encoded><![CDATA[<p>In my view, Zotero is currently the best reference manager available, and it&#8217;s also completely open source!</p>
<p>I had one niggling problem though with version 2.1.10 (latest stable at the time of this writing): When I would export (or Quick Copy) references in IEEE style, it would abbreviate the author list with &#8220;First Author, et al.&#8221; if there were seven (7) or more authors. When I&#8217;m building a bibliography list, this is of course never the right thing to do.</p>
<p>Here&#8217;s the simple workaround for this problem:</p>
<ul>
<li>Go to Preferences | Advanced and click on the &#8220;Show Data Directory&#8221; button.</li>
<li>Edit styles/ieee.csl with your favourite text editor.</li>
<li>Look for the line starting with &lt;bibliography et-al-min=&#8221;7&#8243; &#8230; and change the 7 to a higher number, 100 for example.</li>
</ul>
<div>Let me know in the comments if this helped!</div>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://vxlabs.com/2011/12/01/how-to-get-zotero-ieee-style-not-to-abbreviate-with-et-al-in-the-bibliography/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A Windows console that does not suck</title>
		<link>http://vxlabs.com/2011/08/28/a-windows-console-that-does-not-suck/</link>
		<comments>http://vxlabs.com/2011/08/28/a-windows-console-that-does-not-suck/#comments</comments>
		<pubDate>Sun, 28 Aug 2011 08:37:10 +0000</pubDate>
		<dc:creator>cpbotha</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[cmd.exe]]></category>
		<category><![CDATA[command interpreter]]></category>
		<category><![CDATA[command-line]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[console2]]></category>
		<category><![CDATA[cygwin]]></category>
		<category><![CDATA[git bash]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://vxlabs.com/?p=132</guid>
		<description><![CDATA[We&#8217;ve all been there: You&#8217;re used to the terminal on Linux or OSX, and then for some or other reason you need to work on Windows and you&#8217;re confronted with the half-baked monstrosity that is cmd.exe: To summarise: You can &#8230; <a href="http://vxlabs.com/2011/08/28/a-windows-console-that-does-not-suck/">Continue reading <span class="meta-nav">&#8594;</span></a>
No related posts.]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve all been there: You&#8217;re used to the terminal on Linux or OSX, and then for some or other reason you need to work on Windows and you&#8217;re confronted with the <a title="enlightening Wikipedia page on the Win32 console" href="http://en.wikipedia.org/wiki/Win32_console">half-baked monstrosity that is cmd.exe</a>:</p>
<div id="attachment_133" class="wp-caption alignnone" style="width: 310px"><a href="http://vxlabs.com/wp-content/uploads/2011/08/cmd_screenie.jpg"><img class="size-medium wp-image-133" title="cmd_screenie" src="http://vxlabs.com/wp-content/uploads/2011/08/cmd_screenie-300x151.jpg" alt="" width="300" height="151" /></a><p class="wp-caption-text">It&#39;s 2011 and this is Windows 7: Why does the console still make me want to gnaw off my fingers?</p></div>
<p>To summarise: You can only resize the window vertically (so you&#8217;re always restricted to 80 characters width which is just idiotic on modern widescreen displays), copy and paste is so painful that you&#8217;ll wish that they&#8217;d rather just not bothered with it in the first place and the cmd.exe interpreter itself is primitive when compared with any modern unix shell.</p>
<p>Enter the two-pronged solution of <a title="Console2 website" href="http://sourceforge.net/projects/console/">Console2</a> and Git bash! Console2 is a console that solves the UI problems (resizing! copy and paste! terminal transparency! tabs!) and you can use it together with any combination of command line interpreters, such as for example the existing cmd.exe, bash or anything else.</p>
<p>Here&#8217;s my setup, configured with Git bash (you get this for free with the <a title="Windows git installer" href="http://code.google.com/p/msysgit/">Windows git installer</a>, for this purpose it&#8217;s better than Cygwin as it&#8217;s a touch closer to Windows) as well as plain old cmd.exe. To configure a Git bash tab, set Shell to &#8220;C:\Windows\SysWOW64\cmd.exe /c &#8220;&#8221;C:\Program Files (x86)\Git\bin\sh.exe&#8221; &#8211;login -i&#8221; (including all quotes) and Startup dir to %HOMEDRIVE%%HOMEPATH%. I&#8217;ve also configured Ctrl-Alt-T to invoke Console2. With shift-mouse-drag I can select text (nice editor select, not cmd.exe block select, ptooey!), and I&#8217;ve set Ctrl-Shift-C and Ctrl-Shift-V to copy and paste so it&#8217;s like the Gnome terminal on Linux. Behold:</p>
<div id="attachment_134" class="wp-caption alignnone" style="width: 310px"><a href="http://vxlabs.com/wp-content/uploads/2011/08/console2_screenie.jpg"><img class="size-medium wp-image-134" title="console2_screenie" src="http://vxlabs.com/wp-content/uploads/2011/08/console2_screenie-300x227.jpg" alt="" width="300" height="227" /></a><p class="wp-caption-text">Console2 makes the pain go away.</p></div>
<p>My Windows experience is a lot more bearable now, perhaps even slightly pleasant! Did I just say that?!</p>
<h3>Alternatives</h3>
<ul>
<li>PowerShell replaces cmd.exe, but by default still runs inside the Windows console. Still much suckage in other words, plus that I don&#8217;t feel compelled to learn PS yes.</li>
<li>Cygwin mintty is also often cited as a console replacement, but seems to cause problems (<a title="mintty git issues" href="https://github.com/spraints/git-tfs/issues/53">for example with git</a>) as it&#8217;s not a full Windows console.</li>
<li>Cygwin itself is really fantastic, but due to that POSIX compatibility layer which is otherwise a useful thing, differs too much from the native Windows goodies so that sometimes <a title="stackoverflow question that mentions windows issues with cygwin" href="http://stackoverflow.com/questions/440269/whats-a-good-alternative-windows-console">native Windows behaviour is interfered with</a>.</li>
</ul>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://vxlabs.com/2011/08/28/a-windows-console-that-does-not-suck/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>How to stop accidentally answering or declining calls when trying to fish your HTC Sense Android phone from your pocket</title>
		<link>http://vxlabs.com/2011/07/20/how-to-stop-accidentally-answering-or-declining-calls-when-trying-to-fish-your-htc-sense-android-phone-from-your-pocket/</link>
		<comments>http://vxlabs.com/2011/07/20/how-to-stop-accidentally-answering-or-declining-calls-when-trying-to-fish-your-htc-sense-android-phone-from-your-pocket/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 21:43:30 +0000</pubDate>
		<dc:creator>cpbotha</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[accidental answering]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[htc desire z]]></category>
		<category><![CDATA[htc sense]]></category>
		<category><![CDATA[swipe to answer]]></category>
		<category><![CDATA[widgetlocker]]></category>

		<guid isPermaLink="false">http://vxlabs.com/?p=119</guid>
		<description><![CDATA[As you know by now, I really do love my HTC Desire Z phone. However, besides the miserable battery life which one tries to live with because it&#8217;s otherwise such a kickass phone, a major gripe was HTC Sense&#8217;s vertical &#8230; <a href="http://vxlabs.com/2011/07/20/how-to-stop-accidentally-answering-or-declining-calls-when-trying-to-fish-your-htc-sense-android-phone-from-your-pocket/">Continue reading <span class="meta-nav">&#8594;</span></a>
No related posts.]]></description>
			<content:encoded><![CDATA[<p><a title="my in-depth and nerdy review of the HTC Desire Z" href="/2011/01/22/htc-desire-z-an-in-depth-and-nerdy-review/">As you know by now</a>, I really do love my HTC Desire Z phone. However, besides the miserable battery life which one tries to live with because it&#8217;s otherwise such a kickass phone, a major gripe was HTC Sense&#8217;s vertical swipe to answer or decline an incoming phone call. This has resulted in me accidentally answering or declining numerous incoming calls as I was trying to fish the phone out of my jeans pocket, as this fishing generally causes one&#8217;s fingers to slide vertically over the screen. The advice of turning the phone around so the screen faces one&#8217;s leg also doesn&#8217;t cut it, because the screen could get scratched on the various small studs one often finds in that area, but more importantly because I don&#8217;t like following semi-working rules like that.</p>
<p>I finally found <a title="deetsvl forum posting" href="http://community.htc.com/na/htc-forums/android/f/94/p/4472/53577.aspx#53577">a forum posting by a user named deetsvl</a> with a solution to this problem that I&#8217;ve confirmed works perfectly on this HTC Desire Z. Behold:</p>
<div id="attachment_124" class="wp-caption alignnone" style="width: 310px"><a href="http://vxlabs.com/wp-content/uploads/2011/07/widgetlocker.jpg"><img class="size-medium wp-image-124" title="widgetlocker" src="http://vxlabs.com/wp-content/uploads/2011/07/widgetlocker-300x146.jpg" alt="" width="300" height="146" /></a><p class="wp-caption-text">All hail WidgetLocker, solution to the HTC Sense accidental answering problem!</p></div>
<p><a title="Widget Locker app in the market" href="https://market.android.com/details?id=com.teslacoilsw.widgetlocker">WidgetLocker</a> going to cost you a whole € 1.41, but it does the trick just perfectly, <strong>if</strong> you remember to change the following setting: <em>In &#8220;Settings | Popups&#8221;, check &#8220;Hide Incoming Call&#8221;</em>. When you receive a call, you&#8217;ll have to slide horizontally first to unlock WidgetLocker, then the normal vertical business for answering / declining a call. If you manage to do <em>that</em> accidentally, I know a good side-show agent, so give me a call. On my Desire Z, I also checked &#8220;Settings | Buttons &amp; Inputs | Slide Keyboard Unlock&#8221; so that I don&#8217;t have to unlock Widget Locker when suavely flick-sliding open the keyboard on this baby.</p>
<p>I hope that you enjoy your new-found only-answering-and-declining-calls-that-you-really-want-to freedom!</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://vxlabs.com/2011/07/20/how-to-stop-accidentally-answering-or-declining-calls-when-trying-to-fish-your-htc-sense-android-phone-from-your-pocket/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu 11.04 Natty Narwhal Annoyances (Dell E6410 with NVS 3100m GPU)</title>
		<link>http://vxlabs.com/2011/05/15/ubuntu-11-04-natty-narwhal-annoyances-dell-e6410-with-nvs-3100m-gpu/</link>
		<comments>http://vxlabs.com/2011/05/15/ubuntu-11-04-natty-narwhal-annoyances-dell-e6410-with-nvs-3100m-gpu/#comments</comments>
		<pubDate>Sun, 15 May 2011 13:24:04 +0000</pubDate>
		<dc:creator>cpbotha</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[11.04]]></category>
		<category><![CDATA[6200]]></category>
		<category><![CDATA[annoyances]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[dell e6410]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[natty]]></category>
		<category><![CDATA[resume]]></category>
		<category><![CDATA[slow scroll]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://vxlabs.com/?p=106</guid>
		<description><![CDATA[I recently upgraded my Dell E6410 with NVS 3100m GPU laptop from Ubuntu 10.10 (Maverick Meerkat) to 11.04 (Natty Narwhal), and I can&#8217;t shake this feeling that the distribution has taken a few steps back. I&#8217;m not even referring to &#8230; <a href="http://vxlabs.com/2011/05/15/ubuntu-11-04-natty-narwhal-annoyances-dell-e6410-with-nvs-3100m-gpu/">Continue reading <span class="meta-nav">&#8594;</span></a>
Related posts:<ol>
<li><a href='http://vxlabs.com/2010/11/30/ubuntu-10-10-x86_64-on-your-dell-e6410-with-nvs-3100m-gpu/' rel='bookmark' title='Ubuntu 10.10 x86_64 on your Dell E6410 with NVS 3100m GPU'>Ubuntu 10.10 x86_64 on your Dell E6410 with NVS 3100m GPU</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>I recently upgraded my Dell E6410 with NVS 3100m GPU laptop from Ubuntu 10.10 (Maverick Meerkat) to 11.04 (Natty Narwhal), and I can&#8217;t shake this feeling that the distribution has taken a few steps back. I&#8217;m not even referring to the new Unity desktop, but to some super-irritating annoyances I had to fix or work around before being able to use the system. These annoyances were not present in 10.10, it had a whole different collection. <img src='http://vxlabs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3>Wireless N connects, but no packets get through</h3>
<p>The first annoyance was when I successfully connected to my wireless N access point, but couldn&#8217;t get a single packet through. After much searching, it turns out there&#8217;s a bug in the firmware for the Centrino Advanced-N 6200 wireless adapter that keeps it from getting <em>any</em> data through.</p>
<p>The <strong>solution</strong> is to disable wireless N on your laptop by creating a file ﻿etc/modprobe.d/inteldisablen.conf with the following contents:</p>
<pre class="brush: bash; title: ; notranslate">options iwlagn 11n_disable50=1 11n_disable=1</pre>
<p>and then to reboot. If you don&#8217;t want to reboot, just rmmod and modprobe the iwlagn kernel module. I&#8217;ve confirmed that this fix works.</p>
<h3>Google Chrome scrolls excruciatingly slowly</h3>
<p>After resuming and suspending, certain 2D and GPU-assisted graphics operations slow down. Scrolling in Chrome, even on a simple Google results page, is excruciatingly slow with head-explosion-levels of lag.</p>
<p>The <strong>solution</strong> is to disable hyperthreading, or at least to disable a number of CPU cores, at suspend and re-enable at resume. My laptop i5 CPU has 2 real cores, and thus 4 virtual cores due to hyperthreading. I&#8217;m using the following script, taken from <a title="nvnews forum thread with slow resume work-around" href="http://www.nvnews.net/vbulletin/showthread.php?t=158091">this forum thread</a> to do the necessary core disabling / enabling automatically:</p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/sh

# Disable hyper-threading processor cores on suspend and hibernate, re-enable them
# on resume. Presumably helps for buggy nvidia behaviour.
# save this file as /etc/pm/sleep.d/20_core_i5_disable_cores and make excutable
# with chmod +x /etc/pm/sleep.d/20_core_i5_disable_cores

# from: http://www.nvnews.net/vbulletin/showthread.php?t=158091

case $1 in
        hibernate|suspend)
                echo 0 &gt; /sys/devices/system/cpu/cpu1/online
                echo 0 &gt; /sys/devices/system/cpu/cpu3/online
                ;;

        thaw|resume)
                echo 1 &gt; /sys/devices/system/cpu/cpu1/online
                echo 1 &gt; /sys/devices/system/cpu/cpu3/online
                ;;
esac
</pre>
<p>I&#8217;ve confirmed both the slow-down behaviour and the working of the fix.</p>
<h3>Eclipse scrollbars don&#8217;t work</h3>
<p>Natty&#8217;s new overlay scrollbars screw with Eclipse&#8217;s scrollbars, leaving you with 100% non-working scrollbars! You can either <a title="how to disable ubuntu 11.04 overlay scrollbars" href="http://www.webupd8.org/2011/04/how-to-disable-overlay-scrollbars-in.html">disable the overlay scrollbars completely</a>, or comment out the GDK_NATIVE_WINDOWS line close to the start of the /usr/bin/eclipse shell script:</p>
<pre class="brush: bash; title: ; notranslate">
#export GDK_NATIVE_WINDOWS=true
</pre>
<p>On my setup, this fix works most of the time.</p>
<h3>Conclusion</h3>
<p>It&#8217;s a shame that these things don&#8217;t work out of the box, as some of them had been reported long before the Natty release. Before I forget, if you install 11.04 on this specific laptop, you might also have to follow <a title="Ubuntu 10.10 x86_64 on your Dell E6410 with NVS 3100m GPU" href="/2010/11/30/ubuntu-10-10-x86_64-on-your-dell-e6410-with-nvs-3100m-gpu/">my Ubuntu 10.10 howto</a> if you see a black screen at bootup or resume.</p>
<p>Related posts:</p><ol>
<li><a href='http://vxlabs.com/2010/11/30/ubuntu-10-10-x86_64-on-your-dell-e6410-with-nvs-3100m-gpu/' rel='bookmark' title='Ubuntu 10.10 x86_64 on your Dell E6410 with NVS 3100m GPU'>Ubuntu 10.10 x86_64 on your Dell E6410 with NVS 3100m GPU</a></li>
</ol>]]></content:encoded>
			<wfw:commentRss>http://vxlabs.com/2011/05/15/ubuntu-11-04-natty-narwhal-annoyances-dell-e6410-with-nvs-3100m-gpu/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>The Django Book 2.0 in MobiPocket / Kindle format</title>
		<link>http://vxlabs.com/2011/04/25/the-django-book-2-0-in-mobipocket-kindle-format/</link>
		<comments>http://vxlabs.com/2011/04/25/the-django-book-2-0-in-mobipocket-kindle-format/#comments</comments>
		<pubDate>Mon, 25 Apr 2011 14:18:45 +0000</pubDate>
		<dc:creator>cpbotha</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[calibre]]></category>
		<category><![CDATA[django]]></category>
		<category><![CDATA[djangobook]]></category>
		<category><![CDATA[ebook]]></category>
		<category><![CDATA[kindle]]></category>
		<category><![CDATA[mobipocket]]></category>

		<guid isPermaLink="false">http://vxlabs.com/?p=97</guid>
		<description><![CDATA[I wanted to read the web preview of the Django Book&#8217;s second edition on my Kindle. Besides the fact that all image links are broken on that website and have apparently been so for some time, I prefer to have &#8230; <a href="http://vxlabs.com/2011/04/25/the-django-book-2-0-in-mobipocket-kindle-format/">Continue reading <span class="meta-nav">&#8594;</span></a>
No related posts.]]></description>
			<content:encoded><![CDATA[<p>I wanted to read the <a title="djangobook 2.0 web preview" href="http://djangobook.com/en/2.0/">web preview of the Django Book&#8217;s second edition</a> on my Kindle. Besides the fact that all image links are broken on that website and have apparently been so for some time, I prefer to have these things in the DRM-free MobiPocket / Kindle format. Of course I couldn&#8217;t find this anywhere, so I rolled my own based on the book&#8217;s SVN repository.</p>
<p>On this page you can download the <a title="MobiPocket version of The Django Book 2.0" href="http://vxlabs.com/wp-content/uploads/2011/04/The-Django-Book-2.0-Adrian-Holovaty.mobi_.zip">MobiPocket version of the book</a> and the <a title="HTML source files used for making the MobiPocket" href="http://vxlabs.com/wp-content/uploads/2011/04/The-Django-Book-2.0-Adrian-Holovaty.zip">HTML source files</a> I generated to make it. You can also read on for the skinny on how you can do this yourself.</p>
<p>This procedure works best on a unix-like machine, as we&#8217;re going to use grep and sed along with some Python.</p>
<p>1. We start by doing a checkout of the reStructuredText sources of the book, moving the linked graphics into the same directory as the reStructuredText txt files and then creating a grepindex.txt file that will serve as the basis for our table of contents index.txt:</p>
<pre class="brush: bash; title: ; notranslate">
svn co http://djangobook.com/svn/branches/2.0/ 20svn
cd 20svn
find graphics/ -name *.png -exec mv {} . \;
grep -h &quot;^Chapter [0-9]*:&quot; *.txt &gt; grepindex.txt
</pre>
<p>2. The grepindex.txt will now be converted to something more reStructuredText-like using this script, called grepindex2index.py:</p>
<pre class="brush: python; title: ; notranslate">
# first do:
# grep -h &quot;^Chapter [0-9]*:\|^Appendix [A-Z]:&quot; *.txt &gt; grepindex.txt
# then:
# python grepindex2index.py grepindex.txt &gt; index.txt

import re
import sys

rst_header = &quot;&quot;&quot;
===================
The Django Book 2.0
===================

Copyright 2006, 2007, 2008, 2009 Adrian Holovaty and Jacob Kaplan-Moss.
This work is licensed under the GNU Free Document License.

This ebook version was prepared by Charl Botha &lt;http://charlbotha.com/&gt; from
the SVN at http://djangobook.com/svn/branches/2.0/ on 2011-04-25, and is
hosted by &lt;http://vxlabs.com/&gt;.

&quot;&quot;&quot;

def main():
    f1 = open(sys.argv[1])
    print rst_header

    # this will match on &quot;Chapter 10: the title&quot; or &quot;Appendix B: another title&quot;
    # groups 0: chapter 10 or appendix A; 1: 10 (or None), 2: A (or None), 3: title
    pat = re.compile('(^Chapter\s*([0-9]*)|^Appendix\s*([A-Z])):\s*(.*)$')
    chapters = []
    appendices = []
    for l in f1:
        # Chapter 10: Advanced Models -&gt; `Chapter 10: Advanced Models &lt;chapter10.html&gt;`_
        mo = pat.match(l)

        if mo.groups()[1] is not None:
            chapters.append(&quot;* `Chapter %s: %s &lt;chapter%02d.html&gt;`_&quot; % (mo.groups()[1],mo.groups()[3],int(mo.groups()[1])))

        else:
            appendices.append(&quot;* `Appendix %s: %s &lt;appendix%s.html&gt;`_&quot; % (mo.groups()[2],mo.groups()[3],mo.groups()[2]))

    print &quot;\n&quot;.join(chapters)
    print &quot;\n&quot;.join(appendices)

if __name__ == &quot;__main__&quot;:
    main()
</pre>
<p>Save this to a script called grepindex2index.py, then invoke it with:</p>
<pre class="brush: bash; title: ; notranslate">
python grepindex2index.py grepindex.txt &gt; index.txt
</pre>
<p>3. We&#8217;ll then proceed to fix all chapter references with the following bit of sed:</p>
<pre class="brush: bash; title: ; notranslate">
sed -i &quot;s/\.\.\/\(chapter[0-9]*\)\//\1.html/g&quot; chapter*txt
</pre>
<p>(this will change all &#8220;../chapter??/&#8221; links to just &#8220;chapter??.html&#8221;)</p>
<p>4. Everything is now ready to be converted to HTML:</p>
<pre class="brush: bash; title: ; notranslate">
for i in *.txt; do rst2html $i `echo $i | cut -f 1 -d .`.html; done
</pre>
<p>5. After downloading this <a title="django desktop background image" href="http://media.djangoproject.com/img/desktops/djangodesktop-1024x768.jpg">django desktop background</a> as cover image, I dragged and dropped the top-level index.html file onto the free <a href="http://calibre-ebook.com/">Calibre software</a> to import it, and then used the edit metadata function to set the cover image. After this, I converted the imported files to MobiPocket remembering to add the word &#8220;appendix&#8221; to the chapter detection xpath expression in the &#8220;structured detection&#8221; section of the conversion dialogue.</p>
<p>That&#8217;s all there&#8217;s to it! Have a good read.</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://vxlabs.com/2011/04/25/the-django-book-2-0-in-mobipocket-kindle-format/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Don’t buy HomePlug / Powerline ethernet adapters</title>
		<link>http://vxlabs.com/2011/03/02/dont-buy-homeplug-adapters/</link>
		<comments>http://vxlabs.com/2011/03/02/dont-buy-homeplug-adapters/#comments</comments>
		<pubDate>Tue, 01 Mar 2011 23:14:16 +0000</pubDate>
		<dc:creator>cpbotha</dc:creator>
				<category><![CDATA[review]]></category>
		<category><![CDATA[200AV]]></category>
		<category><![CDATA[homeplug]]></category>
		<category><![CDATA[msi epower]]></category>
		<category><![CDATA[plc]]></category>
		<category><![CDATA[powerline]]></category>
		<category><![CDATA[sucks]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://vxlabs.com/?p=78</guid>
		<description><![CDATA[(Post summary: The real-world throughput of current generation Homeplug AV 200 Mbit/s powerline ethernet adapters in a modern house is woefully inadequate. Even wireless is much to be preferred, and can be had for cheaper. Read below for why.) Based &#8230; <a href="http://vxlabs.com/2011/03/02/dont-buy-homeplug-adapters/">Continue reading <span class="meta-nav">&#8594;</span></a>
No related posts.]]></description>
			<content:encoded><![CDATA[<p><em>(Post summary: The real-world throughput of current generation Homeplug AV 200 Mbit/s powerline ethernet adapters in a modern house is woefully inadequate. Even wireless is much to be preferred, and can be had for cheaper. Read below for why.)</em></p>
<p>Based on the superb price / performance ratio of the MSI ePower 200AV II kit as extolled by <a title="nl.hardware.info review of 32 powerline adapters" href="http://nl.hardware.info/reviews/1677/test-32-powerline-adapters">this comparative review</a> (32 powerline adapters were tested), and especially the fact that in the test setup these adapters managed to attain 32 Mbit/s even in the <a title="nl.hardware.info powerline test bad case scenario" href="http://nl.hardware.info/reviews/1677/6/test-32-powerline-adapters-testresultaten-twee-stroomgroepen---bad-case">bad case scenario</a> (two different circuits, 100 metres of cable separating the two adapters), I purchased the MSI ePower 200AV+ II kit to replace a wireless link I currently have in my house between the second and third floors. Based on <a title="iperf on windows page" href="http://linhost.info/2010/02/iperf-on-windows/">iperf</a> measurements, the wireless link currently manages around 22Mbit/s of throughput. Because the two power sockets I was planning to use are on the same circuit, I thought that I could improve on this existing connection with the two powerline adapters. Little did I know&#8230;</p>
<div id="attachment_79" class="wp-caption alignnone" style="width: 310px"><a href="http://vxlabs.com/wp-content/uploads/2011/03/msi_epower200avp_box.jpg"><img class="size-medium wp-image-79" title="msi_epower200avp_box" src="http://vxlabs.com/wp-content/uploads/2011/03/msi_epower200avp_box-300x254.jpg" alt="" width="300" height="254" /></a><p class="wp-caption-text">The MSI ePower 200AV+ kit still nicely in its box.</p></div>
<p>After taking delivery of the new kit, I started testing with both adapters in the same room. One thing that can be said for this hardware, is that it&#8217;s really plug and play. One adapter in wall-socket and connected to first floor ethernet hub, second adapter in wall-socket and connected to my laptop, and my laptop was online. No mess no fuss.</p>
<p>The first nasty surprise appeared as I installed and started up up the software that came in the box (version 5.0). It claimed not to find any homeplug adapters on the network, although the laptop I was running it on was directly connected to one of the PLCs. So I downloaded version 6.0 of the software, only available in German, from MSI&#8217;s website and that did manage to see both adapters. At least now I was able to configure both the PLCs (in German&#8230;) and set the network name to something private for security&#8217;s sake.</p>
<p>After moving one of the adapters to my study on the third floor and connecting it to a Linux server there, I could start running iperf on the server and my laptop on the second floor for testing. The two PLC adapters were now in the same-circuit sockets I was intending to use. Below is the output of three runs of iperf:</p>
<pre class="brush: plain; title: ; notranslate">
C:\Users\cpbotha\Downloads&gt;iperf -c 192.168.1.126
------------------------------------------------------------
Client connecting to 192.168.1.126, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[148] local 192.168.1.38 port 49921 connected with 192.168.1.126 port 5001
[ ID] Interval       Transfer     Bandwidth
[148]  0.0-10.0 sec  10.7 MBytes  8.95 Mbits/sec

C:\Users\cpbotha\Downloads&gt;iperf -c 192.168.1.126
------------------------------------------------------------
Client connecting to 192.168.1.126, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[148] local 192.168.1.38 port 49987 connected with 192.168.1.126 port 5001
[ ID] Interval       Transfer     Bandwidth
[148]  0.0-10.0 sec  11.2 MBytes  9.41 Mbits/sec

C:\Users\cpbotha\Downloads&gt;iperf -c 192.168.1.126
------------------------------------------------------------
Client connecting to 192.168.1.126, TCP port 5001
TCP window size: 8.00 KByte (default)
------------------------------------------------------------
[148] local 192.168.1.38 port 49988 connected with 192.168.1.126 port 5001
[ ID] Interval       Transfer     Bandwidth
[148]  0.0-10.0 sec  10.4 MBytes  8.70 Mbits/sec
</pre>
<p>Yes ladies and  gentlemen, that&#8217;s an absolutely miserable 9 Mbit/s (think 1 Mbyte/s&#8230;) between two MSI ePower 200AV+ II adapters on the same circuit, on different floors in a house that was built 5 years ago. For your reference, my wireless link (two Sitecom 300N X2 access points in Wireless Distribution Mode) easily manages 22 Mbit/s <em>effective throughput</em> right through a reinforced concrete floor.</p>
<p>MSI&#8217;s own utility claimed the following (I&#8217;ve cut out things that you don&#8217;t need to see):</p>
<pre class="brush: plain; title: ; notranslate">
Rate 18/39
Vendor Atheros
Firmware INT6400-MAC-4-0-4011-00-3430-20090501-FINAL-C
Übertragungsrate hoch 174.00
Übertragungsrate niedrig 15.00
</pre>
<p>&#8230; with its reported link speed varying between 17 and 35 Mbit/s.</p>
<p>I tried the third floor PLC adapter on various different sockets, the results were similarly depressing.</p>
<p>As if the miserable throughput was not reason enough to avoid powerline adapters, note the following mechanical issue:</p>
<div id="attachment_80" class="wp-caption alignnone" style="width: 194px"><a href="http://vxlabs.com/wp-content/uploads/2011/03/msi_epower200avp_in_socket.jpg"><img class="size-medium wp-image-80" title="msi_epower200avp_in_socket" src="http://vxlabs.com/wp-content/uploads/2011/03/msi_epower200avp_in_socket-184x300.jpg" alt="" width="184" height="300" /></a><p class="wp-caption-text">When the adapter sits in a double socket, the only thing that&#39;ll fit in the free socket is a really thin plug as the upper part of the adapter is flush with the socket and covers a fair part of the other hole.</p></div>
<p>As you can see in the caption, although the PLC has a socket of its own, it covers the neighbouring socket in a double-socket setup to such an extent that you can only fit a really thin plug in the neighbouring socket.</p>
<p>To conclude: Homeplugs perform really well in a test environment, even when different circuits are introduced and metres of extra cable are inserted. However, what the tests often fail to take into account, is the fact that people actually make use of other electrical devices besides homeplugs (!!) and that these all introduce noise into the home grid that apparently severely affect powerline ethernet performance. Perhaps in your house things work out differently, but my advice would be to steer clear of powerline adapters (unless you can borrow a pair to test with), opting of course for ethernet cables whenever this is possible and for wireless otherwise.</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://vxlabs.com/2011/03/02/dont-buy-homeplug-adapters/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Sipura / Linksys / Cisco SPA3102 Voice Gateway in The Netherlands</title>
		<link>http://vxlabs.com/2011/02/05/sipura-linksys-cisco-spa3102-voice-gateway-in-the-netherlands/</link>
		<comments>http://vxlabs.com/2011/02/05/sipura-linksys-cisco-spa3102-voice-gateway-in-the-netherlands/#comments</comments>
		<pubDate>Sat, 05 Feb 2011 21:13:23 +0000</pubDate>
		<dc:creator>cpbotha</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[betamax]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[dialplan]]></category>
		<category><![CDATA[dutch]]></category>
		<category><![CDATA[europe]]></category>
		<category><![CDATA[kpn]]></category>
		<category><![CDATA[linksys]]></category>
		<category><![CDATA[netherlands]]></category>
		<category><![CDATA[sip]]></category>
		<category><![CDATA[sipura]]></category>
		<category><![CDATA[spa3102]]></category>
		<category><![CDATA[voip]]></category>
		<category><![CDATA[ziggo]]></category>

		<guid isPermaLink="false">http://vxlabs.com/?p=65</guid>
		<description><![CDATA[After recently spending some hours configuring my new Cisco SPA3102 Voice Gateway with a Betamax SIP provider (voipbuster / voipstunt / voipcheap / and so forth, see http://www.backsla.sh/betamax for a full list of all Betamax providers) and the Dutch PSTN &#8230; <a href="http://vxlabs.com/2011/02/05/sipura-linksys-cisco-spa3102-voice-gateway-in-the-netherlands/">Continue reading <span class="meta-nav">&#8594;</span></a>
No related posts.]]></description>
			<content:encoded><![CDATA[<p>After recently spending some hours configuring my new <a title="cisco spa3102 product page" href="http://www.cisco.com/en/US/products/ps10027/index.html">Cisco SPA3102 Voice Gateway</a> with a Betamax SIP provider (voipbuster / voipstunt / voipcheap / and so forth, see <a href="http://www.backsla.sh/betamax">http://www.backsla.sh/betamax</a> for a full list of all Betamax providers) and the Dutch PSTN system, I thought I&#8217;d try and make your life easier by documenting the most important of the settings.</p>
<div id="attachment_70" class="wp-caption alignnone" style="width: 231px"><a href="http://vxlabs.com/wp-content/uploads/2011/02/spa3102.jpg"><img class="size-full wp-image-70" title="spa3102" src="http://vxlabs.com/wp-content/uploads/2011/02/spa3102.jpg" alt="" width="221" height="290" /></a><p class="wp-caption-text">With this box you can stick it to the man!</p></div>
<p>The SPA3102 is connected to an existing router, so I have the <em>Lan Setup</em> set to <em>Bridge</em>, and have configured the <em>Internet</em> port (on the <em>Router | Wan</em> tab) with a suitable static IP. To be clear, in this configuration, one only connects up the <em>Internet</em> port and NOT the <em>Ethernet</em> port.</p>
<h3>Voice | Regional</h3>
<p>For the <em>Voice | Regional tab</em> I found the following <em>Call Progress Tone</em> settings on a <a title="voxilla page with tone and ring cadences for NL" href="http://forum.voxilla.com/cisco-linksys-sipura-voip-support-forum/spa-localization-wizard-dutch-14045.html">voxilla forum page</a> by users PJH and edokter:<br />
<code><br />
Dial Tone: 425@-10;20(*/0/1)<br />
Second Dial Tone: 425@-10;20(*/0/1)<br />
Outside Dial Tone: 350@-19;440@-19;20(*/0/1+2)<br />
Busy Tone: 425@-10;10(.5/.5/1)<br />
Reorder Tone: 425@-10;10(.25/.25/1)<br />
Off Hook Warning Tone: 1000@0;*(0/9.5/0,.1/.1/1,.1/.1/1,.1/0/1)<br />
Ring Back Tone: 440@-19,480@-19;*(2/4/1+2)<br />
Confirm Tone: 425@-10;1(.1/.1/1)<br />
SIT1 Tone: 950@-19,1400@-19,1800@-19;30(.333/0/1,.333/0/2,.333/1/3)<br />
MWI Dial Tone: 425@-10;1(.1/.1/1);20(*/0/1)<br />
Cfwd Dial Tone: 425@-10;20(.5/.05/1)<br />
</code></p>
<p>On the same tab and from the same forum page, the following <em>Distinctive Ring Patterns</em> and <em>Distinctive Call Waiting Tone Patterns:</em><br />
<code><br />
Ring1 Cadence: 90(1/4)<br />
Ring2 Cadence: 90(.3/.4,.3/4)<br />
CWT1 Cadence: 60(.5/9.5)<br />
CWT Frequency: 425@-16</code></p>
<p>To get caller ID working, I made the following changes (still on the <em>Voice | Regional</em> tab):<br />
<code><br />
Caller ID Method: ETSI FSK<br />
Caller ID FSK Standard: bell 202<br />
</code></p>
<p>Finally on this tab, set:<br />
<code><br />
FXS Port Impedance: 270+750||150nF<br />
</code><br />
(according to the Cisco admin manual, this is the standard for The Netherlands)</p>
<h3>Voice | Line 1</h3>
<p>This is the tab where you get to do most of the SIP configuration.</p>
<p>I have my primary betamax provider (12voip.com) setup under Proxy and Registration and Subscriber Information:<br />
<code><br />
Proxy: name of your sip server e.g. sip.voipbuster.com<br />
Display name: 0031xxxxxxxxx (number that you have verified and configured as callerid with the voipbuster software)<br />
User ID: 0031xxxxxxxxx (same as above)<br />
Password: hard to figure this one out <img src='http://vxlabs.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Use Auth ID: yes<br />
Auth ID: your betamax (voipbuster etc.) username<br />
</code></p>
<p>My dialplan looks as follows:<br />
<code><br />
(112S0&lt;:@gw0&gt;|0800x.&lt;:@gw0&gt;|090x.&lt;:@gw0&gt;|&lt;#9:&gt;xx.&lt;:@gw0&gt;|&lt;1601:&gt;xx.|&lt;0:0031&gt;[1-7]xxxxxxxxS0|xxxxxxxxxxxxxS0|xx.|*xx)<br />
</code></p>
<p>Here is the commented version for your edification:<br />
<code><br />
(112S0&lt;:@gw0&gt;| # emergency number goes through PSTN<br />
0800x.&lt;:@gw0&gt;| # 0800 numbers go through PSTN<br />
090x.&lt;:@gw0&gt;| # 090x numbers go through PSTN<br />
&lt;#9:&gt;xx.&lt;:@gw0&gt;| # prefix number with #9 to force dialing through PSTN<br />
&lt;1601:&gt;xx.| # throw away 1601 preselect still in some handset phonebooks. you won't need this.<br />
&lt;0:0031&gt;[1-7]xxxxxxxxS0| # numbers without 0031 country code will get it added<br />
xxxxxxxxxxxxxS0| # stock standard 00CCRRxxx 13 digit international telephone number<br />
xx.| # all other numbers<br />
*xx) # linksys codes</code></p>
<p><a title="dialplan howto" href="http://www.dartsplayer.com/wi-fi/voip/linksys_dialplan.html">This</a> is a concise howto (in Dutch) on writing dialplans. You can use other betamax providers in the <em>Gateway Accounts</em> and integrate them in your dialplan. The betamax providers don&#8217;t require registration.</p>
<h3>Voice | PSTN Line</h3>
<p>In order for your SPA3102 to realise that the call has been ended, you need to setup PSTN Disconnect Detection correctly:<br />
<code><br />
Detect CPC: yes<br />
Detect Polarity Reversal: <strong>no</strong><br />
Detect Disconnect Tone: yes<br />
Disconnect Tone: 425@-30,425@-30; 2(0.5/0.5/1+2)<br />
</code></p>
<p>When I had &#8220;Detect Polarity Reversal&#8221; set to yes, I&#8217;d get immediate disconnects on incoming calls with my new Ziggo cable PSTN connection.</p>
<p>On the same tab, make sure your FXO Port Impedance is also set to 270+750||150nF (the Dutch standard).</p>
<p>Later I discovered that if we took longer than 10 seconds to answer the phone, the call would be lost. To fix this, set the &#8220;PSTN Answer Delay&#8221; to 60 seconds or something reasonable.</p>
<h3>Conclusion</h3>
<p>Please let me know in the comments if this worked for you, or if you have any questions on the instructions above!</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://vxlabs.com/2011/02/05/sipura-linksys-cisco-spa3102-voice-gateway-in-the-netherlands/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>International characters on the HTC Desire Z keyboard</title>
		<link>http://vxlabs.com/2011/01/24/international-characters-on-the-htc-desire-z-keyboard/</link>
		<comments>http://vxlabs.com/2011/01/24/international-characters-on-the-htc-desire-z-keyboard/#comments</comments>
		<pubDate>Mon, 24 Jan 2011 22:31:25 +0000</pubDate>
		<dc:creator>cpbotha</dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[diacritics]]></category>
		<category><![CDATA[hardware keyboard]]></category>
		<category><![CDATA[htc desire z]]></category>
		<category><![CDATA[international characters]]></category>
		<category><![CDATA[t-mobile g2]]></category>

		<guid isPermaLink="false">http://vxlabs.com/?p=59</guid>
		<description><![CDATA[I&#8217;m typing this up because it took me far too long to find, probably because I wasn&#8217;t using the right search terms, or because I was trying stupid key combinations&#8230; In any case, if you want to make international characters &#8230; <a href="http://vxlabs.com/2011/01/24/international-characters-on-the-htc-desire-z-keyboard/">Continue reading <span class="meta-nav">&#8594;</span></a>
No related posts.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m typing this up because it took me far too long to find, probably because I wasn&#8217;t using the right search terms, or because I was trying stupid key combinations&#8230;</p>
<p><a title="Frustration (was: threesixtyfive | day 244) by Sybren A. Stüvel, on Flickr" href="http://www.flickr.com/photos/sybrenstuvel/2468506922/"><img src="http://farm3.static.flickr.com/2410/2468506922_c1ed495959_m.jpg" alt="Frustration (was: threesixtyfive | day 244)" width="240" height="196" /></a></p>
<p>In any case, if you want to make international characters (that is, characters with accent marks, diacritics, <a title="wikipedia page on the trema" href="http://en.wiktionary.org/wiki/trema">trema</a> (plural tremata), umlauts, eat that google!) such as ë, é, ê or even ö or ï and so forth on the HTC Desire Z hardware keyboard, you simply long press the base character. A menu pops up and you get to choose the accented character that you would prefer to insert at that moment.</p>
<p>I sincerely apologise for interrupting your usual high IQ programming with this. If however you stumble upon this post and it helps you, why don&#8217;t you leave a comment just for laughs?</p>
<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://vxlabs.com/2011/01/24/international-characters-on-the-htc-desire-z-keyboard/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss><!-- Dynamic page generated in 0.592 seconds. --><!-- Cached page generated by WP-Super-Cache on 2012-05-18 16:09:09 --><!-- Compression = gzip -->

