Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
fooyc
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
28 ms
·
241.
▲
by
fooyc
14y ago
Slowloris is also the name of a deny of service tool: http://ha.ckers.org/slowloris/
242.
▲
by
fooyc
14y ago
Seems like it could lead to information disclosure
243.
▲
by
fooyc
14y ago
I had some server IP address banned by hotmail by doing that. Because this is what spammers do to check their emails list.
244.
▲
by
fooyc
14y ago
PHP provides escapeshellcmd / escapeshellarg functions for escaping when building commands. Is there any shell on which those functions are unsafe ? I think they assume cmd.exe on windows and sh on others.
245.
▲
by
fooyc
14y ago
> ease of clustering and sharding, developer friendliness, JSON support, tool support etc. Which RDBMS do you have in mind ?
246.
▲
Don't store sessions in memcached
(dormando.livejournal.com)
3 points
by
fooyc
14y ago
|
0 comments
247.
▲
by
fooyc
14y ago
> How is storing in Redis(or any other in-memory store) any different from storing in Memcache? Memcached is a cache, not a store. Memcached happily removes keys when it feels so Please see this post where memcached author recommends no
248.
▲
JQuery to remove synchronous ajax support
(bugs.jquery.com)
2 points
by
fooyc
14y ago
|
0 comments
249.
▲
by
fooyc
14y ago
One MacBook to rule them all
250.
▲
by
fooyc
14y ago
These are not magic features. You still have to make your app scale. And once you did it, it works as well on dedicated servers. Dedicated servers come with dedicated disks or SSDs, memory, CPUs, network cards. Decent dedicated hosting prov
251.
▲
by
fooyc
14y ago
JSONP requires complicity from the remote server too
252.
▲
Machine Learning class is live
(coursera.org)
7 points
by
fooyc
14y ago
|
0 comments
253.
▲
Use GET for AJAX Requests (or not)
4 points
by
fooyc
15y ago
|
2 comments
254.
▲
by
fooyc
15y ago
Consistency. Since $a[0] is a string, you would expect $a[0][0] to work too.
255.
▲
by
fooyc
15y ago
Closures can now have a `$this` (by default it is the class in which the closure is declared). No more $that = $this hacks :)
256.
▲
by
fooyc
15y ago
There is also a modern php implementation of HAML at https://github.com/arnaud-lb/MtHaml I believe it's much faster too.
257.
▲
by
fooyc
15y ago
SASS/SCSS just work on linux ;) sass --watch does the "compile on save" thing.
258.
▲
by
fooyc
15y ago
When you free() a memory region, it's not returned to the OS. It's only made available for later mallocs. When malloc returns memory previously freed by the process, it effectively returns uninitialized memory, without leaking any informati
259.
▲
by
fooyc
15y ago
But it failed to use a proper module format (e.g. CommonJS / AMD)
260.
▲
by
fooyc
15y ago
This is awesome. I guess this is why the 2012 ML class is delayed; I'm wondering if it will still happen :(
261.
▲
by
fooyc
15y ago
And now people will think that PHP doesn't have classes.
262.
▲
by
fooyc
15y ago
I would love to be able to require() jQuery features: require(['jQuery.ajax', 'jQuery.events'], function() { // code using ajax and events here }); Much easier than to manage script tags. (hint: CommonJS / AMD)
263.
▲
by
fooyc
15y ago
CommonJS / AMD anyone ? There are plenty of libraries doing this already.
264.
▲
by
fooyc
15y ago
I believe it's highly related: Dudes that's incredible, hacker news guys removed my blog post from the home page. Truly lame. https://twitter.com/#!/antirez/status/122310866728271872 I think the blog post was this:
265.
▲
by
fooyc
15y ago
Disabling parse_ini_file looks like a mistake too ;) (It's just a ini file parser; it has nothing to do with PHP settings.)
266.
▲
by
fooyc
15y ago
An other good example is constructors; say you have a function like this: function MyClass(x){ this.x = x; } In Coffeescript this translates to MyClass = (x) -> @x = x `x` is returned; and if you re
267.
▲
by
fooyc
15y ago
> would be nice for 'academic' reasons if the compiler translated js->cs perfectly You should expect this from a compiler, actually > In my opinion, js functions should always return a value Sounds wrong > real code example
268.
▲
by
fooyc
15y ago
An example. This could be any statement evaluating to false. Coffee script returns the result of the last statement. Javascript don't. So, failing to take this into account produces coffeescript that do not have the same behavior than the o
269.
▲
by
fooyc
15y ago
It fails to return nothing here: e.onclick = function() { false; } // returns nothing Translates to: e.onclick = -> false // returns false
270.
▲
by
fooyc
15y ago
What's sad with this is that most of these modules would work in a browser if only they used asynchronous module definition. That would have been even more awesome.
More ›