skysight-inc/HackerNews huggingface dataset:
How is gold superior to diamonds really? Both are stores of value, but their value based only on others' willingness to trade for them. No real intrinsic value. Granted a fiat dollar is less reliable as there is truly a limited supply of the metals, but that's true of diamonds as well.

I would think Gold jewelery is superior to a gold bar - it has decorative utility a gold bar doesn't have - but look at how gold jewelery is valued - at the current gold price and no more.
"Many K-12 school efforts to reduce bullying have proven not very effective, leading educators to wonder what bullying prevention approach works best."

Could that be because the efforts have focused on having students, mostly those not subject to bullying, stop the bullying? My view is that only teachers and administrators can stop it, and further that teachers and administrators have informal policies that actually foster and increase bullying. Teachers and administrators know who the bullies are, they just don't do anything at all to stop them, probably because the bullies and the teachers and admins are all part of the same power structure.
Intro to Product Management (Free 10 Day Email Course)
I'd use a gateway class and intention-revealing method names, even if all that method was doing was casting a value. I'd call it ".edge_case_fix", (but described better than "edge case") and do the same for every weirdness in the external system that requires workarounds.
Wikimedia Foundation takes aim at Google with $3.5m search project
So the current designs don't work? Sounds more like a step back not a "breakthrough"
A common response here is to bash Adobe for its lax approach to software quality. I think it would be better for us to look in the mirror and ask ourselves what we can do to improve the robustness of our own software. A few ideas:

- For production code, categorically reject any language that will happily treat an unset variable as an empty string. Or, if possible, configure the language implementation to run in a stricter mode that fails fast instead. Question: Is that possible with shell or PHP?

- Favor manipulation of data structures over concatenation of strings. See Glyph Lefkowitz's blog post "Data In, Garbage Out" [1]. When manipulation of strings is practically unavoidable, as with filesystem paths, use a well-tested library such as Python's os.path module or .NET's System.IO.Path class.

- Embrace the principle of least authority at every level. For example, when developing for the Mac, work within the Mac app sandbox as much as possible.

Any other ideas on how to prevent this kind of catastrophic bug?

[1]: https://glyph.twistedmatrix.com/2008/06/data-in-garbage-out....
The conversations that led to the creation of this questionnaire were absolutely fascinating. I look forward to being able to share the results with everyone.
Your wife is lucky to have you. You can't live in a diamond ring. Surely a man who makes sound financial decisions should be far more attractive than one who falls for silly marketing tricks?
Could you expand on why you would say having support for traditional OO is a great weakness?
For the Steam bug, it could have been fixed by running the shell script with options that prevent use of undefined variables.

It really isn't hard to have a company policy about nounset, errexit, and, in the extreme, noclobber.
Encoding an invariant in the type system is definitely a strong benefit of Haskell and other similar languages. You can do more than simple identity/immutability with types.

I find the flexibility of the type system to share some similar properties with C++'s more advanced features. Used sparingly they can be quite powerful but come with a complexity that few mortals will be able to comprehend. In a distributed system, for example, you can encode an invariant in the type system that will constrain the execution to only valid states. This is immensely powerful. However you can also model arbitrarily complex computations into the type system which will make sense to no one but the author who wrote it.

One thing I do miss in Python that a type system gives you is the compiler's ability to do exhaustive pattern matching. Forcing you to deal with every case explicitly is a huge advantage. In fact, I'm currently working on a formal specification of eventlet's Semaphore class as an exercise (I'm in the process of learning) as we've found just such a bug in a large Python code base where a particular exception is not caught and locks up the whole system. An exhaustive pattern search would have forced the authors to deal with that exception and this bug wouldn't have surfaced.
What I would like to know, is if Clinton is hoping that the FBI investigation into her will not result in an indictment before she gets elected(lets just assume she is enough of a narcissist to believe her election is fait accompli), so she can pardon herself of the crimes she might later be formally charged with? Because technically there would be nothing stopping her from trying to do it.

"The right to pardon is an authority given to the President of the United States (POTUS) by the US Constitution in Article II, Section 2. This section specifically reads that the POTUS “shall have power to grant reprieves and pardons for offenses against the United States, except in cases of impeachment.” Essentially, the only way presidential pardon is restricted by the constitution is under the circumstance of the sitting president being impeached. Self-pardon is not restricted by law, and under interpretation by the Supreme Court, a president could have the right to pardon himself not only for crimes he has committed, but also for crimes with which he has not yet been charged"

http://www.wisegeek.com/does-the-us-president-have-the-right...

And based on the mess around David Petraeus(retired CIA director) and his pleading guilty to mishandling of classified material some 3 or 4 years after the fact; the election could very well be over before any formal charges are made.

Personally I feel like all of the US presidential elections come down to a choice which one possibility I dislike the least. Right now there is a lot of bad choices from my point of view; Bernie is a socialist, Clinton is under FBI investigation and shouldn't be running until that cleared up, Trump just wants to add to his "legacy" and probable make a bundle of money, Cruz is as far right as Bernie is to the left and extremist of any kind are a bad thing.
Vim's built-in encryption is pretty useful, although the default cipher is weak (you can override this in the vimrc).
+1 for "Expert Sexchange" :D
[PSF-Community][gravitational-waves]A big thanks to the contributors in Python
> Having "stubborn, unwavering commitment" to ones ideals does not mean that one is incapable of compromise.

Good point. However, I haven't used Sanders as a whole for the model, I only used the quoted property — and I did implicitly assume that these two properties are closely correlated.

So, wouldn't you agree, that by default, a person A who with "stubborn, unwavering commitment can be expected to have problems reaching compromises? And that if he wishes for people to think that he's able to reach a compromise and be a peacemaker, he has to do more convincing than a person without said quality? Once again, I'm not talking about any particular politicians here.
If renters can report a place as "gone" and once a few of those reports are in, the place gets delisted (or, at least, visibly marked as "reported gone" and removed from searches) will encourage agents to keep things up-to-date.
In terms of Modeling software, it's really expensive. So, it can help validate a design, but it's not the kind of thing you want running after every incremental change.
We put a variation of the script to music also. Seriously. It's on iTunes and Bandcamp:

https://itunes.apple.com/us/album/snippets-programming-episo...

https://fowlerandfeathers.bandcamp.com/releases
10 Advanced WebDriver Tips and Tricks Part 1
0 results found.
The Piracy Box Sellers and YouTube Promoters Are Killing Kodi
> If it's in the kernel doesn't it have to be GPLv2?

That's a tricky question. As far I know Red Hat provides all the sources for their free software (that's the reason why CentOS can exist), but the binary things are a tricky question.

I think you could share your recipe (the source code), but retain the sauce (the configuration and compiler that produces the binary and the binary itself) and still comply GPL, it's a grey area.

Why CentOS wont share the Red Hat binaries? Well you won't want to bite the hand that feed you.
Loops. A recursive algorithm can be transformed into an iterative looping algorithm that uses a fixed stack of memory.

There's probably no change in the algorithms. They just use non-recursive versions.
This reminds me of a trail of failing integrations. The lesson I derive is that it is much easier for a highly disciplined (and uncreative) organization like Microsoft to incorporate a technology/acquisition into their team, than it is for a highly creative undisciplined organization to incorporate the discipline and technology of its parent.

Case Study Example: AQuantive and HP Autonomy
I'm from India and let me tell you that gold jewellery is primarily viewed as a store of value and not as a romantic gesture.

Buying gold is the main way that Indians save.
You sold me. I've been wanting exactly this type of resource, not yet another book of recipes. I can follow a recipe, but I want to experiment more than "taste I think this needs more seasoned salt/butter." I'll start watching Good Eats now.
>> we could end up losing a number of the 'quality' press and the institutional memory of journalistic practice that comes with the territory, which, depending upon your point of view.

Like most things these days, finding good journalism tends to be exceedingly rare. In a world of over saturation of everything (books, movies, music, news), you really have to dig to find something that is objective, politically unbiased, and fair.

Even 5 years ago, it was much easier to find dependable news sources and solid, objective reporting. Nowadays, I find I'm searching a lot longer to find something which isn't outwardly slanted in one political direction or the other.
I think that recursion can always be converted to iterative equivalents.
New 8-bit album turns your NES into a joyous jukebox
Why American Students Are Flocking to Germany – And Staying
It means there's a diversity of Scala styles; one person's Scala won't necessarily look like someone else's. More concretely it causes a lot of problems for type inference (particularly when ADTs in Scala are modeled as traits with implementing classes, so e.g. the type of Some(x) ends up as Some rather than Option). Other ML family languages that don't have traditional OO inheritance generally have perfect type inference (at least in the absence of higher kinds) via Hindley-Milner.
This should help: http://stackoverflow.com/questions/3332454/oop-python-orient...
Discovering your believed correct model is wrong is a scientific breakthrough, as is discovering how to fix it.
Yet another tragedy of regulation. Yes, I know unions want to keep competition for their services low, in the theory that they can extract higher wages. But the reality is, the people who want to come to america to work for companies are almost always going to have something that the existing people in america don't- either a willingness to do jobs that american's don't like or think are beneath them or skills that americans don't have in enough quantity.

Limiting immigration is limiting economic growth. The time when the country grew the fastest and most dramatically was also a time when shiploads of people were just showing up.

Every time you see someone saying "we need regulation for capitalism to work" these are their victims. Democrats and Republicans both have a history of denying people human rights, and the right to employ whomever I want-- without regard to where they were born-- in my business is a right that they are denying. It also denies the employee the right to work for whomever would like to hire them.

Government doesn't know best. This is why socialism has never worked.

So, if you're lamenting the way these people have been treated, look to your own voting history.
Steve left the door open again, didn't he?

Damnit, Steve. How many times do we have to tell you?
How Chrome gets from vsync to pixels
Thanks for the post. I share your frustration with the way developers discuss these issues.
Video games are designed for grinding or following a fixed story, and your creativity is completely limited by the possibilities programmed for you. The exceptions to this (minecrafters designing Turing machines, hacking pokemon) are an insignificant fraction that are entirely discovered and engineered by those who understand mathematics and computer science and apply it to the video game.

Why do you think the kinds of problem solving in video games is "better generalized" than math?
and in less use of the <marquee> tag.
All to protect mafiosos who pretend to be organizing "unions" for the "workers" benefit (which is illogical if you think about it due to the Principle-Agent problem, and makes no sense economically- the bosses will cut deals best for the bosses, not for the union membership.)

Keeping talented people down is just a side effect.
FB search is terrible because there is no incentive for an engineering team to work on it, and in fact maybe quietly discouraged from doing so. FB make money on from the news feed, so any feature that distract users from scrolling down their feed will come up losing on an A/B test where ultimate metric is ad views and clicks.
I didn't know vim had any built-in encryption. I've been using this for a while: https://gist.github.com/ipartola/ea5a88675cc548425ecb

Basically, I just do something like `vim foo.txt.gpg` and it transparently encrypts/decrypts the contents.
Great news! Especially considering this may drive other distros to do the same, and on Windows, which would be perfect for non tech savy users who want to start using Linux.

It's better than the dropped Ubuntu's approach of installing it side-by-side with Windows because they don't have to worry about not screwing with Windows and a lot of people want to install Linux on their external hard drives and pendrives.
>number of VPCs (I see people do horrible things to work around this all the time! Just ask!)

I'm intrigued.
Can a diamond be sold for what one paid for it? Gold has no concept of retail price as it's a commodity.
I would be curious to know the process for even modeling this sort of thing. How do they know they got it right? How accurately does this model existing experiments? Im also wondering if they model to a result vs modeling to what should actually be happening. Would anyone learned on this subject please chime in? I've always wondered how modeling these types of complex systems works.
Depends on who you follow. Tumblr is one thing more than anything else: a collection of mostly isolated microcosms.
Indian Company to Launch $7 Smartphone on Wednesday
Any chance of changing links to not open new tabs? This makes use of the site difficult on mobile by constantly needing to close windows.
Can you generate an RSS feed for top X per Y time period? Would be cool if I could import that into feedly.
Very cool site!

Some quick feedback: changing pages (eg: navigating from 'new' to 'inspiration', 'sources', etc...) while in night mode switches the user back to day mode, which can be quite jarring.
"We were distributing Tumblr sponsored posts across Yahoo content in their native stream, but very few advertisers actually wanted it because it’s a different audience. And the content on Tumblr was very different from the content on Yahoo,"

Isn't this something fundamental to having one sales team? Knowing which ads should be run on each platform? Not sure you could miss something so huge and still expect the same or better results. This is a huge "WTF" moment for both properties.
Not clickbait title:

"Yahoo is rolling back the decision to combine Tumblr’s sales team with Yahoo’s broader sales organization"
A beautiful iOS app with workflows for designers
I hear BofA are back pedalling on Quartz. Kirat has left, and there's some new senior IT mgmt who don't want to put all their eggs in one basket. Just gossip, would be interested in any confirmation/refutation...
Adobe is handling this terribly. From the forum post [0], a number of people are reporting losing data, with one poster losing "all of my working files for my clients" and another saying "197 GB of working files Gooooone!". Adobe simply says "You can go ahead and update the desktop application. The issue has been rectified."

Surely there are others who didn't even know they lost data; when asked about how they'll notify those people, Adobe responds "We have advised customers to take local backup of their files just to be on a safe-side."

Some talk coming from a company that deleted user files with wanton disregard. I'm aware that legal culpability is a complicated topic, but Adobe is doing themselves no favors here.

[0] https://forums.adobe.com/thread/2089459?start=0&tstart=0
> the fall in oil prices is more about increased supply than lower demand

Even so, it's worrying. It means that oil companies have (collectively) predicted a much higher future demand growth than realized. This suggests that the world's economies aren't growing as quickly as they used to (many fingers are pointed at China), and could spell troubles for other industries who have also invested heavily, anticipating future growth that won't come (so soon).
Is this something that units the US, Japan and China, and distinguishes them from Europe? I have my doubts.

Also, I don't understand the supposed logic behind a change in marriage law and a rising demand for diamonds.
I never see politics or porn in my timeline.
Please note they say "debounce" your scroll handlers but they demonstrate a requestAnimationFrame based solution.

Do not confuse this with _.debounce().

In the context lodash/underscore I believe the correct approach is _.throttle the 'scroll', and _.debounce the 'resize' handlers.
> I don't see how Ruby saves you from optimising (to my limited knowledge, it's not exactly a fast language)

That's precisely why you don't optimize. If you find you need fast code, you use a different language. Ruby is the language you use when maintainability and extendability take priority over speed. It's excellent for web development, where any speed improvements you make will ultimately be dwarfed by network latency.

> Example for obvious: Int add(Int x, Int y) in a typed language. Example for not obvious: add(x, y) in an untyped (or "dynamically typed") language (Does it auto-coerce? How? Can it add complex numbers? In my particular representation? ...).

That's a good observation, and it's made me think about how I deal with this in Ruby. First, generally you can tell by looking at a method's code what it's expecting you to pass to it.

Second, you don't generally pass around complex types to library functions, you use basic Ruby value objects like strings, symbols, hashes, and arrays. A gem will often define its own classes, which you might pass objects of around, (money, phone numbers) these will often be the primary focus of the gem, and how to use these objects will be written right there in the documentation. These classes will typically have "parse" functions that will take random input and turn it into a more useful object.

In Ruby, you generally only pass around complex objects in your own code, using JSON or some other format to interact with external systems
Everyone can be difficult - I rented a room in London where the guy below us had a habit of playing shooter games on his home cinema system around 10-11 pm. During those hours, it felt like living in the warzone (constant loud explosions, shooting etc.)
I really cannot grasp what you're talking about. I power up my Ubuntu PC at work (I don't know about your Mac, but mine takes like 3-5 seconds to boot, it is 3 years-old and costed less than 1000$) and start working. Right now I have 2 browsers open with ~10 tabs, 3 IntelliJ IDEA instances running, Thunderbird, Skype, 2-3 console instances, at least one VMWare machine running some Windows version, a PostgreSQL GUI client, a couple of SQLite GUI clients, distributed in 4 virtual desktops and using 2 monitors. Everything is running fine and smoothly. And last but not least, I can fine tune everything and anything to my liking. I don't like menus on the top taskbar? Gone. I don't like the desktop manager? Gone. I don't have to abide to whatever someone thought was better for me, because everyone has unique tastes and preferences. But I'm probably missing your point.
Even more generally, I think there's something to be said about the difference between two different mentalities, presented here in caricature form:

1. The world is tainted. Everyone is doing it wrong. I'm thinking about a great way to solve things. You people should stop doing the bad thing. Come on, everyone. Let's do things right. Why is everything so bad? Why is life unfair? Why is our legacy so messy and complex? Let's start over. Let's set things straight. Justice, peace, correctness, truth, beauty. If we just think very hard, and come to a consensus, then we can implement something much, much better.

2. The world is exactly the way it is. I'm not exactly sure why. Historians are working on it. The institutions that we exist within distribute power in a certain way. Matter is heavy and resistant to change. I don't really know how to "improve" the world, and if I tried, I may just make it worse. Why are you talking about abstract nonsense like "justice" and "truth"? This is just how it is. This is what we have to work with. We are lucky if we can make a few incremental improvements.

As in so many cases with two extremes that end up fighting unproductively, the vast middle ground is where the interesting stuff happens.

David Chapman... incidentally a contributor to the UNIX-HATERS handbook, decades ago... has a terminology with which I think my persona #1 would be called an eternalist and persona #2 a nihilist, roughly speaking.

And he wants to sketch out a persona #3, who operates under what he calls the fluid mode. That's someone who understands the viewpoints of both eternalism and nihilism, recognizes them both as incomplete, and then valiantly works to create things and change the world in a kind of liberated way.

So, we're not going to resolve the question in favor of either #1 or #2. Those personas are like the two daemons on the shoulders of anyone who does programming... or politics... or law... or urban planning... or economics...

The world would be very different if Lisp and Smalltalk hadn't existed, so it's not like cutting edge cool stuff is worthless just because it doesn't get adopted. I always like to see people encouraged to learn about these systems even if their "ecosystems" aren't "mature" for "web scale" or whatever. It's almost a matter of respect.
There are a lot of interrelated factors. You can take any commodity and produce infinite number of similar articles "Where commodity X goes market goes".
Show HN: My side Android project – İstanbul Coffee Guide
"profitable, smaller organisation"

AFAIK, Tumblr was never close to profitable.
5 key factors of website usability
Keeping Control of the Front-end
There are also a number of companies (some in the S&P 500, more of them not), that get all or most of their revenue by providing services to the "obviously" oil & gas companies. You've got large steel and railroad companies, then you've got small contractors providing welders/machinists/millwrights/etc.
No it doesn't, it's political.
If the first, feedly or any RSS reader works and supports more sites.