I agree with Kenmo, use the line starting with 'Content-Type:'. The first word will tell you the type of data to expect, after the slash you will get the specifics. This should be on a line by itself in the returning header, according to the RFC.
Sigh. It's NOT reliable.
<?php //An image with ...
Search found 334 matches
- Mon Jul 25, 2011 10:35 pm
- Forum: Coding Questions
- Topic: Determing if a URL is a web page or file download
- Replies: 24
- Views: 4936
- Sun Jul 24, 2011 12:27 am
- Forum: General Discussion
- Topic: Any patterns
- Replies: 12
- Views: 3985
Re: Any patterns
[write an engine] is often skipped and that's why everybody's beginning from scratch everytime.
Also lots of specific stuff is put into that engine, so that it's still a 2D-tile-engine but it can't be used for other games, because of all that "hard-coded" information.
That's why there are not ...
Also lots of specific stuff is put into that engine, so that it's still a 2D-tile-engine but it can't be used for other games, because of all that "hard-coded" information.
That's why there are not ...
- Sat Jul 23, 2011 12:16 pm
- Forum: General Discussion
- Topic: Any patterns
- Replies: 12
- Views: 3985
Re: Any patterns
Well it's hard to help somebody if they don't know what they want to do.
It's not possible to write a tutorial on "2D gaming". That was the point of post.
However if somebody wanted to create a "2,5D" RPG more information could be offered.
I think there also some general (meaning, not aimed ata ...
It's not possible to write a tutorial on "2D gaming". That was the point of post.
However if somebody wanted to create a "2,5D" RPG more information could be offered.
I think there also some general (meaning, not aimed ata ...
- Sat Jul 23, 2011 12:03 am
- Forum: General Discussion
- Topic: Any patterns
- Replies: 12
- Views: 3985
Re: Any patterns
Rendering? That's what DX/OpenGL is for.
A 2D-Game engine. There are tons of different kind of games in 2D alone. They all have different parameters. That goes so far that you can't use ANY part of one engine for an engine for a game of a different genre.
The basis would probably be a tile engine ...
A 2D-Game engine. There are tons of different kind of games in 2D alone. They all have different parameters. That goes so far that you can't use ANY part of one engine for an engine for a game of a different genre.
The basis would probably be a tile engine ...
- Fri Jul 22, 2011 5:02 pm
- Forum: Off Topic
- Topic: flash seems to be faster then html5
- Replies: 28
- Views: 5012
Re: flash seems to be faster then html5
Youtube went back to flash after testing HTML5 for 2 weeks or so. And that is good.
Videos took forever to load, the volume control had a delay of 2sec or so. The time till the position bar appeared when hovering over it was several seconds, too...
There's a lot of work ahead. Browser's are not ...
Videos took forever to load, the volume control had a delay of 2sec or so. The time till the position bar appeared when hovering over it was several seconds, too...
There's a lot of work ahead. Browser's are not ...
- Fri Jul 22, 2011 4:16 pm
- Forum: Coding Questions
- Topic: Determing if a URL is a web page or file download
- Replies: 24
- Views: 4936
Re: Determing if a URL is a web page or file download
It's a totally different problem.
Of course it doesn't hurt to check if the file exists before attemping a download
Of course it doesn't hurt to check if the file exists before attemping a download

- Fri Jul 22, 2011 4:03 pm
- Forum: Coding Questions
- Topic: Determing if a URL is a web page or file download
- Replies: 24
- Views: 4936
Re: Determing if a URL is a web page or file download
What is this supposed to do?
It doesn't tell you if it's a binary file or not. It just tells if the file is there.
It's of course not easy to check the whole content of the file. Well, it is easy it's just not fast and you have to download the whole file first, but it's the only reliable method for ...
It doesn't tell you if it's a binary file or not. It just tells if the file is there.
It's of course not easy to check the whole content of the file. Well, it is easy it's just not fast and you have to download the whole file first, but it's the only reliable method for ...
- Fri Jul 22, 2011 3:17 pm
- Forum: Coding Questions
- Topic: Determing if a URL is a web page or file download
- Replies: 24
- Views: 4936
Re: Determing if a URL is a web page or file download
The extension is not reliable at all.
Any extension can be routed to be interpreted by php or any other language interpreter.
And a php file can output any data.
www.example.com/image.php can very well display an image and thus your stringgadget contains the same binary "rubbish" as with a normal ...
Any extension can be routed to be interpreted by php or any other language interpreter.
And a php file can output any data.
www.example.com/image.php can very well display an image and thus your stringgadget contains the same binary "rubbish" as with a normal ...
- Fri Jul 22, 2011 12:31 am
- Forum: Coding Questions
- Topic: Determing if a URL is a web page or file download
- Replies: 24
- Views: 4936
Re: Determing if a URL is a web page or file download
@skywalk: Your code debugs "302 found" for the second file which clearly doesn't exist.
@Machinecode: The simplest way is to check for Chr(0). A textfile won't contain any.
This way you can display .pb etc, too, like Firefox does for example: http://purearea.net/pb/CodeArchiv/Database ...
@Machinecode: The simplest way is to check for Chr(0). A textfile won't contain any.
This way you can display .pb etc, too, like Firefox does for example: http://purearea.net/pb/CodeArchiv/Database ...
- Tue Jul 19, 2011 7:17 pm
- Forum: Tricks 'n' Tips
- Topic: [CanvasGadget] FaderGadget / TrackBarGadget
- Replies: 4
- Views: 3241
Re: [CanvasGadget] FaderGadget / TrackBarGadget
Thanks for the tips.
It's just a quick example.
In the first version, I had a Button that "debugged" the values, I figured a "live" display would be better.
It's just a quick example.
In the first version, I had a Button that "debugged" the values, I figured a "live" display would be better.
- Tue Jul 19, 2011 6:28 pm
- Forum: Tricks 'n' Tips
- Topic: [CanvasGadget] FaderGadget / TrackBarGadget
- Replies: 4
- Views: 3241
[CanvasGadget] FaderGadget / TrackBarGadget
Hi, everybody.
Creating new Gadgets on the Canvas seems to be quite popular.
So here's my take on it.
I had something like this using quite a lot of Win-Api.
Now here it is without any Api.
It's a bigger, more touchscreen-friendly TrackbarGadget that looks like a progressbar.
Updated exampled with ...
Creating new Gadgets on the Canvas seems to be quite popular.
So here's my take on it.
I had something like this using quite a lot of Win-Api.
Now here it is without any Api.
It's a bigger, more touchscreen-friendly TrackbarGadget that looks like a progressbar.
Updated exampled with ...
- Tue Jul 19, 2011 12:08 am
- Forum: Applications - Feedback and Discussion
- Topic: GridGadget
- Replies: 60
- Views: 43774
Re: GridGadget
Confirmed. Windows 7 Home Premium 32skywalk wrote:...the app crashes if I resize the window too small and then try to make it larger again.
The error occurs when you resize the height. There's probably a division by zero (when the top CanvasGadget height is 0)

Otherwise nice looking gadget.
- Mon Jul 18, 2011 1:46 pm
- Forum: General Discussion
- Topic: You could write 2D games on the CanvasGadget
- Replies: 34
- Views: 8852
Re: You could write 2D games on the CanvasGadget
Why not use the normal sound library?
Is there some restriction that you can only use that with a screen?
There are people who wished for several windowed screens, but it's not possible.
Now there is.
Is there some restriction that you can only use that with a screen?
There are people who wished for several windowed screens, but it's not possible.
Now there is.
- Sat Jul 16, 2011 9:25 pm
- Forum: Feature Requests and Wishlists
- Topic: Editor and ;{- Mark
- Replies: 3
- Views: 1364
Re: Editor and ;{- Mark
Good idea.
That's something I always wanted, too^^
That's something I always wanted, too^^
- Thu Jul 14, 2011 4:16 pm
- Forum: Coding Questions
- Topic: Canvas keydown
- Replies: 13
- Views: 2663
Re: Canvas keydown
Awesome, Stargate.