Frank Herrman

RSS

Statistics point to fraud in Russian elections

How much evidence do we need before we -the people- won’t accept such behavior from our world leaders? This article points to statistics that show there was a high correlation between turnout and results of the Russian elections. Also, the votes for Putin are hovering round numbers and the results were very uniform.

May 9

Finally, a cure for hicups

A little girl mixed up some grandma-wisdom to come up with a lollipop to cure hicups. I don’t know if it works, but if it does I will buy the first ones! Somehow I have hicups too often for too long, but I guess everybody hates hicups. There is a big market for this cure!

(Source: Business Insider)

Amazing photographs of Ants

These photos are ‘staged’, but still, you can’t tell ants what to do. Amazing shots!

Mar 2

Canon 5D Mark III announced

Besides the 61 AF points I don’t see a reason to upgrade my 5D Mark II yet, but I think that’s enough reason to do so…too bad you can’t just buy an upgrade kit like software :). Compared to the coming 1Dx the 5D Mark III is way better value for money so it seems.

Materialized Views in MySQL: speed up your view

To speed up the process of a query which joins many tables together you may create a view. This is a type of cached query which acts like a table but is automatically updated by the query which you used to define it.

  CREATE
    OR REPLACE
    VIEW my_happy_view
    AS SELECT a.column1, b.column2 
         FROM table1 a 
         LEFT JOIN table2 b ON a.id=b.table1_id

When you use a very complex query to create your view you may encounter long loading times when selecting data from the view. To solve this, the people from Oracle, Microsoft and other database systems came up with a solution: materialized views.

Materialized views are basically tables which are updated once in a couple of hours. If the data should be real-time available, this is not an option. It is really ment for data warehousing. Unfortunately, MySQL does not support materialized views.

But there is a solution! We can implement something similar ourselves. Just create a PHP file which creates a caching table. In our example we would create a table my_happy_view_cache:

   CREATE TABLE my_happy_view_cache SELECT * FROM my_happy_view

Yes it’s that simple. Then make sure we select data from my_happy_view_cache instead of the original view. To keep the data up-to-date we have to execute the above query reguarly. Simply create a php file (or any other language) which drops the above table before recreating it.

To schedule this file create a shell script which executes ‘php /path/to/yourfile.php’. Put this script in your crontab and execute it as often as is needed. There you have it, your manually created materialized view!

Of course this is still not real-time, but close enough. It will speed up your scripts immensely.

Beautiful Macro photography

Some really nice Macro photo’s of insects. Pretty nice details there!

Feb 9
This can be yours for 13.000 euro…Sony SAL500F40G is a 500mm F/4 lens. Doesn’t beat the 120.000 euro 1200mm of Canon though.

This can be yours for 13.000 euro…Sony SAL500F40G is a 500mm F/4 lens. Doesn’t beat the 120.000 euro 1200mm of Canon though.

Lamborghini will show a concept car of a SUV at the Beijing Motor Show. I hope it they won’t bring it into production…

Lamborghini will show a concept car of a SUV at the Beijing Motor Show. I hope it they won’t bring it into production…

Physicists have been working for decades on a “theory of everything,” one that unites quantum mechanics and relativity. Apparently, they were being too modest. Yesterday saw publication of a press release claiming a biologist had just published a theory accounting for all of that—and handling the origin of life and the creation of the Moon in the bargain. Better yet, no math!

-

(Source: Ars Technica)

Jan 5
Some amazing photos of shadow-art, impressive! Click the image for more.

Some amazing photos of shadow-art, impressive! Click the image for more.