skysight-inc/HackerNews huggingface dataset:
No, you don't need the 'try / catch' syntax, but in Go you can ignore errors.

And instead of 'try / catch', you have the frustrating 'if err != nil { return nil, nil }'.

io.Copy(out, in)

Did you know io.Copy returns an error? It does, and I rarely see it handled. You don't need to explicitly '_' ignore things. If you're about to say 'errcheck', well, great, it's not built into the language and what matters is practice; large go codebases do not use errcheck typically. Also, errcheck only handles things that fill the error interface, which e.g. the 'bool ok' return values (such as from map accesses) do not.

With Java exceptions, at least, you must explicitly handle an exception in some way. If you don't try/catch it, you have to add the throws declaration to your method. You have to handle that case.

Furthermore, you know exactly what sort of error it is. In Go, you get the silly "error" interface. So it's something. Have fun figuring out how to handle it. It's not like the language encourages you to just return 'errors.New/fmt.Errorf' so there's actually no way short of complicated regex string matches to figure out what error case you're actually handling. You don't get given all possible types of the error, if you try to switch on err == io.EOF or err == io.UnexpectedEOF or so on, how will you know that you got them all? The compiler sure as hell won't tell you.

With exceptions, you typically do have to get them all, you do have to account for all the types (and if you add a new type further down the stack, you'll have to make sure you handled it correctly further up). You can just catch 'Exception' and be in a similar place to Go, but at least Exceptions give you the option to do things more right.

Your point makes utterly no sense to me. Between Go 'errors' and Java 'Exceptions', only exceptions a) Make you actually think about and handle every one of them b) Can give you information about all possible types it may have and c) allow you to elegantly let a parent function handle it without 3 lines of utterly boilerplate code after every single function call.

Sometimes I think that Gophers just want to feel like they're handling errors. so they love 10% of their code being utterly worthless while not actually having any common way to handle specific error types and while managing to make worse error handling then every single other modern language, and then be proud of it.
> I apologise if what I just typed seems obvious,

No need to apologize, since what you've typed is far from obvious. To begin with, I did not assert that only Presidents are privileged. Not even close. For example, I would consider neither Bill Clinton nor Barack Obama to come from privilege like George Bush. And George Bush would have been privileged whether or not he was president. I would have thought that was obvious.

And if you're going to dive into relativity of life suckiness, they surely the white refugee child from a poverty-stricken family in the Caucasus, whose mother and father have been gunned down and most of her village killed, would be relatively unprivileged compared to almost any American, regardless of skin color. Same for the refugee child from war-torn Afghanistan, usually ranked as one of the very poorest and unhealthiest countries in the world, unless you decide to exempt South Asians from the magical category of "privileged".
This kind of argument works for classical thermodynamics too, where observing a particle in a gas collapses it's velocity distribution; where if we take a confined gas we can localize it (confining it within a tight space), only to grow uncertain about the momentum of constituents, or expand it, growing uncertain about the position.

In other words, for any probabilistic physical framework it seems to me you are going to need to put a magical 'sampling' or 'observation' somewhere.

Making this explicit is one of the reasons I like Bohm's formulation: https://en.wikipedia.org/wiki/De_Broglie%E2%80%93Bohm_theory...
> Yeah, the only way an individual who isn't black is harmed by affirmative action is if they were only going to get some opportunity by a hair anyway.

That's the source of my fascination with university anti-affirmative action activists: their cases in court rest on the claim that they were less qualified than every single person of an identical racial designation that was actually accepted to the school.
Wrongway Driving Racer – Android
you mean you wouldn't rather read about blueberries and doritos?
Come up with a metric and someone will try to game it

- By outright lying

- By collusion (e.g., the classic dev / QA agreement where someone makes bugs, someone finds them, and someone quickly fixes them, or by not reporting bugs through the bug system so they remain under the radar)

- Tweaking the code to meet the metric but not the spirit (adding many do-nothing layers to a system to artificially puff up code coverage percentage is a classic)

- Staging checkins (break a check-in into many sub-checkins, to appear more productive in the "check-in count" graph)

Also: Schedule padding (probably since the first construction contract, thousands of years ago), secretly trimming features or leaving them as demoware, renaming bugs as unfinished features (to be completed in "version 1.1"). The list is as old as organized work.
If you look at the various elements of a 3D printer--filament/material, print head, print arm, bed, position control, material transformation model (e.g. fusing, sintering, curing/hardening, ...) they are innovating in a couple of dimensions at once. The idea of transporting the printer to the job site and not being constrained to a small volume by print head and arm seems to offer a lot of possibilities.
I am not Arnold, and I approve of this programming language.
Show HN: OsuWeb – WebGL and Web Audio
I wish apps designers respect this simple dos and dont's.
This isn't a heuristic search, it's guaranteed to find an optimal path the same as A*. More generally, this isn't a talk for theoreticians, this is another tool in the toolbox for game AI engineers, and personally I find it very clever. Whether you can afford the memory cost for the precomputed data is a question that must be answered in the specific context of your application.
Before reading the discussion let me just say that this is a trivial problem with a 10 lines solution which I expect anyone be able to write correctly on the first attempt and I would not want to hire someone who can't do it.
Sorry, it's not Arnold complete. There is no "IT'S NOT A TUMOR. IT'S A HEADACHE!"
"Using bootstrap to esitmate confidenc intervals for pcoin
Interval etsimate of parameter."
So the goal of affirmative action is to help provide a little balance. There are plenty of ways to be disadvantaged in our society, but our country has a long history of disadvantaging black people in particular. So race-based affirmative action is one (admittedly imperfect) way of bringing education to a class of people who might otherwise miss out.

It's imperfect. There's no getting around that. But it's not racist. It is an attempt to compensate for existing racial biases and historical inequities.
Happens in the US too, for the same reasons. Our export avocados tend to be larger an nicer looking than the domestically circulated equivalents. However, they both taste the same.
Unless you could make an app for that ... then get it funded.
Yes, the thing I hated the most about my Google interview experience was that there was no discussion whatsoever of my previous projects. But there was the question "What would you like to do?" and I realized later that I should have hijacked that question to talk about my past projects I enjoyed the most.
That could as well be ARCNet which in addition to coax also supported single-pair Cat3 cables. From ARCnet cars I've seen I assume that pair of RJ11's was standard connector for that.
I have a shirt with rockets all over it. I am sure some feminist would call them dicks.

That said, I don't think that dicks are the same class as women's breasts. Impossibly figured hyper sexualized illustrated women? What does that even mean?
Either alt+134 etc on the numpad (windows), holding down the a or o key (OS X) or by temporarily changing to Swedish keyboard layout, depending on the situation.
Not affiliated with this project in any way but that comparison is not quite the same thing, Medium's promotions to their audience are heavily skewed towards the things they manually curate.

This platform would let anyone be exposed to a larger audience if the content is upvoted by people enough.
That's an interesting angle even for this study - how do the original participants feel about it I wonder? I'd guess some mixture of amused and cynical.
I once rewrote around 200-300 lines of VB using the WinInet gear into a 20-30 line Perl script with WWW::Mechanize. VB's HTTP stuff was terrible.
Aziz Ansari wrote this? What doesn't that guy do?
This Week in Science: Injecting Electronics Directly into the Brain, and More
The problem isn't metrics per se. It's tying them to reward and punishment.
Sure, but thats exactly my point. Given a set of well-stated limitations (like, cannot use more than N^x bytes of storage for an instance of size N, using the same standard library of data structures etc) we can make meaningful comparisons. I could come along with a method that uses O(n log n) memory and crushes this (maybe) - how do we declare a winner now, without some sort of context?
Agreed. Travel laptop is the way to go. Slurp encrypted /essential/ files from central storage. Say an Amazon bucket, dropbox, etc.
Original source: https://www.quantamagazine.org/20150604-quantum-bayesianism-...
A Bad Case of the Flu or Depression?
I work a pretty regular dev job (database analytics/reporting tool essentially). I of course never have to _invert_ binary trees, that's a pretty artificial example, but I had to write a method for pretty-printing tree structures for debugging something just this week.
This is a good question.
Nothing to be embarrassed about. I graduated and I'm still working on my Maths and Physics daily. I have a folder in my computer named "Core Knowledge" because I noticed that whenever I struggled with a topic, it wasn't really the topic I was struggling with, it was my core knowledge that was weak. I'm strengthening the core so that I'll only have to deal with the topics.

The best and worst thing today is that you have a huge number of resources. So much that you can either learn it all, or none. Most will go with none.

Everyone will recommend their favorite books. I'll do the same:

- Piskunov's "Differential and Integral Calculus".

- Demidovich's "Problems in Mathematical Analysis".

Piskunov for a course (concept, example. concept, example) and exercises. Demidovich for a quick review and about 3000 exercises.

I personally prefer the Soviet style for Maths and Physics. They're sharp, read your mind, and are ADHD free.
Agree that everything must be contextualized. My point is, you saw this presentation and liked it because it seems like a good idea, and the performance is apparently good relative to something else. For an engineer (or a theoretician) to reason about that claim of improved performance there needs to be a systematic way to understand it. All I'm saying is that way this was done doesn't allow us to understand it very well - precomputation being a big part of that.
Url changed from http://www.thehistoryblog.com/archives/4587, which points to this.
Many of these are blatantly obvious. Most bad design isn't because people don't know better; it's due to laziness.
Interesting. Attempting to load this page deadlocks Safari on iOS 7.1.2 on my iPad Air.
.5 to 1% of your programming time actually typing is an exaggeration right?

That would be ~5 minutes of an 8 hour day typing. 8 hours each day to plan 5 minutes of typing seems... well, something is wrong and I have trouble seeing a sizable project getting done like that.

I probably spend 2-3+ a day typing (for various reasons.. not all programming). And yes, typing is very big issue for me.
https://hn.algolia.com/?query=arnoldc&sort=byPopularity&pref...
Yeah, I fall under one of the categories of people who can lose their citizenship.

I know I won't lose my citizenship. The people who this will be used against aren't the kind of people I want to share Canadian citizenship with. Say someone who was born here, and had another citizenship, joins ISIS, and isn't allowed back? I'm OK with that.

If I read that they died in the desert (this actually just happened to few guys from Canada), I'd shake the guy who pulled the trigger's hand.
In the case of vision, there were a lot of things going on, but support vector machines, sliding window search, descriptors with invariances to different transforms like SIFT and HOG, spatial pyramids, deformable parts models, and mixtures of gaussians are all hot topics that you'll regularly see in papers from the early 2000's. There was a lot of work on improving runtime for these techniques going on, since training SVM experts and evaluating anything over a sliding window search space is very expensive. You'll also see a lot of work on approaches rooted in graph theory like conditional random fields, different flavors of Markov models, min-cut/max-flow based algorithms, and other types of probabilistic graphical models. Most of this stuff is still in widespread use; AI is a big field.
https://news.ycombinator.com/item?id=9714990
Any directions with this?
I guess I don't get it. How is this different from a hidden-variable theory? How does it explain the two-slit experiment?
A sufferable snob – The Complete Letters of Henry James
The tragedy is that when those exports arrive on their destination (take mangos arriving in Portugal, for instance), due to necessity to prevent the fruit to get ripe in transit they alter it somehow and not for the best.

I'm used to the taste of fresh picked mango (and guava, banana and other tropical fruits) and it is a world of difference from the fruits that we get in the supermarket. They all taste like they were picked way before they properly matured and then when they reach their destination they add some ripening substance making the fruit look ripe but without the right taste and the aroma.

It's a tragedy, they pick the best fruits, mangle them to survive travel and deprive both the locals and the foreigners of the best produce.
Yes it does, even with a neat curses based interface IIRC. No need for wireshark at all.
Here's the actual process.[1] It's not clear if the video has been sped up.

The product quality seems comparable to rebar. Making a pedestrian bridge out of that stuff is a stunt, but it could be useful for making rebar reinforcing over which concrete is then poured. This would be useful for complex concrete forms.

[1] https://www.youtube.com/watch?v=NFF0QQIQDXE
Whoops.

Thanks.
The biggest that comes to mind is that with dual stack IPv6 all the people running through IPv4 anonymizing VPNs will be bypassed for sites that support IPv6. Oops.

IPv6 has some minor privacy extensions too, but likely still allow you to be geolocated.
New Barbie Series – Along the Shoreline
Startup idea: We have a lot of dexterous muscles in the face. The keyboard could probably be replaced with a face sensor. I would love to work from the couch, only using my face.
Uber Kenya – Everyone's Not So Favourite Driver
I'm on H1B visa and during past 4 years I have entered US around 10 times. Every time I had laptop with my that had full disk encryption either on Windows (TrueCrypt) or on Linux (LUKS). Also I had with me external HDD with full disk encryption on it (TrueCrypt).

Nobody ever asked me to look at my laptop or my external hdd. Two times they looked through my larger suitcase, but not my carry-on where I have my laptop.
Ah that's a good point, thanks! Consistent navigation is the crux of many apps. Though with the phone version i find 99% of my use is either listening to my playlists or searching & placing specific song, so I seldom hit all those use cases that I do on the desktop version. I can imagine it being quite poor at those edge cases however.
Protesting has a spectrum. Some of it is acceptable, some illegal (though not entirely unacceptable), some unacceptably illegal, and some forms of protest are terrorism.

Protesting a pipeline by mailing thousands of letters to an office, each from a different person, signed, and forwarding a petition to the government? Great! That's how direct democracy works. Get out there and make noise.

Protesting as in handcuffing themselves through a steel pipe, to the trees in the path of a new pipeline? Not terrorism, they'll just go to jail. Maybe they'll get a record, maybe not. Some people are OK with doing this, and it does send a strong message. I'll concede to you that I'm concerned that at some point, someone outside the law and government could convince (or coerce) someone into calling a few instances of this type of protest terrorism.

Protesting as in bombing a pipeline? Well... the way the laws are now, they'll probably just go to jail, unless they're receiving explosives, instruction or funding from a known terrorist group. If they're self-radicalized, they're going to be made an example of. If they're tied to a group, that's when we'll see more of bill c51 used.
Side note, just noticed that Comcast SF broke my /60 prefix delegation that had been working for almost 2 years[1].

Appears to be affecting DSLR[2] users too. Anyone else observe this?

[1] https://gist.github.com/1cec3537f61aefd1d6bc

[2] https://www.dslreports.com/forum/r30112054-IPv6-IPv6-prefix-...
A classic case of "the real racists are the ones who mention race."

To address the real problems of continued systemic racism that existed from the founding of our country, we cannot simply put our race blinders on and pretend we're a post racial society.

You're ignoring that there are inherent racial advantages in admissions already.

It is morally offensive that, as a society, we've proven to be unwavering in our racism until we are forced to address it.
I would love a keyboard that lets my hand move around freely instead of lying awkwardly flat on the desk.

Also, I would like to code while lying on the bed, a keyboard I can wear like gloves would be great.

If not, a keyboard in the shape of /\ lying on desk would be a much better design.
"In any case, by March 2015, when the comet is closer to the Sun,
it is likely that the lander will become too hot to operate. [...]
It will next pass through perihelion on 13 August 2015,
186 million kilometres from the Sun."

(http://www.esa.int/Our_Activities/Space_Science/Rosetta/Freq...)

Will the heat affect the lander's measurements?
Coloring `cat`
Well, if you are company that delivers real value to other companies that dont, then you will be in trouble.
While I intuitively agree with the conclusion there, this analysis definitely doesn't prove it...

Of course more time was spent editing files with more lines of code. In fact, if your entire application was all contained in one file, I am willing to predict that you'd (shockingly) find that all of your time was spent editing that very same file!
There's a bit of a difference between sovereign nations doing it and a state moving stuff around domestically.
Do what you normally do (or at least, _should_ do):

Make regular backups that you do not carry with the laptop.

That protects you against both hardware defects and overly-aggressive border personnel.

I think the first is way more likely than the second. I have never had to show that a laptop actually was a laptop, not even when traveling with two laptops, an Ethernet switch, a few lengths of cat-5 cable, some JTAG stuff, a prototype device, a few screwdrivers, and a box containing the innards of a GSM phone that came with a power brick and a 2 feet or so plug-in antenna (that was before 9-11, though)

And VISA waiver/ESTA means that the U.S. got early warning about you, so chances are they already checked whether you are considered a risk before you show up at the border.

Also, many business laptops 'boot' into a pre-Windows environment that requests a password.

If you still are worried, would running Windows on a second, small, partition be an option? Alternatively, make the laptop login directly from booting into a demo account that shows some GUI with overlapping windows (could also be a different Linux OS on another partition)
Security Theatre at Allied Irish Banks (details)
Bond Market Liquidity Is in the News
awesome. thanks man. i forgot that i was using penlight. :)
Show HN: Web Based Latency Test and ISP Comparison
and by hack you mean exploiting subsidised water?
>People like George Bush are privileged

I had to pick some meaning for this phrase to have. The 'like' here is problematic, because we are all like George Bush in many ways.

What did you mean to say here?

>And if you're going to dive into relativity of life suckiness, they surely the white refugee child from a poverty-stricken family in the Caucasus, whose mother and father have been gunned down and most of her village killed, would be relatively unprivileged compared to almost any American, regardless of skin color. Same for the refugee child from war-torn Afghanistan, usually ranked as one of the very poorest and unhealthiest countries in the world, unless you decide to exempt South Asians from the magical category of "privileged".

Yes, these are people who would think that you or I are privileged. I'm wondering why you think they're wrong.
Not particularly. The desire of neural networks here are the non linear transforms you can do with the data. There's definitely some appeal and things to try here though. Gradient boosted trees and other attempts to augment random forest are pretty main stream though.
> I don't think I saw anyone else thinking or working in the direction they worked. Truly innovative.

The best thing? The guy who designed it previously co-designed Google's cold storage system ;)
I wonder if Obama + 2017 == Obama - President
I find it painfully ironic that the first part of the article talks about how we should take care not to exaggerate our findings in studying history, when the title of the article "Genetics allows the dead to speak from the grave" is itself a blatant exaggeration.
> I would recommend deactivating password logins and using only key-based logins.

I do that when I can, but sometimes it's not possible.

Also, fail2ban works for other things besides ssh, which I need.
BSDCan 2015
Silicon Valley is located in California, so this is topical to those people. Also, it is the weekend, so this site get tends to get more lifestyle/political oriented.
I think some of this comes down to tool quality. I more or less never do the kind of repedative tasks that that your talking about.
since you got no response:

- scrapers, spider/crawler and content extractor for NLP analysis

- analyze your hard drive for old, duplicate etc files

- Arduino/raspberry pi (challenging, very little RAM, can't use c++11, stdlib, etc

- CUDA

_____________

also you want to look at VC++, clang and gnu toolsets, e.g. "#pragma once" and the C++14 refinements. Meyers Modern Effective and Effective 3rd ed books are great for that. Also Lippman et al's primer

_________________

compiler blogs: http://blogs.msdn.com/b/vcblog/

http://blog.llvm.org/

http://developerblog.redhat.com/tag/c/
"Thank you", "Not at all", seems grammatically off to me.
Security Advisory – E-Detective Lawful Interception System
This is great.

A little bit like CodeCity (http://www.inf.usi.ch/phd/wettel/codecity.html).