The Five-Minute Forums  

Go Back   The Five-Minute Forums > FiveMinute.net > 5MV Talk

Reply
 
Thread Tools Display Modes
  #1  
Old 06-13-2005, 04:53 PM
Draknek's Avatar
Draknek Draknek is offline
Cursory
Member
 
Join Date: Mar 2003
Location: Bristol, England
Posts: 165
Send a message via MSN to Draknek
Default "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
When you want to do something like this:
Code:
if ($handler = fopen($file))
{
// Read from $handler
}
else
{
// Give error
}
Also, on all the doctor who fivers, the main top image disappears onmouseover, and doesn't come back. That image is broken on the all seasons page, too, but that seems to be because it's looking for a png while the 5MDW image is a gif.

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.
Reply With Quote
  #2  
Old 06-17-2005, 01:10 AM
Xeroc's Avatar
Xeroc Xeroc is offline
Not to be confused with Kodax
Member
 
Join Date: Aug 2004
Location: The Universe
Posts: 4,230
Send a message via ICQ to Xeroc Send a message via AIM to Xeroc Send a message via Yahoo to Xeroc
Default

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!
Reply With Quote
  #3  
Old 06-17-2005, 02:55 AM
Zeke's Avatar
Zeke Zeke is offline
The lens that flares in the night
Administrator
 
Join Date: Apr 2004
Location: Ottawa, ON
Posts: 3,396
Send a message via ICQ to Zeke Send a message via AIM to Zeke Send a message via Yahoo to Zeke
Default

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
Reply With Quote
  #4  
Old 06-17-2005, 05:56 AM
Xeroc's Avatar
Xeroc Xeroc is offline
Not to be confused with Kodax
Member
 
Join Date: Aug 2004
Location: The Universe
Posts: 4,230
Send a message via ICQ to Xeroc Send a message via AIM to Xeroc Send a message via Yahoo to Xeroc
Default

Quote:
Originally Posted by Zeke
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.
Zeke, If you can, you can send me the code, and I'll clean it all up for you - don't worry about my time - it'll honestly take me like 15 minutes to add all the exception handling, etc, and even print out pretty error messages!


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!
Reply With Quote
  #5  
Old 06-17-2005, 04:55 PM
Zeke's Avatar
Zeke Zeke is offline
The lens that flares in the night
Administrator
 
Join Date: Apr 2004
Location: Ottawa, ON
Posts: 3,396
Send a message via ICQ to Zeke Send a message via AIM to Zeke Send a message via Yahoo to Zeke
Default

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
Reply With Quote
  #6  
Old 06-17-2005, 05:48 PM
Draknek's Avatar
Draknek Draknek is offline
Cursory
Member
 
Join Date: Mar 2003
Location: Bristol, England
Posts: 165
Send a message via MSN to Draknek
Default

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.
Reply With Quote
  #7  
Old 06-17-2005, 07:02 PM
Xeroc's Avatar
Xeroc Xeroc is offline
Not to be confused with Kodax
Member
 
Join Date: Aug 2004
Location: The Universe
Posts: 4,230
Send a message via ICQ to Xeroc Send a message via AIM to Xeroc Send a message via Yahoo to Xeroc
Default

Quote:
Originally Posted by Zeke
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.
Not even if it was very logically organized and had lots of comments? :P
__________________
Truer words were never spoken.

Xeroc Central

5MChat: PHP/JS Chat 2.0
Click here to view the chat in progress!
Reply With Quote
  #8  
Old 06-17-2005, 07:18 PM
Zeke's Avatar
Zeke Zeke is offline
The lens that flares in the night
Administrator
 
Join Date: Apr 2004
Location: Ottawa, ON
Posts: 3,396
Send a message via ICQ to Zeke Send a message via AIM to Zeke Send a message via Yahoo to Zeke
Default

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
Reply With Quote
  #9  
Old 06-17-2005, 08:02 PM
Gatac's Avatar
Gatac Gatac is offline
Man in the iron mask
Member
 
Join Date: Feb 2004
Location: Magdeburg, Germany
Posts: 667
Send a message via ICQ to Gatac Send a message via AIM to Gatac
Default

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
Reply With Quote
  #10  
Old 06-17-2005, 10:54 PM
Draknek's Avatar
Draknek Draknek is offline
Cursory
Member
 
Join Date: Mar 2003
Location: Bristol, England
Posts: 165
Send a message via MSN to Draknek
Default

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.
Reply With Quote
  #11  
Old 06-18-2005, 07:29 AM
Nan Nan is offline
Gatekeeper
Exosite Head
 
Join Date: Mar 2003
Location: The 'Ship-Free Zone.
Posts: 1,455
Send a message via ICQ to Nan Send a message via Yahoo to Nan
Default

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.
Reply With Quote
  #12  
Old 06-18-2005, 08:01 AM
Gatac's Avatar
Gatac Gatac is offline
Man in the iron mask
Member
 
Join Date: Feb 2004
Location: Magdeburg, Germany
Posts: 667
Send a message via ICQ to Gatac Send a message via AIM to Gatac
Default

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
Reply With Quote
  #13  
Old 06-18-2005, 12:38 PM
Nan Nan is offline
Gatekeeper
Exosite Head
 
Join Date: Mar 2003
Location: The 'Ship-Free Zone.
Posts: 1,455
Send a message via ICQ to Nan Send a message via Yahoo to Nan
Default

You're a ray of sunshine, you are.
Reply With Quote
  #14  
Old 06-18-2005, 01:18 PM
Gatac's Avatar
Gatac Gatac is offline
Man in the iron mask
Member
 
Join Date: Feb 2004
Location: Magdeburg, Germany
Posts: 667
Send a message via ICQ to Gatac Send a message via AIM to Gatac
Default

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
Reply With Quote
  #15  
Old 06-18-2005, 07:03 PM
NAHTMMM's Avatar
NAHTMMM NAHTMMM is offline
Noodles And Hot Tofu! MMM
Member
 
Join Date: Mar 2003
Location: St Louis, MO, USA, . . .
Posts: 2,959
Send a message via Yahoo to NAHTMMM
Default

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
Reply With Quote
  #16  
Old 06-18-2005, 07:30 PM
Gatac's Avatar
Gatac Gatac is offline
Man in the iron mask
Member
 
Join Date: Feb 2004
Location: Magdeburg, Germany
Posts: 667
Send a message via ICQ to Gatac Send a message via AIM to Gatac
Default

*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
Reply With Quote
  #17  
Old 06-18-2005, 10:46 PM
Draknek's Avatar
Draknek Draknek is offline
Cursory
Member
 
Join Date: Mar 2003
Location: Bristol, England
Posts: 165
Send a message via MSN to Draknek
Default

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.
Reply With Quote
  #18  
Old 06-19-2005, 03:35 AM
evay's Avatar
evay evay is offline
But if you put the hammer in an elevator...
Member
 
Join Date: Apr 2004
Location: Deck Four, Section Seven
Posts: 522
Default

::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
Reply With Quote
  #19  
Old 06-19-2005, 03:57 AM
NAHTMMM's Avatar
NAHTMMM NAHTMMM is offline
Noodles And Hot Tofu! MMM
Member
 
Join Date: Mar 2003
Location: St Louis, MO, USA, . . .
Posts: 2,959
Send a message via Yahoo to NAHTMMM
Default

Quote:
Originally Posted by evay
With a site the size of mine, I'd have to be insane not to use some kind of style sheet.
Templates certainly meet that description

Quote:
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."
You are forgetting the powers of Ctrl-C / Ctrl-V!





*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
Reply With Quote
  #20  
Old 06-19-2005, 04:15 AM
Zeke's Avatar
Zeke Zeke is offline
The lens that flares in the night
Administrator
 
Join Date: Apr 2004
Location: Ottawa, ON
Posts: 3,396
Send a message via ICQ to Zeke Send a message via AIM to Zeke Send a message via Yahoo to Zeke
Default

Quote:
Originally Posted by evay
::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.
Not that I'm claiming not to be insane, but you realize I don't use any at 5M yet, right?
__________________
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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 04:33 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.