EpicDavi

Joined 12 years ago

Karma
198
Submissions
47
Member since
Aug 4
http://daviskr.com

[ my public key: https://keybase.io/daviskr; my proof: https://keybase.io/daviskr/sigs/I06PmXX8WLkVwPt6Vu6RzZRjI7knUaA0qBTJJ9uLY3Q ]

View on Hacker News

Recent submissions

Comment · 5 years ago
I would say this is a bit misleading. Personally, I was able to access my FB building this morning (after the outage started) and have continued to be able to use my badge with no problem since. Not saying that there are no employees experiencing this issue, but it is not affecting all Facebook employees.
Comment · 5 years ago
I don't think so. I'd say the mobile market is quite different. Look at Android and the Google Play Store which also has similar pricing stipulations. There are players offering separate app sources/stores (Amazon or Epic appstores for example), but I certainly wouldn't consider virtually every big player or even a large portion opting out.
Comment · 8 years ago
These are the absolutely useless arguments I come to Hacker News for.
Comment · 9 years ago
After skimming the document for a bit, hiQ's argument looks really flaky. Especially grasping at straws like "Free Speech". They argue that LinkedIn is like a public mall and denying them access to the mall is denying them "Free Speech"? I don't see how this can be the case if they had no intent to "speak" at all in this place. Their data collection via scraping seems more like people-watching in the mall, if you go along with their analogy.
Comment · 9 years ago
Python function decorators and Java annotations too.
Comment · 10 years ago
Neat trick! Just used it to find out that this post id is divisible by 7.
Comment · 11 years ago
I would argue that in the original, "base" was referring to a singular object and was not reduced down from "bases" (plural) to "base" (singular). Therefore, I do not think it is necessary to reduce "bugs" to "bug".

I know you are joking but if we are being pedantic here, "all your swarm are belong to us", would be more apt.

EDIT: Instead of swarm, a name for a group of bugs (errors) would be appropriate.

Comment · 11 years ago
> Not because it was designed badly, but because it has simply not kept up.

How has it not kept up?

Comment · 11 years ago
Also FYI, there are no extension enabled versions of FireFox on iOS because Apple requires all web content to be rendered in their specified engine (WebKit IIRC) and Mozilla is not allowed to use their own.
Comment · 11 years ago
I used Falcon for a relatively large project and enjoyed using it. It is noticeably faster than Flask and I can write code faster as well. It is very much still growing and features are being added. They call Flask "Batteries not included" but Falcon takes that to another level. There are also not very many extensions in comparison to Flask. If you are writing an API exclusively, I would choose Falcon. However, if you have any HTML/CSS/JS, Falcon is probably not suited for the project.

EDIT: Both are very good.

Comment · 11 years ago
This is not a huge problem as if you are outputting the floating point number, you would probably want to round it anyways. The biggest 'gotcha' is when doing equality comparisons between these numbers.

Consider the following:

    .1 + .2 == .3 // false
The way to 'get around' this is to have a value (usually called an epsilon) that is relative in magnitude to the numbers being compared. In this example, a value like .00001 as epsilon should work fine.

Anyways, all you have to do is check if the absolute difference of the numbers is less than the epsilon:

    var a = .1 + .2, b = .3, epsilon = .00001;
    console.log(Math.abs(a-b)<epsilon); // true
In short, try to not put yourself in a situation where you have to compare equality with doubles.
Comment · 11 years ago
Comment · 11 years ago
> "It infringes the freedom of the press."

How so? Just because an article is published by the press, does not mean I am obligated to view it. The users who install AdBlock are doing so on their free will, not being forced by governmental or other propaganda groups.

Comment · 11 years ago
Are you serious? Look at vayarajesh's original comment.

It 'clearly' states this: It makes me fall in love with Apple more. #Respect

No quotes. He/She was using it seriously.

Comment · 11 years ago
To be fair, hash-tags are used to categorize and group content on social media. HN does not implement this functionality. Essentially, the '#' serves no purpose on HN. Therefore, it is easy to see why people get bothered by it.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton