skysight-inc/HackerNews huggingface dataset:
Ok, here we go.

>You aren't the voice of reason. You're the guy with his fingers in his ears and his eyes closed. You are the worst possible neighbor to have in a democratic society. Until you are directly and personally affected, you will continue to argue that those who oppose surveillance are all "unreasonable" to expect the gov't to follow the law, or for even "believing" that the gov't does not, despite clear evidence of wrongdoing.

Not going to touch that one.

>The NSA keeps _all_ of the source data. A file can be built at any instant by a simple query. The distinction of not having a "file" at some particular moment is without meaning. One might even argue that the architecture of the systems are designed to allow this "lie" to be told. At the very least, officials have demonstrated their willingness to exploit this semantic loophole, which by the strict rules of logic, evaluates as "true" but which all honest people consider "lying through your teeth".

It's not all kept.

>The NSA passes evidence of non-terrorism, non-national-security, ie domestic crimes to domestic law enforcement on its own accord, as has been reported widely in the press. Additionally, US intelligence services have in the past been caught passing inside information to commercial interests, also well beyond the scope of "strictly foreign surveillance".

You're confusing NSA with FBI.

>You have no proof of that. Even given the little that is actually revealed about the NSA so far, it is not reasonable to claim that the NSA has followed the rules in this particular scenario, given the many examples of rule-breaking, and the NSA's demonstrated contempt of FISC rulings.

I do have proof. I was in the NSA and I took the yearly FISA training. NSA analysts take FISA violations very seriously, and always err on the side of US person if in doubt. Why? Because collecting on a US person is the quickest way to get fired.

>I can say with complete confidence that you are wrong again. Laura Poitras, Jacob Applebaum, many others have been receiving extralegal searches, seizures of their electronic devices at the border for years. Just a few weeks ago, a family received a visit by virtue of their internet searches. Even if you were correct, it is an extreme threshold for opposition to gov't lawbreaking. You think that no person should make a fuss, until the speech of "white suburban bloggers" is targeted?

Now you're confusing NSA with NCTC http://www.nctc.gov/about_us/how_we_do.html. Awesome. NSA does not watchlist people. That's a combination of the Terrorist Screening Center (FBI) and NCTC. That being said, Laura Poitras and Jacob Applebaum aren't going to be on that list unless they're somehow funding Hezbollah.

All in all, I find your response to be composed of pure internet anger and no factual content.
I agree with you.

It occurs to me that if you're using a whole bunch of anonymous functions with nested lexical closures, then the shared state between them starts looking a lot like global variables.

And globals are evil, but relative to the other nightmares that Gotos could produce, they're pretty mild.
There is one called "basic" that is your happy middle: http://i.imgur.com/gIllZf5.png
That isn't paranoia.

A rather large bomb was set off by the IRA in 1996 within walking distance of the sorting office in the article. There have been multiple bombs planted recently in NI itself.
My own Rap Genius API
Wouldn't the 3 shears method take a preposterous¹ amount of memory if you rotate by something like 180 degrees? The first shear will take a w.h image and output a w.h.h one!

Why not simply use Bresenham's line drawing algorithm to "draw" a reverse-rotated rectangle over your image, but rather than drawing, you'd read pixels and write them to the destination image. You'll need to only rotate the corners of the image once and everything else is simple integer math.

¹ preposterous for the kind of device where doing it any other way is too slow

Edit: replaced stars with dots for multiplication because stars make italic text
The reason why they call your name is because Schultz, inspired by the "bar" in Milan in the early 1980's, wanted people to believe they had a barista friend.
Note that "bar" in Italy has roughly the same meaning as "cafe" in the US.
In Italy, then and now, most bars have regular customers, and they get to know each other's name.

When I moved to Singapore a few years ago, I started drinking my coffee at a local "Segafredo", and had to teach to the baristas to call me by name whenever I entered.
For a few months, they would say "Buongiorno Mr. Simone" to me only.
I also had to teach them how to do a proper espresso. They were clueless. (I was a barista in my twenties).
One day I hear "Buongiorno Mr. Giovanni", and I immediately knew it was another Italian. He also did the same, had to teach them to call him by name, and how to do a proper espresso. Funny.
but they still need interpolation because pixels in general won't exactly overlap.

as far as i can see it's replacing the interpolation in 2d with multiple interpolations in 1d. but perhaps i am missing something.

[edit] ok, after skimming the paper, it seems that they approximate the interpolation (using nearest neighbour). which makes it very fast. so really it's a neat way of working out what nearest neighbour is in 2d by doing it in 1d multiple times.
No, you are incorrect, quoting from that page:

Are there copyright restrictions for the Getty's open content images?

No. The first release includes 4,600 images of works of art believed to be in the public domain—in other words, works not protected by copyright under U.S. law. The Getty does not claim copyright in digital images of public domain artworks.
I believe this is set by default in oh-my-zsh as well.
"You could become involved in the distribution of classified data."

IANAL, but I believe the espionage act contains a mens rea requirement.
Absolutely annoying this ability to override messages. The same issue is with expired/not authorized server certificates on Chrome. I need to copy session ids around just to trick Chrome into accessing some stupid research database. I hate nanny browsers.
I had a similar experience as yours and was changed by the following simple thought. Here is a sentence out of the book Peony by Pearl S Buck, pg 170.
" It is within a man's power to choose happiness and reject sorrow."
Just a few words but when deeply understood more powerful than any monolith of philosophy.
Mapping the OEIS Database
I'm not American, so my education with regards to governments did not include specifics of how the US government works, only a general overview of the governments of most countries.

I'm aware that the US government is not monolithic and homogenous. But it's things like the NSA's programs (such as PRISM) that centralize resources and funding, and turn a heterogeneous government into a coalition defending not always what's best for the nation and the world, or defending the interest of a small group to the detriment of non-adversarial groups with less influence.

Past behavior isn't a guarantee of good future behavior. The NSA always had a fairly good image: secretive but inoffensive, mostly concerned with breaking encrypted communications of interest to national security, and offering good crypto for American citizens and companies. It didn't have the less nice overtones the CIA has, for instance.
Unless I am missing it, I think the killer feature for a library like this would be baked-in gesture support.
Testing in Django (part 2) - Model Mommy vs. Django Testing Fixtures
Actually how is the legal situation on this? If they go all bomb scare crazy over this is it my fault as the sender even so it is not even remotely reassembling a bomb layout? Is there a ban on mailing home made electronics? Or do I need to put a sticker on ATTENTION, THIS IS NOT, I REPEAT, NOT A BOMB!
And then there's the NYTimes outage from a few days ago.
Your Career is Not a Disney Movie
Computing is in a sad state today, but not because of
fucking callbacks. It's in a sad state today because
we're still thinking about problems on this level at all.

The unfortunate part about thinking about problems is it that problems are relative - i.e. they are problems only relative to a context. Nobody even in the tech world has a clue how solving a simple problem just to satisfy some intellectual curiosity can affect life on the planet. What meaning does Wiles' proof of Fermat's last theorem have on the part of the world that's sleeping hungry every night?

The stuff we're talking about here has irked some pretty decent brains enough for them to go out and make ... another textual programming language.

Folks like Musk are an inspiration indeed for boldly thinking at the high level they do and seeing it through. However, that's exactly what's easy for press to write up on. Stuff like the moon speech is what's easy to communicate. It is also simple to attribute some great deed to one of these great "visions". But behind each such vision lies the incremental work of millions - each of it, I say, worth every penny - unsung heroes, all of them.

On a related point, not all the time where we've heard a call to greater action do we see the ability in those folks to imagine how that might come about.

edit: typos.
Here on Brazil.recently.the justice.caught a.group.that stole.several millions that way..one third of a certain state.population here signed up.

Most depressingly,.after the justice shut the thing down, they asked it to allow it to.continue, because they were still.profitable... ( it was a ponzi )
It's surprising how many waves this announcement has made over the last few days.

My question is: why now? What took so long?
AOL's Patch to Lay Off 500 People
On my browser (default browser on Galaxy Nexus) the pallete example and posterization example (tree and mask pictures) have weird scan lines. I guess the palette support is not perfect in every browser.
+1 for z. It's the primary way I navigate between folders at the command line.
5-minute outage costs Google $545,000 in revenue
>In closing, the whole fact that public policy is shifting from all of the backlash is kind of heartening in that it shows the public does have a say in the process

I can understand a lot of your comments in this thread, but not this one. The only reason the public has the chance to influence this process is due to leaked information. There is not an official system of checks and balances of which the general public may play a part.
thanks! I tried: apt-get install ranger

it says it's not available. any idea why ranger is not longer available in package manager?
Same with Chromium 23 on OS X Lion.
Well according to a friend of mine who works at the Goog it affected them internally as well, things like C.I. infrastructure and the like. So I doubt something that large goes down "all at once" but it seems it was more than search.
Demo images have added scrolling striped background with background-attachment:fixed to make alpha channel more visible.

backgorund-attachment:fixed is a bit buggy in Android Firefox, but images themselves are fine.
Yes. That's basically like saying that you're culpable for a crime because the person who lived in your house before you committed a crime. The people who were in office and committed illegal acts decades ago are not the same people in office right now. Everyone should be judged based on their own actions -- the government is not some borg mind slowly creeping towards its dictatorial dreams, but a collection of individuals with different moralities. My guess is that if you look close enough, you're not going to find all these crazy conspiracies floating about actually be true, because people are much too lazy to be putting that much effort into a government job.
Yeep easyyyyyyyy
The spat between Microsoft and Google is getting Ugly
Currently using the unionize.sh script works very well for me.

http://blog.docker.io/2013/04/unionize-network-superpowers-f...

You have to run ./unionize <bridge> <container sha1> <ip address> after starting the container, but that brings up a new interface inside the container with that IP and connects it to the bridge.

This is useful for having private IPs between containers of an application, for accessing databases or similar.
i don't share your fear, but i was surprised by it.

then i realised i didn't really know c11. so i checked amazon and there's no c11 harbison + steele. so i just emailed harbison to see if a new edition is planned.

if i get a reply i'll update here.
How can you make this argument and not even mention the word 'closure'? That's like arguing there's no need for object orientation, and demonstrating it by showing how you can model any class as just a set of global functions, by only showing classes which have no instance state.

Replacing anonymous functions with named functions works fine unless the anonymous functions are closures. If they are, you're going to have to add parameters to them to pass state in, and you're in real trouble if you want to have them modify closed state, because in JavaScript you've got no pass-by-reference. But closures that modify closed variables are hard to reason about in the usual nested callback syntax model.

What the async 'syntactic sugar' approaches do is replace nested closure scopes with simple control-structure scoping that's easy to reason about - even if the 'callbacks' are modifying state which then gets made available to subsequent callbacks.
What do you mean by "template functions are practically useless"?
This should help a bit more with your specific case:

http://blogs.atlassian.com/2013/06/deploy-java-apps-with-doc...
How does it differ from autojump?
What is your distribution? I've just tried it and it's available in both Ubuntu 12.04 and Debian 7. The launchpad page says that it should be in later Ubuntu releases, too. Enable the "universe" repository then run apt-get update and see if it fixes the problem.
You obviously have good intentions here, but you're going to be flamed half to hell.
I liked it a lot! Very nice work.

What I was missing is some indicator showing where exactly in the whole piece I currently am. A simple solution would of course be a timeline but maybe something neat like a minimap with a sliding windows of the current view is possible. Like this one could directly navigate through the whole piece by clicking in the minimap.
I seem to recall that's exactly what the Intelligence Community did tell the Prez, was that the public claims were all out of proportion to what the intel community knew, or even has hints at knowing. But of course Saddam threatened his Poppy and off we went...

But just think of the bright side, if we accept as true the claims of those using the Arab Spring erupting from Manning's diplomatic cable leaks, that it's all worth it if we get more democracies in the end, then I suppose all's well that ends well.

Mind, I don't personally agree with that but apparently I've been the idiot here the whole time. :)
The important difference in those FP languages is a) they encourage pure programs with little side effects. This is much more friendly towards small functions. b) You have the freedom to create functions only where you need to. In the OP's example, he is forced to create a new named callback after each IO call.
Sonic Visualiser [1] can---or, at least, it makes an attempt to.

It's a highly useful tool for the analysis of music recordings.

I, too, am highly interested in the extent to which matching recordings to scores can be automated, as are a lot of music theorists. I hope you can publish a write-up of the process for syncing the audio and the score.

If there is a significant human spend required, then developing an open tool for community contributions would greatly speed up the creation of a corpus of scores.

[1] http://www.sonicvisualiser.org/
Groupon sales rep threatens restaurant with negative Yelp reviews
> 1) EVERYTHING is 'syntax sugar'.

The OPs counter argument argument is against treating some syntactic sugar as special and novel when it is in fact not. Even voice commands are syntactic sugar, but they're way better for the lay user.

Although I dunno what he's talking about with "I can't talk to my computer." My phone is learning a lot of tricks, really fast.

> Callback-hell smells very much like gotos to me. It's very easy to do the wrong thing and easy to create very hard to read, hard to understand, and hard to maintain code.

This is mostly because people try to treat higher order functional code as in fact just a fancy syntax. Writing higher-order functional code (code that creates, consumes, and modifies functions) requires a set of alternative disciplines that most people in our industry not only don't learn, but actively despise and in many cases mock.

Even otherwise brilliant, smarter-than-me people I look up to do this and then declare the entire functional concept bankrupt. It drives me nuts. Once upon a time, when people saw OO code then turned their nose and said, "You shouldn't need to define hierarchies and ontologies just to reason about your code! How stupid is that!" But then proven models came out and the industry half-assed adopting it (remember Taligent? No? Look it up).

So many developers these days are whining and grousing about how static type systems inhibit their freedom and higher order functions are whacky propeller-head notions that only nerds take seriously. And yet they wonder why the bulk of the industry moves at a glacial pace. I'm happy that Erlang's nearly-30-year-old proposition and some of the implications Needham's duality are finally reaching mainstream computing.
I don't know autojump, but from a cursory look: z is written in pure shell, is a single file, no external dependencies. autojump requires python, thus likely has more features.

IMHO, just for jumping around directories, z is good enough.
If there really was a surefire way to beat market averages, it wouldn't remain a secret for long, then everyone would practice it, then that "system" would become the norm -- the market average performance

But this applies to any human endeavour! What's the secret to being successful in any field? Or rather, why aren't we all world-class concert pianists or martial artists or ballet dancers or whatever takes your fancy? Because knowing "the system" and practicing the system are very different things...
IMO, the biggest problem is the extra indirection, not the raw lines of code.

As for names, the problem is that he is forced to make a new callback whenever he does an IO operation and then needs to make up a name for it on the spot. Ideally you should never be forced to split code into functions unless you actually want to do so and when you can choose where to create functions its much easier to create good abstractions and good names.
> How many functions are good?

As many as needed.

> If I add a dozen, is that better?

If your programs path needs to do 12 things, then yes. Each function should do one thing. If in documenting your function, you use the word and, that's a safe bet that you are actually writing two functions as one.

> Short methods are good—have any evidence for that? I don't think you do, because such evidence as there is points in the opposite direction (look it up in Code Complete)

Unless there is another reference I missed, Code Completes reference referred to no more than a screen's height, which at that time was ~ 25 lines. Assuming not every line is a line of code performing some action, I'd still consider that a small function.

> It's proper to name functions properly? I agree! What's "properly"?

That's hard to answer, which is why so much has been written on it. Couple that with community idiosyncrasies (like Obj-C naming vs Java), you have a lot of "proper" ways to define functions. Within the realm of the community standards, I subscribe to the thought that the method names should tend to be verb oriented. Talk about actions, or perform an action. After all, functions do something.

> We have almost no empirically verified knowledge about software development.

Well, there is quite a lot. Much of it's older (in the history of software).

> One of the few things we do know (sort of—the studies are old and shaky) is that code size is a predictor of error rates. Think that's relevant?

Be careful about this. It's not as open and shut as you'd like to think. Indeed, it's about as verifiable and confirmed as cyclomatic complexity is. Without going into too much detail and sticking strictly the context here: "code size" is an awful metric.

By that notion:

int a = b + c;

Is dramatically better than:

int hours = timesPerformed + hoursPerPeformance;

Layer that into the concept of lines of code: is that lines of functional code? Lines of any code that isn't a comment? Any lines that aren't a comment? Lines of code that are only functional? All lines, including comments? All lines, including comments, except for standard headers?

All of those are valid deductions. After all, while it might seem obvious to remove comments, they could cause confusion, right?

And this ignores even the basic question: is a line merely a line on the screen? Or is it a languages statement? A single operation? Would a complex for clause with multiple assignments and statements count as one line?

All this is to say that code size is not the holy grail of error rates.

My own though is that taking CC and LoC and putting them together is best. A function with low complexity and with fewer lines of code is better than a longer function. Many smaller, lower complexity functions are also better than a single highly-complex function that is longer than any single function, but smaller than all the others when combined.
Install new bash using brew :-)
(1) http://apple.stackexchange.com/questions/55412/cd-to-a-direc...
Which places would that be?
> Wouldn't the 3 shears method take a preposterous¹ amount of memory if you rotate by something like 180 degrees? The first shear will take a w.h image and output a w.h.h one!

If implemented as a three pass algorithm, yes.

If implemented as a one pass algorithm, no.
I want your opinion: Gumroad doesn't accept Paypal
I don't think anyone downvoting the GP failed to get the point of the quote.

I think they were downvoting based on the perceived value of reference (whether GPs terse one or your verbose one) to Rand's novel in the discussion.
Thanks, I follow your twitter for a while and I love reading your posts! Keep up the good work!
An advert which tracks passing pedestrians
I recently started to use Gumroad and I loved it. It made everything easier, and I will keep using it to receive payments with credit card.

The problem is they don't accept Paypal and make me work twice to implement a solution to accept Paypal to my customers (I'd lose a lot of sales if I don't).

What's your opinion? Is this the right approach? They should care more about their users and accept Paypal to make their lives easier?

Thanks :)
I think you're misrepresenting RMS. In that article, he is mostly saying that hardware cannot be properly copyrighted/copylefted, and then pushes for open access to hardware interface specifications.

The closest to "not advocat[ing] free hardware" I can see in the article is where RMS states that there is (at that time) no way to download hardware the way we download software. correct me if I'm wrong.
NI?
Dutch ebook sellers promise to spy on reading habits for "anti-piracy" group
Here is another version of 'marks' for Mac OS that aligns the arrows. It also works when 'ls' is aliased.

function marks {
\ls -l $MARKPATH | tail -n +2 | sed 's/ / /g' | cut -d' ' -f9- | awk -F ' -> ' '{printf "%-10s -> %s\n", $1, $2}'
}