dotmana.com

Ce site n'est pas le site officiel.
C'est un blog automatisé qui réplique les articles automatiquement

Update

Updating database... Please wait.

Mes trouvailles du jour : 25 April 2016

Monday 25 April 2016 at 21:00

flattr this!

Source: http://www.dotmana.com/weblog/2016/04/mes-trouvailles-du-jour-25-april-2016/


Mes trouvailles du jour : 11 April 2016

Monday 11 April 2016 at 21:00

flattr this!

Source: http://www.dotmana.com/weblog/2016/04/mes-trouvailles-du-jour-11-april-2016/


Kobo Glo/HD enable without registering or account

Wednesday 6 April 2016 at 13:41

Mount the device by USB, right click “open on terminal”

[code language="css"]
echo "insert into user values('foo', 'foo', 'foo', 'foo', 'foo','foo','foo','foo','foo','foo','foo','foo','foo');" | sqlite3 .kobo/KoboReader.sqlite
[/code]

Eject the device, and voilà!

What the heck, I want an ebook, not registering!

flattr this!

Source: http://www.dotmana.com/weblog/2016/04/kobo-glohd-enable-without-registering-or-account/


Mes trouvailles du jour : 5 April 2016

Tuesday 5 April 2016 at 21:00

flattr this!

Source: http://www.dotmana.com/weblog/2016/04/mes-trouvailles-du-jour-5-april-2016/


Mes trouvailles du jour : 7 March 2016

Monday 7 March 2016 at 21:00

flattr this!

Source: http://www.dotmana.com/weblog/2016/03/mes-trouvailles-du-jour-7-march-2016/


Mes trouvailles du jour : 2 March 2016

Wednesday 2 March 2016 at 21:00

flattr this!

Source: http://www.dotmana.com/weblog/2016/03/mes-trouvailles-du-jour-2-march-2016/


Mes trouvailles du jour : 1 March 2016

Tuesday 1 March 2016 at 21:00

flattr this!

Source: http://www.dotmana.com/weblog/2016/03/mes-trouvailles-du-jour-1-march-2016/


Mes trouvailles du jour : 15 February 2016

Monday 15 February 2016 at 21:01

flattr this!

Source: http://www.dotmana.com/weblog/2016/02/mes-trouvailles-du-jour-15-february-2016/


USB connected digital multimeter and graph plotting (UNI-T UT61E and sigrok)

Saturday 13 February 2016 at 12:36

Ever wanted to have nice plot (U/I curve, whatever) simply plotted?

I got 2 UNI-T UT61E with USB cable (50€ each)

With sigrok you can easily get data from many device with a single command:

sigrok-cli –driver=uni-t-ut61e:conn=BUS.DEVICE -O analog  –continuous

Where BUS and DEVICE is replaced with the output of lsusb

lsusb
Bus 002 Device 002: ID 8087:8001 Intel Corp.
Bus 003 Device 086: ID 1a86:e008 QinHeng Electronics HID-based serial adapater
Bus 003 Device 087: ID 1a86:e008 QinHeng Electronics HID-based serial adapater

In my case, as I’ve 2 devices, so 2 different commands are used:

sigrok-cli –driver=uni-t-ut61e:conn=3.86 -O analog  –continuous

sigrok-cli –driver=uni-t-ut61e:conn=3.87 -O analog  –continuous

 

But what about logging in the same file the two ouputs simultaneously?

Here comes the magical function: paste and joined pipe:

paste <(sigrok-cli –driver=uni-t-ut61e:conn=3.86 -O analog  –continuous) <(sigrok-cli –driver=uni-t-ut61e:conn=3.87 -O analog  –continuous) > measure.csv

 

I’ll let you deal with the uber simple csv processing with octave or libreoffice calc (mV, mA range condition, etc…), as this blog entry is mainly used as a personal notepad.

 

Note: if you have trouble connected with sigrok, with an error. You may need to disable the power feature, with the script pointed by blog.philippklaus.de

#!/bin/bash
# see http://www.erste.de/UT61/index.html
for dat in /sys/bus/usb/devices/*; do 
  if test -e $dat/manufacturer && grep -q "WCH.CN" $dat/manufacturer; then
    echo "Suspending ${dat}."
    echo auto > ${dat}/power/control
    echo 0 > ${dat}/power/autosuspend 
  fi      
done

flattr this!

Source: http://www.dotmana.com/weblog/2016/02/usb-connected-digital-multimeter-and-graph-plotting-uni-t-ut61e-and-sigrok/


Mes trouvailles du jour : 12 February 2016

Friday 12 February 2016 at 21:00

flattr this!

Source: http://www.dotmana.com/weblog/2016/02/mes-trouvailles-du-jour-12-february-2016/