skysight-inc/HackerNews huggingface dataset:
From the docs re postgres_escape: "Because nginx cannot tell the difference between empty and non-existing strings, all empty strings are by default escaped to NULL value."

This behavior actually is what anyone who has used Oracle is accustomed to (empty string is NULL). I don't recall the default behavior in Postgres but Postgres is "Oracle-ish" in a lot of ways so I would be surprised if this is not the default there as well.
I've seen the photo of the columns before, but never the hallway with the arch of tubes above. And that elevator! A steampunk delight!
Scala is one of those frustrating languages for me.

A lot of the basic syntax and concepts are very much as I’d wish to do them myself. For example, I wrote a toy compiler years ago that not only used the var/val distinction but even used exactly the same terminology. I’ve seen a few videos of Martin Odersky, and he’s one of those presenters where I find myself nodding along with almost everything.

Sadly, I think Scala suffers from a similar heritage problem to C++. The good ideas underlying it always seem slightly held back by the historical baggage and compatibility issues, and somehow it never feels quite as clean and tidy as it should. I understand the benefits of building on such well-established foundations, but as with effects in Haskell, sometimes silly things just seem to take far more effort than they should, even though much of the language appeals to me.
"The DB driver should parse the parameter and bind it as a string in that position. If you need to use it as a different data type (ex: integer) then you can do an explicit type conversion."

Not sure exactly what you mean here. The protocol and libpq support sending literal values entirely outside of the query itself. There is no reason for the DB driver to do any parsing.
The thing about RabbitMQ is that it's so powerful and configurable that it scares a lot of people, but for trivial use-cases it is incredibly easy to get running. If you're using it as a message queue within your LAN (i.e. no direct external interface) then even the HTTPS configuration can be skipped, and all you need to do is create a user and an exchange and have at it.
CouchDB's support for "views" and using comet/websockets (have they implemented websockets yet?) to communicate with a JS app served from the DB itself...

Riak does too - any DB that implements a RESTful interface to the database instead of a binary protocol.

CouchDB is particularly well-suited for this use-case though (I would never use Riak in that fashion).
It should be pretty easy to scale out a simple set of data like this.

"Leaving it to the pros" means you don't control your data and you can't easily combine it with your other data about products, orders, whatever.
This is amazing, always wondered if I could move things from the app server to the web server level.

but are there any performance benchmarks ? I suppose nginx would have a better performance.
United States Government.
Could someone summarize the highlights or link to an actual article? I don't really have either the time or the training to glean the subtleties from 12 pages of legalese.
One of the most challenging things about Haskell tutorials is the difficulty in determining the etymology of very terse function names.

For example, what does the M in forM_ stand for? Monad? Something else? What about liftM? Why is it called lifting? Is the M here the same as the M in forM_?

These are just a few examples from this tutorial, but I find that this is pretty much common everywhere in the Haskell world, making it hard to parse semantic meaning from function names if you aren't already immersed in the language and community and well versed in the lingo.

One of the best things I've learned to break out of this is to search for JavaScript implementations of many Haskell concepts when such a concept is doable in JavaScript. It usually leads me to enough understanding of what some function is trying to accomplish to proceed with whatever Haskell tutorial I happen to be reading.
High risk service for a business.

From T&C: "Sellbox does not pre-screen Content, but Sellbox has the right (but not the obligation) in their sole discretion to refuse or remove any Content that is available via the Service."

Then add in Paypal account freezes on top of that.

I wouldn't want to depend on a combo like that for my company's cashflow.
I prefer an actual date, simply because when looking at a screenshot 'X days ago' becomes meaningless unless you know when the screenshot was taken.
>I want it to stop me from modifying the code later so that it accidentally becomes vulnerable to interactions that I’m not fully controlling. I want it to provide me with tools to specify how potential interactions should be handled, in a way that is systematic and robust but otherwise as simple as possible, and that can be applied at whatever level of my design makes the most sense.

That's...the state monad. The compiler tells you when you try to access it in a way that is not allowed.

You have to be explicit with sharing.
Yes, the M is for monad. Eg map vs mapM
>it’s reasonable to ask whether the intent was to print the total of the numbers collected by the loop so far.

Yes, it is reasonable to ask that. But you just said it was incorrect, you didn't ask that.

>That this side discussion has happened almost makes my point for me

I don't see how. Your point appears to be "I can write shorter python". You can write shorter haskell to do that too, the point was to demonstrate the State monad, not to be concise.
Two weeks of Blippex—450k+ searches, press and database dump
Full moon may disrupt sleep
OK, so Lenovo is not being bought.

What is? Anyone got any information?

Most UK govt/corporate types I see have Thinkpads and and a Civil Service Blackberry but they are not covert.
Thanks for the Algebra Chapter 0 link! I think that's my next math book :)
Fund the latest release of neo4django
An oldie but goodie on this sort of stuff on nginx ... http://agentzh.org/misc/slides/nginx-conf-scripting/nginx-co...
Okay, there are some treaties. But what
is the 'recourse'? Likely not the US
legal system. Likely not any legal
system.

The Gitmo situation is a mess, not the least
because apparently it's costing the US
$1+ million a year per prisoner. But while
a mess, I object to calling it a legal
mess. Laws, courts, justice, etc. just
have next to nothing to do with it.

Maybe there are a lot of lawyers and they want
to see every problem, e.g., the Gitmo problem,
as a legal problem. Sorry, lawyers, it's
not a legal problem; instead, it's something
else, a problem of a different kind.

In part Gitmo is an example to Jihaders:
Either we will kill you, and if they are
physically close maybe your family, or
we will ship you to Gitmo, and we will
let you decide which is worse.

Some of the Gitmo Jihaders believe that
it is just their natural, Allah-given
right and mission to fight the US
or go on a hunger strike. I'd say, that
120 days of hunger strike would be about
right.

Whatever, I just don't see it as a legal
problem.
The example didn't really intend to show off a particular behavior but instead the interweaving of effects.

Indeed. My point was not to nitpick an interesting article. I was trying to illustrate how making so many details explicit in Haskell has a real, practical downside: what seems to be an obvious logic error had slipped through, where it surely would have been spotted easily in the simpler Python code. Moreover, no-one had even mentioned this possible bug after a couple of hours and dozens of posts here, though of course that could just be because no-one else felt this point was important enough to make rather than because they hadn’t noticed.
>I'd never understood this kind of nationalism.

Some people want to support their own community and some are concerned about labor/environment standards, human rights, civil liberties, etc.
Software Emerges as ‘Secret Sauce’ to Ford EcoBoost Success
Convenience, I guess?
On the Misery of Survey Creation
An Open Letter to LinkedIn
I've been working with clojure, and atleast for me, it offers the freedom to work with both pure and impure code with relative ease, whilst still being conservative on state manipulation.
The economists who are anti-trade?
I ordered mine on the play store on 7/24, but haven't received a promo code yet -- anyone know if I'm still owed one? I know Amazon is giving out codes to people who ordered before 5:31 pm PST on 7/25. Honestly I'm going to be a bit upset if folks who ordered after I did are getting codes and I'm not...
Perfect. Would be easy, then, to make a greasemonkey plugin to do some simple math and work out a "sincerity ranking", etc.
I am surprised that they haven't tried this as it would be much more affective. Network level filtering always fails because it can't see encrypted packets. To prevent circumvention you need something running on the machine, at which point you may as well just run the filter on the machine. The government could have promoted officially recommended browser plugins. If parents don't know how to protect their children why not help them?
Selective enforcement of the law is often worse than having no law at all.
Cause of death, if it is known, is probably being withheld for family privacy reasons.
A Sysadmin's Day, in GIFs
i.e. D-notices.
Until there is a cause of death from a thorough autopsy, I think it's too early to say whether this is suspicious or not. I can't believe you are being upvoted for saying this.
If you break something you have to pay for it
U.S. assures Russia Snowden won't be executed or tortured
Well, good. Proper regulation is the whole point.

Edit: You (probably) do want control cannabis sales to teenagers. Citation: http://www.psychologytoday.com/blog/the-squeaky-wheel/201208...
What framework, and what is it doing to help with maintenance? My experience has been that typical RoRish frameworks are so heavily concerned with trying to make the initial writing of the app easier that they actually hinder long term maintenance.
We have achieved real, functional, practical Transformers. Everyone can retire now; Science is over.
I don't think the US cares if they're in a 'bad spot diplomatically'... kind of like when the president says some stuff and does the complete opposite... no shame, who cares
If they are worried about bad guys deleting all their data, they should stop leaving their phone around at parties. Getting their phone stolen is an even worse outcome, because the data is effectively deleted and the hardware is gone. And it's strictly easier than stealing the phone, deleting the data, and returning the phone, which is what the ggp comment was suggesting we worry about.
I think I switched from using a combination of altavista & one of the search sites that combined a lot of different results.

It was better, but I can't remember thinking it wasn't orders of magnitude better. I didn't use it once and think 'oh my god, this is perfect'. It was a gradual switch. And to begin with the thing which made me use it more was the simple UI.
Miscom on my part. By driver I meant the nginx module that's calling out to libpq (which would more accurately be referred to as the DB driver).

I meant that libpq supports bind variables and the nginx module should be using them rather than performing a string substitution.
FWIW, I tend to prefer using modify rather than set wherever that makes sense, which would make this particular bug harder to express.
I think your point-of-view might be a bit parochial. I certainly wasn't arguing that Angels (or VCs) are trouble-free routes for funding a venture. They certainly are difficult, take up a lot of time, don't always know what they are talking about, emotional, &c... However, of the ones that you nab that are smart, experienced, and a joy to work with - make it worthwhile.

They can be a lot of trouble, but if you're trying to grow (and I don't think outside funding is appropriate unless you want to grow fast or build something that requires a large amount of capex - like hardware) I think the "funding" culture is essential in elevating the founder's ken.

I think PIH is awesome, I have many peers that I would consider to be living that life - so the whole thing is very subjective. I'm primarily arguing against the false notion that investors are bad (only some are), are a waste of time, or "take over your company" (some do, and even then it's only because the founder(s) weren't versed in the "game" and politics of fundraising).
Frameworks don't magically solve these concerns. I can create my API with Django, and there's no guarantee that I will restrict my endpoints to authenticated parties or I guard article modifications to their authors, for example.

Django doesn't magically scale; you still need to a) learn how their ORM works and where it can be greedy or b) just use a "saner" ORM (eg. SQLAlchemy) or otherwise write your own without the need of a thousand features you don't need.

SQL... set variables with `postgres_escape` and not `set`, always.

Output... he returns appropriate responses, but between all the "RESTful" frameworks I've seen, they ALL have different opinions on what should be returned, what HTTP codes to use, etc. I'm not sure a framework helps, other than to inform you or get you stuck with their ridged paradigms.
But also the "paradox" in this situation is that it's perfectly doable to meet the contradictory needs of value for customers and profit for investors at once. Many such dilemmas have paradoxical both/and solutions.
I don't have a PayPal account, so I couldn't really try out the integration. Do the files remain in Dropbox/Drive, or do they get copied to Sellbox's storage?

This might be a good candidate for the Dropbox Chooser: https://www.dropbox.com/developers/dropins/chooser/js, which gives nice UI for picking files and then only grants the app access to those specific files.

(I work at Dropbox and am happy to answer questions. Email: smarx@dropbox.com)
Sentencia.
Maybe not binding strictly speaking, but we have to keep our word here if we ever expect to be able to get an individual in similar circumstances to be extradited to the US in the future, no?
Show HN: Words 2.2 with RSS
Hot SoCs: Tegra beats PS3, 6-GPU Exynos, 4.5W Haswell
If you take the (possibly extreme) position that I do; namely that the act of violating the oath to support the constitution is an act of treason as well as evidence of deceit, why in the world would anyone give credence to Holder and the administration that supports him? My guess is that if Snowden is foolish enough to leave the highly visible airport surroundings, he will shortly disappear, possibly forever.
The studios should really have been suspect #1 in this case from the start. Doing Pan and Scan of 2 hours of film is a chunk of work - not just cropping, but reframing each and every scene to focus on the action. I don't know if Netflix have the resources for this, but would they have permission?

I can't find the story now, but there was an instance of a set of "widescreen" DVD releases (my memory tells me they were from WB) which were 4:3 cropped releases, cropped yet again to 16:9 aspect - a small chunk of the original picture left at this stage... but as I say, I can't find this story so I may be misremembering.
>So I decided I would only use node.js when the libraries make it too hard to pass up.

So, all the time then? --For me at least ;)
Cyclotrons as Drivers for Precision Neutrino Measurements
"functional programming languages haven’t taken off in the industry as a whole"

You mean, except for Erlang?
My impression was that development meant apps not in the production env. Now it's much more clear. I'd definitely change the wording.
Good point. Maybe a more important distinction is how someone evaluates the product. Do they think its a success just because it made a ton of money? Or do they have some more intrinsic measures of what makes it good, and look at the impact it actually has on people? With that in mind, I can see how a gifted business administrator can do their job (maybe make the company money) while being motivated by the more intrinsic stuff about the company. I guess I just try to stay away from people who's ONLY yardstick is how well it sells.
>Web is almost entirely about I/O, which Haskell treats as an unfortunate aspect of programming that is to be made as unpleasant as possible so it will be avoided except where unavoidable.

That isn't what haskell does though, that is the "I've never bothered to learn haskell and want to spread FUD" version of it. I/O is not "a ghetto" in haskell, it is first class. Haskell just makes I/O explicit, it doesn't make it unpleasant. My app is literally nothing but I/O, just plumbing between postgresql and browsers. Haskell has done nothing to make that difficult or unpleasant, and has done much to make it easier and simpler, especially in regards to error handling and form processing, which frankly is most of the code.
> Do the files remain in Dropbox/Drive, or do they get copied to Sellbox's storage?

Good question.
If only we could do this federally, and then do exactly the same thing to Mexico's narcos.
DoD Asks: Why can't we all just get along..with robots
Orchestra To-Do killed to focus on Mailbox
Pretty sad end to an app that was Apple's 2011 Productivity app of the year. Good reminder that the greatest app in the world can be killed in favor of a pivot.

Email:

"Hello,

Back in September 2012 we announced that we were pausing development on Orchestra To-do to build Mailbox. Since launching Mailbox in February we've been thrilled and overwhelmed by the reception. By all accounts, Mailbox has been a success so far, and we continue to develop it in earnest.

To help us focus, we'll be discontinuing Orchestra To-do and removing the app from the App Store on September 6. If you're still using Orchestra we recommend you copy any tasks that remain on the app and save them elsewhere. After September 6 the app will still launch, but all cloud services including sync, task delegation, access to the web app and customer support will be unavailable.

There's much about Orchestra that we love, and it's hard for us to say goodbye to it. You may feel the same way. But we believe Mailbox offers a simpler and more direct approach to our mission of solving the problem of using email as a to-do list, and it's important that we devote all our resources to Mailbox going forward.

As always, we're grateful to have you with us as we journey to transform how people work together. And if you haven't yet tried Mailbox, you can grab a copy here.

Thanks so much,
Gentry and the Mailbox team"
Priceonomics sure seems to have a high regard for its belly-button lint. Their motto is "Priceonomics: The Price Guide for Everything," ...and the value guide for nothing, I presume.

Here in Priceonomics’s home city of San Francisco, however, legalization is also eroding the easy drug profits that have been a lifeline to the remnants of the hippy scene.

Yes, lets all lament the demise of the "Haighth"[1], while ignoring the political, artistic and, well, non-weed legacies of the late-60s San Francisco subcultural landscape.

1. http://www.urbandictionary.com/define.php?term=haighth
TSA figures out how to raise billions from travelers
Completely agreed. This is a genius way to bypass the iTunes Store and Kindle Book Store.
This looked to me like they were trying to say "It's the studios' fault!" without pissing off the studios.
I don't think "the JVM is not an exciting environment" is quite on the mark, given that Clojure gets a lot of attention. But I believe this is close.

I think the real reason is that Scala feels too much like a typical Java-with-a-twist JVM language for many people to want to take a closer look. Scala's rep as "Java++" is beneficial in a lot of ways, but failing to excite certain segments of the hacker community is the corresponding downside.
Frank Lloyd Wright is definitely a fascinating figure. I live in Oak Park, IL just a few blocks away from his home and studio; highly recommend checking it out if you are ever in Chicago.
Re-engage the RC world:

http://rcgroups.com/
http://flitetest.com/

RCGroups - contains endless gold for enthusiasts and hobbyists and mad scientists, alike. I suggest you get right into the forums in whatever subject interests you, and start looking for the build threads. This site, alone, contains enough information to get you seriously hooked on RC again.

FliteTest - fun, easy to watch videos on getting into the hobby. Also, these guys produce easy to make planes that will give you all the basics - me and my 6 year old recently got the FT Basics kit (nutball, delta, flyer) along with an FT Spitfire 2-pack, and we're having the best time of our lives flying a nice variety of cheap, easy to build/repair, planes. We'll probably go FPV in a little while ..
>Some people want to support their own community

I don't think that's necessary nor ethically justified (though I understand why some people support it). It's like a some kind abstract form of 'cartel', i.e. "I support you, you support me".

However, it's taking money away from poor countries (in this context). I don't think some 'rich' Westerner who happens to live near me is more deserving of my money than a poor person in a third-world country.

>some are concerned about labor/environment standards, human rights, civil liberties, etc.

Ironically, the only way those poor countries will have labour/environment standards, human rights and civil liberties is throug economic growth. If you're poor, you can't afford workplace safety.
Hi; this is a pleasant surprise :)

I wrote this component. Happy to answer questions, feedback, etc.
It's only not a problem if you audit every single line of JS you host yourself. Most companies and people don't.
Rio de Janeiro has more crime simply because it looks depressing
CBNL website taken over by ads
Apparently the webmaster took a vacation.
Looking forward to hearing what Vazirani has to say about D-Wave in the Quantum Mechanics and Quantum Computation course.
Hidden “App Ops” Feature in Android 4.3 Lets You Disable Permissions From Apps
I always think of the Simon & Garfunkel song when hearing his name.
That seems like a very bizarre way for technical people to behave. "I'll assume this general purpose programming language must have some weird problem that somehow makes it unusable, but people can only find out about that problem if they write a popular project in the language". Why not assume every general purpose programming language is capable of being a general purpose programming language baring evidence to the contrary? Shouldn't tech people be capable of examining the language and determining if there's evil "large-scale" goblins lurking within?
In real life (not contrived examples) haskell greatly simplifies dealing with state.

That is the assumption I’m questioning.

For example, let’s consider quicksort. Hopefully we can agree that this is a substantial and practically useful algorithm, and one that fundamentally relies on mutable state for its performance and scalability.

I recently posted a link here to a discussion on haskell.org[1] about implementing a real quicksort. This was contrasted with the usual elegant but not-really-quicksort version that has propped up a million functional programming advocacy posts, and with the original C version[2].

Neither Haskell version seems particularly simple to me when compared to the C, and I see little extra safety in return for all the Haskell syntactic overhead that couldn’t have been had just as well with a couple of "const" annotations in numerous imperative languages.

Obviously not every case is as self-contained as this algorithm and in other contexts Haskell’s approach would fare better. But a lot of real world code is stateful, and a lot of it uses this kind of local state, and so I contend that making everything explicit, Haskell-style, does not greatly simplify dealing with state in general.

[1] http://www.haskell.org/haskellwiki/Introduction/Direct_Trans...

[2] http://www.haskell.org/haskellwiki/Introduction#Quicksort_in...