Search Results: "dom"

9 December 2009

Joachim Breitner: Packaged unicode-screensaver properly

Three years ago, while I was in Ghana, I wrote a small screensaver that displays a randomly picked unicode character full-screen. I like it because there is a huge bunch of very weird characters and signs in the unicode standard. It also prints the unicode codepoint and character name.
Now I finally got around to properly package it: Created a small homepage, a source tarball with (hopefully) proper autotool files, all managed in a git repository (also on gitorious), complete with manpage, README and other additional files. I m also going to upload the package to Debian, so you can just do apt-get install unicode-screensaver as soon as it gets accepted.It can probably not enter the official xscreensaver distribution as it adds dependencies on the fontconfig and freetype libraries.

8 December 2009

Erich Schubert: Highlighting links to your own site in Google search results

The following User stylesheet snippet can be used to highlight particular search results (such as your own domain, if you want to quickly find it in Google search results):
@-moz-document url-prefix(http://www.google.com/search)
 
a[href^='http://www.vitavonni.de/']   background-color: yellow;  
 
You might also want to add a copy for your localized Google domain:
@-moz-document url-prefix(http://www.google.de/search)
 
a[href^='http://www.vitavonni.de/']   background-color: yellow;  
 
Or you could go the heavyweight way:
a[href*=vitavonni.de]   background-color: yellow !important;  
to even highlight any link to your domain.This modification obviously only applies to your browser; it's meant to help you finding links to your own site more easily.

7 December 2009

Martin Meredith: Everything but the Kitchen Sink

Transforming data is hard. When I joined my current company, there were stupendous amounts of Perl/PHP/Bash/<insert random programming language here> scripts that would run on a cron job and do magic things to our data. They d create reports, they d tell the purchasers when we were running out of stock, they d synchronise data between our Frontend and backend databases, they d collect, they d collate, they d do everything and anything. Except, with all these scripts, in all these random languages, written by a multitude of previous developers (at different skill levels), they weren t particularly maintainable (and sometimes, they weren t particularly readable or understandable either imagine a 6000 line perl script that pretty much ran different permutations of the same data over and over again) Enter Pentaho, and specifically it s Kettle project. (since renamed Pentaho Data Integration ), a tool that lets you manipulate your data in pretty much any way you can imagine, in the simplest and easiest way imaginable.

That s right, it s a GUI for data manipulation.

I know a lot of you are probably sceptical right now. The first time I ever saw this was when a previous boss of mine put it forward as a potential solution for one of our problems (getting our orders from the front end database down to the office/warehouse). I saw it, and I thought GUI? Nah, that s not how real programmers do things! , so after the development team put forward another proposal to solve this, and it got accepted, I thought I d never see the thing again.

That was until my current boss started playing with it, trying to work out what it was doing so that he could get these evil GUI based scripts into something manageable, like nice, pretty code. Thing s, when my boss plays with things that he doesn t know about, he tends to read up, research, and, 9 times out of 10, change his mind.

We wiped the previous server (it was rather noisy! We re glad it s no longer switched on!) and set up a new server to house our BI platform . Starting off with a few scripts, my boss learnt to love this tool, and then, as I m his 2nd in command (aka general lackey) started making me learn how to use it.

Again, I was sceptical, I didn t want to learn, and I put up resistance, but my boss was going away for nearly a month, and by this time, a few of our key business processes relied on Kettle, so, grudgingly, I sat down, and started to learn.

You may be wondering now, why I started off this story talking about all those magical and wonderful scripts that no one seemed to know the inner workings of. These scripts, as I ve already mentioned were unwieldy, and at times, god-damned awful. The plan was to move them to the BI system (as my boss had been doing already).

I like to think of Kettle as a bridge between the process-flow diagram, and the code. I started converting these scripts, and I was astonished by the fact that most of the conversions I was doing was converting a long perl script into 3 or 4 Integration steps

I m totally besotted with this program now. Any time I have to do data manipulation, I turn to it. I can t describe how (once you ve got used to it s quirks) easy it is to use, how simple it is, and how much it just makes sense. Best of all, most of those evil scripts are gone now, and replaced with pretty diagrams that do the work for you.

If you have to play with large data sets on a regular basis, I urge you to try it out. You can buy me a beer for reccommending it next time you see me at $conference.

Y Giridhar Appaji Nag: It has been ...

Dear life,

It has been a pretty crazy couple of months, had to stay away from most of the things that I would normally breeze through, including but not limited to a few aspects of my real life day job, Debian work, movies, the routine yearly Oct-Nov time vacation that I take etc. Obviously, hobbies took a big hit. Also had to let go of an opportunity to travel to one of my favorite places, IIT Guwahati; something that I don't usually pass up. Sigh! But such is life.

Been bouncing back slowly:

I finally moved a few domains that I run (including my personal domain) and their email to a linode and I am quite liking it so far (I would've been great if I had some more disk space at my disposal but 16GB isn't all that bad).

On the Debian front, finished attending to package sponsorship requests, I've been updating packages (there is one elinks RC bug that I'll fix next) and work is finally under progress for the clang ITP in the Debian GIT repository.

There are a ton of pictures in RAW format that I haven't yet had the time to convert to JPEG (I use UFRaw but the output that I got from Bibble Pro is fairly impressive -- perhaps I should consider getting myself a license) but that could wait.

Found a decent place to rent (I should be moving in about a month or so). I would've liked a place that isn't an apartment or at least in a smaller community, preferably something in-town but good places are difficult to come by.

I am back,

Giridhar

Simon McVittie: RC Bugs of W48-W49

More release critical bug squashing of the "week" (fortnight, really): Removals from testing and proposed removals from unstable: Possible candidates for removal: Other drive-by QA:

6 December 2009

Steve Kemp: I feel a hate crime coming on.

Recently I've been spidering the internet, merrily downloading content for the past few days. The intention behind the spidering is to record, in a database, the following pieces of information for each image it stumbles across: I was motivated by seeing an image upon a website and thinking "Hang on I've seen that before - but where?". Thus far I've got details of about 30,000 images and I can now find duplicates or answer the question "Does this image appear on the internet and if so where?". Obviously this is going to be foiled trivially via rotations, cropping, or even resizing. But I'm going to let the spider run for the next few days at least to see what interesting things the data can be used for. In other news I'm a little behind schedule but I'm going to be moving from Xen to KVM over the next week or ten days. My current plan is to setup the new host on Monday, move myself there that same day. Once that's been demonstrated to work I can move the other users over one by one, probably one a day. That will allow a little bit of freedom for people to choose their downtime window, and will ensure that its not an all-or-nothing thing. The new management system is pretty good, but I have the advantage here in that I've worked upon about four systems for driving KVM hosting. The system allows people to enable/disable VNC access, use the serial console, and either use one of a number of pre-cooked kernels or upload their own. (Hmmm security you say?) ObFilm: Chasing Amy

5 December 2009

Ren&#233; Mayorga: Acer support, so far looks nice

Yesterday I went to the local support service center for Acer at El Salvador, I realize that I bought my Acer One on Dic 21 2008, so the warranty is still valid :) , my first concern was my HDD, since at the time the netbook fails I did have a copy of my GPG Key on a non encrypted file system, also all my data was on the HDD and I did not want to leave my computer with my data on the hands of a $RANDOM tech support. It took me like 15 minutes to convince the representative to remove my HDD before I leave the netbook, but they agree, and they even agree on let me see when they remove the HDD before give it to me, for me this looks like a nice tech support, I actually thought that they will refuse to follow this extrange request, and I even thought that they will be refuse to admit the computer, since the original OS was no longer installed. The netbook should be up and running this Thursday yay! :)

4 December 2009

Erich Schubert: Tracking outgoing links with Google Analytics

Here's a code fragment to track outgoing links with Google Analytics. As usual, use it at your own risk. I can not give you support for Google products, for obvious reasons.To use it, you <me>need at least understand where to put it (call it in a try-catch in onLoad) and how to adjust the variable name of your page tracker (I'm not using the default).
function trackLinks() 
  var as=document.getElementsByTagName("a");
  var ig=["mydomain.tld","google-analytics.com"];
  for(var i=0; i<as.length; i++)  
    var ignore=false;
    var oc=as[i].getAttribute("onclick");
    if(oc!=null) 
      oc=String(oc);
      if(oc.indexOf('urchinTracker')>=0
        oc.indexOf('_trackPageview')>=0
        oc.indexOf('javascript:')>=0)
        continue;
     
    if(as[i].href.indexOf("mailto:")<0) 
      for(var j=0;j<ig.length;j++) 
        if (as[i].href.indexOf(ig[j])>=0)
          ignore=true;
       
     
    if(!ignore) 
      as[i].onclick = function() 
        var o=this.href.replace(/:\/*/,"/");
        pt._trackPageview('/out/'+o)+";"
        + ((oc!=null)?oc+";":"");
       ;
     
   
 
This code tries to attach an onload handler to any outgoing link, ignoring internal links or links that use JavaScript. If such a link is clicked, it generates a virtual page access with an "/out/" URL that can be analyzed in Google Analytics.A side benefit (apart from knowing which links are interesting to your visitors) is that you should get more accurate "time on page" statistics for your pages.

3 December 2009

Michal &#268;iha&#345;: Fun with processing patches from users

Once you release something what gets at least a little bit popular, you can expect to receive fixes in various strange forms. Since I started to use Git for Gammu development merging all these crazy things is much more easier. The problem with these changes in past was that they are generally based on some random old versions (for example random daily snapshot). Now I just find the right place in history where to start (ChangeLog usually gives good hint where to search in the history), create branch and start to apply changes I received. I worst case (like it happened today) the "changes" is whole tarball with different changes made to different files. Fortunately I recently found great git add -i, which allows me to pick whatever changes I want from the patch. When all this is done, all I need is to merge changes back to master and Git is usually clever enough to handle it. PS: And yes, I'd really love if people would be able to send me series of patches, but it does not seem to happen in near future.

2 December 2009

Biella Coleman: The Politics of Piracy and Spicing the Political Life

Reality needs fantasy to render it desirable, just as fantasy needs reality to make it believable. Stephen Duncombe
This fall I have been awash in a few obsessions including book piracy and spam. I recently got to talk about one of these obsessions when I was interviewed about book piracy by Nora Young for her weekly CBC radio and podcast show Spark. I mostly gave a lay of the land panorama with a nod toward some of the conditions, technological and social, that can help us grasp the contemporary explosion of book piracy and also raised some thoughts about what might change the future landscape. What I don t raise is whether a politics built around an explicit embrace of piracy is regressive, progressive, or something else but these ethical questions were posed in the comments left for the full interview. Some of the comments pointed to the pitfalls and shortcoming that can follow the terminology of piracy many of which I share. But what keeps me interested in the politics of piracy is how it can speak the language of spectacle, which can be a powerful tactic and technique for broadcasting a political message. Here I just paraphrasing and cribbing the work of Stephen Duncombe, who has argued, I think quite persuasively, that we cannot rely solely on reasoned debate for building political programs. Duncombe does not argue that we must toss out rationality and truth seeking (these are absolutely necessary) but notes how on their own or if not clothed in some other cloak, they may not be enough to convey and compel, especially in this day of total media saturation. Or to put a but more poetically by him Reality needs fantasy to render it desirable, just as fantasy needs reality to make it believable. Much (though not all) of contemporary digital piracy follows the logic of spectacle. It builds and conveys a fantastical drama of right and wrong, of new possibilities, of freedom from the noose of the law; it signals and speaks to the thrill and fun in twisting, even breaking, existing structures and constraints; and provides a window into another way of acting/behaving. In many cases what it provides is a commons (and I will be exploring it in depth in my class next semester on the commons) and many folks, I imagine, turn to piracy simply for the free stuff, and a number of them come out of the other side transformed into copy fighters willing to engage in a politics beyond sharing stuff and waving the pirate flag. For those of us who believe in greater access and different ways of imagining structures and strategies of re-compensation, piracy on its own is not certainly enough and I understand fully and even to some degree, share the skepticism many feel toward such language. But I am not quite ready to declare a politics of piracy as always politically bankrupt or necessarily backward. I guess what I embrace is a diverse political ecology. For some, the drama of spectacle and thrill of transgression are what turns their political mojo on; for others it is the cool and reasoned debate common to policy and reform; for others, they want to focus on building alternatives as we see with Free Software or radical tech collectives. For some, it is both the reasoned salt and the transgressive pepper that spices their political world. And I would rather have more spice than less, especially in an era where the blandness of political apathy is that which is our most dangerous enemy. Related Links: Here is a wonderful animation by the NZ Book Council that captures what I love about books and renders its materiality wonderfully alive. On the Media has a episode on book publishing and Cory Doctorow has penned some thoughts about the future of book selling. If you want to keep abreast on the politics of liberating books, check out Free our Books. If you are more interested in the technical side of things, check out the book liberator project.

Biella Coleman: The Politics of Piracy and Spicing the Political Life

Reality needs fantasy to render it desirable, just as fantasy needs reality to make it believable. Stephen Duncombe
This fall I have been awash in a few obsessions including book piracy and spam. I recently got to talk about one of these obsessions when I was interviewed about book piracy by Nora Young for her weekly CBC radio and podcast show Spark. I mostly gave a lay of the land panorama with a nod toward some of the conditions, technological and social, that can help us grasp the contemporary explosion of book piracy and also raised some thoughts about what might change the future landscape. What I don t raise is whether a politics built around an explicit embrace of piracy is regressive, progressive, or something else but these ethical questions were posed in the comments left for the full interview. Some of the comments pointed to the pitfalls and shortcoming that can follow the terminology of piracy many of which I share. But what keeps me interested in the politics of piracy is how it can speak the language of spectacle, which can be a powerful tactic and technique for broadcasting a political message. Here I just paraphrasing and cribbing the work of Stephen Duncombe, who has argued, I think quite persuasively, that we cannot rely solely on reasoned debate for building political programs. Duncombe does not argue that we must toss out rationality and truth seeking (these are absolutely necessary) but notes how on their own or if not clothed in some other cloak, they may not be enough to convey and compel, especially in this day of total media saturation. Or to put a but more poetically by him Reality needs fantasy to render it desirable, just as fantasy needs reality to make it believable. Much (though not all) of contemporary digital piracy follows the logic of spectacle. It builds and conveys a fantastical drama of right and wrong, of new possibilities, of freedom from the noose of the law; it signals and speaks to the thrill and fun in twisting, even breaking, existing structures and constraints; and provides a window into another way of acting/behaving. In many cases what it provides is a commons (and I will be exploring it in depth in my class next semester on the commons) and many folks, I imagine, turn to piracy simply for the free stuff, and a number of them come out of the other side transformed into copy fighters willing to engage in a politics beyond sharing stuff and waving the pirate flag. For those of us who believe in greater access and different ways of imagining structures and strategies of re-compensation, piracy on its own is not certainly enough and I understand fully and even to some degree, share the skepticism many feel toward such language. But I am not quite ready to declare a politics of piracy as always politically bankrupt or necessarily backward. I guess what I embrace is a diverse political ecology. For some, the drama of spectacle and thrill of transgression are what turns their political mojo on; for others it is the cool and reasoned debate common to policy and reform; for others, they want to focus on building alternatives as we see with Free Software or radical tech collectives. For some, it is both the reasoned salt and the transgressive pepper that spices their political world. And I would rather have more spice than less, especially in an era where the blandness of political apathy is that which is our most dangerous enemy. Related Links: Here is a wonderful animation by the NZ Book Council that captures what I love about books and renders its materiality wonderfully alive. On the Media has a episode on book publishing and Cory Doctorow has penned some thoughts about the future of book selling. If you want to keep abreast on the politics of liberating books, check out Free our Books. If you are more interested in the technical side of things, check out the book liberator project.

1 December 2009

Kartik Mistry: foss.in Day 1


* Day 1 was pretty good. We had really nice breakfast, after kind of okay-okay sleep due to late night hacking of memories with Kushl, Pradeepto and Siddhesh. We jumped into vehicle, dropped ourselves to venue and met Jace, Samay and other known faces there. Inside, there were few people.. But, we had very nice discussion with fellow speakers sitting near hackcenter area while watching schedule is updated on-the-fly. Had nice interaction with Ramkumar and instead of working on Debian workout stuffs, noted to learn emacs (yeah, I m vim guy ;) ). Started it with small amount of dose. We settled around table #8 and will remain there. Kunal wanted to package some PHP stuff, he started with that. I uploaded yokadi without any fancy stuff (really, nothing). Started with looking into gwibber2. I rushed to hall #3 and introduced about Debian workout but I think people were confused about my sudden introduction, Aanjhan was laughing on my crappy jokes on last seat. Anyway, I then went back, met Aanjhan after so many months, met some more people, peeped into wireshark packet capturing by Siddhesh. Keynote by Dimitris Glezos, was amazing. We then headed to Aangan for dinner. It was entirely Kushal s idea, so we were suspecting something about beerware, but alas, it was fantastic Punjabi food. We loved it. Return journey to hotel was NFS Rickshaw driving kind of. Obviously, I m not seating in Pradeepto-Aanjhan s room with other fellows, writing this, lots of discussion on lots of random topics. Kushal s jokes are coming at random() interval. Day 1, it was..

Dirk Eddelbuettel: Updated slides for 'Introduction to HPC with R' (now with correct URLs)

This is an updated version of yesterday's post with corrected URLs -- by copy-and-pasting I had still referenced the previous slides from UseR! 2009 in Rennes instead of last Friday's slides from the ISM presentation in Tokyo. The presentations page had the correct URLs, and this has been corrected below for this re-post. My apologies! As mentioned yesterday, I spent a few days last week in Japan as I had an opportunity to present the Introduction to High-Performance Computing with R tutorial at the Institute for Statistical Mathematics in Tachikawa near Tokyo thanks to an invitation by Junji Nakano. An updated version of the presentations slides (with a few typos corrected) is now available as is a 2-up handout version. Compared to previous versions, and reflecting the fact that this was the 'all-day variant' of almost five hours of lectures, the following changes were made: Comments and suggestions are, as always, appreciated.

Andrew Pollock: [life] I think we've been bitten by the bug...

So we pretty much gave up on the condemned house. The more we hear about it, the worse it looks. Our agent got some paperwork on the red-tagging today. Apparently the large room out the front used to be a car port, and enclosing that was done without a permit. There's also a standalone room out the back that has had a bathroom added without a permit. Apparently the owner is getting fined $2,500 a day by the city until it's either brought into compliance or reverted. No idea if that's actually being paid, or who's responsibility it would become in the event of a sale, so we'll just quietly back away from that whole mess and pretend it never happened. Sarah was poking around Redfin again last night and found this property, for less than what the condemned house was going for (granted, this is a condo, not a house). We got our agent to show it to us today, and we really liked the look of it, so we're going to put an offer in on it and see what comes of it. We have to spend about three hours with our agent tomorrow morning going through paperwork. Wee. It certainly seems like a good time to be buying. Interest rates are low, the AUD is high against the USD, and prices are down.

Dirk Eddelbuettel: Updated slides for 'Introduction to HPC with R'

As mentioned yesterday, I spent a few days last week in Japan as I had an opportunity to present the Introduction to High-Performance Computing with R tutorial at the Institute for Statistical Mathematics in Tachikawa near Tokyo thanks to an invitation by Junji Nakano. An updated version of the presentations slides (with a few typos corrected) is now available as is a 2-up handout version. Compared to previous versions, and reflecting the fact that this was the 'all-day variant' of almost five hours of lectures, the following changes were made: Comments and suggestions are, as always, appreciated.

30 November 2009

Russell Coker: The Transition to Ext4

I ve been investigating the Ext4 filesystem [1]. The main factor that is driving me to Ext4 at the moment is fsck times. I have some systems running Ext3 on large filesystems which I need to extend. In most cases Ext3 filesystems have large numbers of Inodes free because the relationship between the number of Inodes and the filesystem size is set when it is created, enlarging the filesystem increases the number of Inodes and apart from backup/format/restore there is no way of changing this. Some of the filesystems I manage can t be converted because the backup/restore time would involve an unreasonable amount of downtime. Page 11 of the OLS paper by Avantika Mathur et al [2] has a graph of the relationship between the number of Inodes and fsck time. Ext4 also has a number of other features to improve performance, including changes to journaling and block allocation. Now my most important systems are all virtualised. I am using Debian/Lenny and RHEL5 for the Dom0s. Red Hat might back-port Ext4 to the RHEL5 kernel, but there will probably never be a supported kernel for Debian/Lenny with Ext4 and Xen Dom0 support (there may never be a kernel for any Debian release with such support). So this means that in a few months time I will be running some DomUs which have filesystems that can t be mounted in the Dom0. This isn t a problem when everything works well. But when things go wrong it s really convenient to be able to amount a filesystem in the Dom0 to fix things, this option will disappear for some of my systems, so if virtual machine A has a problem then I will have to mount it s filesystems with virtual machine B to fix it. Of course this is a strong incentive to use multiple block devices for the virtual machine so that a small root filesystem can be run with Ext3 and the rest can be Ext4. At the moment only Debian/Unstable and Fedora have support for Ext4 so this isn t a real issue. But Debian/Squeeze will release with Ext4 support and I expect that RHEL6 will also have it. When those releases happen I will be upgrading my virtual machines and will have these support issues. It s a pity that Red Hat never supported XFS, I could have solved some of these problems years ago if XFS was available. Now for non-virtual machines one factor to consider is that the legacy version of GRUB doesn t support Ext4, I discovered this after I used tune2fs to convert all filesystems on my EeePC to Ext4. I think I could have undone that tune2fs option but instead decided to upgrade to the new version of GRUB and copy the kernel and initramfs to a USB device in case it didn t boot. It turns out that the new version of GRUB seems to work well for booting from Ext4. One thing that is not explicitly mentioned in the howto is that the fsck pass needed to convert to Ext4 will not be done automatically by most distributions. So when I converted my EeePC I had to use sulogin to manually fsck the filesystems. This isn t a problem with a laptop, but could be a problem with a co-located server system. For the long term BTRFS may be a better option, I plan to test it on /home on my EeePC. But I will give Ext4 some more testing first. In any case the Ext3 filesystems on big servers are not going to go away in a hurry.

Andrew Pollock: [tech] Review: iGala digital picture frame

Now that I'm not letting the cat out of the bag (I bought these as gifts) I can write a review. The use case was pretty simple: I thought it'd be a cool Christmas present for our parents to give them something Internet-enabled that would give them regular updates on their grandchild (when he/she arrives). I was thinking a picture a day type of thing. So I hunted around for a WiFi-enabled digital picture frame, and found the iGala being sold pretty much exclusively by ThinkGeek. The reviews seemed pretty good. I know WiFi-capable frames have been around for a few years, but they always seemed to be pretty lacking in terms of WiFi functionality. Like they wouldn't do any security, or they'd only do WEP. This particular product claimed to do the whole gamut, including WPA2. The fact that it was a touch screen and ran Linux also made it appealing. So I ordered a couple of them for a few weeks before we headed to Australia, with the intention of making sure that they'd work. Here's the highlights. WPA2 didn't work (nor did WPA) Despite the software on the frames claiming to be able to talk WPA2, the frame would not associate with my Linksys WRTU54G-TM. I had to drop it all the way back to WEP to get it to connect. For me, this was the most disappointing failure. I bought the product specifically on the strength of its claim that it supported WPA2, and it just didn't work. It was also pretty impossible to debug the failure. I downloaded the latest firmware update, and that added additional settings for TKIP or AES when selecting WPA2, but neither option helped. The automatic updates are brain-dead Speaking of downloading firmware updates, the latest firmware that I downloaded and installed on the frames added automatic over-the-air firmware updates. Nice enough feature, except for the implementation. The frame tried to make an HTTP GET request for a non-existent file, every 6 seconds. So the frequency of checking alone is totally ridiculous, but couple with this the fact that it's making a GET request (this is what $DEITY invented the HEAD request for, people!) and the website has a "friendly" 404 Not Found page that weighs in at a little over 10 Kb. By my calculations, that's nearly 150 Mb of failed update checking traffic a day. Taking these frames to a backward country like Australia, where ISP users still have monthly quotas, gives the frame a pretty horrendous running cost in terms of traffic. Not to mention the outbound bandwidth requirements for the server hosting the updates. Crikey, the mind boggles. I'd have thought checking once a day and on power on would be perfectly sufficient. Transitions are unavoidable It may be just me, but I hate cheezy transitions. Digital picture frames tend to come with a myriad of them, but they all look cheap. It's impossible to tell the frame to just change the picture, it has to use at least one transition effect all the time. It defaults to randomly choosing from all the available ones. At least you can tone it down to just one. Automatic on/off time I liked that it was possible to configure operating times. No need to have the thing chewing power 24x7. It just seems to turn off the backlight outside of the programmed operating hours, so it's still doing the lame uber-frequent and bandwidth-intensive checking for updates even when it's "off". Photo check frequency is configurable Another nice feature was the ability to check for new photos at varying intervals. What I wanted for my parents was to just update once a day, so they'd get a new photo every day (assuming we put a new one in the Picasa web album that it's checking). This was very doable, and coupled with the automatic on/off time, means they should wake up to a new photo every day (that we change it). Built in photos are a bit too sticky There's 3 or 4 in-built photos as part of the firmware. If there's nothing accessible or available online, it'll cycle through these. Somewhat annoyingly, you need to have at least two photos in your online source for it to stop wanting to incorporate the stock photos in the mix. The workaround is to put the same photo in the online album twice, so you don't realise it's switching between two images. Lame, but it works... Touch screen UI was adequate Given the alternative user interface for digital picture frames is a little IR remote control and some dinky menus, the iGala was nice to configure. A full on-screen QWERTY keyboard pops up for entering WEP/WPA/WPA2 keys and configuring the Picasa/Flickr connections. Fairly responsive support The main near-showstopper for me was the lack of advertised WPA2 support. I emailed the Aequitech support folks quite a bit during my "evaluation" period. They got back to me fairly quickly most of the time and wanted to know exact details of my setup so they could reproduce it in the lab. They'd be well served having an actual ticketing system, instead of hiding behind an email address, as it made it hard to keep track of the multiple issues I was raising with them. It's written in Lua?! I have no familiarity with Lua, other than I know of its existence as a programming language. I'm curious as to what their motivation was for this language choice. All of the Lua code shipped in the complete firmware refresh ZIP files is bytecode. I have no idea if it's possible to decompile it. The CPU architecture would appear to be a Blackfin based on the few compiled binaries included in the full firmware. Easy to update Prior to the new update "functionality" I've already railed against, it was pretty easy to update. Download a ZIP file and a shell script, put them in the root directory of a USB key, and plug it into the frame and stand back. The updates don't seem to cryptographically verified (even the over-the-air ones), so I wonder if it's possible to break into the frame by way of a cleverly crafted "update". I have no idea what breaking into the frame would buy you. I don't know what sort of computing power they have. Conclusion I still think the iGala is a reasonable, if somewhat immature product. If the software is going to be actively worked on, and the support people continue to be responsive, then I think it's got good potential. For the price, I expected a more polished product, though. I received an email from their support people shortly after returning from Australia saying that they'd fixed the WPA2 problem. Unfortunately I had no intention of trying to remotely talk my parents through how to reconfigure their access point or the frame (interestingly WPA2 didn't work with their Linksys WAG54G2 either, so I'd love to know what WPA2 devices it was tested with), so it's 128-bit WEP until I next go to Australia.

29 November 2009

Jan Wagner: [selfnote] Change CD-image while (HVM) domU is running

xm list grep <VMName>
xm block-list <VMName_Number>
xm block-detach <VMName_Number> <VMName_Vdev> -f
xm block-attach <VMName_Number> file:///iso/disk.iso \
hdc:cdrom r

28 November 2009

Erich Schubert: Tracking Google image search in Analytics

I do not really understand why they don't support this themselves, but Google Analytics will not track keywords for Google image search. Instead it just shows up as "referrer". A site I'm webmaster for, Swing and the City, gets a lot of image search exposure (funnily for an image that is gone since August, Google also needs to work on their index, too), so it was a bit odd to have images.google.com show up as top referrer but not "organic search".Here's the code I use to fix this:
var r=document.referrer;
if(r.search(/images.google/)!=-1 && r.search(/prev/)!=-1) 
 var e=new RegExp("images.google.([^\/]+).*&prev=([^&]+)");
 var m=e.exec(r);
 pt._addOrganic("images.google","q",true);
 pt._setReferrerOverride("http://images.google."+m[1]+unescape(m[2]));
 ;
pt._addOrganic("maps.google","q",true);
pt._addOrganic("forestle.org","q",true);
pt._trackPageview();
Note that image search is more complicated than the maps and forestle search engines I also add for keyword tracking. The original query is encoded in the "prev" parameter, and the easiest (or only?) way to get working tracking is to use the ReferrerOverride function of analytics.Note: this is not a straight copy & paste, since I use this code in a compressed and encoded (for injection into the page via DOM ops) form. So no guarantee of syntax completeness. You'll need to adjust it to your variable naming anyway (I use "pt" instead of "pageTracker"). This is just to show you the use of unescape on the "prev" parameter for this purpose.

27 November 2009

Steve Kemp: I work alone like you. We always work alone.

A couple of days ago I was lamenting the state of webstats, although I was a little vague as to my purpose. Specifically I was wanting to find out about the screen resolutions and user-agents viewing a couple of sites. To get screen resolutions you really need to inject javascript into your pages, which is icky. Still its a small price to pay, and chances are most people won't notice. Of course there are drawbacks:
Javascript dependency.
If the visitors don't use/enable javascript you see nothing.
You cannot capture everything.
e.g. HTTP status code isn't available.
To solve this problem completely you therefore need to have access to both your apache logs and your javascript-captured information. Probably. As a proof of concept I've injected the following javascript into most pages of three sites. This code: The script that receives the data writes out the data to a small per-domain SQLite database, which I can then use to generate prettyness. However I suck at being pretty, in most ways, so I've only got functional: All of this is dynamic and most of the data is anchored to "today", as thats proof of concept enough. Were piwik not written in vile PHP I'd use that - I don't see anything similar out there which is Perl.. The big decision is now "Keep it dynamic" vs. "Output static pages". (vs. call off the experiment now I know that I'm safe to assume "big resolutions"). (Naming software is hard. Recent stuff I've done has had an skx prefix primarily for google-juice. e.g. Randomly I notice that if you search for my personal site on Google's UK engine I come top. Cool.) ObSubject: The Bourne Identity

Next.

Previous.