Posts

Conventional bike - ebike convertion for commuting and for fun!

Image
Among the myriad of personal projects laying around, one kept coming up every time
spring showed its head. With good weather conditions and long periods of sunlight
I wanted to commute to work by bike.

This year I had set myself up to the task and tried it a couple of times. The trip it's
about 4.7 Km and mostly on secondary roads and some tracks. I soon realised, that
the short but step climbs I had to overtake, where to much for daily commuting.

After some research on converting a bike to ebike, I found that the Mid Drives
developed by the Chinese company Suzhou Bafang Diandonchi Gongsi, better known in the west as Bafang or 8Fun,
 appear to be the "standard" on the Mid drive ebike conversion arena.

Note that Mid Drives are not the only option in town. There are wheel motors of a variety
of brands and models. However, the balance of the bike and the efficiency of the motor
looks like it's better with the Mid drives. They are also more expensive on average.

Now th…

HIoH (HIoH IoT Hub)

The internet of things it's a trendy topic lately. Armed with a myriad different little devices from temperature sensors to door bells, from elaborate sleep monitoring sensor, to cameras, weather stations, TV boxes or credit card sized computers, there is a ample world to explore.

How to bring together all this information that's been generated? meet HIoH IoT Hub. HIoH makes one assumption: Communication is going to be using MQTT protocol. This protocol is been battle tested and thought for machine to machine communication.

The project focuses on connecting to a MQTT broker and singing up to some configurable topics. Each topic is supposed to be a device. Every device will send data to the broker, and ones configured, HIoT will bring it all together. There is also the possibility for the communication to be from HIoT to device, openning a way to send commands.
Other than HIoH, what else do I need to have it all play as one?An MQTT broker. It can be any broker that impleme…

.NET get anonimous return expando with added fields

If you happened to be programming in VB.NET and happened to receive an IEnumerable of anonymous objects and if you then need to return the IEnumerable with every element slightly modified, it's a pain.

You have to create a new anonymous object and manually type every property of the old object in every step of the loop. In order to automatise this process, this function comes very handy:

Pass it the anonymous object and a list of key value pairs (these would be the properties to be added) and it returns another object retaining all the old properties and adding the new ones.
Note that the implementation uses the Expando object.

To pray or not to pray

Here is a discussion:

There is this little private one day party/festival in a little district in a little town. About 60 people gather for lunch, some dancing and few games.
Before lunch there also is a catholic religious service.

Arguing with religious freedoms it is lately become something difficult. Many people does not care and do not want to be involved in the argument. However, I believe that everything has to be questionable because passivity is also an action.

Is it justifiable to vote the continuity of the religious service if the organizers want? Or just plain take it off the calendar? Or it shouldn't be touched?

The service proponents claim that elders attend the service and they really want to have it. They are elders so are we going to take that off from them?

On the other hand, what does a religious service contribute to the festival? We can argue that the lunch, the  music, dancing and games,
contribute directly to the means of the party/festival which is to enjoy …

Should a pharmacy shell homeopathic products?

Not without clearly displaying its inability to cure or at least following the same steps that any other pharmaceutical has to follow.

Stop this nonsense!

 If anyone wants to buy this stuff, that's OK with me But please "Mr. government", stop looking in another direction when facing this stuff.

A case against bloom filters in bitcoin

Bitcoin Bloom filters are like mazes with many entries and two ways out, lets call them "no way" and "my way". One decides that a transaction has not to be sent to us the other one to be sent. The maze it's built in a way that all our wanted transactions are going to get out of the "my way" and some unwanted too. For the sake of correctness, note that the maze can not be run backwards and every element will repeat its own way every time its thrown through the "maze"".

The anonymity that this technique claims to achieve it's coming from the "unwanted" elements that come out of "my way". This will supposedly confuse anyone that is trying to follow our wanted elements.

Whether with this technique we really achieve anonymity might be arguable or not but I do not have a problem with that part.

With bloom filters, before anything is sent to us by a node, the node has to "build the maze" run every transaction, o…

One of these days I should wish to know whether they believe their own words

As I was listening to Ray Harris Jr.'s World War II podcast, I started to ponder on Hitler's words of justification after invading and then declaring the war on the USSR.

It is known that history keeps repeating itself. Justifications and accusations move politics these days too and a prove of this are  some of Mariano's (Rajoy) speeches or interviews. Not an easy job to get to interview the guy, by the way. Rewriting these it's a waste of space an time but there are archives to back my words.

As speeches like this flow out of the mouths of the leaders, I can not help but to question myself: Do they really believe what they say? Notice that whatever the answer might be, there a enormous implications upon it.