| |
| |
| |
|
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> sili, i know it does :) <1> frog: neither. encapsulate them <1> access via interface <2> they're stored in the symbol table anyway <3> perl: The LiquiGell of OOP. <4> ugh, the ox-cart question was easier <5> how /quit <6> ok, thanx guys <7> Ok, I am in love with xul <1> meh <1> it's ok. <2> buu: we won't tell <7> "There is no data, only xul" <2> ITYM flickrs <1> IE doesn't do xul
<4> a born-again tag <7> IE IS GAYER THAN SILI. <1> obviously. <7> And IE ****s, who uses it <7> Come on now. <2> communists. <4> So when is XUL going to become a kernel module? <2> and gay people. <8> integral - XUL::Node , you mean? <7> integral: 15.32 minutes <4> ayrnieu: that's a _kernel_ module now?! <3> IE7 looks promising. <4> Ban the insane from CPAN! <8> integral - no, that's a question. XUL::Node is AFAIK yet CPAN. <4> No, I mean XUL support in the kernel <7> integral: Pssh, then there would be no cpan. <4> I don't mean a CPAN module <8> integral - um, I know, but by 'XUL support in the kernel', do you mean 'something that does what XUL::Node does, but which happens to reside in kernelspace' ? <7> ayrnieu: Stop applying logic to the situation. <2> nothing like logic to **** up an otherwise wonderful idea. <4> oh! No. I mean XML parsing, RDF databases, graphics rendering, and stuff; in the kernel. <2> integral: **** that. we need XML parsing HARDWARE! <8> XPU <2> indeed <2> you could even abuse the AGP port! <3> <bus type="agp"><device><name>ATI Radeon 9700</name>... <3> Yeah, that's fun. <7> hahahah <2> ehh, no <2> I meant put that xml processing card on the AGP port <7> http://www.faser.net/mab/chrome/content/mab.xul <7> That's really ****ing cool. <2> oh. that again <2> are there any *OTHER* useful XUL apps yet? <4> autrijus has used it for presentations <3> So what, exactly IS XUL? <8> Botje - I'll be using XUL for my LJ library. <2> ah <4> ew73: It's like HTML but designed for marking up user interfaces, not crap scientific documents <8> ew73 - well, a google search can tell you. It is yet firefox-specific. <9> hello. I don't know anything about perl but i'm try to edit a script I got. Could someone tell what $obj->{name} means? is this an attribute? <4> (lacking maths typesetting, so it must be crap science) <10> Using DBI, $dbh->selectall_hashref($statement, $key, \%attr) is it possible to get a straight key => value pairs hash instead of the hash of hashes? <4> f00: That's just a hash reference element access. <3> Ah, so I'm guessing 'UL' is maybe 'Userinterface Library' or somesuch? <8> foo - please stpo editing a script and start leaning perl -- or getting someone who knows Perl to edit this script for you. <10> Normally I juse use arrayrefs or binding, I thought perhaps adding { Columns => [1] } in the attr hashref might work but it's not <4> The union will be sending it's enforcers around shortly. <9> I will, but not now <8> arguile - that works just fine, depending on what you want to do. <8> arguile - oh, sorry, missed the first part of your question. <4> ugh, port makes integral werry sleepy <9> integral: thanks. If it's like $self->{val}, how am I expected to set that value? $self->{val} = "myval" is ok? <11> integral: Stop being so damned British. <3> arguile: selectall_hashref will use $key as the key for each record, which references a hash, whose keys are the column names. <11> integral: Next you will being having stilton and a digestive. <4> port's not british! <2> arguile: you want selectall_arrayref({}) <7> Heh, my favorite part about knowing Perl is listening to all the people who don't understand it criticize it. <2> buu: yeah! <10> Botje: That give you an array of hashrefs, no?
<7> "I really don't like perl because it's hard to understand [...] I never actually learned it" <4> Oh, just like maths then <3> Aye, selectall_arrayref, or, just use something like a while() and fetch each row in turn and build your own datastructure. <0> hows it go? "don't knock it til you try it"? <2> arguile: yes, isn't that what you wanted? <4> I mean, a profession where there's too many people wanting to do research, yet not understood by the general public?! <10> No, I want a basic hash from two fields, ... ie "SELECT id, name FROM foo" transforms to { id1 => 'name1', id2 => 'name2' } <2> integral: math is hard. <12> hola ninos y ninas <10> I thought there might be a utility method in DBI for it, I guess I'll just do it in two steps <7> integral: I was thinking more of the "professional linguist" type people <2> selectall_arrayref("select....",{})->[0] <2> that returns a hashref <2> oh blah <2> nm <2> i'm too tireded <12> I need to hit my ODBC connection using perl on a windows machine (activestate). Are there standard modules included in order to do this? <7> arguile: Er, what? <4> protron: DBD::ODBC. <7> arguile: Why on earth wouldn't you want an array? <12> integral: is it a standard module or do I need to go get it? <4> protron: Yes, it's standard and is available with any recent copy of CPAN. <12> integral: sweet. thanks. <12> integral: ...I don't suppose you could give a quick tutorial? :) <4> See what I did there? I reinterpreted the question and so didn't lie! <3> I like hashref for one record, and arrays of hashrefs for more than one! <11> I like it all crammed into a scalar. <3> mmm <12> integral: like, how would I send a SQL statement and retrieve the results? <7> protron: The documentation has a quick tutorial. <12> mmmkay <4> protron: it's just a DBI driver, so it uses the standard interfaces. <11> fetchall_scalar <4> I mean, can you call yourself a perl programmer without knowing DBI?! <3> ...and goatse orgasms. <13> integral, some people seem to be able to do that... :/ <12> integral: I don't call myself a perl programmer. I call myself a fat noob. <4> I don't want to know how <14> "chew" at 213.67.249.214 pasted "Use of implicit split to @_ is deprecated at ./script.pl line 38." (12 lines, 436B) at http://sial.org/pbot/15941 <15> haha.. <10> buu: Because the IDs are INT8 non-sequential ranges and it's being cached for a lot of lookups so hashing directly to that one value is faster. Anyways I'll just do it in two step :) <15> that was quick <13> stop using split in a void context. <4> chew: @something = split; never just split; on its own. <15> cheers ;) <12> GumbyBRAIN: shoehorn <16> protron: They just mailed my to let me dissuade you! <4> chew: where do you think the result of the split is ending up?! <7> arguile: That had absolutely nothing to do with it.. <13> $ps = split/\r/, $ps; ==> split returns a list. Not a scalar. <10> buu: Uhmm... that's why I don't want array... <7> arguile: You'd have an array of hashes storing your key,value pairs, instead of trying to store an array in a hash.. <2> chew: your ps returns \r ? <15> i get it now. thanks <11> integral: Go into Information Theory. <10> buu: I'm not trying to store an array in a hash, the value is a simple scalar. As I'm only concerned with one field as the value and one as the key that maps to it. <4> ah, yes, a thesis on where all the information that gets stuck down the back of sofas *really* goes to <7> Well, your example had two key/value pairs, but anyway, you can select that directly from DBI.. <7> {Slice=>{}} as I recall <10> buu: Tried both that and Columns => [ordinal number] seperately and together, neither worked. Thanks though. <17> can anyone point me to some good documentation about how to install perl modules as non root using CPAN? <4> ------> <17> man CPAN, and perldoc CPAN are not what I'm looking for <2> <------ <4> perlbot life with cpan <18> Information pertaining to the Comprehensive Perl Archive Network (CPAN) can be found at http://sial.org/howto/perl/life-with-cpan/ <3> ^^ <4> VV <3> \o/ <2> /o-
Return to
#perl or Go to some related
logs:
Bareword found where operator expected at (eval 4) line 1, near mdihs.net
GLX_SWAP_METHOD_OML practice-06.pdf how to check whether datas in two tables are same or different using MYSQL query uuidgen perl Across the Nigthingale floor decompyle 2.3.3 #dns prune automake emerge
|
|