|
I'm writing a small app that will be used to monitor the status of a few websites, mainly just to report which websites are online and which websites are offline.
I currently have this code as the onreadystatechange function:
if(xmlhttp.readyState == ...
Started by amougeot on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
What you will want to do is abort the ... .
We have a similar question which was asked few minutes back : Ping site and return result in PHP
I just tested now using Fiddler , and it returned Status 502, Body 512
You can check the header for a 404 error .
|
|
JG's Place where things might or might not happen. Author Message JumpingGirraffe Forum Moderator
Joined: Fri Aug 24, 2007 1:29 am
Posts: 4990
Location: In my PANTS.
Wii Number:
3552-0264-5044-3871 JG's Place where things might or might not happen. So...
Answer Snippets (Read the full thread at wiinintendo):
But I'm glad you're starting up a blog/journal/thing, it's always interesting reading what you write... .
The only thing was that it was a bit confusing cause you used the names John and Bob in place of girl names, so that threw me off a bit .
Haha, nice story.
|
|
Found something online today that we as current gamers can be thankful for.
LINKY
It was the game that started the whole FPS craze 20 years ago and now its become free to play right in your browser.
Started by Dr Weird on
, 15 posts
by 14 people.
Answer Snippets (Read the full thread at bungie):
When I was younger I never....
Although it's astounding how games have changed over the course of over two decades .
I have it for my xbox I was more of a Doom guy, I'll pass .
OT: No thank you.
Wolfenstein 3d will run on my wristwatch Pffft, graphics are lame .
|
Ask your Facebook Friends
|
Classifieds: RS3 Grill etc Parts
i have put my mods up for sale prior to the looking at the car, so i can act fast on it if the all the paper work goes through...
Thanks peps....
Started by ilim on
, 18 posts
by 10 people.
Answer Snippets (Read the full thread at audi-sport):
Can see your so-called friends face when you pitch up... .
Originally Posted by Brodster TTRS it is then Ilim.
Gimme a call when you get it.
Can see your so-called friends face when you pitch up with that .
Sent you a text mate PM sent TTRS it is then Ilim .
|
|
How can i delete image files (ex *.gif) that might be in use, by another process in a directory?
Started by strakastroukas on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If you can't delete it, you might be able to rename it, but I'm not sure why some locked files can.
|
|
Is there any way in Python to determine what exceptions a (built-in) function might raise? For example, the documentation ( http://docs.python.org/lib/built-in-funcs.html ) for the built-in int(s) says nothing about the fact that it might raise a ValueError...
Started by tjdonaldson on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The fact that the int() documentation doesn't say it may raise ValueError is a bug in the documentation... .
The only way to tell what exceptions something can raise is by looking at the documentation .
I don't know of any definitive source, apart from the source .
|
|
If you have
Parent has_many :children Child
Is there any reason a foreign key on Child (to Parent) and a corresponding belongs_to :parent might not be desirable?
When, if ever, would you not want your Child to be able to access its parent?
Started by eggdrop on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
The....
It's a trade-off.
You can still access the parent record (assuming you have a parentID column in the child table, just no referential integrity) .
There is a cost when inserting a child record to determine if there is a parent record .
Performance.
|
|
I might be missing something obvious but is there a reference somewhere about what exceptions are thrown by functions in .NET and why the exception might be thrown?
As an example, I was recently trying out Linq in Visual C# 2008 and I was loading an XML...
Started by Bonnici on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If a function throws....
EDIT: if you look at the Namespace doco (for System.IO for instance) it lists possible thrown exceptions .
NET does not implement anything like the 'throws' keyword in java, so your best bet is to check the online MSDN documentation .
|
|
GUIDs get used a lot in creating session keys for web applications. I've always wondered about the safety of this practice. Since the GUID is generated based on information from the machine, and the time, along with a few other factors, how hard is it...
Started by Kibbee on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
To be taking steps to stop someone create 10000 new sessions anyway due to the server load this might.
|
|
Why might using a "long long" in C or C++ be a bad thing?
I was compiling a runtime library the other day and in the code it checks to see if longs are 64bits and if not it uses a long long. But along with that, it sends out a #warning "using long long...
Started by Crazy Chenz on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
If you use an old C compiler, it might not support long long one might use the C99 header <stdint.h> , or in C++ <boost/cstdint.hpp>
It isn't.
That it is exactly 64 bits, there could be a problem .
|