skysight-inc/HackerNews huggingface dataset:
Show HN: Recommendo – New Word of Mouth Tool vs. Ad Algorithms
See, I believe that government agencies actually do this
(best 9/11 conspiracy theory: some of the ridiculous "controlled demolition" claims were planted or encouraged to divert the instinctive conspiracy theorists from asking more damaging questions about response times)

But on Reddit? I don't think government agencies are needed to persuade Redditors to say and upvote things that don't look good in the media, or that the Reddit hivemind represents a perceived threat on a par with the antiwar, socialist or even civil rights movements in the 60s
Raft is 'simpler' than Paxos because it's not only a consensus protocol, it include log management etc. On the other hand, Raft could be (with a stretch) considered one of the protocols in the Paxos family, whilst other family members have their specific strengths (and complexities), e.g. being more efficient in WAN networks.

If you're interested in Raft, take a look at Kontiki (https://github.com/NicolasT/kontiki). Could use some maintenance though...
Speaking about my experience only: I do not refactor that often. See no point in it, Lisp is not Java after all. My code is usually well localised, with only languages being passed in between modules (instead of APIs). And modules are small.
I feel the article does Pieter Wuille a disservice by mentioning the Blockstream/sidechains conflict of interest without mentioning the fact that he is actually in favour of raising the block size limit (albeit gradually, over time) and has authored a proposal to do so: https://gist.github.com/sipa/c65665fc360ca7a176a6

What's ironic about this whole affair is that four of the five core developers support raising the blocksize limit (Gregory Maxwell is the sole dissenter, preferring to wait until a transaction backlog develops before taking action) but they diverge on exactly how and how quickly to raise it.
Beta Page- Launch your beta start up with beta page
So can liking an overtly political facebook post.

(Ineffectual potentially but still political.)
For something a bit more concrete. Take a look at what IARPA is funding and has funded in the past.

http://www.iarpa.gov/index.php/research-programs

This may not go far in answering your questions regarding government funded sock puppets, but it gives an idea of what they're interested in. Basically they're interested in damn near everything, and they're willing to spend large sums of money investigating what works.
This really is the takeaway. Bitcoiners like to point to the remittance industry or the wider money transfer industry and say how a bitcoin future would be so much better, but they're slowly learning the hard way a lot of problems actually need solving, and the cost with bitcoin is just as high as non-bitcoin.

"Solutions" start to appear which look remarkably similar to the existing industries they were trying to disrupt. For example "off chain" transactions which seem w.r.t bitcoin remarkably similar to fiat banking with respect to gold.
This is a simple example that does seem more readable (though it also would be if you explicitly added the value=value), but I think the concerns people have are about more complex examples, and the fact that readability is also impacted if allowing arbitrary code within strings themselves.

If you don't like using the empty {} (which seems fair enough), you can already use a couple of slightly more verbose but more explicit options:

"{value} of very long text here...".format(**locals)

or (more verbose with many keys)

"{value} of very long text here...".format(value=value)

I tend to prefer the latter even with multiple keys, but also think the former is better as it makes it explicit that the string is populated with the locals rather than implicitly doing it to all strings.
imakesnowflakes made a good point below.

Also compare the readability of this:

"very long text {value} another long text".\
format(value=value)

vs.

f"very long text {value} another long text"

^ now you have to go and visually search through the whole string to see what is being used in there
You can simply uncheck "Don’t load tabs until selected" in the General section of Preferences.
How to Become a JavaScript Badass
- Make a change that fixes a bug

- Before committing, clean things up by removing a debugging statement and some whitespace

- Bug reappears

- Undo the cleanup

- Bug remains

It's amazing how often this happens. It usually takes a good half hour to find what's actually wrong. A good indication that you're close is that your development environment will mysteriously hang or your house wifi will go down. That's the universe putting in its one last shot at wasting a little more of your time before giving up and letting you win.
> I am against it, because it allows arbitrary Python expressions inside format strings.

As well it should. Programming language features should be orthogonal as much as possible.

> It's too complicated and lets user have two different ways of doing things (not Pythonic) - one to calculate expression inside string and the other to calculate it outside (which should IMHO be preferred).

You must hate expression nesting, then. Look at all these ways of doing the same thing:

x = a + b * (c - d)

e = c - d
x = a + b * e

f = b * (c - d)
x = a + f

e = c - d
f = b * e
x = a + f

Clearly, expressions should be restricted to no more than one binary operator. That reduces the number of different ways of computing the expression, and forces the programmer to give a name to each sub-step, which enhances readability, clarity, and debugging-friendliness.

I feel dirty just for having written that.
For that sum, I'll try to go Around the World in 28 Days :-) ... a bit like this guy[1].

Then write book or blogpost about it :-)

I'd take 2 to 3 days each city, then book a plain/train and move to the next... Take camera (new mobiles are good) and a diary (digital if you like). Eat specialties and drink the wines and juices each place makes. Talk to people a lot, write your experiences and think. Seize the moment when you find something awesome... Take pictures and videos afterwards :-)

[1] https://en.wikipedia.org/wiki/Phileas_Fogg
I am trying to use OKR in my projects. They help me to stay focused in what I need to do and see progresses every quarter.
I am using WeekDone for tracking them.

Moreover, using Todoist for keeping track of my todo's, Quip for my documents and Trello as my default board.

Agree that taking breaks from technology and staying offline is very helpful to keep me focused.
My preferred approach with the dynamically typed languages is to have statically typed big picture (i.e., static module dependencies) with dynamic typing confined to module scope.

Another important thing is to not expose APIs. APIs suck. Use eDSLs instead - they give much more flexibility to a code. You won't have to modify the caller code when you change anything in the implementation. It's an order of magnitude more powerful encapsulation than anything you'll find in the OOP.

And, this way your code discoverability will be nearly on par with fully static languages, without the need in fancy heavyweight tools.
What about a grey water system? neither your toilet nor your lawn needs human consumption grade water.
cheers man :)
The Upside of a Downturn in Silicon Valley
This. They are one of my most loved feature on Firefox.
We've got a similar situation going on in Slovenia. I don't know if we have more fresh water than Norway, or not, but there are towns that get 3meters of rainfall per year.

One such town has an area of 25km^2, that's 25,000,000 square meters. Which means that on an average year, 75,000,000 cubic meters of fresh drinkable water fall from the sky.

Comparing that to stats in the grandparent post: 14 times as much drinking water falls on a tiny town in a tiny European country, as the whole world needs for drinking.

That's crazy.
Yep, that's right. I work for a US company.

I'd agree with that about Australian companies not being open to remote. TBH, I don't even consider Australian companies anymore.

In my experience, salaries are lower and I feel that we're years behind, both in terms of the projects you work on and the people you work with.
It's not exactly true for the article to say the technique was "rarely seen outside of the online pornography industry" when it was popularised by Geocities at a time when they were in the top 5 web properties...
Importancia de MHP Omega Strong no desporto
Since Clojure runs on the JVM and has a good interoperability with Java, it's easier to write plugins to for developing in Clojure using IDEs written in Java (mainly) for Java, like Eclipse or IntelliJ.
Work in bootstrapping energy consumption exists in academia; for example Pathak et al[0]. The changes in 10.10.4 could be an implementation of something along the same lines, by fitting a model to the measured power consumption.

As comex notes in the comments on the article, there appears to be a table of weights for various features, presumably obtained by regression.

[0]: http://research.microsoft.com/en-us/people/mzh/eurosys-2012....
> I don't think one can compare the difficulty of learning IntelliJ IDEA with the difficulty of learning Emacs.

Of course you can. Granted, I don't use IntelliJ, but I used PyCharm, Komodo and Visual Studio, among others. Emacs is easier to learn: despite decades of cruft it's more consistent and follows the rule of least astonishment closer than PyCharm. The problem is that PyCharm and other IDEs build on conventions already familiar to most users (locking themselves to these conventions, which limits their usability for powerusers, but that's another matter), while Emacs doesn't. That's because Emacs predates these conventions. Still, there are many efforts which make Emacs much more familiar to "normal people".

As LightTable failed (and I'm not sure what's happening with Atom) Emacs is once again the most modern text and code editor.

> When starting out with Emacs, you even need to learn how to quit it.

I think you're thinking about VIM, and even there (with gVIM) it's not true. Do you seriously believe what you wrote or is it just flamebait?
That sounds easy, actually. Take a cloud provider like AWS. They divide their regions into "availability zones", which are supposedly in different buildings, don't share the same power, internet connectivity, etc. Say you have 3 AZs, and you put a node in each. A simple network connectivity issue between AZ 1 and 2 (but not between 1 and 3 or 2 and 3) would cause this scenario to happen, assuming I'm understanding this correctly.
Scala got no macros. Which makes it infinitely less powerful than any language with macros, including even something like Clojure.
This post focuses on Clojure as a very pragmatic Lisp, but that, while great in itself, is not what makes Clojure so interesting. Clojure has proposed an interesting solution to the shared mutable state problem without trying to reduce it as much as possible like Erlang and without being pure functional -- and thus changing the whole concept of state and effects -- like Haskell (Clojure is imperative-functional). Clojure's solution is that all shared mutable state be transactional (or atomic, which is a special case of transactional). AFAIK, this is the first language to do that (again, without going down the pure-functional path). An imperative language that doesn't restrict global mutable state, but makes it transactional is a very interesting case study.
Strategies+to+make+Responsive+web+designs+multi-Lingual+|+Varinformatics
Wouldn't it be an absolutely huge cost to lay down another set of pipes for non-human drinkable water? Especially in cities.
Glad to hear it, Apple's been going stupid crazy with this patenting lately.
Wow, great to hear and a great opportunity for improvement. If a sensible solution comes to light then hopefully it will have a domino effect on other states. Bonus points for wanting transparency and a system that's open source. Let's just see what actually happens though.
> end-to-end is NOT production ready

This sounds wrong, given that "end-to-end encryption" as a concept is very much production ready.
How do you know where the string ends? If your editor has syntax coloring and you look for the end of the string-color block, then the expressions inside the string will also have a different color and will pop right out. If you don't use syntax coloring you have to scan for " or ', and you'll learn to scan for { too.
Ideally you'd do an accounting update on task switch, along with all the other housekeeping. Then you don't need to do any polling. There's a "process accounting" infrastructure which perhaps could be adapted for this.
Pretty sure that's done already. I never needed this but one or more of these: http://ergoemacs.org/misc/list_of_emacs_starter_kits.html should be pretty much exactly this: Emacs with C-c, C-v and other "modern" features.

And you're right, these releases don't change much. Programmer's tools tend to be chosen based on fashion and fads, not on their merit.
Dora the Explorer Full Episodes in English
It's worth mentioning Mailvelope ( https://www.mailvelope.com/ )

- Free
- Supported in FF / Chrome
- Supports Gmail, Yahoo, Outlook and GMX

I've been using it extensively for about 12 months now. It's solid, unobtrustive, and just .. works.

Decryption of attachments would be nice, but it's definitely not a deal breaker.
You can also do time-travelling control structures: https://hackage.haskell.org/package/tardis-0.3.0.0/docs/Cont...
A video of Hawking's presentation is available at https://www.kth.se/en/aktuellt/nyheter/hawking-offers-new-so...
I'm really happy to see this. I know it's petty, but this was the biggest reason I decided to focus on learning the ins and outs of Ruby instead of Python.
Why is something like disability insurance checks even transferable?
italian is definitely lacking. it doesn't recognize STOCATSO nor ESTIGRANQATSI nor euphemisms such as patata, passera..
360 degree interactive video of London's Crossrail Tunnel
No, but it's a "degree", and she has that university covered too, degree-wise, which is what he means.
> "Intuit has had a tough run in recent weeks. Following its earnings report last week, the company’s stock fell sharply."

With the type of week the US and the rest of the world has had in the stock market I think a drop in stock prices should be taken with a grain of salt.
Forget Advertising – Use Recommendo, the iOS App for Personal Recommendations from your Friends
Using the blog post I tried the same for PHP extensions:

https://gist.github.com/beberlei/3c89c86d3a9f96e4c9f2

It compiles and works for php -m and php --info, but calling the function segfaults sadly. Wondering if it is just a small fix necessary to get going.
Ok - that's a fair point.

Given that palestinians don't really have a functioning democracy, it's hard to say what the actual people 'can do'.

However - we can look at opinion polls for ideas. Right now majority of palestinians support waging a war with Israel:

"“A majority of 74 percent favors Hamas way of resisting occupation. … Furthermore, 56 percent favor the transfer of Hamas’ armed approach to the West Bank and 40 percent oppose that,” the center noted."

http://www.theblaze.com/stories/2015/03/25/new-poll-shows-wh...

As long as that is the case, Israel will respond in kind. Look at what happened after Israel unilaterally withdrew from Gaza.

So when we talk about 'living under opression' we have to be mindful of the alternative which they continue to refuse.

For example here are details of the latest offer that was refused: http://www.haaretz.com/news/diplomacy-defense/1.645676

I fully accept that it's not an ideal solution for majority of Palestinians who would prefer Israel to disappear altogether.

PS I agree that this has nothing to do with OP or HN - but any discussion of Jews (or Holocaust) turns to 'but what about the Palestinians'. C'est la vie.
One thing that is currently missing from E2E (as far as I can tell having played with it a little in the last month) is any kind of web of trust. When I import a key, I can't tell if it has been signed by me or someone I trust. Is this on the radar for the UI after the Keyring reimplementation is finished?

At the moment, what we've suggested at our work is that people manage keys in GPG and then only export keys into E2E if they trust them. But it would be nice be able to do those kinds of things in E2E (or at least be able to tell if a key was signed by me).

BTW, thanks for working on this!
What Happens to OO When Processors Are Free?
Show HN: Write Python modules in Go with 1.5 new buildmode
Signing of encrypted messages is not supported at the moment. Unfortunately that's a deal breaker for me :-( But it does look very nice.
7 Social Media and Email Marketing Tips Every Small Business Must Heed
Surely we can also measure actual heat and actual electricity usage? If not per program obviously, then as a reference or benchmark or calibration.
Consider a 3 location network with routes between each pair of locations. Then the link between two of them fails without mechanisms in place to automatically re-route.

That's not such an uncommon situation. E.g. quite a few large to mid-sized companies with servers in three locations does not have the in-house skillset to either get BGP set up and/or set up VPNs between the locations and a means to update routes automatically on outages. Some larger shops will have "metro LAN" type setups with separate ports for dedicated connections between racks in different data centres, and won't even have capacity enough on their public ports to handle a failover of traffic normally going on the private connection between two of the data centres over the public port - the expectation is often that the data centre operator will handle redundancy... (until they don't...)

It's not a terribly hard thing to fix, but it's also something it seems few people think about until they reach much larger size.
Previous discussion here: https://news.ycombinator.com/item?id=9690846.
> In general, I'd advise against them

Why? Macros are the single most important productivity feature in Lisps.

Macros allow to implement eDSLs trivially, in the most robust way possible. Yes, you need to follow a certain discipline, but once you get it, you won't ever want to touch a language without macros.
I think the rule of thumb is that carburetor engines have simplified idle mechanism.

So realistically anything younger than 30 years is more fuel efficient. Also safer.
I like Quip and I wish they had a Presentation tool also. Which tool do you use for Presentations?
Interesting. Good to see they seek information about systems that "are based on voters marking paper ballots".

Contrary to popular belief, in state or nation-wide elections paper is a safer way to vote than electronics because the former is simpler and thus easier to verify by the general public.

Most people don't realize how hard it is to beat the transparency and simplicity of a physical ballot box. It can be inspected by the public at the start of the day so anyone interested can verify it's empty and people can keep an eye on it during the day and see if anyone tampers with it. Then at the end of the day it's important the votes are manually tallied right after the ballot box is opened. This makes the process transparent to most people in society and assures the highest level of scrutiny and confidence that the vote and vote count are legit.

It's hard to replace this with anything more complex i.e. electronics.

For a recent discussion see:

https://news.ycombinator.com/item?id=10076919
Scott: detailed failure reports and hassle free assertions for Java tests
Implying that there are more intelligent people on HN than somewhere else.
As a Clojure/Lisp beginner, I can't say I agree. I don't know any language that works like your example, except maybe shell script with its pipes. Without variables, that expression just seems too "magical". Nested function calls, on the other hand, are common everywhere.
Join our engineering team and build a product used by millions (The Muse, YC W12)
Why didn't you read the post you're replying to? Look, GP wrote this:

> I know what a MUD is

so providing an explanation what MUDs are means that you either don't believe him (why?) or didn't read his post past the first sentence (why?).
Non-potable is the industry term for "non-human drinkable".

And yes, the cost of that would be huge, not just in cities. In the UK the decision the victorians made to not have separate sewage and rain water drainage systems still has a knock-on today and costs a vast amount in water treatment, but the cost of separating rain runoff and sewage is still seen as prohibitive.

edit:

However, on a small local-scale grey water systems can do a lot of good, both for re-use but also rain water capture and re-use would help with flood prevention. If houses captured rainwater for use for lawn watering and other appropriate uses, this is something that could be done without great expense.
Salesforce Lightning CSS Framework
Does "new com webex" work for you in Chrome? It won't offer anything but a Google search for me. On Firefox it'll either offer to switch tab to here if it's still open or it'll find this in history.

I agree Chrome's site search thing is awesome, but how did you teach it to use the new HN one?

EDIT: Chrome settings -> manage search engines. Very impressed with the list of those it's stored automatically. Point stands that it doesn't seem to relearn though when one changes.
One example of an early honorary degree (the one the authors of said article probably found with a quick search in Wikipedia) doesn't capture the practice through the centuries, nor how it was established and used in other countries.

There's a difference between "first" and "representative of how a thing caught-on and came to be established and practiced" -- the first uses might not be representative of neither the reason for widespread adoption nor current use.

There are countries whose universities need (and do) no marketing at all otherwise, because they are public and state sponsored, but still give honorary degrees to honour important contributors from outside the academic field.
That really is horrible design. I completely missed that. I really wish sites would stop spreading articles over multiple pages.
>How do you know where the string ends?

I usually just go to the end of the line. or if that is not possible, I think I usually look at the next closest thing that obviously is not a string and scan backwards.

I mean, usually I didn't have to do anything consciously (or do a scan) to spot the end of a string.
This post is fascinating, in particular his prediction that Trump will win the general election.
A heads up display for git
How does exactly Safari "struggle" with HTML5?
This is a straw man. If you want to evaluate expressions inside a long string, you can as easily write:

"The sum of a and b is " + (a+b) + "!"

This is completely analogous to your examples. The only disadvantage of this method is the extra quotes, but that's just syntax. You could think that having the literal string split is a disadvantage, but it really isn't - since in the proposal the string has to be literal anyway, so in either case it cannot be a variable.

In general, in what I would consider good language design (syntactic-wise), you either interpret expressions by default and then quote string literals (like most languages do), or you interpret literals by default and then quote expressions (this is the method regular expressions language, or templating languages, use). But you shouldn't do both, it's just a can of worms, especially for code highlighting tools (although in a language with Lisp-like design philosophy - which Python is not - why not, you can do it today with reader macros and whatnot).