Search found 735 matches

by erikson
Thu 19 Mar 2009, 11:08
Forum: HOWTO ( Solutions )
Topic: Scripting: how to extract links from html pages
Replies: 11
Views: 6567

Scripting: how to extract links from html pages

Sometimes (e.g. for web authors) it may be handy to find and extract all links from a web page. The patterns to be found from the web page are href="some_link" (i.e. href="[^"]*" as regular expression). Notice that several such links may appear on the same html line, and of ...
by erikson
Fri 20 Feb 2009, 21:11
Forum: Users ( For the regulars )
Topic: Setting internet time [SOLVED]
Replies: 79
Views: 25555

Of course there are no hard feelings. Here is a script to measure time difference (and drift) between system time and hardware clock, to an accuracy better than one millisecond. You read well, *millisecond*. Investigating time on Linux systems is fun :-) #!/bin/bash #================================...
by erikson
Sun 11 Jan 2009, 10:27
Forum: Users ( For the regulars )
Topic: Setting internet time [SOLVED]
Replies: 79
Views: 25555

It's like ages ago that I had a look at the forum. A hacker, a fairly adept person can often accomplish the result he desires. Nothing is gospel. If I want my date -R command to display -0800 and my normal date command to display GMT-8, that's doable. Even my clock says GMT-8 and the system is at GM...
by erikson
Thu 01 Jan 2009, 14:42
Forum: Users ( For the regulars )
Topic: Setting internet time [SOLVED]
Replies: 79
Views: 25555

Then Erickson comes along and explains in detail what is inverted, the reasons why, where Puppy compensates, the whole nine yards. Then he wants to leave? He's right, except when he is wrong. He is not any more mistaken than any other highly intelligent person in small areas, insofar as we all make...
by erikson
Sun 28 Dec 2008, 15:38
Forum: Users ( For the regulars )
Topic: Setting internet time [SOLVED]
Replies: 79
Views: 25555

I could post 229 lines of logs from November 29 to Dec 21 all of them off consistently by the predicable offset 8 which is 16 hours off. What's the difference in localtime between Perth and Los Angeles? 21/Dec/2008 05:19:51 +0800 Depending on whether "21/Dec/2008 05:19:51" is UTC or local...
by erikson
Sat 27 Dec 2008, 20:59
Forum: Users ( For the regulars )
Topic: Setting internet time [SOLVED]
Replies: 79
Views: 25555

Bruce, I do roughly as you tell me. Puppy version is 4.1, frugal install, booted with pfix=ram. My localtime is Sat Dec 27 21:40 CET (= Sat Dec 28 12:40 PST). Posted on the forum around Sat Dec 27 13:00 PST, I trust John Murga's server doesn't lie. [Edit: I mean that the "Posted:" timestam...
by erikson
Sat 27 Dec 2008, 14:21
Forum: Users ( For the regulars )
Topic: Setting internet time [SOLVED]
Replies: 79
Views: 25555

Erikson, I'll digest your last post. Thanks. You're welcome. Puppy's default gives me a TZ of GMT-8 Correct. That is Barry's timezone (Perth), as per POSIX timezone sign convention ( minus for localtimes ahead of GMT). We can't blame Barry for publishing Puppy with his own localtime as default, can...
by erikson
Fri 26 Dec 2008, 12:17
Forum: Users ( For the regulars )
Topic: Setting internet time [SOLVED]
Replies: 79
Views: 25555

Bruce, Here are my results, for your statistics, and to assist you in your endeavours. I'm running this in timezone CET (one hour ahead of GMT) around 11:22h localtime. Puppy version used is pcPuppyOS, with timezone file Europe/Brussels (absent in pcPuppyOS) imported from Puppy 4. The timezone files...
by erikson
Thu 25 Dec 2008, 20:34
Forum: Users ( For the regulars )
Topic: Setting internet time [SOLVED]
Replies: 79
Views: 25555

1) Puppy is always local time. Your hardware clock and system time will correspond regardless of your TZ setting. This is observable. Agreed. However the reporting format of localtime with the date command *does* depend on the timezone setting. 2) When querying a time server, the default inversion ...
by erikson
Thu 25 Dec 2008, 15:00
Forum: Users ( For the regulars )
Topic: Setting internet time [SOLVED]
Replies: 79
Views: 25555

I promised to shut up :-( But since, apparently, Barry's credibility may be at stake, I speak up. I trust that nobody will object to a sober presentation of arguments. Yes, the hexdump for the timezone file named "GMT+9" contains the string "GMT+9". So what, that doesn't prove mu...
by erikson
Wed 24 Dec 2008, 10:44
Forum: Users ( For the regulars )
Topic: Setting internet time [SOLVED]
Replies: 79
Views: 25555

Does it not make sense to fix the problem right where it is? If not, why not. Reason says that if someone, you, Barry or a combination of people operating on the premise the ../Etc/GMT files were the cause of the problem, you solve it right there, considering the simplicity of flipping + and - It m...
by erikson
Sun 21 Dec 2008, 19:34
Forum: Users ( For the regulars )
Topic: Setting internet time [SOLVED]
Replies: 79
Views: 25555

Unfortunately during this process it would appear that feelings have been hurt, egos bruised and ill feeling created. I feel sad on that account. Don't worry about me, I'm fairly immune to some irony. That being said, I acknowledge Bruce as a major asset to this forum, from whom I've learned a lot ...
by erikson
Sun 21 Dec 2008, 17:21
Forum: Users ( For the regulars )
Topic: Setting internet time [SOLVED]
Replies: 79
Views: 25555

Since this appears to have been a source of confusion before, might I suggest modifying /usr/sbin/timezone-set to include the line (...) and eliminate the sign reversal. I have done that in the attached file and it works well for me. I would appreciate others opinions. You can do as you see fit. Ac...
by erikson
Sun 21 Dec 2008, 17:03
Forum: Users ( For the regulars )
Topic: Setting internet time [SOLVED]
Replies: 79
Views: 25555

How about posting a few commands we can run as a script which meets the criteria for automatically syncing our clocks? I don't need a script, rdate -s 129.6.15.28 && hwclock --systohc --localtime does the job (that's timeserver time-a.nist.gov - any other one will do as well). I patched tha...
by erikson
Sun 21 Dec 2008, 15:30
Forum: Users ( For the regulars )
Topic: Setting internet time [SOLVED]
Replies: 79
Views: 25555

I'm not really following this properly, would it be correct to say. "The puppy timezone setting utility is confusing for those that do not understand the unix convention for setting a timezone." "The utility would be less confusing if it presented the information with the timezones r...
by erikson
Sun 21 Dec 2008, 13:51
Forum: Beginners Help ( Start Here)
Topic: Timezone can't be set - SOLVED, kinda
Replies: 45
Views: 20441

Now it won't be difficult anymore to get rid of those last few timestamp anomalies between switch_root and rc.country . The simplest solution is to move the systemtime reset from the end of /etc/rc.d/rc.country to the very beginning of /etc/rc.d/rc.sysinit that runs immediately after busybox init (...
by erikson
Sun 21 Dec 2008, 13:04
Forum: Users ( For the regulars )
Topic: Setting internet time [SOLVED]
Replies: 79
Views: 25555

For info (it took me some time to retrace it). http://www.murga-linux.com/puppy/viewtopic.php?p=229296#229296 No, there's nothing wrong with the timezone GUI in all recent puppies 2 -4. This was worked out ages ago. The sign inversion is correct. Here in Perth Australia my timezone is GMT+8, however...
by erikson
Sun 21 Dec 2008, 10:44
Forum: Users ( For the regulars )
Topic: Setting internet time [SOLVED]
Replies: 79
Views: 25555

That will fit in nicely with the Meaning of Life, the Universe and Everything=Puppy42 In anticipation of my how-to, two "recipes" as a quick reply. I understand you're living in Canada in a timezone eight hours behind GMT. One can use either Puppy's time-setting wizards or the command-lin...
by erikson
Sat 20 Dec 2008, 21:32
Forum: Users ( For the regulars )
Topic: Setting internet time [SOLVED]
Replies: 79
Views: 25555

The answer hinges on three insights: (1) Timezone files are borrowed from *nix and their names follow the (somewhat confusing) POSIX sign convention for offsets, i.e. the timezone file named "GMT+x" corresponds to the timezone "x hours behind GMT" (West of the Greenwich meridian)...
by erikson
Fri 19 Dec 2008, 21:14
Forum: Users ( For the regulars )
Topic: Setting internet time [SOLVED]
Replies: 79
Views: 25555

Sheesh... yet another thread spreading confusion on Puppy time. Sorry to disappoint y'all, but Puppy time is consistent and correct if you know how to understand it. But so far I never found a correct and comprehensive "How to understand Puppy time" explanation. I think I'm going to write ...