A Conversation for The H2G2 Programmers' Corner
CSS
Pirate Alexander LeGray Posted May 4, 2008
/*What do you reckon to my code to download a large stylesheet only once and only when needed.
stylesheetTable.css #r0c0,#r0c1 {position:absolute;height:50px;width:100px;Background-color:#ffffcc;border:3px ridge #95bef7;z-index:1;text-align:center;font-family:impact;font-size:18pt;} I only found the xmlDOM by chance and thought I was going to have to learn php, yet another language
CSS
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Posted May 5, 2008
Probably redundant, since any browser modern enough to *use* external stylesheets will cache them and reuse the cached copy rather than downloading it more than once for the same site. Good try, though...
CSS
Pirate Alexander LeGray Posted May 5, 2008
Done my memory, the sides slide off. One of these traders said it wasn't worth his while to do it, but knew the board and case.
CSS
Pirate Alexander LeGray Posted May 7, 2008
Why doesn't my clock work in firefox/safari, but does in opera and IE
http://arithmetic.890m.com
CSS
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Posted May 7, 2008
It's working in Firefox here...
CSS
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Posted May 7, 2008
Oh, OK, it doesn't move for me either, then. I didn't realise it was supposed to.
CSS
Pirate Alexander LeGray Posted May 7, 2008
I can't understand it, in the table their is the same code and that works. I thought maybe its a typo but I'm dyslesic and can't see it. IE ignores typos but it works in opera.
The timer works because main time is set, but the dot doesn't reposition.
CSS
Pirate Alexander LeGray Posted May 8, 2008
Is it possible to detect firefox with a conditional comment, I will then take the clock off for firefox, or otherwise tell users they need to get Opera. Even my links don't work in firefox.
CSS
Pirate Alexander LeGray Posted May 10, 2008
Fixed with the help of silicon valley, I prefer flash5 and how come I can write three pages of equations in C++ evaluated with ease all in under a microsecond (I think) and javascript makes such a meal out of tiny things.
Want web traffic, don't go to google get robotraff. Yes this extremely iffy site will hack you 30000 hits for just 130 dollars. Not only that but they keep coming back for more.
An Adware company is suing an antivirus company for removing its malware without first letting users see the ads.
What a world
CSS
Pirate Alexander LeGray Posted May 11, 2008
Got myself a new toy called firebug, it's great and I've been playing with it all night.
Found a variable in clock that didn't work, so thought I forgot the '&' prefix for passing by reference; this is what I mostly did with so called functions four years ago, returning bool for if the function performed the task within specifications.
Turns out the only type of variable that you can pass by reference is an array, and some chap goes into great difficulties to make that look like an ordinary variable.
I would not have known this but for firebug. I've done better than that though, cutting processor useage or operating system time to run it down by half.
Here's a computing question:
How do I make it accurate to within 1 second?
2.5 secs is easy, and at the moment it can be 5 secs slow.
Do those M$ programmers ever think when they bring out another update. Do they not think users have security? Spent most of yesterday downloading SP3 when I already got the parts I want, fighting with my security and their defender stopped my mobile modem working on startup.
Why can't they offer the choice to save first, then my dog will have a sniff and leave it alone, rather than process has been blocked, possible virus activity ect.
IE6 is dead; if you accept SP3 it won't work and if you don't you wont get any more free fixes.
CSS
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Posted May 11, 2008
Yup. You have to have IE7, but *not* IE8. If you install IE8 Beta you're screwed until they start supporting it in SP3a. AFAIK there's no option to uninstall IE8 and it erases your rollback points.
CSS
Pirate Alexander LeGray Posted May 11, 2008
I've tried to make my clock accurate to 1 sec, mediocre attempt and even looks 15 secs slow in the first minute sometimes.
Objects and javascript, pull your hair out, today is not defined, What! that's one line after var today=new Date();
I'm not defining var today=new param; and all the crap that goes with that.
I'm not doing anything else with clock unless somebody tells me of an improvement.
CSS
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Posted May 12, 2008
CSS
Pirate Alexander LeGray Posted May 14, 2008
Update for SP3. It crashes AMD configurations, such as HP use. That's also mine but although slower nothing serious yet.
The problem is that AMD reboots on start and then reboots and...
their is a fix but this involves not panicking and stopping the cycle of reboots by pressing f8,choosing safestart that doesn't work on mine, I have to set boot.ini but that will be unavailable, and then getting down and dirty with your favourite; the registry and setting a key you create to the right values.
I'm sure everybody can do this, and only I would feel a little queezy
That code for table I did is crap, it works but I don't understand how. You can only pass objects by reference, but a couple of elements not objects are passed by reference, I've checked it out and they aquire the correct values. Javascript is now getting on my nerves. Additionally the use of different class and id for the same element confuses firefox which renders style to div#r0c0.rncn which is nonsense, I think
CSS
Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) Posted May 15, 2008
You have to disable some (IBM?) network driver that's common on AMD boards. Apparently SP3 screwed up the chipset detection and tries to write directly to registers that exist on the Intel board version of the chip but not on the AMD board version, causing a "fatal exception" and a reboot. The "Generic" driver works fine; you just have to tweak the registry to stop it autodetecting and updating the driver at reboot.
Key: Complain about this post
CSS
- 81: Pirate Alexander LeGray (May 3, 2008)
- 82: Pirate Alexander LeGray (May 4, 2008)
- 83: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (May 5, 2008)
- 84: Pirate Alexander LeGray (May 5, 2008)
- 85: Pirate Alexander LeGray (May 5, 2008)
- 86: Pirate Alexander LeGray (May 7, 2008)
- 87: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (May 7, 2008)
- 88: Pirate Alexander LeGray (May 7, 2008)
- 89: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (May 7, 2008)
- 90: Pirate Alexander LeGray (May 7, 2008)
- 91: Pirate Alexander LeGray (May 8, 2008)
- 92: Pirate Alexander LeGray (May 10, 2008)
- 93: Pirate Alexander LeGray (May 11, 2008)
- 94: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (May 11, 2008)
- 95: Pirate Alexander LeGray (May 11, 2008)
- 96: Pirate Alexander LeGray (May 12, 2008)
- 97: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (May 12, 2008)
- 98: Pirate Alexander LeGray (May 12, 2008)
- 99: Pirate Alexander LeGray (May 14, 2008)
- 100: Peet (the Pedantic Punctuation Policeman, Muse of Lateral Programming Ideas, Eggcups-Spurtle-and-Spoonswinner, BBC Cheese Namer & Zaphodista) (May 15, 2008)
More Conversations for The H2G2 Programmers' Corner
Write an Entry
"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."