HN user

Jebus

33 karma
Posts0
Comments31
View on HN
No posts found.
The War On RSS 14 years ago

I use a few RSS in my iGoogle (mostly global news, just in case the world is ending or something which I would like to know instantly), and LOTS in my Thunderbird. How else would I be notified when this or that blogger, who writes one amazing article once or twice a year does so?

Don't kill RSS, write a nice guide on how to use it for non-techies and make it viral.

A Year with MongoDB 14 years ago

Uncompressed field names - If you store 1,000 documents with the key “foo”, then “foo” is stored 1,000 times in your data set

Oh my god. I didn't know about this. And I hate short, meaningless and anti-intuitive field names. Please fix it mongodb devs!

The thing is, you can't just 'escape XSS'. You need to know exactly where the data is going to be used, and you can't know that when you store it (in fact, you could use the same data in many different places). There are infinite ways of doing XSS, so if you don't escape properly, you are still vulnerable. The view layer should escape everything by default. Then if you need a different filter, or disable escaping (for wysiwyg for instance), do it manually.

HTMLPurifier? That thing should only be used if you are accepting html as input (eg: wysiwyg). Just escape everything in the view layer (not in the DBAL. There you only escape to avoid sql injection, not XSS!)

This! +1

I love reading HN because arguments and reason are all that matters. Spiced with some trolling here and there to make it fun. Trolls' messages end up gray anyway.

I have been using PHP for 4 years, and Ruby and RoR for a month or so.

And I have noticed this pattern:

In PHP frameworks, creating an object with raw $_POST is as common as in Rails (params), because it's faster for the developer. Of course, it's a known bad practice, and is discouraged.

The difference is that when a php developer makes this mistake, people say it's because php developers are all noobs and php is crap.

Now, when a Rails developer makes the very same mistake, it gets fancy names like 'mass assignment vulnerability', and by what I read in the comments on github, they are fully convinced that no other framework has this 'vulnerability', because no other framework has this feature of 'mass asignment'.

You are asking to see meticulous proofs in a simple blog post, which is not gonna happen. Also, any article like this will assume that you already know something about what's going on there, or at least in the rest of the world. Eg: If someone says 20-30% inflation rate is high, it's obviously comparing it to the inflation in other countries. So yes, it's damn high. About the metrics, its pretty simple: they just pick the products/services that didn't increase much their price during that period. Of course nobody can't actually live with those products, nobody buys them or even know them. And when they need something real for the index, like the Big Mac.. Well, you know what happens. Automagically its price is reduced to a half, and the product is removed from the menu.

Would you mind explaining the downvote? I friggin live here and I KNOW they are printing more money than ever.

Their modus operandi is basically this:

- Take money from the middle class through unconstitutional high tax rates (that never come back in the form of infrastructure, education, security, etc), so they become poor.

- Give money to the poor so they keep voting favorably

- Give money to already rich friends and the Congress members, to have more power

- Get crazy laws approved, so that middle class has no escape. Eg: We can no longer buy other currencies, not even gold, so we are forced to stick to the pesos.

- Print print print! (more pesos) This way the money flows like this: people's savings and salaries -> government

- Profit