Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
DCoder
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
8 ms
·
331.
▲
by
DCoder
13y ago
> I also believe there are some nice SQL sanitation libraries out there. This is not the right approach. Separating the query structure from the data is the right way to go - parametrized queries are much safer than sanitization, w
332.
▲
by
DCoder
13y ago
It's from [0], which was on HN not too long ago [1]. [0] http://natashenka.ca/posters/ [1] https://news.ycombinator.com/item?id=7156405
333.
▲
by
DCoder
13y ago
> how many times have I bought a movie on iTunes to show my kids how to do it right, and then torrented it as I couldn't wait for the download, too slow. Hey, at least you have the option of getting it on iTunes. Where I am, nei
334.
▲
by
DCoder
13y ago
Since you're using MySQL, you can start it with --i-am-a-dummy [1]. Not a backup, but still handy. [1] http://dev.mysql.com/doc/refman/5.6/en/mysql-tips.html#safe-...
335.
▲
by
DCoder
13y ago
> It appears that you can't provide answers without first asking questions. That's not true. You can write answers right away, but you need to acquire some rep before you can write comments .
336.
▲
by
DCoder
13y ago
Not entirely true. PHP definitely tries to perform a numeric comparison on two strings if it thinks they are both numerical strings, but this behaviour changed in PHP 5.4 [0]. heron87's scenario was reported as a bug [1], changed in PH
337.
▲
by
DCoder
13y ago
While I admit that using a framework instead of your own solution is a good solution, please note that that's not "zero work", it just passes the buck to the client. The framework's knowledge of the timezones still has t
338.
▲
by
DCoder
13y ago
Seen this pattern many times before. One of those 'en' strings is the current user's language being written into the source, the other is hardcoded. If your server-side templating engine is impotent and only supports variable
339.
▲
by
DCoder
13y ago
TypeScript only does enough run-time argument checking to support default argument values. Full run-time type checking would have overhead. It would also be unnecessary in places where data flows from Typescript function to Typescript funct
340.
▲
by
DCoder
13y ago
This was discussed on Reddit after Sourceforge announced the new installer three weeks ago: http://www.reddit.com/r/technology/comments/1jk1gz/sourcefor... , several users confirmed the crapware in the i
341.
▲
by
DCoder
13y ago
It appears I misremembered this a little bit - the issue was with license ownership, not license type. The answer we got from Hetzner support was: " we don't offer MSSQL licenses, if you want it you need your own license for MSS
342.
▲
by
DCoder
13y ago
Be careful and ask support to confirm all the software in your stack will be runnable. We tried to launch an SQL Server (MSSQL) -backed system on one of their root servers and their support said "the Windows licenses we use do not allo
343.
▲
by
DCoder
13y ago
You probably meant "speck", not "spec".
344.
▲
by
DCoder
13y ago
See also discussion on Reddit [1] and a particularly interesting comment [2]. [1] http://www.reddit.com/r/programming/comments/1gfve8/how_not_... [2] http://www.reddit.com/r/programm
345.
▲
by
DCoder
13y ago
I'm talking about a managed server. No root access. If there was root access, I wouldn't be listening to their "we can't limit access because that's how our management tools work".
346.
▲
by
DCoder
13y ago
I host several customer projects on Hetzner managed servers. Ports of all the services, MySQL, Postgres, smtp, everything else are open to the world and their support refuses to lock that down in any way. I accept that for managed servers t
347.
▲
by
DCoder
13y ago
That tag can stop you from scrolling sideways because it also says "the width of this document should be the same as the width of the device", killing all horizontal scrolling. It shouldn't affect vertical scroll though, unless height is co
348.
▲
by
DCoder
13y ago
What's there to fix? The tag says "you cannot zoom this site to levels less than 1.0 or more than 1.0", the browser complies. I'm not proud of it, but I've used this very approach to fix a stupid bug in iOS Safari - rotating the device with
349.
▲
by
DCoder
14y ago
It doesn't record where you click or what you open, just every request as it moves over the wire. I am getting quite different results - it records http requests and user input (keyboard/mouse). Windows 7 x64, Chrome 25.0.1364.172 m :
350.
▲
by
DCoder
14y ago
Create a separate profile or close _all_ open Chrome windows first. "c:\path\to\chrome\dir\chrome" --user-data-dir="c:\path\to\chrome\dir\User Data/test" --record-mode
351.
▲
by
DCoder
14y ago
Yes, The West Wing is worth watching in its entirety.
352.
▲
by
DCoder
14y ago
Because that's how the Mercator projection distorts object size: http://en.wikipedia.org/wiki/Mercator_projection#Distortion
353.
▲
by
DCoder
14y ago
That makes sense (thank you, don't know why I didn't realize that myself), but if I override that with css height: auto; , the browser no longer reserves space for the image while loading it... quite unfortunate.
354.
▲
by
DCoder
14y ago
If you specify width and height explicitly, certain browsers will have issues resizing them (if you set max-width: 100%, Chrome will squish a larger image horizontally but leave the height as it was, IE will scale it proportionally).
355.
▲
by
DCoder
14y ago
And the effort not to give up when your reverse-engineering efforts reveal remarkable stupidities in the original code. We all know crunch happens, but that doesn't make dealing with the resulting spaghetti any easier. (I spent several year
356.
▲
by
DCoder
14y ago
There is the Pointer Lock API [1], but it's still WIP. [1] http://www.html5rocks.com/en/tutorials/pointerlock/intro/
357.
▲
by
DCoder
14y ago
SO users with 10k+ reputation can still see deleted questions.
358.
▲
by
DCoder
14y ago
FYI: the email: field in your profile is private, other users can only see the about: field.
359.
▲
by
DCoder
14y ago
That is what "Close as too localized" option is for.
360.
▲
by
DCoder
14y ago
Compare that to a training exercise the soviets carried out - 40+ thousand troops engaging in combat while a nuke is detonated overhead: http://www.johnstonsarchive.net/nuclear/radevents/1954USSR1....
More ›