*** ThePub has quit IRC | 00:19 | |
*** mike_k has joined #crux | 01:52 | |
*** albelaj has joined #crux | 01:54 | |
*** lasso|qt has joined #crux | 01:57 | |
*** ThePub has joined #crux | 02:49 | |
Romster | good evening and pizza | 03:39 |
---|---|---|
Romster | and happy easter too. | 03:39 |
*** pitillo has quit IRC | 04:03 | |
*** pitillo has joined #crux | 04:04 | |
*** albelaj has left #crux | 04:16 | |
*** Zaba has quit IRC | 04:49 | |
*** Zaba has joined #crux | 04:54 | |
laen | Good day darlings. | 05:46 |
*** lasso|qt has quit IRC | 06:04 | |
cruxbot | [core.git/2.7]: attr: update to 2.4.46 | 06:54 |
cruxbot | [core.git/2.7]: acl: update to 2.2.51 | 06:54 |
cruxbot | [opt.git/2.7]: nvidia: update to 270.41.06 | 06:54 |
cruxbot | [opt.git/2.7]: pure-ftpd: update to 1.0.31 | 06:54 |
*** jse has quit IRC | 07:11 | |
*** lasso has joined #crux | 07:55 | |
*** Evil_Bob has joined #crux | 09:11 | |
*** lasso has quit IRC | 09:27 | |
*** Evil_Bob has joined #crux | 10:15 | |
*** aubic has quit IRC | 10:36 | |
*** lasso has joined #crux | 10:41 | |
*** andarius has joined #crux | 11:38 | |
andarius | salutations and waffles | 11:39 |
*** ThePub has quit IRC | 12:10 | |
*** ThePub has joined #crux | 12:12 | |
*** ThePub has quit IRC | 12:27 | |
*** ThePub has joined #crux | 12:29 | |
jaeger | ok, who's a regex guru? | 12:31 |
ente | I'm not | 12:31 |
ente | my regex replacing function segfaults with -O2 | 12:31 |
ente | :) | 12:31 |
jaeger | I'm wondering if I could match something kinda complicated | 12:31 |
*** Zaba has quit IRC | 12:31 | |
jaeger | hehe, ok | 12:31 |
ente | just ask anyway ;) | 12:32 |
*** Rotwang has joined #crux | 12:32 | |
jaeger | http://pastebin.com/gSx8qz0R | 12:33 |
jaeger | the files in question look like that but repeated a few times | 12:33 |
jaeger | I want to split the numbers into separate files named based on the headers | 12:33 |
jaeger | probably need to script it in python or something a bit more flexible than regex but I figured I'd ask | 12:34 |
ente | http://paste.xinu.at/0yvH/ | 12:34 |
ente | maybe someone wants to take a look as well | 12:34 |
*** et-0nline has joined #crux | 12:35 | |
ente | jaeger: I'd use awk, I guess | 12:35 |
ente | awk '/^HEADER$/ { h = 1 } | 12:36 |
Evil_Bob | ente: where do you have regex.h from ? | 12:36 |
ente | /^FOOTER$/ { h = 0 } | 12:37 |
*** treach has joined #crux | 12:37 | |
ente | h && /some regex/ { fancy replace }' | 12:37 |
ente | or python :P | 12:37 |
ente | Evil_Bob: libc | 12:37 |
ente | Evil_Bob: it's called POSIX regular expressions for a reason ;) | 12:37 |
jaeger | hrmm | 12:37 |
Evil_Bob | heh | 12:37 |
Rotwang | use Perl; | 12:38 |
Rotwang | someone had to say that | 12:38 |
ente | yeah | 12:38 |
ente | I don't know perl though :) | 12:38 |
Rotwang | perl is perfect tool for such jobs | 12:38 |
jaeger | the problem is the header and footer text change, though I guess I could match them all | 12:39 |
*** Zaba has joined #crux | 12:40 | |
treach | ente: speaking of your java-coreutils, I just found this -> http://jawk.sourceforge.net/ | 12:54 |
ente | heh, nice | 12:54 |
ente | now debug my replac.e | 12:54 |
ente | replace.c, please :P | 12:54 |
*** mike_k has quit IRC | 13:22 | |
*** andarius has quit IRC | 13:43 | |
*** DaViruz has quit IRC | 13:54 | |
*** DaViruz has joined #crux | 14:10 | |
*** treach has quit IRC | 16:01 | |
*** et-0nline has quit IRC | 16:49 | |
*** Evil_Bob has quit IRC | 17:02 | |
*** lasso has quit IRC | 17:47 | |
*** aubic has joined #crux | 17:58 | |
prologic | import this | 18:26 |
*** Rotwang has quit IRC | 19:38 | |
Romster | jaeger, ffe perhaps http://ff-extractor.sourceforge.net/ | 20:42 |
jaeger | I ended up implementing it in python but that looks like it could be interesting | 20:43 |
Romster | it's in my romster repo. if you wanna try it. | 20:45 |
jaeger | ok, I'll keep that in mind | 20:46 |
Romster | though i think it's better for more complex flat file extraction. than what your doing. | 20:46 |
Romster | i have some days off, wonder how hard it is to make a 64bit compiler tool chain. but i'd like to keep the, or it might just be easier to go multilib. 32bit one for wine and such. | 20:48 |
Romster | i could just look at the crux 64bit | 20:57 |
Romster | and overlay 32bit libs toolchain? | 20:57 |
*** Dudde has quit IRC | 21:45 | |
*** Dudde has joined #crux | 21:46 | |
ThePub | jaeger: awk '/^Text/ {fn=$2} /^num/ {i=1; while (i<NF) {print fn "-" $i; i++}}' | 22:30 |
ThePub | "^num" could be anything, /^([0-9]+ )+/, for example could work if it's just a sequence of space seperated numbers, etc | 22:31 |
ThePub | you could also process based on FN | 22:32 |
ThePub | awk '{if(FN=2){fn=$2}if(FN=4){i=1;while(i<FN){print fn "-" $i; i++}}' | 22:33 |
ThePub | I'd suppose by this time though you've found a solution :) | 22:34 |
jaeger | I wrote a python script to do it but it's always nice to learn a bit more awk usage | 22:36 |
jaeger | so thank you :) | 22:36 |
ThePub | I never use awk myself and would've probably turned to a python re case too. Although, if you "know" regex the awk syntax is really simple since each pattern space is based on the RS, which is by default a new line. | 22:37 |
ThePub | you could actually do the above awk script in pure bash too, but it would be a painful 20 lines or so :) | 22:38 |
* ThePub thinks anyways | 22:38 | |
* ThePub wanted to try musca but it doesn't support xrandr | 22:39 | |
ThePub | tmux drops normal user group settings when run but root keeps them. very strange. | 22:42 |
ThePub | anyways.. brace yourself. bbiab. | 22:43 |
*** ThePub has quit IRC | 22:43 | |
*** ThePub has joined #crux | 22:53 | |
ThePub | Anyone using nouveau multihead? if so, I have an interesting "problem" that would be nice to solve. | 23:02 |
ThePub | I'd like to turn off my other monitor outputs while booting and at the console, keeping DVI-I-1, and then enable the secondary displays when starting X. | 23:03 |
ThePub | unfortunately, it seems that while you can kind of get that to work with xrandr.. it doesn't appropriately proportion the framebuffer and so it's not as correct as starting up with everything on. | 23:04 |
Romster | shame you can't use multiple monitors on different tty's? | 23:13 |
ThePub | not really :) another issue nouveau has is that while it accepts the kernel monitor settings, it sets all of the monitors to the smallest size. | 23:20 |
*** jaeger has quit IRC | 23:21 | |
ThePub | so, like right now, what would be a 1680x1050 console is running at the smallest resolution of 1280x1024. | 23:21 |
*** jaeger has joined #crux | 23:21 | |
*** ChanServ sets mode: +o jaeger | 23:21 | |
Romster | i guess that's a bug/feature of nouveau | 23:22 |
Romster | perhaps it can't handle the higher res yet. | 23:22 |
Romster | what card are you running nouveau on? | 23:22 |
Romster | is it even usable? | 23:22 |
ThePub | it runs fine with just a single monitor. on the oconsole though I think becuse it's using the same console mirrored across all monitors it needs a common resolution. | 23:22 |
ThePub | under X of course, everything works fine. | 23:23 |
ThePub | it's an NV50, 9800GS, it's well supported under nouveau. | 23:23 |
*** dxtr has quit IRC | 23:24 | |
*** dxtr has joined #crux | 23:29 | |
*** dxtr has quit IRC | 23:29 | |
*** dxtr has joined #crux | 23:29 |
Generated by irclog2html.py 2.11.0 by Marius Gedminas - find it at mg.pov.lt!