Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fooyc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
24 ms
·
211.
▲
by
fooyc
13y ago
Nothing specific to the language here. Mentioned functions do exactly what their names imply. Just like ruby or python, PHP has great templating languages, support for prepared statements, etc.
212.
▲
by
fooyc
13y ago
This is exactly what NOT to do. The mysql_real_escape_string part is what PHP did with its "magic_quotes" feature. This feature has been removed for good reasons : - All your variables are cluttered with \' everywhere, so you
213.
▲
by
fooyc
13y ago
The following sentence seems really wrong: " Setting the X-Frame-Options header can make it harder for an attacker to carry out this attack (by making it impossible to put your site in an iframe). " Even with X-Frame-Options, the
214.
▲
by
fooyc
13y ago
Works fine on Android stock browser (Galaxy Nexus)
215.
▲
by
fooyc
13y ago
Anyone did a visualization of browser window size fragmentation ? I'm wondering how the web can even work with all this fragmentation.
216.
▲
by
fooyc
13y ago
Apparently there is no CAS by design, this allows groupcache to replicate hot keys on multiple hosts.
217.
▲
by
fooyc
13y ago
What matters most when programming is all the non alpha numeric symbols. You likely type symbols such as ', ", (, and ) more often than all numbers, and more often than half the letters. If these symbols are accessible only by usi
218.
▲
by
fooyc
13y ago
Finally an RSS reader that does just what you would expect from an RSS reader, and that does it well. This may be the first real Google Reader alternative I've seen so far.
219.
▲
by
fooyc
13y ago
> Your DNS example is a corner case One of the many corner cases that will kill your application or open it to DoS (malicious or not). I.e. you can DoS any nodejs application if * you can trigger it in making 4 DNS queries * a
220.
▲
by
fooyc
13y ago
Node.js itself is fine. The real problem with node.js is the libraries. Just don't use them. A huge portion of existing libraries is full of hidden bugs, shortcomings, race conditions, edge cases, security issues, unscalable, or unmaintaina
221.
▲
by
fooyc
13y ago
Where do you store the passphrase of your passphrase database ?
222.
▲
by
fooyc
13y ago
The "to" TLD used to resolve to an URL shortener, producing http://to/xxx urls. Now it still resolves, however the server doesn't accepts http connections anymore.
223.
▲
by
fooyc
13y ago
Ugly monkey patching everywhere, open classes, insecure by default (e.g. mass assignment), global states, model classes easily too much tied to a single controler, active record pattern, ...
224.
▲
by
fooyc
13y ago
DNA is bytecode for some VM, and the junk is uninitialized HEAP. Maybe.
225.
▲
by
fooyc
13y ago
fpm is not an apache module
226.
▲
by
fooyc
13y ago
FPM is a FastCGI server. That is, it does socket-based IPC (TCP or unix), with a binary protocol (FastCGI), with one process per request. Litespeed seems very close to that: socket based IPC, with a seemingly custom binary protocol, one pro
227.
▲
by
fooyc
13y ago
I bet you not only switched from nginx to apache, but also from some-language-module-loaded-in-every-apache-children to something like fastcgi. This is what actually made all the difference.
228.
▲
by
fooyc
13y ago
Apache has much more features, more modules, supports more auth schemes, etc. And the documentation is awesome. Apache configuration is generally better, less WTF. E.g. the nginx headers module [1] allows you to either set a single header,
229.
▲
by
fooyc
13y ago
A vimL API for parsing code, with AST, code transformations, and un-parsing would be a huge step in that direction. This would allow plugins to all sorts of crazy stuff, with less magic, less regex, and more robustness. This would make code
230.
▲
by
fooyc
13y ago
At least the annotation/metadata/dql parser cache should be enabled: metadata_cache_driver: apc Else you are benchmarking the annotation and DQL parsers. Also, for big PHP frameworks you have to make sure that APC's SHM size is large enough
231.
▲
by
fooyc
13y ago
Amazon reserved instances cost 2 to 10 times the price of renting a private dedicated server at your random dedicated server hosting service. Compare youself: https://www.ovh.com/us/dedicated-servers/
232.
▲
by
fooyc
13y ago
> If you ignore the fact that these aren't actually static objects It depends what you call a static object. If the content of your object is stored somewhere and you can just send it without transformations, it's some kind of static ob
233.
▲
by
fooyc
13y ago
I'm not saying it's simple nor easy. I was assuming that the number of requests referred to read requests, and I guess that the system is designed in a way that makes read requests very cheap, maybe even cheaper than reading a file on a usu
234.
▲
by
fooyc
14y ago
1.1 Million Requests/Second seems especially low for Amazon. The average server can serve more than 1,000 static objects / second easily.
235.
▲
by
fooyc
14y ago
file_get_contents only returns the content of the given file; you must be speaking about something else
236.
▲
by
fooyc
14y ago
How does the web look like from the 90's ?
237.
▲
by
fooyc
14y ago
> All queries are fully parallelized Does it means that every query touches all servers ? Or does it sends queries to only a subset of servers when possible ? (e.g. range queries on PK)
238.
▲
by
fooyc
14y ago
In default, non recursive mode, it's only returning the value of zval->nNumOfElements (with a few indirections). It's not count() that's benchmarked here, its the difference between "$a < $b" and "$a < function_call($b)".
239.
▲
by
fooyc
14y ago
You can do that with POST too if the site doesn't have CSRF protection ;)
240.
▲
by
fooyc
14y ago
So, either PHP is a framework, or Django, Rails, Phonegap are programming languages ?
More ›