skysight-inc/HackerNews huggingface dataset:
Unfortunately, large-scale agriculture optimizes for shipping and shelf-life and when organic producers grow large enough, they must do the same. Tomatoes are the classic example of this, but it's true for everything. For example, pretty much all the avocados available in the US are the Hass variety---because they have a nice, thick skin. But there are some really great tasting varieties that are mostly unavailable outside of Central America or the Caribbean simply because they don't transport well.
Just as a note for anyone using this, you'll want to read some of the options as well. The amount of smoothing is hard to get right automatically, and you will want different values for different effects.

Having said that, my results with this tool have been excellent in the past.
My 4s rattled a bit when it was new. I wasn't sure at first if the buttons were responsible for the rattling, or if it was something internal. Then I dropped it a couple of times while spinning it around in my hand to locate the side with the button I wanted to press, and that made it stop rattling for some reason. The front and back glass slabs now slide around a bit, though.

I'm more or less dumbfounded at the popular perception of the iPhone 4 as a "great" industrial design. While it's definitely a great phone, if they don't return to a curved back with the next model or otherwise provide some tactile cues that help the user sense how it's oriented as it's being withdrawn from a pocket, it'll almost be enough to send me over the fence into the Android camp. Failing to move to a bigger screen will certainly do that.
Are you going to put this on github ?
See AT&T, Verizon, Comcast, et. al?
It has been edited at least twice. At some point, it indicated it was a means to get frequent flyer miles gratis.
If 5 million people save 1 minute every day for 200 days a year. Then you have saved 1 minute every day per person, not 5 000 000 * 1 * 200 minutes in total per year.

That kind of math just doesn't work.
It's an interesting project. I wish we had it 5+ years ago when it mattered.

The only place I'd use a spinning disk as my primary drive is on a server and that's something you rarely boot. If you're not using an SSD skip a month of Starbucks and buy one. Disk IO is far and away the biggest bottleneck for most users. An SSD will increase your productivity profoundly.
I'm guessing that people did that to get miles/points from the credit card.
Sounds like what GM I think it was did with retirement plans, apart from limited lifespans it is essentially also an open book of unknown future obligations.
No. It was for the credit card points and cashback rewards. They essentially got these points/cash for free.
Sounds more like a way to rack up rewards points.
Awesome! Sent you guys a tweet, would love this on my iPad

Sent from my iPad
With an SSD, the bottleneck for booting is usually hardware detection and initialization, not reading data off the disk. My system takes about 4-5 seconds from the time the bootloader hands off control to the kernel to the time the kernel starts executing the initrd, and another 6-7 seconds to mount the SSD and hard drive, establish the network connection, start system services, and present a login prompt (though starting X and changing resolutions takes another second or two on top of that). I probably can't make that more than 20% faster without getting a faster DHCP server or tweaking various delays and timeouts that exist for good reasons.
In addition to submitting it to the App Store as a standalone app, I'd highly recommend componentizing your work and selling the source or a library through Cocoa Controls or BinPress.
Python has a `cgi` module that does most of the superglobal stuff for you.

But, er. Does this really matter? Yes, you can get "hello world" in PHP with one line of not-PHP. You can also get "hello world" in Python + Flask with seven lines, and you'll get half a dozen extremely nice features for free that you can learn about as you go.

Arguing about what stack has the simplest way to build from total scratch is a sad race to the bottom. I'd rather be making the point that rich Web development can be easy, not that cobble-your-own-thing-together-with-duct-tape can be easy.
It is not difficult to find credit cards that will rebate back to you anywhere from 1 to 5 percent of your spend
Facebook Fan Page
join the fun! like and comment on our facebook page!
I am with rogers, I have Rogers Ultimate and for the past 2 days, the dl speed reminds me of dialup back in 2001.
I think the point was that you racked up frequent flier miles for using your credit card.
What developer isn't getting 90+ page speed scores these days? That stuff is trivial low-hanging fruit that rarely requires rearchitecting your application or page.
It doesn't - if done right.

When hibernating my laptop it writes the memory contents into swap - which is also encrypted. Yes, de-hibernating is slower if contents need to be read from disk. OTOH it's still faster than booting from disk.
Wouldn't the ideal solution then be to modify the OS to purge the disk encryption keys from memory on sleep? If you're concerned about unencrypted file contents in memory, purge the page/buffer cache while you're at it.

Then ask the user to re-enter the key on resume and get back to business...am I missing some obvious problem here?

I guess depending on one's level of paranoia, there might be sensitive non-file data sitting in memory...you could then quit the applications you're concerned about, and have the kernel wipe any unallocated memory before sleeping (I think by default it doesn't wipe pages until they're reallocated to something else, on Linux at least).

Obviously with flushing caches and quitting applications and so forth you're trading off some of the benefit of keeping the system alive, but presumably it still beats a cold boot every time you come back to your laptop.
Touché by Disney Research brings touch control to everyday things
I used to be on prime, but now just subscribe to items. If you subscribe to many items amazon usually does a really good job sending them out in a single box for any particular month.
These flyers didn't find ways around anything, they bought unlimited flights and they used unlimited flights. Even the ones who charged money for the companion seats say that it wasn't banned in their contract, they were simply using the product they paid for.
CGI is easy, yeah, but it has a lot of the same disadvantages as mod_php: no routing, no shared state, slow execution, server misconfiguration can expose your code, possible code execution if you accept uploads, etc.

There are approaches that'll let you dump a WSGI app (with a known interface) anywhere and have the web server still run it. Gosh, someone ought to write about those.
"But giving away the razor and the blades in order to make money on a subscription loyalty program as a way to sell everything else?"

As reported by CNBC in a recent special about Costco apparently all of Costco's profit is from their annual fees and they claim they break even on actual product sales.

Here's an article about that from a different news source:

http://abcnews.go.com/blogs/business/2011/10/costco-increase...
The Ph.D. Now Comes With Food Stamps
FYI, he original link has the actual images: http://www.nasa.gov/mission_pages/hubble/science/transit-mir...
https://freenetproject.org/
Ask HN: Where to buy men's suits?
After working in jeans and T-shirts for many years it looks like I'm going to have a job that requires me to dress nicer. I am not trying to make a fashion statement. It's just a uniform, a tool. Any recommendations?
Primer.
A garage startup accidentally invents time travel. That's pretty inspirational to me ;)
It boggles the mind every time I read about one of these "unlimited for life with a fixed initial cost" products.

In almost every case that I can recall it's been a result of a company having cash flow problems, often preceding bankruptcy. The article mentions that interest rates were high in the early 80s and it allowed AA to expand. They've done well to get away with it for now. Or maybe that's just a function of the cost being significantly high such that the market is small.

In the 80s in Australia there was a chain of health clubs that offered a life membership... shortly before going bankrupt.

This scheme has a number of problems:

1. Why offer frequent flyer miles at all? Those are to incent you to fly more but you can fly all you want anyway. I guess there's the option of giving them away but really you shouldn't get any;

2. Booking flights you never intend to take is obviously a problem. AA staff were complicit in that however;

3. An alternative would be to turn any ticket you buy into a first-class ticket. Free anything creates market distortions. It's nearly always better to have someone chip in something to incent the right behaviour; and

4. Life memberships are silly. If they want to attract the business flyers they were talking about it should be an annual charge.

AA are potentially looking at these people costing them money in the wrong way too. These people are essentially AA ambassadors who have paid for the privilege. How much does AA spend on marketing? How does it compare to the cost of these AAirpass holders? I bet these people otherwise sing AA's praises.

Also, what is the fill rate on first class seats on flights? I think part of the point of first class seats is they don't fill up giving premier passengers the ability to buy tickets on short notice. If so, it's incorrect to view each seat taken by an AAirpass holder as a seat not hold (in much the same way as the RIAA/MPAA view every song/movie downloaded as a one not sold).
I think that a good developer is one who can strike a balance between correctness (solving the problem at hand), elegance (the system is no more or less complex than it must be) and consistency (the "culture" of the program is the same in all of it's components).

I would put an aversion to complexity in the same box as an attraction to it. I.e. atheists are fundamental in the same way that christians are. Agnostics know what's up.
It's very different - most startups (in the HN world anyway), by offering an unlimited anything, are only losing the ability to make money off that customer in the future. They aren't having to pay high taxes for the rest of that customer's life, nor is he taking up slots that prevents them charging someone else for the seat.
> I've no complaint with this, but it leads to the mistaken impression that great applications are written in dynamic languages. They aren't. Great prototypes are written in dynamic languages, but the lasting replacement will be written in a dull typed language like Java/C++/C#.

Common Lisp is the only programming language I know of that provides both the prototyping power of dynamic languages and the execution power of static languages. This is achieved through the Lisp declarations system.

The maxima computer algebra system also offers a variety of algebraic declarations such as linear, additive, multiplicative, outative, evenfun, oddfun, commutative, symmetric, antisymmetric, nary, lassociative, and rassociative. In my opinion all programs should be written this way - the Lisp way.

> So far my fondness with Scheme has coexisted with disappointment at its unsuitability for real world tasks

I am fond of Scheme, Kernel, Arc, Shen and many other Lisp dialects. The unsuitability of these languages for real world tasks can be solved to some extent by embedding them in a larger host platform. Clojure does the embedding approach quite nicely.
i'm in but this post is 7 days old!
If you don't need the user's timezone immediately for their first request (which I assume is why you can't use a javascript solution), using getTimezoneOffset() works pretty well.

Shameless plug: I wrote a gem to handle this in Rails ( https://github.com/zmillman/browser-timezone )
If you have more than one statement, then autocommit is usually wrong, and what you usually want is transaction-per-request. If you have exactly one statement, then autocommit is exactly identical to transaction-per-request.

Also part of the transaction-per-request pattern is that the transaction is started when the first statement is invoked. So there's no overhead for zero-statement requests either.
Here is my chrome extension to replace old feature. Try it, first release is out. Any advice and comments are welcome!

https://chrome.google.com/webstore/detail/aaokajckoheafemlmj...
Sure. Check out SEOmoz.com. These guys provide great tools for SEO intelligence, and are not afraid to advocate doing things "the hard way", which will pay real dividends in the long term. If the tools are too pricey for the stage you're at, the blog is still invaluable.
As I recall a big issue with mod-ruby was that it used a single Ruby process for all scripts.

That meant if script A decides to rewrite, say, Array#include? to only work with symbols (or whatever), script B now has to live with it.
emails typically get fired off as part of a post-commit hook. Pyramid's transaction manager has explicit support for this pattern - as you establish "emails" within your trans, the actual send operation is deferred til after the transaction proceeds.
I suppose this will have been discussed in other comments, but it seems to me the ability to credibly commit here isn't bad. I'm not sure if verbal contracts are legally binding in the UK, but they certainly have a lot of witnesses, and the social consequences for breaking a very public verbal contract can be substantial.
It's only default behavior. The alternative is for any request that runs more than one query to be inherently but unpredictably unreliable; that is definitely not acceptable.

If you're doing something complicated, you're going to have to tread carefully anyway. No default could have handled your situation cleanly.

For what it's worth, zope transactions (which Pyramid uses) support combining notions of "transaction" from arbitrary other services and tries to do the right thing for a commit and rollback. I've used this to keep a database and mogilefs in sync, for example.
"It takes nothing to produce a hot game. You merely need somebody with a computer, a good idea, and the ability to make a game. Making a game is not rocket science."

Actually. Making a game that makes money IS rocket science (or at least as close as it can get to it).
Sounds like a problem with Ubuntu, really, not Linux.
Do you know of any similar products that exist for Europe? I'm in England and would love to fly all over Europe (and have been considering it for a while) but having a bluepass type thing would make it even more attractive. My google searches produce nothing so I'm not too hopeful :(
What I take from this is we should strive for the most elegant solution to a particular problem. Be it algorithm or software architecture.

For example, if I had in some way, the catalog of all the possible solutions to problem X ready in my mind, I'd pick the most elegant one. Not necessarily the shortest, but the most elegant, the one where you can spot the _solution's outlines_ easier.

I think seeing and appreciating this outlines would make you a connoisseur of fine software. You would strive for beauty and elegance, and appart yourself from unnecessary complexity.
The guy who memorizes songs and teaches them to people, at least the ones I know, don't have the mentality of "I want this song but 99 cents is too much and information wants to be free," he says, "I love this and I want to publicly engage with it." In the modern world, he's a YouTube cover artist, which I support wholeheartedly. Just as there is nothing wrong with burning a friend a CD for her birthday, or playing your iPod at a private party.

This doesn't threaten artists or deprive them of money you otherwise would have handed over, it just creates new ways to promote and engage with the artist's creation. See also Spotify, music blogs (IMHO not really piracy, but shouldn't be done without the artists' permission), radio, Pandora, last.fm, etc.

Pirate Bay is the guy who prints his own scores of someone else's work and leaves thousands of free copies on the street outside the sheet music store.
> If you're blasting your data over an unencrypted wifi connection, do you have a reasonable expectation of privacy? This seems to be equivalent to someone screaming the contents of their email, and then getting angry at you for eavesdropping.

Exactly. I agree with other commenters that Google is not to be trusted, but I think this article isn't even specific to Google--it's just another illustration that unencrypted Wifi is public, and anyone with half a clue should know that by now.
What's even worse is that he could have _at least_ faked it with a quick google search. Shows absolutely no effort on his behalf.
Good advice, but better advice is to stay away from GoDaddy completely.
Bigger and brighter 'supermoon' graces the night sky
West Africa Rising
No... From what I read people would get rewards from the credit card. So they bought say $10,000 in coins and deposited the coins back before the end of the billing cycle, winning a $200 cashback reward. That $200 is what the person doing this would profit.

That "hack" has the nasty characteristic of probably making everybody lose, maybe more than the $200 the guy was getting.

I imagine shipping was not free for the government, which also probably paid the credit card operator a fee. The credit card operator is losing money by paying rewards on a bogus transaction.
> This is why paying serious attention to encryption, and making it easy for people to use, might not be the mere fodder of "tinfoil hats" that some portray it to be.

Setting up WPA2 on your Wifi router is not very hard. Most routers now will do it at the push of a button. (I personally don't do it that way, I set everything up by hand through the router's web interface, but that's because I'm a techie.)
I wonder what this list would have looked like if put together 10, 20, 50, 100 or a 1000 years ago. I also wonder what people a 1000 years from now would think of this one.
The thing is, most of the time, it isn't overnighted. It's a couple of days before you get your deodorant unless you pay $4 per item. For that expensive gadget you need tomorrow or the day after, it's worth it, not so for your deodorant.
I get the feeling you aren't very familiar with Python. Actually I'm hard-pressed to name a popular language in which writing a string to a file is particularly difficult.

You don't have to check for errors in Python; most functions raise exceptions on error, rather than letting your program continue with a known bad state.

The `if __name__ == "__main__":` pattern is a cute trick to distinguish a module from a file being run directly. It's not strictly necessary; just a nice habit. It's spiritually similar to the checks you have to do in PHP library files to make sure they're not being run directly.

You don't have to pass `self` around. You just list it as a parameter. There are design reasons for this, it's a tradeoff, blah blah. Think of it as the price you pay for getting to type 'def' instead of 'function'.

I'm not a C programmer, and I doubt many people writing web applications are, so how does wrapping C functions with C names help me? Are `'b' in 'abc'` and `len('foo')` that difficult to understand?

I like to think I've covered my reasons for disliking PHP well enough by now.

Okay. You're not the target audience of this article, then.
Should I really learn Pyramid instead of Django?
I'm thinking about what would give me most value as a developer, one who already knows his python.
The article states that interest rates were high back then. If you assume that the buyers would use them for 40 years on average, and use a cost of capital of 15%, these things would make sense if the cost of providing the flights was expected to be less than about $37,000 per year. Change the assumptions to 30 years and 20%, and that figure becomes about $50,000. It’s not insane for the airline to think that typical buyers’ flights would cost less than that, especially since the marginal cost of even a first class seat would be low. It is true that the same people, who are probably rich, might have bought full price tickets anyway, but then again they might have traveled on other airlines.
5-6 round trips if you book two months ahead of time and pick the cheapest flights, maybe, but only 3 round trips if you only book a few days ahead and pick the flights which are most convenient for you. Flight passes are aimed at people who do a lot of flying and optimize for convenience rather than price.
Yes, this definitely needs to be prominent somewhere. It's a big feature for people who worry about data loss (like me!). I'm a compulsive saver -- i usually save after changing something as small as a punctuation mark, so pointing out that data autosaves is a big selling point.

Looks cool!! Thanks for sharing.
California is by far the leading state in luring venture capital
Yea, I wouldn't say this is evil, it actually solves a lot of the problems being discussed here with people not wanting to go through the hassle of a signup process without even knowing what they are getting into. With your example they are able to try the product immediately without going through all the "paper work" - if they like it then they can signup.
That's not the worst idea in the world, but it looks like it expects your python code to walk the whole html tree, and it's very much mingling of logic and markup. The great thing about wicket (well, one of many) is that your markup is inert html files, and you can put reams of static content in if you want, without cluttering up the actual code. Your component hierarchy has to match your html hierarchy, but not every tag needs a component; you just need to make sure A is a descendant of B in markup (with no other components in between) whenever A is a child of B in code.
A great write-up and a typical example of what you should never do as a service company.

The monetary damages for AA if at all (if any of their claims are actually true) is minimal (maybe $10-$20M over 30 years) - the damages to the brand, corporate recognition and being seen as a company that does not value their contracts as soon as it benefits their customers, might be of a magnitude bigger. And even a multiple of that in financial terms and years to repair the damage being seen as a dishonest organisation.

Faced with such a situation, with "bean counters" telling stories about something like that being very unprofitable or less profitable than expected in the first place, one has to use a strategic approach or even common sense. Particularly in such a situation - we are talking about people who have shown customer loyalty to AA for more than 30 years - 40M miles - what stories could they tell and what great advertisement for my airline this would be.

What AA has done here is only to demonstrate that those in charge of such activities have not the slightest idea of what they are doing and should immediately be removed from their positions and potentially sued for damages to the organisation (and this then might be billions).

If AA is clever they re-issue / value all these special air passes and make a big event out of that.

If you want to see when free air mileage is causing real financial stir-ups look to Lufthansa (about the same size as AA) - they are currently in a law suit in Germany being accused of serious fraud in 21M cases (and LH has already lost this case in the court of first instance) for taking away frequent flyer miles particularly from their best customers (those with more than 500K+ well LH is not known for being too generous with the mileage they provide on FF programs).

One outcome of this court case was that LH told the public that in the moment they have created accruals of about $4 Billion for not yet used mileage on their FF program - now that is what I would call some money at stake and not a few guys inviting people at airports on a free seat / upgrade - a seat that most likely otherwise would have been empty anyway.