skysight-inc/HackerNews huggingface dataset:
The best workflow I've found is to define an empty function, add a breakpoint, and code the function in a repl. At this point I'm pretty confident the code works for at least a 'happy path' input so I copy the code to the editor and add tests to call it with a variety of other inputs.

Being able to inspect the state of the program in real time is invaluable and gives me a lot of confidence that I understand how the code works. For some reason most programmers I see don't even run their code locally and just use log statements to guess at state when it invariably doesn't work as expected.

Another big problem is test data. I see way too much naive mocking. You really need to exercise your code with data that is as close to real-life input as possible, ideally it's a sanitized version of production data. Other tests are great too (i.e large lists of 'naughty strings') but if you're manually specifying your test data you are a) spending a lot of time doing something that should be automated and b) are only exercising your code with what you think it might see which is usually not good enough.
A book on how America reproduces its elites
Ask HN: How to Get EBook Produced for Non Writers?
I have a friend with a personal story that I believe is very compelling and would be of interest to a lot of people. This person lost a lot of money in a business venture as part of their story. So there's a strong "lessons learned" aspect to the story which is particularly valuable imo. I think an e-book about it would be one way for them get something positive from the experience. Problem is, I'm not a writer, and neither is my friend. What are some options in this situation?

From my research, it seems an adequate ghost writer would cost around $10,000 for a 100 page book. My friend has no funds to finance the endeavor. Is it possible to find a ghost writer who would work for a percentage of profits from the book? Does anyone have experience with this, either writing or commissioning such a work?
Techmeme summary: Sarah Frier / Bloomberg: Sources detail Facebook's fact checking efforts: little room for nuance, slow pace of checks; source says some fact check publisher deals are worth ~$100K/year:
Help Me with a Angular5 Starter: New Http, New Auth etc. Come Help
Well the whole hard drive is not overwritten every time a file changes when using disk encryption, so definitely not necessary.
Ask HN: Reversible function definitions
What do computer scientists call a function that allows inference of transformations between two data types from a single definition, and does any language support this and explicit calls or implicit conversions?

function convert
(rad_t) phi = pi/180 * (deg_t) phi
rad_t alpha = convert((deg_t) 45) //explicit
deg_t beta = pi/4 + alpha //implicit

rad_t and deg_t might be together in a typeclass archs or sumsuch.

disc.: I can't reach stackoverflow, so I'm posting here.
now, add a motion sensor so the light comes on when you stand near it and a smoke sensor so that it turns on automatically when you start cooking and stops automatically when all the smoke is clear.
This post came first, but much more discussion (45+ comments already) is currently on the front page as well:

Google Docs Is Randomly Flagging Files for Violating Its Terms of Service | https://news.ycombinator.com/item?id=15594163
The rules of language are simple to learn. Culture and Idioms must be lived and experienced.
While, as others have pointed out, that with 100k non-paying users the $1,600 figure makes more sense. Your example still makes no sense to me, what are you _actually_ doing with all that server power?
it's fun for text-based debate, but aren't you just ignoring the greater contextual situation for the sake of argument? the distance between anonymous internet comments and professional discourse is wider than what you're implying
Oh absolutely. I've done my fair share of "pure" TDD, but my style has evolved over the years to not always favor a pure approach (usually in the interest of time).

It really comes down to the nature of the problem - if I foresee a chance that the final architecture is not immediately obvious, I'll start breaking down the problem into small pieces and TDD the units, then the integrations.

I guess I'm of the opinion that not everything needs TDD, but everything does need diligence - my code after doing years of TDD has improved drastically, whether or not it was strictly test driven. Merely considering whether it will be easy to reliably test the code improves it, IME.
Arrowhead Variants
Thanks! No it's just a simple way of running the game locally without a real webserver and without issues with x-origin.
What's a "first-class property"?
Revain: Building a Trustless, Consumer Review System on the Blockchain
I share your frustration living in suburban America and not a trendy suburb. Every time a new restaurant breaks ground I get excited for the chance of something not fried being the main attraction. I haven't been not disappointed in 8 years. I don't really blame the franchisers as much as I blame my neighbors, but I do blame both a little.

Here's a great movie that I loved on the subject:

https://en.wikipedia.org/wiki/Branded_(2012_film)
NEED HELP FIXING Your CREDIT?
My credit score just got raised from a range of 400 to a score above 750 with the help of a hacker i met from an old friend. My credit report was low and it really gave me problems renting an apartment for myself. I shared my problems with an old friend of mine on facebook then she told me about the good works of a hacker she uses in fixing her credit score among other things. She told me what the hacker is capable of when it comes to anything that has to do with hacking..She said he's a genius.. I mailed him for help and to my surprise, he fixed my credit report in few days than i expected. Need help fixing your credit report? Reach him at spystealth(.)org(at)gmail(.)com. Thank you!
Not by trying legal actions to make the defamatory content go away (google the Streisand Effect to see why). This includes legal actions to get the site to remove the content.

Instead, you have to fight it with facts and evidence, in public. Or else you just have to ignore it.
Rate my Golang code
Hello

I am looking for a software development role as a golang developer

who wants to rate my code?

https://goo.gl/7frveP

I can be reached at callagg3@gmail.com
Had over a million people use my code last year, when I checked for vanity. 12 years commercial experience.

I'm effectively the tech lead for two startups, one getting about 750k users per year, the other 250k. Freelancer, but I do a lot of time for 2 clients at the moment.

Both were projects started by other people, but a significant chunk of the code is mine now (one of them I've virtually totally rewritten from VB.Net to C#) and the other I've done huge amounts of refactoring to fix big performance problems, reducing the "main" pages from 10 sec load times for complicated orders to 250ms.

I've also refactored a lot of javascript for both of them without any tests, significantly improving client-side compile times and page load times.

I played with unit tests a few years ago, one of my clients has some, but we mainly don't add any new ones and they never catch anything[1].

[1]That's a slight fib, one caught a bug last month for the first time in the 1.5 years I've worked for this client. It would almost certainly have been caught in testing though.
Raspberry Pi Zero W clone offers quad-core power for $15
Watching shows like kitchen nightmares (uk), it always seemed like the clincher for most places was the food was crap.

People say "location location location!" and sure it's important, but I bet we can all think of some local "must-eat-at" restaurant that's in bumfuck nowhere and yet still always has a line round the block.

Houston - Moon Tower - Various exotic sausages in house-made pretzel rolls. Amazing, and stuck deep in the old warehouse district. https://goo.gl/maps/2oussCLAe242

Vegas - Cornish Pasty Co - Incredible and authentic cornish pastys by a restauranteer with a sharp tongue but great taste. Not exactly in the middle of nowhere but well off the strip https://goo.gl/maps/UMx8vuov8m32

etc
Microsoft Office 2016 v15.28 Activation Cracked
Many users do not have they key, since the OEMs stopped gluing the labels on the machines. They have only a SLIC entry in the firmware, so that's an additional hurdle.
Praying for a http://docs.sequelizejs.com/ plugin
Thank you! We tried many approaches, but the simplicity of object oriented UI components is classic. Its much more refreshing to read old fashioned object oriented code vs hybrid libraries that seem to be trending these days.
Article provides a good chunk of insight beyond the original tweet currently with less discussion on the front page:

Draft of a story about wildlife crime was frozen for violating Google Docs' TOS | https://news.ycombinator.com/item?id=15593750
Thanks for asking for the clarification Eran. Definitely could use some here!

Essentially, we discovered that while in certain segments (like SaaS apps), using messaging to communicate with customers is commonplace, greatly due to companies like Intercom that provide great tools for these types of companies to successfully communicate.

However, the tools Intercom provides just don't exist in a format that works for most other businesses who use anything from traditional helpdesk software like Zendesk to full-blown contact center suites like those provided by Genesys and Oracle.

Since we believe in a future where every business is available over messaging channels, we needed to ensure that the systems they use can provide access to these channels. We had two choices:

1. Build middleware that a business could purchase that would allow them to connect a messaging channel (like a web messenger, Facebook or WeChat) to their existing software.
2. Open up our platform so that incumbent software providers could adopt it to add messaging capabilities to their product.

For a host of reasons, we quickly determined that option 2 was the best path towards making sure that a wide variety of businesses can communicate with users over messaging. We've been hard at work making sure that this happens ever since.
Trust Google to look at their c. 1993 gouraud shaded, untextured renderings without shadows and conclude "let's use deep learning to make it look realistic!"
Strange, I've developed it on my Macbook pro mostly and I never had such issues. I've used google-chrome.
Double True, execution and hustle is the key. Don't get caught up in all the entre-porn (Amy Hoy). Learn what you need from books, podcasts and mentors. Then go for it.

You'll know you're ready because when you read a book or listen to a podcast it will all be things you've heard before.

Granted every book/podcast usually has a unique gem but after a while, you're ready.

Plus, "It's NOT rocket surgery."
https://www.youtube.com/watch?v=0CDXJ6bMkMY
(DHH Startup School, still my favorite talk)
All thought we all decided false positives in the name of punching Nazis was OK? I can't keep up anymore. Can some enterprising young start-up come up with a HN browser plugin so I can know when it's OK to censor?
Well, that just highlights the importance of social nets.
> How many times do we have to go over this...

As many times as it takes for people like yourself stop switching the subject and feigning surprised frustration.

It has never been about "telemetry" or "tracking". It's always been about not "phoning home" under pretense du jour.

It is all about _privacy_ and _control_ over one's own computer, the very notions that's been steadily eroded to near oblivion through constant and unyielding pressure from Microsoft et al.
If you use plain AES ECB, then little penguins will show up in your encrypted data. You would want to use a disk encryption scheme, like XTS, where the encryption is not just based on the data of the block, but also on the index of the block, to prevent identical blocks at different locations from looking identical. You also want it to be based on a nonce of some sort, to prevent attackers from reverting a block to an older copy.
I'm going to share this with a rather busy facebook group I'm in which will appreciate the idea and may be in touch via email - I love this idea, I've just got too many other claims on my time to know if/how I could deploy it locally. Thanks for your prompt reply!
Mighty Safaris
Needs a loading indicator, I thought it was broken until the assets started popping in.
Where is "all of these"? For all we know you've never set foot out of NY.
That's no-where near a finished product we can use. You have to worry about getting land, plumbing, electricity, not to mention it's illegal in many places. Often, The fit and finish isn't very nice and the size would be alot smaller than most people want. But, they're probably heading in the right direction, they just have a lot of problems to solve.
Agreed.

It's funny to me that someone wants to charge people for their online service, but can't even make a simple web-page fail gracefully. That's a pretty strong signal to me of the quality of their online service
Mighty Travels
One of the reasons I switched out of Dropbox was because they got rid of the version history feature, which I only learned about after desperately trying to recover an old file. I think now they give you 120 days of version history, but only if you pay for the newly created “professional” tier.

I have a little Nextcloud server set up with unlimited file history now. Or at least it’s only limited by how many old hard drives I have plugged into it. Couldn’t be happier with my decision to switch.
You're biased, of course, but exactly in the right way in my opinion. Personally this is a beautiful example of why representation matters. People without dyslexia (myself included) simply cannot know what people with dyslexia can and cannot do. Many thanks for sharing such an important point that I hadn't thought about before.
> but I do care if you don't bother to run it past someone else who can for editing.

Even Chrome has a spell checker. Not sure the distinction here between code typos and English typos is a valid one.

The OP is saying not bothering to check is the issue, not the specific errors. And this is, by definition, careless. This is a lack of caring for correctness and a lack of awareness of mistakes. It could even be considered a lack of respect, which would be a lack of professionalism, but the OP did not go there.

If you have dyslexia, then a perfect resume that includes your challenges as a dyslexic would be most impressive.

Employers are looking to be impressed.

Don't be an unimpressive bag of excuses.
If you use good encryption and a reasonable key size, that’s good in practice, but theoretically, that’s a lot less secure than a one time pad.

An attacker can ‘simply’ try all possible keys and use statistics to filter out those that look like natural language.

If the encrypted text is large enough, chances are you will be left with only one plausible plaintext.

Also, AFAIK, we don’t know whether good encryption using a key much shorter than the plaintext, in the sense that an attacker can’t use statistics on the encrypted text to learn something about the key, exists at all.
You can get salads, grilled meats, vegetable platters, etc. in any city. Just to pick one off the top of my head, Corner Bakery Cafe has healthy options and plenty of locations:

"The cafe has 192 locations nationwide, including in Miami, Los Angeles, San Francisco, San Diego, Chicago, Houston, San Antonio, Dallas, Austin, Philadelphia, Pittsburgh, Atlanta, Denver, Salt Lake City, Phoenix, Tucson, El Paso, Baltimore, Washington, D.C., Tampa Bay and Buffalo metropolitan areas, as well as in Northern California, Mississippi, New Jersey, Virginia, Savannah, East Texas, the Rio Grande Valley areas, and a location in Carmel"

https://en.wikipedia.org/wiki/Corner_Bakery_Cafe

Likewise, Panera has lots of salads and half sandwiches available and 2,000 locations.

Maybe they're "crap" to you? But most people don't eat as well as that, on average, quality-wise.
RNN in opus codec for Music/Speech classification
Doesn't mean much since tooling like Sphinx will generate Latex as an intermediary for PDF generation.

I don't care for the rigidity of Latex and don't want to hand craft my own TeX documents. I once had a resume generation system that would convert ReST to Docbook and from there used XSLT to produce plain text, docx, and PDF output using XSL-FO. Sadly the code was on a failed Seagate drive and is lost. And yes I had a backup, also on a Seagate drive that also failed due to a firmware bug around the same time.
Thanks. We tested with that fork as well. It's based off the old version of Tracery and also has no unit tests.

If use-case was for building an application or bot, I'd probably not worry as much. We were considering vendoring tracery into open-source project for improving a core API method for composing data.

If anyone is interested in helping here is the issue: https://github.com/Marak/faker.js/issues/495
Except that isn't how statistics work. If you have 100 applications, 20% of which are good, and drop 50% of them, you get 50 applications, but you still have the 20% good application/bad application rate.

Of course, you still get 50% less total good applications, but ratios != total.
Tests make clear the intent of the code, how else can you get that exactly? And the next time you have to fix a broken unit test, think of how much time it has saved you by constantly running autonomously as part of your build process.
Good discussion of the Dark Forest theory and other possible answers to the Fermi Paradox: https://philosophy.stackexchange.com/questions/18127/dark-fo...

BTW, if you haven't read the Three Body Problem buy it and start, like, today!
To be clear here - being a poor speller, due to dyslexia or any other reason, is not the problem. But if you know you are a poor speller, you should have someone who is a good speller edit your resume, looking for spelling errors.

If you know a misspelled resume can cost you a job, and you don't take additional steps to make sure it's spelled correctly, that's careless.
Regardless of the bug, we need a service that cannot read your docs/email/data.

GSuite has to be the most paradoxical Google product - you pay Google and "trust" them to not go through your company data!
Eager Execution: An imperative, define-by-run interface to TensorFlow
Why Amsterdam Works So Well for Bikes
I think you are reading the comment too literally. It's a generalism. If (everyone) were ruined by a failed business, capitalism wouldn't work (the way it currently does).

Theoretically, if you fail at business, you are allowed to try again and again until you succeed. The consequence of repeated failure isn't so harsh that it's a once in a life-time shot.
React and TypeScript – The Basics
Log data is how unit testing started I think, people would log all the output and compare the sheet of actual log output to the sheet of expected log output.

Working in an GUI debugger / REPL is great for visualizing code I often code that way myself, but let's not fool ourselves, it still requires manually setting breakpoints, and pressing keys to step through code. You can't do this for every method after every change, whereas unit testing has that advantage. I do agree with most things mentioned in the article though. A lot people end up writing tests that hit databases and are too slow or fail randomly due to chained state, or are over specified & end up just getting in the way. What it comes down to is you can have good tests or bad tests, and its still entirely subjective just like whether the code itself is good or bad. I recommend the book xUnit test patterns, its basically a bunch of "rules of thumb"
It would be far more hidden in the headers.
Were GSuite customers affected?
...did you see the house?
Thank you. I can't believe how often this fact is ignored in public discussions.
I'm sure that Google's decision has improved the account security of the average user, but I'd really like it if there were some way I could signal them that I'm not an average user. My password likely has more entropy than the hash they check it against; if that gets compromised, the attacker also has access to any other information Google would use to identify me. Which is a joke anyway, since "which city do you usually log in from" is hard to answer when you've been using a VPN for more than a year. I dread the day when they make 2FA mandatory and my account security becomes vulnerable to a social-engineering attack hijacking my phone number.
If you seriously think there is no human cost when businesses fail you're simply delusional.

There's a human cost, but your life isn't over because your business fails.

I used to wonder how investors could throw themselves out of 10th floor windows after finding their shares had become worthless, whereas other folks who never owned any stock feel great.

The delusion is attaching your sense of self-worth to your balance sheet.

Also for future reference, your post is a rude ad-hominem attack defending a straw-man argument. If you have something to contribute, please don't mask it with hostility.
What @meredydd means is, leaving the compiler written in javascript but emitting wasm, so compiling python into wasm with javascript. Too many compilers! :P
This is incredible actually. Probably gonna fork it :)

Ok i just took a look at the code. Do i see this right that you are sending literally everything to google to see if starts with hey?
It's a world I'd like to enter more myself but I've found it's a little hard to get started. With a degree in maths / comp sci, I have a pretty good understanding of linear algebra. 20 years experience coding means I'm quite happy to hack away.

Thing I've struggled with is all the background. People talk about shaders and launch straight into the details, but I've barely been able to find any background information that sets the scene.

Last night I made a game with Unity, which was fun and pretty simple to start with and I'd like to understand more about it all.

Where does someone with plenty of comp and maths knowledge but no 3D experience (other than tinkering with the likes of Blender) go to learn about it quickly?
Thanks! That just about answers the burning question: why another charting library?
It all boiled down to us needing some simple charts for our report data; nothing fancy, just something that went with our classic design. All we needed was some mappers to translate numbers to relatively sized shapes (or positions). The graphs over at GitHub looked awesome to start the styles from; from there on we focussed on making them generic.
> At some point your ... Haskell ADT has to communicate its data to other programs that have no notion of these things. So you end up w/ a ton of surface area in your code with mappers and marshallers totally unrelated to the content of the data and purpose of the program.

No it doesn't.

> things like "a map of strings and numbers" is pretty straightforward to transport, while a sum type implementing functor with a record data constructor that contains a Maybe SSN is not.

Yes it is.

Has this guy ever heard of Generics?
It looks like this is called "Level 3 data" and primarily for corporate cards, not standard consumer credit cards. I'm not sure if that data is still collected for consumer purchases - I've never been offered any opportunity to see more detail about what I purchased, even for a price.

One significant benefit of having that data would be that it would be easier to remember and prove things you owned for insurance purposes after a loss.
Gigomap – Top Attractions Near You
If you are testing at the wrong layer of abstraction (Your test is tightly coupled to the implementation of your class, as opposed to its observable behavior), then refactoring your code will require refactoring the test.

The correct solution to this is to not throw passing tests out, but to stop doing white-box testing.

(Not to mention that a test that may pass in your CI environment may fail - frequently - in your local workspace.)