Earlier quoted context omitted.
Self promotion [of your own blog/site] is frowned upon I believe. We have SHOW HN: for when you want to show something off that you have done. I think it's mainly to stop reporters at Gawker from linking to all their articles though ;)
Self promotion is not frowned upon. As long as the content is good it doesn't matter who submits it.
EA “Gives Away” 1000s Of Free Games Due To No Server-Side Validation
11–20 of 112 posts
Re: EA “Gives Away” 1000s Of Free Games Due To No Server-Side Validation
#12(I apologize in advance for linking to my own blog, but I had not seen this issue reported on any tech blog nor appeared in the "new" queue on HN, so I wrote a quick post this morning on the issue, as it's technically interesting.)
> The proper way to implement a promo code is logical: when the user attempts to apply a promo code, the server checks, has the user used this promo code before? by querying SELECT FROM transactions WHERE user_id = current_user AND promo_code = “OS3874XVC”. If the result set is empty, then the user hasn’t used the code, and everything’s good to go. Be very careful here, it's not as simple as it looks. If you don't do…
Re: EA “Gives Away” 1000s Of Free Games Due To No Server-Side Validation
#13Earlier quoted context omitted.
Is there a problem with linking to your own blog?
Self promotion [of your own blog/site] is frowned upon I believe. We have SHOW HN: for when you want to show something off that you have done. I think it's mainly to stop reporters at Gawker from linking to all their articles though ;)
Re: EA “Gives Away” 1000s Of Free Games Due To No Server-Side Validation
#14Earlier quoted context omitted.
Is there a problem with linking to your own blog?
Self promotion [of your own blog/site] is frowned upon I believe. We have SHOW HN: for when you want to show something off that you have done. I think it's mainly to stop reporters at Gawker from linking to all their articles though ;)
Re: EA “Gives Away” 1000s Of Free Games Due To No Server-Side Validation
#15(I apologize in advance for linking to my own blog, but I had not seen this issue reported on any tech blog nor appeared in the "new" queue on HN, so I wrote a quick post this morning on the issue, as it's technically interesting.)
Sorry to comment off of the content of the post, but when I load the page the Like button flickers shown/not shown a bunch of times causing annoying visual jitter. I'm on Chrome 22 if that is relevant.
Re: EA “Gives Away” 1000s Of Free Games Due To No Server-Side Validation
#16Re: EA “Gives Away” 1000s Of Free Games Due To No Server-Side Validation
#17(I apologize in advance for linking to my own blog, but I had not seen this issue reported on any tech blog nor appeared in the "new" queue on HN, so I wrote a quick post this morning on the issue, as it's technically interesting.)
> The proper way to implement a promo code is logical: when the user attempts to apply a promo code, the server checks, has the user used this promo code before? by querying SELECT FROM transactions WHERE user_id = current_user AND promo_code = “OS3874XVC”. If the result set is empty, then the user hasn’t used the code, and everything’s good to go. Be very careful here, it's not as simple as it looks. If you don't do…
What you're describing is not the result of an "attack," but rather the result of code that wasn't designed to deal with database locking. You weren't hacked, nobody attacked you; you just didn't design your system to deal with tons of people trying to write/read the same thing at the same time. Again, it's a tricky problem, so it's understandable (and a lot of people would consider dealing with such issues to be "premature optimization").
I will also note that the OP needs to stick to his MySQL Cookbook rather than commenting on coding practices for large-scale, heavy-usage web applications. His code suggestion is terribly naive, arrogant, and embarrassing. Yes, EA made a mistake; no, you have no clue what the hell you are talking about.
Re: EA “Gives Away” 1000s Of Free Games Due To No Server-Side Validation
#18Earlier quoted context omitted.
Sorry to comment off of the content of the post, but when I load the page the Like button flickers shown/not shown a bunch of times causing annoying visual jitter. I'm on Chrome 22 if that is relevant.
I figured out the error (I was wrong, it was indeed my code) and fixed it. No more flickering. :)
Re: EA “Gives Away” 1000s Of Free Games Due To No Server-Side Validation
#19(I apologize in advance for linking to my own blog, but I had not seen this issue reported on any tech blog nor appeared in the "new" queue on HN, so I wrote a quick post this morning on the issue, as it's technically interesting.)
Is there a problem with linking to your own blog?