*** xy2_ has quit IRC | 00:04 | |
*** xy2_ has joined #maemo | 00:17 | |
*** shentey has quit IRC | 00:28 | |
*** HRH_H_Crab has quit IRC | 00:32 | |
*** N-Mi has quit IRC | 00:32 | |
*** geaaru has joined #maemo | 00:36 | |
*** N-Mi has joined #maemo | 00:40 | |
*** N-Mi has joined #maemo | 00:40 | |
*** pkill9 has quit IRC | 00:41 | |
*** xorly has quit IRC | 01:10 | |
*** eMHa has quit IRC | 01:18 | |
*** eMHa has joined #maemo | 01:20 | |
*** xy2_ has quit IRC | 01:30 | |
*** Kabouik_ has quit IRC | 01:46 | |
*** Kabouik has joined #maemo | 01:46 | |
*** Kabouik has quit IRC | 01:49 | |
*** Kabouik has joined #maemo | 01:49 | |
*** Kabouik has quit IRC | 02:34 | |
*** Kabouik has joined #maemo | 02:35 | |
*** HRH_H_Crab has joined #maemo | 03:04 | |
*** jonwil has quit IRC | 03:05 | |
*** florian has quit IRC | 03:34 | |
*** Kabouik has quit IRC | 04:09 | |
*** troulouliou_div2 has quit IRC | 04:13 | |
*** auenf has quit IRC | 05:20 | |
*** troulouliou_div2 has joined #maemo | 05:27 | |
*** FalconSpy has quit IRC | 05:34 | |
*** FalconSpy has joined #maemo | 05:40 | |
*** auenf has joined #maemo | 05:47 | |
*** auenf has quit IRC | 05:50 | |
*** auenf has joined #maemo | 05:50 | |
*** cyberlyra has joined #maemo | 05:56 | |
*** troulouliou_div2 has quit IRC | 06:28 | |
*** cyberlyra has quit IRC | 06:31 | |
*** cyberlyra has joined #maemo | 06:32 | |
*** cyberlyra has quit IRC | 06:36 | |
*** MetalGearSolid has joined #maemo | 07:24 | |
*** trumee has quit IRC | 07:32 | |
*** trumee has joined #maemo | 07:50 | |
*** xy2_ has joined #maemo | 09:10 | |
*** louis_ has joined #maemo | 09:14 | |
*** jonwil has joined #maemo | 10:05 | |
*** jkepler1 has joined #maemo | 10:11 | |
*** jkepler has quit IRC | 10:12 | |
*** jkepler1 is now known as jkepler | 10:12 | |
*** jon_y has quit IRC | 11:03 | |
*** jon_y has joined #maemo | 11:05 | |
*** N-Mi has quit IRC | 11:29 | |
*** N-Mi has joined #maemo | 11:30 | |
*** N-Mi has joined #maemo | 11:30 | |
*** troulouliou_div2 has joined #maemo | 11:51 | |
*** pkill9 has joined #maemo | 12:04 | |
*** florian has joined #maemo | 12:09 | |
*** florian has quit IRC | 12:38 | |
*** script has quit IRC | 12:50 | |
*** script has joined #maemo | 12:51 | |
*** opt1mus has joined #maemo | 12:53 | |
opt1mus | 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 | 12:55 |
---|---|---|
opt1mus | found it most useful with chromium | 12:55 |
*** shentey has joined #maemo | 12:56 | |
opt1mus | 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 | 12:57 |
*** florian has joined #maemo | 12:57 | |
opt1mus | I had to explicitly state the window title for xvkbd's focus; xvkbd -window *Chrom* etc | 12:59 |
*** Kabouik has joined #maemo | 13:02 | |
opt1mus | 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 | 13:03 |
*** louis_ has quit IRC | 13:17 | |
*** geaaru has quit IRC | 13:24 | |
*** geaaru has joined #maemo | 13:25 | |
*** shentey has quit IRC | 13:43 | |
*** shentey_ has joined #maemo | 13:43 | |
*** pkill9 has quit IRC | 14:16 | |
*** pkill9 has joined #maemo | 14:25 | |
*** xes_ is now known as xes | 14:25 | |
*** APic has quit IRC | 15:08 | |
*** APic has joined #maemo | 15:09 | |
*** jonwil has quit IRC | 15:13 | |
*** jkepler1 has joined #maemo | 15:24 | |
*** jkepler has quit IRC | 15:24 | |
*** jkepler1 is now known as jkepler | 15:24 | |
*** geaaru has quit IRC | 16:00 | |
*** freemangordon has quit IRC | 16:08 | |
*** shentey_ has quit IRC | 16:14 | |
*** florian has quit IRC | 16:17 | |
*** geaaru has joined #maemo | 16:30 | |
*** xy2_ has quit IRC | 17:03 | |
*** jkepler1 has joined #maemo | 17:09 | |
*** jkepler has quit IRC | 17:11 | |
*** jkepler1 is now known as jkepler | 17:11 | |
*** jkepler has quit IRC | 17:30 | |
*** jkepler has joined #maemo | 17:31 | |
*** Pali has joined #maemo | 17:31 | |
*** HRH_H_Crab has quit IRC | 17:36 | |
*** HRH_H_Crab has joined #maemo | 17:53 | |
*** troulouliou_div2 has quit IRC | 18:02 | |
*** troulouliou_div2 has joined #maemo | 18:03 | |
*** Pali has quit IRC | 18:04 | |
*** HRH_H_Crab has quit IRC | 18:08 | |
*** xy2_ has joined #maemo | 18:12 | |
*** troulouliou_div2 has quit IRC | 18:13 | |
*** Kabouik_ has joined #maemo | 18:13 | |
*** Kabouik has quit IRC | 18:16 | |
*** troulouliou_div2 has joined #maemo | 18:18 | |
*** HRH_H_Crab has joined #maemo | 18:26 | |
*** troulouliou_div2 has quit IRC | 18:48 | |
*** LjL has left #maemo | 18:56 | |
*** pagurus` has joined #maemo | 19:00 | |
*** pagurus has quit IRC | 19:01 | |
*** xy2_ has quit IRC | 19:06 | |
*** troulouliou_div2 has joined #maemo | 19:14 | |
*** xy2_ has joined #maemo | 19:24 | |
*** shentey has joined #maemo | 19:37 | |
*** shentey has quit IRC | 20:01 | |
*** troulouliou_div2 has quit IRC | 20:05 | |
*** florian has joined #maemo | 20:08 | |
*** florian has quit IRC | 20:15 | |
*** trumee has quit IRC | 20:22 | |
Vajb | amazing. Editing 4mb wordlist takes some time in n900 | 20:23 |
bencoh | :] | 20:24 |
*** trumee has joined #maemo | 20:26 | |
Vajb | im searching and replacing certain strings... | 20:27 |
Vajb | it's been running like one hour in leafpad :D | 20:27 |
bencoh | :D | 20:27 |
bencoh | vim! vim! vim! :p | 20:27 |
bencoh | although I suspect it'd still be "slow" | 20:28 |
Vajb | im not smart enough to use vim | 20:28 |
bencoh | aww | 20:28 |
Vajb | too hc for me | 20:28 |
bencoh | hc? | 20:28 |
Vajb | im still wearing my floaters | 20:28 |
Vajb | hard core | 20:28 |
*** trumee has quit IRC | 20:33 | |
sixwheeledbeast | sed? | 20:35 |
KotCzarny | or php/perl/python | 20:37 |
KotCzarny | also powerful editors ;) | 20:37 |
*** trumee has joined #maemo | 20:37 | |
bencoh | sixwheeledbeast: ed! :p | 20:37 |
sixwheeledbeast | bencoh: I take your vim and say vi then ;) | 20:38 |
bencoh | haha | 20:38 |
bencoh | plain old vi is unusable :) | 20:38 |
* sixwheeledbeast uses vi | 20:39 | |
sixwheeledbeast | :( | 20:39 |
bencoh | 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) :/ | 20:39 |
bencoh | like ... no undo/redo stack (only the previous action can be undone) | 20:40 |
bencoh | broken arrows on many distributions | 20:41 |
bencoh | (including bsd ones) | 20:41 |
*** trumee has quit IRC | 20:42 | |
*** trumee has joined #maemo | 20:46 | |
*** florian has joined #maemo | 20:47 | |
Vajb | hmm or is it vi that im mixing vim with | 20:53 |
*** trumee has quit IRC | 20:54 | |
*** xy2_ has quit IRC | 20:54 | |
Vajb | wow. First modification is done. Few to be done | 20:56 |
Vajb | i think it'll be about two hours / edit, funny | 20:57 |
sixwheeledbeast | Still ed/sed is the CLI tool for the job above Vajb. sed -i -e 's|foo|bar|g' file.txt | 20:58 |
KotCzarny | -r option might be handy too | 20:58 |
sixwheeledbeast | if you don't like vi/vim there's always nano? | 20:58 |
*** trumee has joined #maemo | 20:58 | |
KotCzarny | and mcedit | 20:58 |
KotCzarny | which also has powerful search and replace | 20:58 |
sixwheeledbeast | mcedit? midnight commander I assume? | 20:59 |
KotCzarny | yup | 20:59 |
sixwheeledbeast | not minecraft then :) | 20:59 |
KotCzarny | ;) | 20:59 |
*** trumee has quit IRC | 21:00 | |
sixwheeledbeast | which I believe is python. python editing java files what could go wrong... | 21:01 |
Vajb | oh there is sed in my maemo | 21:01 |
sixwheeledbeast | yep but maybe cut down | 21:02 |
sixwheeledbeast | ~messybox | 21:02 |
infobot | 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 | 21:02 |
KotCzarny | sed is almost on every linux system | 21:02 |
Vajb | i have bash3.5 tho... | 21:02 |
sixwheeledbeast | Usage: sed [-efinr] with busybox so should be good | 21:03 |
*** trumee has joined #maemo | 21:04 | |
sixwheeledbeast | learning to use these CLI tools can be useful. I am no expert but only using them will help learn them. | 21:05 |
Vajb | true, busybox --help is kinda useless most times | 21:06 |
sixwheeledbeast | The best thing I was told for sed was to use | or _ as the delimiter (anything other than / really) to avoid picket fence. | 21:08 |
KotCzarny | i use @ | 21:08 |
KotCzarny | ;) | 21:08 |
sixwheeledbeast | @ is good too | 21:08 |
KotCzarny | | can get hairy sometimes | 21:08 |
sixwheeledbeast | @ would be the safest but it depends on the task | 21:09 |
sixwheeledbeast | s@safest@least likely to conflict@g | 21:09 |
sixwheeledbeast | ;) | 21:09 |
Vajb | how would i replace foo with empty? | 21:10 |
*** trumee has quit IRC | 21:10 | |
Vajb | 's|foo||g'? | 21:11 |
Vajb | 's|foo|""|g'? | 21:11 |
KotCzarny | first one | 21:11 |
sixwheeledbeast | 's|foo||g' | 21:12 |
sixwheeledbeast | :nod: | 21:12 |
KotCzarny | sed -e 's|foo||g' | 21:12 |
KotCzarny | or | 21:12 |
*** Kabouik has joined #maemo | 21:12 | |
KotCzarny | sed -e 's@foo@@g' | 21:12 |
KotCzarny | or | 21:12 |
KotCzarny | sed -e 's/foo//g' | 21:12 |
Vajb | not -i -e? | 21:12 |
KotCzarny | -i is 'inplace' | 21:12 |
Vajb | what r those flags anyway? | 21:12 |
KotCzarny | in case you are sure | 21:12 |
KotCzarny | -e is 'execute this command' | 21:12 |
KotCzarny | run man sed on normal linux | 21:13 |
KotCzarny | or google man sed | 21:13 |
sixwheeledbeast | Vajb: http://www.grymoire.com/Unix/sed.html something I bookmarked for reference | 21:13 |
sixwheeledbeast | Also the references at the bottom of the page for gnu site | 21:15 |
Vajb | sed is doing it's thing now | 21:18 |
sixwheeledbeast | 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 | 21:19 |
Vajb | hmm should it save automaticly? | 21:20 |
Vajb | it removes things quickly but changes are not saved | 21:20 |
sixwheeledbeast | It edits the file directly | 21:21 |
Vajb | it seems it doesn't changes doesn't appear to stay | 21:22 |
sixwheeledbeast | sed -i -e 's|foo|bar|g' file.txt ? | 21:23 |
Vajb | ah im missing -i | 21:23 |
Vajb | ma*be that is the culprit? | 21:23 |
Vajb | maybe* | 21:23 |
sixwheeledbeast | You specified the file? | 21:23 |
*** ecc3g has quit IRC | 21:25 | |
Vajb | i don't understand the question, but with -i it works :) | 21:25 |
sixwheeledbeast | sed -inplace -execute 'substitute / this / that / globally' (at) myfile.txt | 21:27 |
sixwheeledbeast | :nod: | 21:27 |
*** ecc3g has joined #maemo | 21:28 | |
sixwheeledbeast | so quicker than leafpad then :) | 21:28 |
Vajb | a lot | 21:28 |
Vajb | how would i replace all the numbers? | 21:28 |
sixwheeledbeast | [0-9] | 21:28 |
Vajb | is it case sensitive as well? | 21:29 |
Vajb | if i wanna remove capital letters | 21:30 |
sixwheeledbeast | yep | 21:31 |
Vajb | and i jump on conclusion it works as [A-Z] | 21:32 |
sixwheeledbeast | Yep but be careful it removes every case of that character in file | 21:35 |
sixwheeledbeast | 's|[a-zA-Z0-9]||g' would remove all alpha-numerics for example | 21:37 |
*** lpapp_ has joined #maemo | 21:38 | |
*** lpapp_ has left #maemo | 21:38 | |
Vajb | yup it was supposed to do so :) | 21:39 |
Vajb | it is xml file and im removing all tags and other stuff to keep just wordlist | 21:40 |
Vajb | and words are written with small letters | 21:40 |
sixwheeledbeast | You 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 |
sixwheeledbeast | I know enough to get by and use the man pages | 21:44 |
Vajb | yes it was super fast and file is completely edited now, thx for hint :) | 21:46 |
*** louis_ has joined #maemo | 21:47 | |
Vajb | now i have native wordlist in connectogram game :) | 21:47 |
*** geaaru_ has joined #maemo | 21:54 | |
*** geaaru has quit IRC | 21:55 | |
*** trumee has joined #maemo | 21:56 | |
*** trumee has joined #maemo | 22:01 | |
*** cyteen_ has joined #maemo | 22:02 | |
*** jonwil has joined #maemo | 22:19 | |
* Maxdamantus wonders if it's possible to use the | operator when using | as the delimiter. | 22:25 | |
Maxdamantus | Seems to be, but then it's presumably impossible to match on an actual | character .. unless you put it in [..] | 22:26 |
Maxdamantus | I think : is the typical alternative delimiter. | 22:27 |
*** Kabouik has quit IRC | 22:27 | |
*** xy2_ has joined #maemo | 22:36 | |
*** cyteen_ has quit IRC | 22:49 | |
*** cyteen_ has joined #maemo | 22:50 | |
*** trumee has quit IRC | 22:50 | |
*** cyteen_ has quit IRC | 22:55 | |
*** cyberlyra has joined #maemo | 22:55 | |
*** cyberlyra has quit IRC | 23:00 | |
*** cyberlyra has joined #maemo | 23:00 | |
*** cyberlyra has quit IRC | 23:07 | |
*** trumee has joined #maemo | 23:11 | |
*** cyberlyra has joined #maemo | 23:21 | |
*** cyberlyra has quit IRC | 23:22 | |
*** trumee has quit IRC | 23:39 | |
*** xy2_ has quit IRC | 23:39 | |
*** trumee has joined #maemo | 23:41 |
Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!