skysight-inc/HackerNews huggingface dataset:
> It turns out it was coming from this line in my model.
> This innocuous little line was responsible for 80% of
> my total database load. This validates call is Rails
> attempting to ensure that no two Repo records get
> created with the same username and name. Instead of
> enforcing the consistency in the database, it put a
> before commit hook onto the object and it’s querying
> the database before we create a new repo to make sure
> there aren’t any duplicates.

I still can't believe that Rails even attempts this. It's simply not possible to do this kind of enforcement in a race-free manner using SELECT statements with Postgres.
Why restaurants hate Grubhub/Seamless
What Google has done with iOS and even Android (particularly with Samsung's play to break dependency on Google) might be where MS is heading. Google has decoupled their apps/services from the OS, and provided a consistent 'Google-y' UX (or working towards that anyway) across all of the platforms. MS seems to be in the way there, with Edge being released for both mobile platforms.
There's a colonization sort of dynamic emerging when sharp differences in tech are involved. A VC-backed state-of-the-art startup going against old-fashioned brick and mortar shops is like tanks against spearmen in a game of Civ. Or gentrification through other means.
Those are like the poster children of tech industry network effects. Apple was first, Google decoupled the OS from the hardware, and Windows came in two years after Google without the goodwill Google has. Amazon and Facebook are the same story. Too late, not hip enough to catch on with the cool kids.
As for end product realization compared to current gen stuff, it'll be about the scale of difference between the XBox360 to the XBox One.
thank you. I have the feeling that many participants in this overall chauvinistic discussion here see themselves as artists that always produce perfect outcomes, ignoring the history and productivity of the software actually in place.
Not disagreeing on the perceived quality of this salad...but does that really change the issue at hand?

I would think that while it may be challenging, I don't see it as unthinkable that we could have a robot tear leaves of romaine and spinning a whisk.
It's so crazy to me that everyone in vulnerable places--Tokyo and Houston in the article for example--are happy to spend hundreds of millions, even billions, to put a bandaid on their local climate change problems.

It seems like they all acknowledge the reality and danger of climate change and are willing to spend money on it.

In TFA Houston wants $400 million to build a reservoir. They seem to acknowledge that things are only going to get worse for them as the years go on. And yet everyone there still drives everywhere spewing carbon into their own air with every trip, public transit is in a poor state, and oil exploitation continues apace. Everyone's OK with spending money and manpower on huge public works projects, but they're not OK with addressing habits and addictions that make the projects necessary in the first place.

It's as if our eyes can see the oncoming train just a mile away, but instead of stepping out of the way we want to build a mechanized winch that will temporarily lift us over the train, and hopefully we'll be done building it before the train hits us, and oh yeah, never mind how we're supposed to get down, or the taller train after that one.

Why can't we put that money, effort, manpower, and will into actually addressing climate change and make crazy projects like vast man-made Mines-of-Moria-style underground tunnels and huge artificial reservoirs unnecessary?

Yes it's a global problem, but solutions to global problems start at home. Throwing our hands up and saying it's pointless until the other guy does something too can't be the way to progress on this issue.
EU investigates possible Dutch and Polish blocking of fintech services
That wouldn't work. Debian publishes minor updates to older release "branches"; naming those after the date they were released would make it impossible to distinguish the branches. For instance, Debian 9 was released in June 2017, followed by the release of 8.9 the next month as a minor update for users still running Debian 8.
To be fair, nobody would have undertaken the Big Dig if the true cost were known up-front. And a debt that's 200% GDP is a unique circumstance.
I assume the second person was joking. I have no idea what the first person was concerned about, unfortunately.
3nm. Wow. Synchrotron, or laser tin vaporization soft X-ray source?
IIRC, you can use either. Whatever quote you used to start the string is the one that will end the string.

var foo:String = "foo"; // foo

var bar:String = 'bar'; // bar

var fooquotebar:String = "foo'bar"; // foo'bar
Reminds me of an article I wrote up about tracking who's talking to who on WhatsApp: https://medium.com/p/finding-out-if-2-people-are-chatting-to...
Isn't market share part of making the phone feasible? Economies of scale and all that.
How has that worked for you?
There are currently possible ways for the public to access and invest in the private start-up companies like GitLab and GitHub. For example, EquityZen is a platform that lets people to invest in private pre-IPO:
https://equityzen.com/?utm_source=hackernews&utm_medium=comm...
I honestly think that in a just society, you would deserve a fraction of the profits, yes. Even if it's some percentage of a cent.
It's not hard to see why Apple launching one iPhone in America only, a full decade ago, doesn't matter when the next nine iPhones came out everywhere.
I'm not sure it requires a rewrite, the old stuff still works. The trouble is the constant churn is draining, I've pretty much abandoned the platform because of it. We keep hearing about new JavaScript frameworks but we had exactly the same from MS: win32 => MFC => WTL => VB => WFC => Winforms => WPF => Metro => UWP, no doubt there is something else just around the corner.
>a couple of WinRT APIs, WinAppDeployCmd

Any hints or sample for Launch from Layout? Yes, I read the docs. This question haunts me for 4 years and I still have no answer. Please please please.
I think I did almost the same thing three years ago. See: https://www.v2ex.com/t/121272 (in Chinese only, sorry. I should translate it to English when I'm free)
Grabbing popcorn for firestorm over title editorialization... hurry up mod squad!

edit: ("Coding Bracelet for Girls" or some-such)

PS. Now that's this comment is flagged (hidden from the public discussion), I can 99.9% guarantee it will happen. Oh well, I delayed it for a few minutes. ... Looks like the mods made it in time.

https://news.ycombinator.com/item?id=15227936
Easy scheduling and A-B tests.
I imagine StorageKit is a relatively new addition, or is tailored for UI applications. So I can see why it is not used by diskutil (which has been there from the early days of OS X), at least not yet.
They might not remove it any time soon, but they could easily never update it.
Anyone used Haxe in a server?
> Separate mobile baseband
Ok, how do we know the hardware/software there pushes the goals of security and privacy? I2S hooked up? (that would scare me on a design with the stated goals, but it makes it really nice for getting good acoustics with your mechanicals) Simply pushing app processor encrypted data over the bearer?

> i.MX
Love the i.MX 6/8 APs, but I would recommend prototyping/de-risking the power budget up front.

100% open source warms my heart. Would love to see if this could be built.
I call those BP oil spill trades. Starts with a surprise events that is seemingly catastrophic. If real consequences require special government action -- the consequences will be underwhelming and easily mitigable. If you believe there's no ethical consumption under capitalism, there's no problem profiting off this effect!

See: BP oil spill, HSBC money laundering scandal, Wells Fargo fraudulent account scandal, Equifax data leak, United Airlines beating up a passenger... I know I'm forgetting some.

I'm pretty sure you could beat the yearly S&P's performance in a single trade for any of those events.

Apple having to delay a new iphone release would have a more significant long term effect on that company's stock price than workers at foxxconn facilities killing themselves
On a related note, can anyone suggest sites with great educational/fun gifts like this for girls?
Tokyo has a GDP of $1.6 trillion per year. And they have a lot of expensive property they want to protect from flooding.
you are 'entitled' to that opinion.
The costs of developing and commercializing the components in smartphones are borne by the Android, automotive, and other high performance embedded markets. They just need to make it viable enough to assemble the components and put them in an enclosure.

So it's perfectly feasible to have a small market device like this if the market price covers the cost of buying chipsets off the shelf, and assembling them.
Wow economist.com is a joke. The article is written poorly and then, if I want to read the full article, I have to subscribe? I'll move on.
I imagine they cannot afford to do their own radio chip. And that's already enough to track you.

Android does not seem to be the problem.

When going with custom OS if this phone gets any traction then I'm pretty sure some helpful OS contributor from three-letter-agency will add something from his heart, because by running it you are already signaling that you are an interesting target.
We just use Microsoft Word and follow the correct eBook formatting standards for where we want to publish. Amazon has some good guidelines on what formating it needs for Kindle. We are tempted to use some of the online services for formatting outsourcing.
Office and productivity software is far from a killer mobile app. Mobile devices are mainly used for real-time communication or consuming content, much less at creating significant amount of content, where MSOffice shines on the desktop.
They don't have to fund that. The idea is to make use of the work of the open-source community. The main contribution, software-wise will be pushing forward Matrix, pushing forward open drivers, and designing a platform that makes it easier for others to build apps.

Plasma Mobile is one example of an existing open-source project that aligns with their goals:

https://plasma-mobile.org/

Ubuntu Touch (now maintained by UBports) is another good option:

https://ubports.com/
There is a bug when you close windows (the round yellow thing remains). Also can you name the windows?
The Unemployment Anthem – “Part of the Workforce”
Isn't privoxy native code?

I wouldn't recommend running this, as it most likely is an excellent way to get a remote exploit on your machine.
I have a cup in the morning and another 2-3 cups up till around 3-4pm. I usually go to bed at 11:30pm and by that time the caffeine is at a normal level to sleep.
>for girls

what do you mean?
Tragedy of the commons - it's a ubiquitous and powerful economic principle.
No. It'd require only slightly more work than the cost of generating a block at that time, to generate a new plausible block altered arbitrarily.

The power of the "head" of the blockchain is the human consensus around it. It is otherwise unprivileged.
I'm still maintaining a WinForms app, the only problem I've had is dealing with high dpi displays is really messy.
"Virtue Signalling" is just the new snarl word for "SJW".

Anyone relying on using this essentially meaningless phrase (SJW, virtue signalling, or other snarl words) to label something is intentionally being dismissive in a derogatory manner, and is not really worth engaging.

e: see their intentional strawman below for further proof

https://rationalwiki.org/wiki/Social_justice_warrior#.22Virt...
Are there cultural factors and discrimination preventing men from...

I think we need to be clear on what we mean by "cultural factors." When I told my father that I wasn't going to pursue a career as a tenure-track physics professor at a research lab he was clearly and obviously disappointed, and was always apologetic about me and let me know he had 'covered for me' when talking about me to his peers. I'm simply not smart enough to have done that without being completely consumed by it.

I would call that a cultural bias. Do women suffer that same cultural bias? I don't have sisters so I don't know.

I do know that the doors have been opened for women in sci/tech since the early 1980s, if not before. Nobody has been trying to keep them out. The ones I know who didn't pursue it got out because it wasn't a lifestyle they wanted. When it comes to misogyny, harassment, and all of the other factors that can get in the way of outstanding females, we see nearly every day that this happens in other fields too- even Hollywood (thinking Weinstein 2017-Oct-08 for future eyes). That doesn't seem to keep females out of the field, because they want to do that work.

I wonder how much of the dearth of women in tech is because women actually feel like they have more options than the men do. One of the most brilliant women I knew (as a graduate student) was also Victoria-secret-model attractive. She said to me while in her Ph.D. (physics) program: "I'm too smart for this."
Looking forward to seeing other recommendations (perhaps more specific, and best with personal anecdata).

· Ask HN: Know of any non-digital toys/games that teach, for 6-10 year olds? | https://news.ycombinator.com/item?id=14942570 (Aug 2017, 71 comments)

· Elementary School Coding & Robotics Resources | https://docs.google.com/document/d/1r1b2CM1uTdST47IbWa7zlZYm... found on: Project Bloks: Making code physical for kids | https://news.ycombinator.com/item?id=11986593 (Jun 2016)

· http://www.hanselman.com/blog/ReviewLittleBitsGadgetsAndGizm... (Jan 2016) <- links to 3 previous posts with additional recommendations

· Teaching a 3-Year-Old to Program Without a Computer Screen (Cubetto - https://www.primotoys.com/) | https://news.ycombinator.com/item?id=10586661 (Nov 2015, 35 comments)

· DragonBox: Secretly teach algebra to your children | https://news.ycombinator.com/item?id=9469364 (May 2015, 100 comments)

· Osmo (iPad app with add-on hardware) | https://news.ycombinator.com/item?id=7784243 (May 2014, 104 comments)

· Turn anything into a videogame controller, even a banana (https://makeymakey.com/) | https://news.ycombinator.com/item?id=3971869 (May 2012, 25 comments)

Robot Turtles (http://www.robotturtles.com/) makes a good jumping-off point for further research as it is a favorite in this category: https://hn.algolia.com/?query=robot%20turtles&sort=byDate&ty...

--

PS. volunteer application re-opens Feb 2018: https://www.tealsk12.org/

pair volunteer CS professionals across the US with classroom teachers
Saw a similar post submitted on the front page just there so might as well post this!
... Why? Why would a bad choice of algorithms and specious "security" guarantees be a better choice tomorrow?
It's clear that our contemporary social structures are not well equipped to deal with climate change. This is unlikely to change in the next 10-50 years. So local governments that are able to act must do so.

"Solutions to global problems start at home." --> If everyone in Houston switched up their SUVs for Prius', nothing globally would change at all, except that the people of Houston would have smaller cars. Why does this make sense for them?
> What stops [someone]..

Interviews scheduled during work hours, already working multiple jobs, burnout, lack of openings in your field

> It hardly is THAT hard to get some competing offers. And if you can't be bothered, I guess you don't really want it anyway?

This sentiment signals bias

Competing offers? For what? Serving coffee? Washing dishes? DBA? CTO?

If you offer anyone with a job more money my guess is 100% would take the extra cash, so just because they fail to find, or look, for more cash how does it imply they 'don't really want it anyway'?
Delegation Techniques for Tech Leads
>"This does not imply that they love surveillance, loss of privacy, sexist office culture, messianic and arrogant CEOs, lack of diversity, tax avoidance schemes or sweat shop labor."

Could you differentiate this from the financial sector, please?
It's also because it's much easier sending photos and live recordings using whatsapp compared to any other app outhere (FB is too clunky, the rest of the apps don't have a critical mass in most of Europe.
Applied Deep Learning: Autoencoders
How to Make Cool Cash with Email Marketing
Holy moly that website does a bad job of describing what they actually do. Apparently you can program the lights and vibrations? I looked up a YouTube video, apparently they can be programmed for notifications from your phone?

Marketing team really dropped the ball on this one.
Way to go on wanting to embark and double down on a new path! I love coding and although it will be a hard choice I think it will be a good one. I feel that back-end or front-end for web would be a good start. I would start by working through Free Code Camp: https://www.freecodecamp.org. I believe some of their students have actually landed jobs working through all the curriculum.
Is it possible Credit Karma shows self-reported "monthly income" statements you have made when applying for credit?
Searching All 1800+ of Munch’s Paintings with Machine Learning
What if Microsoft open sourced it? Maybe with the understanding that the default search engine would be Bing and browser edge?
Starting anything new is a drain on resources. Someone with time to focus on interviewing is bound to be better than someone with a new job they need to figure out. After all, it usually takes a few months to get anyone up to speed in a job, and this is assuming they're giving lots of effort.

For existing jobs? Inertia is probably a factor there, as well as fear of the unknown. When you've got something to loose it's different than having nothing to loose.
In otherwords: Minecraft.
> "the customer should be able to use the product fully without having to read any documentation."

I agree with this. Even if the customer is a world-class developer.

> Anyhow, VLC gets the preferences options perfect. The UI can use a bit of work and the UX is a bit rough, but the multitude of options makes up for any shortcomings it may otherwise have.

I don't see how they're even close to "perfect". Yes, there are a lot of options, but when the average user doesn't know what options he might actually want or need to enable, that's not exactly, well, helpful. Here are a bunch of issues I have with the current set of options on the Simple page:

1. Interface: "Resize interface to video size". What in the world does this mean? If I play 1080p video on my 1600x900 monitor will the video suddenly expand beyond the monitor size and I won't be able to close it? Why would I want that?

2. Audio: "Enable audio"... er, you can already mute or set the volume to zero on your computer whether globally or for VLC itself, and you can set the volume near zero within VLC just for playback too, and you can mute the volume within VLC. Why in the world is there another option in Preferences? What's the difference? Is this supposed to be intuitive?

3. Audio: "Replay gain mode: None/Track/Album" in the "simple" options... you expect a non-"advanced" user to know what this means? And the tooltip is ever so helpful: "Select the replay gain mode"!

4. Video: "Use hardware YUV->RGB conversions"... this is a Simple setting? How/why is an average user (or even a power user) supposed to care about this? Do you ever worry about it?

5. Video: "Enable video"... er, why not just let users hide the video from the video playback (e.g. drag & collapse, or with a button)? Why in the world is this a global setting for the entire player?

6. Codecs: "x264 preset and tuning selection"... even as a developer I have literally no idea what "ultrafast" and "slower" and "placebo" as well as what "film" or "psnr" or "grain" imply, or why I would ever need to change them. Isn't this a clearly advanced setting? These are the kinds of drop-down options you expect to a hastily-written GUI front-end of a command-line tool that just expects the user to "know" the right thing to do somehow.

etc.

Putting all possible options there is half the battle. The harder part is making it so the user would actually use them. VLC still has a long ways to go for the latter, unless its target audience is multimedia experts.
The tragedy of the commons is another name for the failure of private property and markets to account for externalities. For a real theory of the commons without leaving mainstream economics cf. Mary Ostrom's Governing the Commons. Otherwise, all of anthropology.
We are happily using JOOQ with Java + Postgres.

I strongly recommend it. Having statically typed representation of the schema has many pros and the trade-off is a little overhead when changing the db schema to regenerate classes.

Some of the benefits include knowing exactly what part of the code stops compiling after changing the db schema, easily map POJOs to-from query results.

Also, there's simply no pressure that you have to be absolutely certain what each and every knob on your ORM does else you have bad data in your database. Been burned before with Hibernate defaults, and the thought of a junior dev creating wrong conf is just not worth it.

The database is basically the place were you least want a risk of misuse to have any unseen side effects.
It's very likely that local band-aids are the most effective way to deal with this.

Your train example is a pretty good one, but you've mixed up the metaphor. Here, "stepping out of the way" = mass migrations out of coastal cities. "A mechanized winch that temporarily lifts us over the train" = flood control projects like in Tokyo, Houston, Venice, or the Netherlands. "Calling the train company and asking them to stop running trains" = stopping global warming by addressing carbon emissions.

If you had a train barreling down on you, which one would you choose? I'd bet it wouldn't be calling the train company and asking them to stop running trains, because a.) they are unlikely to anyway and b.) even if they were willing, by the time you got through to someone with the power to stop the trains you'll probably be dead anyway.

I'd argue that the actual solution to global warming will be more akin to "stepping out of the way": people will evacuate from major cities, major cities will be destroyed, and people will pick up the pieces of their lives elsewhere. If they're proactive, they might evacuate before the city is actually destroyed, and we'll see mass migrations of people (as have been happening for the last several hundred years anyway) away from areas that will face greater climate risks and toward areas that benefit from global warming.

That's what humans do: we adapt to our environment. Only in particularly hubristic times (like now) have we expected to adapt our environment to us.
3nm isn't even on the international semiconductor roadmap (that stops at 5nm, and 4nm half-node) How can they build a fab for a process node that isn't even designed yet? Has anyone even produced prototype chips at this node yet?
I think 7nm exists somewhere, but I could be wrong.
FPV and Drone videos curated into one handy place
That's just one of many problems…
You are right about the meat origin. The only thing people really care about is if it local or foreign. The local laws are stricter than what the EU allows. Also how animals are kept.
It'd be great to read the arguments against making them public. There's good reasons why we should make them public available here: http://www.nytimes.com/2010/02/14/business/yourtaxes/14discl...

Secrecy is good in many places, but I can't think of why it is good for tax returns, asides from perhaps allowing criminals to more easily target those with high incomes?
It's almost like if you shit on developers for a decade people don't wanna bother with your new platform.
They know how to send me screenshots taken with their smartphones.