|
This is one example of depending on clientside code without much serverside validation. We need to ensure that we redundantly check the data on the serverside also.
|
|
|
|
|
No, it's an example of a dumb mistake.
' Two choices: throw out out-of range votes or just clip to valid
' Let's be nice and clip to valid...
if (vote > MaxVote) Then vote = MaxVote
...
Anyone pick the mistake? Yeah, how about a "if (vote < MinVote)... "
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
How about this one:
if (vote < MinVote) Then vote = MaxVote;
That'll teach them for trying to circumvent the site's original intent...
BTW, how's it going regarding article voting changes?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
Chris Maunder wrote: Looks like someone has managed to sneak a way to vote 0.
Also to vote a -ve number (the article's rated -431 now).
|
|
|
|
|
Programmers...
|
|
|
|
|
J. Dunlap wrote: Programmers...
I think you can vote 0, or -ve, but it won't let you vote > 5 (that check may already be in place).
|
|
|
|
|
Looking at the page source, it has some suspicious looking stuff in it.
Some people have a memory and an attention span, you should try them out one day. - Jeremy Falcon
|
|
|
|
|
I have recently noticed this little bug after clearing out all my cookies. The 'latest articles' page has a few options at the top like category and age. When selecting these options and clicking the 'update listing' button, the page will refresh to show the new preferences/list. But when leaving and returning to the page, the options have reverted back to their original state ( the list too ).
Before I cleared my cookies, that page would always display my prefered listing.
At various locations across the whole site there are options and preference settings. Wouldn't it be easier to place them all in one location, like the 'my settings' page. This way we could just select a few options, update the cookie, with no need to worry about loading a page - selecting options - and reloading again.
|
|
|
|
|
Which browser?
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Ahh sorry, i should have mentioned that.
I'm currently using IE7 ( vista ), but I have noticed the same behaviour on my office PC which uses IE6 ( XP ).
|
|
|
|
|
The problem still remains. Each time I open that page ( which is 4 or 5 times daily ) I am confronted with a list of articles that I will never read
|
|
|
|
|
Please let us switch back to previously used email accounts. When I try to switch back to the account that I was using before the current one, I get the error message "The email you supplied has already been registered." (It's the same as the current one, but without the dot.)
|
|
|
|
|
Email me your current and previous address and I'll fix it. (webmaster @...)
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Could we have the ability to "roll up" a thread so that only the original message is displayed unless we want to open it up and view the whole thread? For instance, the Advertising in signatures[^] thread runs for 2 or 3 pages.
Arthur Dent - "That would explain it. All my life I've had this strange feeling that there's something big and sinister going on in the world."
Slartibartfast - "No. That's perfectly normal paranoia. Everybody in the universe gets that."
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
Have you tried changing the View to Thread View. I do that when a certain somebody starts threads that goes on and on :->
Some people have a memory and an attention span, you should try them out one day. - Jeremy Falcon
|
|
|
|
|
Don't know if this issue has been raised before. Sorry if I'm repeating something, but the Help!--->About Us section takes eons to open...not until I run out of patience can we get this fixed? Not that I use that page often, but here's an issue that bothered me and thought I'd bring it to notice
Thanks...
--Mayur
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
True.
I observed this too. The page weighs out 45K HTML alone (Right Click Properties). This, I think is without any included JS files.
Besides, I think, the slow down might be due to images being dynamically streamed from the database.
My suggestion would that the fragments of the Page can be Ajaxified to accelerate the page render time. For me, the page loaded in 140 seconds (Airtel Broadband, Chennai, India)
|
|
|
|
|
No, it's because the query I'm using is broken - it does a full table scan of one of the fields because that field is currently representing a bitmask (bad old legacy code).
The size isn't an issue at all, nor will AJAX do anything. I just need to retro-fit the DB changes we've made in our dev servers onto the live server (which leads to another change which leads to another change and so on).
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
Hi,
What is the CodeProject policy regarding multimedia content in articles?
Especially i'd like to know if there is a chance to use Animations (divx/AVI)? What about Java applets. I realise that there is a Java section here, (although somewhat hidden). I have a cute applet demonstrating tidal forces and i'm looking for a place to publish it but writing an article about an applet is a waste of time without beeing able to run it on the article page.
Regards,
Ingo
|
|
|
|
|
Unfortunately we can't allow any applets. We just never know where they've been and the potential for mischief from malcious authors isn't worth the risk.
We don't allow Videos because having a video play on a page without a reader specifically request it to load is impolite in my opinion.
If it's a simple animation in AVI format then what about just converting to animated GIF?
Even so, if there's a compelling reason to include a video please send me an email directly and we'll see what we can do to accomodate you (webmaster @ codeproject.com)
cheers,
Chris Maunder
CodeProject.com : C++ MVP
|
|
|
|
|
How about allowing a "click here to view active content" button. Then allow for a section in the site where the user can play said active content.
Brad
Australian
I assume Microsoft would not use doors, because using Windows in faster.
|
|
|
|
|
Chris Maunder wrote: webmaster @ codeproject.com
Try this: http://alicorna.com/obfuscator.html[^]
Brad
Australian
I assume Microsoft would not use doors, because using Windows in faster.
|
|
|
|
|
Multimedia content can really suck down the bandwidth. If you want to post animation, put it on your own web page and provide a link to it.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
This is true for animations not for java applets. Nevertheless I understand that CodeProject doesn't want to risk posting potentially dangerous applets or oversized animations that in addition may require certain codecs to be installed in the browser.
But since i'm looking for a way to publish an article containing multimedia content this won't happen here. If I would post a link there is no need to publish the rest of article here anyway. For some topics people won't bother reading an article and download a java applet based on an meaningless screenshot.
|
|
|
|
|