Cast for two

Saturday, March 06, 2010

Skiing in Stuben am Arlberg, Austria

In a yearly tradition, I publish a short movie about the skiing holiday. It's not as cool as with a Go Pro Hero cam but still interesting. This year I edited again with Imovie on the mac. Imovie is really the tool you need for such a job. When finished, I pushed the button to upload to youtube and half an hour later:

This year we stayed in Stuben am Arlberg in Austria. They say that stuben is the capital of off piste skiing, but this year we stayed on the slopes because the danger of snowavalanches was very real.

I only noticed an annoying bug. Although the star wars end trailer is in imovie:

the end of the movie on Youtube is just the black background with white stars but without the moving end credits. Annoying bug !

Monday, February 01, 2010

How to deal with search crawlers for your mobile site

So you've setup your mobile site (for example hosted at http://m.yoursite.com) derived from a desktop version (for example hosted at http://www.yoursite.com).Typically, you're using a Content Management System and by providing adapted templates for your mobile items, you can provide a mobile version of your site. The question is now how to deal with robots that crawl the web to build a search index. The danger exists that the robots detect duplicate content because the mobile version from a content item might contain the same text and pictures but wrapped on another template. I think the following steps should be taken:


  1. Only allow the mobile web crawlers with the following robot.txt in the root of the mobile site (for example http://m.yoursite.com) by allowing bots with user agent "Googlebot-Mobile" or "YahooSeeker/M1A1-R2D2" and to disallow all others:

    User-agent: Googlebot-Mobile
    Disallow:

    User-agent: YahooSeeker/M1A1-R2D2
    Disallow:

    User-agent: *
    Disallow: /

    Also, disallow mobile crawlers to your desktop version of your site by adding the following robot.txt in the root of your site (for example http://www.yoursite.com/robot.txt ):

    User-agent: Googlebot-Mobile
    Disallow: /

    User-agent: YahooSeeker/M1A1-R2D2
    Disallow: /

    User-agent: *
    Disallow:

    With the first robot.txt in the mobile root and the second one (here above) in the root of your desktop site, your mobile site items should only appear when people search with a mobile search engine (for example by using http://m.google.com ) but not when searching with the desktop version (for example http://www.google.com ).

    As far as I know, the MSNbot that crawls for the Microsoft Bing index together does not have a bot version that crawls strickly for the mobile Bing search engine at http://m.bing.com.

  2. Add your mobile site to Google : http://www.google.com/support/webmasters/bin/answer.py?answer=40348 , Bing http://www.bing.com/webmaster/SubmitSitePage.aspx, Yahoo (http://siteexplorer.search.yahoo.com/mobilesubmit) and other relevant mobile indexes

  3. Create a mobile sitesmap : http://www.google.com/support/webmasters/bin/answer.py?answer=34648&cbid=-1rt6r3us7wrvl&src=cb&lev=answer


Let me know I've you have anything to add to this strategy in the comments.

Sunday, August 02, 2009

Set all links target to _blank on a XHTML 1.0 Strict using jquery

As explained here, opening links in a new window is no longer possible via target=_blank in XHTML 1.0 strict. This code is a workaround using Javascript:


function externalLinks() {
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
for (var i=0; i<anchors.length; i++) {
var anchor = anchors[i];
if (anchor.getAttribute("href") &&
anchor.getAttribute("rel") == "external")
anchor.target = "_blank";
}
}
window.onload = externalLinks;

A link with attribute rel set to external will open in a new window:

<a rel="external" href="http://castfortwo.blogpspot.com/">cast42</a>

On the Friendfeed realtime embed code, I saw they use jquery to do the job:

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.js">
<script type="text/javascript">
$("body").mousedown(function(e) {
for (var target = e.target; target; target = target.parentNode) {
if (target.tagName == "A") {
if ((document.location.href.split("#")[0] + "#") == target.href) {
return;
}
target.target = "_blank";
return;
}
}
});
</script>

The advantage is that all links will open in a new window, except if the refere to an anchor in the page. Hence there's no need to add the attribute rel to each anchor.

Tuesday, July 28, 2009

Urbain Airship: a webhook based service for Iphone 3.0 Push Notification

picture about fast internet infrastructure
This morning I discovered a new recipe on Google App Engine Cookbook to send out Iphone 3.0 Push notifications via Google App Engine. In fact, the recipe makes use of a service called Urban Airship. They provide a free service that allows to send upto 5000 Push notifications a month. For larger volumes, the price seems reasonable. Image now that all content producers become pubsubhubbub (the pseudo realtime webhook based enabled publish/subscribe protocol proposed by two Googlers) enabled and maybe we scratch the surface of the future internet architecture that will drive the realtime web. Who knows?

Monday, July 20, 2009

Pubsubhubbub: a webhook based publish/subscribe

On Friday 9 July 2009, Google engineers Brad Fitzpatrick and Brett Slatkin showed a demo of a new realtime protocol called pubsubhubbub. This new technology could lead to a more reactive, pseudo realtime web. I my humble opinion, this might be much bigger news from Google then the announcement of Chrome OS. Of course, only the latter made a big splash in the mainstream news.

The issue of messaging is a topic addressed already many times in the course of computer science. Common wisdom is that the publish-subscribe pattern is a sound solution to this. The problem is that due to all kinds of practicalities it often regresses into a polling solution. Even with pubhubsubbub, the website that want to display realtime updates has to poll the hub to check if an update has happened. So there's still a nut to crack! In the example of a subscriber, a Javascript polls the hub to check for an update.

If anybody would know an implementation of the client that does not poll, please let me know.

In the demo at Techcrunch, updates made by blogger appeared almost realtime in google reader. Currenlty, not all blogger accounts support pubsubhubbub.

To be ready when your blogger account is updated, do not forget to add your feed to Feedburner and to activate Pingshot:
enable pingshot in feedburner
A pubsubhubbub plugin for wordpress exists and the Drupal community is probably already working on it. Check the overview of publisher code for clients on the pubsubhubbub project page.

Pushed on publish post on monday 20 Juli 2009, at 10:41. Updated at 11u17

Tuesday, June 23, 2009

Spore Galactic Adventure Released in Europe, today 23 June 2009

IMG_0791
Spore Ruimteavonturen (Galactic Adventures) Picture 2
This afternoon i received a SMS that my preordered expention kit, called Galactic Adventures for the EA Spore game, was available. I picked it up for 30 euros and installed it. Everything went smooth.
IMG_0794
After a succesfull installation, we clicked on the Spore icon in the dock of the mac and prepared for the new fun....that we didn't find. Looking up the documentation and calling the EA helpdesk brought no prevail. I tried a second install. Nothing helped. Until I went looking in the installation directory Spore in the Applications directory. I saw that a new executable was there called "Spore Ruimteavonturen" (dutch for Spore Galactic Adventures). Dubbel click this new executable and of we go:
IMG_0795

Saturday, May 02, 2009

links to JPEG images in ATOM feed entries must be typed image/jpeg

After some debugging, I found a nasty bug in an ATOM feed that validated by the W3C validator service. I was trying to parse image url's out of an ATOM feed. ATOM 1.0 feeds are defined by the RFC 4287. In paragraph "4.2.7.3. The "type" Attribute" it is defined that the type must conform to the syntax of a MIME media type. The MIME media type is in turn defined by RFC 4288. Media type registrations are listed by the IANA at: http://www.iana.org/assignments/media-types/
If we look up the media subtypes of image/ we find that JPEG images have MIME type image/jpeg . The feed I was parsing had images with MIME type image/jpg instead of image/jpeg as it should have been. Apparently the W3C validator does not validate the type of links. I reported the bug/unconformence. Hopely it will be fixed soon.
A handy list with all MIME types to be used as reference is also provided by w3cschools.

Tuesday, March 17, 2009

First experiment with Imovie '09

This weekend I bought Ilife '09 for the mac. The software packet has four components : Iphoto, Imovie, Garageband and Iweb. So I played around with Imovie '09 and made a small project with my ski trip movies I shot with an Panasonic DMC-FS3. The movies are 640x480 and come in a .mov file container. The video tracks are encoded in Photo Jpeg and the audio tracks are in 8-bit unsigned mono 8KHz. The resulting movie project is uploaded to Youtube by Imovie's built in share function. Here's the result:

The soundtrack is from World of Goo. The track is "Brave Adventure" by Kyle Gabler.

I really enjoyed using Imovie'09 for this task. I works fast and intuitive. It proves that the choice to abandon the timeline is really working out for consumer oriented movie editing. Time will tell if this will also hold for professional editing. Imovie'09 has an export to Final Cut Pro (Apple professional editing program). Hence an escaped path is on board.

Thursday, March 05, 2009

Back from ski trip

Back from a skitrip in Nassfeld, Austria in Hotel Berghof with the Sporty organisation. Enjoyed good things in life.

Sunday, February 15, 2009

Sync Nokia 6124 Classic contacts with Google Sync via SyncML


I own a Nokia 6124 Classic since a few months. It's the entry model employees get from my employer. Since I work on mac, I could not sync the contacts because there is no free Isync plugin available yet. Recently, Google Sync was announced. It worked very good to sync my contactc on my Iphone with my Google contacts. I use Google Contact as my main database. Hence, I begun to wonder if I could sync my Nokia using Google Sync. Based upon the instructions from Google for another type of Nokia phone, I was able to derive a working setup. Here are the instructions:

  1. From the main menu, go to the "Settings" folder and select "Connectivity".
  2. From the Sync screen, select "Options"->"New sync profile" and enter the following:
  3. Sync profile name: Google Sync
  4. Select "Applications" then "Contacts"
  5. Include in sync: Yes
  6. Remote database: contacts
  7. Synchronisation type: Both Ways
  8. Select "Back" then "Back" then "Connection settings"
  9. Server version: 1.2
  10. Server ID: Google
  11. Data bearer: Internet
  12. Access point: Always ask
  13. Host address: https://m.google.com/syncml
  14. Port: 80
  15. Username: username@gmail.com (fill in your own username)
  16. Password: the password of your Google Account
  17. Allow sync requests: Yes
  18. Accept all sync requests: No
  19. Network authentication: No
  20. Select "Back", "Back" and then "Exit" to save the settings
  21. You have now finished the setup
To perform the sync operation, take the following steps:
  1. From the main Settings menu, select "Connectivity".
  2. From the Connectivity menu, select "Sync"'
  3. Highlight your Google Sync Profile.
  4. Select "Options" and click "Synchronise".
  5. Select your access point: Px Live (depends on your configuration)
  6. That's it. Your 6124 Classic will now connect and sync its phonebook with your Google Contacts. The contacts on your phone will appear in your google contacts and all your Google contact are stored into your phone. If you don't want this, change the value for the synchronization type set in step 7 of the setup
The synchronisation goes via Internet over the air (OTA). The next I would like to find out if i could pair the phone to my mac via Bluetooth and use the internet connection of my mac to do the synchronisation. I don't now if that possible. On the other hand, the synchronisation of my 800 contacts or so only took a few minutes, so I don't know its worth the hassle.

Sunday, January 04, 2009

Login failed for EA Spore : solution on Mac OSX

I bought the galactic version of Spore when it was released in Europe on 5 september 2008. Since then, me and my two kids of 8 and 10 years old, enjoyed playing it offline. Due to some strange reason, I could not get Spore online. The error messages were different over time but last month I got a message something was wrong with privileges. I tried to change my password but that did not help. Finally, I found "What do I do if I get the error: 'Login failed: You do not have the proper spore.com privileges'?" on the support site of EA. Unfortunately, the explanation is windows only. But after some sniffing around I found the login.prop file on OSX :
You can find the file as follows:

  1. Go to your home directory
  2. Double click on Library
  3. Double click on Preferences
  4. Double click on SPORE Preferences
  5. Double click on p_drive
  6. Double click on User
  7. Double click on Application Data
  8. Double click on Spore
  9. Double click on Preferences
  10. In this folder there will be a file login.prop, right click and delete this file and try Spore once again.
After the login.prop file was deleted, Spore asked for a new email/password/nickname combination (or you can login with you EA account). You can find our Spore creatures under the name losesi.

Happy sporing

Sunday, December 07, 2008

Canon EOS 5D Mark II : a game changer

Recently, Canon made available a new picture camera that might become a game changer. A good preview, based on a preproduction sample, is made by dpreview. The reason that this camera generates high expectations is twofold : a 35mm (full frame) sensor and the new Digic 4 processor. The large sensor means wide angle shots and excellent low light performance. The new digic 4 processor means that now you can record video from that excellent sensor with a resolution of 1920x1080 pixels (Full HD) at 30 frames per second. Hence, we might see a crossover happening from the photo camera business to the video camera's. The first results are indeed stunning. First, there's a professional made movie called "Reverie". A second movie, made with much lower budget, still captures my imagination:

Tokyo Reality (Canon 5D MarkII) from utsuru on Vimeo.

The resulting movie files are Quicktime Movies encoded using MPEG-4 AVC and uncompressed PCM sound (a total of 38.6 Megabits/second).

I asked Eirik Solheim (Project manager, development department
at the Norwegian Broadcasting Corporation (NRK)), who already has an Canon Eos 5D Mark II two questions:

  1. How is the process of getting the video into Final Cut Pro. Is there decoding/transcoding going on. If yes, does that take time ?
    Answer: You don’t have to transcode, but at this point you would probably end up transcoding: the files are standard H264 and can be edited directly in Final Cut. But the problem is that you need very powerful hardware to edit full HD H264 in Final Cut. If you want to edit on a laptop you have to transcode to Apple Intermediate or another less compressed format.

  2. Video quality is amazing judging the videos that already circulating in the net. But how about audio ? How does the build-in microphone performs and what do you get if you connect an external passive microphone. This issue will determine if external audio recording is still necessary or not.
    Answer: With the tests we have done the audio is OK, but not good. Using the internal mic on the camera has serious limitations of course. Picking up the sound of all operations you do on the camera and the image stabilizer motor if you use an IS lens. With an external mic it is better, but still a bit noisy.
    For professional productions you would be better off recording audio with a separate device. For interviews and simple background audio you could do with the built in audio and preferably with an external mic.

To test how my macbook pro with a 2.33 GHZ Intel Core 2 Duo processor would be able to handle the HD files, I downloaded the full HD version of "Tokyo Reality" via bittorrent. Playback on the macbook pro was unfortunately not smooth. On an Imac, playback was perfect. Hence, I guess my macbook pro will not be powerfull enough for working with Full HD files coming from the Canon 5D. Maybe a new technology, called OpenCl (Open Computing Language), will solve this issue. OpenCl makes it possible for developers to efficiently tap the vast gigaflops of computing power currently locked up in the graphics processing unit (GPU). With GPUs approaching processing speeds of a trillion operations per second, they’re capable of considerably more than just drawing pictures. OpenCL takes that power and redirects it for general-purpose computing. OpenCl is a new powerful Snow Leopard technology.

Wednesday, November 05, 2008

Wifi on steriods in the USA


While all news is currently alloted to the presidential campaign and the election of Barack Obama, on Tuesday 4 November another important vote was casted. The American regulator of the airwaves, FCC (Federal Communications Commission), voted 5-0 for the use of the white spaces between the television channels. Current wifi equipment makes use of the 2,4 GHz band (or the 5GHz band for more modern equipment supporting 802.11a/n, for example Apple Airport Basestation Extreme). The new vote of the FCC means that new wifi equipment will be able to use the unused white space between the channels alloted to TV. Why is this important ? The reason is that the TV spectrum has better characteristics for in home use. The UHF band, used for televison distribution, spans from 300MHz upto 3GHz. Lower frequencies have larger wavelength. Therefore they propagate better trough walls and other obstacles typically encountered in urban environments. It boils down that using the white space frequencies will lower the cost for providing ubiquitous wireless networks. Hopefully we will see more wide area wifi networks that provide free or cheap internet access in the near future.

More info:

Friday, October 10, 2008

On the workfloor


My collegue is wearing this T-shirt this week.

Sunday, September 28, 2008

Iphone friendly version of this blog cast42

Apple's Iphone and Ipod Touch can render this blog using mobile Safari out of the box. Unfortunatly, this might not really what you want. Webservice DoYouFeed.com allows for for an Iphone friendly rendering. Fill in the feed address of your blog, choose a theme and click. Et voila, a link to an iphone optimized rendering appears. You can see the result for this blog at http://tinyurl.com/4cgap6 . It looks like this :
DoYouFeed.com: Turn any RSS feed into an iPhone friendly site

Tuesday, September 16, 2008

Attending Google Developers Days in London

Google is doing a tour around Europe to get into contact with the developers. Today, I'm attending the developer day in London at the Wembley station. More later.

Sunday, September 07, 2008

Added Google Followers to this blog

Google has released a feature that allows you to subscribe to a blog and appear in a public list of all other followers of it. More info by Ionut Alex Chitu on his Google Operating System blog. As an experiment, I added this feature to my cast42 blog. Currently, it looks like this:
cast42
A bit sad, zero followers. Probably, this fact, that you have to start from zero, will hamper the adoption of this new feature. Who likes to admit there are no followers ? Secondly, I now have to take the risc that no people are willing to follow cast42 via this new feature. That's a kind of social popularity test. Let's hope that you, yes you, my dear vistors, quickly change that for me ;-) If not, i will have move the followers gadget down under the horizon on the sidebar of this blog and eventually remove it if this social feature doesn't gain traction. So lets see what happens.

UPDATE Sunday 7 september 2008, 21u51: Thx to Hendrik the count changed from zero to one. And you can follow yourself. So now we are with two.

Saturday, September 06, 2008

Spore arrived in Belgium, workaround for @ sign on mac


After years of salivation, dreaming and projecting, the mother of all games finally arrived. I just walked into the Fnac of Leuven in Belgium and bought the galactic version for 64,99 euros (the standard version was 54,99 euros). My collegues warned me that I was expecting so much from the game that I could be nothing else but dissappointed. However after the first few hours of play I'm still very excited by the game. It could very well be that Will Wright and his team created another master piece.

Installation on the iMac went smooth. Registration didn't succeed. First, the bug that prevents entering the @ sign on a belgian / belgium keyboard was not solved yet. Just pressing the key with the @ sign doesn't work. A workaround is to use another key shortcut. Type the option ⌥ key and the ` key (that's the key left of the enter key and above the shift key on the right, the superscript is the £ sign). That resolved entering the email addres but then Spore refused to register. Trying a previous account created with the Spore creature editor also failed. Probably, the Spore servers are overwhelmed. Lukily, you can start to play. My seven years old son claim: "dad, this is much better then runescape" !

UPDATE: sunday 7 september 2008:19u30, I got an confirmation mail from EA stating that my registration was successful.

Thursday, August 14, 2008

An anthropological introduction to YouTube

presented by Michael Wesch at the Library of Congress, June 23rd 2008. He decided to forgo the PowerPoint and instead worked with students to prepare over 40 minutes of video for the 55 minute presentation. This is the result:

An anthropological introduction to YouTube
I already builded the insight that it's not technology that shapes the future. More important is what people do or don't do with it. It is basically the message of Clay Shirky's book "Here comes everybody". Still I found the video of Michael Wesch presentation more insightfull if you're interested in media as cultural and social phenomenon.

More info: http://mediatedcultures.net

Tuesday, August 12, 2008

QR codes for mobile tagging

A "Quick Response" or QR code is an image that can be decoded into an text. It's like a two-dimensional barcode. Here's an example:
qrcode
Scanning this picture resolves into the URL of this blog: http://castfortwo.blogspot.com .

This kind of pictures are typically used for tagging. Add the QR code picture to a thing, take a picture of the thing, decode the picture on the thing and there's the text. For example, a link to a website with product information.
You can make your QR code yourself here : http://qrcode.kaywa.com/

Using the Google Chart API, you can also generate QR codes. The URL

http://chart.apis.google.com/chart?chs=300x300&alt;cht=qr&alt;chl=Hello|World

generates a QR code for "Hello World":
QR code of Hello World

Changing the parameter chl to the URL of this blog:

http://chart.apis.google.com/chart?chs=300x300&alt;cht=qr&alt;chl=http://castfortwo.blogspot.com/

gives:
QR code for URL of Cast42 blog

Every BBC programme has also an QR code. Just add /qrcode to the URL.
For example, the URL of the Top Gear programme is:
http://www.bbc.co.uk/programmes/b006mj59
Adding /qrcode gives:

http://www.bbc.co.uk/programmes/b006mj59/qrcode

which render to:
BBC - Programmes - QRcode

There are several free applications on the iphone that can decode QR codes:
iTunes


Several other mobile phones have such application to.

The BBC has even succeeded in tampering the QR code for the bbb.co.uk/programes URL such that the BBC text is clearly readable:
QR code for bbc.co.uk/programmes