libera/#maemo/ Wednesday, 2018-06-13

sunshavi   Hi there03:57
sunshaviis there a way for sending files by bluetooth from command line on n900?03:57
sunshaviobexftp?03:57
sunshavior python script?03:57
jonwilI DID IT.04:07
jonwilI got TLS1.2 support into QT 4.7.4 on Maemo!04:07
Vajb\o/ nice jonwil04:40
jonwilJust need to finish uploading things :)04:41
Vajbwill it be in repos when you get it ready?05:00
Oksanajonwil : Great :-) Fahrplan, right? Remind me to try it - I call 131500 from time to time, and it would be nice to have the app working instead of voice-calling every time a bus runs late.05:00
Vajbi mean the ff2405:00
OksanaWill Gtk+Hildon apps benefit from TLS1.2 support in openssl? I often see MicroB complaining about lack of common encryption algorithms on https:// websites.05:02
jonwilmicrob doesn't use openssl at all05:06
jonwilff24 is a long way from being done05:07
jonwilOksana: I have no idea about the working of the 131500 parser but its not using SSL by the look of it.05:12
OksanaAll the better, in the sense that I don't need to think about update reaching repositories. Installing Fahrplan now...05:12
jonwilWhich Fahrplan version are you going with then?05:14
Oksana0.0.3705:16
jonwilYeah that should be fine for 13150005:16
* Oksana wonders what is Translink - Australia05:18
jonwilAs for OpenSSL and other apps, things need to be recompiled and link to OpenSSL 1.1 to get TLS 1.2 support in there05:18
jonwilTranslink is the network I use05:18
jonwilthe one I added05:18
jonwilQLD05:18
OksanaAh, okay. I was wondering about Melbourne, will be travelling here for a day or three in July. Hopefully. If everything goes well.05:18
OksanaBut I will most likely be walking more than anything else.05:19
* Oksana doesn't think that "launch GPS on start up" is working05:22
jonwilI went to Melbourne in 2010 for a LEGO show, it was fun and I would like to go back05:22
jonwilYeah GPS isn't always working for me05:23
jonwilAnd I haven't been able to debug why05:23
OksanaThrobber animation is nice, but no idea how to provide a valid station. It always says "Station not found"05:23
jonwilNSW wasn't written by me05:23
jonwilso I have in idea why its not working05:24
OksanaHmm... Link to code? Would like to have a look...05:24
OksanaC++ , right? Going by parser131500ComAu::getStationsByName05:25
jonwilYeah its C++05:25
* Oksana is rusty, but could at least look for something05:26
jonwilhttps://github.com/jonwil/fahrplan/ has the current code05:28
jonwilMy guess is that whatever backend URL NSW is using has changed and its no longer compatible05:29
* Oksana sighs and goes to log in to GitHub05:36
OksanaIt's not 131500.com.au anymore, it's TransportNSW.info, and it doesn't care about am or pm05:37
jonwilOk so it looks like it needs a change to the URL its using05:37
OksanaA solid change. Let me see...05:38
OksanaIt doesn't have separate variables like &itd_itdTimeHour for Date, Hour and Minute - it just has &dateTime=20180613134005:38
* Oksana is forking this file, to submit pull request later. Hopefully.05:41
jonwilIf you come up with a fix, I will push a new deb file (since I imagine you probably dont have a dev environment :)05:43
OksanaWould be nice, thank you :-) I just hope there isn't too much to change05:46
jonwilIts not hard to build a new deb for Fahrplan05:48
jonwilAlthough needless to say the new deb I build will need the new QT and new OpenSSL :)05:48
Maxdamantus05:49
Oksanatransportnsw.info seems to use https. While 131500.com.au used to be http. Would     http->setHost(url.host(), QHttp::ConnectionModeHttp, url.port() == -1 ? 0 : url.port()); work still?05:53
OksanaOr do I need to change to     http->setHost(url.host(), QHttp::ConnectionModeHttps, url.port() == -1 ? 0 : url.port()); ?05:53
OksanaDarn... Is html parsing really the ideal way to handle results of the journey request?06:01
* Oksana looks around for a better API, while simultaneously attempting to decode large amount of nested divs06:16
* Oksana curses quietly06:26
OksanaJSON is a far better way for an app to receive results from transport website, compared against bulky HTML. However, this json uses ancient formatting of the URL, which means... Lots of Ctrl+Z06:27
jonwilNo idea06:34
jonwilI dont know how the website for transportnsw works06:34
jonwilAs for SSL, take a look at what I have done in parser_translink.cpp to see how I did it.06:35
jonwilhttp://talk.maemo.org/showthread.php?p=1545412#post154541206:35
jonwilNew fahrplan with the working Translink backend06:35
jonwilhttp://talk.maemo.org/showthread.php?t=100352 is the new QT06:35
OksanaAny idea how to send header with https link? For authentication?06:36
jonwilHave a look at how I did it via QHttpRequestHeader06:46
* Oksana nods and thinks that Translink, thankfully, also has json06:47
jonwilYes it does json parsing06:48
brolin_empeyIs there an intentional connection between Steve Jobs reportedly owning an air-cooled vehicle (Volkswagen Type 2) and wanting to avoid use of a fan in the computers sold by his company (Apple Computer Inc.)?07:44
OksanaFans are noisy, dusty, and require maintenance.07:45
OksanaWhat's the difference between GET and POST, when using QHttpRequestHeader ?07:46
jonwilPOST is for when you have data to attach (i.e. form post data)07:48
jonwilWhich one you use depends on what the site itself needs07:48
jonwilIf you have a browser with a web developer toolbox or something, you could sniff the connections being made and see whether its using get or post...07:49
brolin_empeyA fan can be inaudible and not require maintenance for the expected service lifetime of the device containing the fan.07:49
OksanaSite says "curl -X GET --header 'Accept: application/json' ..."07:49
OksanaFan doesn't sound like it's waterproof, or foolproof07:50
brolin_empeyIs not a propeller basically a fan that moves water instead of air?07:51
brolin_empeyI mean on a watercraft, not an aircraft.  I thought it is at least somewhat analogous.07:52
OksanaYes, but then you need to waterproof/insulate the connection between fan-chamber (exterior, air or water or dust) and interior (PCB and electricity), while still having excellent heat conduction.07:52
OksanaOtherwise, it does sound interesting - a lighter-than-water laptop which can use its fans for propelling itself in the water.07:53
OksanaOr phone ^07:53
OksanaBut then fan would need gears for switching between air and water. Because these two liquids are quite different.07:54
Oksanafluids *07:54
jonwilIts great to have the current OpenSSL release running on Maemo Fremantle07:55
jonwilAlthough the idea that someone had a while back to produce a shim library to map 0.9.8 to 1.1.0 isn't really possible.07:56
brolin_empeyI wonder if Rudolf Diesel used a motorcycle because his motorcycle would be a Diesel motorcycle in a sense.07:56
jonwilNot sure which of the closed packages that are linking to the old OpenSSL present a security risk and which dont07:57
jonwilSome can probably be dropped without too many people getting annoyed (I doubt anyone is using a N900 to talk to an ActiveSync MS email server anymore...)07:58
OksanaWhat is     loop.exec(); for? I think I got how header works with GET method.08:00
freemangordonjonwil: I am using my n900 for exchange mail08:01
jonwilOk so as-daemon is not obsolete then08:01
freemangordonmhm08:01
OksanaI did use Mail for Exchange (Active Sync?) recently. I am using IMAP now, though. But I still sync with Microsoft-based Calendar and Contacts.08:02
OksanaIMAP works fine (I think), but I was very annoyed when an email I sent from N900 didn't show up in Microsoft-based email's "Sent" folder. It's like, if my N900 breaks down, then I will have no way to see which letters I sent? Why doesn't server keep a copy in "Sent" folder?08:03
jonwilIn any case I have clearly shown that its possible to mix 1.1.0 and 0.9.8 on the one system without any problems.08:04
* Oksana nods08:04
jonwilThe only question therefore is which of the packages linking to 0.9.8 9 (closed or open) represent a real security risk and therefore need to be dealt with.08:04
OksanaThat's what the major version changes are for. Firefox clearly disregards this, since I cannot even remember which Firefox versions are major milestones (like, dropped support for XUL interface, NPAPI plugins, and so on)08:05
brolin_empeyIs TLS truly useful considering that the encryption can be subverted (maybe not the best verb to use) by a government?08:06
Oksanabrolin_empey : How so? Do they need server's agreement (backdoor) for that? Or is it a genuine weakness in TLS algorithm itself?08:06
* Oksana thinks that it would be nice to have GPG-or-something commonly used for emails, but not sure if Modest supports this08:07
jonwilI have yet to see any compromise of the encryption used with TLS or any other major internet security protocol. The weaknesses mostly have to do with the fact that the current model of certificate authorities used for SSL/TLS is totally broken and there isn't much interest from anyone to actually turn the proposals to replace CAs from proposals and presentations snd documents into actual...08:08
jonwil...real-world code...08:08
jonwilSo we end up with bandages on top like public key pinning and other stuff rather than moving away from CAs altogether in favor of something better.08:10
jonwilFreemangordon: Are your clones of connui-internet and connui-wlan complete? Do they contain anything Leste specific or could they work as a drop-in replacement on Fremantle?08:12
brolin_empeyOksana: Plug-ins for the NPAPI use native code, which, for consumer stuff in the 1990s and 2000s, probably mostly means x86 and maybe PowerPC, not ARM.  If you want to use a closed-source plug-in not released for ARM then NPAPI support on an ARM computer, such as the N900, is not useful as far as I know.08:13
jonwilNow that I got Fahrplan going again, the next plan I guess is to keep working on Firefox 24. Unfortunately that's a much trickier job than OpenSSL, QT and Fahrplan was.08:15
brolin_empeyI suspect that part of the motivation to replace NPAPI was because NPAPI plug-ins use native code.08:16
freemangordonjonwil: not 100% sure, but the should be drop-in replacement08:17
jonwilBut are they complete?08:17
freemangordonno eapd and wps08:18
freemangordonthey're replaced with wpa-supplicant08:18
Oksanajonwil : What is loop? I don't understand how loop.exec(); works when there is no definition of loop anywhere. Unless it's a magical keyword, like for and wait and if?08:18
jonwilloop is declared in another file08:18
jonwilparser_abstract.h08:18
freemangordonbut it is Wizzup with the details as he was working in it lately08:18
OksanaHuh, okay. Thank you :-)08:19
jonwilBasically loop.exec will wait until one of the signals is signaled08:19
jonwilThe connect lines in parserTranslink::parserTranslink are part of it08:20
jonwilhttpRequestFinished then causes the loop to stop executing08:20
jonwiland progress returns to the line after the loop.exec statement08:20
freemangordonjonwil: but yes, they are complete, we have working wifi (more or less) on leste with icd208:20
jonwilhttpRequestFinished is also in parser_Abstract08:20
jonwilOksana: if you copy what I have done for Translink and adjust the parameters and URLs and things as appropriate, it should work08:25
Oksanajonwil : Thank you, working on it. Why does https://github.com/jonwil/fahrplan/blob/master/parser_translink.cpp have "bool ok;" in lines 256 and 293?08:26
jonwilProbably just some leftover I forgot to remove08:27
Oksana38363 lines in one json... What is TransportNSW thinking?08:31
jonwilThank god QJson makes it so easy to parse that stuff and grab the values needed08:33
KotCzarny:)08:34
KotCzarnyat least they server that json with compression?08:34
KotCzarny*serve08:34
brolin_empeyOksana: It seems that “encryption” was a poor choice of term.  I meant what jonwil was saying that the infrastructure of TLS has problems.  Well, actually, even if the CA system was replaced by a different system, is not it still possible for a government to require network/service providers to provide access to the government?08:35
OksanaNo idea. It's application/json, interactive example shown in https://opendata.transport.nsw.gov.au/node/601/exploreapi#!/default/tfnsw_trip_request208:35
Oksanabrolin_empey : That's why peer-to-peer would be nice. But then, TLS can be used for P2P, as well, not only for client-server connections?08:36
OksanaIs there a pastebin capable of handling such an amount of data?08:37
bencohOksana: the "issue" isn't p2p vs client-server connections, but p2p trust vs the current star-like "chain" of trust08:38
Oksanabencoh : Yes, current star-like chain of trust is strange. I may trust a website, to an extent, but I have no idea about issues of certificates.08:39
Oksanaissuers *08:40
Oksana{version, systemMessages, journeys: [{rating, isAdditional, interchanges, legs: [{duration, origin, destination, transportation, hints, stopSequence, infos, coords, properties},{}]},{}]}08:50
jonwilIf the systems that have been proposed as replacement for CAs were adopted and if they had good encryption built in from the start, it would be very difficult to get at whatever data is flowing over the pipes even if you were able to somehow obtain the private keys from the server end.08:52
jonwilThe big problem with CAs really is that its possible for any of the many CAs out there to create bogus certificates for websites08:54
jonwiland use them for man-in-the-middle attacks and things.08:54
jonwilA new system that prevented such a thing by more closely tying the certificate/key info to the actual owner of the domain would be good.08:55
KotCzarnythat's the 'authority' part08:56
brolin_empeyKotCzarny: Yes, good point.08:57
Oksana>>  Waiting for your fork… << Brilliant, GitHub.08:58
KotCzarnyoksana: ask for a knife too, just in case08:58
jonwilMany experts have said that the current CA system is broken.09:05
jonwilSome CAs do the right thing and ensure the certificate is legitimate.09:05
jonwilBut many don't necessarily follow the rules. Or they get hacked (DigiNotar anyone?)09:06
jonwilOr you get someone like China forcing a CA in that country to generate certificates for their own nefarious purposes.09:07
OksanaKotCzarny : The same message, still. I think K-Meleon isn't particularly supported by GitHub.09:07
jonwilWhat exactly are you trying to do on github?09:08
OksanaEditing parser_131500comau.cpp. Aka "You’re editing a file in a project you don’t have write access to. We’ve created a fork of this project for you to commit your proposed changes to. Submitting a change to this file will write it to a new branch in your fork, so you can send a pull request. "09:09
* Oksana just went to SeaMonkey09:09
jonwilReplacing CAs with something like DANE or the EFF Sovereign Keys proposal (or the proposals out there for a web of trust where certificates and keys are signed by multiple entities and then your client figures out how trustworthy it is based on who has signed it) would be much better than the current CA system09:10
brolin_empeyjonwil: I was going to mention the “People’s Republic of China” but I did not but now I do not have to.  I do not contract “People’s Republic of China” to “China”, though, because the Republic of China still exists.09:17
MaxdamantusYou mean Taiwain?09:19
brolin_empeyMaxdamantus: Yes, the Republic of China since 1949.09:20
Oksanajonwil : Is "QStringList trains" expected to contain "Train, Bus, Ferry" or "T8, E70, MFF" or "Macarthur to City via Airport or Sydenham, PrePay Only - City Wynyard to Manly (Express Service), Circular Quay to Manly" ?09:30
OksanaGoing by "trains.removeDuplicates();", it's probably "Train, Bus, Ferry", otherwise duplicates would have been unlikely.09:31
jonwilYeah09:31
jonwilIts definitely the mode name09:33
jonwiltravelModeName:"train" is what the JSON for Translink returns09:33
jonwiland that's what the translink code uses to fill in the string array09:33
OksanaProblem is, modes are specified as integers. Which means, I need a... tulip or something to store the 1=train, 4=light rail, 5=bus, and so on, in. And then whichever easy way to convert integer into the word.09:34
OksanaProbably QStringList would work.09:35
OksanaBut numbers aren't sequential. They are 1,4,5,7,9,11,99,100,101,102,103,104,105,10609:35
jonwilQMap is the way to go here09:37
OksanaHow is it different from std::map? https://stackoverflow.com/questions/1910733/how-can-i-map-an-int-to-a-corresponding-string-in-c-c09:37
jonwilIts much the same but since its all being done in QT, QMap makes sense09:37
OksanaQMap<int, QString> modes; ???09:39
jonwilYeah something like that would work09:39
jonwilNSW does have quite a few mode types09:39
* Oksana will continue tomorrow, hopefully. I have no idea whether QMap<QString, int> or QMap<int, QString> is expected here.09:40
jonwilQMap<int, QString> is the right one09:41
* Oksana nods and goes outdoors09:42
jonwilAnyone here any good with Python programming?10:08
WikiwideIn attempt to figure out ssl_error_no_cypher_overlap (shown by both MicroB and Fennec [aka Firefox 17]), I have stumbled upon https://cc.dcsec.uni-hannover.de/ . It's useful for testing a web browser, but how do I know which cyphers are supported by a web server? Say, https://scratch.met.edu/ .12:47
inzhttps://www.ssllabs.com/ssltest/12:47
WikiwideThank you :-)  Testing12:49
inzIf the site is an intranet site, it won't work though, no idea for a tool to do the same12:49
WikiwideNo problem, I don't remember the last time I visited an Intranet site12:50
WikiwideWhat does A+ grade mean?12:51
inzThat they do not support weak ciphers etc12:52
inzclick on the address to se more details12:52
WikiwideMicroB supports TLSv1. Scratch supports TLS 1.0-1.3, not a problem.12:56
WikiwideCipher suites...12:56
WikiwideScratch supports ECDHE RSA with AES, or weak RSA with AES. MicroB supports ECDH, DH, or RSA. The only common point is RSA.12:58
WikiwideMicroB supports RSA with AES 128/256 SHA1. Scratch supports weak RSA with AES 128/256 CBC SHA. Is CBC the crucial difference?13:01
MaxdamantusHm.. is omapfb known to be required to be built-in or something?14:19
Maxdamantuswhen trying to load it as a module in 4.16 I just get "no such device" .. irc I got the same thing in the maemo branch of 3.14 some years ago and fixed it by having it built in.14:20
Maxdamantuss/irc/iirc/14:20
infobotMaxdamantus meant: when trying to load it as a module in 4.16 I just get "no such device" .. iirc I got the same thing in the maemo branch of 3.14 some years ago and fixed it by having it built in.14:20
Maxdamantuser, n900 branch*14:21
* Maxdamantus will probably just try a built-in version tomorrow.14:21
Wizzupmaybe check what leste config does14:25
enycWizzup: i belive, uses the kernel default rx51_defconfig , except oddly i can't see  arch/arm/configs/rx51_defconfig  in the n9xx-linux repo15:14
Wizzuphttps://github.com/maemo-leste/n9xx-linux/blob/pvr-wip-4.15.7/arch/arm/configs/rx51_defconfig15:17
MaxdamantusCONFIG_FB_OMAP2=y15:23
MaxdamantusYeah.15:23
Maxdamantusmainline rx51_defconfig has =m15:23
Maxdamantusactually, no rx51_defconfig in mainline .. using omap2plus_defconfig15:24
parazydFWIW, other configs are here: https://github.com/parazyd/arm-sdk/tree/master/boards/kernel-configs15:26
parazyd(droid4, n9, n950)15:26
Maxdamantusah, so maemo-leste still requires those pvr patches.15:26
MaxdamantusGood to know, thanks.15:27
Wizzupthere is nothing that works without pvr patches :)15:28
Wizzupno powervr*15:28
MaxdamantusWell, plain fb works without it.15:28
Wizzupright, and you can use maemo leste with plain fb and llvmpipe for h-d, but it'll be unusable ;)15:28
* Maxdamantus intends to not use maemo/hildon in the long run anyway.15:29
bencoh(and even more unusable on n900)15:29
bencohMaxdamantus: awww, that's a mean thing to say :>15:29
MaxdamantusI wouldn't use software like that on my desktop systems, so wouldn't want to (ultimately) on my phone either.15:30
WizzupMaxdamantus: good luck :P let me know if you find anything usable15:30
WizzupMaxdamantus: desktop==phone?15:30
bencohWizzup: wmii is okayish on droid4 :D15:31
MaxdamantusWizzup: not exactly ==, but I prefer things to be decoupled.15:31
Wizzupuntil you start to actually use it ;)15:31
bencohportrait wmii is a pain15:31
WizzupMaxdamantus: I think the IT world has been trying to figure this out, so I'm surprise you have :p15:31
bencohlandscape is fine :)15:31
Maxdamantusand I don't need the sorts of fancy graphics you get with HD15:31
Wizzupbencoh: yes, but apps don't work that well in general touch wise15:32
WizzupMaxdamantus: agreed, I don't care about the shaders and effects15:32
MaxdamantusI use xmonad on my desktops, but would rather use something like wmii/w3m on n900 for memory reasons.15:32
bencohWizzup: yeah, real apps still need to be adapted somehow :)15:33
Wizzupbencoh: we've been trying for what, 10+ years?15:33
WizzupI'm sure it'll change overnight :P15:33
bencohWizzup: riight :))15:33
bencohseriously though, wmii in itself is okay as a wm (since you have a keyboard), but yeah, it still misses a whole touch-oriented ecosystem15:34
* Wizzup uses wmii right now15:34
Wizzup(on my laptop)15:34
bencoh(same on my desktop. and laptop)15:35
Wizzupwow, another wmii user ;)15:35
parazydEnjoying your multiple screen support? :p15:39
bencohI have 3 here at work (with wmii) and I must say it's quite comfy :)15:41
parazyd:O15:41
Wizzupbencoh: xinerama?15:49
bencohprobably15:50
bencohat least XINERAMA shows with xdpyinfo15:51
bencohand I don't see how else wmii would work, so ... :)15:52
Wizzupwell, do you have different workspaces per monitor?16:04
bencohnope, I only have several workspaces, independent of monitors16:22
Wizzupbencoh: hm, I can't have wmii display different workspaces on monitors16:32
bencohyou mean, monitor-tied workspaces?16:33
bencoh(ie having a different workspace per monitor?)16:33
Wizzupyes16:33
bencohyeah, that's unsupported16:34
* sicelo also uses ActiveSync dialy .. in fact, it's even a pity that N900 can have only 1 EAS account. I need two19:02
sicelowow, just tested wmii .. i like it very much! have used i3wm too20:38
DocScrutinizer05anybody using KDE5? could you please "switch user" to open a new KDE session and see if the old session keeps internet connection while you're "not there"? you'd likely notice that after some 3 minutes, you lost IRC login here when the old session actually gets disconnected from internet21:03
WikiwideHaven't seen such a problem on KDE4, but then, we haven't got around to KDE5 yet.22:25
DocScrutinizer51solved: allow connection for all users22:58
WikiwideNice :-)23:00

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!