|
I just found this on a page created from one of my colleagues. The message says:
You cannot upload files with Internet Explorer 7. Please use a newer browser like IE6, IE8 or Firefox.
And not only this. The message appears even when you are using the mentioned Browsers. LOOL
|
|
|
|
|
Besir Kasami wrote: Please use a newer browser like IE6
Ooooo you really need to show the code used to display and determine this message.
People are more violently opposed to fur than leather because it's safer to harass rich women than motorcycle gangs
|
|
|
|
|
There are many things in this case that make me laugh and cry at the same time;
a) IE6 is older not newer
b) There should be no problems uploading file with IE7, I have implemented FileUpload Control in many pages and there were never problems with IE7
c) There is no code that handles the browser info. The message is static and is allways visible (Big Red Font) no matter what browser you use.
|
|
|
|
|
Besir Kasami wrote: a) IE6 is older not newer
This one really goes without saying.
Besir Kasami wrote: b) There should be no problems uploading file with IE7, I have implemented FileUpload Control in many pages and there were never problems with IE7
I've used the FileUpload control with IE6 and it was never a problem.
Besir Kasami wrote: c) There is no code that handles the browser info. The message is static and is allways visible (Big Red Font) no matter what browser you use.
OK then, this is where you need to keep a cricket or baseball bat handy (depending on what country you're in) so that you can apply it repeatedly to the head of the individual in question.
People are more violently opposed to fur than leather because it's safer to harass rich women than motorcycle gangs
modified on Saturday, February 5, 2011 12:38 PM
|
|
|
|
|
I like your ability to internationally adapt in the need for violence
return 5;
|
|
|
|
|
What are you talking about! Hitting people over the head with a cricket bat is a proven development methodology here in Australia and India. Surely they use baseball bats in the states... don't they?
"You get that on the big jobs."
|
|
|
|
|
Robert Croll wrote: Surely they use baseball bats in the states... don't they?
But they're only used for hitting balls. (Below the belt, usually)
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
It's always a good idea to be adaptable.
People are more violently opposed to fur than leather because it's safer to harass rich women than motorcycle gangs
|
|
|
|
|
All he wanted to say was IE9 (he kind of got the 9 upside down).
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
|
|
|
|
|
I know how to fix it. Instead of the message:
"You cannot upload files with Internet Explorer 7. Please use a newer browser like IE6, IE8 or Firefox"
Show this one:
"You cannot upload files with your current browser. Try another one."
Hey, you will never be able to upload files, but at least your message is not cheating.
|
|
|
|
|
Not a programming question.
I've been sniffing around the Shell namespace new in .NET 4.0, which is part of PresentationFramework assembly.
Well. A so-called "shell" is a part of OS which evolve quite quickly. What if a new feature is added, which will happen sooner or later? Will it be shipped with .NET 5.0 or in a java-like update or in another System.Core2 thing...
Adding wrappers for OS-specific shell features to the framework ain't a good idea -- just my 2 penses. Any thoughts about this?
Greetings - Jacek
|
|
|
|
|
Well, it is in the "System.Windows" namespace. I definitely think the annoying OS-specific stuff should be wrapped and be made available in the .Net Framework. That provides a layer to help avoid changes when the underlying OS changes. So in Windows 8 we can use the same .Net functions. If the functions no longer exist on that OS, they can perhaps throw an exception and having a bool that says IsFeatureAvailable would be nice too.
|
|
|
|
|
Yeah, OSes are pretty much a shell game.
|
|
|
|
|
|
How else do you legitimately access those features?
|
|
|
|
|
Trollslayer wrote: How else do you legitimately access those features?
Hmm, you are right. Anyway it must be placed somewhere or we are back to interop.
The best place for that would be a 2nd party .NET library -- not in the framework itself. The same with GDI/WPF. Who uses both GDI and WPF? If GDI was in a separate lib from the beginning there wouldn't such a mess today. A designer would choose a technology for GUI and data storage and wouldn't have to reference all former/future technologies. But this is just my opinion.
Ouch. Kombadibilidy.
Greetings - Jacek
|
|
|
|
|
Found this great code for encryption in our codebase. All of the client's extremely sensitive information is being stored locally using this.
string Encryption::EncryptString(string dat) {
string n = "qwertyuiopasdfghjklzxcvbnm"
n += n + n + n + n;
for (size_t i = 0; i < dat.size(); i++) {
dat[i] ^= n[i];
}
return dat;
}
And it gets even better when you see the decrypt function:
string Encryption::DecryptString(string dat) {
return EncryptString(dat);
}
|
|
|
|
|
Superb. Microsoft should remove the System.Security.Cryptography as soon as possible.
|
|
|
|
|
Question: I use another keyboard layout. Will it still work?
However, this is a good encryption function - only the first 130 chars will be encrypted with a known key...
|
|
|
|
|
Oh Horror of Horrors... This one is certainly one of the best. I don't think it could have been any worse if it had been written in vbscript.
I wasn't, now I am, then I won't be anymore.
|
|
|
|
|
That is a truly brilliant encryption strategy, I will have to use it the next time I need such a thing.
Just because the code works, it doesn't mean that it is good code.
|
|
|
|
|
I have tried your suggestion for encrypting and decrypting but it keeps giving me errors when I try to play the code.
I really need this to work ASAP as it is a very important project for me!!!
return 5;
|
|
|
|
|
It looks like some urgentz univoters didn't get it.
PS. I had considered voting you up but I found these two uni-votes funnier than the content. Sorry
Greetings - Jacek
|
|
|
|
|
As long as you hide the key well, and use it only once...
--
Kein Mitleid Für Die Mehrheit
|
|
|
|
|
You know, this function is so great that it will crash the application if "dat" is long enough (longer than 130 symbols).
|
|
|
|