Karl`s PC Help Forums Last active: Never
Not logged in [Login ]
Go To Bottom

In memory of Karl Davis, founder of this board, who made his final journey 12th June 2007

Post Reply
Who Can Post? All users can post new topics and all users can reply.
Username   Need to register?
Password:   Forgot password?
Subject: (optional)
Icon: [*]
Formatting Mode:
Normal
Advanced
Help

Insert Bold text Insert Italicised text Insert Underlined text Insert Centered text Insert a Hyperlink Insert E-mail Hyperlink Insert an Image Insert Code Formatted text Insert Quoted text Insert List
Message:
HTML is Off
Smilies are On
BB Code is On
[img] Code is On
:) :( :D ;)
:cool: :o shocked_yellow :P
confused2 smokin: waveysmiley waggyfinger
brshteeth nananana lips_sealed kewl_glasses
Show All Smilies

Disable Smilies?
Use signature?
Turn BBCode off?
Receive email on reply?
The file size of the attachment must be under 200K.
Do not preview if you have attached an image.
Attachment:
    

Topic Review
SRD

[*] posted on 13-10-2008 at 17:58
Ah, I know one or two people who might need that. :D
dr john

[*] posted on 13-10-2008 at 16:34
It's an rss feed, as an alternative to checking the page at regular intervals.

If you subscribe to the feed (all part of the joke), you'll be notified of any change in the world's status.
SRD

[*] posted on 12-10-2008 at 09:06
Thanks Dr John, did you follow the link in the source code?
http://www.hasthelargehadroncolliderdestroyedtheworldyet.com/atom.xml

It's part of the <head> code and consists of the following:
Code:
<link rel="alternate" type="application/atom+xml" title="Recent Entries"
href="http://www.hasthelargehadroncolliderdestroyedtheworldyet.com/atom.xml" />


It was that that made me think there was some kind of feed.

Any idea what that page is for?
dr john

[*] posted on 12-10-2008 at 08:26
Quote:
<script type="text/javascript">
if (!(typeof worldHasEnded == "undefined")) {
document.write("YUP.");
} else {
document.write("NOPE.");
}
</script>



Variables have a type - integer, float, string, date, etc
(Type is also called the datatype, it lets the code know what to expect.)

If the variable worldHasEnded has no value, and is not defined anywhere in the script, then it has no type. It is undefined.

So if it is NOT undefined [ if ((!typeof worldHasEnded == "undefined") )...], then someone has given it a value or type, and the so the world has ended, so it writes Yup.

Otherwise it writes nope.

I think he's pretending worldHasEnded is a universal variable (bigger than a global variable ;) ) whose value can automatically be detected.

No value is sent to the script anywhere, all three javascripts are independent things.

The rest of the code is google analytics.


PS I've been around regularly, but not posted much. Been working away from home for 6 months, one month left to go.
LSemmens

[*] posted on 11-10-2008 at 14:11
Quote:
Originally posted by Quaver
So they are looking for Higgs - a dark matter

Why don't they look in the 'phonebook, I'm sure you'll find him just before High. nananana
SRD

[*] posted on 10-10-2008 at 22:13
Yup, I'd kind of sussed that, what I don't understand is where the update is coming from. Is it sent by the geek who built the page, in which case how long before he gets bored? Or is it some kind of automated link, in which case where from, how and why?
finchart

[*] posted on 10-10-2008 at 19:00
if the lhc actually destroys the earth & this page isn't yet updated
please email mike@frantic.org to receive a full refund

its a geek-joke?
SRD

[*] posted on 11-9-2008 at 21:15
Quote:
Originally posted by Dreamweaver
Dr_John was on last night SRD, Perhaps if you u2u him the link and your request he may see it :)
Ta, if he still drifts in and out he will eventually see this.
SRD

[*] posted on 11-9-2008 at 21:14
Quote:
Originally posted by DMWright
Interesting...

Code:
<script type="text/javascript">
if (!(typeof worldHasEnded == "undefined")) {
document.write("YUP.");
} else {
document.write("NOPE.");
}
</script>


..but if the world has ended we won't be able to check to see if it says Yup. lol
I think what it is doing is saying if there is no input then write "YUP", relying on a constant input, but I can't see how that input is guaranteed. It may be that the input can be interrupted thus causing consternation throughout the web. :D
Daz

[*] posted on 11-9-2008 at 20:16
Quote:
Originally posted by SRD
If you 'right click' on the page and choose 'view source' you can see the code that makes up the page,


Ah, makes sense now, I never bothered to think of that...! D'oh!
Dreamweaver

[*] posted on 11-9-2008 at 17:27
Dr_John was on last night SRD, Perhaps if you u2u him the link and your request he may see it :)
DMWright

[*] posted on 11-9-2008 at 17:26
Interesting...

Code:
<script type="text/javascript">
if (!(typeof worldHasEnded == "undefined")) {
document.write("YUP.");
} else {
document.write("NOPE.");
}
</script>


..but if the world has ended we won't be able to check to see if it says Yup. lol
SRD

[*] posted on 11-9-2008 at 14:31
If you 'right click' on the page and choose 'view source' you can see the code that makes up the page, this seems to rely on a piece of javascript coding that relies on input from another page, on visiting the other page it seems to be a page reliant on (maybe) RSS feeds; this seems to mean that if the feed doesn't occur the message changes to "Yup" but I can't work out what is providing the initial feed or how it is doing what it does.

It's the kind of thing Dr John knows about but I haven't seen him about for a while. If no-one here can suggest an explanation I'll go post the query on another techie site.
Quaver

[*] posted on 11-9-2008 at 12:36
Quote:
Originally posted by Daz
I'm only seeing a Black page, with the word in Nope in the centre. I see no links...?

Same here, it is supposed to show "Yup" if the world ended:D
Daz

[*] posted on 11-9-2008 at 12:26
Quote:
Originally posted by SRD
Nice discussion folks, but this is in the PC help section, I meant "How does the code on this page and it's linked pages work."


I'm only seeing a Black page, with the word in Nope in the centre. I see no links...? (I've tried this in Opera and FF on Ubuntu, with both showing the same results...) confused2
Quaver

[*] posted on 11-9-2008 at 12:06
Quote:

if the lhc actually destroys the earth & this page isn't yet updated please email mike @frantic.org to receive a full refund

:o
SRD

[*] posted on 11-9-2008 at 11:55
Nice discussion folks, but this is in the PC help section, I meant "How does the code on this page and it's linked pages work."
Quaver

[*] posted on 11-9-2008 at 11:48
So they are looking for Higgs - a dark matter. That I understand. So to find Higgs, they have to make big expensive device to shoot rays, and make it collide at almost light speed. When it collides, it should produce Higgs, and possibly lot's of other things like black holeskewl_glasses
DMWright

[*] posted on 11-9-2008 at 11:39
It's all babble to me... ;)

http://en.wikipedia.org/wiki/Large_Hadron_Collider

Purpose:
When activated, it is theorized that the collider will produce the elusive Higgs boson. The verification of the existence of the Higgs boson would be a significant step in the search for a Grand Unified Theory, which seeks to unify three of the four known fundamental forces: electromagnetism, the strong nuclear force and the weak nuclear force, leaving out only gravity. The Higgs boson may also help to explain why gravitation is so weak compared with the other three forces. In addition to the Higgs boson, other theorized particles, models and states might be produced, and for some searches are planned, including supersymmetric particles, compositeness (technicolor), extra dimensions, strangelets, micro black holes and magnetic monopoles.
Quaver

[*] posted on 11-9-2008 at 11:21
:D:D:D
I've seen the rap version, but still don't understand:P
SRD

[*] posted on 11-9-2008 at 10:25
Has the large hadron collider destroyed the world yet?