@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
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 28 29 30 31



Comments:

<0> is it \x{deadbeef} for long ones, in a search pattern?
<1> tilrman: can i get a tiny File::Temp example?
<2> acidjazz: the module already has tiny examples . . . do you have a question about what they mean?
<1> tilrman: yea tryin to figure out how to use em :)
<2> hmm, yknow, if $file really is a filehandle, then open2 will work
<2> if you get the fileno from the filehandle and p*** it to open2(), highlight will read from it and you dont have to worry about it
<2> i always forget open2 is smart like that
<2> acidjazz: does the $file filehandle have a fileno?
<1> (my $fh,my $filename) = tempfile();
<1> tilrman: fileno ?
<1> Undefined subroutine &SVN::Web::View::tempfile
<2> acidjazz: the $file in your code . . . what kind of object is it?
<2> acidjazz: forget the tempfiles for a sec
<1> tilrman: file handle then i make it the content w/ $content = <$file>;
<1> tilrman: but see you cant pipe the file to highlight lien by line it has to be all of the content for correct syntax highlighting
<0> waht's the utf8 pragma?



<2> acidjazz: what makes you say that?
<0> should I be using a utf16 pragma to get this thing working?
<1> tilrman: its just common sense, matching brackets, etc.
<1> tilrman: ill try if you want but i doubt it
<2> acidjazz: changing that alone will not fix the problem
<1> tilrman: ok waddya thinkin?
<2> acidjazz: instead of slurping the file, get the fileno with my $fileno = fileno $file
<1> what's a fileno
<1> file number?
<2> acidjazz: yes, a file number
<2> acidjazz: then instead of opening a new $in filehandle to open2 highlight, p*** "<&$fileno"
<1> tilrman: hmm. how?
<2> open2 my $out, "<&$fileno", $program;
<1> using open2 again eh?
<2> acidjazz: aye
<1> open2: close(SVN::Web::View::) failed: Bad file descriptor at /usr/lib/perl5/site_perl/5.8.5/SVN/Web/View.pm line 160
<3> tinny: no, but there IS an encoding pragma for arbitrary encoding
<1> my $fileno = fileno $file;
<1> right?
<1> $file = file handle;
<2> acidjazz: did you remove the print $in and close $in?
<1> $file = file handle.
<1> tilrman: yea
<1> put em back?
<2> acidjazz: no, leave them out . . . can you print the value of $fileno?
<2> acidjazz: or otherwise inspect it
<1> i p***ed it by itself
<1> seems empty
<1> tryin again..
<1> yea printing it i see nothing
<2> acidjazz: so what is this magical $fs variable anyway?
<1> $file ?
<1> my $fs = $self->{repos}->fs;
<1> it grabs the source code file from an SVN repository
<2> acidjazz: ah . . . and ->file_contents() returns a file handle, and not the contents of the file?
<1> excatly
<1> $file
<1> then thrown in a return
<1> file => <$file>
<4> Who dare speaketh my name in vain?
<4> Thou shalt be castrated with a barbed wire, drawn and quartered before dawn approaches
<1> hi shadda
<4> hey acid
<1> shadda; failling badly at trying to implement syntax highlighting for SVN::web
<1> tilrman: any ideas?
<2> acidjazz: not beyond going back to tempfiles
<1> well **** open2 thats why im back here
<1> ill try taht
<4> the spam in my email just keeps getting weirder and wierder
<1> my $tmp = new File::Temp();
<4> http://synful.us:8000/msg.txt
<1> i dont see the function to write to the temp file tilrman
<1> im guesing i use a more core perl function
<2> acidjazz: you get back a filehandle and a filename, you can use normal operations like print and <> on the filehandle, and you can p*** the filename around
<4> print $filehandle "Foo! foo! I'm saying foo!";
<1> ah yes so how would i do that
<1> i got $tmp as my tmp
<1> $tmp->filename is the filename
<1> $tmp->filename = <$file> ?
<2> acidjazz: no, hang on
<4> OH GOD...THE WORLD IS ENDING....



<4> It's 5:55 !!
<1> haha
<4> the mark of martha stewart
<1> man how do i write to this thign
<3> learn perl
<4> perldoc perltut
<4> c'mon that used to work...dammit buu
<1> if you knew youd tell me
<5> about acidjazz's earlier code in the pastebin, shouldn't he also slurp the $out?
<6> no we wouldn't.
<1> loumz; nah i dint have to before
<0> it's really called "file-slurp" mode?
<0> i thought the guy who wrote "Mastering Regular Expressions" was just being funny
<7> (sorry, I asked this today in the very early morning but I guess everyone was asleep) I'm trying to make some personalized pages on my website so I'm looking for a user authentication system (that authenticates and keeps track of a user's login status in a secure fashion)... would anyone here recommend "chico" (http://perl-md5-login.sf.net) ?
<5> but wouldn't my $parsed = <$out>; would only get one line?
<8> acidjazz: See the thing is that sometimes users ask questions that are not easily explained, and when you do explain, they end up not understanding anyways (because they're way over their heads). So learning Perl is best way to go.
<6> loumz, depends on the value in $/
<8> acidjazz: And I'm not saying that to be an '***', as someone before thought. I'm new to Perl myself, very new.
<9> "tirman" at 66.180.175.30 pasted "highlight with tempfiles" (25 lines) at http://erxz.com/pb/1450
<2> heh cant spell my own name
<2> acidjazz: ^^
<5> Pete_I: yes, but the my $slurp = do{ local $/; <$file>; }; line only changes $/ for the block, doesn't it?
<2> acidjazz: ill try to put open2 back in, thatll make it a bit more elegant
<8> Man, I'm so mad at myself right now.
<8> I lost a chance to buy an awesome box for $100 with monitor included.
<10> hello there
<1> Died at /usr/lib/perl5/5.8.5/CGI/Carp.pm line 314.
<1> hmm
<8> Hello mathieu.
<6> loumz, that's right.
<6> that's what local means.
<10> I'm looking for a database converter from perl-dbd to sqlite. but I could not find any. would anyone have a suggestion ?
<1> tilrman: actually
<1> tilrman: highlight can be given the filename
<11> mathieu: what do you mean by "converter"?
<5> Pete_I: thanks. this channel is nice for learning perl :)
<1> my $highlighted = do { local $/; <$tmp> };
<1> my $highlighted = `$program`;
<1> ?
<12> hi
<10> Paladin: user$ dbd2sqlite users.db users.sqlite
<1> tilrman: all i need to do is pipe $file into the temporary file
<11> mathieu: huh?
<10> Paladin:
<10> a program which would
<2> acidjazz: right
<10> convert a perl-dbd database into a sqlite database
<11> mathieu: DBD is a Database Driver.. there are many DBD's for Perl.. one for each different kind of DB... sqlite included
<10> ok
<13> what's up with people writing XML processor apps in C
<11> mathieu: DBD isn't a kind of Database..
<10> ok, i'm not sure yet what kinda of database is it yet. I think its flatfile ?
<11> mathieu: well.. you need to know that before you access it..
<12> does someone know about a "firefox bookmark sync tool" ? so that i have the same bookmarks on my laptop and on my 2 workstations in the lan ??
<13> there is one
<13> it's an addon
<10> then, would DBD do a convert easily ?
<12> you mean firefox extensions ?
<11> mathieu: DBD isn't a single thing.. there are many DBDs.. they are just Database specific drivers for use with DBI
<1> tilrman: where are you doing this? $ou t?
<2> acidjazz: your approach is different than might . . . i was using the tempfile for the output, not the input
<10> yeah, I understood that. DBD is perl's API to any database, right ?
<11> mathieu: no.. DBI is.. DBD is a Database Driver.. as I've said over and over so far
<10> so DBD is able to open and write to any (many) kind of databases types. right ?
<11> mathieu: NO
<10> ok,... and DBI use DBD ?
<11> mathieu: are you listening at all?
<11> mathieu: DBI is is the API.. it uses a DBD for the specific Database you want to access..
<10> ok, sorry, I miss understood.
<14> hola!
<11> mathieu: http://dbi.perl.org/
<11> mathieu: go read..
<10> so, once I find the correct DBD I need for my database source. would DBI be able to convert it into a SQLite database easily ?
<15> More or less, yes


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #perl
or
Go to some related logs:

unable to copy xauthorization file
evolution repair ubuntu
css div inside li
#kernel
wma plugin + banshee
array.indexOf javascript Object doesn't support this property or method
#math
installing telnetd in ubuntu
Sub-process /usr/bin/dpkg returned an error code ubuntu
#css



Home  |  disclaimer  |  contact  |  submit quotes