HNHacker News
TopNewBestAskShowJobs

slapresta

218 karma · joined February 3, 2013

submissionscomments
slapresta··on Ask HN: How do you view large JSON files?
I usually use jq to understand the structure of the file. `keys` will get you all the key names in an object; `with_entries(.value |= type)` will replace each element on an object with its type. You can quickly delve into a JSON and gain some understanding of it with jq.
slapresta··on How a team of young people helped rebuild healthcare.gov (2015)
With words that have meanings? To the layperson, "data center" and "supercomputers" translates to "tech stuff".

"AWS is a service by Amazon that runs software for you in computers connected to the internet" is still inaccurate, but has a meaning for the layperson other than "tech buzzwords with superlatives".

slapresta··on Spain Runs Out of Workers with Almost 5M Unemployed
It definitely has to do with low salaries: by Spanish standards, I'd say that's a good job offer. Sure, the range advertised is too broad to be useful, but at least there is one; a good one, too, considering that most tech jobs here are on the 18-30k range.
slapresta··on How a comment on Hacker News led to 4½ new Unicode characters
That doesn't directly translate to a color requirement in the font, though.
slapresta··on How a comment on Hacker News led to 4½ new Unicode characters
This is about icon fonts and font rendering and has nothing to do with Unicode. Code points don't have colour; there's no colour requirements anywhere in the spec.

Your fonts don't have to support the entirety of Unicode. That's why we have font stacks and fallbacks.

slapresta··on Don't use JSON web tokens for sessions
The crucial point is that XSS vulnerabilities are an application level issue. If you have an XSS vulnerability, your application is broken. Good development practices prevent XSS vulnerabilities.

Your application does not have a CSRF vulnerability; HTTP cookies have a CSRF vulnerability. Your application may depend on HTTP cookies, which exposes this vulnerability through your application. The so-called "CSRF protection" is a hack that patches a protocol vulnerability at the application level.

slapresta··on How Intel missed the smartphone market
Working touch screens are useless without usable touch UIs.
slapresta··on New Sublime Text update
The git support is a big deal. I loathe SourceTree and the like, but VSC is basically a better `git add -p` for me.
slapresta··on Norway's $860B Fund Drops 52 Companies Linked to Coal
Well, for one, they make about 50% of full measures, give or take.
slapresta··on For anyone who has been turned down by 38 companies
So, if they aren't willing to go through whatever random whiteboard bullshit you decide is due, then they can't join your company? Sounds like you're doing them a favor, not the other way around...
slapresta··on Lotteries: America's $70B Shame
> It's like discussing guns with people who will never use them.

You mean that it also creates a toxic culture which disproportionally hurts poor people and minorities? Agreed!

> lotteries are great sources of revenue (better than state corporate income taxes? Holy cow!)

They're only so because the US has this inmensely powerful anti-tax culture and lobbies. Plus, lotteries take money from the poor, which means they're aggravating the very problems we use taxes to solve.

> they are low-health-risk (someone may need treatment for gambling addiction but it never hurts their lungs or livers)

Mental health issues are health issues. Gambling addiction is not a low health risk.

> Just don't come crying to me when the state comes for your income and property taxes to make up the difference...

They should! They should come for my income and for my property taxes, and even more so for the income and property taxes of those who are richer than me. Taking money from the poor to fund the services that poor people need is obviously counter-productive.

slapresta··on Ontario announces that it will begin a basic income trial in 2016
> Few politicians would dare campaign to reduce an established benefit.

Right, because it's not like there's any US party that campaigns against government spending, food stamps and universal health care...

slapresta··on The “Black Standard” for binary clocks (2007)
Hilariously, PHP supports this on its date/time formatting functions: http://php.net/manual/en/function.idate.php
slapresta··on GitHub Outage
That doesn't even make sense.
slapresta··on I'm going to slowly move on from Mercurial
Well, yes. Everything else I've mentioned is also dependant on cultural contexts that may vary dramatically over time. I surely hope Facebook hasn't won forever.

For what it's worth, I'm not a native English speaker.

slapresta··on I'm going to slowly move on from Mercurial
Code collaboration tools have a strong network effect due to them being ultimately social tools, and we expect categories affected by the network effect to have winner/losers mechanics. Of course, they don't actually have to, but it's a common expectation and a common outcome.

For equivalents to "code collaboration tools", instead of "programming languages", "text editors" and "build tools", try "social networks" (Facebook won, MySpace lost), "network protocols" (HTTP won, FTP and Gopher lost) or "spoken languages" (English won)

slapresta··on Clojure is for Type B personalities
While I understand the sentiment, this conflates up-front design with compile-time safety, and opposes the latter to "quick, spontaneous changes". However, I feel that my iteration loop gets tighter thanks to compile-time safety, since I don't even have to run my application and test it to find most of its errors.
slapresta··on Invoke God Mode in Windows 10
Wasn't this possible in every release since Vista?
slapresta··on Busybox removes support for systemd
This is going beyond ridiculous.
slapresta··on A Language Is More Than a Language
Agreed on Mono hardly being production-ready until recently: that said, Unity uses Mono extensively for production purposes.
slapresta··on Ask HN: Who here would be interested in a free daily updated GeoIP database?
Oh, no, it's not your IBAN. It's a number that looks like a credit card number, but the card it points to is actually a debit card.
slapresta··on Ask HN: Who here would be interested in a free daily updated GeoIP database?
I'm European and I'm yet to find a credit card field where I can't put my debit card number. I'm not sure I understand what you're saying.
slapresta··on Court rules drug dog barely more accurate than a coin flip is good enough
Sure, because a coin is evaluated on its capacity to map to an even distribution of outcomes. Drug possessions, however, are almost surely not an even distribution. If, say, 95% of the people that the dog evaluates have drugs, then raising an alarm 93% of the time is probably pretty good.

In other words: If we wanted a drug dog to be as close as possible to a coin flip, we'd just flip a coin instead.

slapresta··on A little Golang way
> No, I don't buy that a code formatting tool obviates the need for design patterns. How does gofmt replace the Visitor pattern (just to pick one at random from the GoF)?

Asking if a code formatting tool "obviates the need for design patterns" is the wrong question, because it assumes that there is a need for design patterns in the first place.

I do agree with you that a code formatting tool is not capable of somehow fixing software design and architecture decisions. However, "design patterns" by their GoF meaning exist as to address shortcomings of the languages and tools used: most of their advice does not make sense as soon as you move away from Java into less object-oriented or less procedural languages. To talk about "the need for design patterns" as if they are some sort of mathematical truth is misleading and dangerous.

So, yes, I would argue that Go does not need the Visitor pattern (and so would Rob Pike [https://groups.google.com/forum/#!msg/golang-nuts/3fOIZ1VLn1...] ), code formatting tool notwithstanding.

slapresta··on A call to PHP's mt_rand generates only odd numbers
> I assume things are much better now

Nope: http://grimoire.ca/mysql/choose-something-else

slapresta··on Skype Switched to the MSN Messenger Protocol (2014)
The whole part about being "hacked" is hilarious. It seems way more plausible that Skype internally uses fonts with special glyphs for its icons, and that when it couldn't find them for whatever reason, it defaulted to the next font on the font stack, which had Chinese characters on the codepoints where those glyphs were expected to be.
slapresta··on Why Go is doomed to succeed
PHP has (sadly) already succeeded.
slapresta··on Geeks, MOPs, and sociopaths in subculture evolution
You make a really nice argument here. I would just like to clarify why I don't consider misogynist movements subcultures: it is, essentially, for the same reason I wouldn't consider pop music or the Java community as "subcultures".

If, using the article's terms, the sociopaths have already exploited its potential for financial benefit to its maximum extent, and if this expression of culture is the dominant, normative expression of culture for its cultural domain, then it is not a subculture, even when you put a new, fancy name on top.

slapresta··on Geeks, MOPs, and sociopaths in subculture evolution
Sociopaths stand away from it because it's too toxic to provide anything of value: rather, they build at its fringes (e.g. 9gag)
slapresta··on Geeks, MOPs, and sociopaths in subculture evolution
> the Red Pill movement , PUA, MGTOW, manosphere, men's rights as new movements/subcultures

I would have a hard time qualifying re-brandings of misogyny as subcultures. Misogyny is traditional, normative and reactionary; subcultures are non-normative by definition.

Page 1 of 4Next →