| |
| |
| |
|
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
Comments:
<0> 1140390000 <1> should it be in base? <1> ah ha, I spelt it wrong <1> thanks again depesz <2> Yaakov: ntpd doesn't handle timezone! <2> Yaakov: all of it's timestamps use NTP time which is rougly UTC <2> *roughly <2> it just feeds unix epoch time into the OS, and it's date(1)'s, localtime(3)'s, etc job to apply timezones. <3> right, the OS doens't know about timezone either <3> that's all done in libc <2> libc is part of the OS. <3> ok, sorry, the kernel doesn't know about timezones <4> salut <4> est ce qu'il y a qlq'un <2> perlbot .ma
<5> .ma is Morocco <1> perlbot .*** <6> my ($val = $hash{key}) =~ s/from/to/; <--- fails <6> what am i doing wrong there?? :-/ <2> your my is in the wrong place. <6> "can't declare scalar ***ignment <2> (my $val = $hash{key}) =~ s/// <6> ah-ha <2> the my goes with the $val, and nothing else. <7> 16:57 < zerarda10> est ce qu'il y a qlq'un <7> Damn, that language ****s. <7> I think I'd commit suicide if my language's "anyone here?" would be that complicated. <8> you'd just sneer at other languages "this way is more flexible!" <9> OK, I officially despise Daylight Savings Time. <9> We just started using DST here, and ntpd is IGNORING it on FreeBSD. I cannot find why. <2> Yaakov: NTP DOESN'T KNOW ABOUT IT. <2> Check your timezone database (eg. /usr/share/timezone). It may need updated. <10> hey guys, is anyone aware how can I get grep -E not to match a certain string, eg make [^cow] not match just "cow" and not "ocw", "www", etc <9> integral: It does when it decides that my time is AN HOUR OFF <2> Yaakov: no, false. <9> integral: When ntpd goes to set my time, it tells me I have an offset of an hour. <2> Yaakov: "TZ=UTC date" should be saying your time is 15:19. <10> it might not be the proper place to ask, but I have no hint as where I could;) <2> Yaakov: on a PC? perhaps your BIOS clock uses local time instead of GMT <0> flock-: i doubt if grep has such an ability <9> Yes, it does, and adjkerntz has been run. <10> I am asking about the extended set of regexen, was just wondering if a hack exists there <0> flock-: in perl regexps - yes <0> in grep's - i dont know such a hack <10> besides [^c][^o][^w]:) <10> yeah, in pcre I am capable of doing it <10> thanks alot though <0> flock-: [^c][^o][^w] is not good. <9> integral: <9> date <9> Tue May 2 11:21:41 EDT 2006 <2> yaakov? <2> and TZ=UTC date? <11> flock-: grep -E -v [cow] ? <9> time.nist.gov 2 u 32 64 1 0.428 -259200 0.000 <9> zdump UTC <9> UTC Tue May 2 15:22:59 2006 GMT <2> o_O <9> Something is broken. <2> Yaakov: what offset should EDT be? <10> goldfish: yeah, but I need a different part of the expression to not be inverted <12> EDT is UTC-4 <12> or GMT-4 <9> Yes, -4 <2> that's incredibly weird <12> we shifted from -8 to -7 overnight <9> The RedHat boxes worked fine, the FreeBSD boxes are hosed. <12> Maybe they have very old rules <12> my openbsd box worked fine <9> I gave them brand new rules, I had to--we haven't used DST for decades here. <12> $ date; date -u; => Sun Apr 2 08:25:59 PDT 2006 Sun Apr 2 15:25:59 GMT 2006 <12> "here"? <2> Yaakov: what does your date -u end up saying if you use ntpdate to set your date? <12> are you in east indiana or arizona?
<9> Well, ntpdate is choking and dying. <2> o_O it is? <12> that's not good either :) <9> It seems unrelated, it doesn't like the configuration (the server lines). <9> merlyn: I am in Indiana. <2> Yaakov: ntpdate doesn't use "server lines"... <12> ahh <2> we are talking about ISC ntpd, right? <9> 2 May 11:27:37 ntpdate[45085]: no servers can be used, exiting <12> so east indiana finally went like west indiana? <12> that probably means just not configured <12> what's in /etc/ntp.conf <9> merlyn: No, all of Indiana uses DST now, some in EST and some in CST. <12> I have "servers pool.ntp.org" <9> merlyn: ntpd RUNS, as pasted. <9> ntpdate doesn't. <12> well, ntpdate is separate from ntpd <2> the problem won't lie with ntpd itself, but the kernel or other userspace <2> Yaakov: oh, you're running ntpd at the same time as ntpdate? you need to use -u to ntpdate <9> ntpdate time.nist.gov <9> 2 Apr 11:29:29 ntpdate[45271]: step time server 192.43.244.18 offset -2592001.278367 sec <12> yow. <12> how did your clock get that far off. <12> eval:2592001/86400 <13> merlyn: Return: 30.0000115740741 <2> *blink* are you sure the day/month part of the date was set right? :-) <12> that's 30 *days* off <12> no wonder it's confused. :) <9> OK, even though the clock DID NOT CHANGE, ntpd is happy now. <2> Yaakov: but did the *date* change? :-0 <9> Yes, No. <12> it's probably sleweing 30 days for the next 3 months. :) <2> s/:-0/:-)/ <12> so your clock will be off a bit more every day. :) <9> Og, wait, it DID <9> Huh. <9> That's... odd. <9> I didn't notice it, and neither did you. <9> Even though I pasted it here. <9> Wow. <9> That's... annoying. <9> I think it is OK now. <12> heh <9> But... I was so focused on the time, that the date was invisible. <9> I think I know how it happened, too. <9> Well, I feel better now. <9> Thanks! <9> It is also a good lesson... always read all of the output when the results are impossible. <9> 2 Apr 11:34:22 ntpdate[45649]: adjust time server 192.43.244.18 offset -0.033675 sec <9> Much happier! <9> Whew. <9> By the way, some (otherwise very savvy) users decided to switch to New York on OS X to get DST. <9> I had to gently suggest that was not nominal. <14> is there a ready function that can escape all regexp special characters in order not to treat some string as regexp, but rather normal text in an expression like this: /$string/ ? <2> quotemeta. <2> also \Q\E escapes inside a string/regexp <2> well, inside an interpolating quoting operator really. <12> so why are you using a regex where a simple index would do then? <9> I don't like ntp anyway, it is acranity personified. <1> can I have a 3 dimensional hash <2> ^prism: yes. in 2 ways. <1> $blah{blah}{bleh}{brah} <12> only if you load the emacs extension <1> integral, how <12> 3-d editing is hard. <12> those red-blue gl***es, etc. <1> lol <2> ^prism: yes, like that. But also by the multi-dimensional hash feature. <15> ^prism: and that doesn't work for you? <14> merlyn, good question, but there seem to be no strstr() in perl.. i could be mistaken of course <9> merlyn: LCD shutter gl***es! <12> ongeboren - index() <1> zshzn, to be honest I never tried I just have never seen anyone do that so I ***umed i would ask first :o <2> ongeboren: it's called index... like merlyn said
Return to
#perl or Go to some related
logs:
Error inserting snd_es18xx (/lib/modules/ #centos twiniks random motd + centos nubuntu tenner buffer overflow detected zsnes terminated #css $pty->slave;make_slave_controlling_terminal #math mysql bin.0000
|
|