Hiraedd

Sep 28

Entropy and Biodiversity

Some time ago I stumbled upon a post on n-Category Café (which is, by the way, a blog that is definitely worth reading); here is part 1 and part 2

The post introduces the concepts of entropy and diversity (and cardinality) in the field of biology. While I’m acquainted with the definition of entropy in information theory (and, slightly less, physics), I found really beautiful that those concepts could be applied in a very elegant way in population biology. 

The first part applies the entropy definition to a finite probability space, representing an ecosystem with several species. Each probability shows how a particular species is frequent, namely the probability to encounter an indivual of that species. The entropy represent the diversity of the ecosystem, or, in a very rough language, how in “a good state” is the ecosystem.

The second part extends to a finite probability metric space. In this space, the probability has the same meaning as before. The metric distance among the points in the space grasps the idea of how a species is similar to one another. Thus, a low distance between two species means that these two are quite similar.

From the diversity you could derive the entropy and the cardinality of a probability (metric) space. 

Intrigued by the post, I wrote a small ruby gem to calculate the entropy, the diversity and the cardinality for a probability space with or without a metric. The gem is on rubygems.org,entropy_gem, and the source code is on github.

I’m wondering if, passing from information theory to population biology to computer science again, these concepts could be applied in the field of machine learning, perhaps in genetic programming or any algorithm inspired by the mechanisms on evolutionary biology. 

Tell me if you have any suggestion, comment or correction.

Aug 07

Solar Charger for your smartphone

I recently bought a Guide10 Adventure Kit solar panel from Goal0. The kit includes a Nomad7 solar panel and a battery pack with 4 AA NiMh batteries.

Since I needed it in time for the Chaos Communication Camp, and didn’t found  a vendor in Europe, this was a good chance to test Borderlinx, a forwarding service that provides you an US address if you live outside USA.  So here are my opinions about both the solar panel and the forwarding service.

Goal0 Nomad7 Solar Charger

Pros: The solar panel can charge directly your smarphone or the battery pack. It has an USB 5V output and a 12V output with a standard car charger socket.
The battery pack includes 4 AA NiMh batteries, but you can use any NiMh battery, and an adapter to charge the AAA type. The battery pack can then be used to charge the smartphone by switching it to output mode.

Cons: I wished it had included some adapters, expecially for old phone that require a charger. You can you a car charger, tough, if you have one, but that forces you to use the direct 12V output of the solar panel, instead of the 5V battery pack output.

Bottom line: So far the products seems very good. I used the battery pack to charge my Nexus S, and the solar panel to charge the battery pack, multiple times. The solar panel is water resistant and light, I can recommend it for  backpacking/camping.

Borderlinx

The service of Borderlinx is operated by DHL. It provides a US address, and as a bonus a UK address. You can use this address as a shipping address when you buy from an online shop. Borderlinx then sends your package to your address.

Pros: Creating an account is quite easy, it doesn’t require a credit card. Borderlinx has a retention period of 30 days, during this time you can accumulate your goods, and then send them in an unique shipping, slightly saving some cents. The service calctulates for you all the shipping cost, duty and taxes, so you know almost exactly what you’re going to pay and you don’t have to deal with duty forms and taxes. It offers standard and express delivery. Plus, most online shops offer free shipping inside US.

Cons: the service  isn’t  exaclty cheap.

Bottom line: the shipping was fast and the service overall experience was good, but not cheap. I think it can be used to buy things that you can’t’ find in your country (but beware that some US vendors don’t ship to addresses provided by services like Borderlinx), but for a more casual shopping you should evaluate with attention the cost and whether it is worth. 

Jun 19

Stuxnet: Anatomy of a Computer Virus (on Vimeo)

Jun 05

On wisdom of crowds, or collective intelligence.

A nice introduction to collective intelligence, and why sometime it fails.
[…]

The good news is that the wisdom of crowds exists. When groups of people are asked a difficult question—say, to estimate the number of marbles in a jar, or the murder rate of New York City—their mistakes tend to cancel each other out. As a result, the average answer is often surprisingly accurate.

But here’s the bad news: The wisdom of crowds turns out to be an incredibly fragile phenomenon. It doesn’t take much for the smart group to become a dumb herd. Worse, a new study by Swiss scientists suggests that the interconnectedness of modern life might be making it even harder to benefit from our collective intelligence.

[…]

May 15

Chicago 2

May 10

Chicago

Apr 23

(via heart4rescue)

Apr 17

Yuri Gagarin’s First Orbit

This week marks 50 years since Yuri Gagarin climbed into his space ship and was launched into space. It took him just 108 minutes to orbit Earth and he returned as the World’s very first space man.

To mark this historic flight we have teamed up with the astronauts onboard the International Space Station to film a new view of what Yuri would have seen as he travelled around the planet.

Weaving these new views together with historic voice recordings from Yuri’s flight and an original score by composer Philip Sheppard, we have created a spellbinding film to share with people around the World on this historic anniversary.

Watch First Orbit right now on YouTube. And if you enjoy it then do check out our next film. We need your help to make it.

Why not join us?

Late as usual, I remember the first human in orbit around the Earth.

Apr 02

[Review] Running app for Android

I’m a newbye runner. Last winter I started the C25k program and now I’m able to steadily run 5 km (I won’t disclose the time though), so I searched for an Android App to record the time spent, the route I took and a few other stats.  

After a brief search I restricted the set of candidates to three applications, namely Cardiotrainer, Endomondo and Runkeeper Pro, and tried them all. The first two are available in the Android Market both as a free version and as paid enhanced version (I bougth them both and here I’m evaluating the paid version); the last one is free.

Here are a few pros and cons I found for each app:

Cardiotrainer:

Pros:

Cons:

Endomondo:

Pros:

Cons:

Runkeeper Pro:

Pros:

Cons:

And the winner is…

The Cardiotrainer was the first app I installed, since at first glance seemed the most used. Now I appreciate the stats you can collect on your workouts on Endomondo’s and Runkeepers’ websites. You can  easily switch  from one app to another, for all three apps support the import/export of workouts in gpx format.

I suspect the Runkeeper it’s the most useful if you’re a serious runner, but Endomondo comes pretty close. Right now I chose to use Endomondo.

 

Mar 29

Antibiotic Resistance

Once in a while a mutation of bacteria resistant to new kinds of antibiotic drugs surfaces, both in developed countries, where the medical standards are supposed to be higher, or in developing countries where the spreading of disease is easier. 

The last of such occurence is reported in the April issue of Scientific American and summarized  here.

Every time I read of the discover of so called “super” bacteria resistant to a “super” new drug just developed by a pharma comp, I recall a story I read about a year ago: Norway found a simple solution by cutting the use of antibiotics. People do not have a chance to develop resistance to antibiotics, because Norwegian doctors prescribe fewer antibiotics than any other country.

.