Leave a comment

A story plot

That should be for an action movie with lots of explosions.
I wrote it here https://twitter.com/wadael/status/1167030702229086208 in a thread.
Here it is.

Story plot: a Big pharma wages War against BIG brazilian farmers to save the Forest people. Its a private army hired for PR Its a beautiful international effort. Afghan vets from all sides. Former Yugoslavia soldiers awaited in La Haye. Former special forces ….

… of the ”good” nations. A few members of ”Snipers for Good” All united under the pharma banner in the interest of humanity Looks good

In the bg, its mob manners, kidnapping of pdt old mama to put a stop to fires But cardiac, she dies 😦 It pours oil on the fires. In both meanings. Threats, attacks, defenses a lot of action Ppl rebel, peaceful sitin demonstrations every day, in the dust and fumes coming..

..from the burning areas are violently attacked by riot police. RP depicted as bloodthirsty, trigger happy pigs and rapists. All ends as well as possible after prsdt suicides But shadowy politics go back to the shadows, awaiting their time (or the sequel) Ultimately, ….

. the lead action hero learns the real why of all this costly save the trees operation It was to save the natives living in the forest Satisfaction for hero and audience Then …. We learn of a new miracle diet pill marketed by bigpharma. …. Wait for it …….

Using gut bacteria from the natives, thanks to collected feces. As accompanying files show, Native where kidnapped for trials. Concluded that only forest food and conditions would secure production. Thus the military intervention. The end

Leave a comment

My 3D designs

I share them on Thingiverse

https://www.thingiverse.com/jeronimobenbattoun/designs

 

So far, propellers to create soap bubble, a mold for (big) sushis, a smal-to-big bit adapter for screwdiver

ecfobwgxoaanib7

 

 

 

Leave a comment

First STL design

Been playing with Fusion360.

Done a link that should help with your usb keys laying around.Capture

Print several, assemble them. Nail the first on the wall

Download here

Warning : not tested as I aint got no printer yet

Leave a comment

[SOLVED] Cheap CH340g-based Arduino Nano clones not detected/cant upload

I have spent a few hours trying things and looking for answers about why two brand new Nano clones were not detected on two computers with three OSes (2 Mints with != kernels, and windows 7).

First thing first, I guessed it could be a cable problem.
Well, boards were on, connected my old G1, had a notification.
Cable was presumed OK.

I looked for fancy drivers. Found a 341SER driver for Linux, with kernel up to 3.13.
Uh oh. Problem. However, I worked with a third nano on those pcs. So except if there was a regression in the kernel, it should “logically” work a year later.

I read many pages, found the windows driver installed it. No success.

I’ve read that using a USB3 port may damage the Nanos. To be verified.

I have updated the kernel on a pc to 5.1, to test on 4.x and 5.x kernels.

And of course, I have tried a lot of combinations in the IDE for board/chip/programmer

I’ll stop here the list of everything I tried.

IN THE END, IT WAS THE CABLE !

Using Nano model in the IDE does not work, I am getting

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x00

 

I use : Arduino Duamilanove ou Diecimila , Atmega 328P, AVR ISP

TODAY, the cables box 1 (I have  2) where I store “cables that can be useful someday” was INDEED useful.

Do not underestimate the mighty issue-solving powers of the cables box (and double checking).

Leave a comment

Neo4j Book

b05824_cover

 

You can find my book on the editor’s site

Learning Neo4j @ Packt or on many merchant websites

 

 

Leave a comment

Importing France into Neo4j

Abstract: importing data from several CSV files into Neo4j, with periodic commit.

This post is about a dataset provided by La Poste and IGN, that contains addresses and coordinates for ALL postal addresses in France.
It is also a lot of CSV files.

French readers may already have read how to do it in GNU/Linux Magazine France n°187
However, at the time, I did it only for one file, for Paris

As I need to import all parts of France, I tried to use a list of files

WITH ['file:///BAN_licence_gratuite_repartage_01.csv','file:///BAN_licence_gratuite_repartage_02.csv', .... ]
AS frfiles
UNWIND frfiles AS lefile
USING PERIODIC COMMIT 10000
LOAD CSV WITH HEADERS FROM lefile AS ligne FIELDTERMINATOR ';'
MERGE (ou:Endroit {id: ligne.id})
......

Unfortunately, USING PERIODIC COMMIT 10000 is marked as an error.
I presume this is not allowed by the grammar.
So I had an issue and no periodic commit.

So I took the option to create one big file.
This brings at least another issue: the repeated headers

Sed allows to get a file content bar its first line.

Here is my script.

Feels free to reuse/adapt it in a similar context.
There might be another more clever way. Anyway, this solved my issue.

#!/bin/bash
head -1 BAN_licence_gratuite_repartage_75.csv > ALLBAN
#init dest file with header from ANY csv input

for file in `ls BAN*.csv`
do
 echo processing $file
 sed '1d' $file >> ALLBAN
done

mv ALLBAN BAN_France_Entiere.csv

# sed '1d' removes the first line
Leave a comment

Health reco

Guys,

If you are above 40 and are coding for a living, then you might be concerned.

If you are not a sports freak even more.

Go see a cardiologist, this may save your life, or make a difference between you being present at your kids marriage or not (provided they invite you).

Leave a comment

Nexus5​ && hidden photos 

Well, well, well, here’s the context:

I look pix with my N5 and there is no Camera folder in the DCIM folder when I plug it into my laptop, running Ubuntu

So, for the sake of not searching too long next time, here is the magic command
adb pull /storage/self/primary/DCIM/Camera
It did not work with storage/emulated

Leave a comment

New article 2 be published

And yet another pack of words Will make it to the kiosks.

My article on Neo4j will be published in the september issue of the French Linux Magazine.
Seems so far

So proud

Leave a comment

Continuous democracy

Today again, yet another foolish decision taken by vote of a small group of elected people.
The immunity of a senator is not suspended although involved in a case of buying votes.

Laughable but true thus brings the tears on our dying democracy.

This is not fundamentally bad.

I dream of a time when adults will be involved daily in their communities: proposing solutions, debating, voting

Getting rid of an overweight political class.

This is possible. We have the tech bricks for that.

Wouldn’t it be nice to create a system to be put in place when a people removes a dictator.

Insert token, read polls, read arguments, vote.
For local stuff, surrounding area stuff, national stuff
Hopefully international stuff someday.