Skip to content

Instantly share code, notes, and snippets.

View klonk's full-sized avatar

Juraj Hamornik klonk

View GitHub Profile
@klonk
klonk / gist:3369924
Created August 16, 2012 12:55
Kindle flash error
ubuntu@ubuntu:~/Desktop/k3flasher$ sudo ./k3flasher mx35to2_mmc.bin info
W: cannot find device (is it in USB loader mode? are you root?) - waiting for it..........................
I: success.
I: found suitable device
E: wrong transfer length, wanted to receive 8 bytes but received 4 bytes.
I: above error can be ignored, it's due to the device being in ROM kernel mode
I: RAM kernel should be running now. Trying to re-open device: .
I: got it.
I: read info
E: wrong transfer length, wanted to receive 8 bytes but received 4 bytes.
merge::[(Int,Int)]->[(Int,Int)]
merge xs = [(c,d)| (c,_)<-xs , d <- [sum ( [z| (c,z)<-xs])]]
klonk@qip.ru (21:06:42 11/06/2012)
:) a chcem , aby ked mam dvojcu , tak pre kazde to c vo dvojici , mi spocitalo vsetky prvky z druheho
klonk@qip.ru (21:07:19 11/06/2012)
[(1,2),(1,6),(2,8)] = [(1,8),(2,8)]