Blogging from iPad

Since I recently got an iPad2 from my employer, I am able to update my blog from everywhere thanks to pretty decent 3g coverage in Austria. However, what you want to use if you start blogging from your iPad with your WordPress blog, is the native WordPress App which is available for free in the Appstore.

I will hopefully start to blog more often with this new opportunity. Let’s give its a try.

Start an Android Intent without pushing on the history stack

I was wondering how to create an Intent with the Android SDK which will not be pushed on top of the history stack. Which means, if another Intent will be started, the back button pressed event will not move back to the specific Intent. Actually this is done pretty easy with setting a FLAG_ACTIVITY_NO_HISTORY. An example the is given with the following code snipped.
Continue reading

Authorship on blog posts

Google released . But what they are doing is actually fight back Content-Farms with stupid “content” and Facebooks Social-Graph.

Their first step was change the algorithms to calculate the search results different. Do not trust websites which just give you lots of buzz- and keywords. Remove content in search results which was optimized by companies (SEO) to generate a lot of traffic. That is neither what the web is in need of nor what a typical user wants to read. So they had to add more value on people recommending content not keywords. The added the Google +1 Button. Letting people decide which content added value to their research.

The next step had to be adding recommendations from your friends to your search results. To identify your friends, Google could not just relay on data they get from Google Contacts (e.g. GMail) but were in need to create something like Facebooks Social-Graph. Which is exactly what Google did with Google+. (Thumbs up, a social network that adds more value than Facebook or Twitter ever did).

So the next logical step is, adding semantics to articles, blog posts or any other content that you as a user produce online. Google adds Authorship (with complete description). A way of linking your content back to your Google+ profile, which is then processed by Googles Searchbots. This is actually done by adding the:

<a rel="author" href="https://plus.google.com/<your-id>">Your Name</a>

to each content you produce.

Et voila. This leads to more semantic and more value of search results and even shows my profile picture beside search results for my friends. This is great.

Let’s see what’s next. I am excited.

Anonyme Amazoniker

Ja, wie es bereits Kristian Köhntopp schreibt, man hätte diese Statistik wohl besser nicht erstellt. However.

Nur amazon.de, keine digitalen Bestellungen sowie keine amazon.com Bestellungen.

Annotations with Symfony2

With Symfony2 much configuration can be added directly to actions with annotations. With Symfony1 there have been cache.yml, route.yml, security.yml and many more configuration files for a single controller. This has not changed with Symfony2. You still are able to configure your (bundle) controller with single files. However, there is a new way which offers more flexibility and adds the configuration right to the place where it is used: to the specific action as meta-info with some sort of annotations.

First, your route.yml has to be edited and your bundle has to be added.

# app/config/route.yml
your_bundle:
    resource "@YourBundle/Controller/YourController.php"
    type: annotation

This is needed in every setup, but as you see, you can specify the route type as annotation. This means, Symfony2 will parse the doc block on any action of your controller file, and import this to route.yml. But don’t worry, Symfony2 does this just once and stores the information on the cached route.yml file.

Now you have to add the routing information on each action which should be imported as route, as shown below. You can also insert params to your route. Additionally to the route you can add various other settings direct to the action as also shown below.

class YourController
{
  /**
   * @extra:Route("/action/{id}", name"route_name", requirements = {"id" = "\d+"})
   * @extra:Template("YourBundle:Controller:action", vars={"your"})
   * @extra:Secure(roles="ROLE_MEMBER")
   * @extra:Cache(expires="+7 days")
   */
  public function yourAction($id)
  {
    $your = 'code ' . does('something with', $id);
  }
}

There is much more to come and everything is still under development. So expect changes and additions to these existing annotations.

Update 24.05.11
Yesterday, Fabien Potencier announced a change in the Annotation System of Symfony2. There is a official blog post explaining the changes.

Pressespiegel Österreich – Finde den Fehler

Der heutige Pressespiegel Online aus Österreich. Finde den Fehler.

Bilder Copyright:
www.kurier.at, www.derstandard.at, www.orf.at, www.heute.at, www.oe24.at, www.diepresse.com, www.krone.at

My computers

So there are a couple of computers idling around here. I all of them gave names of planets and have come to the point where I have to use names of stars because I ran out of planets. Here I have a list of all the devices that I am using on a more or less regular basis. I left out smartphones, server in data centers or not anymore working computers at home.

Earth
My old, but still working home file server which runs Ubuntu. It has three internal HDDs and offers a total of approx. 1,5TB of storage space. I don’t like the really loud fan but I live with it.

Mars
An old Sony Vaio notebook which is not really in use anymore but still works. It runs Windows XP and is often used by others in the living room for just browsing the web. However, I don’t use it anymore.

Pluto
A 15″ MacBook Pro (first generation unibody) which is used by my dad on a daily basis. I just use a remote ssh connection occasionally to fix things or install new software. Yes Pluto is actually not a planet anymore (since 2006), however. I had a Netbook (Saturn) at this time and no other planet name was left.

Jupiter
My main notebook. This is a 15″ MacBook Pro (late 2009) with 8GB of RAM but still a really slow 320GB HDD. I am probably replacing the HDD with a SDD quite soon. I use this MBP every day at university or at home. I am doing my photo editing, programming and daily office work with this computer.

Venus
Not my computer, but my girlfriends. It is a Fujitsu Siemens Windows 7 notebook which I personally do not use at all.

Merkur
My HTPC just beside my TV. It is a Zotac Mag Mini system which runs with Ubuntu with MythTV. It records TV series and movies. I use it also as a small web server for developing small applications.

Uranus
A 23″ iMac actually used by my mum and not quite often by myself. I however often ssh in and install stuff.

Neptun
A 15″ ASUS notebook from 2006. It is running Windows XP, standing around somewhere and not used anymore. It was my main computer for quite a long time before I switched to my MBP (jupiter).

Genua
A 27″ iMac at work I already had to name after an astroid and not a planet, since there are no names left and this is actually not my personal computer.

Should my next project use Symfony2?

In a couple of hours, the Symfony Live event in Paris is going to start. You can expect Fabien Potencier to release Symfony 2.0 at the keynote he is holding on March 3rd at 17:30.

This is actually not a big deal since Symfony2 has been around for a couple of months. The big question is, should you already start developing your next project with Symfony2? There is no definite answer to that but what you can expect is a “not so much” changing API and already robust Framework right from the start. If you are planing a big project with longer time to develop, Symfony2 is a must. If you have already started and use Symfony1.4, stick with it.

Ein Monat Nexus S

Vor genau einem Monat habe ich mein Google Nexus S bekommen. Besorgt hat es mir ein Freund in London und es mir nach Österreich geschickt. Bin ich soweit zufrieden? Absolut! Es gibt dennoch ein paar kleine Dinge die mich stören.

Continue reading

Die ersten “Freunde” sind da

Vor bereits einer Woche, habe ich die ersten bestellten Flaschen Whisky bekommen. Das ist ein Novum, da ich doch bisher Whisky bzw. Spirituosen beim vorbeigehen im Supermarkt mitgenommen habe. Erstmals habe ich (online) bestellt. Und dies beim scheinbar besten Whisky Shop in Deutschland, dem “The Whisky Store” von Theresia Lüning.

Bestellt habe ich nicht irgendwas, sondern habe mich fachkundig von Kris beraten lassen. Somit sind es drei “Freunde” von der selben Gegend in Schottland geworden. Genauer gesagt, von der Insel Islay, welche vor allem für sehr rauchige/torfige Whiskys bekannt ist.

Ein Laphroaig Quarter Cask, ein Bowmore Darkest und ein Bruichladdich Peat. Ich habe alle bereits getestet und kann auch alle ohne grobe Einschränkung weiterempfehlen. Einzig für Einsteiger auf dem Gebiet (speziell Nichtrauchern) wird das rauchige/torfige anfangs etwas ungewohnt vorkommen.