| |
| |
| |
|
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
Comments:
<0> buu: have you ever used a fractal viewer like xaos, fractint (etc) it's a bit like that <0> except the fractal is constructed from a dictionary <0> either my web is dodgy or activestate's is <1> and fractint still doesn't have a smooth-zoom feature, so xaos is more appropriate :) <2> how do i just run some perl on the command line, like to see the output of print, i've seen people quoting perl -? '<snippet>' before <3> ed_: perl -e 'print ...'; <2> thanks, the --help didnt make sense for -e <0> hmm, actually I think the big thing that caught me out with dasher is having something move when you're not holding down a mouse button <1> ed_: perldoc perlrun for more info :) <2> thanks <4> is there a way to get perl scripts to execute when double-clicked under osx?? <5> ilpavox: Yes. <0> umm, Komodo requires me to install a .pkg, that's not nice <5> integral: You can always remove it. <6> is there a version of perl for a flash drive? <4> yaakov: and that would be?
<0> how? there's no uninstaller for .pkg's... <6> i couldn't find one on google <5> ilpavox: ctrl+click, get info... <1> pianoboy3333: activestate doesn't particularly care where it's located <1> pianoboy3333: use the "zip" download, unzip it to a flash drive, and you're done :) <7> YAY! the beginings of gene creation are ready! <8> hi hobbs <7> now i need to work on the iterative generator and the people <6> hobbs: where can i get it? <1> pianoboy3333: activestate.com <1> hola Daveman <5> integral: Dragging the icon to the trash should do it. <4> yaakov: and ? <4> yaakov: i change it to a term app or something? <0> Yaakov: huh? I mean the licence <5> ilpavox: integral Ah. Yes. <5> integerr <5> err <5> Much confusion in the room here. <0> and I did say .pkg. If its only payload was a .app, use a .dmg dammit. <0> oh it's not actually a .pkg, it just has the same icon, it's an app <9> integral: What the heck are you talking about? <5> ... <5> COMPLAINER <0> apple/activestate crap <5> ilpavox: hang on, sorry <9> integral: Why? <0> yaakov made me do it! <9> integral: You bastard. <9> 99.7% ! <0> ugh, it doesn't use proper mac look and feel for its toolbars. <0> 99.7%? <9> integral: Completed! <10> hobbs: ok, on activestate.com, activeperl? for windows there's an as package and an msi <7> integral: i didn't know you were a OSX guy, cool <11> does POSIX regex have a look-ahead syntax? <12> probably not <4> yaakov: hanging <1> cucumber3333: "as package" is a zip file :) <13> does it really matter if i put the single quotes in the key name here: $self->{'title'} <0> ugh, I think its UI is actually worse than VS6, yaakov :-/ <9> Montreal: No. <10> hobbs: lastime i looked at it, it was a batch file for an installer, would there be a diff btwn the installer and zip? <9> cucumber3333: Yes. <13> what is the prefered way of doing things with that? single quotes or no quotes? <10> buu: just use the zip? <1> japhy: man 7 regex doesn't mention any, anyway <9> cucumber3333: Maybe! <0> Yaakov, ugg, it uses ok/cancel on a dialogue instead of yes/no <10> hobbs: if i used the MSI file, could i install to the flash drive too? <1> Montreal: no quotes is pretty common, but there are plenty of people who will use them. It's up to you <14> http://pastebin.com/535944 why doesn't this read my file1? <15> The paste 535944 has been moved to: http://erxz.com/pb/534 <1> cucumber3333: dunno about that <10> hobbs: kk <9> donofrio_: Because it looks like perl4. <0> Yaakov: hrm, it's a wee bit slow and laggy feeling <14> any idea's? <9> God that's ugly. <9> donofrio_: ERROR. CHECKING. <0> Yaakov: hrm, the thing just comes across as unpolished, like when doing file->open, the file menu tab is staying highlighted while the dialogue is visible
<5> integral: IT IS CROSSPLATFORM <1> donofrio_: and what the hell is wrong with $word = shift @ARGV; foreach $file (@ARGV) {} ? <5> integral: Also... what about the feature set you picky bastard?! <1> donofrio_: or even while (<>) magic ARGV loop with some code that runs if(eof) ? <0> Yaakov: VIM is cross platform yet it manages to not be unpolished, just inconsistent <9> hobbs: It involves sanity. <5> ilpavox: Sorry. I am not sure how to do that. It has to be a .app thing, so I suppose you have to write a launcher. <5> ilpavox: Why do you want to do it? <0> Yaakov: hmm, I don't know, nothing is jumping out as amazing <5> Did you run the code intelligence deal? <9> perl -le'$w=shift;while(<>){$z++ while /$w/g; if(eof(ARGV){print "$z in $ARGV"; $z=0}' <9> More or less. <5> Did you check the Rx Toolkit? <0> Yaakov: the rx toolkit seems a bit boring, you just give it a regexp and some text and it shows what matches? <5> You have to run the code intelligence thing to get the syntax checking and things. <0> but I'm not the best person to ask on regexps, I haven't debugged a big one in ages <5> integral: YOU ARE A CURMUDGEON BEYOND YOUR YEARS <0> hmm, it's using the system perl, *sigh* <0> why can't it figure out my PATH from my .bash_profile and notice that I use #!/usr/bin/env perl and get the right perl? <5> integral: You can tell it that. <0> it's set to "Find on Path" <0> but all my scripts already have the correct perl in the shebang. Can't it just use that? <16> Are you sure your .bash_profile is loaded? <5> The other must be first in the path. <0> my normal shell loads it <16> As in, echo $PATH outputs your path? <0> yes, in a terminal. <5> It isn't using the shell, now is it? <0> As a normal user I shouldn't be expected to know how to setup the path for the desktop environment thingie <0> although I do. But it's icky. <5> integral: But you are ABnormal. <5> And it knows that. <5> Besides, while that is constructive criticism, I don't think it is daming! <5> n <16> integral, perhaps you want to use .bash_rc aswell? (or symlink .bash_profile to .bash_rc?) <0> Ani-_: bah, all I know is that whatever I have in my .bashrc or .bash_profile works normally. <5> integral: You are a vim user, it is your JOB to run down GUI editors. <0> I also know that the nextstep desktop stuff doesn't run inside a bash. And has it's own Environment.plist <0> no haskell syntax colouring :-( <0> but it does handle the unicode right <0> hungarian characters to be precise <16> integral, you probably know this but I'll mention it anway: .bash_profile is executed for login shells. .bash_rc is executed for interactive shells. That are two different things. <0> huh? I can set breakpoints on lines in a text file?! <0> Ani-_: yes I know <0> Ani-_: except I suspect that some of my .profiles source my .bashrc <1> Eclipse apparently handles Haskell :) <13> how is it possible to have more than one object in a cl***? <0> *blink* <0> Montreal: bless more than one data structure <13> You can only have one new sub <0> yes but you can call it multiple times <1> Montreal: um. that's the usual state of affairs. You have to work really hard _not_ to <17> when search engine use perl DB and no sql database to put its data, is it posible for such a perl script to search large websites? <0> my $o = Cl***->new; my $o2 = Cl***->new; # OMG, two objects! <16> integral, it might. But what about your interacitve shells? They won't execute .bash_profile... (So if you put your stuff in there then it might not be used) <0> Ani-_: sure, that's why I test my setup and juggle stuff until it looks like it's all working :) <1> Ani-_: that's considered a good thing :) <16> Ofcourse it's good. :) <13> so just create anothor subroutine (not named 'new') and create a data structure and bless it as well? <0> ^GX])... <0> UkKn_kKnso... <0> Montreal: huh? new should be creating a new object *every* time it is called. <5> Ooo... desktop manager has a feature I didn't know about! <0> To get two objects you just call it twice. <1> Montreal: ... no? <1> Montreal: unless your question actually doesn't mean anything like what it said <0> eval: { package A; sub new { my $c = shift; bless { id => $_[0] }, $c }; sub foo { print $_[0]->{id}, ". " } } my $o1 = A->new(1); $o1->foo; my $o2 = A->new(2); $o2->foo; $o1->foo; <18> integral: 1. 2. 1. Return: 1 <0> Montreal: that's an example of one cl*** ("A") but with two objects containing different data. <19> is there a way to load a complete file into a var in one command (except $string = `cat file`) <16> Montreal, you need to make sure that whatever datastructure you create in the new-sub is lexically scoped (as in, it has my). <0> perlbot slurp <20> http://www.perl.com/pub/a/2003/11/21/slurp.html <13> is it possible to give foo unique values not held in new? (basically hash values)
Return to
#perl or Go to some related
logs:
#perl enable forwarding ubuntu etisalat ping solution #kde #ldap oomkiller Solaris Nevada qemu #mysql #qemu #perl
|
|