@# 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



Comments:

<0> I did that way:
<0> You see it in the pbot.
<1> no, you used =~ instead of !~
<1> that inverts the condition]
<0> Yes.
<0> But it does what I wanted in the first place.
<1> ok
<1> with splice: for my $i (reverse 0 .. $#MOVIES) { $MOVIES[$i] =~ /\Q$search/i or splice @MOVIES, $i, 1; }
<0> Wow.
<0> Thanks.
<2> is there a tutorial to embed perl in a Macintosh application, mainly written in Objective-C?
<3> perldoc perlembed might help
<4> The perldoc for perlembed is at http://perldoc.perl.org/perlembed.html
<5> objective C? people use that?
<5> HELLO YAAKOV
<5> hello Glanzmann



<5> hello mauke
<3> HELLO BOTTLE
<5> helo other-people-off-my-scroll-buffer
<5> I'm sick, I think
<2> Botje: yes, most macintosh apps are written in Objective-C
<0> Botje: Halloa hey!
<5> yellow-brown phlegm, that's not quite normal, is it? :(
<2> Yaakov: except I've gone through that, mate
<3> hd420: Then it is utterly hopeless.
<0> Can I put a grep in a grep?
<3> Glanzmann: What are you trying to do?
<0> I have an array containg hash references. In this hash references is an array with contains 'genres'
<0> Now what I want is to filter out all @MOVIES which don't fit the selected @GENRES.
<0> But I think I use a for loop and grep for that.
<0> It is better readable.
<5> yes, you can nest greps
<5> but if you transform @GENRES into a lookup hash first
<5> it's both cleaner *AND* faster! :)
<0> Botje: Talk to me.
<0> I see.
<0> I guess I see.
<0> So basically I reference all movies belonging to a genres into a hash?
<5> my %lookup = map {$_ => 1} @GENRES; my @okay_movies = grep exists $lookup{$_->{genre}}, @MOVIES
<0> Still thinking ...
<0> Don't get it.
<0> But I try it.
<6> sounnds like a job for relational algebra!
<2> euch
<6> use the right tool for the right job!
<6> And *never* use metal working tools on wood
<5> well, unless you like splinters.
<6> it's the oil stains on the wood that upset me
<5> nothing a spot of paint can't fix
<6> And the tools on a metal working lathe do *NOT* work on wood
<6> You will very easily break your work into two just above the chuck
<0> It doesn't return any movies.
<0> I tried the following:
<0> http://pbot.rmdir.de/e607d153b39439c94571ee12dfdae2a1 Function in question is apply_filter
<7> Can I ask a question? :P
<8> eval:x=1
<9> joey__: Error: Can't modify constant item in scalar ***ignment at (eval 123) line 2, at EOF
<0> and of course the parsing method which pushes the stuff to ->{'genres'} array.
<6> DON NOT ASK TO ASK, or you will be axed.
<0> ElliottHird: No meta questions.
<7> Note :P
<7> Apparently humour is void on freenode today.
<5> Glanzmann: oh.
<5> you want to SEARCH by genre ..
<0> Yes.
<5> @MOVIES = grep {@{$_->{genres}}" =~ /\Q$genre\E/i} @MOVIES
<5> grr
<5> @MOVIES = grep {"@{$_->{genres}}" =~ /\Q$genre\E/i} @MOVIES
<5> you might want to add \b in the appropriate places if you want to search by wods instead of fragments
<0> Of course.
<0> genre comes from a checkbox, so it's always a word,
<3> GumbyBRAIN: genre
<10> Yaakov: The singular appearance of the insight into this bay there were few goals in the tetris genre.
<0> Botje: Thanks, that works.
<0> http://pbot.rmdir.de/424ba9d5639d425c4e8541f1c293488d (there it is)



<3> GumbyBRAIN: imminent
<10> Yaakov: There are several modules in an upright position, and the wind is still something imminent...
<11> lol
<11> lo :)
<5> HELO
<3> 3.14 Domain needed
<12> @users = ($line =~ /viewprofile.php\?viewuser=(.+?)\"/); # << That is supposed to work?
<5> what happened to the other digits?
<5> DXL: of course not.
<12> Botje: Got any suggestions to make it work?
<5> maybe.
<5> what's in $line ? what is supposed to be in @users ?
<3> That almost certainly wants a /g
<2> what the helll?
<2> gcc-3.3: cannot specify -o with -c or -S and multiple compilations
<1> makes sense
<3> MAUKE
<1> YAKAOV
<2> what the hell?
<2> gcc-3.3: cannot specify -o with -c or -S and multiple compilations
<1> hd420: what
<3> mauke: I think he may be in a loop.
<2> Yaakov: I'm wondering what would be causing that error?
<2> and more importantly, if it's worth fixing
<2> :)
<6> have you READ the error?
<2> yes
<6> The problem is asking GCC to compile multiple files with -c and -S which require *single* files, and -o which only specifies a *single* output
<2> integral: YES, I HAVE BLOODY READ THE ERROR
<6> WELL IT TELLS YOU WHAT CAUSES IT
<3> integral: Careful, he seems to be from down under.
<5> down under where?
<5> buu's reopened his dungeon?
<2> I'm not an Aussie
<3> integral: They carrry--and know how to use--VERY large shrimps.
<6> Send it back! Send it back!
<6> *gasp* shrimps? are you sure? it's... it's... _inhuman_
<3> The only thing worse would be a...
<3> CANADIAN
<3> I mean, worse than... well, not the shrimp... but now that I think about it...
<2> Yaakov: I'm actually English, now kiss off
<6> You have my comiserations, hd420
<3> integral: He is your responsibility.
<6> But I'm only a tourist here!
<3> Sorry, you have OFFICIAL PAPERS.
<2> you just wish you could be so cool
<2> :)
<3> hd420: In earlier days you would be an Australian by now.
<6> WE MUST BRING BACK DEPORTATION OF PROGRAMMERS!
<2> Yaakov: lol
<6> well, not *de*portation, *trans*portation
<3> TRANSPORTATION FOR LIFE
<2> I wouldn't mind, but it's 5am here
<3> Probably by bus.
<6> Don't worry we'll impose UTC globally when we rebuild the empire through the nefarious tool of the EU!
<7> ace me!
<7> *axe
<3> What was that?
<3> OK time to shower, etc. BBL, maybe.
<13> hi
<14> is it possible to make not console program with perl for windows(I want use mouse) and build it to .exe, so it could work on other system without gtk packages installed?
<14> and without perl also
<1> yes, see http://search.cpan.org/dist/PAR/script/pp
<14> would it be faster and 'better' than same project with ms visual .net?
<14> second wants .net framework be installed on system
<14> it is not good
<14> :(
<14> is here anyone who have already tried do such work?
<1> why not good?
<14> thats very simple program
<14> loading an simple .exe built with ms vs .net takes about 3secs on my pc
<14> the program with only one button without any event:)
<14> so i want it be fast and work everywhere
<14> thought perl could help me


Name:

Comments:

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






Return to #perl
or
Go to some related logs:

#perl
_death efnet
#kde
mkfs.vfat large disk
#physics
div box position smarty
direct rendering could work only using the internal support
#fedora
videodefou
#gaim



Home  |  disclaimer  |  contact  |  submit quotes