skysight-inc/HackerNews huggingface dataset:
GHC is a bit of a pathological case, which doesn't make it less valid. I wouldn't really dare to estimate how much refactoring you need to do if you change, say, one constructor of GenStgExpr, primarily, because I don't know the GHC codebase. In my work I have had instances when I had to change datatypes drastically and refactor the code accordingly. I'd say, in all cases the type system was helpful -- I just go to every error location (very easy with, e.g., ghc-mod), and it's invariably a pattern-matching case, so I fix a bit of code here and there (20 LoCs at most) and it all worked. But the thing is, of course, if you change your datatypes all the time even these kind of small changes will soon become tedious. But then if one programs in Haskell in a hacking mode ("meh, let's try throwing this thing in, maybe it will miraculously start working") -- it just won't work. Haskell requires one to think well, before programming -- that's why I love it. I think, in the end it saves time.
Another problem might be that the datatype you are refactoring is fundamental to your program and is used in most modules -- I think it's just short-sighted design. GHC, for example, has several different program representations (Haskell, STG, Core, maybe some others), so a change to one representation would only affect a part of the compilation pipeline (namely, the translation to and from that rep and the associated optimisations/analyses). But if you really need such a fundamental mega-type that will change during the lifetime of the program, why not write an easier to manage interface to it? Either use the record syntax or write setter/getter functions by hand. Just $ my $0.02 where my=id
TEDx Stanford live
I come from an industrial (rather than consumer) background in electronics. There is nothing really interesting or impressive about this power supply. This is how you do it, you'd find similar designs in a wide range of industrial products.

What the real story is, is how cheaply power supply circuits are generally done in consumer electronics. They cut all kinds of corners and are quite amazing and often frightening. I actually find the cheap, hideous designs more impressive in some ways.
Well, I'm not very familiar with johnny-cache, so I don't want to say a lot. It's quite possible that it does everything guacamole does and more.

The point of guacamole is that you probably don't want to cache every database read. You probably just want to cache a few models. I.e., if your database has 1 million items (which are frequently updated) and 1000 brands (which are more or less static), you probably want to cache those 1000 brands but not the million items.

Once you've done that, actions like

{% for item in items %}
{{ item.brand.name}}
{% endfor %}

no longer involve sending 50 queries to the db. (Or even to memcached - 50 hits to memcached can still be 25-50ms.)

Guacamole doesn't support other cache backends, though that would be pretty easy to add.
Another example of how patents actually hinder and harm innovation. Which is not surprising when you start to think of them as government granted monopolies.
This is incredibly off-topic for HN.

However, I will add one more piece of advice for drivers: Take a motorcycle safety course. You don't /have/ to ride, of course, but it will probably be a lot of fun and it will teach you a LOT about your level of awareness on the road.

(For instance: The MSF courses teach you to look ahead about twelve seconds. I'm guessing that most drivers only have a couple seconds of planning, if that. Similarly, always having contingencies -- "where do I go if that truck changes lanes?" -- and noticing little things -- "that rear-view mirror is canted, so that driver isn't even bothering to look.")

Okay, back to r/HN :-)
Maybe a year ago I would of been very against a feature like this. But now, working on a Haskell code base for quite some time that has grown I have wished for something like this many times. Most often it is when changing intra-module data structures and functions just to try something out, and I do not want to update the rest of the module quite yet. Sure I could comment out the offending code and replace with undefined, but that is essentially what this switch will do for free. So I for one am looking forward to this feature.
Hands on with Glassboard 2.0 for iOS: simple, private group sharing
Please feel free to send me comments on the parts that make you squirm; I would be happy to update it and learn what I got wrong.
I don't even know why I am having this discussion:

To me the concept of a fun programming language does not make sense. Programming languages, frameworks, etc are tools and they suited for certain task. If you use the right tool for the right task programming is fun. PHP, however, is not the most productive tools for any (reasonably complex) task. This is just a fact. If you want to challenge that fact, give a concrete counter-example.

However, like I said before you can still be productive in PHP. I am still doing occasional programming in PHP and I don't hate it. I just wouldn't use it for a new project.
Very nice, immediately understandable and therefore immediately useful.

I would add a "today" button in your calendar popup, so a task can quickly be moved to today.
Mark Zuckerberg's Secret IMs From College - Business Insider
Since they claim they won't use it and he says it was probably a mistake, this sounds to me like exactly the correct response: Let them save face and "agree" with the change if they are so inclined. A high handed accusation of an ethics issue does not look supportable at this time. And it is likely the worst thing he could do.
Monitoring of Tomcat with VisualVM and VisualGC
You also have to put in the time and resources that Apple spent into making this. Samsung's came out after Apple brought it out to the market.
I agree with the gist of your post, however I must say that in my experience Apple products are manufactured to a standard that is 170% that of competitor's (really, just put a Macbook next to a Dell, or an iPhone next to a Blackberry and pore over the differences). On the features, I would say that roughly 75% more features are accessible to a casual user: you can simply do more without even thinking about it. However, to the professional user, only 15% of the features are available. (!) A professional user who got a degree in this subject can simply do literally six and a half times as many things on an Android or on a Linux desktop than with an iPhone or Mac OS X.

On pricing, I don't have any figures but do not consider it out of line to consider an Apple product as being a durable replacement for several cheap plastic versions. An investment in OS X in the guise of a $1800 MacBook Pro could easily take the place of a $700, a $500 and a $600 laptop bought over the same period of time. By the end of the period the specs of the MacBook would be severely out of date, however in other respects its usage may be preferable to the usage of the new $600 laptop. If you are not comparing on this basis, Apple products may be up to 300% as expensive as their competition, again as shown by the laptop example.

These numbers are scientific, have high statistical confidence, and good to eighteen decimal places. I show them with only one or two significant figures, however the full figures are going through a process of peer review and should appear soon in the IEEE Spectrum. Or not...
Market Place has more info about Morgan Stanley, the underwriter, supporting the Facebook stock:
http://www.marketplace.org/topics/business/weekly-wrap-what-...
via gojomo http://news.ycombinator.com/item?id=3993727

http://lockerz.com/s/209964861

Bid (size): 38.00 (x9999900) Ask (size): 38.01 (x146300)
After one of my Apple cables started fraying, I preemptively wrapped the ends of the rest with Sugru in hopes that it will help. Worked well so far, sucks that I had to do it at all.
About 3-5 min before the launch time there were many voices chiming in to say "ready". I remember one of them, "OSM" had to be asked twice before they responded ready, which was different than all the rest. Anybody on here know what "OSM" stands for? Is it orbital station module? Anyways, I was just wondering if it might have been connected with the abort (such as they saw the high pressure build up in engine 5).
I agree that you can only effectively spend a short amount of time focusing on a single task, but if the rest of your day is spent idling, it may be a sign you're not spreading yourself around enough. In software development, that might mean four hours focusing on programming and another four hours focusing on design, for example.

It seems to me that the idea of hyper-specialized employees is often the root of the problem. The brain needs variety.
Antakya biberi nasıl kullanılır
Also funny -- Diablo 3 doesn't work when I disable my graphics card. /s
Yes, things like changes to core library types are disastrous. But, if you have a core data-type that you know will change and you haven't isolated the impact of these changes by, say, using accessor functions, you're the one to blame. See my long-ish reply in the sibling thread for details. And, yeah, I've learned all this the hard way :(
"I've never known anyone who used ..." Sounds extremely anecdotal to me. I can assure you that the CPAP for me does marvelous things. My brother uses it, and he is extremely fit and lean.

I would not espouse such opinions without first finding some scientific literature to back up your claims. My device has cost me only 1500, and the returns on increasing my quality of life is well worth it.
This assumes everything is capable of being powered. QR codes can be printed on paper, chiseled into stone, engraved into metal; NFC hardware, for the most part, can't. (And even where it can, it won't last nearly as long as the equivalent code. Passive technology usually greatly outlasts active.) There will indeed be a great amount of NFC- and RFID-triggered hypertext in the future, but there'll probably be just as much QR, serving complementary rather than competitive purposes.
They, the authors of the article, have a correction prepended stating that the study was not focused on high-fructose corn syrup but on fructose in general. So, why can't they change the title of the article if it is mileading?
The good thing about QR codes is there's lots of capacity. Hashtags would become more complex and longer as additional locations are included, whereas QR codes look the same.
You clearly have a large pool of hardware. Your numbers mean nothing without knowing the hardware that DIDN'T fail.

To give a more useful metric, for the last 4 years I have maintained a company have about 150 machines. 50% are Macbook Pros. 50% are Lenovos. I saw, on average, 5-6 Lenovos have some sort of hardware failure per year. The Macbook Pros would see 1-2 hardware failures per year. The Macbook Pros were also giving about 6-12 months of extra life before needing to be replaced. The external packaging of the Lenovos would produce MUCH more wear year over year than the aluminum Macbook Pro.
Vibe.d – Asynchronous I/O that doesn’t get in your way, written in D
It sounds like you're comparing tiering with fascism.
I always tell people "its like saying you only use 20% of the boat to float".
"This is incredibly off-topic for HN."

You're almost completely correct, except for the "interesting to hackers" caveat in the guidelines.

Even with the caveat, this is probably still off-topic. Except that a lot of readers probably ride.

But still it's probably off-topic.

Except ... I've noticed a lot of weekend posts that are both off-topic and interesting, and I tend to see weekends on HN as a brief relaxing of the rules. Which I like.
$2/share is a lot of money to leave on the table for a nice weekend of press.
Facebook is AOL, Twenty Years Later
iFixit tore down a smart cover a while ago: http://www.ifixit.com/Teardown/iPad-2-Smart-Cover-Teardown/5...

There are two kinds of DisplayPort adapters, some which have are active devices that have a chip that does the conversion, and some which are passive that rely on the computer/video card to output the other formats. All of Apple's are the former.

I tend to get my converters from MonoPrice which is far less expensive than from Apple.
was expecting an adult friend finder clone
> A professional user who got a degree in this subject can simply do literally six and a half times as many things on an Android or on a Linux desktop than with an iPhone or Mac OS X.

I almost agree with you on Android/iPhone (though 6.5 times is a big, big exaggeration, more likely 40%), but absolutely disagree with you about OS X/Linux. To me (I don't do kernel debugging, but use tons of 'pro' development tools daily), they're on par, with Linux a tiny bit (a few percent) in the lead. OS X is more shiny and is more pleasant to use as a development machine, but in Linux your hands are freeer.
Google's Droid Sans Mono is a pretty good copy of Consolas:

https://www.google.com/webfonts/specimen/Droid+Sans+Mono
Some of it is well-built. But IMHO charger cables are not among them. Every charger for Apple hardware I used had cables to break down after less than a year of use, and I had to repeatedly replace them. The reason is the design of the connector that is very fragile and not resistant to constant bending and moving around that is common for a mobile device. When I used laptops from other providers, chargers - including cabling - lasted for years without any substantial wear - it was common to retire a laptop but the whole charger was still working as new. For Apple ones, it's definitely not the case. Cables are very weak and new L-design laptop connector is worse than old T-design and breaks twice as fast in my experience. They made it look much better than ones from, say, Thinkpad, but at the cost of durability. So here's a part that is definitely worse than the competitors.
Yes, I've done it. Very handy for dealing with trees.
Also consider using Johnny Cache or CacheMachine backed by memcached.

Johnny Cache does automatic invalidation, but will invalidate an entire table's cache on one write. If you have a site with a small number of writes, this is an easy and instant win. Setup is under ten lines of configuration.

CacheMachine, on the other hand, tracks the objects that were returned for individual queries. The queries are invalidated when one of the associated objects changes, but not when a new object is added to the db. I believe addons.mozilla.com uses this.

http://packages.python.org/johnny-cache/

https://github.com/jbalogh/django-cache-machine
Show HN: Auto-detect users' calendar from email address
I really like the input at the bottom. It leaves what's important _your tasks_ at the top.

The logo, yes, I'd put it above the white window, by the menu side.
Which means absolutely nothing. If two Americans have a kid while living in China, would that make him a Chinese?
I wasn't talking about the bleeding edge GHC -- merely the stable releases available to download from the official web-page with both sources and binaries. If that's "bleeding edge", it should clearly be specified as such. Anyway, I don't even use HP -- which leaves cabal-install as the only viable option. And why do I even not want to use the GHC version which is not in HP? Well, surprise-surprise, it turns out that Hackage is more than content to use the "bleeding edge" compiler to build packages and will happily report all the compilation errors (instead of using the usable baseline version included in HP). Well, it's a sore topic to say the least. Anyway, sorry for the offtop, I think we should get back to discussing why would GHC want to become a Python interpreter.
It's just the gushing over the thing that does me in. It's pretty standard for a vendor shipped item and TBH the only reason it's like it is, is due to the fact the last one they shipped was a pile of shite.

In the EU we have quite hefty electrical safety laws and I doubt it could be CE marked or approved in the UK at least based on the line voltage isolation.
That seems like an unholy amount of queries. Would be nice if there was an explanation as to the why behind the queries on those paths.
How To Generate ASCII art from Images
But they are aware of the problem and trying to fix it. The strain relief of this year's iPad cable tripled in length compared to last year.
> What, they do not count the RFC they parse?

No, they don't.

> I'd count that as cheating: if the RFC is part of the meaning of the system, it should be taken into account.

I don't think it is cheating. The RFC text is essentially arbitrary, and "god-given" as far they are concerned -- and must only be adhered to for compliance with other systems. (If they designed their own network protocols, I would have agreed with you). By parsing it and generating code, they guarantee that the code conforms with the spec (which is more than you can say for any other network stack implementation!).

And it's all down to what they are trying to achieve: They are NOT trying to minimize LOC -- if they wanted to do that, they'd build everything in obfuscated APL or J.

They want to get to a state in which a person can understand / audit the entire software stack of a system they are running. 20k was selected as what a person can completely follow & understand in a reasonable amount of time (weeks, not years or centuries)

You cannot (average human "you") understand/audit a TCP/IP stack without reading the RFCs; therefore, they don't think they need to double-count it, and neither do I. Furthermore, if tomorrow the world switches to curveCP, they wouldn't include the related RFCs either -- only the code they had to write to make it work.
if it was just a grudge match between tesla and edison i could respect edison a little more. it is possible to get so obsessed that he would have a blind spot and go out of his way to engage a competitor. think steve jobs promising to go nuclear on android. but edison went out of his way to profit from the work of Georges Méliès.
https://en.wikipedia.org/wiki/A_Trip_to_the_Moon#Distributio...
Do you get a message telling you there's a problem?
I rememember reading about Treffert and his "thinking cap" over ten years ago. I think it may have actually been in Wired.

This article was too short. I was hoping for a more "NewYorker-length" piece.
weren't these the same IMs released a couple of years ago when he was in court?
Thanks, I'll take these suggestions into consideration. One of the hardest parts about putting together the app was finding a balance between power usage and first impressions. Having used it for the past few days while developing it, I've found the add-task at the bottom to be effective, but it's great to hear other opinions from people who aren't as accustomed to the app as I am.
I agree with this. I have several IBM/Dell/Lenovo adapters and they are all in fine shape. My Apple adapters? Not so much -- they're all in various stages of cable breakage.

I really do not care how the connector sleeves look on my cables. I'd prefer them to last longer than a year or two.
USB cable ends fraying has nearly always been undue strain or user error, in my experience.

I've seen literally thousands of Apple USB cables in my work, and, while they probably won't hold up against heavy abuse as well as a rubbery booted end, they tend to either be totally fine or fraying at the ends.

The funny thing is that people with fraying ends tend to have all their cables fraying, whereas those with undamaged cables tend to have all undamaged cables.

There's something about use case here where Apple's cables just don't hold up to common (mis?)use case by a subset of their users.
Each side wants all of the rights and none of the responsibilities, which should be no surprise. Cyclists like to ignore traffic signals when they're inconvenient. Cars like to pass bicyclists unsafely when staying behind them is inconvenient. Both sides abhor signaling.

I think what we really need is less group labeling. When a car driver fails to signal, we don't generally think, "Man, car drivers are so inconsiderate." (Well, I often do. But I think that's unusual.) Yet when a bicyclist does something against the rules, suddenly this is taken as representative of everyone on two wheels.
Based upon my limited information regarding this latest change, I don't have a problem with it. However, their rhetoric for quite some time has revolved around statements along the lines of "why should you have to pay for these abusive users downloading X gigabytes every month?" Of course, in two years you will also be in this "abusive" category. I believe they will happily use marginalization in order to raise rates without objection.
>/me still waiting for my compiled, statically-typed pythonic language :\

Pike, Groovy++ or golang?
I listed all the hardware I personally owned. It is all caveated on IMHO.

Lucky you :)
One of the nice things about Haskell, is that changes that are disastrous in other languages are not necessarily disastrous.

I think any notion of blame is really irrelevant here. The discussion was whether this kind of feature is useful. I think you implied it wasn't, because the cases it were useful in are those in which you did something wrong. But that does not follow at all. It is very possible one is to blame for a horrible mistake in the codebase, and that it still needs and can be fixed. This feature makes that fix cheaper and more practical.
the entire cable will become strain relief and then the problem will start again!

I've had the same problem with all apple cables. Design over substance.
The issue isn't as much strain relief as it is people disconnecting the cords by yanking them by the cable instead of the connector.
The rather unique problem that PHP has is that it is almost as if it was designed with the primary goal of encouraging the programmer to shoot themselves in the foot.

Most PHP good practices revolve around defending yourself from language features, whereas Python good practices (for example) are mostly about making sure your code is readable and easy for someone else to follow.

Ultimately people will pick the language they have most experience with, but that's not always going to be the language best suited for the task.
Yes, this is probably a stupid practice. But if you're stopped at a red and see a biker do this safely, without causing disruption, and that pisses you off, then that is 100% your problem not the biker's.
As a rapid game producer, I'm calling this bullshit.

Fastest rapid game dev is with Flash, and nothing has come even close to it (just poke around game dev jams).

Now, if you need mobile support, go with HaXe, it has HTML5 target too. As well as native iOS and Android and much more.
Author here.

FWIW, I wrote this because I couldn't find anything else out there that did it. I'd be more than happy to use something someone else has written that accomplishes this task.

For more context, see the question I originally asked on StackOverflow:

http://stackoverflow.com/questions/10391111/can-the-underlyi...
That's a really good point - I'd like to add that. For now, today should be faintly highlighted on the calendar popup, but I agree that a more obvious "today" button would make it easier. You can also carry forward all unfinished tasks to today on the Monthly view, if that's your intention.
I think part of the lesson here is that so few manufactures bother to put any effort into design or quality at all that the ones who do get to name their price.
Ask for partnership for not publicizing it :)
Undue stain? If they're fraying then it's bad engineering plain and simple.

A $5 set of Sony earphones goes through several orders of magnitude more shearing, twisting and pulling and last years. Why can't apple do that?

Because it looks pretty before it has sound engineering.