| |
| |
| |
|
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
Comments:
<0> BinGOs_: this should be fixed in Error-0.15008, which I uploaded to CPAN right now. Third Error.pm release today. <0> PerlJam: why do you need tchrist for? <1> heh <2> Hrm. <2> How do you read a line in a bash script? <3> I don't need tchrist, it's just that I've never seen merlyn, tchrist and TimToady all on IRC at the same time. merlyn+tchrist, merlyn+TimToday, but never the three together. <2> wsmith: ZOMG. <4> buu, read <4> read var <4> foo! <5> PerlJam: collect them all! <2> amnesiac: Really? <4> buu, yep <2> amnesiac: Nifty keen. <0> PerlJam: hmmm... TimToady is lwall. <0> :-)
<2> amnesiac: And if I set a var like that, then do sh foo; foo can see the var, correct? <4> no, export the var, make that var available for the enviroment <2> amnesiac: Hrm. Ok. <2> amnesiac: Children don't inherit the environment in bash? <4> well, thing is, you never made that variable available to the enviroment by just reading it <6> buu: they do.. but you have to export them <7> How do I run a system command? (Like "ls") <6> buu: export to the environment, that is <2> amnesiac: My head hurts. <6> _JohnFlux: don't use that for ls. perldoc -f glob <8> The perldoc for glob - is at http://perldoc.perl.org/functions/glob.html <6> perldoc -f readdir <8> The perldoc for readdir - is at http://perldoc.perl.org/functions/readdir.html <6> also <0> JohnFlux: generally though you can use perldoc -f system <8> The perldoc for system - is at http://perldoc.perl.org/functions/system.html <9> encryptio: well specifically I want to run convert <6> system ^^ <2> JohnFlux: system, qx//, ``, open <9> encryptio: just writing a small script to convert a lot of images at a time <9> rindolf: thanks <9> thanks all <10> buu!! <2> wsmith: What is up, yo? <11> JohnFlux: Look at the Imager module. <11> search.cpan.org knows about it. <10> buu: Workin' <2> wsmith: Pssh, work. <10> buu: Playing Ping Pong <2> wsmith: Awesome. <12> or not <2> Now I wish I had a pingpong table =[ <11> Hello, tybalt89. I have been so busy that K&R has been unopened. P***over is getting closer. <12> ping..pong for buu <12> :( <10> Apparantly, this company is a big RLMMORPG [real life] <10> 300 more experience points and I level up <2> tybalt89: =] <4> hahahaha <2> wsmith: Awesome. What kind of powers do you get when you level up? <10> Income++ <2> wsmith: Nice <2> wsmith: I need a new computer =[ <10> buu: another one? <10> buu: what, are you installing vista? <2> wsmith: Yeah, my old one is still crashing <2> Like a whore <10> the one with all the drives? <2> wsmith: No no that one is perfect <2> My old linux box <2> I'm using it as a myth frontend, more or less <10> You don't even have cable... <9> $command= "echo convert -crop 1230x960+" + ($f-1) + "x0 frame000${f}.png cropped_000${f}.png"); <9> It's giving me errors on that <9> $f is a number <2> wsmith: No, that is why I have no mythbackend =] <6> JohnFlux: + is for numbers <6> JohnFlux: . is for strings <10> buu: Then, what's the frontend for? Playing movies? <2> Yar
<2> And my startrek. <6> JohnFlux: "string" . ($number-1) . "string" <9> encryptio: It will turn the $f-1 into a string right? <10> *me* startrek <2> I'm up to season 5 <9> encryptio: thanks <2> wsmith: eh? <10> "There are FOUR lights!" <10> Yar... and me startreck <2> wsmith: I don't understand =[ <10> pirate speak <2> I see <2> I can't seem to find the original startrek =[ <2> Of course I've still got voyager, ds9, b5 to get through.. <9> encryptio: if I want to turn $f into a string but with padded spaces, what function should i look up? <9> encryptio: opps, padded zero's I mean <10> Umm, ebay? <9> so 1 into 0001 <6> JohnFlux: perldoc -f sprintf <8> The perldoc for sprintf - is at http://perldoc.perl.org/functions/sprintf.html <6> i think. <13> encryptio: correct :) <13> sprintf("%04d", $f) <6> i never did any C programming, so i'm not knowlegable on what printf's powers are <14> perldoc -f printf <8> The perldoc for printf - is at http://perldoc.perl.org/functions/printf.html <14> or perhaps -f sprintf <9> sweet! <14> one of them has the % stuff <14> can't recall <2> wsmith: I suppose. <2> wsmith: I just want the damn thing to stop crashing. <10> You getting hard locks or panics? <2> Hrm. Damn, tigerdirect has 21inch monitors for $80 after rebate <2> wsmith: Hard locks. System dies completely. <2> The movie picture tends to turn in to fuzz and the sound repeats <10> Can you ping it? <2> Nope <2> It stops routing <10> Heat? <2> It has a bunch of fans and doesn't feel very hot <2> The temperature when it comes back up isn't very high <2> I've been having trouble with it for years now <15> sigh. <15> I call shenanigans on LWP::Simple <2> I think the ram or mobo or some such is dead <5> I'm going to pistol-whip the next person that says shenanigans <16> what's shenanigans? <10> Shenanigans? Are you guys talking about Shenanigans? <15> http://www.perlmonks.org/?node_id=541973 <15> that's what <9> How do I round a float to an int? <9> I did perldoc -f round <9> but no function ;) <2> JohnFlux: perldoc -q round =] <9> buu: doh <9> buu: okay read it twice.. I'm thinking just int($f + 0.5) <15> JohnFlux: that works on positive numbers only <9> that's okay <15> int($f + 0.5 * ($f > 0 or -1)) <2> I think sprintf will round.. <15> that works on positives and negatives <15> buu: in a weirdish kind of way <15> 1.5 and 2.5 both round to 2 <2> Awesome <15> eval: sprintf "%.0f / %.0f", 1.5, 2.5 <17> japhy: Return: 2 / 2 <15> eval: sprintf "%.0f / %.0f", 2.5, 3.5 <17> japhy: Return: 2 / 4 <3> That's what IEEE rounding semantics require. <15> eval: sprintf "%.0f / %.0f", 3.5, 4.5 <17> japhy: Return: 4 / 4 <15> PerlJam: yes, but I don't agree with them, and that's not what we're taught. <15> I don't understand their reasoning
Return to
#perl or Go to some related
logs:
#math mount drive from live cd disable xora devices
#fluxbox #perl #javascript portage delete resuming download ubuntu gdm:not found
#web force reread partition table linux
|
|