IRC log of #maemo-meeting for Tuesday, 2016-02-16

*** povbot has joined #maemo-meeting09:44
*** qwazix has quit IRC13:11
*** qwazix has joined #maemo-meeting13:22
*** qwazix has joined #maemo-meeting13:22
*** jskarvad has joined #maemo-meeting15:41
*** Pali has joined #maemo-meeting18:37
*** jskarvad has quit IRC19:41
*** Win7Mac has joined #maemo-meeting22:09
Win7MacHi!22:10
Win7MacMeeting... anyone?22:11
juicemeWin7Mac, hi!22:17
juicemehow's things?22:17
Win7Machi juice22:17
Win7Macok I'd say22:17
Win7Macand you?22:18
juicemebetter, but still with the flu22:18
juicemecoughing, no fever22:18
Win7Macget well soon then22:18
juicemehope so, it has been well over a week now with this22:19
Win7Machave you senn last weeks log?22:19
Win7Machttp://mg.pov.lt/maemo-meeting-irclog/%23maemo-meeting.2016-02-09.log.html#t2016-02-09T22:47:1022:19
juicemeyes, did read it22:20
juicemeI sent the mail peterleinchen had lost back to him22:20
Win7Mactopicsgreat22:20
Win7Mac*great22:21
juiceme:)22:21
Win7Maci mean thanks for resending22:21
juicemeyes, the checksums for files need to be available in a known-good location.22:22
Win7Mac+122:23
reinobhi there22:30
Win7Machi reinob!22:31
juicemereinob, hi!22:31
Win7Machope at least you are doing well22:31
reinobyup, why not? :)22:32
reinobpeterleinchen around?22:33
juicemenope, not seen him yet22:33
*** peterleinchen has joined #maemo-meeting22:41
*** peterleinchen is now known as Guest1043422:41
juicemepeterleinchen, hi!22:44
*** peterlein has joined #maemo-meeting22:55
peterleinhi next try22:55
peterleinsomeone still here?22:55
reinobyes :)22:56
Win7Machi peter22:56
peterleinhello22:56
juicemehi22:56
peterleinanother hello22:56
peterleinhad some weird irc behaviour ...22:57
reinobis your nick taken by somebody else?22:57
juicemehappens, especially if you are on mobile22:57
peterleinjuiceme, thanks for te mail22:57
juicemenp22:57
peterleinreinob, seems so22:58
reinobyou don22:58
peterleinjuiceme, orly22:58
reinobyou don't use a bouncer, I guess22:58
juicemereinob, what happens to me if I get for example thrown off my nick by a netsplit or something, it will default to "Guestxxx" and I cannot gain ack my nick for maybe 30 minutes or so22:59
peterleinused by myself prolly22:59
reinobOK22:59
reinobI guess I'm not so often here to experience a netsplit. I have znc running and it uses sasl to authenticate directly when joining23:00
juicememmh, anybody done any AES-cipher implementation lately, prefereably in javascript?23:00
reinobjuiceme: no, I just looked in my pockets but only found 3DES ;-)23:00
juicemeI am totally baffled by just why I cannot make it work... am trying to set up a link between nodejs backend and a client script running on a browser, pretty trivial stuff; comms thru websocket23:01
juicemefirst tried different codebases for client&server, didi not work.23:02
juicemenow I have exactly the same code running on both ends and still I get only gibberish thru23:02
reinobmany years ago I made a conscious choice not to learn js or java or php. So far I stick to that decision :)23:02
juicemereinob, you need to keep up with times :p23:02
reinobbut K&R C still rocks :)23:03
juicemethe nicety of nodejs is you can run the same shit in server & client :)23:03
juicemetry that in c23:03
reinobthe question is why you'd run the same on the client and on the server.. :)23:04
juicemebut of course I know the limitatons; in functional languages you can get yourself in a state you'd never try to go in procedureal languages in the first place :)23:04
reinobfunny, functional languages should not have "state" :))))23:05
juicemeit is obvious, isn't it? if you run same code in both, your data structs work in both without conversins..23:05
juicemeheh, was referring to state-of-mind, more or less23:06
juicemecannot escape that even with js23:06
reinobyup I know. Just kidding23:06
reinobre. data structs: I'd always prefer some text/dialog-based exchange, ala telnet & co.23:07
juicemebut yes, i have done c since the eighties, and now nodejs for about an year23:07
reinobwhen I hear the word "serialization" and "marshalling" and such I get shivers23:07
juicemeand of course you get excited by new toys23:07
reinobor json! :)23:07
juicemejson is pretty wonderful :p23:08
juicemeserialization... well did come across that first time in a MSFT context... yes, *shivers*23:09
juicemebut that's really 'cos they do all serialization in crazy-bloated-nonconformist-way in MSF classes23:10
juicemejson is absolutely beautiful compared to that shit23:10
reinobI may some day have look at nodejs and give it a try23:12
juicemehmm maybe I should try it other way around to see if it fails then too... now am sending a ciphered messahe from server to browser domain23:12
juicemeyou should, if you have free time to tinker with something...23:12
juicemesee, the nicety is that there already are just about zillion npm modules you can use to do just about anything23:13
juicemeso it is easy to implement small script that does a LOT of stuff23:14
reinobI have a question re. referendium preparation (swearfilter and/or council extension)23:19
juicemeyes23:19
reinobcan I put the stuff in the database without fear that some script will automatically start sending e--mails or doing stuff without my control?23:20
reinobi.e. can I (we) trigger the process when I/we are sure that all the database bits are OK=23:21
juicemewell, yes unless you trigger it yourself :)23:21
reinobOK23:21
reinobso no cron script messing around23:21
juicememore or less.23:21
juicemeyou need to know this about email sending;23:21
juicemethere exists a cronscript that does it23:22
juicemeand it does read the DB automatically.23:22
juicemejust be careful you do not input stuff in *that* table23:22
juicemejust a moment I check what was it again23:23
reinobthx23:23
juicemeit's the "outbound_email" table in maemoelections DB23:25
reinobOK I put it in my notes23:25
reinobthank you23:25
juicemeany stuff put there will trigger the cronmailer23:25
juiceme:)23:25
reinobI will prepare all statements on a text file and send them to you for review and/or questions23:27
reinobhopefully before next meeting (weekend or so).23:27
juicemethanks, that'll do23:27
juicemedamn.23:28
reinobthe editing of maemo.org will take some time (i.e. until I have the time).23:28
reinobwhat?23:29
juicemetested the other-way-around23:29
juicemestill getting garbage23:29
juiceme:(23:29
reinobserver-client23:29
reinobOK23:29
juicemeyes, and now from client-to-server23:29
juicemecorrupted both ways23:29
juicemeand I have exactly same key, printed it out23:30
reinobI'm not sure I could help, and the latency is killing me.I can barely type without typos, so I'll probably leave soon23:30
juicemeI have no idea what's happening here23:30
juicemerighto, you on mobile too?23:30
reinobthe router goes crazy when live TV also on (also via Internet). BW is fine but latency suffers. Some QoS/priorization crap23:33
reinobhappens every now and then23:33
juicemeah, okay23:34
juicemeI knew there's a catch in these internets the TV companies sell to people :)23:34
reinobwith 16Mbit it worked perfectly. with 25Mbit latency suffers. Now the TV is off but still the router acts weird. Or maybe it's the provider. Pinging google takes 1000ms when (if) the packet actually comes back23:36
reinobnormally it's like 40ms23:36
juicemecrazy latency, yes23:36
juicemethis is just unbelivable, ran another test23:37
reinobcould be the WLAN but I'm not checking now. It's so random that I never can quite test it properly23:37
reinobanyway23:37
juiceme(btw nice thing with javascript, just edit&run, no compiling needed...)23:37
reinobtime to go to bed anyway23:37
reinob:)23:38
juicemewhen I encrypt something in server, and then decrypt it --> beautiful23:38
juicemewhen I encrypt something in client, and then decrypt it --> beautiful23:38
juicemewhen I encrypt something in server, send it to client and decrypt it there --> garbage23:38
juicemewhen I encrypt something in client, send it to server and decrypt it there --> garbage23:39
reinobtry to send the data unencrypted?23:39
juicemeit works23:39
reinobmaybe its some trivial byte swapping (endianness?)23:39
juicemeI check the sent and received data is same23:39
juicemekey is same23:39
reinobthe actual encrypted data is the same?23:39
juicemesomething like that, but the bloody code is same and it is js all the wayt thru...23:40
juicemeyes23:40
reinobbut decrypting produces garbage?23:40
reinobweird23:40
Win7MacNSA!23:40
juicemewell not exactly23:40
juicemesince every time you encryt the same data with same key, the ciphertext is different of course23:40
juicemethat is why it is called "counter mode"23:41
reinobbut maybe that's it. try just one block, so you don't have to worry about CBC, counter or whatever23:41
juicemebut yes, how I do it is I cipher a block of text, send the result to other end and decrypt it in both ends a the same time23:42
juicemelocal decrypt works, remote does not23:42
juicemehmm yes could do that23:42
reinobyeah because you probably use a different counter!23:43
juicemethere's also "code-book-mode", when every time same cleartext block produces same ciphertext block23:43
juicemeno, the beauty of the CTR mode is that the counter is embedded in the ciphertext block :)23:44
reinobbut there must be some nonce/IV23:44
juicemeI mean, if it wasn't so, how would you communicate between different parties23:44
reinobis that also in the ciphertext?23:44
juicemeand also, kind of cehcked that thing also; when I start the program again and input a CTR block from previus run, it will decrypt correctly :o23:45
juicemethe counter? yes, embedded there23:45
juicemeit's like; if you encrypt the same cleartext 10 different times, you get 10 different ciphertexts; however each of them decrypts back to the original cleartext with the same key :)23:47
juicemeand I already tested it works correctly, just like that23:47
juicemeonly when I try to decrypt the same blocks in "the other system" it fails23:48
juiceme:(23:48
juicemeahh, I guess I'll go to sleep on it now23:48
juicemetoo much headbanging and I just am not going forward with this now....23:49
juicemeso , gnite!23:49
Win7Macgnite23:50
*** Win7Mac has quit IRC23:50
reinobgood night23:50
*** peterlein has quit IRC23:54

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!