<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="/stylesheets/rss.css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>George Wright's Blog: Category Misc</title>
    <link>http://blog.gwright.org.uk/articles/category/misc</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Random bloggings of a clearly disturbed KDE geek</description>
    <item>
      <title>Twitter!</title>
      <description>&lt;p&gt;I have now joined Twitter! Final year&amp;#8217;s going to be a laugh&amp;#8230;&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.twitter.com/gw280"&gt;Follow me!&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Tue, 11 Nov 2008 16:48:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:2bdec1cb-f1de-4af1-b755-1e4d01f3157a</guid>
      <author>gwright@kde.org (George Wright)</author>
      <link>http://blog.gwright.org.uk/articles/2008/11/11/twitter</link>
      <category>Computing</category>
      <category>Misc</category>
    </item>
    <item>
      <title>Terrifying beauty...</title>
      <description>&lt;p&gt;Now my college can wake up to &lt;a href="http://www.telegraph.co.uk/earth/main.jhtml?xml=/earth/2008/09/14/scihawking114.xml"&gt;this&lt;/a&gt; in the morning:&lt;/p&gt;

&lt;div align="center"&gt;
&lt;img src="http://vm.gwright.org.uk/images/images/blog/corpusclock.jpg" /&gt;&lt;br /&gt;Dhoom Clock
&lt;/div&gt;</description>
      <pubDate>Fri, 19 Sep 2008 01:33:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:8381acef-089d-4784-995e-6735c215890a</guid>
      <author>gwright@kde.org (George Wright)</author>
      <link>http://blog.gwright.org.uk/articles/2008/09/19/terrifying-beauty</link>
      <category>Cambridge</category>
      <category>Misc</category>
    </item>
    <item>
      <title>First week at Cendio</title>
      <description>&lt;p&gt;So I&amp;#8217;ve been working at Cendio for a week now; I must say it&amp;#8217;s been one of the best times of my life.&lt;/p&gt;

&lt;p&gt;Sweden&amp;#8217;s a great place, especially Link&#246;ping; it&amp;#8217;s clean, cycletastic and everyone is so friendly here. Our office is a fantastic place - it&amp;#8217;s spacious, cosy, has a hot chocolate machine (!!!) and my colleagues are awesome! I especially like that I get my own office as well.&lt;/p&gt;

&lt;p&gt;Over the evenings and weekend I&amp;#8217;ve been on the bike a fair bit, having nearly been run over by several buses (silly traffic driving on the wrong side&amp;#8230;) and tomorrow I&amp;#8217;m going with Inge Wallin (of KDE fame) on some boat thing on the canal which should be great fun.&lt;/p&gt;

&lt;p&gt;The cycle routes around here take a bit of getting used to; in the UK I&amp;#8217;m quite happy to cycle alongside cars on dual carriageways and take on large roundabouts without any trouble, but with the combination of being on the other side of the road, and not knowing the customs on the road here, I&amp;#8217;ve been sticking to country lanes and cycle paths for the time being. I&amp;#8217;ve had no crashes so far this year (as opposed to six last year, including 3 pretty major ones&amp;#8230;) and I intend to keep it that way!&lt;/p&gt;

&lt;p&gt;I shall be sorry to leave on the 15th July.&lt;/p&gt;</description>
      <pubDate>Mon, 30 Jun 2008 22:28:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:fd032611-7ef0-4b67-b520-26f9abc93771</guid>
      <author>gwright@kde.org (George Wright)</author>
      <link>http://blog.gwright.org.uk/articles/2008/06/30/first-week-at-cendio</link>
      <category>Computing</category>
      <category>Misc</category>
    </item>
    <item>
      <title>Sweden at last</title>
      <description>&lt;p&gt;Today&amp;#8217;s been a somewhat hectic day for me; after getting up at 0500 to get to Heathrow by 0700, I managed to get on my 1030 flight to Arlanda and arrive in Stockholm just after 1400. After hopping on a train to Link&#246;ping, I was greeted by my contact at &lt;a href="http://www.cendio.com"&gt;Cendio&lt;/a&gt;, Peter &#197;strand, who has been exceptionally helpful and accommodating with my moving in.&lt;/p&gt;

&lt;p&gt;I&amp;#8217;m staying in university accommodation which is rather nice; it&amp;#8217;s a bit Ikea-y, but not too shabby. There was a particularly bad dead fly infestation in my room but a dustpan and brush seems to have taken care of most of it, and I may have to vacuum around when I can get hold of one. The luxury of an en-suite is always welcome, and I have a 10Mbit/s internet connection which is definitely most welcome!&lt;/p&gt;

&lt;div align="center"&gt;&lt;a href="http://gwright.org.uk/images/pictures/Sweden/img_0215.jpg"&gt;&lt;img src="http://gwright.org.uk/images/cache/pictures/Sweden/400x300/img_0215.jpg"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br /&gt;My room&lt;/div&gt;

&lt;p&gt;As for my job out here, I&amp;#8217;ll be working on the next release of ThinLinc, Cendio&amp;#8217;s flagship remote desktop product. At first I believe I&amp;#8217;m mainly doing testing of the upcoming release to ensure it meets quality standards, but Peter is keen for me to dig into the coding side soon.&lt;/p&gt;

&lt;p&gt;In my spare time, I decided to bring my bike over and I&amp;#8217;ll hopefully spend most of my evenings racing around the roads on it. It really is a delightful little machine. When I&amp;#8217;m not on the bike I hope to get some work done on nxcl/qtnx as well.&lt;/p&gt;

&lt;div align="center"&gt;&lt;a href="http://gwright.org.uk/images/pictures/Sweden/img_0214.jpg"&gt;&lt;img src="http://gwright.org.uk/images/cache/pictures/Sweden/400x300/img_0214.jpg"&gt;&lt;/img&gt;&lt;/a&gt;&lt;br /&gt;The bike&lt;/div&gt;</description>
      <pubDate>Mon, 23 Jun 2008 22:48:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:5ac47f08-c82c-4b95-8ade-db7256727a2b</guid>
      <author>gwright@kde.org (George Wright)</author>
      <link>http://blog.gwright.org.uk/articles/2008/06/23/sweden-at-last</link>
      <category>Computing</category>
      <category>Misc</category>
    </item>
    <item>
      <title>zsh, KDE4</title>
      <description>&lt;p&gt;As I&amp;#8217;ve heard so many great things about &lt;a href="http://www.zsh.org/"&gt;zsh&lt;/a&gt; I decided to give it a spin and I must say that I&amp;#8217;m quite impressed on the whole. I especially like the less intrusive way it displays possible tab completion values, as well as the vi keybindings that come with it (although I&amp;#8217;ve had to bind a few keys which I keep hitting out of habit, such as end/home and delete). The configuration system it brings up on first load is really spiffy as well, and I like the fact that there&amp;#8217;s an option to append command history to the log file instead of replacing it - extremely useful given that I tend to have ~10 terminals open at any one time.&lt;/p&gt;

&lt;p&gt;I also finally got round to building a more up to date copy of KDE 4 and I&amp;#8217;m really impressed with the progress they&amp;#8217;re making; it really is astounding how quickly it&amp;#8217;s all coming together. I&amp;#8217;m currently in the process of installing an SVN build on my X40 so that I can run it full time on there - I think it&amp;#8217;s finally hit the stage where I can run it full time.&lt;/p&gt;</description>
      <pubDate>Thu, 22 Nov 2007 21:17:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:459c6fe2-d939-4a53-be70-8f4318ece83b</guid>
      <author>gwright@kde.org (George Wright)</author>
      <link>http://blog.gwright.org.uk/articles/2007/11/22/zsh-kde4</link>
      <category>KDE</category>
      <category>Misc</category>
    </item>
    <item>
      <title>Giving Android a spin</title>
      <description>&lt;p&gt;With the recent announcement of the &lt;a href="http://www.openhandsetalliance.com/"&gt;Google Android&lt;/a&gt; mobile phone and the subsequent release of their SDK, I couldn&amp;#8217;t resist downloading it and giving it a play.&lt;/p&gt;

&lt;p&gt;First thoughts are very positive; the user interface is clean, uncluttered and I think it makes good use of the screen space. One of my favourite gems is the iPhone-like scroll bar mechanism, which only appear when you&amp;#8217;re actually scrolling and disappear, thus not wasting a valuable column of pixels on needless information!&lt;/p&gt;

&lt;p&gt;As anticipated, there are still a few rough edges, but as it&amp;#8217;s still very early on this isn&amp;#8217;t surprising. Nonetheless, I&amp;#8217;m very impressed with their SDK (which is only a 55MB download!) and I hope to have a look at the actual APIs soon. Hopefully some day I&amp;#8217;ll be able to put this on the &lt;a href="http://en.wikipedia.org/wiki/HTC_Universal"&gt;HTC Universal&lt;/a&gt;!&lt;/p&gt;

&lt;p&gt;In unrelated news, a Google Summer of Code 2007 shirt arrived for me at home today; thanks Google!&lt;/p&gt;</description>
      <pubDate>Tue, 13 Nov 2007 20:19:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:2048c761-1220-4155-adf3-001c45c14836</guid>
      <author>gwright@kde.org (George Wright)</author>
      <link>http://blog.gwright.org.uk/articles/2007/11/13/giving-android-a-spin</link>
      <category>Computing</category>
      <category>Misc</category>
    </item>
    <item>
      <title>WebKit EAL goes public</title>
      <description>&lt;p&gt;Yesterday, &lt;a href="http://www.collabora.co.uk"&gt;Collabora&lt;/a&gt; finally put the WebKit &lt;a href="http://browser.garage.maemo.org/docs/browser_paper.html#s2.4"&gt;EAL&lt;/a&gt; code that &lt;a href="http://www.atoker.com/blog"&gt;Alp&lt;/a&gt; and I worked on over the summer into a public git repository on &lt;a href="http://git.collabora.co.uk"&gt;git.collabora.co.uk&lt;/a&gt;! This is great, as our development is now done in the open instead of behind closed doors, which is the way it should be done in my opinion. &lt;/p&gt;

&lt;p&gt;At some point I hope to put online a method of building and installing this EAL which doesn&amp;#8217;t involve a ridiculous amount of pain, but we at Collabora are currently concentrating on working with upstream on implementing missing features in WebKit/GTK+. &lt;/p&gt;

&lt;p&gt;Some exciting new stuff that has appeared upstream is &lt;a href="http://wayofthemonkey.com/"&gt;Rodney Dawes&amp;#8217;&lt;/a&gt; work on implementing &lt;a href="http://wayofthemonkey.com/?date=2007-11-06"&gt;NPAPI support in WebKit/GTK+&lt;/a&gt; as well as the platform independent new &lt;a href="http://webkit.org/blog/130/css-transforms/"&gt;CSS transformation&lt;/a&gt; work by Apple. This effectively obsoletes &lt;a href="http://bugs.webkit.org/show_bug.cgi?id=14998"&gt;my work on full page zooming&lt;/a&gt; as we should hopefully be able to reuse their scaling code for these transformations and create an API function which sets a scale factor on the &amp;lt;html&amp;gt; element. &lt;/p&gt;

&lt;p&gt;Personally, I am now concentrating my efforts on implementing a &lt;a href="http://bugs.webkit.org/show_bug.cgi?id=15070"&gt;backing store&lt;/a&gt; for WebKit/GTK+ which should hopefully substantially increase scrolling performance, as well as investigating and looking into writing this zooming wrapper around the new transformations code.&lt;/p&gt;</description>
      <pubDate>Fri, 09 Nov 2007 11:23:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:57bbed54-052c-4a90-b274-10564962a335</guid>
      <author>gwright@kde.org (George Wright)</author>
      <link>http://blog.gwright.org.uk/articles/2007/11/09/webkit-eal-goes-public</link>
      <category>Computing</category>
      <category>Misc</category>
    </item>
    <item>
      <title>Using a Windows Mobile phone to connect to the internet</title>
      <description>&lt;p&gt;As some of you may know, I have a Windows Mobile 5 based phone. It&amp;#8217;s possibly got the worst software I&amp;#8217;ve ever used in my life but the hardware&amp;#8217;s really nice so I put up with it.&lt;/p&gt;

&lt;p&gt;One of the major things I use the phone for is as a modem for Linux because I have an (effectively) unlimited data tarriff on my contract, so being able to use it with my laptop is incredibly useful.&lt;/p&gt;

&lt;p&gt;Previously, I have been using the USB cable and using wvdial to treat the phone as a dial up modem to connect to the internet. This wasn&amp;#8217;t without complications as Windows Mobile seems to require an initialisation string which no other phone uses. This is:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
AT+CGDCONT=1,"IP","APN",""
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Where &amp;#8216;APN&amp;#8217; is the access point name for your data carrier. In my case (T-Mobile), it&amp;#8217;s &amp;#8220;general.t-mobile.uk&amp;#8221;.&lt;/p&gt;

&lt;p&gt;To connect via USB though, you first need to load the appropriate module to give you a serial interface (/dev/ttyUSB0) to communicate through. You&amp;#8217;d think this was as simple as running &amp;#8221;&lt;code&gt;modprobe ipaq&lt;/code&gt;&amp;#8221;, but no - it&amp;#8217;s more complicated.&lt;/p&gt;

&lt;p&gt;First you have to modprobe ipaq then run &lt;code&gt;lsusb -v&lt;/code&gt;. You then need to look up your phone&amp;#8217;s entry and record the hex numbers for the vendorID and the productID then rmmod ipaq and load it again passing those identification numbers as parameters to the module, so in my case:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
modprobe ipaq vendor=0x0bb4 product=0x00cf
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This will then give you /dev/ttyUSB0 to play with. However, it&amp;#8217;s still isn&amp;#8217;t that simple from here. You need one more fiddle to get it working. You need to set &amp;#8220;Stupid Mode&amp;#8221; in wvdial to force pppd to start as soon as the modem connects. Thus, the final wvdial.conf is as follows:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
[Dialer Defaults]&lt;br /&gt;
Modem = /dev/ttyUSB0&lt;br /&gt;
Baud = 115200&lt;br /&gt;
Init = AT+CGDCONT=1,"IP","APN",""&lt;br /&gt;
Phone = *99#&lt;br /&gt;
Username = USERNAME&lt;br /&gt;
Password = PASSWORD&lt;br /&gt;
New PPPD = yes&lt;br /&gt;
Stupid Mode = yes
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;So, after setting up Linux you just need to run the &amp;#8220;Wireless  Modem&amp;#8221; program on the phone and start the softmodem.&lt;/p&gt;

&lt;p&gt;Unfortunately, trying to get it to connect via bluetooth appears to be infinitely more difficult. Luckily, I &lt;b&gt;finally&lt;/b&gt; managed to get it to connect today after a few hours of research and fiddling, and it now seems rather trivial.&lt;/p&gt;

&lt;p&gt;Firstly, Edgy&amp;#8217;s bluez packages appear to be sufficiently broken that it doesn&amp;#8217;t bring up the bluetooth adapter in discoverable mode - thus resulting in severe breakage when trying to connect the phone. This is fixed by running the command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
hciconfig hci0 piscan
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You then need to fiddle some values in &lt;code&gt;/etc/bluetooth/hcid.conf&lt;/code&gt; to allow the phone to pair.&lt;/p&gt;

&lt;p&gt;I set a default passkey using the &lt;code&gt;passkey "xyz";&lt;/code&gt;  option in &lt;code&gt;hcid.conf&lt;/code&gt; as I couldn&amp;#8217;t be bothered to set up a helper application. However, it should work just fine if you do set up a helper application. That&amp;#8217;s basically all that needs to be altered.&lt;/p&gt;

&lt;p&gt;Now onto the phone.&lt;/p&gt;

&lt;p&gt;Going into Settings -&gt; Connections -&gt; Bluetooth, make sure the phone is discoverable and pair it with the computer. Once it&amp;#8217;s paired, the Linux box&amp;#8217;s ID should appear in the list on the &amp;#8220;Devices&amp;#8221; tab. You then just need to go into the &amp;#8220;Internet Connection Sharing&amp;#8221; program and start the connection using &amp;#8220;Bluetooth PAN&amp;#8221;. Once that&amp;#8217;s done, it&amp;#8217;s fairly trivial. On the computer, run the command:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
pand --connect BADDR -n
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;Where &amp;#8220;BADDR&amp;#8221; is the 6-element bluetooth address of your phone, which can be obtained using the command &lt;code&gt;hcitool scan&lt;/code&gt;. After that, it should splurt out something like:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;
pand[8361]: Bluetooth PAN daemon version 3.7&lt;br /&gt;
pand[8361]: Connecting to BADDR&lt;br /&gt;
pand[8361]: bnep0 connected&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;This means that pand has brought up a new ethernet interface called &lt;code&gt;bnep0&lt;/code&gt; for you to play with. After this, it&amp;#8217;s just standard networking. Run a dhcp client on &lt;code&gt;bnep0&lt;/code&gt; and it will give you an IP address and NAT you across to the phone.&lt;/p&gt;

&lt;p&gt;Hooray - the phone is connected via bluetooth to the internet. I still haven&amp;#8217;t worked out how to get it to act as an actual modem over bluetooth (taking AT commands etc), but to be honest, I fail to see any point if we have Bluetooth PAN instead.&lt;/p&gt;</description>
      <pubDate>Wed, 22 Nov 2006 01:31:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:e54f5933-7592-42e2-907d-714739c52a34</guid>
      <author>gwright@kde.org (George Wright)</author>
      <link>http://blog.gwright.org.uk/articles/2006/11/22/using-a-windows-mobile-phone-to-connect-to-the-internet</link>
      <category>Computing</category>
      <category>Misc</category>
    </item>
    <item>
      <title>New blog</title>
      <description>As many of you know, Serendipity was spamming planetkde.org with lots and lots of repostings which was driving clee nuts (by the way clee, I still hate you :P ). Anyway, I've now installed Typo as my new blogging software. Hopefully this won't be so broken.

</description>
      <pubDate>Wed, 23 Aug 2006 00:27:00 +0100</pubDate>
      <guid isPermaLink="false">urn:uuid:e4301fb0-28e3-4452-858b-e4a75870bb2a</guid>
      <author>gwright@kde.org (George Wright)</author>
      <link>http://blog.gwright.org.uk/articles/2006/08/23/new-blog</link>
      <category>Misc</category>
    </item>
  </channel>
</rss>
