skysight-inc/HackerNews huggingface dataset:
I think you're a little off. The only boilerplate required for your example is the interface definition. After that you can define your own implementations of the "Do" interface as suggested by the parent.

// boilerplate
type Do interface {
func Do(*http.Request) (*http.Response, error)
}

// Custom Implementation
type MockClient struct {}
func (mc *MockClient) Do(req *http.Request) (*http.Response, error) {
// MockClient type now satisfies the Do interface
}
Don't be such a nerd.
Seems likely that the "Bathtub Model" we have in our heads is all wrong, and sea-level change is going to be highly variable in different parts of the planet. Go and watch one of Jerry Mitrovica's videos[1] to get a good idea... According to his models, some places will likely see sea-levels fall by as much as (iirc) 25m, to others where sea-levels will rise by 5 to 8m by the end of this century. Goodbye ports, goodbye containerised shipping, goodbye global trade.

[1] https://www.youtube.com/watch?v=RhdY-ZezK7w
There's many types of TCP congestion algos and not all of them require dropped packets to begin the congestion avoidance.
Same here (40). I no longer enjoy spending time with my friends.

I've tried to force myself to socialise, but I always leave early (I cannot bear it), stressed and sweating through my blazer armpits, and just happy to leave the occasion.

Family seems so much more important to me now, and only somewhat stressful.

I guess I'm an introvert. I don't think that's ever going to change, and I've come to accept it. I lose energy when I'm with strangers. I don't want to do that anymore unless it is absolutely necessary.

Also, I am happy. I do not feel lonely. I may also be a bit of a hermit.
With DNA there would be no way to know when the African ancestry was introduced. Bear in mind we've had extensive contact with Africa via the slave and sugar trades for about a dozen generations.
TypeScript also does this. It's neat.
It's not just a matter of encountered first, it's of encountered more often ("encountered first" is a special case of "more often"). But you really need to delve into the proof to figure out why that's enough for optimality. At the very least, _I personally_ don't know of a simple intuitive way to explain that.

It is important to remember what each compression algorithm is optimal for.

LZ77 and LZ78 are optimal for observable markov sources -- that is, sources in which given x recent consecutive outputs (where x is the markov order), the distribution of the next symbol is fixed. While this is rarely ever the case, it is reasonable to assume that e.g. English text is a 10-th order markov model (with respect to characters) or 3-rd order (with respect to words).

The source you described is NOT markov overall, although it might be markov in the tail (past the random blob). Asymptotically, of course, it is markov :)
Magento link submission website inspired by hackernews
After finishing the article I still don't understand what were the reasons to scorn Tux. Maybe OP should have given an example of a good mascot for the readers to get the point.

I'm still quite happy with Tux though, it's a sober mascot that's very simple/minimal, and is easily recognizable.
There is value added in identifying and clarifying a problem. It's partly how we, as a group, find solutions to bigger problems.
No. That's nonsense. Everything is async in node because node is based on the V8 Javascript engine which is not thread safe. V8 is not thread safe because it was designed for web browsers, and browser rendering engines are also not thread safe.

People have tried to retcon node's choices as being based on some sort of deep technical justification, but that's not the case: its limits are the limits of the material it's made of, not a specific design choice.

If you look at more advanced VMs like the CLR or JVM then they support all modes of operation: synchronous/blocking (which is often what you want), synchronous/blocking with many threads, async with callbacks, async with continuations ... node only supports one. How is that better?
Try to add some counter-arguments instead of just emotions.
And a Square Knot is actually a bend. A knot is tied in the end of a rope; a bend fastens two ropes together.
GSoC 2016 Report – Rperform
>Python/Ruby, then no, they are good at prototyping but have all the pitfalls of Javascript when used on large teams.

No, they absolutely don't.

>>> "1" + 1

Javascript: 11

Perl: 2

This is the kind of approach works ok for small programs. Where the code that does these implicit type casts isn't too buried.

When it's buried 3 layers down in a dependency used by a dependency used by a dependency, you want this to happen instead:

Python/Ruby: Type error
Much like RMS, I use a friend's discount card (and pay in cash) at the grocery store for this reason. Will a purchase of soda and cookies be linked to me and impact my health insurance cost down the road? Will targeted Mountain Dew ads make their way into every website I visit? Probably not, but I'd rather be sure.

The self-checkout machines only ask for the phone number, with no id challenge. I get the discounts + no tracking, my friend gets more gas points, and the store is left wondering why he buys so much toilet paper.

I wonder how long it will be before they start cracking down on this somehow, and how far they'll take it.
I've been a software dev for 10 years. When I started I saw the transition from Perl to PHP and a lot of snobbishness from the former towards the latter. Seeing the changing of the guard in web languages was pretty instructional and it's something I see again and again.

I think basic CompSci courses should really have a course or two on managing software projects and handling the problems of what framework do I use to build my new software app? Because fundamental language or framework decisions have both a technical and a business component and even as a front line programmer it helps to be aware of both.

Node.js is a great environment for getting a server side app going fast and it has very good tooling thanks to the rest of the JS community with additions like npm, gulp, bower, express etc. There's obvious benefit in having shareable libraries between client and server side and most importantly (to software companies) hiring coders who can work with it is far, far easier than say finding that rarest of unicorns - an experienced Haskell developer.

If (and it's a damn big if) you outgrow Node.js you're doing well. Then (and only then) look at the alternatives like Play Framework, Spring Boot, Vert.x or whatever else floats your boat.

Rants can be useful in giving a kick up the asses of the relevant community to go address certain bug bears. This rant though is so damn generic it reminds me of those Perl developers at college pouring cold water over the idea of using PHP because they felt threatened by it.
I am also looking into vpn options and these are the ones I have found

https://www.purevpn.com/

https://www.ivacy.com/

https://www.privateinternetacces.com/

What are other people using? I am on tablet

Thanks
He proposed list of languages. And really, there's a lot of good languages to use on the servers. JS was never good language and we use it on the client-side just because it's the only language browsers know.
I love this rant with a passion. For me, Tux is the embodiment of the flat out refusal of the linux community at the time to even consider UX or graphic design. At a time when beating Windows on these areas was actually feasible, the OSS community preferred to stop at features, functional, no matter how well or badly done. My favorite example, which the author also quotes, is that the only decent OSS game people were able to come up with was a mario clone with Tux. Graphics? Why would we, we have Tux.

I really like how Ubuntu turned this around and showed people that a usable linux is possible.
Data Huge Impact on Advertising
Unbelievable, so many up votes for this complete idiot statement..
>>bad people are being punished.
HARD!
Why the sarcasm? Is that not true?

Do you think deterrence is ineffective?
How to say that someone is a great programmer?
In case of sports, the parameters are well defined for someone to be considered the best which can be quantified more or less in the form of rankings. But there is no such measure or yardstick for programmers. Which things do you look for or notice in a programmer which makes you say that he/she is a great programmer. Instances would be helpful.
Thankyou.
IMO python has a much higher barrier to entry.

Hell just getting PIP installed can be a bear on windows, remembering the damn --upgrade flag, and the whole concept of a virtualenv means that often the casual python hacker doesn't have access to packages in python until they are much further along.

Contrast this with Node where npm is always right there, and installs are local by default means the kid that just sits down with js has access to every package out there and can even publish things his/her first few days.

I'm obviously more comfortable with the NPM ecosystem, and I might just be biased, but it does seem much easier to work with and use.
It feels like ad-blockers are less and less effective at blocking ads these days, in particular I don't think any of them block these annoying JS popups.
Seems like the "Ex-Apple Engineers" is prominently used as a marketing. Some review online goes on saying "Made by Ex-Apple engineers and it shows"

But who were they at Apple and what did they do there ? Does Apple endorse them in some fashion, do they have privilege access to some technologies ? In what fashion is that relevant ? Outside that branding, there is nothing in there that back that claim with anything concrete.

There is nothing wrong and the application can be indeed great, but this marketing tactic raises all my alarms. Without the positive comments here on HN, I would not even have considered trying that product at all.
What emergency supplies do you need?
GopherCon 2016: Dave Cheney – Dont Just Check Errors Handle Them Gracefully
Fiddling with a cheap 5 port dumb switch to add VLANs/port mirroring
Cock-up before conspiracy.

OpenStreetView isn't intended to intrude, it is just naivety on the creators part. It will be solved in some capacity sooner or later, if not for genuine concern for peoples privacy, to avoid negative media attention.
What's particularly annoying to me is that they talk about prison rape as if it's a natural part of the punishment.

Growing up in Denmark, I recall an incident on the news where someone drove a bulldozer through the wall of a prison. Only a handful of prisoners actually ran. The others decided to stay inside.

They are quite happy to do things that will allow prisoners to reintegrate. For instance, a friend of the family did something quite stupid and ended up in jail. He was still allowed out on weekends to teach me how to swim. With supervision of course, but his crime was violent you wouldn't expect someone with that sentence to be let out in the US system.

The flipside of course is you get a guy like Breivik. He basically gets the maximum, but for a nutter like him it's almost not even a punishment. He's like nothing more than his own suite, a playstation, and peace and quiet to write his ideas.
Pardon my ignorance, but couldn't you do something like put a Bessel filter on the input and output to get rid of the switching noise?
Actually the NHS pays £26.45 per pen.[0]

And yes it is regulated; it is considered both a drug and a medical device.

[0] https://www.evidence.nhs.uk/formulary/bnf/current/3-respirat...
You can use dot as well: foobar.dontspamme@gmail.com
That was a crazy anomaly. It's hardly even a startup. Some guys with some tech - and a 'maybe gullible maybe paranoid' M&A guy at a massive car company dolled out money. It's almost an IP play more than anything. It's an M&A transaction, not really a startup.
I think that's exactly what you can use dna evidence for. E.g. its used to identify when Neanderthal was added etc. Or is it because the introduction was continuous? Hm.
Another surprising thing about Norway prisons is that they do work. Criminals come out of prisons rehabilitated more often than not, meanwhile, in countries with harsh prison conditions, petty criminals simply become hardened criminals. That, combined with no prospect of good career, leads to the endless crime-prison loop.
Google Drive Explorer
I was such a guy for a while.

I actually can program, and implemented some stuff in that company (moving the whole codebase from svn to git and educating everyone, for example). But then I got into depression because of family issues, and just couldn't write a single line of code for an entire month.
I kept giving excuses, inventing all kind of bullshit to cover it, and felt even more depressed because of it — so when they finally fired me, I was relieved.

Now when I see guys who're doing this all the time, I can't help but imagine what's going through their head all the time and in what an awful state they must be in.
So, this is totally an ad hominem but the OP webpage has a post category titled "Political Correctness" [1] with one post titled "Claims that sexisim drives girls away from Computer Science are feminist bullshit." [2] and one link to an external site titled "Sex Differences in Mathematical Aptitude - By La Griffe du Lion." (a.k.a. "Lion's Claw") [3] starting off with this bit, styled like a research paper abstract (you know, to make it look seintifikal):

Mathematics is a man's game. A gender gap appears early in life, blossoms with the onset of puberty and reaches full bloom by mid-adolescence. It indelibly shapes women's prospects for doing significant mathematics. In this account of cognitive sex differences, Prodigy shows how sex-differentiated ability in 15 year-olds accounts for the exiguous female representation at the highest levels of mathematical research. A female Fields Medalist is predicted to surface once every 103 years.

I stress again that this is essentially an ad homimem: I'm absolutely flagging up this dude as a sexist baboon with brains the size of a small, frozen pea. And because I have much better things to do with my poor feminine brain (say, finish off my MSc dissertation, on a novel grammar induction algorithm) I'm not reading a single word of the OP.

________________________________

[1] http://harmful.cat-v.org/political-correctness/

[2] http://harmful.cat-v.org/political-correctness/girls-in-CS

[3] http://www.lagriffedulion.f2s.com/math.htm
The National Institute for Justice (which is the research, development and evaluation agency of the U.S. Department of Justice) says that prison is an ineffective deterent: http://nij.gov/five-things/pages/deterrence.aspx
Meritocracy is just another way to put you down
Parts of the chain break regularly. Individuals, companies, and even banks go bankrupt.

These outcomes are expected and swap agreements are protected by collateral under an ISMA agreement to mitigate the potential losses to counterparties should the other counterparty default.

Now it's reasonable to argue about the amount and type of collateral required (which is broadly the topic of the article), but aggregating all of the notional doesn't produce a meaningful number, because it doesn't reflect the underlying risk.

Even without the sort of hedging I described, it's impossible to draw any meaningful understanding of the risk from the notional number. Consider the following two contracts:

Party A sells $100 protection on a corporate to party B (i.e. CDS)

Party A enters a $100 1Y USD interest rate swap with party B, paying floating.

If the underlying corporate defaults with no recovery in the first case, it's quite possible party A will owe $100 to party B

In the second case, there is a realistic ceiling on what can happen to USD interest rates within the next year. Let's imagine the impossibly unlikely scenario where the fed decided to raise rates to 5% overnight one day after the contract was signed. Even in this situation, the value of the swap (i.e. loss to party A) is still likely only around 5%.
Happy Internaut Day: 25 years ago today the World Wide Web opened to the public
Indeed, the UK NHS (National Health Service) pays £26.45 per pen. NICE (the NHS purchasing and commissioning body) negotiates prices on most drugs, devices and medical services used by the NHS, and they make sure that the prices they get are not only evidence based but also sustainable (in both the fiscal and health sense).
You're easily "shocked", I suppose. I'm not making a moral judgment, I'm pointing out that SF has gone from declining rents to a "crisis" market within a few years' time. The rent crisis is acute, and it's quite obviously due to a bubble on the demand side.

I could have just as easily used 2012 as the year, because rents were more-or-less flat in SF from 2010-2012, after some declines in 2009. Rent lunacy began concurrently with startup valuation lunacy.
DoJ has just ruled that you can't hold someone who is too poor to pay bail bond. Things are starting to improve.
> He's like nothing more than his own suite, a playstation, and peace and quiet to write his ideas.

Denying him any chance to rightfully complain about prison conditions is probably the most effective punishment you can come up with.

When the Baader-Meinhof gang was thrown into inhumane solitary confinement, it and their hunger strikes and suicides made them martyrs to their cause, spawning a new generation of terrorists that picked up their banners.

Meanwhile, Breivik complaining that his PlayStation is too old and that he can't play the newest games makes him a joke figure.
Hmm... I thought that in LZW, once a sequence has been assigned a code, it can never be assigned a shorter code; codes are assigned in order, and they only get longer over time (until a reset is triggered). So the frequency of a particular sequence cannot influence the length of the code assigned to it. I guess I'll read up on it a bit more until I comment further. I do see that it could end up to be optimal in the asymptotic case.
I think a lot of the issues with JavaScript are around the movement of individuals from synchronous programming languages to the asynchronous JavaScript way.

For some time it resulted in callback hell (http://callbackhell.com/). This was addressed through Promises and more recently Observables, Generators, and async/await.

With transpiling, adoption of these asynchronous concepts has been possible quicker than would have been achieved otherwise.

I would suggest revisiting some of the modern JS constructs to support better use of the underlying cpu architecture.

I will however admit, getting my head around Promises took about a month before it really clicked how powerful this approach can be to support non-blocking IO.
"...don't deserve to be paid lots..."

Yet what people "deserve" has absolutely nothing whatsoever to do with what they are paid. Do you think people in negotiations sit around thinking "what does this guy deserve?" Or are they just trying to get the best bang for their buck like anyone else?
Norway is an 85% ethnically homogeneous country with the population of a large US city. It's totally the approach and nothing else that describes the difference between life in the two prison systems.
"I call it buying more lottery tickets and it's not a sound investment strategy."

It is definitely a 'lottery ticket' strategy and it is definitely worth expanding.

If YC can establish itself as 'the place you do seed funding' in America, and can get kind of a monopoly on deal-flow ... then they should invest in anything and everything that even makes sense.

I'd argue the program is too big now to offer any really special value on an individual basis, it's a 'filter' with 'access'.

Like getting into Harvard is maybe more important than anything you actually do there. The H-bomb is what opens doors, just like the YC-bomb.

I personally think that YC companies are on average decent, but most of them are not particularly interesting. Nor do I buy that most of them could reach a $100M+ market.

That said, most of the 'successes' will be acquisitions by big companies paying often massive multiples for future earnings and 'strategic value' and the projects will go nowhere once absorbed.
The question of whether what they've produced is a derivative work of GCC is one for the courts, which tend to take a dim view of creative workarounds.
Misleading title. Igloos are made out of ice. This is made out of fiberglass and PET. I was expecting something like a better version of Pykrete. The "don't melt" qualifier is especially misleading because it implies that under normal circumstances it would melt. Nobody talks about "non-melting fiberglass" - that's normal fiberglass so you don't need to specify non-melting. This is just a prefab dome building. Domes buildings are interesting, but not as interesting as true non-melting ice would be.
> This can also be seen in the different sentences. Whereas in Norway (maximum sentence 21 years) or Germany (mostly out of prison after 15 years), you can be sentenced for life or even death in the US.

Things are not that clear cut, you can't get "hard" sentenced to life (or death) in Norway but you can be sentenced to indeterminate-length "preventive detention": the sentence can be renewed for up to 5 years at a time indefinitely.
YC startups are not the 'end all'. It's a special program, but it's not that special. Go and build your thing and make it good.
To check if it is displayed fine in a split screen, nothing mire
I think basic CompSci courses should really have a
course or two on managing software projects and handling
the problems of what framework do I use to build my new
software app

The problem (if it's a problem, depends on who's asking) is that undergrad CS courses mainly train you to be a CS graduate student (which in turn train you to be a CS academic), but most students choose to major in CS because they want to become professional programmers (aka Software Engineers).

I've done both bachelor and master level CS studies and job-preparation-wise would probably have gotten as much (or more) from a 1-1.5 years (2-3 semesters) vocational training than I did from 8 years of university.

Probably the most apparent perk my studies have gotten me career-wise was being invited to interviews at major tech companies like google and amazon.
>The flipside of course is you get a guy like Breivik

I'm sure he would still hold the same views, maybe even more so if he was made to live in Squallor. It may make people feel better, but I don't know if that is enough.
you can reduce the costs of infosec consulting by combining it with bug-bounties.

The more prominent the brand/company the more people will want to find vulns. Especially when you're not the Pentagon or Apple but some no-name vendor nobody ever heard of. In that case you won't get the same value out of it. They're not a replacement for regular professional security audits. Really crucial for small firms who think they solve all problems with a bug-bounty[0].

The "market" currently dictating the amounts offered in bounties doesn't really reflect level of risk[1] associated with vulns. And IMO never will.

Bug-bounties aren't new, but the professional way and scale in which they're organized is new (crowd-sourcing really works here). So I'm pretty excited to see how this evolves.

[0] https://twitter.com/CopperheadOS/status/753253574184951808

[1] https://twitter.com/rantyben/status/753080683657060353
Nope. NY area. Great cell reception. If you're a family living in the 'burbs, it just can be convenient in many ways to maintain a redundant land line. We have all the "cord cutter" services an apartment dwelling millennial would have, but we have the cord stuff too.
It seems like an appeal to hiring manager to me. "You'll have all the developers you need! Look, it's all javascript and everyone knows javascript!"

The problem is assuming language proficiency is the defining characteristic of a developer. We really need to disabuse management of that idea.

I'd rather teach a good 'microservice developer' javascript than teach a good 'javascript programmer' what makes a good microservice.