skysight-inc/HackerNews huggingface dataset:
I've always appreciated the Bresenham's line algorithm. It's a very simple algorithm and has been "superseded" by Xiaolin Wu's line which can also do antialiasing, but ever since I learnt about it, I've been very fond of it.
Also the fact that it's an algorithm for use in computer graphics helps, because for me it's very easy to get excited about visual stuff as opposed to the more abstract CS stuff, which I have deep appreciation for but can't understand most of or kick myself enough to try.
It’s only a crime if you get caught ;)
How to write a Prometheus exporter in Go
Youtube's autoplay actually works for some people. They want to watch the next video many times.

It's far different from let them click on this by mistake
It would be possible to write a 100 page book on this topic. Best I can do really is point you to the US DoE NREL (national renewable energy lab) website which has a wealth of training materials and reference on photovoltaics.
Awesome, thanks for mentioning this! I completely forgot about 2-literal watching and I hadn't ever thought about the idea that it'd be difficult to implement functionally. It's absolutely clever. And one other intuition I would like to add to it is that, from the way I see it at least, it is a cheap "detector" for when 3-SAT degenerates into 2-SAT, which finally becomes polynomial-time solvable -- which is exactly the kind of thing you want to have a detector for!
https://ugearsmodels.com/ isn't just a webstore in Euros; it's the company's main site, with links to around 50 or so country-specific stores around the world. (See under "Shops".)
Has the code quality improved? I remember looking at it a couple years ago and finding it unreadable. Types had impl blocks all over the place, and it was hard to untangle. It made me lose interest in it.
I would love to work remote, unfortunately my country is just beginning to have people work from home 1 to 2 days a week if their "title" allows for it. As an architect I could do all my work remote, even meetings. But it's, as was already mentioned, a big cultural change, many companies also don't "trust" their employees. They come up with the excuse that people will be doing non-work related chores at home (washing dishes, laundry, etc...) while they should be focusing on work. They expect you to sit 8h at your desk at home. If mentalities don't change at the top it's not going to trickle down.
"Downtown SF has very little parking relative to demand, so Uber / Lyft are practically the only way to get there in a car."

So, wait... Your argument is that there is a natural disincentive to go downtown with a car, unless one uses Uber or Lyft... But you also somehow doubt that the car traffic that is downtown has been caused by Uber and/or Lyft?

So is everyone an idiot because they just drive around downtown, give up, and go home? Or they aren't in on this Uber/Lyft secret that nobody has heard about?

Or... And I'm just spit-balling here... Maybe you just argued against yourself very effectively.
session resumption:

tmux a

As for predictive character insertion, when i'm working in a shell, especially with high latency, i prefer my commands to be as i type them, not something some algorithm "guessed" i was going to type.
Show HN: 5 correct ways to promote your business online
RubyCademy.org
WebGL 3D Buddha Statue Demo
i really dont see this getting any purchase.

Its utterly ridiculous.
R-Trees for spatial indexing.

What?: Quite powerful data structure for geographic data.

Why?: I dabbled with geodata for quite a bit before discovering PostGIS and the R*-tree. Operations that took me several seconds before (geojson+ruby) could be computed in well under 100ms directly on the Database.

[0]: https://en.wikipedia.org/wiki/R-tree
I Sent Fake Versions of Myself on TV and Everyone Fell for It
Ask HN: Have you moved beyond Java 8 in production?
Have you moved to Java 9 , 10 or 11 in production ? Yes / No ? How big is your source code ? Is it a legacy code ? Does it have automated tests ? How much time did it take for this activity ?
In Europe you can't fire employees.

It makes it nearly impossible to run a startup. It is the very antithesis of running a startup.

Unless you get lucky and can survive by hiring contractors, just forget about starting a startup in Europe.

Source: 2 startups in Europe.
It's context-dependent. Sometimes 10, sometimes 50. But definitely not 3.
You can, you just need to do it through the performance management or redundancy processes and not on a whim. You can also usually have "probation" periods of six months or so.

(also "Europe" is a large place, could you be more specific?)
I read PDFs on an Android 8" tablet without problems with the EasyPDF app. It mostly works on the phone's 5" screen too if the text is not too small (reflow mode doesn't work well for many files).
> It is hard to understand how French people can both have "very low" pensions and then be one of the country that spend the most on pensions as a share of GDP [1], and have retirees richer than working people [2, p5.]

Yes that is entirely true, but you do not take in account that:

* The median average revenue is around 1200 euros per month!

* The pension is financed partly through the debt (one third)

* There are nearly as much retirees as workers (16M vs 17M)

* We are 65 M people and our "social security" is based on 17M people who are payed a misery? The system will bankrupt soon.
And then people say: lets rewrite it, the old solution is overly complex and has a lot legacy code that no one uses, we can do better. They imagine simple & perfect solutions because they underestimate complexity of real world problems, just like parent said.
Yeah and if you've analysed 100 sets of docs for 100 dependencies you've done a ton more work than writing 100 trivial functions.

Why does everyone in JS land treat dependencies like they're just some free magic, as if an intimate familiarity with the source code is injected into your entire team's brains the moment you type 'npm install'? I've worked with far too many people that blow out the package.json file for every little thing then wonder how every other dev on their team seems to be paralysed by the smallest task.

Every time someone on your team runs into a dependency boundary they need to stop reading code, pull up a browser, and start reading docs. You can't trace the path of execution through a black box dependency, which means if you use a bunch of them in one place your developers are going to have to hold a hell of a lot of information in their head while they analyse that code. If they drop something, it's back to the docs again. At the extreme, it's a context switching nightmare.

Dependencies cost time, effort and brain power. Make sure you're getting enough in return.
Theranos is a good example of why that doesn’t work.
I work for a global company. When I have an HR issue I call some call center located in Poland, where they open a ticket.

The process is not different than any old tech support call.

Managers have a dedicated line, which leads to a local HR contact.

Do you see anything in this whole process designed to keep employees happy?
The Boyer–Moore majority algorithm [1] which allows you to find the majority element (if one exists) in an unsorted array in linear time and constant space.

[1] https://en.wikipedia.org/wiki/Boyer%E2%80%93Moore_majority_v...
And companies that do not employ skilled statisticians to keep track of all of this is where I believe real money is being made in adtech. A few companies are competent enough to handle this complexity, the rest can be duped into the belief that their ad spending works.
>The goal is to take standard applications and JIT them to their AVX-512 equivalent such that we can fuzz 16 VMs at a time per thread.

What happens if the executable already contains AVX512 (or other SIMD) instructions?

Though I guess you can rewrite them into their scalar equivalent first, and convert that into AVX512.
I bet on Google Global Cache problem.

YouTube was down for me through my residential ISP (which no doubt has internal caching via GGC) but through VPN was fine.
Flagship smartphones with a plastic body and a removable battery. For those who do not need the waterproof feature, and need the ability to go from 0% to 100% in a few seconds.
"and the car will always be on the right side of the road (assuming US driving laws)." In other words, overfitting to USA, questionably usable anywhere else, definitely not in UK? Okay, this quote is worth preserving.
That's ok. I actually wanted to include such note about the units in the first place but forgot (in the book I use REMs and pixels only as fallback but changed to pixels in the article for simplicity). Your comment reminded me to add this note in. And I know how frustrating it can be when working on typographic details on the web. Are you having any specific problems?
This is really interesting. i'm looking forward to more blogs on the last few topics / chapters!
Are you serious? That’s what you really take home as an SDE earning 300k??
Local SEO – SEO Regional – Der SEO Manager
Cannabis is legal in Canada: What you need to know
That's what I was thinking. Or maybe a circle (like the Vienna Circle).
> Most prescribed drugs by your doctor being reimbursed 100% you don't even have to pay at the pharmacy.

Not paying at the pharmacy does not mean that you do not pay at all. You pay three times: Your employer pays for you a huge amount, you pay (look at your payroll), your mutual fund pays.

Most people pay much more indirectly during their life than they receive services through the SS.
And wait, is this a car? Is this a cyclist? Is this a pedestrian? recognizing...recognizing...recogni-CRUNCH

We've already been down this road with Uber; apparently that's not an issue.

https://www.regit.cars/car-news/how-to-pass-horses-on-the-ro...
I'm slightly surprised to see that not only is this in English but there isn't even an obvious option to switch it to French. That's pretty un-French in the first place.

It's interesting to read the SARL process and compare it with the UK one: https://www.gov.uk/limited-company-formation

In the UK, not only is a company bank account not a prerequisite, it's the other way round - you form the company first. There's no requirement to notify a newspaper. There's no minimum capital requirement. The minimum filing requirements are pretty light.

The more I think about social security requirements, the more I think they should just be paid out of general taxation and not entangled with a particular relationship of "employment".
First of all, why do you need to fire employees to run a startup ? I don't think this is a major need in the development of a startup in fact firing someone is dangerous since you lose experience and knowledge.

France as many countries in Europe have laws that protect employees against abuse from companies but you can still fire someone if there is a reason it is just regulated.
Arent those two statements contradicting?

If it would be a violation to change things based on user agent, but the purpose of the user agent to specify how you want things changed, then...

if it was purely about different rendering of the exact same content, then wouldn’t it be the browsers responsibility (and thus UA is unecessary)

I have to imagine browsers are allowed to extend the spec, and UAs are either in theory or in practice a way to communicate those extensions; but because site operators were only specifically designating content for the major browser(s), any compliant but unlisted browser would never get that content.. and suddenly everyone was calling themselves netscape
Downvoted because this is your personal struggle and trauma, whereas the “bad parenting” discussion was really just about screen time. Just letting you know. But please talk to someone about it if you’re not already.
He pitched me an idea for a system that would essentially spy on IT contractors through the webcam during work.

Doing that herearound (and I'd wager in most European countries) would be illegal as hell. Like in prison sentence illegal.
It doesn't guess. It sinoly has local echo, and the characters that are not-yet-ack'd are underlined. Changes your life when working with 175ms+ latency
I like this version of the Euclid algorithm:

Make a rectangle with side lengths of 2 positive real numbers. Put the biggest square inside (i.e. against a short side) that you can, add as many as fit. If there's still a gap, put the biggest square that fits in that, repeating until filled.. If you never fill the gap, the ratio is irrational. The number of squares of each size used gives the ratio's continued fraction.
Both the people that use the app and attack the app need to reevaluate what's important in life
I miss being able to +1 a website via Google+. I never used the social aspect of Google+, but seeing +1's on a page was super helpful and was my way of giving a quick compliment to any website.
Oh, man. So many answers. The blockchain of bitcoin is pretty gorgeous, if that counts.

AES is beautiful as well. And I love Huffman encoding. hm, what else. Bloom filters are awesome.

I suspect FFT is beautiful, too, but it surpassed my ability to understand.
It's hard if you don't have a good reason.

I think the economic instability in a startup (a real one) would allow more freedom.
Why dumping rubbish is a waste of money
That's actually really interesting! I think it really is a good law, although it may render some things really difficult for engineers.

I remember when Alphago was beating the go master, we couldn't really tell why it made certain moves.

But it certain makes sense to require an explanation for things that affect us in our lives.
> You also have a very simplistic way of understanding how our retirement pension system works and the role it has in the society.

I may have a simplistic way to understand it, but I am well educated in business and I had to hire people during my professional life.
Is it time to stop using sentinel values for null / “NA” values?
The median salary is around 1800 euros for workers[1]. Not sure where you got the 1200 euros figure from.

[1] https://www.insee.fr/fr/statistiques/3135908
Surprised nobody's mentioned Hyper Log Log (or its more recent variants). A probabilistic constant-space unique cardinality estimator (i.e. if I see a billion events, how many are unique?) that also supports set operations.
yet another ambitious web framework...
Black-Grey 2-Piece RAF Nato Strap 18 20 22 24mm
It’s even more difficult for small brands and local businesses who bleed money into FB ads with such a bad return it's painful to watch.
We’ve seen it with a lot of services businesses that use our e-commerce platform.

To solve this and out of our own frustration of working with ad agencies for no ROI, we created a tool to run influencer campaigns that pay each influencer a commission of sale generated.
Once a campaign is created, influencers join this campaign and start sharing. They earn commissions automatically each time followers buy from their unique affiliate link. https://itunes.apple.com/us/app/blackbell-promote/id14241791... / https://www.blackbell.com/influencermarketing
We recently started speaking with small ad agencies about it, most are afraid to start using our tool and philosophy for one reason: it can disrupt themselves, they are happy charging fees to manage FB / Google ads with bad and blind ROI, especially as most take % of ad spending…

For the huge marketing groups ( Omnicom, Publicis Groupe etc ) my personal meetings with top decision makers paints the same picture from yesterday Axios article:
> Between the lines: Financial struggles and minimal oversight at some of the biggest global agencies have for years led to bad practices, like kickbacks and bid-rigging, that have led marketers to question whether their dollars are being wasted.
https://www.axios.com/businesses-moving-media-advertising-in...
Crashing two cars together, at a low speed, will bring you some bent metal, a pile of paperwork, and expenses - "brake as hard as reasonable, don't worry too much about collision avoidance." Crashing a car into a pedestrian, even at low speed, will get you manslaughter charges - "avoid collision at all costs." Is that different enough?
Any serious programmer simply can not worship complexity because then his/her work would never get done.

You can start with a trivial problem and grow it into a system so complex it's hard to even begin grasping what it actually does and how the software actually works.

If you start with a complex problem the only viable path is down to less complexity; often we won't reach simplicity but at least we're somewhat equipped to handle the underlying complications.
That's not what mosh is, it doesn't predict what you're going to type. It however proactively renders the characters you type before it receives confirmation from the tty on the other end.

In other words, imagine typing ssh somebox.typo.com and waiting 1 second before the text renders and discovering the typo, then pressing backspace, waiting a while for the backspaces to render, then going through all of this again. With mosh you'll be able to instantly see what you typed and fix it. On high latency connections it makes a huge difference in quality of life.
How do I start ecommerce business?What are steps to start an eCommerce business?
I don't see how "youtube neglect" parenting is qualitatively different from "regular neglect" parenting, honestly. We've always have people just "dump" their kids (of any age) into a room without supervision, predominantly people who just can't afford to be present all the time.

Might be more appropriate to demand universal child care or sth along those lines instead of bashing the parents.
Can't edit or delete anymore so replying to myself. I confused the subthreads and thought this was still the "interview quesiton" part. Obviously the assembly/clock cycles are relevant to the phaedrus's example.
I dunno... watch TV?

They have legos btw.
What about using consultants, it might be easier to "hire/fire" them?
At a technical level, JSFiddle or equivalent comes kind-of close. Set up a template with a nice big <canvas> element, then you've got a simple imperative API to draw stuff which really does come pretty close to what you'd get from a BASIC> prompt.

That said, I wonder if it's even possible to replicate the C64 (or equivalent) experience. Looking back, I think a big part of the "magic" was that there were relatively few distractions. Just you, the machine, and (maybe) some paper documentation or a magazine with a few listings [1]. Can that be replicated once you're used to network-connected computers that are gateways to almost unlimited amounts of video, colourful games, etc.?

(My child is getting to the point where I wish I knew the answers to some of this myself...)

[1] I'm pretty certain type-in listings were the biggest contributor to my learning, early on. That doesn't seem to be something that comes up terribly often nowadays (although I note that Zed Shaw's "Learn Python the Hard Way" is pretty specific about telling you to hand-type in the examples...)
What do you think 'conference' means more than a structured meeting of a group of people with a shared interest?
Which takes approximately the same amount of time as clicking, going to browser and returning back to the tweet.
How does it feel to launch and run a startup as a single founder?
You're right that this initiative is one step in the right direction. I don't want my comments perceived as too negative. I'm one of the people singing "Let's make France great again!"
Do I Need an SSL Certificate for My Website?
I totally agree. The Guardian's is even simpler (track or no track).

Those things were you have to opt-out of 160 companies individually are really the pits (and quite likely illegal, but time will tell).
Google and Uber
China’s new diplomacy in Europe has a name: broken porcelain
Maybe the problem isn't Netflix and Youtube, maybe
the problem is letting them watch for 4 hours?

Isn't your assertion "Youtube isn't a problem so long as you don't watch for 4 hours" and leonroy's that "If you want something to watch for 4 hours, Youtube is a problem" just the same statement worded in different ways?
Seems to be a pretty big nail in the coffin for them and this is just the tip of the iceberg. lol. A class action of one of their core revenue streams is going to be very expensive. I think we should just make Facebook a public utility, and do them like the utility companies were done; congress can easily decide to transfer control of the company and all of its assets in a single resolution. Then, drastically reduce headcount by getting rid of all the business teams, sales, marketing and keeping only essential technical and administrative staff. Sell off the other unrelated business units (Oculus etc). Allow the company to operate and make a minuscule profit margin while allowing the local governments decision making ability regarding the content and policing of the networks under their geography.
How does a man require multiple surgeries to his spine from an accident but the company paying for those surgeries claims the accident isn’t known?

That’s about as amazing as Hollywood accounting.
Tip: If you are very casual smoker and see a form asking you "Have you ever smoked?" or "Do you smoke any tobacco?" then say no. If you say yes then you will see it getting reported to your health insurance and even life insurance and your premiums will go up as if you were chain smoker.
A bigger issue is probably the headings not fitting in the page column.

https://screenshots.firefox.com/fsetQcI74tLZbwkd/betterwebty...

[Edit: I probably should switch off webfont blocking when checking an article on fonts]
Not only that, for me in Safari the new reddit barely works and is not loading things very fast or sometimes at all.
Canada's giant public health 'experiment' with legalized cannabis begins
ScrapydWeb: web UI for Scrapyd cluster management, Scrapy log analysis
The interesting part is solving the "closest pair problem" which is a part of the clustering algorithm. Hurts my head just thinking about it, god knows how someone came up with a solution like this.
https://www.geeksforgeeks.org/closest-pair-of-points-using-d...
No that is not the median salary but average salary:

In addition they are increased as if their were for 1600h/year (équivalent temps plein)
..and its generalization [2], which finds the (at most) k elements whose frequency is more than 1/(k+1) in the unsorted stream (k=1 being the majority algorithm in [1].)

[2] https://www.cs.bgu.ac.il/~dinitz/Course/SS-12/Karp-frequent-...
I’ve heard the same.

Though reaching “profitability” is not really a focus for them until automated vehicles are ready to replace the humans on the road.
There is YouTube kids, even that didn't help?
> No it's not, first there's the trial period for permanent employees

The trial period go both way: the employee can choose to leave very easily. We had one such case where I'm working, the employee left before the 6-months period was finished.

In addition to firing, it exists legal possibilities to cancel the employee/employer contract if both side agree on it ("rupture conventionnelle"), if I've understood the mechanism.
i agree, I would say that this is where most of my experience comes in valuable, not knowing the latest framework, but being able to find a level of abstraction that promotes simplicity and maintainability in the code. Yet interviews seem to value the opposite.
I love many of those posted already (in particular FFT and DH) I just wanted to add DHT, for example Kademlia. I also like RC4 for its simplicity, unfortunately it's no longer considered secure.

PID controllers are also a great invention, does that count as an algorithm?
“There's no requirement to notify a newspaper.”

:) what is this nonsense?