| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
Comments:
<0> GumbyBRAIN will wank for coins <1> DoctorMO: he's attempting humor based on widely believed, but misunderstood stereotypes .. I say we knife him <2> not tiny <2> done paypal integration before, it's a pain <2> do you have a DB configured? <3> yeah <2> ah <2> yes <4> Woosta, I'm from the uk I know nothing! <2> ditto DoctorMO <5> Dngor - you lost me at home went out and hitting your head in order for that is wank. <6> hummm anyone know postgresql? <3> Schmooster: check /msg <4> GumbyBRAIN, no more esspriso for you! <5> I wonder if regexp::common::zip to match the end of the church of the more you need for home then. <1> samasama: sort of .. ask away .. I'll see if I can help
<6> Woosta: I'm trying to figure out how to get all the values out of a field... select field.foo from table; only gives me one field <7> GumbyBRAIN: get superuser <5> i see. You are not a superuser. <6> or one line of data <1> samasama: in the console? <6> samasama: yeah <1> LOL .. you don't need to type your own name :-P <1> In that case, I posit that there's only one row in the table <1> Though I don't quite understand field.foo .. ? <1> Normally "SELECT field1, field2 FROM table" <8> Woosta: you want all columns in a table? <8> SELECT * FROM table; <8> err <9> Gumbybrain be legacy <5> Http://www.legacy. <1> sparkman: get with the program and read the thread :) <9> ... <9> hahahah <9> a legacy root tld! <8> s/woosta/samasama/ <9> in more ways than one... hahaha <1> samasama is asking .. not me :) <6> Woosta: Guy I work with says check out these fields... field.bar. field.foo field.baz in this table... I have no idea what he means though <8> yeah <8> it's 5 am <1> samasama: that's his actual line? <1> I'd guess 'field' is the table name <6> nah <1> SELECT bar, baz FROM field <8> samasama: "foo" "bar" and "baz" are common variable words <8> field? wtf? <1> samasama: x.y commonly denotes tablename.fieldname <6> " See the locations table. The fields customers.locations, <6> customers.phys_location, and products.location are location IDs." <6> That's exactly what he said HAHA <1> Yup <4> sparkman, only in comments, pod or tempory code, it'd hate to see what I'd do to someone who used that in real code <1> customers and products are the table names <8> DoctorMO: i've seen it *shudder* <1> so: SELECT location FROM products <1> Anyway .. I can smell dinner .. I'm outta here <8> or just: SELECT customers.locations, customers.phys_location, products.location FROM customers, products; <4> sparkman, it's worse that using $x for loops, worse than declaring all your variables at the begining of your methods *shudder) <6> Woosta: ahhhhhhhhhhhhh I see now I believe <8> DoctorMO: i've seen scripts where someone used strict, but declared all their variables global to main <1> sparkman: thought that can lead to weirdness if you don't understand what you're asking <8> Woosta: really? such as? <1> Well .. you're not declaring a join at all .. <4> sparkman, seen that too, all too much I've seen things like C patterns being used in perl code because someone didn't know how to structure perl objects correctly. <1> So you'll get customers * products results <8> heh <8> Woosta: right, they'll be mixed up <1> No <1> They'll be globally joined <1> If you have three customers and three products, you'll get nine results <1> Not 6 <8> heh <10> declaring your variables at the beginning of a method can be useful <8> depends on the use. <2> if the scope's right, yeah
<2> a little Tamarind one <11> how cute <9> haha Botje <12> s/\(ear\)/r\1/ <9> ftw <13> hi <13> I would like to learn perl <14> as would I. <13> now what? :) <15> chemaja, \1 better written as $1 at line 1 <16> and \( better written as ( <15> now STFG, RTFM and AYFQAR <16> where "better" means "works" <15> threat, learn.perl.org <13> yango, ok <16> backwhacking makes things less special, not more. <17> !ayfqar? <12> yea it's vanilla sed, not perl <12> :D <9> :D <9> merlyn, go back to bed! <18> hey guys i want to modify the values of a global hash from inside a sub but its just not working <16> first, global hashes are a sign of misdesign. <16> especially if you have to modify them in a subroutine <12> yango: AYFQAR? <15> ask your f question after reading <14> I need to read a csv file and have each line available as an array so I can then do a search and replace in a file. does it make sense to do it this way? <16> you probably want DBD::CSV instead <12> yango: i didn't ask a question... did i? <16> so you can treat the CSV like a database <15> chemaja, that wasn't meant for you <18> %settings = ("min_share" => "2GB","master" => "LAW_BREAKER"); #global ...... much later ..... sub{ $settings {"master"} = "newnick"; } <16> then you can do a standard SQL update command. <16> r3nd3r - you aren't paying attention, are you <18> i know its bad design <16> you insist on doing bad design instead <16> so fix the design first <18> fine but shouldnt this work ? <16> yes <16> so something is not as you say it <14> merlyn, I won't need to update the csv, its just used to keep configs for an app simple. the app will generate config files based on the csv data <14> would it still make sense to use dbd? <16> Oh - reading CSV, not writing? <18> well im reading the keys and values from a file <16> just use Text::CVS to read then <16> "im" <16> is your keyboard broken? <18> argh <16> you should fix that first. :) <16> Apparently, he left to fix his keyboard. <8> ah, Lego (tm), the building block toys of God Herself <8> oh tabs, how i loath thee <19> Non-perl as usual: let's imagine for a moment that I have gnome-btdownload pulling down some bukkake or something for me, but it is eating all my bandwidth. I don't want to stop it because it'll lose momentum, but I want to impose a bandwidth quota on it. <20> Brend, do you have tc installed? <19> It appears that I do <20> Brend, then you can use tc to do it. :) <19> I am reading the manpage and rapidly reaching the conclusion that this might not be worth the trouble :) <21> first time I've used one of these look behind ***ertion thingies <21> split("(?<=[^\r])\n",$f) <21> "split on \n but not on \r\n" <20> Brend, Unfortunally for you I don't find the code in which I used tc... :/ (Else I could give ytou some cl***es) <20> vorsprung, don't be silly. Use: (?<!\r) <9> Hey Brend :P <20> There is a postive look behind (?<=) and a negative look behind (?<!). <3> anyone looking to do a quick little project for some cash? <3> http://www.shellshark.net/temp/scope.txt <3> /msg me <21> Ani-_, ah right <21> Ani-_, that would be better <19> Ani-_, thanks for the pointer at least
Return to
#perl or Go to some related
logs:
#perl #linux socket.error: port/proto not found MySQLdb lampp #linux sdl rotate surface #web regex camelcase stdclass #kernel debian apt-get pcitools
|
|