skysight-inc/HackerNews huggingface dataset:
Why couldn't Python do something like:

>>> _tmp = getitem(t, 0)
>>> setitem(t, 0, _tmp)
>>> try:
>>> _tmp2 = _tmp.__iadd__([2])
>>> except AttributeError:
>>> _tmp2 = _tmp.__add__([2])
>>> setitem(t, 0, _tmp2)

Then if the first setitem raises, the rest of the code will be skipped. Obviously this isn't perfect:

1. If setitem has strange side-effects, this will cause them to happen twice.
2. If setitem raises based on the value (rather than the key), this won't notice that.

But otherwise, it seems like a pretty straightforward improvement, no?
One more reason financial companies like Chase are ripe for attack
Wow. So you are saying that because I chose not to use Chrome that all software suffers? I didn't realize that there was only one good choice, or that Firefox was "slow and bloated," or that my choice of which software to use somehow contributes to the quality of code that software engineers outside of Google write.

MRU tabs is essential to my usage flow. Sorry if that hurts your feelings. I frequently have many tabs open, and I need to be able to quickly switch back and forth between two or three tabs. People have been clamoring for MRU tabs since Chrome came out, and Google and the Chromium developers simply ignore them. https://code.google.com/p/chromium/issues/detail?id=161960
Software in the Public Interest.

Legal org that holds e.g. Debian's trademarks and monies.
That is their greatest achievement, to gain equivalency. To a good degree this has worked. There are lots of people who believe major European and NorthAmerican media are no better than Russian media.

It has worked for their domestic audience, to great effect, and to a good degree internationally.

Just look at Putin's approval ratings.
I feel like you completely missed the point of his comment. Probably purposefully.

To answer your question, just because something is "wrong" doesn't mean something can't be more "wrong". Just because I jaywalked yesteday doesn't mean I'm on the same level as a meth dealer, for example.

Life isn't black and white, it's shades of grey. Something can be much darker than another thing. And it's OK to point that out. As is the case here. The U.S media certainly isn't up to snuff, but the situation in Russia and other state-owned news agenicies are absolutely horrible by comparison. There may be poverty in the U.S but that doesn't mean it's on the same level as in a country like Ethiopia.

As much as the Russian defenders want to equate the two, they are NOT comparable.
"The Pegida participants were very willing to talk to him. They said that western media is all corrupt and unfree, and that Russia Today is a "welcome" and more honest alternative."

And how are any of the the above concerns baseless?

Media cartels, whether Western or otherwise, are organized in a hierarchy, wherein editors review and cull the content of their subordinate journalists. Such an arrangement results in a militaristic concentration of power which can be exploited to control discourse locally, regionally, nationally, or, globally.

Frankly---and this may ruffle some feathers here---rather than questioning the Putin régime’s influence on Russian media, the West should be collectively asking why Israel-partisan Jews have such disproportionate influence in Western media. If Germans who are concerned with the effects of mass migration are being targeted for satire by Western media, why isn't Israel receiving the same biting criticism for recently sterilizing and deporting its black population? Why can some peoples express their national concerns democratically without being painted as pariahs, while other peoples are mocked and ridiculed by an self-titled "impartial" media.

Many here spare themselves exposure to the hypocrisies of Western/global media by directing their free time toward coding. Personally, the parade of Jewish "experts" who harangued the West's airwaves over the necessary WMD war in Iraq long ago convinced me of the corrupt nature of Western, and possibly, every organized media.
You have great advice here. This is how I do it. Create todo.txt and put everything you need to do in there. Make sure it's reasonably comprehensive and then start crossing things off. A productivity book will tell you the same thing in 200+ pages. If you save the finished items, you may be amazed by what you have accomplished. I had an app for this but I found editing todo.txt is faster. Apps like Trello don't have plaintext export. So let's say you finish to-do work for a client, with a text file you can just cut-paste the completed work into Square, Paypal, spreadsheet, whatever the client prefers. I've tried dozens of applications, but none of them will do the work for you ;-) Todo.txt seems antiquated but I found it's easier to make many edits quickly. I indent everything, similar to writing software. This helps me to see the big picture. I have todo.txt on a remote server so all my devices have access to it (no need to "sync") also automated backups that I control.
Ask HN: Related to “I want to do everything but end up doing nothing” ...
I've been a successful consultant, though that's tailed off the last 5 years.

A lot of what's in the other thread [1] rings very true. I'm massively torn in all directions, learn for the sake of learning and never have any ideas with whatI want to do with what I learn.

HOWEVER... the big difference, and one I have struggled with for years, but more so recently is... "why bother?" to do anything. Money no longer motivates. I don't believe in technological progress, I want the world to be different and can't accept it as it is. I want people to be nice to each other, in a utopian way that thinks I can make them happy and doesn't allow for their emotions.. I can't say the thought of anything in the world excites me.

I'm overwhelmed by the volume of information, but even more so by the volume of opinions. Take even a simple long-running one, what to believe religiously. I can hear one side, then the other, then another... and each in turn (usually) makes sense. There's not enough info to say one is right, but which is right?? Because each believes their point is right, and yet if I held a different position all would criticise me. I can't resolve that dichotomy.

Am I burned out like this chap talks about? https://news.ycombinator.com/item?id=8976685

Or is it something deeper like Borderline Personality Disorder?

I turned 30 this year, and spending my days wishing I knew what to do with meaning wasn't what I expected to do.

1. https://news.ycombinator.com/item?id=9049208

[EDIT] So why was this marked as dead?
It was an interesting read for sure, and I appreciate it for what it is. Of course, this is HN, so we have to criticize ;)

Vowpal Wabbit is a great project that implements approximate, streaming versions of a lot of basic machine learning algorithms. And it has incredibly high throughput even when run as a single process. VW by itself has made me greatly skeptical of the "need" for systems like Spark.

Locality-sensitive hashing is a cool approximate kNN algorithm, along with others on the Wikipedia kNN page. kNN I think is especially suitable for approximate techniques because often the "nearest neighbors" are a little unstable and highly dependent on the distance metric anyway, so you lose little by moving to an approximate algorithm. When you approximate regression, OTOH, you complicate your ability to make statistically valid statements on the model.
Inside Putin's Information War
iOS+8.1.3+bypass+iCloud+activation+lock+with+doulCi+-+iOS+jailbreakiOS+jailbreak
IMO key advantage OCaml is easier to learn and much more pragmatic.
How to Host a Flask App on Openshift Free Tier
There is very little meaningful content on your site, which makes it hard to see how it is different from the spam sites.
Obama Acknowledges Snowden Revelations Undermined Tech’s Trust in Government
Extend the JAR file format to allow multiple versions of class files to coexist
Yes, in that case that's not your market. (Unless someone responsible for some of that budget hires you under those "local" conditions.)

But in general, as in any product or service, you have a market. Sometimes you may loose the lead, but it is important to say no to be true to yourself.

What I have found is that people and companies with which I get to work are clients of high quality themselves.
Are you really trying to equate CNN with a state-owned and operated news agency?

Those news agencies are explicitly biased. Their sole goal in news reporting isn't profit or appeasing shareholders, but pushing their narrative of world events. Pushing their countries' ideology out onto the world. That's their only reason for existing. They don't care about profit or integrity in the slightest. If you think that's the same as a for-profit company, you're incredibly deluded.

The lesser of two evils is a real thing, life isn't black or white. Just because I jaywalked yesterday and committed a crime doesn't mean I'm the same as a meth dealer. The equivalence is beyond naive.
If I had to guess, they are probably going to introduce a similar service to their Google Voice service soon (e.g. a 'spam' filter that auto directs/categorizes > voice mail).

Too many ppl I know get spammed by recruiters because they once made a mistake of putting their real contact phone number on a resume for a major jobs board.
Your sitemap contains about 1 million URLs. When I look at http://whocalled.us/lookup/2104495665 I see hardly information other than the phone number itself. And Google Adsense advertising. Most of the pages look exactly the same. The ones linked on the homepage contain profanity. The category pages, e.g. http://whocalled.us/lookup/sanantonio are just lists of numbers.

From the outside it looks like a typical content database where every entry is a page with advertising. I can imagine those are no longer in the new Google algorithm's favor. What makes you think your website deserves to be listed on

The usual process to get Google employees to reconsider indexing the website again is called a reconsideration request https://support.google.com/webmasters/answer/35843?hl=en

"I've been making websites since before Google existed, and it feels like my ways are going extinct."

Yes I think creating content databases and giving every piece of information a URL and adding untargeted Adsense is no longer a business. Spammers (not whocalled.us) have been misusing that SEO tactic for too long.
lol!! I am cracking up!! How did that happen!?? Considering the grim dystopian subject matter here this is hilarious!

Will fix it now!
I can't speak to why they've penalized you, but it sounds similar to what they did with RapGenius. Rap Genius would pay others to link to them to help increase their pagerank. Google caught wind of it, and penalized them for gaming the system.

http://searchenginewatch.com/sew/news/2321516/rap-genius-no-...

I'm not sure why they think you've done the same - but that's likely why they are blaming you for the links others have created to your site. I agree - if you did nothing to encourage those links to be created, it's difficult to see how you should be responsible for their removal, but hopefully the article I've linked will give you more context as to what Google is probably trying to weed out from their search results in order to help you get it resolved.
Appreciate it, the acronym doesn't rank on Google at all.
> If you limit yourself to boxed and stack variables, which is a pretty big limit when writing larger programs.

That's more or less how most C or C++ programs work, however. C and C++ programs (including the Linux kernel) use reference counting when the object lifetime is truly dynamic. For example, file objects going back to the very first Unix have had to be reference counted, because they can be duplicated via the dup() system call, inherited via fork(), or sent from process to process via cmsg.

The big advantage of the C/C++/Rust approach comes from the observations that (a) the vast majority of objects only have one owner; (b) reference counting does not have a global performance impact when used only for a small subset of objects.

> And as noted by a sibling comment, you can create a memory leak due to cycles if you use it imprudently - do we consider that to be a safe use of memory?

It's a tradeoff: reference counting is bad at cycles, but has advantages due to prompt deallocation, avoidance of the mark phase, and (in Rust) avoids unnecessary cross-thread synchronization. I don't think it's unsafe, because leaks can happen in any language, including garbage-collected ones: you can have arrays in global variables that grow without limit, for example.

Remember that the criterion that GC uses—no more references to an object—is ultimately a heuristic approximating what you really want, which is whether the program will access the data in question again. Of course, due to the halting problem, we can't actually solve that problem, so all garbage collection algorithms approximate it, with the requisite possibility of leaks.
NBC Reportedly Has ‘Dossier’ of Brian Williams Lies
Ask HN: Taking over after contractors jump ship
I was brought in to a company to build their own internal development team. They have a few projects in active development with a couple of contracting firms. The plan was to slowly wean the projects away from the outside firms to internal development.

One of the firms has decided to immediately abandon the project they’ve been working on. We have the source and the app runs on our own servers, but that is about it. No documentation or architectural artifacts of any sort.

The business has been happy with the product so far. The contractor is “focusing their business on their larger clients”.

What has worked best for HN reader’s when taking over a project with little to no documentation/design documents?
As a side note, thank you for creating that site. My phone number was sold some time ago and I regularly get telemarketers calling me and a quick google search of any unknown number would find your site and let me make the determination to answer or not.
Sorry to hear this. I always like whocalled.us. I thought it a useful service. I used to Google strange numbers I didn't recognize that called my cell phone (until I just started ignoring them all together). I didn't really care who gave me an answer, but among all the copycat sites that quickly popped up, I came to recognize whocalled.us as a legitimate source of the info I was looking for. It seemed the most active and least spammy of its class.

Was it perhaps the target of some of the sleazy blackhat SEO tactics that have been discussed elsewhere on this site?
Obama has missed the point. It was the NSA's actions that undermined our trust. Snowden's revelations merely exposed those actions.
Any big media is a propaganda machine, starting by the New York Times, that is broke and easily controlled by those that sustain it.

The US of A invaded Iraq and Afghanistan because somewhat a modern propaganda machine convinced Americans that because 21 guys coming from a friendly dictatorship nation decided to kill themselves in planes, they needed to invade another different country with probably the biggest oil reserves today.

Of course the modern propaganda machine tried very hard to convince people that controlling the oil was not the important part. That more than 5000 Americans and a million Iraqis died and more than a trillion dollars was spent because of "freedom".

Remember "war on terror" propaganda?

Remember weapons of mass destruction invention?

Remember Osama Bin Laden that appeared and disappeared as was needed and then died when needed(and nobody independent saw the body before being buried in secret in the Ocean).
Bank Hackers Steal Millions via Malware
> This is not really a problem, since the hardware will trigger an interrupt which will, at the hardware level, stop the current instruction and move the instruction pointer to a registered location in code.

At which point the interrupt handler needs to route the interrupt through a complex, multi-layer driver stack, and the driver needs to respond - where it's likely to depend on complex datastructures of the type that would normally be managed by a GC if the response is anything but an absolutely trivial ack.

All garbage collectors require that at least some memory is inaccessible to regular code while the garbage collector is running. As a result, you essentially have to ensure that anything that might ever be touched as a result of an interrupt, or during another soft-realtime event, is not managed by the garbage collector - and then you may have to detangle even more data from the GC's grasp when the hardware vendor releases the next revision of their hardware which requires access to more information. You also have no proof that what you're doing outside the safety of the GC is correct without a Rust-like lifetime system, or other more complex static verification systems (such as have been built on top of Coq).

In addition to that, developing performant code with few/no obvious hangs under a GC takes a lot of effort and specifically fighting against the GC - ask any game developer who's developed a large game using C# under Unity or the like - and they get the luxury of getting to run GC at vsync. You don't have any good spot to run GC in a kernel.
The funny thing is even if RT is an propaganda arm of Hitler-Putin, the US would objectively have been better off listening to it.

Russia was in opposition to the Iraq War, destabilizing Libya, supporting the Muslim Brotherhood in Egypt, and toppling Assad in Syria. Putin was never cryptic that Ukraine was a "red line" and now we're all shocked at that outcome.

Now we've got ISIS, have given up toppling Assad, troops headed back to Iraq, 'advisors' going to Ukraine and Putin is getting the grand tour in Cairo.

Arguably, Putin was looking out for western interests more than the clowns running the show for the last 14 years.
A dynamic way of quickly exploring and packaging REST APIs, in Ruby
> giving every piece of information a URL

Wasn't that supposed to be the whole purpose of URL?
> A would suggest you learn the difference between CS and Engineering.

You suck, sir!
Create an android app that automatically sends telemarketers to voice mail?
Does anyone know what color theme those code boxes use?

I apologize for being so shallow :)
The Psychology of Doing Nothing – Professor Helga Drummond
I think lots of people with good intentions fail to give the problem of the commons proper weight.

While you may do good and provide a better way, by doing all things good and proper, you will get trounced and relegated to irrelevance.

We can only move forward if we get the majority to go along. One can't unilaterally pull away, you'll be at a severe competitive disadvantage, your leverage gets reduced, your idealism forgotten and overwhelmed by those who take the opportunity offered by your benevolence.

That's why, i believe, the only, but frustratingly slow way to go, is to slowly and gradually gather consensus and momentum and get things done, in the end.

Falling on the sword serves the self but does not serve society at large someone with less morals will come in and swoop up the opportunity, sadly.
Like some sort of a uniform resource locator?
Actually that's probably the worst piece of advice I have heard.

My first job programming was with some introverted people who were fairly smart, on a very poorly documented system. It was really difficult to ask anything, and when I did they were not very good at explaining and I felt kind of stupid, and just went back to staring at the code. Nearly got fired from that job for not being productive enough.

Took another job, and decided to learn from my mistakes - I asked a lot of questions, especially in the beginning, and needless to say that one job went a lot better.
also, encrypt it and push it to Github.
The argument I'm trying to make is that if someone compromises SSNs, which are used to authorize patients, it's very likely that they have also compromised MRN since MRN is what most healthcare applications use internally as the identifier for patient data.

In the case that they stored SSN and MRN together, which I believe is highly likely, the attackers also gained access to the MRN.

If the most highly protected data demographic data (the name and identifying information about the individual patient) is unencrypted and easily compromised, I believe that patient data was very likely compromised as well.

It is possible, however, that the attackers were only after information that could be used to commit identity theft so they may have ignored the health information, however, this does not mean that the health information was properly protected.
Concurrency in UI Toolkits
Germany returns books worth 2.5M euros stolen from Italian libraries
Part 2 here: http://www.guigarage.com/2015/02/concurrency-ui-toolkits-par...
I use the iOS app Kan-Do to budget my time to different projects/activities and work on them pomodoro-style (i.e. in timed chunks). Lets me set goals of time spent for the week and track where I've spent my time and how much.

(You don't have to do everything in 30 min chunks as you go, you can also manually record other blocks of time spent.)
If you run the shop/walled garden that defines what you can put on your phone. Apple says you can be private just as long as you use our apps and obey our rules? That's corporate slavery
definitely, though that doesn't mean it is interesting for humans (Google is a search engine for humans).
You clearly have never watched RT. You have been indoctrinated by some illusion of free market delusion - typical of HN.

If CNN cared about integrity nobody would be working there anymore.

That you see this as an absolute black/white, good/evil and a strawman speaks to your ideology, not mine.
I tend to agree. Most of my web development work lately has been with Rails, although a bit has been with Node, and a bunch in Python in the past. Rbenv is wonderful for managing different versions, npm takes care of local dependency installs quite nicely, and virtualenv solves the problem for Python too. I generally just install a local copy of postgresql and redis, and I'm good to go without having to mess with a bunch of different VMs and things like that.
I love ccw as a coding tool and the full editor repl is great too but I haven't been able to get breakpoints to work on it ever. Another thing that irks me about it lately is no real clojurescript support! That said it is still my primary clojure tool and things like figwheel help close the gap.
Wrong (from what's known about iMessage). All devices have a distinct history of messages - http://techcrunch.com/2014/02/27/apple-explains-exactly-how-...

Apple says FaceTime messages are end-to-end encrypted https://www.apple.com/privacy/privacy-built-in/
Still Playing Destiny
Do you mean that researching competition does not advance business forward?

Why not?

Learning from competitors could occasionally be more valuable than learning from customers.
Best Advice: Bootstrap First, Raise Money Later
haven't hit this problem much. But I do have a solid iMac that I use for development.
CVE-2015-1593 – Linux ASLR integer overflow: Reducing stack entropy by four
Estimates will always suck for 10 of them, but they work for large numbers (you can tweak the knobs to compensate for bad estimates). My experience after around 5000 stories and 100 man years (single project) is that we are slowly approaching acceptable accuracy!
Cloud9 web based IDE v3.0 now open source
The app does what it says - gives you recommendations from people you trust. A better way to make some decisions. Pretty nice. Could go a long way ahead.
The information is lost in the sense that it's in the original, and not in the lossy version.

Whether or not you can hear it, the information is gone.
These are fairly common functions in clojure. You might not be there yet as it is pretty readable. My personal preference would be to work in some let expressions for extra clarity.