skysight-inc/HackerNews huggingface dataset:
You can litter printfs in your code, you'll just get a lot of hate if you do it in library code that you share. It's fine when debugging to write a "debug printf" function using "unsafePerformIO". Yes, it mixes side effects into pure code, but that's fine for debugging purposes.

-- totally OK! go ahead! it won't crash or anything!
debugPrint :: String -> a -> a
debugPrint s x = unsafePerformIO (putStrLn s >> return x)

You could also implement a memoization function using "unsafePerformIO". No, you won't get a visit from the FP purity police for doing so, it's perfectly fine. Why? Using "unsafePerformIO" in a function does NOT mean that that function is impure. It merely means that the compiler will not inform you whether the function is pure or impure -- the compiler's safety checks are bypassed when you use the function.

Here's how I'd type the memoize function:

memoize :: Ord a => (a -> b) -> IO (a -> b)

Notice how it gives you a pure function out. No need to do stuff at the runtime level, or write compiler hints. It just works. If you want to memoize some nasty function:

-- Totally fine! Unless nastyFunction is polymorphic...
nastyFunction :: Paper -> PublishedBook
nastyFunctionMemoized = unsafePerformIO (memoize nastyFunction)

If you're new to Haskell, don't write memoize yourself if you want a version that works with polymorphic functions as that requires some more advanced techniques. Most people who need a memoized function don't need a polymorphic one though.
My wife used to work for one of those 'top 100' companies, and now she works for a large company that is not in the list.

The top 100 company was far more broken than her current employer in nearly every possible way.
Seed Stage Firms are Dead, Long Live Micro VCs
13 Best Google Adsense WordPress Plugins | Latest Cool Tricks And Tips Window
Not being able to use a phone to make phone calls, when held in a normal way, is a major flaw.

Other phones put their antennas in the base for a reason - the hand doesn't cover the whole area. Try as I can, I cannot replicate the problem holding an HTC Desire in a normal, comfortable grip.
Content farms 101: Why Suite101 publishes 500 articles a day
Imagine this title: "Our 8 year old still crawls because we gave up teaching her to walk"

Absurd, huh? Not really. It's the same thing.

People walk because their parents absolutely, positively would not give up teaching them to walk. It's that simple. We need more of that thinking when it comes to "raising our businesses".

When I hear about people starting businesses and failing, I wonder if it's because (a) the business never had a chance or (b) they gave up too soon. I suspect it's a lot more (b) they most people would admit.

I think the secret to not giving up is finding a cause that's just about as important as teaching your child how to walk. This depends upon how your hard work will benefit others, not on how cool it is, how much fun it would be, or how much money it will make. You will have to succeed because of those who are depending on you just like your child depends upon you to teach them to walk.
CIA May Have Bought Faulty Drone Software
El euro continuará valorizándose frente al dólar
'BP management overrode the better judgement of Transocean personnel '

Got a reference for that? Since Transocean owned the rig, my understanding is that most of the responsibility for how to operate the rig lay with Transocean.
This isn't quite true. For example, the fairly new HTC Droid Incredible has Sense and the "with Google" stamp. Also the Motorola Droid X.

Maybe it's not the majority of phones then, but my point still stands that the stamp is fairly meaningless.
those are all dramas, big budget dramas too. I have yet to encounter a 30 minute comedy I would consider brilliant. But this show gets chuckles and the jokes are easy enough for most people to understand, even my non-IT wife understood the Googling Google joke.

No, Arrested development is not brilliant in the same way as The Wire. In fact, nothing is as brilliant as the wire; TV for me was ruined after the wire concluded.
In partnership of unequals, a startup suffers
IMHO Brilliant Comedies: 30 Rock, The Office, How I Met Your Mother & It's Always Sunny in Philly

Community is awesome but very early, too.
T-Mobile USA was just as open, perhaps a bit more because you could use European GSM tri-band phones.
> You can litter printfs in your code, you'll just get a lot of hate if you do it in library code that you share. It's fine when debugging to write a "debug printf" function using "unsafePerformIO".

Well obviously but I considered we were ignoring such "hacks" as unsafePerformIO. If you introduce it, then all of that is trivial to do so the discussion has no reason to be.
Keep in mind that your anecdotal experience with the HTC carries very little weight; I tried covering the iPhone 4 gap with my hand in areas with one bar, two bars, and three bars of coverage, and couldn't produce a visible drop--and that was specifically using an abnormal, uncomfortable grip to observe the problem.
One of the things I really like with Tornado is that there's a handful of test apps that ship in every release. This means people learning it always have a definitive, up - to - date demo of the code, rather than relying on some blog from 6 months ago which uses the previous API.

It would be super sweet if your minichat examples in various langages were shipped in the base Mongrel2 package. If you're about to say I should do this myself, you're right, and I might try it once I've finished shipping my app and have time to investigate.
This solution will give main basic support for most of the current PC browsers and for many tablets and mobile devices. The main goal was to support IE and the old versions of Firefox. Feel free to personalize or to add new media queries. Example you can target the new iPhone by adding &lt;link rel="stylesheet" type="text/css" href="/css/retina.css" media="only screen and (-webkit-min-device-pixel-ratio: 2)" /&gt;
Apple developed and maintained X86 OS X for years when Macs were PowerPC-only.

To me it seems likely that they have CDMA iPhones "just in case" as well.
You could also just use Debug.Trace.trace.

http://www.haskell.org/ghc/docs/6.12.2/html/libraries/base-4...
Facebook using tagged photos for authentication
Guidance you get from sample papers can make you a great writer
When a student is given an assignment and one sheet of instructions it is not enough for him to produce the essay or thesis and submit it in time. Though facilities like libraries and internet are available, students need help like the guidance from writingbee.com
Supporting Haskell and complaining about Haskell are both valid activities. There's plenty to complain about Clojure. However, the post does point out quite succinctly that while Haskell features might be incredible for simplifying many kinds of problems, it's shocking how many simple problems become staggeringly complex in Haskell.
Maybe the idea to get you started is something very simple, it's possible that your searching for ambitious products and big market gaps where something you can fit into a month of development can break even and get the ball rolling.
The media is making a mountain out of a mole hill here. Unfortunately for Apple, right or wrong, people listen to the media.
Talk by Founder and CEO of Omniture
I recognize this as well. After a few side projects running out of interests from my side, while still liked but my early users, I also started to question why.

I found the biggest motivator is user feedback. Especially positive ones.. It makes me stay up late to get another thing implemented or fixed etc.

If I would run out of encouragement from users or people around me for a while, I think that is when I lose interest.
Wondershare Photo Recovery for Mac- Mac Image Recovery
Lost images stored on Mac can still be recovered. The trick is to find out a right Mac image recovery software. This article takes Wondershare Photo Recovery for Mac as an example and introduces its features.
I'm 30 minutes into it right now, and wow. I normally don't watch videos, I prefer to read, but there's lots of gold in here. Lots on how to keep up with your family, research new subjects, build and sell companies, increase sales... just really really good.
Composing Functions
I suspect your eyes tend to glaze over because of the many strange symbols? Just relax - they are not actually hard, it looks more complicated than it is. That there used to be a whole O'Reilly book dedicated to them also made them look more complicated. But there are books for everything (probably even Notepad).
.CO Domain Name is Open to The World
I agree. It's easy humor. I've worked with a guy that lived in Antarctica for years, a mad dandy, a chef and wine specialist, and a bunch of people who've built interesting and cool things people use every day.

The IT Crowd seems to think that computers don't contribute anything to the world (meanwhile most of the audience is spending their time on a PHP based graphing app) and that 'IT wonks' don't do anything cool.

This is wrong. Half the stuff that most people say changed the world in the last 10 years was made by computer geeks.
+1 for Godspeed, although it does make me sad sometimes.
Losing faith is a form of procrastination, and procrastination is a way of not experiencing some feeling that for some reason we are unwilling to experience. As a general rule we procrastinate because we are scared of the results we would get if did not procrastinate.

In a roundabout way the feelings we are unwilling to experience end up running our life. So maybe it would be a good thing for you to take the quiet time to discover what is beneath the behaviour you abhor.

One way to do this is to ask yourself what is it that you would lose, or tightly held belief that would be invalidated, if you were incredibly successful. And then rather than try to answer this question with reason or your intellect, just write a page or two without thinking, and see what comes up.

Good luck!
"while $Language features might be incredible for simplifying many kinds of problems, it's shocking how many simple problems become staggeringly complex in $Language."

Replace "$Language" with almost any computer language in existence and that statement is true (given appropriately chosen values of "simple problems" and "staggeringly complex").

So it reduces to, "For any given language some things are simple and others complex. For other languages what is simple and complex differ".

Not saying much, really.
News sites reining in nasty user comments
A couple years back I read a blog post with someone complaining about how hard it was to implement the traditional Lisp "map" / "mapcar" function. Specifically, one that took N lists and a single function with N arguments. The author was totally right, too. I could implement this generalized "map" function in Haskell, but it required defining an extra type class which is a little extreme.

Of course, the real problem is that people who are new to Haskell expect to sit down and solve problems in the same way they've been solving problems all along. This author was used to the "map" function from Lisp, and wasn't thinking about whether it was necessary, or whether Haskell had a different way of doing things.

Here's what the "mapN" function does:

> mapN (+1) [1,2]
[2,3]
> mapN (+) [1,2] [5,8]
[6,10]

The reason that we don't want to use "mapN" in Haskell is because of the following problem:

> mapN (+) [1,2]
???

The result is either "[Int] -> [Int]" or "[Int -> Int]", with no clue as to which is correct. This is why Haskell has "zipWith", "zipWith3", ... Not as pedantry, but because the alternative is ambiguous. (You can use Control.Applicative + ZipList, but that's a tad verbose).

My conclusion is that Haskell's differences are what throw people off -- programmers have to relearn how to do things they thought they had figured out for good years ago. (In this case, "everything is curried" means "varargs requires type classes"). It's FINE if you don't want to learn to do things differently and I won't think less of you, I respect your choices for what you do with your precious free time, and I understand that you might want stuff just to work now without learning anything, just please stop stereotyping the Haskellers as a bunch of ivory tower PhDs. I'm not even done with my Bachelor's.
> Javascript's notion of logical truthiness is extremely difficult to hold in my head.

So it isn't intuitive to you that an empty object and array should both evaluate to true, but neither are equal to true, the empty array is equal to false, and the empty object is neither equal to true _or_ false?
Fix Apple boo-boo with a Band-Aid
I wish all cars came with black boxes and 360-degree video coverage so that we could voluntarily supply this information. People lie when they get into a fender bender. (Note: if you live in a neighborhood where people key cars, either stop parking like a douche or you need to move to a better neighborhood. If people feel free to vandalize in a place, they'll also do other crime.)

I'd pay $300 for a device I could just forget about until I needed it. If I recall correctly, video cameras without sound do not violate most wiretapping laws.
There's just something massively wrong with "public servants" claiming they can't be photographed while performing a public service.

Bullshit. There would be no complaints if some of them weren't incriminating abusive cops.

Notice how many of the cases against photographing are in potential (or blatant) police-abuse situations. The public and the government should be applauding citizens for helping to maintain control, not punishing.
I felt the same, basically. There were a few very funny episodes, but on the whole it was pretty much "meh". I think that it mostly pokes fun at the it people, so it's not laugh "with" it's laugh "at".
JQuery Books for HTML, ASP.NET, PHP Developers and Designers
I've heard of duck-typing, and static-typing, but this is the first time I've heard of Schrödinger-typing...
Lindsay Lohan due in court to report for jail term
I had a teenage girl rear-end my car and total it back in the 90s. I was pulling out on to a 4-lane road at night in an underpowered car, she was 1/3 mile away. She dropped her cell phone about the time I pulled out, so she never even saw me, even though I was in her lane for ten seconds or more.

She slammed into me at about 65. I was doing maybe 30. It was a hell of a wreck. Thank the stars nobody got hurt.

At the time she was very apologetic, humbled, and embarrassed. She was crying -- it was quite a sight. The trooper wrote her up, and I gently made sure the trooper noted that she said this was her fault.

Three months later when the court date came, it was a different girl. By then she had convinced herself that we were at fault -- she was not speeding or doing anything wrong, we had pulled out in front of her without giving her time to slow down

I honestly think she didn't feel like she was lying. Memory is just a funny thing.

I wish we had one of the cams you're talking about. Seems like there is a tremendous need for them (hint! hint!)
But in practice, especially regarding this particular issue, it's effectively the opposite.

Because it's For The Children™. And, For The Children™, our legal system is turned upside down, causing huge amounts of damage, including damage to The Children.
I don't think it can be done by capturing the middle click, but you could achieve the same effect by changing the script such that the HN submission ID is added as a url fragment id or dummy URL param to the submission link. Then another script can be used to check the referrer property of each page loaded, and if it points to HN you could insert an iframe and open the comments link using the submission id in the url.
The Psychology of Happy Passwords
> Myth #18: Flash is evil

Flash steals my focus and my keyboard shortcuts. Flash is evil.
Proposal for a Q&A site on Copywriting & applications
"...corporations offer such perks as BMWs and $15,000 signing bonuses, as Raytheon did in June for software developers with top-level clearances."

That seems very low, considering the relative scarcity of people with TS clearances and the level of compensation made by software engineers in industry.

Am I right?
>> But the US missed to invest in its infrastructure
> By what metric?

I'm not a civil engineer, and I don't know if anybody can tell reliable numbers at all for that issue. But the US infrastructure hasn't received proper maintenance in the last decades if one can trust certain studies. And this is getting serious for some areas in the next couple of years.

http://edition.cnn.com/2010/US/06/22/map.infrastructure/inde...

Looking at the downward trend for most cathegorized domains since 2001 is not a good sign for US infrastructure. One may say that everybody involved in that business has his own interests (government(s), construction businesses, consultancies i.e.) and is trying to defend them or make profit out of certain decisions. But stretching the infrastructure to the upper limit of the designed lifetime without proper maintenance until then just accumulates infrastructure investments, mostly towards a higher figure. (It's always difficult to find reliable sources regarding that issue, with a lot of lobbying going on in that area. In that case I simply trust the American Society of Civil Engineers for judging about that issue because my own lack of knowledge and expertise.)

> That's not how these kinds of things usually work. Usually the longer you can put off an upgrade, the cheaper it is to maintain a system when you amortize it. And I can't see why this would be any different in the grid (or roads, or whatever else).

It's not only about the equipment working until or even over the designed lifespan and/or just replacing them, but the aging grid is characterized by a couple of points. There's an interesting book called 'Aging power delivery infrastructures' from Willis et al. (2001) about it: http://books.google.com/books?id=1GcxSDpvdzYC

Basically in that book the authors point out 5 main factors: 1. Old equipment, 2. Obsolete system layouts, 3. Old engineering methods, 4. Uncoordinated and non-optimal use of distribution, 5. Old cultures and ideas.

I think there hasn't been any major improvements since the release of the book, at least no I'm aware of. And this is definitely not an US-only issue. But I think there's definitely a need of rethinking and reengineering the power grid.

It will be a big effort for western industrialized nations to bring the grid, which is mostly pre-70's, into the new century. And just by pushing the lifetime of this old and inefficient grid doesn't make it cheaper (higher failure rates, inefficient equipment, blackouts, i.e.) in the future.
Was the camera obscured - as it appears to be? In which case I can kinda see the issue they have (i.e. unaware of being filmed). That seems different from most of the other cases where the filming was pretty overt.

Still; it is an extremely bad reaction even so.

The thing that shocked me most was.... he drew his gun. Are things really that bad that a traffic stop requires a drawn weapon? Jesus :(
The function "unsafePerformIO" is not a hack, it is the tool that allows you to write safe functions with the correct, pure type signature even though the compiler cannot prove that the function is safe.

For example, suppose you write "memoize" without using "unsafePerformIO". Here's the resulting type signature:

badMemoize :: Ord a => (a -> b) -> IO (a -> IO b)

The resulting output has type "a -> IO b", but it doesn't actually do IO and it has no side effects! It's a normal, pure, referentially transparent function, and it shouldn't be in the IO Monad. The correct signature is "a -> b", just like the input. The "unsafePerformIO" function is a non-hack used by careful programmers to expose pure interfaces to code that uses impure constructs.

See the FFI tutorials for more examples of using unsafePerformIO.

(Of course, unsafe does mean unsafe... you can easily cause segfaults with that thing, you have to use it correctly.)
Oh, this is the same CNN that

"CNN yesterday ended the 20-year career of
Octavia Nasr, its Atlanta-based Senior Middle-
East News Editor, because of a now-deleted
tweet she wrote on Sunday[...]"

http://www.salon.com/news/opinion/glenn_greenwald/2010/07/08...

So you know, whatever
sorry, was too tired to proof-read it and can't change it anymore :(

Maybe an admin can help? Thank you!
I was stumped for a second, then remembered. Brass Eye, brilliant!
Because GIMP is ugly as sin, a pain to use, overly complicated and terribly huge (the dmg is 78MB versus a 15MB zip file for Acorn). And I'm not even into actual design/drawing.

If you want open source software, at least go with Seashore which doesn't look like complete crap.

Also, because Acorn is a good image editor and the FlyingMeat crew is damn nice.
I think the girl is fine - but she sends mixed messages - she's trying to explain whiteyboard, but she's trying to be a little bit flirty - there's a long awkward pause at the end that needs to be shortened, and the moustache is really gimmicky.

Also, if you stick with the same girl (which I think is totally fine), you should have her wear a more professional outfit (not to sound sexist or anything). What's your biggest potential market? (offices i'm guessing?) You should have her match that - so for offices, maybe business slacks and a professional top. Right now she looks like a college student, which is fine if you're trying to cater for that market.
frankly, 24k still sounds like a bargain for a satellite in space!
Sure it will, if the price you've set as max is below the current spot price, which is the only reason I can think of that would cause these kinds of delays in launching an instance.
Google Translate can give you at least basic idea. (Though it fails at quite interesting places.)

I don't know, FB page is a bad format for this -- it's flat and limited discussion, with artists making just few remarks about the overall design. And rating just a screenshot of the site… I guess that the idea is interesting, but the execution… isn't that great.

(Ah, I'm wrong as usual. Sorry. They are making much more elaborate critics at different pages and notes. That FB format is really bad.)
The article is kind of an infomercial, but I hope the outsourcing trend continues :)

As an Uruguayan, I believe that both Argentina and Uruguay have well-educated middle class with decent knowledge of English, reasonably good universities with high standards (if you hire a Computer Engineer from a local university I can guarantee that he's a survivor and a good learner at the very least), and while local standard of living is more expensive than India, a below-average US wage is a princely sum here (I make U$ 1.200 after taxes which is U$ 2400 before taxes).

Local governments heavily encourage software development, so it's mostly tax free for now, though employment as a full-time employee is still a bureaucratic nightmare (you're much better off hiring someone as a contractor or independant firm).
World’s First Pirate ISP Launches In Sweden
The problem is that you need to accept that you are a starter not a finisher.

You loose not faith but interest as soon as you realize that you could actually do this and here comes the important part *if you wanted to!

So if you want to do something about it, you need to make sure that once you have established the groundwork someone else will take over the nitty gritty of finishing.