skysight-inc/HackerNews huggingface dataset:
>I know exactly zero developers senior enough to have gotten over writing bugs.

No one was arguing that. Code reviews aren't for bug discovery, though that can sometimes happen. It's a very inefficient way to discover bugs.

Developers should test their code for bugs before completing the task and submitting to QA. QA is a more thorough than development bug / unit testing and includes integration. Betas (if applicable) are the final source of pre-release bug discovery. Spending a bunch of time on code reviews to find bugs.

IMO code reviews should do two things:

1. Make sure the developer knows how to develop and is not being sloppy and not following whatever standards are set (comments, etc). They are essentially training wheels for new developers to the organization and junior developers.

2. Make sure the code represents what the developer thinks it does (sanity check).
I wonder how many electric cars Norway would have bought if it didn't made that much money selling oil...
> There are local banks and credit unions that have much better deals.

So much this. I have had an account at a local bank for most of my life, and it has always had no minimum balance and no fees. Better still, when I call customer service, I talk to a real person from the same community as my bank, not a machine or an underpaid Indian in a call center. Sure, $LOCAL_BANK doesn't have ATMs on every corner, and ATM fees are obscene, but you can always get cash with no fees at a big grocery store.

I can't think of a good reason to have a personal account at a giant bank.
I assume you're referring to nuclear power, which a) has its own environmental problems and b) is really expensive, to the point of not being cost-competitive.

In general, it seems the people who are complaining about government subsidies for renewable energy development have no problems with massive government subsidies to the nuclear power industry.

I'm not anti-nuclear, per se, but given the huge potential downsides and massive lead times of current nuclear projects I don't think it's at all "ready to tackle this problem". But we should absolutely fund research into technologies like MSR, thorium, etc. We do need something to replace base loads, and I don't think biomass is going to cut it.
It really depends on what you're working on. Huge code bases, weird APIs (for instance the raw Windows API), verbose languages may need an IDE to be manageable.
SendToMyCloud -- A public inbox for your Dropbox or Google Drive.

Launched here on HN a little more than 2 years ago.

https://sendtomycloud.com

(among others mentioned in my HN profile)
Show HN: A microservice that makes adding authentication to your app easy
Xiaomi Promotes India Boss Manu Kumar Jain to VP
Invig – cli tool to modernize js and coffee codebases automatically
~400% interest rates on payday loans

If you count fees as "interest", banks charge 400%+ interest rates on overdrafts, too.
Cython gets a modest speedup on plain Python code merely from bypassing the bytecode stack machine.
Do you know some other implementations for comparing or any other ideas ?
http://tagly.azurewebsites.net it's like HN with tags, but does a lot more. Currently use it as a bookmark webapp as I continue to expand it's functionality
The meaning of the statement isn't even clear. What measure of simplicity is being used?
> If you are born in a 'bad' place (regardless of the reason for it being 'bad' - a violent/poor neighborhood, a city without hope for jobs, a small country-side town with no tech industry at all, etc. etc.) - you should be responsible for improving your life/moving to a better city/etc.

Most people born in bad places can't get out of them in large part because they're bad, since the effects of that propagate through. Why should the responsibility for a bad place, and subsequently improving it or getting out of it be placed on a person who wasn't the one to make it bad?

People who can get out of bad places are the lucky ones.
Once their system upgrade crashed my Mongo instance and only support they could provide was telling me I should have had backups. They were right but I had to move out.
What makes it more "mature" then say grav? Just started using it and it's pretty good so far.
> Email’s fourth advantage is that it’s a store and forward system. People don’t have to be online at the same time to exchange emails, and the emails can be kept for future reference. They can also be forwarded to other people, or printed out.

I believe they understand the whole store and forward model wrong.

We call email a store and forward system because every SMTP server (except the final one, which performs only the first 2 steps): 1) receives a message, 2) stores it and 3) then forwards it to another SMTP server. Everything happens absolutely automatically, without any user interaction. No SMTP server has to be online (except for the first one, which receives the message from the user) at the same time for email to work.

The article's author seems to incorrectly believe that "store and forward system" means that mail is stored in users' mailboxes and users can resend (forward) that mail. But in reality, "forward" in "store and forward" has nothing to do with the forwarding most email users deal with on a daily basis. The whole "store and forward" is about actions performed by SMTP servers, not email users.
Good. It'll be even better if multiple states decide to pool together and go single payer as well.
I.F. Stone had a great deal to say on journalistic independence in a 1974 public television interview on "Day at Night".

https://m.youtube.com/watch?v=qV3gO3zxQ1g

Small-town papers are beholden to small-town interests. Stone notes that the large-city and national dailies (NY Times, Washington Post, LA Times, possibly the Boston Globe, the Wall Street Journal at the itme) were freed of dependence on any one advertiser (or political interest). That may have been a peculiar circumstance of the 1960s and 1970s.
Sure—and I'm not excusing Brazile or the DNC. But that wasn't the parent's point. Longtime establishment Democrat operatives acting on behalf of a longtime establishment Democrat against a non-Democrat who was constantly talking about his own disconnection from the Democratic establishment is something that I think is bad for the party and unethical. I don't really like the Democratic establishment very much. Having parties full of politicians operate things like debates from a supposedly neutral vantage is silly and shouldn't happen.

What does that have to do with a corporate media conspiracy to elect Hillary Clinton over the obvious victor Bernie Sanders?
I'm confused by his warning that there are few opportunities for advancement as a product manager, and that PMs end up becoming marketers. Is this true in smaller companies maybe? Definitely not the case at big tech cos.
Currently improving my postcard sending service - https://postbirdy.com . Which is not really something special, just a fairly basic, yet functional service with my attempt to try making it quite fast and not hated by google PageSpeed Insights.

Also working on a simple service of screenshotting a website from multiple browsers (well, technically just emulating size and user agent with possibly PhantomJS). Not yet live, maybe in a week or two. Taking my time!
The author of the article actually develops the tool that can help the programmers detect such errors. The compilers don't report such kind of errors because it was traditionally to expensive to detect them. The special tool, like the one mentioned in the article, doesn't have to produce the optimized code and doesn't have to be run as frequently as on each compilation but it can allow the programmer to detect potential problems.

It's surely worth using it.
I have a feeling that a lot of the people ripping on alimony in this thread and elsewhere on the 'net were/are not ready for the deprioritization of self and concomitant promotion of "us"[1] inherent in marriage.

[1] Note use of "us" and not "other". You aren't putting the other person on a pedestal here!
Thanks for the feedback!

1) Cantonese flag is on my to-do list.

2) Agreed, I just need to come up with a good/automatic way of doing so without including the cloze word.
I'd guess it's more like they choose to ignore it.
Gigafactories for pot
This has happened to me as well. What I do is go to the bank and sit down with the manager, and push until I get those fees reversed. Going in person is much more effective than calling on the phone, and the manager will just fix it to get you out of his hair.
> 2. Larger than 0 does not mean 1

Rust and Swift have sum types, so their equivalent of `memcmp` can have a return type with exactly three values (`Less`, `Equal`, `Greater`).

> 3. Copy once, check twice

I'd like to see the context of this code. Perhaps this could have been written more cleanly using iterators.

> 4. Beware of the ?: operator and enclose it in parentheses

Not a problem in Rust. `if cond { true_case } else { false_case }` is an expression in the obvious way.

> 5. Use available tools to analyze your code

The right tool is called “type checker”, but of course, the language has to be intelligently designed, rather than just evolved, for the type system to be useful.

> 6. Check all the fragments where a pointer is explicitly cast to integer types

Or, even better, don't do it at all.

> 7. Do not call the alloca() function inside loops

Or even better, don't do it at all.

> 8. Remember that an exception in the destructor is dangerous

Rust solves this neatly: use different tools for recoverable and unrecoverable errors (the `Result` sum type and panics, respectively). Destructors always return `()`, so they can't fail in a recoverable way.

> 9. Use the '\0' literal for the terminal null character

Or even better, use Rust-style iterators and forget this null-termination nonsense.

---

I could go on, but this is getting tiresome.
I like the fact that my vimrc is easy to deploy on new machines without having to hassle with plugins.

At one point in the past, I did have a bunch of plugins (nerdtree, fugitive, surround, nerdcommenter, etc, etc) but they weren't that great (I guess because vim's scripting facilities and UI isn't optimal for writing complex IDE-like features) and were always conflicting or otherwise a hassle.

These days I get by with vanilla vim with a conservative vimrc and I don't consider my productivity crippled. The only plugins I miss are surround.vim and a commenting plugin.

If you like to try any plugins, sure go ahead but I don't think it's a good idea for someone new to vim.
There's the capability to both recognise the significance of an institution and its faults. There's no paradox in this. In fact both are essential.
It is a simple equation -- the amount of your donations is subtracted from your taxable income. That's it.

However, all the rest of the tax code then applies -- deductions, brackets, etc. So putting it into context isn't quite as simple. What if you were 50 dollars above the start of a new tax bracket. Then the first 50 dollars of your donations will have a larger impact than the rest of it. What if you were just shy of having enough for itemizing deductions to make sense, but donating 30 more dollars would make that difference? There are a lot of thresholds to figure out and deal with, which are more than anyone but an accountant could really step you through.

I'm sure it could be done -- plenty of tax software companies do it. But a quick answer in a HN comment probably can't break it down for you... you'll have to do the research and analysis.
How does removing options for people make them better off?
A tiny GUI automation scripting language (five commands) built on top of Python 3 and Pyautogui that will enable me to automate more than 50% of my current data entry job. :D
I wrote two mails yesterday which basically "push back against upper management", for a very good reason. At least that's what I think. Now I'm totally terrified about what will happen tomorrow. I have 4 kids and almost no money in the bank.
This issue is most likely the result of the hiragana being automatically generated and some kanji having different pronunciations based on context. I tend to trust the voices, and look up conflicting words in jisho.org to be sure. Ideally in the future I'll be able to get some kind of human moderation in place for checking the hiragana/pronunciations.
As Obesity Rises, Remote Pacific Islands Plan to Abandon Junk Food
Eggs keep perfectly well at room temperature for weeks in northern Europe. I never refrigerate eggs, they just sit in a tray of twenty on the counter.
I have karma to burn on this, so here goes:

I worked for several years in VFX/HPC. 30k+ cpus and 15pbs of storage.

Firstly with storage its very rare that people want actual block storage (unless you are hosting VMs, but thats so 2007.....) Yes, I know, openstack, but that's just fucking horrific, seriously just use netboot and be done with it. I've seen people do it inside new clustereing systems, but its really not fun to do, especially if you consumer is prone to disappearing without warning. (FSCK is a terrible mechanism for fast recovery)

Most apps, unless they have bought into the "shove everything over HTTP and pay the penalty", want a posix file system to store anything of importance. (yes, yes database, but where is that writing the data to?)

Now, there are three ways you can do this:

o use a clustered file system

o Use NFS (with or without a clustered filesystem underneath)

o Fuck about with iscsi/SAS/FC and dynamically map block dynamically.

Using a clustered filesystem spread over many clients is begging for trouble, mainly because one client can fuck it up for everyone. Some FSs are dynamic and sexy, but they have a habit of fucking up in new and interesting ways that even the authors can't figure out.

The common ground is having storage nodes attached directly to a pack of big fat disks(for streaming IO) or NVME/SSDs for random IO. They then serve out NFS traffic. Now, you can either have a clustered file system underneth, or not. (Having stand alone servers can be advantageous, if you can map your filesystem out hierarchically)

Now, unless you have a Storage area network, then the last option is just begging for shit performance. You really don't want IO traffic fighting with network traffic. However, if you want raw throughput, this is the way to go, but be warned, you won't get any friendly help if you accidentally disconnect a disk.

Basically, kubernetes/HPC and storage is a solved problem ducks no really, just map in NFS shares and be done with it. If its exotic, its probably going to fail hard, and in ungoogleable ways. More importantly only a few people are going to be able to help, and they may or may not still employed at your company.
I found this[0] one and this[1] one. Not sure which one the GP is referring to.

0. https://devopsengineers.com

1. https://devopschat.co
AussieOdyssey

If you're in Sydney and want to have a chat email me edward at flagshiplegal.com.au.
Do note the SSDs are mounted via NBD and not local disks.
Grammatical error, along with many others in the article. Nothing sinister about it.
My son is 7... months old, so he doesn't really understand it yet.

I can't wait until he's getting excited about these things.
As a Norwegian, I find it fascinating that Norway has an environmentally friendly image. I wonder how much is the "pristine" fjords, and how much is because of the hydroelectric plants.
In the UK, we have a service called the Account Switching Service - which redirects all your incoming and outgoing payments for you, with a guarantee that it's done properly. Shame the US goes for lock-in.
How could a book possibly capture "all the sayings in existence"? That's a lot of sayings.
Ironically, Bill Gates is probably not the best billionaire for this parable: http://community.seattletimes.nwsource.com/archive/?date=199...
Thank you, that's fine, I can totally respect the wishes of the community :)
Clickbait works, but tabloids weren't shaping elections.

Newspapers would use attention-grabbing headlines and cover photographs, but ultimately subscription would require people to make a decision about whether or not they gained recurring value from receiving the publication.

Technological fatalism in this area undervalues history. This exact battle between sensationalism and quality is not a historical novelty. Tabloids were not out-competing the NYT. A more nuanced view shows that current trends aren't predestined, or even distribution medium specific.
The year I took off for paternity leave was simultaneously the greatest ("wow, it's fun spending time with my kid!") and worst ("holy crap, we've been leaving women to deal with this?") thing I've ever done.

I seriously suspect a lot of jabs directed at feminism would die away if more men took paternity leave and used it as directed (and not, say, as a way to goof off for an extended period of time).
I don't think many people in Europe envy the US healthcare system.
Building mobile apps for http://baghchal.net (it's a board game), but struggling to find out proper business model for it. If anyone gets any ideas on a quick look I'd appreciate a comment.
Most of the answers seem to suggest this is some sort of tracking or malware. It is not but you still shouldn't be seeing it. That is only suppose to be seen by Yahoo employees and the internal links are there so they can report bugs easily. It's also present on betas but shouldn't been seen on the outside. It looks like somebody messed up and let it go to prod without having an employee check.
Can you extend Kirby with custom content types and fields to represent arbitrary things, ie a list of team members or pricing plans?
Useless article; the name was not chosen at random. There were a number of candidates, they decided to go with Atari. The Fuji logo was a separate decision.
> The NYTimes can have all the awards in the world if they publish articles that you can demonstrate beyond doubt to be bullshit or dishonesty.

What articles did you have in mind? The NYT's reporting on WMDs in Iraq is often raised as an example of 'fake news,' but I think the failure of the fact-checking process and subsequent investigation and apology [1] is to the NYT's credit. Investigative journalists have to make judgment calls about their sources and sometimes they get it wrong, but I've never seen an NYT article 'that you can demonstrate beyond doubt to be dishonesty.' Factual errors and misleading language do slip in regularly, resulting in frank corrections or the publication of dissenting views. That's more than you can say for most 'alternative' news sources.

[1] http://www.nytimes.com/2004/05/26/world/from-the-editors-the...
So you can't actually substantiate your claim that "virtually none implement proper security".

I am not sure why you think that mentioning a second incident makes your statement true for the majority of tech companies.
> The ultimate rule of workplace dynamics is whether your position is seen as a cost center or a profit center.

You are right and this should be one of your top check boxes when looking at a potential employer.
This is a great talk. I find that this pattern comes up over and over again: first add new code in a safe way that makes the codebase a bit messier without modifying anything, then move all functionality to the new code and neuter the old stuff, then delete the old stuff. Eg this style of pattern is how to do schema migrations safely.
Been loving Grav for my personal site.
Worked a treat and easy to setup - haven't had any issues.

Haven't had a look at how easy it is to create themes however.
Yup, it's got to be a global tax. Tax the sources: coal, oil, and gas producers forced to collect a tax on top of everything they sell.

Money used to protect rainforest & other ecologically important places, fund clean energy research, and maybe even to install solar, wind, storage, and car charging points.
There's a reputable travel and food guide in australia called agfg (australian good food guide) who charge $100/month for restaurants to be 'featured' on their websites. They will write a review of the restaurant without ever stepping foot within the restaurant and without trying the food. Featured listings are not labeled as 'paid' or 'sponsored'.
I've learnt something today. I don't think I have ever looked at the expiry date on eggs here in Norway and I've been here over thirty years! I definitely keep eggs for longer than two weeks unrefrigerated.
If the Neuromancer trilogy is not your first clash with cyberpunk... well at least for me there was hardly anything that was noticibly hard to understand. But if you've played Shadowrun for a while...
I imagine it's not that easy to add something like this now, without huge OEM backslash. If it was there from the start, maybe it would work.
I developed an app for my wedding (open-source)
Honestly only reason would be admin interface.

If you need clients to manage the site than Gravs admin interface is horrible especialy if you have more pages - there are dropdowns everywhere so good luck if you have 500 pages. Also grav allow restroctions in admin so for example if you have /blog which contains blogposts you cannot say that /blog can only have pages of type blogpost - it shows every single type.

Issues about this on github are ignored by Grav core devs on purpose. The reason for this is that they are company with bussiness plan and they are preparing their commercial "Admin pro" while they leave the basic interface just crippled.

I would like open source too but fees are low and the devs are extremely open.

Also kirby has much cleaner api, its much older and mature and the support is amazing. There are dedicated support people on their forums and you get response very quickly.

From where you are coming from - i dont think its thing for you. Its aimed at noobs and rapid dev of presentational sites.
To be honest, Intel marketing overpromises too. A lot. I think people are just so used to it happening all the time that it's nothing out of ordinary, so it doesn't even look like hype.
The human body is a complex system, with hormones controlling how energy is stored and made available, and nutritional content continuously altering the levels of those hormones.

Your statements completely ignore variables such as:

Bioavailability of the calories - how much of it remains in the waste (urine/feces) or is being metabolized by gutteral bacteria, for example. These variables strongly depend on the types of calories consumed, particularly the presence of dietary fiber. Soluble fiber for example is especially effective at capturing sugars and preventing their absorption in the small intestine, resulting in flatulence after arrival in the large intestine.

Insulin levels - when insulin levels are high energy is stored as fat. Hormones like insulin also influence mood and activity levels. Obese people are generally lethargic and low-energy/low-activity individuals, regardless of what is obviously an excess of energy available. This is due to the hormonal dysfunction. Hormones can cause a person to be internally starving when they're ingesting excessive calories, simply because their hormones are signaling the fat stores to effectively steal all the energy in the blood stream.
Yeah I'm not in love with that part. But... It's still worth it.
Xeon E3 desktop or mobile is just i5/i7 with ECC support. Your CPU falls square between i7 7820HQ and 7920HQ frequency wise (and 100 MHz at 3GHz is a negligible difference) and aside from ECC there's no difference: https://ark.intel.com/compare/97462,97496,97463

The big difference is in the E5/E7 chips.
efficient is the key. It's about outcomes. There's nothing saying we need greater quantities of energy, because very little of the things we as a civilization do are fundamentally energy-limited.

Over the long term, there is no shortage of energy. Unless you're going to argue about Dyson-sphere limits, the Sun provides an amount of energy far in excess of what we'd need. On that scale, the total energy available through fossil fuels and nuclear fission is a drop in the proverbial ocean.