Bird Spring

20.02.2016 by Michael

Testing springs on our lasercutter. This is an 8-bit hand flipping the bird.

Bird_Spring

Files on Thingiverse.

Juniorlab Berlin

20.02.2016 by Michael

For the second time we participated as mentors at JuniorLab 2015 in Berlin. Our team was showing kids how to build their own input device based on the hardware configuration that’s part of our current okinesio prototype. The working module was then used as a trigger for music samples and as a game controller.

okinesio – an open and secure activity tracking platform

20.02.2016 by Michael

The main concern about commercial activity trackers from companies like Fitbit, Sony, Polar, Garmin and others is that users don’t own their data and they don’t have control about how their data is used by the companies. That’s why we started developing an open hardware and open source alternative: okinesio.

http://okinesio.org

okinesio_logo

pcb-comp_02_small

okinesio_robo_vis

Humble Bundle Bookmarklet

14.05.2015 by Michael

I’ve got too much Humble Bundles. Especially with books it’s simply impossible to download them all. Browsing and downloading online doesn’t work well either.

Today i purchased the Humble Make: Book Bundle. Currently it consists of 13 books in 3 formats (PDF, Mobi, EPub). That’s 39 clicks to download.

HumbleBundleLinks_01

Thus i wrote a bookmarklet to extract all the download links. Simply copy / paste the links into the downloader of your choice (wget, jDownloader, Synology DownloadStation, …).

How does it work?
1. In Firefox right-click on your Booksmarks Bar- Select “New Bookmark”
2. Name: “Humble Links”
3. Location: <Paste the Javascript code below>

HumbleBundleLinks_02

4. Go to the download page of your bundle
5. Click the bookmarklet
6. A window opens with the links to the media
7. Copy / paste the links into the downloader of your choice

All links:
javascript:var a = "";
$("a[data-web]").each( function( index, element ){
a += $(this).attr("href") + "</br>";
});
w=window.open('','Links','scrollbars,resizable,width=1234,height=600');
w.document.body.innerHTML = "";
w.document.write(a);

All .pdf:
javascript:var a = "";
$("a[data-web][href*='.pdf']").each( function( index, element ){
a += $(this).attr("href") + "</br>";
});
w=window.open('','Links','scrollbars,resizable,width=1234,height=600');
w.document.body.innerHTML = "";
w.document.write(a);

All .mobi:
javascript:var a = "";
$("a[data-web][href*='.mobi']").each( function( index, element ){
a += $(this).attr("href") + "</br>";
});
w=window.open('','Links','scrollbars,resizable,width=1234,height=600');
w.document.body.innerHTML = "";
w.document.write(a);

All .epub:
javascript:var a = "";
$("a[data-web][href*='.epub']").each( function( index, element ){
a += $(this).attr("href") + "</br>";
});
w=window.open('','Links','scrollbars,resizable,width=1234,height=600');
w.document.body.innerHTML = "";
w.document.write(a);

In the long term i would like to see a syncing feature from Humble Bundle.

Next power of two in Processing

20.04.2015 by Michael

If you’ll ever need the next power of two of a number in #Processing:

int next = (int)pow(2, ceil(log(n) / log(2)));

http://stackoverflow.com/a/17379122

Drosselt da jemand?

17.04.2015 by Michael

tl;dr: Die Arte Mediathek ist über den Telekom DNS langsam, über den Google DNS normal schnell.

 

Seit ein paar Wochen kann ich die Arte Mediathek nur noch mit Modemgeschwindigkeit nutzen. Das Konzert mit Chilly Gonzales lädt z.B. mit knapp 50 kb/sec. Das dauert gut 8 Stunden bei 1.45GB.

Das Problem haben auch andere. Es gibt einen längeren Thread auf arte.de (Das Bild ruckelt beim abspielen), in dem die arte-Mitarbeiter regelmäßig antworten, das daran gearbeitet wird. Sie verweisen auf eine Testseite, mit der man Browser und Verbindung testen kann: http://configtest.arte.tv/#de

arte_config_test

An meinem DSL Anschluss scheint es nicht zu liegen. Der T-Online Speedtest zeigt für meinen Anschluss passable Werte. 13,94 Mbit/s.
DSL_Speedtest


 

Wenn ich als DNS Server den von Google (8.8.8.8) in den System Preferences von OS X eintrage, dann lädt das Konzert von Chilly Gonzales auch schnell!
(Über VPN übrigens auch.)

Scheinbar liefert der T-Online DNS einen anderen Server als der von Google:

DNS Server: 217.0.43.177 (T-Online)
Name: artestras.vo.llnwd.net
Address: 87.248.217.253

DNS Server: 8.8.8.8 (Google)
Name:    artestras.vo.llnwd.net
Address: 87.248.221.254

Update: Nicht nur die letzte Zahl unterscheidet sich. Auch die dritte Stelle.
T-Online: 87.248.217.253
Google: 87.248.221.254


Traceroute zeigt das man abhängig vom verwendeten DNS bei einem anderen Server rauskommt.
Telekom DNS: ve5.fr3.frf.llnw.net
Google DNS: tge1-3.fr4.par.llnw.net

traceroute artestras.vo.llnwd.net
traceroute: Warning: artestras.vo.llnwd.net has multiple addresses; using 87.248.217.253
traceroute to artestras.vo.llnwd.net (87.248.217.253), 64 hops max, 52 byte packets
 1  fritz.box (192.168.178.1)  4.854 ms  2.307 ms  2.914 ms
 2  87.186.224.136 (87.186.224.136)  33.046 ms  21.533 ms  19.431 ms
 3  87.186.196.250 (87.186.196.250)  21.334 ms  29.100 ms  22.587 ms
 4  217.239.39.26 (217.239.39.26)  23.222 ms  23.137 ms  23.116 ms
 5  80.156.163.178 (80.156.163.178)  30.860 ms  37.566 ms *
 6  ve5.fr3.frf.llnw.net (69.28.172.105)  31.426 ms  32.228 ms *

 

traceroute artestras.vo.llnwd.net
traceroute: Warning: artestras.vo.llnwd.net has multiple addresses; using 87.248.221.254
traceroute to artestras.vo.llnwd.net (87.248.221.254), 64 hops max, 52 byte packets
 1  192.168.178.1 (192.168.178.1)  1.429 ms  1.389 ms  1.182 ms
 2  87.186.224.136 (87.186.224.136)  19.631 ms  19.814 ms  19.343 ms
 3  87.186.196.254 (87.186.196.254)  25.084 ms  28.825 ms  22.290 ms
 4  f-ee5-i.f.de.net.dtag.de (62.154.14.246)  23.072 ms  40.082 ms  24.064 ms
 5  80.156.163.182 (80.156.163.182)  31.605 ms  32.852 ms  30.741 ms
 6  tge1-3.fr4.par.llnw.net (69.28.172.101)  35.035 ms  33.565 ms  35.642 ms

Woran das nun liegt und ob Arte oder die Telekom daran schuld sind kann ich nicht sagen. Nach dem Drosselkom Skandal richten sich die Augen aber zuerst auf die Telekom. “Told you so”.

Update 18.04.2015:
Winki hat ähnliche Probleme bei 1&1
Und er schreibt, das die meisten öffentlich-rechtlichen Mediatheken den CDN Limelight in den USA nutzen. Na Bravo.

Final Update:
Alles wieder ok. ¯\_(?)_/¯

wput: Upload to FTP subdirectory

23.08.2014 by Michael

Uploading a file via wget to a FTP subdirectory without mentioning the absolute path didn’t work.

$f = /home/my/files/image.jpg
wput -B -v –basename=/home/my/files $f ftp://user:password@192.168.0.222/images/

Logging in as user … Logged in!
==> CWD images/
==> TYPE I … done.
==> SIZE /image.jpg … failed.
==> PASV … done.
==> STOR /image.jpg … Send Failed (/image.jpg: Permission denied.) Skipping this file

It seems wput needs the absolute path name on the FTP server.

ftp://user:password@192.168.0.222/images/image.jpg

basename does the trick. It strips the path from the passed absolute url.

$f = /home/my/files/image.jpg
wput -B -v –basename=/home/my/files $f ftp://user:password@192.168.0.222/images/$(basename $f)

¯\_(?)_/¯ running through all installed fonts via #Processing

02.08.2014 by Michael

¯\_(?)_/¯

yumad_emoji
http://www.openprocessing.org/sketch/156356

Convert x3db to obj

19.07.2014 by Michael

Yvonne describes a quick way to convert x3db files from Shapewys’ 2D-to-3D tool to obj via InstantPlayer’s aopt:

aopt -i test.XXX -e test.obj
https://github.com/x3dom/x3dom/issues/263

Facedetection: Clones in Aldi’s ads (Photoshop Desaster)

20.04.2014 by Michael

I saw Aldi’s (german grocery chain) ad on the last Süddeutsche Jetzt magazine and wondered if they’ve got the approval of all the people / employees on the image. Then i recognized that they are not that many. Because it’s just some people photoshopped all over the seats. Picasa and Processing helped me to analyze the image and find duplicate images.


aldi_klone

aldi_klone_closeup
(Image Aldi Süd, Süddeutsche Jetzt)
Link to the Brochure

Statistic:
aldi_klone_statistik

Some people are up to 9 times on the image. And could only recognize the first 9 rows.