Log for #unixhelp on 2007-12-30


Session Start: Sun Dec 30 00:00:00 2007
Session Ident: #unixhelp
[00:31] <Mouring> hrmm..
[03:38] <Mouring> hmm.. I'm really starting to like lighttpd.
[09:35] <joez212> hello
[09:44] <Mr_You> hi
[09:46] <joez212> I wonder if someone could tell me how to remove a character from column 38
[09:46] <joez212> my work place insists we check for this character manually using pico and d
[09:47] <Figz> do you want to remove it (and shift everything beyond), or replace it with a s
[09:47] <joez212> remove the entire line, and save it to a file
[09:47] <Figz> doesn't follow
[09:48] <joez212> so there is a character in col 38 that causes some headaches for us
[09:48] <joez212> if I can detect if this character is in col 38, i need to remove that line
[09:49] <joez212> saving it to a file just to keep track of them
[09:49] <Figz> that's a very different question
[09:49] <joez212> sorry
[09:49] <Figz> what's the character?
[09:49] <joez212> R
[09:49] <Hawson> are you just artbitrarily stripping char 38?
[09:49] <joez212> no
[09:49] <joez212> because W's can also come up in that column
[09:49] <Hawson> or doing something like: if (char38 == 'R') { strip}
[09:50] <Hawson> okay
[09:50] <joez212> so it can only be "R"s
[09:50] <Figz> so you want to both remove the lines from the original file, and save the line
[09:52] <Figz> awk 'substr($0, 38, 1) == "R" { print >> "rejects.txt"; next } { print &
[09:52] <Hawson> beat me to it. :-P
[09:52] <joez212> wow thanks guys
[09:54] <joez212> figz: that's correct
[09:54] <Figz> ok.. the awk above does that.. it'll keep appending to those files indefinitel
[09:55] <Figz> run it like: awk 'substr ... < origfile.txt
[09:55] <joez212> you mean it will show each "hit" ?
[09:55] <joez212> ahhh
[09:55] <Figz> just run it once and it should be clear what it's doing
[09:56] <joez212> thank you figz
[09:56] <joez212> I hope I don't get in trouble for trying this to save me some time
[09:57] <joez212> so I will need to test it on previous files processed already
[09:57] <Hawson> run the script, and double check by hand
[09:57] <joez212> hawson: for sure
[09:57] <Hawson> do that for a few weeks
[09:57] <Hawson> then decide what broke. :)
[09:58] <joez212> I have another problem :)
[09:58] <joez212> this file has the number of lines on the first line
[09:58] <joez212> so for example it might say 45034
[09:58] <joez212> indicating it has 45034 lines
[09:58] <Figz> you want that updated?
[09:58] <joez212> obviously when I run the awk command, it will need to be updated since it w
[09:58] <Figz> grumble grumble
[09:58] <joez212> figz: correct, that would be great
[09:59] <joez212> lol
[09:59] <Hawson> hehe
[09:59] <Figz> are you sure you don't want it as the *last* line?
[09:59] <Figz> heh
[09:59] <Figz> silly originalcoderz
[09:59] <joez212> figz: positive, its on the first line
[09:59] <Hawson> so, the file looks like:
[09:59] <joez212> i forget the column numbers
[09:59] <Hawson> 1241
[09:59] <joez212> but its say 10-15
[09:59] <joez212> column where it contains the number of lines
[09:59] <Hawson> Aaronite Aaronitic Aaru Ab aba Ababde R babua abac abaca abacate abacay
[09:59] <Hawson> (there's an R in col 38)
[10:00] <joez212> so i check the number of lines manually
[10:00] <joez212> and subtract one
[10:00] <joez212> and adjust the line manually
[10:01] <Hawson> wc -l filename
[10:01] <Hawson> will count the lines
[10:01] <joez212> its just that the other day I made a mistake
[10:01] <joez212> if I could automate this i coudl easily avoid mistakes
[10:01] <joez212> I put 853 when it was 835 :(
[10:02] <joez212> using the wc command is a great idea
[10:02] <joez212> thanks hawson
[10:02] <joez212> hmm
[10:02] <Hawson> is the 1st line *just* the record count?
[10:02] <Figz> awk 'substr($0, 6, 1) == "R" { print >> "rejects.txt"; next } { print &g
[10:02] <Figz> cheap version..
[10:02] <Hawson> heh
[10:03] <Figz> an alternative would be to store all the lines in ram, but I don't know how bi
[10:03] <joez212> hawson: it has other bits of information as well
[10:03] <joez212> figz: some of the files are around 45k lines but some can be over 500k line
[10:04] <Hawson> they want you to check a 500k text file by hand?
[10:04] <joez212> hawson: I got in trouble when I said, doing that is not very efficent
[10:04] <joez212> and was told that there is no alternates!
[10:04] <joez212> :(
[10:06] <joez212> figz: thanks so much for your assistance
[10:06] <Figz> awk 'substr($0, 6, 1) == "R" { print >> "rejects.txt"; next } { output =
[10:06] <Figz> there's a ram based version
[10:07] <joez212> thanks again figz
[10:08] <Figz> okie
[10:08] <joez212> i wish i could pay you for your assistance figz
[10:09] <joez212> these statements will make things soo much easier
[10:09] <joez212> might not be a good idea to use them
[10:09] <Figz> oops..
[10:09] <Figz> replace "6" above with "38"
[10:09] <joez212> ok
[10:09] <Figz> just a gotcha.. I tested, but not on long lines
[10:09] <joez212> i will need to check it later unfortunately
[10:15] <Hawson> figz takes paypal
[10:16] <joez212> lol
[10:18] * stdio is now known as _stdio
[10:20] * _stdio is now known as stdio
[10:30] <excrete> hi, i have a question about unix. can someone here help me please?
[10:38] <arno> hah
[10:43] <joez212> hmm
[10:51] <joez212> i can't get it working figz
[10:51] <joez212> tried a sample file
[10:54] <joez212> the first example
[10:56] <joez212> it only makes a passes.txt file
[10:56] <joez212> no rejects
[10:57] <joez212> oh nevermind
[10:57] <joez212> lol
[10:58] <eucalre> i'm not sure why people keep removing or trying to modify the ban on dolbe
[11:00] <m10> just out of curiosity, dolbe ?
[11:00] <eucalre> m10 *** excrete (~crap@pool-70-105-26-116.rich.east.verizon.net) has joined
[11:00] <eucalre> +channel #unixhelp
[11:00] <eucalre> <excrete> hi, i have a question about unix. can someone here help me
[11:00] <eucalre> that's dolbe
[11:01] <m10> I figured that much, I was more curious about what happened (not that I really
[11:15] <GlowWorm> http://rage3d.com/board/showthread.php?t=33912056 (Poll: Realtek v. Audigy
[11:26] <p3n1x420> audigy 1 just cuz most games are for it
[11:27] <p3n1x420> and by not using onboard sound, your e-penis gains another inch
[11:30] <GlowWorm> but this is high quality onboard
[11:30] <GlowWorm> its got the codecs on a riser board
[11:33] <eucalre> m10 he's not fully upstairs, but he got a foothold in here and the other ch
[11:45] <GlowWorm> i like msn.com better than google search
[11:45] <eucalre> and
[11:45] <eucalre> there are better ways to troll for a kick
[11:45] <GlowWorm> seems better than google
[11:46] <GlowWorm> i am being honest, eucalre
[11:46] <GlowWorm> the search results are more relavent
[11:46] <eucalre> do you know why god gave us 2 hands?
[11:46] <GlowWorm> first of all, i am far from interested
[11:46] <GlowWorm> :)
[11:46] <eucalre> because some people don't like to use their right hand to toss off
[11:47] <GlowWorm> eucalre puss
[12:05] <merdiva> hi :)
[12:29] <oakxx> why do i get kicked for flood from the server when i log in sometimes to irc.
[12:40] <eucalre> you probably attempt to join too many channels, and your client does a /nam
[12:51] <oakxx> yes thats it.
[13:00] <tcsetattr> what information do you get from /names that isn't already in the message
[13:13] <eucalre> tcsetattr most clients automatically do a /names when you join a channel
[13:15] <eucalre> *** Current value of SHOW_CHANNEL_NAMES is ON
[14:21] * _DigitalU is now known as DigitalUN
[14:26] * Mouring yawns
[14:47] * DigitalUN is now known as Red|X
[14:47] * Red|X is now known as DigitalUn
[15:58] * Disconnected
[15:58] * Attempting to rejoin channel #unixhelp
[15:58] * Rejoined channel #unixhelp
[15:58] * Topic is 'Happy Birthday Mr_You!'
[15:58] * Set by Hawson!~hawson@c-69-140-200-183.hsd1.md.comcast.net on Sat Dec 29 22:03:29
[16:01] * DigitalUn is now known as Red|X
[16:09] <Church> Mouring: that was just relink after netsplit ;>
[16:12] <GlowWorm> going dual-core makes up the performance difference between dedicated and
[16:14] * Mouring yawns... Why not go quad-core and ditch your dedicated video chip.
[16:18] <roycroft> i have one of my websites almost converted to my new template system
[16:18] <roycroft> i'm loving it - i'm using m4 and makefiles to generate the site
[16:18] <Hawson> roycroft goes OldSkool
[16:19] <roycroft> it's way faster and easier than any of those fancy-shmancy php or ruby sys
[16:19] <Hawson> generates static HTML files?
[16:19] <roycroft> yes
[16:19] <Hawson> that's why it's faster. :)
[16:19] <roycroft> yes
[16:19] <GlowWorm> Mouring because dedicated GPUs are more powerful than CPUs still
[16:19] <roycroft> and if i need to do some dynamic stuff i can easily incorporate that
[16:20] <Hawson> Slashdot uses static pages for many things
[16:20] <GlowWorm> Mouring much much better floating point performance
[16:20] <Hawson> the main page, etc
[16:20] <Hawson> GlowWorm: only for certain things
[16:20] <roycroft> most pages that are parsed can be static
[16:20] <GlowWorm> Hawson yeah like their intended purpose, how about that?
[16:20] <GlowWorm> Hawson they're much better at "certain things" such as their purpose
[16:20] * GlowWorm laughs at Hawson
[16:20] <Hawson> gee, that's an impressive observation
[16:21] <Hawson> specially designed things are good at what they do
[16:21] <GlowWorm> Hawson you're obviously an idiot because i am purposefuly mocking your "ob
[16:21] * GlowWorm laughs at Hawson
[16:21] <GlowWorm> ban ban ban
[16:21] <GlowWorm> get some deodarant
[16:21] <GlowWorm> you need some BAN DEODORANT
[16:21] <GlowWorm> BAN
[16:22] <Hawson> you're just asking for it, aren't you?
[16:22] <GlowWorm> i dont care
[16:22] <GlowWorm> at all
[16:22] <Hawson> obviously
[16:22] <GlowWorm> i am ALWAYS banned here
[16:22] <GlowWorm> i care less :)
[16:22] <Hawson> for good reason, it seems
[16:22] <GlowWorm> Hawson you are clearly an idiot
[16:22] <tcsetattr> but turning off SHOW_CHANNEL_NAMES doesn't prevent your client from getti
[16:22] <GlowWorm> trollbait
[16:22] <GlowWorm> Hawson = trollbait
[16:22] <Hawson> yes, you are a troll.
[16:22] <Hawson> *plonk*
[16:22] <GlowWorm> Hawson a troll who eats your bait :)
[16:22] <Mouring> roy, I have a half written set of LUA scripts for lighttpd that if you writ
[16:22] <GlowWorm> thank you
[16:23] * GlowWorm is a WELL fed troll today
[16:23] <Hawson> I'm always happy when I remember /ignore
[16:23] <Mouring> the whole lighttpd setup lends itself to a lot of nice tricks.
[16:23] <GlowWorm> Hawson because you're less of a man without it
[16:23] <GlowWorm> lol
[16:23] <Hawson> anyway
[16:23] <GlowWorm> Hawson fails to stand up
[16:23] <roycroft> cool, mouring
[16:23] <Hawson> roycroft: there are some pages that /. uses that are, I think dynamic, since
[16:24] <roycroft> even forum pages and the like can often be static
[16:24] <roycroft> it all depends on how much traffic they get
[16:24] <Hawson> roycroft: yeah, they are
[16:25] <Hawson> regenerated every minute (literally)
[16:25] <roycroft> if they're low traffic it can be more efficient to regen with every post
[16:25] <Hawson> and to solve the problem of having to regen *every* story, they archive/free
[16:25] <roycroft> yes, high traffic could be done that
[16:25] <roycroft> way
[16:25] <roycroft> it's in between where dynamic makes sense
[16:26] <Mouring> roy, I just haven't put anything into place... It is massively distruptive
[16:26] <Hawson> Say what you like about slashdot regarding content/bias/attitude, they have
[16:26] <roycroft> sites that paginate forum posts without allowing the user to adjust the pa
[16:26] <roycroft> freeze each page as the next one is generated
[16:26] <roycroft> that only breaks if people are allowed to edit their posts, but most forum
[16:27] <roycroft> i'm doing virtually all presentation with css now, mouring
[16:27] <roycroft> i have a few old tables left that i need to finish dismantling, but that w
[16:28] <roycroft> and i'm separating all the
[16:28] <Hawson> CSS always strikes me as a *HORRIBLE* implentation, but a good idea
[16:28] <Hawson> truely awful language/syntax
[16:28] <roycroft> "theme" elements out of the main css files
[16:28] <roycroft> yeah, but it's not very complex, so it doesn't matter much how horibly imp
[16:28] <roycroft> horribly
[16:29] <Hawson> that's true to an extent
[16:29] <roycroft> well you know what i mean
[16:29] <Hawson> but an ugly language lends itself to ugly code
[16:29] <roycroft> and yes, it would be good if it were done better
[16:29] <Hawson> and CSS has that in spades--more than Perl
[16:29] <roycroft> but to be honest i'd rather see effort going into making web browsers more
[16:30] * Hawson nods
[16:30] <roycroft> that's the real ugliness about the web
[16:31] <roycroft> that's also most of the ugliness that i see in people's css
[16:31] <roycroft> all the browser-specific hacks
[16:31] <roycroft> the ie family is down to about 56% of web traffic now, btw
[16:31] <Hawson> heh
[16:32] <Hawson> wow
[16:32] <roycroft> as soon as it dips belowe 50% people can start ignoring it
[16:32] <roycroft> and not doing ie-specific hacks
[16:32] <roycroft> firefox is at 34%
[16:32] <Mouring> HTML 1.0 or bust
[16:32] <Hawson> Isn't IE7 actually compliant?
[16:32] <Hawson> I wouldn't actually know, since I haven't used it in years
[16:33] <Hawson> (any version)
[16:33] <Mouring> IE7 looks like a pig threw up.
[16:33] <Hawson> heh
[16:33] <roycroft> i haven't seen it
[16:35] * roycroft has the structural work done now, and need to start on the eye candy part
[16:35] <Mouring> But I'm starting to dislike Firefox 3.0
[16:35] <roycroft> i only recently discovered the sliding doors technique, and that's going t
[16:35] <Hawson> Mouring: why?
[16:35] <Hawson> roycroft: what's that?
[16:35] <roycroft> you know my feelings about firefox :)
[16:35] <roycroft> hawson: it's a way to make things like buttons or tabs with rounded corner
[16:36] <Mouring> Hawson, you can't click on the favorate icon and it highlights the text.
[16:36] <roycroft> it's actually quite a simple idea
[16:36] <Mouring> I thought I'd like the new URL bar, but where it use to take me 2 or 3 char
[16:36] <roycroft> say you're making a menu tab with the top corners rounded
[16:37] <roycroft> you create one that's really really wide in photoshop (like 300 px or so),
[16:37] <Hawson> at the top of the page, for example? like a "products", "support", and "con
[16:37] <roycroft> then you save the rest of it as tab.right.png
[16:37] <roycroft> yeah
[16:37] <Hawson> k
[16:39] <roycroft> then you apply tab.right.png as the background image to each list element
[16:40] <roycroft> what happens is each list element loads right.tab.png flush right and trun
[16:40] <roycroft> then left.tab.png is loaded on top of it on the left side of the container
[16:40] <roycroft> so the tab can slide in size, depending on the width of the container (whi
[16:41] <roycroft> i used to make multiple tab images, one for each tab, depending on how wid
[16:41] <Hawson> neat
[16:41] <roycroft> yeah, it works really well, and uses no javascript or any other junk
[16:41] <Hawson> also good
[16:42] * merdiva- is now known as merdiva
[16:43] <roycroft> it can be used for other things besides navbars
[16:43] <roycroft> including buttons, columns, whatever
[16:46] <Hawson> oh look, a computer in china is scanning me
[16:46] <Mouring> Hawson, scan it back with maximal force.
[16:46] <DesktopDa> hrmph, need to find another .22LR gun with longer barrel
[16:47] <Mouring> Desktop, Get yourself a 20-odd-6.
[16:47] <Hawson> it's an active ssh scan
[16:48] <Hawson> 58.60.230.84
[16:48] <Mouring> Oh that.. IP.. That just be my Homey Ho... Ho is just giving you a bit of a
[16:50] <Hawson> asdfa
[16:50] <DesktopDa> and a little heavier.. the wife couldnt shoot my little S & W, however sh
[16:50] <DesktopDa> brb
[16:51] <LaptopDan> Mouring, i am looking for something that is cheap and easy to shoot why i
[16:51] <Mouring> Eeepp.. The Dans are popping out of the woodworks.
[16:52] <LaptopDan> yeah, wife got on the desktop
[16:53] <roycroft> as long as we don't see CrapperDan or ShaggingDan
[16:53] <Mouring> PeeingDan?
[16:53] <LaptopDan> heh
[16:53] <roycroft> none of that
[16:54] <LaptopDan> thinking about getting a Walther P22
[16:55] <Mouring> Dan, no 12 gauge then.=)
[16:55] <LaptopDan> heh, hand guns =]
[16:55] <Mouring> Dan, she would love the the rife the military now uses for snipping.=) No
[16:55] <LaptopDan> heh
[16:56] <LaptopDan> tried shooting a 38 special short barrel revolver.
[16:56] <LaptopDan> That didnt go to well
[16:56] <Mouring> Sawed off shotgun
[16:57] <LaptopDan> just wonder how much of a kick a .40 SW would have
[17:06] <Mouring> From electric toothbrushes to "sonic scrubbing" devices.
[17:06] <Hawson> Conversations with, and about, my electric toothbrush
[17:15] <roycroft> i got a waterpik a month or so ago - i really like it
[17:15] <LaptopDan> i dont know want to know, what you do with your electric toothbrush
[17:15] <LaptopDan> wtf did i type
[17:15] <LaptopDan> i dont want to know what you do with the vibrating electric toothbrush.
[17:16] * Hawson daydreams
[17:16] <LaptopDan> hrmph ok i wont be buying any other caliber
[17:16] <LaptopDan> friggen expensive
[17:17] <LaptopDan> considering i got 500 .22 for 12 bucks
[17:18] <Mouring> Dan, you've not priced out Rifled 20 gauge slugs.
[17:18] <Mouring> 12 may by you 6 shells.
[17:21] <Church> Mouring: btw, what are you using on deer hunt?
[17:21] <Hawson> an AR-15
[17:22] <Mouring> 20 gauge remington express. I have two rifled barrels. One with a scope an
[17:23] <LaptopDan> I havent got into the rifles yet
[17:23] <Mouring> Dan, these are shotguns.
[17:23] <Mouring> Just they have rifled barrels for greater distance.
[17:23] <LaptopDan> ah.
[17:24] <Hawson> using slugs?
[17:24] <LaptopDan> i have shot a 12 and a 20
[17:24] <Mouring> hawson, no birdshot. =)
[17:24] <LaptopDan> i want to shoot my dads 4/10
[17:24] <Hawson> and rifling actually helps?
[17:24] <Mouring> hawson, with slugs yes.. birdshot no.
[17:24] <Hawson> that's what I thought
[17:25] <Mouring> You'll screw up the barrel if you used birdshot.=)
[17:25] <LaptopDan> there a guy at the range that had a 44mag it was friggen loud with ear mu
[17:26] <Church> i doubt there is any logical need for hipower rounds :/
[17:26] <Church> maybe he was compensating something? :)
[17:26] <Hawson> Church: squirrel hunting
[17:26] <Mouring> church, what?! you have to be able to kill that mugger at 5 miles away. =)
[17:27] <Mouring> hawson, you have no clue how tempted I've been to kill some black and red s
[17:28] <Hawson> Mouring: I'm not going to stop you. :)
[17:28] <Mouring> Bloody things chatter like there is no tomorrow.. and make so much noise it
[17:50] <Church> ambient noise might help hide you, just as sudden quietness reviel ;>
[17:52] * Hawson likes the ambient sounds of gunfire and the screams of pain of squirrels
[17:52] <Church> lol :)
[17:56] <Mouring> church, deer and squirrel talk.. the damn squirrel are say.. "Hey.. Bambi..
[18:05] <Church> just bribe squirels so that they give dezinformation to deers :)
[18:10] <Mouring> I refuse to give my nuts to any damn rodent.
[18:11] <phusnikn_> http://www.youtube.com/watch?v=iWqGLVaITsk
[18:11] <Hawson> Mouring: well, those furries...
[18:16] <Mouring> Only you would bring up furries.
[18:25] <Mouring> I didn't KNOW she was a furry until after she undressed!!!
[18:25] <eucalre> thanks for the tmi
[18:30] <Mouring> I forget you like the BDSM type.
[18:33] * eucalre changes topic to 'If the old year was pretty crappy, what makes you think the new
[18:45] <LaptopDan> hrmph\
[19:00] <Mouring> hrmph.. hrmph.... Hey. I didn't get a hrmph from that guy!
[19:33] <Al-Muhaji> hi, I need some help
[19:34] <Al-Muhaji> allo?
[19:34] <Hawson> hello
[19:34] <Hawson> it's usually best to just ask--someone will answer if anyone is around
[19:34] <Al-Muhaji> when I try to join other channels it says "RBL @ dns something something
[19:37] <LaptopDan> efnet checks for proxy
[19:37] <LaptopDan> nothing to worry about
[19:37] <LaptopDan> also some channels check also
[19:37] <Al-Muhaji> okay. I just wondered if I would be banned from other web sites or chann
[19:38] <LaptopDan> hrmph, i dont think i can handle shooting a glock =\
[22:27] <Mr_You> some IRS phishing is making its rounds.
[23:55] <Mouring> <frown>
Session Close: Mon Dec 31 00:00:00 2007