libera/#maemo/ Thursday, 2018-06-14

* Oksana is exploring sawfish window manager on Linux laptop, currently; while idea of tiling is nice, I am not a fan of keyboard-based control. And highly customized window handling sounds... Very interesting.01:25
Oksanajonwil : Do I need to felete filebuffer before exiting function getJourneyData ?01:58
Oksanadelete * filebuffer01:59
OksanagetJourneyDetailsData sounds... complicated.02:10
jonwilJust copy whatever the Translink code is doing02:15
Oksanajonwil : What should getStationsByGPS do : turn longitude and latitude into format readable by trip planner, or retrieve bus/train stops closest to GPS location?03:00
jonwilIt gets the bus stop closest to the GPS location03:00
jonwilIf the nsw site has that function then use it03:00
jonwilOtherwise set the flag to false so the system doesn't even try to use GPS with that backend03:00
* Oksana nods, and proceeds to use NSW site function. Unfortunately, with my chosen location, it doesn't return a bus stop, but either way it's going to work with GPS.03:01
OksanaWhen getting locations by name or GPS... When multiple results are returned... When user is asked to select one of the possible locations/stops... Where do these nice and readable names come from? Because StopID (required by trip finder) is one thing, and human-readable name of bus stop is another03:17
Oksanathing.03:20
OksanaIs it like "NameAkaDescription@LocationId"?04:10
jonwilYeah that's what I did for Translink04:20
OksanaHow does arrivalStation.section('@',0,0) work? I understand destinationStation.section('@',1,1), https://doc.qt.io/archives/qt-4.8/qstring.html#section04:27
brolin_empeyjonwil: I know some about Python but I mostly use it only as a calculator in recent years.04:30
OksanaGot section('@',1,1). The only function remaining is getJourneyDetailsData. Just where does the url come from - no idea. But I can write json handler in, regardless.05:41
brolin_empeyWhen using a spreadsheet as a database, in this case an .xls workbook in LibreOffice Calc, is it possible to get a list of rows in which a certain column has a certain value or even only in which a certain column has a non-blank value?  In a real database, I can simply query something like “SELECT * FROM table_name WHERE column_name CONTAINS (?) keyword;” but can I do something similar with a spreadsheet?05:46
brolin_empeyMy use case: my credit union is changing their credit card provider, which means that my credit card is being replaced, which means that I have to manually update my payment information with all of the merchants who automatically bill this credit card account.  I have a local spreadsheet file containing logins/credentials and other details for most of my accounts.  This spreadsheet, which I use as a database, has a column/field for payment method.  I enter05:53
brolin_empey“MasterCard” in this column/field if I pay with my credit card account.  I want to get a list of all of my accounts where I pay with my credit card account.05:53
jonwilbrolin_empey: I think this is the wrong channel for that question :)05:53
jonwilI dont think LibreOffice can even RUN on an N900 :P05:54
OksanaFreOffice can, and it supports spreadsheets05:57
brolin_empeyjonwil: I think LibreOffice can run on a Nokia N900, especially considering that OpenOffice.org/go-oo can run on an OpenMoko GTA02, which is slower and less capable than the N900.05:58
jonwilIts still not the right place to ask about LibreOffice, the right place would be #libreoffice (which does exist)05:59
Maxdamantusbrolin_empey: convert to CSV and grep?07:05
brolin_empeyMaxdamantus: I queried DuckDuckGo and found this Q&A:07:12
brolin_empeyhttps://ask.libreoffice.org/en/question/57507/calc-select-rows-which-contain-a-number-from-a-list-of-numbers-which-is-in-a-column-in-a-different-sheet/07:12
brolin_empeyI spent a while trying to use a filter to copy the rows of interest to a different sheet until I realised that I can simply sort the worksheet by the “payment” column/field, same as I would do when editing a table in a real database.  It took me a while to determine how to get the desired result by sorting but I finally got it.07:12
brolin_empeyNow the problem I have is that this table, effectively database, of accounts does not distinguish between merchants for whom I have a subscription and merchants from whom I bought something at least once even if it was years ago but do not have a subscription.07:15
brolin_empeyMaybe I should have the merchants for whom I have a subscription charge me via PayPal, if possible, instead of updating my credit card account information with the merchant because then, theoretically, I have to update my credit card account information only once, with PayPal, every time my credit card account information changes instead of having to update my payment information with every merchant for whom I have a subscription every time my credit card07:22
brolin_empeyaccount information changes.  I considered this years ago but never actually did it because the burden with the current situation is not too bad if it has to be done only every few years.07:22
brolin_empeyThe far greater burden will be manually updating all of the accounts that have my home address if I move again for the first time since 2010 January.07:25
brolin_empeyOr if my telephone number changes for the first time since 2008.07:26
Oksanajonwil : What is getJourneyDetailsData expected to be? I don't understand route from TransLink [fromStation and toStation are self-explanatory], and I can hardly read MVV-Germany results [Tram 18 Destination SomeStreet is difficult to understand]09:58
Oksanaana> {version, systemMessages, journeys: [{rating, isAdditional, interchanges, legs: [{duration, origin, destination, transportation, hints, stopSequence, infos, coords, properties},{}]},{}]}09:59
OksanaAnd putting into "info" field [about leg of a journey] the text "Duration: 60" doesn't sound good [since it's 60 seconds]10:01
OksanaWhat's the difference between toStation and toInfo for a leg of a journey?10:03
* Oksana goes outdoors10:05
OksanaAnd MVV-Germany sometimes gives "Error opening the details"10:05
ceenei hate autotools10:27
ceenei also hate cmake10:27
ceeneand i also hate scons10:27
ceenehate them all10:27
ceeneit's all an undecipherable mess10:27
KotCzarnyhow do you achieve portability then/10:27
ceenewith lots of pain10:28
KotCzarnyso not much different10:28
ceenei have a 100 line scons python script don't i don't ever touch again10:28
ceeneand then i can use small scons files10:28
ceenebut i still hate it all10:29
ceenei hate that it's nonstandard and has no standard way of setting compilation options, cross compiler, etc, it's just a hack passing arguments after the call to scons10:29
ceenei've tried at least 8 times to understand autotools and i just can't get it10:29
ceeneit's the most common thing out there, the most standard, but it's all just a gigantic hack of different macro languages with confusing macro names and weird syntax10:30
KotCzarnyi just use sh10:31
KotCzarnyin the end it's always needing manual touches, so why bother10:31
ceeneit's all a pain in the ass10:35
bencohyou're absolutely right with the fact that they're just all a gigantic hack, but I still prefer this standard gigantic hack, than having to handle/patch every single package for crosscompilation10:37
ceenei know, and that's why i wanted to autotoolize my software... yet i've failed once again, I get so frustrated that I never manage to do the simplest thing10:38
bencohsince it appears that most handcrafted build "system" (ie makefile/script) fail with crosscompilation at some point (unless the authors tried to crossbuild it, and even then, they always miss some case)10:38
KotCzarnybencoh, that's what i mean by manual touches10:39
bencohKotCzarny: I dont need "manual touches" when building a properly written autotools package10:39
KotCzarnysure, and then one day it happens to fail on some system/new distro revision10:40
KotCzarnyespecially if you rely on some external libs10:41
bencohthen you properly fix what needs to be fixed, for "everyone"10:42
KotCzarnyin a perfect world, yeah10:42
bencohinstead of adding another hacky bunch of lines to your handcrafted thing10:42
ceenemy problem is... i don't know how to begin writing an autotools package :(10:43
bencohnot saying this whole stuff is "perfect" in any way, just that I still prefer it by far than having to read/understand/patch every single homebrew makefile when crosscompiling it10:43
ceenei'm completely useless10:43
bencohceene: lib or program?10:44
ceeneand i also think it's the best solution (not that i think it's good at all, but the best nonetheless)10:44
ceeneboth10:44
bencoh(not that it's too different, but I have a simple autotools base to build a program, if you want)10:44
ceenei have several pieces of software that i want to autotoolize: libs and programs, and some repositories contain both a lib and a couple of programs that use them10:44
bencoh(not that good, but working on maemo)10:44
bencohah10:44
KotCzarnyhttps://github.com/msune/autotools-skeleton10:45
KotCzarny:)10:45
KotCzarny(just a random google)10:45
bencoh:)10:45
ceenei really hate it all10:47
bencohaww10:47
KotCzarnyMuch chaos seems to persist in the documentation of the various autotools (part of the GNU Build System). I don't know how others sort it out. I am inclined to think that they just copy an example and ignore or don't check the warnings10:47
KotCzarnyhehe10:47
KotCzarnynice quote10:47
ceenei also hate that there have to be so many files around the directory10:48
ceenei don't want them, they're just sitting there taking mental space10:48
KotCzarnybetter to trim down, than desperately look for docs10:49
KotCzarny[autoproject] - This tool creates a skeleton source package for a new program10:50
ceenelet's try that10:50
KotCzarnyhttps://directory.fsf.org/wiki/Autoproject10:51
KotCzarnyseems beta, version is 0.2010:52
ceene$ ls -1|wc -l10:52
ceene4110:52
ceeney don't really want a thing that creats 41 files10:52
ceeneand creates an xmalloc.c file10:53
ceenewhat the hell10:53
ceeneif my system doesn't have an standard malloc i don't give a shit10:53
ceenelet's see the autotools-skeleton repo10:54
ceenewell, it seems simpler than the libabc repo10:57
ceenea bit more comprehensible10:58
KotCzarnyhttp://inti.sourceforge.net/tutorial/libinti/autotoolsproject.html11:00
KotCzarnythis is also nice explanation of the files11:00
ceenethanks!11:01
KotCzarnythe smallest autotools project is just makeile.am and configure.in11:02
jonwilOskana: The best way to see how things work would be to use a web browser that supports network transaction logging, visit www.translink.com.au and do a journey plan search and look at the JSON output to see for yourself how it looks.12:21
jonwilYou could put "Beenleigh Station" into one box and "Strathpine Station" in the other box to get some good output.12:22
NihlanderYo, anyone alive?15:43
bencohsomehow :)15:43
NihlanderAyy - Success15:43
NihlanderYou wouldn't know what Fremantle repo to use, would you?15:44
NihlanderI'm getting KEYEXPIRED on both Muarf and Linenoise mirrors15:44
Nihlanderas per https://wiki.maemo.org/Repository15:44
bencohthey're only mirrors, so they just host the original files, which were signed by nokia with a now expired key15:45
bencohto avoid that, someone would need to resign packages with a trusted key15:45
NihlanderAh okay so, even with the keyexpired warning, updates, etc should still be working fine?15:46
bencohyeah15:46
NihlanderAwesome - Having both the Linenoise and Muarf mirrors enabled in my catalogue list shouldn't cause any issues either, right?15:47
bencohthe repositories for which you get KEYXPIRED errors haven't been updated since nokia stopped working on maemo, btw. only extras-* and cssu-* get updates nowaday15:48
bencoh+s15:48
NihlanderYeah, I have repository.maemo.org/community in my catalogue list15:50
bencoh:)15:50
NihlanderHave only just started using my N900 again after a couple of years15:50
bencohyay :)15:50
NihlanderSo, trying to make sure it's actually got all the right repos, etc and is updated with whatever has been released in the last few years haha15:50
bencohwelcome back then :)15:51
NihlanderCommunity SSU Version I'm using is 21.2011.38-1Tmaemo12 -- Flavor: Testing15:52

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