And don't forget the potential for SQL injection for itemId (unless the rest of the source code proves otherwise)!
Posts made by LoremIpsum
-
RE: Unconditionally conditional query composition
-
RE: Java deployment.properties WTF
I always try to use a 'positive' approach to variables and parameters like these, so preferring 'feature.x.enabled' instead of 'feature.x.disabled'.
The only times I might make exceptions to that rule are cases when you need to default to a certain behaviour in the absense of that parameter. For instance, if I have a 'feature.x.enabled' parameter that isn't set, it would intuitively default to false, wherease calling it 'feature.x.disabled' means it defaults to enabled.
-
RE: IRA limits: contribute dsdsdsd this year!
If you rewrite those drivers to work on Vista, it should work fine on 7 and 8, so it's worth the time.
Good luck getting your client to upgrade their stuff! As you probably know, XP will stop being supported in 2014.
For all your bog-standard applications, here's a tool that will save you a lot of setup time for a new Windows build: http://ninite.com/
You can also speed up the process some more by creating a clean-state disk image and restore that to save you about 30 mins installing the Windows files from DVD and another few hours configuring basic Windows settings to your liking. From there you can justrun updates and get the latest drivers.
-
RE: IRA limits: contribute dsdsdsd this year!
I heard it's not great. AC2 and Brotherhood were my favourites.
-
RE: IRA limits: contribute dsdsdsd this year!
Personally I always do a fresh install with a new copy of Windows. It's an opportunity to start clean. I do it roughly once a year too. So... yes, backups.
Yes, Linux users can find something to boast about, but I'm a gamer and I live in the real world.
-
RE: Add_multi
@toon said:
@Faxmachinen said:
regexes
You mean "regular expressions"?
You mean "pedantic dickweeds?"
Whoosh!
-
RE: IRA limits: contribute dsdsdsd this year!
Giving money to the Irish Republican Army might be justifiable. Using Windows XP in 2013 is not.
-
RE: Emergency. Giant crack in the basement. Evacuate!
Mother of God.... Where did this happen and do they have Health and Safety laws there?
-
RE: Tales from the Interview on Quora
TRWTF is definitely Quora.
After using BugMeNot to find a login, I started reading through the comments. Yes, they're pretty good! But every minute or two, something keeps shifting the page contents so I briefly lose where I was reading.
-
RE: Build failed with 0 warnings and 0 errors
Nice find! So whose build code should be named and shamed?
-
RE: This is the sort of design sense you need to work for Microsoft
@RaceProUK said:
@LoremIpsumDolorSitAmet said:
MS are breaking so many of their own rules lately.
Lately? I think you mean forever :)
Very true... Although I think they've been outdoing themselves lately. I guess it's just the side effect of a big company trying to adapt to the modern world and trying to be hip. That also goes for their 'matey' style of English in the new Office.
I like the fact that the poor developers predicted that this would piss people off (including themselves, probably) and actually made a registry entry for it, presumably because management said they couldn't have their checkbox.
-
RE: This is the sort of design sense you need to work for Microsoft
MS are breaking so many of their own rules lately. And they can't even be consistent with themselves either. Docked panels don't have uppercase titles, and neither to the ribbon tabs in Office. Hey, wait a minute, why does VS even have a traditional menu if they're so focused on putting the ribbon everywhere? Probably because it was rushed and unfinished, like Office 2013 for ARM.
-
RE: At least it has a password!
Hurrah! New website today. Looks like the password is definitely mandatory now.
-
RE: I wanted to price an Oracle DB!!!!!
Of course I was just kidding, but yeah... I don't want to know what Oracle product is powering the web server.
-
RE: "Yeah, well I told the CEO..."
"I guess the CEO liked how his time estimates were always so much shorter than anyone else's."
Hey! That's how government contracts are picked!
-
RE: I wanted to price an Oracle DB!!!!!
One does not simply grab a casual quote for Oracle. They want to know the name of your company and first-born child before scratching their
asseschins while deciding whether you're worthy enough to deserve an Oracle DB.Either that, or they're testing you to see if you can fix the application fault. If you can, you make a worthy DBA. Perhaps while you're in there, you can do a little UPDATE on the prices table?
-
RE: Today's minor gripe: java installer
...and when will people learn that nobody uses ask.com any more either. I wish I had a statistic, but I'll hazard a guess that 90% of browser toolbars are installed unintentionally.
-
RE: At least it has a password!
Giving the story away would be a bad idea, because you would be exposing the security exploit to everyone and allowing yourself (and everyone else) to be hacked. Of course, reporting it to the authorities would reveal it too, but to a much smaller and, hopefully, more trusted set of individuals.
-
RE: Firefox does it again
Hmm... Perhaps. But then you could just click the link and repeat the above.
Besides, I personally prefer having the absolute control and discretion of copying and pasting URLs manually. Anyone who uses websites' own 'share/email this link' tool are asking to get spammed. Yes, you should be able to trust the browser not to do this, but old habits die hard.
PS. Hey, I used to think people made it up, but yes, CS does sometimes delete two characters when I press backspace once!
-
RE: Firefox does it again
It clearly says it was removed from the context menu, not removed altogether.
Check your firefox menu.
I hate the changes Mozilla have made to the UI since Version 6, but for once, I agree with their decision on this.
-
RE: Your Sony Store password has been reset
I hope you're both right about that expired password flag. However, I didn't see anything in the OP that suggested he could still log in with his old password in order to change it. I assumed he would have to use the forgotten password feature. If so, my hypothesis still stands.
-
RE: The Growth
sql = "SELECT AVERAGE(something) FROM Entries1 ";
gameIds = query("SELECT gameId FROM Games");for(gameId : gameIds) {
sql += " UNION Entries" + gameId;
} -
RE: Your Sony Store password has been reset
I'm pretty sure this WTF was implemented by looking up users whose passwords are older than a certain number of days, and using an existing method to change the password, presumably the same method that would be called when the user actually changes the password themselves. Yes, a WTF, but meh...
What I really can't help but wonder, though, is what they change the password to. If they do something like set the password field to null, so that it simply doesn't work, then that's so-so... But what if they change it to some magic value that represents to a password someone could actually use? If that were the case, when the PSN gets hacked again in the future, it'll be even easier to crack more users' passwords as all the expired passwords will be the same.
-
RE: Fireworks and Dreamweaver
These programs were first designed long before CSS... and most of their features have not been updated since then.
Damn... Rollover images used to be SO cool.
-
RE: Fireworks and Dreamweaver
I've been a long-time lurker here but I thought I'd chip in right about now.
Fireworks is a great tool for designing graphics and animations, and to some extent doing design mockups. It had certain features (such as nested layers) long before Photoshop did, and still has features (such as symbols) that Photoshop still doesn't have. It's my program of choice for many things.
It also has tools to splice regions of images for spriting and web tables and the like, but other than that, it's definitely not a tool for web design.
And Dreamweaver? Oh gosh. I used to think the same thing when I used that abomination or its evil sibling, FrontPage. A decent text editor and proper knowledge of the language wins hands down every time.