Home Page   #c  #ruby-lang  #cisco  #mysql  #apache  #javascript  #java  #perl  #php  #openmoko   Wallpapers Girl
Reliable $1 Web Hosting by 3iX

Channels


#perl

11 October 2007


Total 34 pages. You are browsing page 1/34.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last

--- Log opened Thu Oct 11 00:00:06 2007
--- Day changed Thu Oct 11 2007
00:00 <****> ror: wouldn't it be easier to use a nongreedy wild then a backreference like 1?
00:00 <****> ror: oh.
00:00 <****> you should never use those three
00:00 <****> what's the alternative and why are they so bad?
00:01 <****> it's bad karma
00:01 <****> just curious, I'm new and reading learning perl 3rd ed where I've recently read about them
00:01 <****> clearly anything I know is rubbish and out dated
00:01 <****> Not necessarily. :)
00:01 <****> well, that's all i needed. thanks.
00:01 <****> bye.
00:02 <****> it can make some programs unexpectedly slow
00:02 <****> oh yeah the book did mention that
00:02 <****> ...if $& and friends are used *anywhere*
00:09 <****> 500 Internal Server Error
00:09 <****> Sorry, something went wrong.
00:09 <****> A team of highly trained monkeys has been dispatched to deal with this situation. Please report this incident to customer service.
00:09 <****> (youtube)
00:15 <****> it'd be cool if there was some kind of reverse chomp (if no newline, add one).
00:18 <****> s/\n?$/\n/
00:18 <****> Woosta: yeah, i know.
00:19 <****> Woosta: i already do it, but it would be cool if there was a pmohc();
00:19 <****> so i made a subroutine.
00:19 <****> randomly named?
00:19 <****> eval: reverse 'chomp'
00:19 <****> Zoffix: pmohc
00:20 <****> sub pmohc { s!(?:\Q$/)?\z!$/! for @_ }
00:20 <****> ahh .. yeah .. right ..
00:20 <****> not much better than randomly named
00:21 <****> erm? mauke won't the \Q do until the end of the regex?
00:21 <****> oh, I forgot the \E
00:21 <****> GumbyGumby?
00:21 <****> SubStack: Well done, now git your fuckin' mouth closed, fat man, this ain't any of your homeworld, usul.
00:21 <****> heh
00:21 <****> Damned stupid php and it's programmers!
00:21 * SubStack sits quietly.
00:21 <****> Why are there no experts?
00:22 <****> I ask: "Is there a test framework for PHP akin to perl's 'make test'? Something that isn't going to require an end user to install anything third-party ?" .... **crickets chirp**
00:23 <****> Surely in 3000+ core functions someone thought to write some testing code
00:23 <****> nevar
00:23 <****> they probably did, but nobody bothered to test it
00:24 <****> lol
00:27 * CPAN upload: Hash-Dirty-0.021 by RKRIMEN
00:28 <****> Heh.... dirty?
00:31 <****> GumbyGumby: GumbyGumby
00:31 <****> simcop2387: Gumbygumby, how's life.
00:41 * Woosta wants PHP to understand POD and perl to understand what I mean. Then I can write the one set of docs for both and have "=for perl" and "=for php"
00:42 <****> what do i use as an iteration counter if i traverse an array by decrementing it using for (reverse @a) ?
00:43 <****> do i have to make my own?
00:43 <****> if you need one, yes
00:43 <****> if you need one, use an old-school C-style loop with a decrementer
00:44 <****> for ( reverse 0 .. $#a ) {
00:44 <****> yeah that's what i was using when someone told me to use the new style perl loops
00:46 <****> nocturnal: the, uh, what?
00:46 <****> nevermind
00:46 <****> thanks
00:47 * apeiron kicks ATI and the 6.7.193 radeon drive rfor xorg.
00:47 <****> You'd think doing an *upgrade* won't *reduce* your maximum res. =\
00:48 <****> apeiron: the higher res was a BUG!
00:48 <****> Khisanth, ehh sod off. :)
00:49 <****> I was getting pretty comfortable with my 1400x1050!
00:49 * Khisanth hits apeiron over the head with a shovel and covers him in sod
00:49 * apeiron X.X
00:58 <****> aight, another stupid one, how do I delete blank lines in a foreach output, tried this "print $line if (!/^$/);" but no workey
00:59 <****> delete?
00:59 <****> ah, not output
00:59 <****> eh?
00:59 <****> print unless $_ eq '' foreach @array
00:59 <****> apeiron: I'd yell at somebody if I were you.
01:01 <****> reflexive, A buncha other people on the FreeBSD mailing lists have been bitching about it, so I'm certainly not the only one.
01:01 <****> Excellent :)
01:03 <****> Anyway, now that I have one of Those Job Things [tm] I'm going to look into getting a non-suckass card.
01:03 <****> (read: NVIDIA)
01:04 <****> apeiron: you found one? awesome! congratulations!
01:04 <****> Caelum, Thank you. :)
01:06 <****> apeiron: they both suck equally
01:06 <****> apeiron: Getting a nvidia, or getting a non-nvidia?
01:06 <****> Khisanth, At least NVIDIA provides binary drivers for FreeBSD. :)
01:07 <****> Khisanth: what cards do you recommend?
01:07 <****> ATI says "hey, screw you, demon worshippers", so they can sod off. :)
01:07 * Khisanth hits apeiron over the head with another shovel and covers him in more sod this time
01:07 <****> Until those open sores ATI drivers reach maturity, I'm never touching ATI again.
01:07 <****> Khisanth, Why do you hate me? :(
01:08 <****> jagerman: i agree. i've never had ATI drivers install/work correctly.
01:08 <****> it's a reflex!
01:08 * Khisanth blames reflexive
01:08 <****> jagerman: the xorg ati drivers work extremely well with the older radeons
01:09 <****> Caelum: are they accelerated?
01:09 <****> and I haven't had them crash my machine, unlike the binary ati drivers
01:09 <****> pravus: yes
01:09 <****> Caelum: I don't think I'd say "extremely" well.
01:09 <****> I use them on my notebook, with a radeon 9000
01:09 <****> They are a little bit accelerated
01:10 <****> last time i used them, they were abyssmal
01:10 <****> enough for xscreensaver-gl, which is all I care about :)
01:10 <****> but that's been a long time ago
01:10 <****> But, before ati dropped support for my radeon 9000, they ran at something like 40% of the 3d speed of the fglrx crap.
01:11 <****> jagerman: ATI won't give the full specs to the devs
01:11 <****> Also, I could get better battery life with fglrx and its power saving mode.


Total 34 pages. You are browsing page 1/34.

First :: Prev :: [1] [2] [3] [4] [5] [...] :: Next :: Last


Tutti i nuovi CAP Italiani. Come ottenere il database completo