IRC log of #maemo for Saturday, 2017-11-04

*** xy2_ has quit IRC00:04
*** xy2_ has joined #maemo00:17
*** shentey has quit IRC00:28
*** HRH_H_Crab has quit IRC00:32
*** N-Mi has quit IRC00:32
*** geaaru has joined #maemo00:36
*** N-Mi has joined #maemo00:40
*** N-Mi has joined #maemo00:40
*** pkill9 has quit IRC00:41
*** xorly has quit IRC01:10
*** eMHa has quit IRC01:18
*** eMHa has joined #maemo01:20
*** xy2_ has quit IRC01:30
*** Kabouik_ has quit IRC01:46
*** Kabouik has joined #maemo01:46
*** Kabouik has quit IRC01:49
*** Kabouik has joined #maemo01:49
*** Kabouik has quit IRC02:34
*** Kabouik has joined #maemo02:35
*** HRH_H_Crab has joined #maemo03:04
*** jonwil has quit IRC03:05
*** florian has quit IRC03:34
*** Kabouik has quit IRC04:09
*** troulouliou_div2 has quit IRC04:13
*** auenf has quit IRC05:20
*** troulouliou_div2 has joined #maemo05:27
*** FalconSpy has quit IRC05:34
*** FalconSpy has joined #maemo05:40
*** auenf has joined #maemo05:47
*** auenf has quit IRC05:50
*** auenf has joined #maemo05:50
*** cyberlyra has joined #maemo05:56
*** troulouliou_div2 has quit IRC06:28
*** cyberlyra has quit IRC06:31
*** cyberlyra has joined #maemo06:32
*** cyberlyra has quit IRC06:36
*** MetalGearSolid has joined #maemo07:24
*** trumee has quit IRC07:32
*** trumee has joined #maemo07:50
*** xy2_ has joined #maemo09:10
*** louis_ has joined #maemo09:14
*** jonwil has joined #maemo10:05
*** jkepler1 has joined #maemo10:11
*** jkepler has quit IRC10:12
*** jkepler1 is now known as jkepler10:12
*** jon_y has quit IRC11:03
*** jon_y has joined #maemo11:05
*** N-Mi has quit IRC11:29
*** N-Mi has joined #maemo11:30
*** N-Mi has joined #maemo11:30
*** troulouliou_div2 has joined #maemo11:51
*** pkill9 has joined #maemo12:04
*** florian has joined #maemo12:09
*** florian has quit IRC12:38
*** script has quit IRC12:50
*** script has joined #maemo12:51
*** opt1mus has joined #maemo12:53
opt1musif anyone's interested I managed to get the hardware keyboard on the N900 working with X forwarded applications, tried to post the clunky solution to the bbs but it got lost in the ether12:55
opt1musfound it most useful with chromium12:55
*** shentey has joined #maemo12:56
opt1musit's not elegant and I'm sure there's a better solution; I installed xvkbd (a virtual kb) on the server side with the intent of using that as a workaround, however as I typed with it, it gave the N900 hw kb focus to the X-forwarded chromium and I could continue using the N900's own kb from there on12:57
*** florian has joined #maemo12:57
opt1musI had to explicitly state the window title for xvkbd's focus; xvkbd -window *Chrom* etc12:59
*** Kabouik has joined #maemo13:02
opt1musafter typing a few chars and hitting return, that's when the hw kb was recognised by the X-forwarded app, so yeah, it aint pretty but it'll get you by13:03
*** louis_ has quit IRC13:17
*** geaaru has quit IRC13:24
*** geaaru has joined #maemo13:25
*** shentey has quit IRC13:43
*** shentey_ has joined #maemo13:43
*** pkill9 has quit IRC14:16
*** pkill9 has joined #maemo14:25
*** xes_ is now known as xes14:25
*** APic has quit IRC15:08
*** APic has joined #maemo15:09
*** jonwil has quit IRC15:13
*** jkepler1 has joined #maemo15:24
*** jkepler has quit IRC15:24
*** jkepler1 is now known as jkepler15:24
*** geaaru has quit IRC16:00
*** freemangordon has quit IRC16:08
*** shentey_ has quit IRC16:14
*** florian has quit IRC16:17
*** geaaru has joined #maemo16:30
*** xy2_ has quit IRC17:03
*** jkepler1 has joined #maemo17:09
*** jkepler has quit IRC17:11
*** jkepler1 is now known as jkepler17:11
*** jkepler has quit IRC17:30
*** jkepler has joined #maemo17:31
*** Pali has joined #maemo17:31
*** HRH_H_Crab has quit IRC17:36
*** HRH_H_Crab has joined #maemo17:53
*** troulouliou_div2 has quit IRC18:02
*** troulouliou_div2 has joined #maemo18:03
*** Pali has quit IRC18:04
*** HRH_H_Crab has quit IRC18:08
*** xy2_ has joined #maemo18:12
*** troulouliou_div2 has quit IRC18:13
*** Kabouik_ has joined #maemo18:13
*** Kabouik has quit IRC18:16
*** troulouliou_div2 has joined #maemo18:18
*** HRH_H_Crab has joined #maemo18:26
*** troulouliou_div2 has quit IRC18:48
*** LjL has left #maemo18:56
*** pagurus` has joined #maemo19:00
*** pagurus has quit IRC19:01
*** xy2_ has quit IRC19:06
*** troulouliou_div2 has joined #maemo19:14
*** xy2_ has joined #maemo19:24
*** shentey has joined #maemo19:37
*** shentey has quit IRC20:01
*** troulouliou_div2 has quit IRC20:05
*** florian has joined #maemo20:08
*** florian has quit IRC20:15
*** trumee has quit IRC20:22
Vajbamazing. Editing 4mb wordlist takes some time in n90020:23
bencoh:]20:24
*** trumee has joined #maemo20:26
Vajbim searching and replacing certain strings...20:27
Vajbit's been running like one hour in leafpad :D20:27
bencoh:D20:27
bencohvim! vim! vim! :p20:27
bencohalthough I suspect it'd still be "slow"20:28
Vajbim not smart enough to use vim20:28
bencohaww20:28
Vajbtoo hc for me20:28
bencohhc?20:28
Vajbim still wearing my floaters20:28
Vajbhard core20:28
*** trumee has quit IRC20:33
sixwheeledbeastsed?20:35
KotCzarnyor php/perl/python20:37
KotCzarnyalso powerful editors ;)20:37
*** trumee has joined #maemo20:37
bencohsixwheeledbeast: ed! :p20:37
sixwheeledbeastbencoh: I take your vim and say vi then ;)20:38
bencohhaha20:38
bencohplain old vi is unusable :)20:38
* sixwheeledbeast uses vi20:39
sixwheeledbeast:(20:39
bencohit's not that unusable actually, just ... really not handy, and seems "buggy" on some platforms (probably some kind of buggy configuration and/or bad term definition though) :/20:39
bencohlike ... no undo/redo stack (only the previous action can be undone)20:40
bencohbroken arrows on many distributions20:41
bencoh(including bsd ones)20:41
*** trumee has quit IRC20:42
*** trumee has joined #maemo20:46
*** florian has joined #maemo20:47
Vajbhmm or is it vi that im mixing vim with20:53
*** trumee has quit IRC20:54
*** xy2_ has quit IRC20:54
Vajbwow. First modification is done. Few to be done20:56
Vajbi think it'll be about two hours / edit, funny20:57
sixwheeledbeastStill ed/sed is the CLI tool for the job above Vajb. sed -i -e 's|foo|bar|g' file.txt20:58
KotCzarny-r option might be handy too20:58
sixwheeledbeastif you don't like vi/vim there's always nano?20:58
*** trumee has joined #maemo20:58
KotCzarnyand mcedit20:58
KotCzarnywhich also has powerful search and replace20:58
sixwheeledbeastmcedit? midnight commander I assume?20:59
KotCzarnyyup20:59
sixwheeledbeastnot minecraft then :)20:59
KotCzarny;)20:59
*** trumee has quit IRC21:00
sixwheeledbeastwhich I believe is python. python editing java files what could go wrong...21:01
Vajboh there is sed in my maemo21:01
sixwheeledbeastyep but maybe cut down21:02
sixwheeledbeast~messybox21:02
infobotmessy... err busybox is meant for lean scripting. Regarding all the missing options and immanent limitations (see su, passwd, nice, ps, diff as used by mc...) it's not really the interactive shell of choice. A lot of people hate busybox because a lot of system integrators don't understand the difference between busybox and a decent user interactive shell plus unix utils21:02
KotCzarnysed is almost on every linux system21:02
Vajbi have bash3.5 tho...21:02
sixwheeledbeastUsage: sed [-efinr] with busybox so should be good21:03
*** trumee has joined #maemo21:04
sixwheeledbeastlearning to use these CLI tools can be useful. I am no expert but only using them will help learn them.21:05
Vajbtrue, busybox --help is kinda useless most times21:06
sixwheeledbeastThe best thing I was told for sed was to use | or _ as the delimiter (anything other than / really)  to avoid picket fence.21:08
KotCzarnyi use @21:08
KotCzarny;)21:08
sixwheeledbeast@ is good too21:08
KotCzarny| can get hairy sometimes21:08
sixwheeledbeast@ would be the safest but it depends on the task21:09
sixwheeledbeasts@safest@least likely to conflict@g21:09
sixwheeledbeast;)21:09
Vajbhow would i replace foo with empty?21:10
*** trumee has quit IRC21:10
Vajb's|foo||g'?21:11
Vajb's|foo|""|g'?21:11
KotCzarnyfirst one21:11
sixwheeledbeast's|foo||g'21:12
sixwheeledbeast:nod:21:12
KotCzarnysed -e 's|foo||g'21:12
KotCzarnyor21:12
*** Kabouik has joined #maemo21:12
KotCzarnysed -e 's@foo@@g'21:12
KotCzarnyor21:12
KotCzarnysed -e 's/foo//g'21:12
Vajbnot -i -e?21:12
KotCzarny-i is 'inplace'21:12
Vajbwhat r those flags anyway?21:12
KotCzarnyin case you are sure21:12
KotCzarny-e is 'execute this command'21:12
KotCzarnyrun man sed on normal linux21:13
KotCzarnyor google man sed21:13
sixwheeledbeastVajb: http://www.grymoire.com/Unix/sed.html something I bookmarked for reference21:13
sixwheeledbeastAlso the references at the bottom of the page for gnu site21:15
Vajbsed is doing it's thing now21:18
sixwheeledbeastin place would mean to edit your file.txt you could wildcard your in place output to edit multiple txt files in the same folder for example21:19
Vajbhmm should it save automaticly?21:20
Vajbit removes things quickly but changes are not saved21:20
sixwheeledbeastIt edits the file directly21:21
Vajbit seems it doesn't changes doesn't appear to stay21:22
sixwheeledbeastsed -i -e 's|foo|bar|g' file.txt  ?21:23
Vajbah im missing -i21:23
Vajbma*be that is the culprit?21:23
Vajbmaybe*21:23
sixwheeledbeastYou specified the file?21:23
*** ecc3g has quit IRC21:25
Vajbi don't understand the question, but with -i it works :)21:25
sixwheeledbeastsed  -inplace  -execute  'substitute / this  / that / globally'  (at)  myfile.txt21:27
sixwheeledbeast:nod:21:27
*** ecc3g has joined #maemo21:28
sixwheeledbeastso quicker than leafpad then :)21:28
Vajba lot21:28
Vajbhow would i replace all the numbers?21:28
sixwheeledbeast[0-9]21:28
Vajbis it case sensitive as well?21:29
Vajbif i wanna remove capital letters21:30
sixwheeledbeastyep21:31
Vajband i jump on conclusion it works as [A-Z]21:32
sixwheeledbeastYep but be careful it removes every case of that character in file21:35
sixwheeledbeast's|[a-zA-Z0-9]||g' would remove all alpha-numerics for example21:37
*** lpapp_ has joined #maemo21:38
*** lpapp_ has left #maemo21:38
Vajbyup it was supposed to do so :)21:39
Vajbit is xml file and im removing all tags and other stuff to keep just wordlist21:40
Vajband words are written with small letters21:40
sixwheeledbeastYou can get clever and start to remove characters based on position in line etc, sed's pretty powerful if you know it well.21:44
sixwheeledbeastI know enough to get by and use the man pages21:44
Vajbyes it was super fast and file is completely edited now, thx for hint :)21:46
*** louis_ has joined #maemo21:47
Vajbnow i have native wordlist in connectogram game :)21:47
*** geaaru_ has joined #maemo21:54
*** geaaru has quit IRC21:55
*** trumee has joined #maemo21:56
*** trumee has joined #maemo22:01
*** cyteen_ has joined #maemo22:02
*** jonwil has joined #maemo22:19
* Maxdamantus wonders if it's possible to use the | operator when using | as the delimiter.22:25
MaxdamantusSeems to be, but then it's presumably impossible to match on an actual | character .. unless you put it in [..]22:26
MaxdamantusI think : is the typical alternative delimiter.22:27
*** Kabouik has quit IRC22:27
*** xy2_ has joined #maemo22:36
*** cyteen_ has quit IRC22:49
*** cyteen_ has joined #maemo22:50
*** trumee has quit IRC22:50
*** cyteen_ has quit IRC22:55
*** cyberlyra has joined #maemo22:55
*** cyberlyra has quit IRC23:00
*** cyberlyra has joined #maemo23:00
*** cyberlyra has quit IRC23:07
*** trumee has joined #maemo23:11
*** cyberlyra has joined #maemo23:21
*** cyberlyra has quit IRC23:22
*** trumee has quit IRC23:39
*** xy2_ has quit IRC23:39
*** trumee has joined #maemo23:41

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