| |
| |
| |
|
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 32 33
Comments:
<0> nope <1> I didn't realize that [] and {} WERE operators <0> jsut humble start trek fan <1> now I know <0> are you gay? <2> Teratogen: In C you have "" to write strings and {} for initializers and they're not "really" operators, they're just part of the syntax of writing certain sort of literals <1> that's what I thought perl's [] and {} were <1> but then why did I think [1..10] would work <1> so I guess I was contradicting myself subconsciously <1> or just didn't think about it <1> but anyways it rules that you can do [ expr ] and { expr } where expr is an arbitrary expression <2> Teratogen: but in perl, the "" and the {} and [] and .. all have runtime meaning. Although the strings and ranges can sometimes be resolved at compile time :) <1> right <1> that's what I learned =) <1> yeah maybe because 1..10 involved constants (1 and 10) <1> didn't really think about it as an expression
<3> hi all <4> eval: map {print $_++} 1..3 for 1..3 <5> dkr: 1 2 3 2 3 4 3 4 5 <6> the special char ? for dbi get quote i think, because i try to create a table named $word[0] and i received an error like syntax error near '#test' (channel #test is the value of $word[0]) my script is ok because if i replace the ? by hello, it create the hello table, how to remove this quote, somebody knows please? thanks <4> see, they aren't really constants, :) <7> hi <3> so what is the deal with poe? <3> its for long running server? <7> does somebody understand SNMP <3> whats that mean? <3> nagios uses snmp <3> is extent of my exp <2> serpentor: he died in a gutter in baltimore <3> i had to enable it on my linux boxen <3> hobbs that is a bad way for a great author to go. <7> ok i did knock on the worng door <7> wrong door* <8> serpentor: Yes, re: long running servers. <9> quick question... how do i select a value that's closes to a a certain number? for instance, i have a bits per pixel calculator, and i have it work with a range between 0.210 and 0.250, this in turn gives me a range of 4 numbers, and i want to pick which ever number is closest to 0.240... any ideas? <9> i'm sorta new to this aspect of perl. <2> ispy_: try that again with a little more making sense <4> how can youhave a fraction of abit per pixel? <9> ok... <10> ispy_: Take the absolute difference ***ociated with each and use the min <2> ispy_: the short answer is probably "sort" though :) <9> basicly i have this wide range of numbers to chose from, but i only want one number out of like 20... and that one number needs to be the closest to 0.240 as possible. <9> :) <9> all of the values are 0.000 and i only want one that's close to 0.240 <4> ispy_: take b0at and hobbs suggestions together, then, :) <10> Mix thorougly, though. <9> i **** at this sorta thing... :) i have used sort once before so i'll try. <10> Nothing worse than a lumpy implementation <4> get the list of absolute differences and sort to find the closest <6> Hi, I use DBI in my script, my script is the IRC service for my IRC Network, when somebody ask my bot to register a channel, my bot check in a database if this nick is already registered, if not, the bot TRY to create a table named #thechannel, I try with the '?' but ive heard ? is principally design to work with action like <6> INSERT, SELECT instead of CREATE, so I put directly something like CREATE TABLE $word[0], and i received an error like Syntax error ''#channel' if i put #achannel directly w/o scalar that work, how to remove the quote <11> pbie: You shouldn't automatically create or drop tables. <11> pbie: That's not how the relational or tabular model is meant, and it doesn't work well. Performance will be abysmal, security practically impossible, and getting it to function way too much work. <11> pbie: Instead of a table for each channel, use a single table with a channel /column/. <11> pbie: Preferrably, referring to a row in a channels table that lists (and normalizes) the registered channels. <11> pbie: But that may be too much progress in a short time. <12> if(a && b) ... <0> jeez <12> does && short-cut, as in C? <0> where do Inhire a perl consultant in los angeles? <0> hire <13> gr00ber: yes <0> perl <0> la ca 90025 <2> gr00ber: yes, plus the return value is more useful :) <14> I'm using LWP and have played with the request headers. I can change the user agent too. I can't get rid of a couple of line. GET / HTTP/1.1|Connection:TE, close|Host:127.0.0.1|TE:deflate,gzip;q=0.3|User-Agent:libwww-perl/5.803 How can I get rid of the 'Connection:TE, close' and the 'TE:defalate,gzip;q=0.3' sections? <12> hobbs, pardon? <15> star-trekio - jobs.perl.org <12> oh - and happy 4'th americans <15> not the 4th yet. :) <10> It's the 3rd. <12> it's the 4'th in my time zone :-) <15> but you're not in america <15> do that tommorrow <13> gr00ber: but not in any timezone in america :) <12> bah - americans are unaware of time zones
<13> what good are they? <15> americans *are* aware of the current day though <12> exactly <4> gr00ber: we have 5 of them, though, a lot of countries just have one <15> we have six or seven if you count baghdad <12> dkr, most countries have one <15> aka America East <13> dkr: 5? i thought we had 6 <4> or maybe 6, not sur eif alaska and hawaii the same <12> PST is like GMT -8, right? <13> i thought alaska and hawaii were in different ones <16> i have a script named index.cgi in a directory /helpdesk. When I give 0755 to the /helpdesk directory, everything works fine. But when I give 0777 to /helpdesk, the index.cgi file throws "Premature end of script headers: index.cgi". <13> gr00ber: yes <10> Alaska has at least two, one might be Hawaii's <15> juneau is one hour over <15> hawaii is two hours over <13> gr00ber: althought right now it is PDT (-7 GMT) <15> some parts of alaska are same time as hawaii <12> pravus, daylight savings? <13> gr00ber: yes <12> k, another weird-*** american invention <12> :) <16> I would appreciate your help. :) <13> gr00ber: ? many others coutries have it as well <13> of course, i don't like it, but ... <12> pravus, uncluding mine <12> it's a silly thing, yeah <6> Juerd yes but, i do this because i dont know how much aop/sop the channel will contain, this is dynamic, we add some oper each day.. <12> but it is an american invention <15> and the idiots that want "year round" dst just Don't Get It <16> hello, can anyone help me with a permissions issue? <15> "sure, what's your user ID?" <4> gr00ber: "The idea of DST was first put into practice by the German government during the First World War," <16> merlyn, asking me? <12> "During World War II, President Franklin Roosevelt instituted year-round Daylight Saving" <15> umair - yes... but google for "BOFH" for the full joke <12> my sources are wrong then :) <17> Umair: does your question have anything to do with perl, or is it only peripherally related to perl because you just happen to be using perl? <16> lol .. :) <4> gr00ber: http://en.wikipedia.org/wiki/Daylight_savings_time <11> pbie: That is fully irrelevant. <15> dkr's source is wikipedia. it could be wrong. :) <12> dkr, ok <16> PerlJam, I am not sure. :) <12> merlyn, yes, I usually need a second source too wiki <16> I was wondering, what are the recommend permissions to execute a perl CGI script. <12> and here it is: http://scienceworld.wolfram.com/astronomy/DaylightSavingTime.html <4> merlyn: it has lots of references at least, :) <18> gr00ber's url is at http://xrl.us/nzk5 <11> pbie: Please learn how to use relational databases before actually using them. That you have a dynamic "create table" statement is a RED FLAG, a very bad sign. <16> Because, it seems to act weird. <19> Umair chmod 755 ? <11> pbie: There are many tutorials and courses that teach you how to do this. I can't. <16> What about 0777? <19> no <15> it needs to be executable <17> Umair:Now I can inform you that your question has nothing to do with perl. <15> and it should rarely be 0777 <19> that makes it world writable which is evil <15> that would mean that others can change it! <16> yes, but it doesn't execute that way. <15> you want 0755, probably <16> Aahhh, may be some security measure in the web server or the operating system. <15> ahh - web <15> I love the hidden web questions <15> why don't people say "this is a web question"? <16> The script helpdesk/mailbox.cgi should be able to write in the helpdesk/ directory. But mailbox.cgi is called by qmail. Sorry this isn't strictly a Perl question. <15> it *makes* a difference that it's web <15> and far more Perl invocations are *not* web than web <0> so perl can whip java *** <20> merlyn: I would prefer everyone in every place on UTC and get rid of this idea that daylight is 0900 to 1900 approximately <0> is amazon using perl? <0> over java?
Return to
#perl or Go to some related
logs:
gentoo install Could not activate swap kernel tty_struct flip ssh command mount f xbox ubuntu buu eat kerneldirs postgray howto nfs server not responding etch suse-gnome smart repo #physics poweredge 850 sarge
|
|