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.

Symfony 2.0 Preview

Here we go. Fabien Potencier last week released the preview website for symfony 2.0 (symfony reloaded). Me, as a long time PHP and symfony user this preview shows a lot of new interesting stuff comming to web development with symfony. A Quick-Tour of Fabiens newest baby is also available and points out major changes to the framework. First thing to notice is the completly changed directory structure. Another major step is the use of >= PHP 5.3.2 which adds support for namespaces and gives a great performance boost. As release date for symfony 2.0 “late 2010″ is scheduled.

Mit mir nicht

Sehr geehrten Leserinnen und Leser,

ich werde nicht für Vodafone bloggen so wie das scheinbar ein paar halbwegs bekannte Blogger (z.B.: Die Frau Schnutinger hier) meinen. Blogger können ruhig Werbung machen, aber so tun als ob es wirklich toll wäre nur weil sie dafür Geld bekommen ist nicht richtig.

Ich werbe hier gleich rechts auch, was dort angezeigt wird ist mir egal – es wird schon zum Content/Nutzer passen. Wenn nicht ist mir das auch egal. Und man kann mich unterstützen und dort einfach klicken. So ist es. Gut finden tu ich es deswegen trotzdem nicht automatisch.

Mit freundlichen Grüßen,
Seric