|
| T O P I C | |
|
|
Duke Nukem Forever - IT'S DONE!! (Confirmed for May 2011)
February 10th 2011, 23:46 CET by FrankZulu This is my first submission. Please vote yes. :P |
| C O M M E N T S |
|
Home »
Topic: Duke Nukem Forever - IT'S DONE!! (Confirmed for May 2011)
|«« - Previous Page - Next Page - »»| |
|
Bullshit, no one can best "here, step into my shower". Except maybe Stephen Hawking's mama joke. |
|
Huh. I've come across the silliest of problems in developing my product webpage: What is the correct way to make a hyperlink that downloads a file? I get an error with my current technique: I have a "download.php" file that contains header data to transmit the file as binary. The file is transmitted just fine, but I get this console error in Safari when using the link: Failed to load resource: Frame load interrupted Eh the error is ignorable I suppose, but I assume it means I'm doing something wrong. The download.php code is simple: < ?php header('Content-type: application/octet-stream'); header('Content-disposition: attachment; filename=foundation_installer.mel'); readfile('http://mayafoundation.googlecode.com/files/foundation_installer_1.0.mel'); ? > Any of you amazing web guys can slap some sense into me? Downloading a file cannot be where I stumble and fail. |
|
I just use an "a href" and the direct link to the file, but I'm not fancy. |
|
Googling suggests that the notification is a Webkit security feature since you are using a script to generate the header. However Safari handles the warning differently from Firefox etc. (despite using the same engine) so you mostly see people complaining about it in reference to Safari. |
|
The script is server side, so doubt it's a Webkit security feature related to scripting. Not that I know what is actually going on. I'm kind of with bishop, though, why this convolution vs just a normal link to a file? |
|
Maybe it needs to be able to serve up links to dynamically generated files? |
|
I did start off with just a simple link to the file itself but I think it actually generated the same error. I can test that later to be sure. But more importantly the file is a .mel file, which I'm pretty sure on some machines will be read as a text file. The purpose of my product is to be downloaded, not displayed in the browser. |
|
Most people just put a note to right-click and save as. "I hope you one day decide to smarten the fuck up so I can stand to look at your posts." - gaggle
|
|
Maybe I'll do the same. It does seem this error only occurs in Safari and only shows up in the console. If that's the only symptom I'll stop panicking and carry on with life. |
|
G-man: Safari uses WebKit, Firefox uses Gecko. |
|
ZIP it and be done with it. ur using a jackhammer to break a pebble. nub. Zep-- w0rd up!
|
|
#217 by gaggle I did start off with just a simple link to the file itself but I think it actually generated the same error. I can test that later to be sure. But more importantly the file is a .mel file, which I'm pretty sure on some machines will be read as a text file. The purpose of my product is to be downloaded, not displayed in the browser. Usually if I want something to be downloaded vs displayed in the browser I'll set a mime type with apache (httpd.conf): AddType application/octet-stream .mel Which probably does the same thing as the first line in your snippet. Given that apache is good at these things, I'd probably try that first given it's the "simplest thing that might work". One other place I've had strange errors like this was when trying to set headers using the php header() function after content has already been sent to the browser (even a random space or carriage return at the top of the file). See here in the description for an example. |
|
I agree with Wudi. A little piece of me just died inside. |
|
There's an old proverb that applies here. A man had a problem, which he decided to solve using php. Now he has two problems. |
|
There's nothing wrong with PHP, just like there's nothing wrong with Visual Basic. The problem is it's so easy to use, a lot of people write really bad code with it. "I hope you one day decide to smarten the fuck up so I can stand to look at your posts." - gaggle
|
|
Especially people like me! |
|
#217 by gaggle I did start off with just a simple link to the file itself but I think it actually generated the same error. I can test that later to be sure. But more importantly the file is a .mel file, which I'm pretty sure on some machines will be read as a text file. The purpose of my product is to be downloaded, not displayed in the browser. Why not cache the file on disk after it's generated and provide a link? That's much less computationally expensive than generating the file on the fly everytime the user clicks 'download'. But if you're going to autogenerate it, don't forget a <meta http-equiv="PRAGMA" content="NO-CACHE"> tag. She's probably had sex with like 4 different guys by now and has no idea who he is anymore, his face lost in a memory sea of dicks.
|
|
Oh I don't generate it. The php file just sends a file with a specific MIME type. |
|
And thanks Owen, I'll check that out. Makes sense I can get Apache to do the same thing. |
|
#229 by gaggle And thanks Owen, I'll check that out. Makes sense I can get Apache to do the same thing. In the same theme, and also keeping with the theme of "the simplest thing that works": I'd use a simple filesystem symlink to do the masking of filenames that you are doing with the second line. That way when you upload a new version you just change the symlink, you don't have to edit the php file. In fact, there wouldn't even be a php file! |
|
#225 by Shadarr There's nothing wrong with PHP, just like there's nothing wrong with Visual Basic. The problem is it's so easy to use, a lot of people write really bad code with it. Yeah I kid. I've never built anything of merit with it myself but I'm sure it's possible as with any language! I use wordpress every day and it's pretty damn sweet. |
|
My wife just got an Android phone, and tight there on the home page is a Bing app that it won't let you delete. wtf? |
|
that is usually the fault of the carrier in question. The only way around it is to root the phone. "Testiculos habet et bene pendentes" - "He has testicles, and they dangle nicely."
"LP, your big balls are a religion." - Jibble |
|
I'll have to look into that, she probably won't use it for anything intense so I was thinking of rooting it so I could lower the cpu to extend battery life. |
|
Btw Owen did you know Planetcrap quote script (WHICH I LOOOOOVE) throws an error when visiting the first page of The Thread? |
|
That's understandable, so do I. "I hope you one day decide to smarten the fuck up so I can stand to look at your posts." - gaggle
|
|
+4 Funny |
|
#235 by gaggle Btw Owen did you know Planetcrap quote script (WHICH I LOOOOOVE) throws an error when visiting the first page of The Thread? Hey cool. I assume you mean the safari version? I'll have a look and hopefully I can fix it as I would love to try out the autoupdate feature of the safari extensions. |
|
#235 by gaggle Btw Owen did you know Planetcrap quote script (WHICH I LOOOOOVE) throws an error when visiting the first page of The Thread? I've pushed an update to the script. If you've set automatic updates for extensions it will happen automatically, otherwise you might have to go to Preferences -> Extensions -> Update all. The autoupdate feature for safari works as advertised, I inevitably stuffed it up a bit by mismatching version numbers in a plist file somewhere, but worked it out after a bit of head scratching. |
|
Out of curiosity I finally decided to check out Owen's script and got this dialog and I thought it was funny. No sane person would want to install planetcrap on their computer. |
|
You are a rock God Owen. I verified that the error still occurred, then restarted Safari and instantly the error is gone. That is too cool. Good catch on the Safari assumption, that wasn't my most informative bug-report to date. |
|
#240 by Gabe Out of curiosity I finally decided to check out Owen's script and got this dialog and I thought it was funny. No sane person would want to install planetcrap on their computer. Yeah, that should really come with a more serious health warning. |
|
So, websites. I've pushed the first online version of a product site I've been working on to my staging area, can I ask you guys to check it out for errors and stuff? The "product" itself is a super niche Maya script that makes it easy to load scripts from any folder and probably isn't worth all the glitzy images. But I wanted to stretch my HTML legs. Anyway, If I can get you to pretend you're really interested in this amazing product and/or service and visit http://foundation.staging.jonlauridsen.com/ then that'd be super cool. User/Passw is guest / guest1. Please post whatever thoughts you have, whether it be usability issues, bugs or trolling. The page isn't optimized at all yet so don't look too closely at the underlying structure :) |
|
More Safari Planetcrap script feedback: An error occurs when going to Profile -> Edit Profile. I don't even care if you fix it or not, did I mention the script is great just the way it is? :) |
|
At the very bottom of the page your home link doesn't work. Game Developers: Don't forget the zombie monkeys.
|
|
None of the links work. At least I think they are supposed to be links. The stuff that says "2001," "PC and Mac," "run the installer again," "BSD License," and "google code." If they aren't supposed to be links they why are they in a different font and bolded like links? Also clicking on the photo launches a photo viewer thing but no actual photos. I don't have Maya so I can't test the actual thingy. |
|
Looks good. Modern look, in that I mean it's clean, nice column layout, big chunky download link. It's a style that you see a lot today and I like it! As g-man noted, the click to zoom image thingy doesn't work, just spins forever. |
|
Ups. Thanks Chunk, fixed. |
|
The screenshot viewer doesn't work? .. *facepalm*, I didn't shut down my local server so I didn't notice the images were being loaded from it instead of the staging server! Thanks guys, I've implemented a quick fix so the screenshots should load now. |
|
I hear ya g-man, I've been discussing with myself if they should be links or not. I agree visually they suggest being links. Next revision I'll make them links and see how it feels. |
|
Thanks Owen. I've stolen liberally from my favorite product sites, sounds like it paid off :) |
|
That spinner actually took some effort to get going, it's a .png sprite containing 12 frames and javascript animates the pixel offset. Most googling suggests using an animated .gif as a spinner but they have such shitty transparencies. |
|
The logo/splash takes up way too much vertical space. |
|
Looks really good, gags. I am going to hire you! "programmers talk from a very deep gnome cavern, full of gold mechanics" - wisdom from the ancients
|
|
What size brower window are you using lwf? E.g. if you go to this page and tell me roughly the horizontal and vertical numbers? I'm around 1100x700 here, wondering if you're using a smaller viewport. That's not to discard your feedback, quite the opposite in fact I'm looking to correlate enough feedback such as yours with information about viewport sizes so I can make an informed decision. |
|
Oh you can just go here and actually see the numbers heh. Browser window width: 1092 Browser window height: 743 |
|
Thanks Matt! |
|
I'm about the same. IT'S TOO DAMN BIG. |
|
Too bad, I'd like to optimize for smaller viewports (haven't gotten to that yet as I don't know how important it is). For our viewport sizes I like a huge title though, it instills a clear and calm mood in me. Thanks for the feedback though :) |
|
Looks appropriate. Big text, shiny table, black background. Very I'M AND INDIE MAC DEV AND I MAKE THINGS AND STUFF. |
| C O M M E N T S |
|
Home »
Topic: Duke Nukem Forever - IT'S DONE!! (Confirmed for May 2011)
|«« - Previous Page - Next Page - »»| |
| P O S T A C O M M E N T |
|
|
| C R A P T A G S | ||||||||
|
|
| There are currently 0 people browsing this site. [Details] |
|
Powered by blah 0.9.1-dev •
PlanetCrap is © 1997-2035 Hendrik "Morn" Mans |