libera/#maemo/ Friday, 2018-12-28

siceloa key has fallen out of my hwkbd12:19
sicelowhat's a good glue to put it back on? i don't want tomake a mistake and use something that might make matters worse12:19
KotCzarnyorder replacement kb inlet?12:20
sicelonot practical in my case12:20
sicelothe key is not lose. just need the right glue to stick it back on12:22
sicelo*lost12:23
KotCzarnyi see replacement kb for ~4 usd12:24
KotCzarnyh3droid is only for allwinner H2+/H3 soc12:26
KotCzarnyerm, -ECHAN12:26
Vajbsicelo: I would go with 3M products or some other syanoachrylate glue.12:43
Vajbor some two-component glue, but I think that would be messier.12:44
sixwheeledbeast^Trying to merge a list of txt files into one stripping the first line of each. However it would appear bash is processing wildcards not in filename order so output is not in date order. Anyone think of a solution without listing a string of filenames?13:14
KotCzarnybash required?13:15
sixwheeledbeast^nope desktop I think it's multithreading the tail command13:15
KotCzarnysome scripting language might be nicer if it's complicated13:16
Vajbcan't you sort them after merging?13:17
sixwheeledbeast^Tried just tail +2 and piping find into xargs tail +2, files seem to be processed in eights (8 core desktop)13:18
KotCzarnyhmm, internet says globbing guarantees alphabetical order13:18
sixwheeledbeast^I expected bash to maintain my intentional file order of foofile00 foofile01 etc13:19
KotCzarnyin php i would just populate array of arrays, drop first element in each subarray and iterate on final list13:19
KotCzarny(yes, i'm a fan of php-cli)13:20
VajbI think I would use java for that task.13:20
Vajb(just because we have had exhaustive java courses)13:21
sixwheeledbeast^Just running straight from the shell, I suppose if there is no straight forward way I could list the array of 60 odd files with tab complete...13:22
Vajblets hear what exactly you are trying to do?13:22
KotCzarnybtw. sorting depends on locale set13:23
sixwheeledbeast^ah locale13:23
sixwheeledbeast^so for example "tail -q -n +2 *.txt >> conc.csv"13:26
KotCzarnyhmm13:27
KotCzarnytail would concatenate then cut probably13:27
KotCzarnyyou probably need for each in *.txt; do tail -q -n +2 >>conc.csv; done13:27
sixwheeledbeast^also "find . -name "*.txt" | xargs -n 1 tail -n +2 >> concx.csv"13:27
KotCzarnyerm.13:28
KotCzarnyfor each in *.txt; do tail -q -n +2 "$each" >>conc.csv; done13:28
KotCzarnyunless i misunderstood your question13:28
sixwheeledbeast^nope perfect, you understood exactly13:30
sixwheeledbeast^the power of a loop, er13:31
KotCzarnycheck if it globs the files in the right order13:32
KotCzarnyotherwise you could simple replace it with sort13:33
KotCzarnyie. for each in `ls *.txt|sort`; do ..13:33
KotCzarny(as long names dont have spaces or weird chars13:33
sixwheeledbeast^Output is in correct order  :)13:35
KotCzarnyyay for cmdline!13:36
sixwheeledbeast^\o/13:36
totalizatorKotCzarny: do not simplify every code you get :E https://github.com/kubernetes/kubernetes/blob/ec2e767e59395376fa191d7c56a74f53936b7653/pkg/controller/volume/persistentvolume/pv_controller.go13:59
KotCzarnyi see a lot of missing elses :P14:00
totalizatorthe shuttle flies too fast - I can't see :E14:05
KotCzarnytotalizator: my shuttles are usually compressed into high velocity bullets that pierce through anything14:13
totalizatorI'll stick with my bike, thanks14:16
sixwheeledbeast^After Vajb mentioned merging first I came up with this solution :)   "cat *.txt >> conc.csv && sed -i '/String/d' conc.csv"14:28
sixwheeledbeast^Don't know why i didn't think of that earlier...14:28
KotCzarnyor just grep -v ?14:28
sixwheeledbeast^Possibly I seemed to gravitate towards sed -i. Seems cat works in file order tho whereas tail didn't, makes sense.14:33
DocScrutinizer05glob sorts14:35
DocScrutinizer05per definition14:35
DocScrutinizer05why not pipe? cat *.txt | sed -i '/String/d' >conc.csv14:36
DocScrutinizer05err without "-i"14:36
inzUseless use of cat ;)14:36
* KotCzarny mreoows14:37
DocScrutinizer05prolly sed '/String/d' *.txt  >conc.csv also works14:37
KotCzarnyinz, cat is nice as a pipe starter14:37
inzIt is usually more readable, yes14:37
KotCzarnyeasier to modify ending params than to move the cursor back further14:37
KotCzarnyso it has its uses14:37
KotCzarnya bit offtopic, what triggers gsm network to send internet/mms configuration?14:40
DocScrutinizer05location register server does that, on sensing a new IMEI on an account14:41
DocScrutinizer05or on sensing a roaming user14:41
DocScrutinizer05afaik14:42
KotCzarnyDocScrutinizer05: so putting card into another phone, letting it go into network, then putting card back should work for sending config again14:43
KotCzarnyunless they keep a list of seen imeis per user14:43
sixwheeledbeast^It was due to finding cat was processing the files in the correct order but it seems just sed works fine too.14:43
KotCzarnynow i need another phone to confirm, hrm14:44
sixwheeledbeast^Here once SIM is seen on the network it doesn't prompt you to download config info again unless you request it from the network.14:51
DocScrutinizer05KotCzarny: depends, prolly not tsince the "old" IMEI gets stored14:52
DocScrutinizer05yes, keeping list of seen IMEIs seems to be exactly what they do14:52
sixwheeledbeast^s/SIM/IMEI/ ^ is most likely14:52
DocScrutinizer05once that IMEI had been seen on that SIM/account, it won't usually get a second SMS14:54
DocScrutinizer05but I'm not completely sure, done too few tests to have a sufficient sample base14:54
DocScrutinizer05I also guess there must be some "aging"14:55
KotCzarnydont have another phone handy atm, but will check in an hour14:56
DocScrutinizer05after all you could have nuked the settings by inserting another SIM14:56
KotCzarnybut it could've been different network, which your home network wouldnt know about14:57
KotCzarnyso it might be bound to sim+imei combination14:57
DocScrutinizer05sp maybe they send a SMS when they didn'T see that account|IMEI tuple for >1 week or whatever14:57
DocScrutinizer05so*14:58
DocScrutinizer05SIM=IMSI=account, yes14:59
KotCzarnyyup14:59
KotCzarnyi just find it weird it wasnt standardized and left for user side15:00
DocScrutinizer05most providers offer a web service to trigger semding of config SMS15:02
DocScrutinizer05"register new phone" or somesuch15:02
KotCzarnythe one i'm currently helping with doesnt15:02
DocScrutinizer05hmm15:02
KotCzarnyor at least they dont expose that information anywhere15:03
DocScrutinizer05ask their hotline15:03
KotCzarnyalso, it's a virtual operator15:03
DocScrutinizer05could also simply be a SSC/USSD, or a SIM with "cinfigure internet" to 666, or whatever15:04
DocScrutinizer05well, either they operate on their own network ID (2 digits country + 3 digits Provider-ID) or you are using then genuine network operator's location register and thus should ask their hotline15:07
DocScrutinizer05what does the phone show? "virtual" üprovider name, or genuine network operator name?15:09
KotCzarnynah, they use real operator network, numbers are probably routed inside the network by operators using shared database15:09
KotCzarnythey say it shows suboperator name (ie. different than real operator)15:11
DocScrutinizer05then they use their own database, either on own hardware or virtualized on genuine operator's Location Register15:20
sixwheeledbeast^You can either text a number or use the web portal to resend the config here.15:21
sixwheeledbeast^Also customer service can force the prompt to appear again.15:23
KotCzarnyi'm looking for an automatic way, preferably without customer service call, people are allergic to it15:24
DocScrutinizer05oh, so you ask how providers *should* do it?16:26
DocScrutinizer05keep a list of IMSIs in Location Register user account. Delete those that had not been seen logged in for a week or two. Send a SMS to each new IMSI16:28
DocScrutinizer05allow manual trigger of SMS sending. Ideally by SMS and by web interface16:29
DocScrutinizer05rate-limit to max 10 config SMS / day16:31
DocScrutinizer05to defeat all sorts of hiccups and exploits16:31
KotCzarnyyum, manual trigger with some service code would be best16:31
DocScrutinizer05SMS "new" to 66616:32
KotCzarnycurrently its up for operator to setup such codes, which varies wildly between them16:32
DocScrutinizer05or dial *NEW-INTERNET#16:33
KotCzarnyand its even worse with MVOs16:33
DocScrutinizer05better: *NEWPHONE#"16:33
KotCzarnyor just INTERNET16:33
KotCzarnyand MMS16:33
KotCzarnywhich some of them do now16:34
KotCzarnybut not all16:34
blebare there any good tools to determine which bands a phone supports?20:11
bleblike i have an e66 and i want to figure out if it's the US version or non-US version20:11

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