#1
|
||||
|
||||
"Whoops!"
I decided it would make more sense to have a thread in here for posting site problems, rather than continuing to clutter the update threads.
If you click on the latest addition link on the Doctor Who page, it might crash your browser. Certainly crashed mine both times I tried. The cause is an infinite loop in the PHP code. From the errors, I'm guessing you're doing something like this: Code:
$handler = fopen($file); // Read from $handler Code:
if ($handler = fopen($file)) { // Read from $handler } else { // Give error } Finally, I noticed that the Sci-fivers page is out of date. Only one of the recent smallville fivers is there, and the DW fivers are still listed there.
__________________
Self-referential sigs do not a humourous poster make. |
#2
|
||||
|
||||
Actually I noticed that too, if you go to a "fiver.php" but give no "ep=" it does the same thing.
And yes, it almost crashed my broswer too. And I think this is dangerous enough to actually point out, as Zeke requested not to be notified of errors.
__________________
Truer words were never spoken. Xeroc Central 5MChat: PHP/JS Chat 2.0 Click here to view the chat in progress! |
#3
|
||||
|
||||
This thread is a good idea, but here's the thing... right now it's a struggle to get done what I "need" to do for 5M. I don't have any spare sitework time at all. As a result, there's literally no exception handling in the PHP code. When I get back to Waterloo I'll have time to tidy up the code, but right now if it works, that's enough. I just have to rely on you guys to tell me when stuff like infinite loops happens.
__________________
FiveMinute.net: because stuff is long and life is short [03:17] FiveMinZeke: Galactica clearly needs the advanced technology of scissors, which get around the whole "yanking on your follicles" problem. [03:17] IJD: cylons can hack any blades working in conjunction |
#4
|
||||
|
||||
Quote:
If I can - I'd love to help out with fixing the code for you!
__________________
Truer words were never spoken. Xeroc Central 5MChat: PHP/JS Chat 2.0 Click here to view the chat in progress! |
#5
|
||||
|
||||
Much appreciated, X, but the coding is one area where I can't take volunteers. It's not just a matter of programmer's pride -- I have to be able to read my code, and that's hard enough with just my stuff in there, let alone lines I've never seen before.
__________________
FiveMinute.net: because stuff is long and life is short [03:17] FiveMinZeke: Galactica clearly needs the advanced technology of scissors, which get around the whole "yanking on your follicles" problem. [03:17] IJD: cylons can hack any blades working in conjunction |
#6
|
||||
|
||||
That makes sense. When I posted this, I didn't realise how much stuff you had to do for the anniversary.
Speaking of code-writing, at some point (not now), I'd quite like to clean up your HTML for you. Those font tags and embedded onmouseover really jump out at me whenever I look at the source code. If you don't mind, of course.
__________________
Self-referential sigs do not a humourous poster make. |
#7
|
||||
|
||||
Quote:
__________________
Truer words were never spoken. Xeroc Central 5MChat: PHP/JS Chat 2.0 Click here to view the chat in progress! |
#8
|
||||
|
||||
Again, no. If anyone's going to clean up my code, it'll be me. I've learned some CSS and I'm going to learn more, but until then, I feel absolutely no guilt whatsoever for using "deprecated" tags like and [b]. They get the job done perfectly well.
__________________
FiveMinute.net: because stuff is long and life is short [03:17] FiveMinZeke: Galactica clearly needs the advanced technology of scissors, which get around the whole "yanking on your follicles" problem. [03:17] IJD: cylons can hack any blades working in conjunction |
#9
|
||||
|
||||
CSS is the classical example of "Somebody beat us to it, so now we have to take it, make it elephantine and scream at everybody who doesn't like it", as applied to text formatting in HTML. After all, Netscape did a lot of stuff before it was actually standardized...that accounts somewhat for the compatibility mess, but damn, we needed *something* to work with.
/W3C rant Gatac
__________________
Katy: Can I have the skill 'drive car off bridge and have parachute handy'? Justin: It's kind of a limited skill. Greg: Depends on how often you drive off bridges. - d02 Quotes |
#10
|
||||
|
||||
Fair enough.
Gatac: I'm not sure what you think is elephantine about CSS, but it wasn't introduced just because someone didn't like HTML formatting. There is no way in HTML to create a uniform theme without dotting font tags and bgcolor attributes all through the code. With CSS, you can apply a style to every element of a certain type, and override that as necessary. To me, that just makes a lot more sense. Also, I don't know what compatibility mess you're talking about. For the basic features of CSS (this covers far more than you can do in HTML, if you exclude tables), browser support is very good, and very predictable.
__________________
Self-referential sigs do not a humourous poster make. |
#11
|
|||
|
|||
Mozilla/Firefox and Opera are good as far as support goes. Internet Explorer still has loseriffic CSS support, but supports proprietary tags that aren't even clearly marked as such OR established CSS tags. For shaaaaame.
CSS is an excellent tool when used properly. See The CSS Zen Garden for a good example. Using linked CSS files allows you to separate your style and content information, makes your files smaller, and make sweeping style changes comparitively easily. I prefer XHTML 1.0 to HTML 4.0 anyhow. |
#12
|
||||
|
||||
CSS is plenty flexible and powerful, yes, but I venture to say that 95% of the websites out there don't use it and don't have to. When I just want some text to be in bold, you can bet that I'm not going to write a CSS class to do that. I'm not denying that CSS is wonderful and confirms to the abstract trinity of HTML-Javascript-CSS as in Content-Design-Interactivity, but there's literally everything AND the kitchen sink in the specs, so if I call it elephantine, I do believe that I have a good reason to do so. The fact that I haven't done any coding in a few years and still remember most of the Netscape tags versus basically nothing with CSS proves squat, but I don't think I'm the only one who has that problem.
Compatibility problems weren't caused by CSS; that started with the use of non-standard tags, but it could've been headed off at the pass if they'd gotten off their ass in getting CSS done. By the time browsers could reasonably be expected to support CSS, the damage was already done. Never mind that it's theoretically far superior - it simply came too late. Add the smothering market percentage of Internet Explorer and its ludicrously slow upgrade cycle, and you know why the web is such a formatting mess today. The problem with all solutions (including XHTML) is that it's easier to write broken HTML than it is to get everything right. It's no-win - as long as browsers can render non-compliant HTML, things won't change, and if they suddenly switch to strict enforcement of standards, then the web will be nothing more than the world's largest collection of error messages. Kinda like recycling - brilliant idea, but it took (and will still take) a lot of time before it's really widespread. Gatac
__________________
Katy: Can I have the skill 'drive car off bridge and have parachute handy'? Justin: It's kind of a limited skill. Greg: Depends on how often you drive off bridges. - d02 Quotes |
#13
|
|||
|
|||
You're a ray of sunshine, you are.
|
#14
|
||||
|
||||
I try.
Gatac
__________________
Katy: Can I have the skill 'drive car off bridge and have parachute handy'? Justin: It's kind of a limited skill. Greg: Depends on how often you drive off bridges. - d02 Quotes |
#15
|
||||
|
||||
CSS is an evil bourgeois plot by a bunch of evil elite antisocial nerds to add so much unnecessary complexity to webpage coding that only elite nerds will be able to code webpages.
You just wait and see. Five years from now you'll have to create separate CSS documents just to do this or this or this or even this!
__________________
My 5MV webpages My novel fivers list Yup “There must have been a point in early human history when it was actually advantageous to, when confronted with a difficult task, drop it altogether and go do something more fun, because I do that way too often for it to be anything but instinct.” -- Isto Combs |
#16
|
||||
|
||||
*chants*
C-S-S Kiss my...cheek! No, seriously, I like CSS, but some of the followers are a bit intense. Gatac
__________________
Katy: Can I have the skill 'drive car off bridge and have parachute handy'? Justin: It's kind of a limited skill. Greg: Depends on how often you drive off bridges. - d02 Quotes |
#17
|
||||
|
||||
The cynicism! It's killing me!
CSS is an excellent tool for certain tasks. Most notably, any time you want to style the appearance of more than one object at a time. For these things, you can do it in HTML, but once you've learnt CSS it becomes a lot easier. HTML is also a good tool for other tasks, but for the most part, as good a tool as CSS. If you know CSS, you can use it. If you know HTML, you can use that. It's personal preference. The only place I can think of that HTML is easier to use than CSS is tables. Now, I can see some argument in the idea that you shouldn't use tables for presentation (have you ever looked at a website in a text-mode browser?), but at present, table-less designs are too much effort to be worth-while for most. With a website of any decent size, most of it falls under "making everything look consistent".
__________________
Self-referential sigs do not a humourous poster make. |
#18
|
||||
|
||||
::shakes head in quiet bewilderment:: With a site the size of mine, I'd have to be insane not to use some kind of style sheet. And as far as code complexity, maybe I'm just an amateur, but I fail to see how a font tag/then size tag/then weight tag/then center tag is less cumbersome than saying "class=header." But then, I only know basic HTML.
I don't understand how you could use CSS to create a table.
__________________
Any truth is better than indefinite doubt. — Sherlock Holmes "The Adventure of the Yellow Face," Arthur Conan Doyle |
#19
|
||||
|
||||
Quote:
Quote:
*is apparently feeling silly tonight ops:*
__________________
My 5MV webpages My novel fivers list Yup “There must have been a point in early human history when it was actually advantageous to, when confronted with a difficult task, drop it altogether and go do something more fun, because I do that way too often for it to be anything but instinct.” -- Isto Combs |
#20
|
||||
|
||||
Quote:
__________________
FiveMinute.net: because stuff is long and life is short [03:17] FiveMinZeke: Galactica clearly needs the advanced technology of scissors, which get around the whole "yanking on your follicles" problem. [03:17] IJD: cylons can hack any blades working in conjunction |
|
|