Streaming Average

Just because I keep forgetting it and having to find out all the math manually again! my $avg = 0; my $cnt = 0; for my $row (@rows) { if ($cnt) { $avg += (($row->{value} - $avg)/($cnt+$row->{cnt}))*$row->{cnt}; $cnt += $row->{cnt}; } else { $cnt = $row->{cnt}; $avg = $row->{value}; } } The two main reasons to […]

Streaming Average

Just because I keep forgetting it and having to find out all the math manually again! my $avg = 0; my $cnt = 0; for my $row (@rows) { if ($cnt) { $avg += (($row->{value} - $avg)/($cnt+$row->{cnt}))*$row->{cnt}; $cnt += $row->{cnt}; } else { $cnt = $row->{cnt}; $avg = $row->{value}; } } The two main reasons to […]

Serial Average

Just because I keep forgetting it and having to find out all the math manually again! my $avg = 0; my $cnt = 0; for my $row (@rows) { if ($cnt) { $avg += (($row->{value} - $avg)/$cnt)*$row->{cnt}; $cnt += $row->{cnt}; } else { $cnt = $row->{cnt}; $avg = $row->{value}; } }

Beal’s Conjuncture

One of this days I come across the Bael’s conjuncture and the Bael’s Prize. The conjecture is a generalization of Fermat’s Last Theorem, that states: If , where and are positive integers with , then and have a common prime factor. This is still a conjecture, meaning that it was not proved or disproved. And […]

Beal’s Conjuncture

One of this days I come across the Bael’s conjuncture and the Bael’s Prize. The conjecture is a generalization of Fermat’s Last Theorem, that states: If , where and are positive integers with , then and have a common prime factor. This is still a conjecture, meaning that it was not proved or disproved. And […]

AeroMobil 3.0

Aeromobil 3.0 is a flying car. It can fly at 200 Km/h, and have a flying range of 700 Km, with an announced fuel consumption of 15 l/h (while flying the speed can range between 60 km/h and 200+km/h). This flying car is the core product of the Slovakian company AeroMobil.

AeroMobil 3.0

Aeromobil 3.0 is a flying car. It can fly at 200 Km/h, and have a flying range of 700 Km, with an announced fuel consumption of 15 l/h (while flying the speed can range between 60 km/h and 200+km/h). This flying car is the core product of the Slovakian company AeroMobil.

Pop rocks banned Commercial

Pop rocks banned Commercial

Whatever team you play for…

This is the first commercial broadcast during the Olympic games this year.

Whatever team you play for…

This is the first commercial broadcast during the Olympic games this year.

My blogs

Today I was once again upgrading all the software I use for my blogs. Lately I spend a lot more time upgrading the software than writing posts. It doesn’t take too much time as I automated most of the process, except that I still need to download and push to my own git repositories the latest […]

My blogs

Today I was once again upgrading all the software I use for my blogs. Lately I spend a lot more time upgrading the software than writing posts. It doesn’t take too much time as I automated most of the process, except that I still need to download and push to my own git repositories the latest […]

Coder’s mood

Source: CommitStrip – [Best Of] Coder’s mood #1

Coder’s mood

Source: CommitStrip – [Best Of] Coder’s mood #1

Emma, Le Trèfle

When advertisement is properly done, it surprises us and sticks to our memory. Le Trèfle – paper have a great future.

Emma, Le Trèfle

When advertisement is properly done, it surprises us and sticks to our memory. Le Trèfle – paper have a great future.

Me and My Phones

A bit more than a week ago I got a new OnePlus One and last weekend I spent some time installing and configuring it. Changing phone is always a painful experience, even if Google make it easier with Nexus phones. Until now I was using a Nexus 5, and before that a Galaxy Nexus (yes I did skip […]

Talk with your kids about sex

This video can be seen in primetime in most TV channels in the Netherlands. The text in the black boxes in the end of the video says: Kids watch pen in the internet. Talk with them about sex Before they do it. It doesn’t say “watch out and forbid them from using the computer” or […]

Always Nice

Human nature vs Human culture

I was reading a post on startup mentoring and come across the expression “it’s not human nature”. The same idea is often expressed in slightly different term – unnatural, against nature, against human nature, etc – but this is more often a sign that human culture is so impregnated in us that we can’t tell […]

Human nature vs Human culture

I was reading a post on startup mentoring and come across the expression “it’s not human nature”. The same idea is often expressed in slightly different term – unnatural, against nature, against human nature, etc – but this is more often a sign that human culture is so impregnated in us that we can’t tell […]

Dell starts to accept bitcoin

Dell announced that they are now accepting Bitcoins in their website, making them one of the biggest companies in the world to accept the digital currency. Their announcement is completed with a list of advices to all the bitcoin users about keeping their e-wallet secure, and a toturial on how to use the currency on […]

Dell starts to accept bitcoin

Dell announced that they are now accepting Bitcoins in their website, making them one of the biggest companies in the world to accept the digital currency. Their announcement is completed with a list of advices to all the bitcoin users about keeping their e-wallet secure, and a toturial on how to use the currency on […]

Men think less about sex than advertised…

According to a couple of studies, men don’t actually think about sex once every seven seconds. That was a relieve, I was starting to think that something was wrong with me, as I sometimes manage to go for sometime without thinking about it. But then the first study says that men think 19 times per day […]

But what does the fox say?

Today I bring you this sign from a farm in Pensacola, Florida, USA – according to the Passive Aggressive Notes blog. Go there, Passive Aggressive Notes is a fun blog to watch, and they even have the city version of the bad neighbor this farmer is afraid of.

But what does the fox say?

Today I bring you this sign from a farm in Pensacola, Florida, USA – according to the Passive Aggressive Notes blog. Go there, Passive Aggressive Notes is a fun blog to watch, and they even have the city version of the bad neighbor this farmer is afraid of.

If Super Mario World had been released on an App Store

Games used to be fun. At some point in time games even had an option to save the current progress so that you could later come back and restart the game where you left it. But today games do cater to our entertainment anymore. Games today are in the business of exploiting our frustration. We […]

If Super Mario World had been released on an App Store

Games used to be fun. At some point in time games even had an option to save the current progress so that you could later come back and restart the game where you left it. But today games do cater to our entertainment anymore. Games today are in the business of exploiting our frustration. We […]

Apple Swift

Apple launched a new programming language called swift. After s quick look at the docs, the language seems to deserve a second deeper look. There are several things on it that look interesting. But for now, there is one example from the documentation I need to share with you: var occupations = [ “Malcolm”: “Captain”, […]
Powered by WordPress | Fluxipress Theme