**** BEGIN LOGGING AT Sat Nov 04 03:00:02 2017 Nov 04 10:55:06 if 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 ether Nov 04 10:55:39 found it most useful with chromium Nov 04 10:57:44 it'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 on Nov 04 10:59:30 I had to explicitly state the window title for xvkbd's focus; xvkbd -window *Chrom* etc Nov 04 11:03:21 after 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 by Nov 04 18:23:45 amazing. Editing 4mb wordlist takes some time in n900 Nov 04 18:24:34 :] Nov 04 18:27:10 im searching and replacing certain strings... Nov 04 18:27:29 it's been running like one hour in leafpad :D Nov 04 18:27:47 :D Nov 04 18:27:55 vim! vim! vim! :p Nov 04 18:28:10 although I suspect it'd still be "slow" Nov 04 18:28:14 im not smart enough to use vim Nov 04 18:28:19 aww Nov 04 18:28:31 too hc for me Nov 04 18:28:38 hc? Nov 04 18:28:47 im still wearing my floaters Nov 04 18:28:52 hard core Nov 04 18:35:09 sed? Nov 04 18:37:21 or php/perl/python Nov 04 18:37:28 also powerful editors ;) Nov 04 18:37:43 sixwheeledbeast: ed! :p Nov 04 18:38:21 bencoh: I take your vim and say vi then ;) Nov 04 18:38:27 haha Nov 04 18:38:38 plain old vi is unusable :) Nov 04 18:39:10 * sixwheeledbeast uses vi Nov 04 18:39:15 :( Nov 04 18:39:37 it'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) :/ Nov 04 18:40:36 like ... no undo/redo stack (only the previous action can be undone) Nov 04 18:41:02 broken arrows on many distributions Nov 04 18:41:25 (including bsd ones) Nov 04 18:53:38 hmm or is it vi that im mixing vim with Nov 04 18:56:44 wow. First modification is done. Few to be done Nov 04 18:57:21 i think it'll be about two hours / edit, funny Nov 04 18:58:12 Still ed/sed is the CLI tool for the job above Vajb. sed -i -e 's|foo|bar|g' file.txt Nov 04 18:58:29 -r option might be handy too Nov 04 18:58:34 if you don't like vi/vim there's always nano? Nov 04 18:58:47 and mcedit Nov 04 18:58:56 which also has powerful search and replace Nov 04 18:59:15 mcedit? midnight commander I assume? Nov 04 18:59:18 yup Nov 04 18:59:28 not minecraft then :) Nov 04 18:59:43 ;) Nov 04 19:01:27 which I believe is python. python editing java files what could go wrong... Nov 04 19:01:55 oh there is sed in my maemo Nov 04 19:02:15 yep but maybe cut down Nov 04 19:02:21 ~messybox Nov 04 19:02:21 messy... 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 utils Nov 04 19:02:22 sed is almost on every linux system Nov 04 19:02:41 i have bash3.5 tho... Nov 04 19:03:26 Usage: sed [-efinr] with busybox so should be good Nov 04 19:05:05 learning to use these CLI tools can be useful. I am no expert but only using them will help learn them. Nov 04 19:06:54 true, busybox --help is kinda useless most times Nov 04 19:08:02 The best thing I was told for sed was to use | or _ as the delimiter (anything other than / really) to avoid picket fence. Nov 04 19:08:11 i use @ Nov 04 19:08:12 ;) Nov 04 19:08:25 @ is good too Nov 04 19:08:26 | can get hairy sometimes Nov 04 19:09:04 @ would be the safest but it depends on the task Nov 04 19:09:48 s@safest@least likely to conflict@g Nov 04 19:09:54 ;) Nov 04 19:10:46 how would i replace foo with empty? Nov 04 19:11:01 's|foo||g'? Nov 04 19:11:21 's|foo|""|g'? Nov 04 19:11:55 first one Nov 04 19:12:03 's|foo||g' Nov 04 19:12:07 :nod: Nov 04 19:12:12 sed -e 's|foo||g' Nov 04 19:12:14 or Nov 04 19:12:19 sed -e 's@foo@@g' Nov 04 19:12:22 or Nov 04 19:12:25 sed -e 's/foo//g' Nov 04 19:12:31 not -i -e? Nov 04 19:12:39 -i is 'inplace' Nov 04 19:12:44 what r those flags anyway? Nov 04 19:12:45 in case you are sure Nov 04 19:12:55 -e is 'execute this command' Nov 04 19:13:02 run man sed on normal linux Nov 04 19:13:06 or google man sed Nov 04 19:13:50 Vajb: http://www.grymoire.com/Unix/sed.html something I bookmarked for reference Nov 04 19:15:02 Also the references at the bottom of the page for gnu site Nov 04 19:18:43 sed is doing it's thing now Nov 04 19:19:34 in 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 example Nov 04 19:20:26 hmm should it save automaticly? Nov 04 19:20:45 it removes things quickly but changes are not saved Nov 04 19:21:15 It edits the file directly Nov 04 19:22:40 it seems it doesn't changes doesn't appear to stay Nov 04 19:23:07 sed -i -e 's|foo|bar|g' file.txt ? Nov 04 19:23:30 ah im missing -i Nov 04 19:23:39 ma*be that is the culprit? Nov 04 19:23:44 maybe* Nov 04 19:23:52 You specified the file? Nov 04 19:25:40 i don't understand the question, but with -i it works :) Nov 04 19:27:32 sed -inplace -execute 'substitute / this / that / globally' (at) myfile.txt Nov 04 19:27:37 :nod: Nov 04 19:28:10 so quicker than leafpad then :) Nov 04 19:28:19 a lot Nov 04 19:28:32 how would i replace all the numbers? Nov 04 19:28:43 [0-9] Nov 04 19:29:56 is it case sensitive as well? Nov 04 19:30:14 if i wanna remove capital letters Nov 04 19:31:17 yep Nov 04 19:32:12 and i jump on conclusion it works as [A-Z] Nov 04 19:35:38 Yep but be careful it removes every case of that character in file Nov 04 19:37:25 's|[a-zA-Z0-9]||g' would remove all alpha-numerics for example Nov 04 19:39:36 yup it was supposed to do so :) Nov 04 19:40:15 it is xml file and im removing all tags and other stuff to keep just wordlist Nov 04 19:40:31 and words are written with small letters Nov 04 19:44:12 You can get clever and start to remove characters based on position in line etc, sed's pretty powerful if you know it well. Nov 04 19:44:38 I know enough to get by and use the man pages Nov 04 19:46:39 yes it was super fast and file is completely edited now, thx for hint :) Nov 04 19:47:29 now i have native wordlist in connectogram game :) Nov 04 20:25:40 * Maxdamantus wonders if it's possible to use the | operator when using | as the delimiter. Nov 04 20:26:35 Seems to be, but then it's presumably impossible to match on an actual | character .. unless you put it in [..] Nov 04 20:27:41 I think : is the typical alternative delimiter. Nov 04 22:24:13 still using the N900 as EDC, though fear factor over damage is more than usual Nov 04 22:39:11 I am still using my N900 as my main phone as well, far better than anything from (cr)Apple or Google Nov 04 22:51:33 this is fully working, CPU is good to 1.15GHZ, was messing with X forwarding and got the hw kb to link to the forwarded app. Looking for alternatives though as I think it will falter eventually Nov 04 23:09:48 1.15GHZ? Nov 04 23:18:47 yeah Nov 04 23:19:04 with the N900 Nov 04 23:19:19 crazy eh Nov 04 23:19:47 not all of them will do it though, beware Nov 04 23:21:20 I wouldn't risk overclocking my N900 Nov 04 23:21:33 nor me, not now Nov 04 23:21:42 but it did it Nov 04 23:23:48 not all N900 CPUs were 'born' the same either, so they will not all be stable when OCd Nov 04 23:24:50 my recommendation is to not attempt it, unless you think you can spare cooking it **** ENDING LOGGING AT Sun Nov 05 03:00:02 2017