skysight-inc/HackerNews huggingface dataset:
Googe Guice's documentation has a nice explanation of how to scope objects (from http://code.google.com/p/google-guice/wiki/Scopes). How they word it is specific to Guice but the underlying points are valid for any Java application

"Choosing a scope

If the object is stateful, the scoping should be obvious. Per-application is @Singleton, per-request is @RequestScoped, etc. If the object is stateless and inexpensive to create, scoping is unnecessary. Leave the binding unscoped and Guice will create new instances as they're required.

Singletons are popular in Java applications but they don't provide much value, especially when dependency injection is involved. Although singletons save object creation (and later garbage collection), getting a handle to the single instance requires synchronization. Singletons are most useful for:

* stateful objects, such as configuration or counters

* objects that are expensive to construct or lookup

* objects that tie up resources, such as a database connection pool."

I have to admit that when I first started coding Java/Guice I had 'singleton addiction'. Luckily with Guice, as someone else mentioned, it's just matter of deleting the annotation on a class to change your mind about that.

Anyway, if you use Guice and dependency inject your singleton classes, then the issue of being hard to test and disguising dependencies goes away, doesn't it?
It isn't drivel. He's saying that if you ignore what your heart and soul crave, you will suffer increasingly until you wake up and make changes. That's a practical truth, one worth repeating because most of us do so assiduous a job of forgetting it.

Realism? He identified a false assumption and corrected it. How much more realistic can you get?

don't change careers, get mental help

What's mental help? Sounds like something we could all use.

Work is what we spend most of our waking hours doing, so work that sucks is life that sucks. That's not "awfulizing" - those consequences really are bad. There may be good reason to accept them for a while, but that path is fraught with risk, because (we've all seen examples of this) "a while" can so easily turn into decades, into a lifetime. When someone breaks out of that trance, we should all applaud.
From Raising Right to that Minimal Site
On the other hand, the desktop interfaces can now be used on a Xoom or Galaxy Tab or iPad without having to zoom in to hit the right link.
They make you autofollow once you visit the page and are signed into Tumblr, not cool.
Thanks guys for ure suggestions.
Someday people will understand how awesome OpenBSD is, and add it to EC* and other could services.
Maybe, but I don't think it will happen before a decade. Besides people were using your argument as to why the 1st iPhone would fail.
One benefit is that you can replace the singleton instance with a mock or subclass for testing if you need to.
This is a nice article, as a non-Python programmer who's dabbled a bit in order to read some random Python code, it gave me some appreciation for the "Pythonic"-way.

I have to say though, that the thing that astonished me the most about Python is the Java-like "closures". I sort of thought it would be like Ruby, which I thought was closer to Scheme and JavaScript, and then I realized that Ruby isn't quite like them either. (I know Ruby is close with its lambdas and blocks, but it's not intuitive to me.)

This isn't necessarily to the detriment of Python (or Ruby) but just something I observed when trying to explain Java's lack of closures to someone who only knows Python.
Apps Bring Past, Present and Future Into Focus
I've done a lot of work for Dexter Holland in the past (and a little for Bad Religion but I never met Graffin) and I can vouch for him being a seriously smart guy.

Accomplished pilot, small business owner and inventor (several patents on LBS stuff from early 90s).
Polymorphic Computing, Explained in Stop-Motion (1959)
Music Gets Physical in Biorhythm Interactive Exhibit
So why can't everyone just claim they forgot their password? Additionally, what stops you from setting up some kind of hard drive degausser inside your case that is set to go off if the case is moved? Would you be responsible if the police officer removing your computer from your home inadvertently set off the degausser?
Nirvana's 'Bleach' was famously recorded for $600 in a really cheap Seattle studio.

Not the best sounding record but when you have no money, you do what you can.
Why Are Pointers So Hard?
Wrong, it has been in place for S3. This applies to EBS volumes. Please read the article before you comment.
I'm sad to see the old pinnacles of opensource agonizing. Worries me what will happen to the code inside one of these hosts if they go out of business.
I'm sure if you contacted them first you can set the HDD to ship right to Amazon and they'll load it up and send it to your home address.
Personally, I love that joining is ' '.join(list), since PHP (e.g.) works the same way, in that the first argument to implode() is the string.
I used to call it The Naive Psychology - people are trying to isolate some barely observable phenomena and then prove that it is correct (very scientific approach) forgetting that an isolated phenomena is mere creation of the mind. ^_^

These "results" also depends of:

Animated or depressive mood of teachers (private schools vs. ghetto schools).
Conditions of classrooms (illumination, cleanness, colors of walls, furniture).
The dress of the teachers.
Male/female students ratio.
Location of the school (suburbs vs. city).
Noise level (traffic outside, etc).
Weather (season) and time of day (morning/evening classes).

to name a few.

btw, It is much more important to emphasize the harmful effect of the parent's violence, childhood abuses and other negative feedback which is just a mirror image of observed phenomena known for centuries.
I heartily recommend "Introduction to Information Retrieval": http://www.amazon.com/Introduction-Information-Retrieval-Chr...

Skim it once to collect vocabulary, then use it as a reference for IR algorithms.
Keep your mallocs close, and your related mallocs closer
I think it's kind of surprising how low the number is. Almost certainly because space exploration is underfunded.

Over the last few weeks, there has been a lot of talk about the NASA budget, and there are a couple of things I think many people don't know. The total 2010 US Space budget was $64.6B. The entire rest of the world combined spent only $22.5B. NASA's 2010 budget was $18.7B, 83% of the spending for the rest of the world. It's more than a little ironic when those outside the United States criticize cuts to US space spending. Europeans, in particular, may want to consider the paltry $4.6B ESA budget before they criticize the United States. Space spending does need to increase; the rest of the worlds needs to start contributing.
First redefine "better". Better is not measured based against a report card. Strong programmers are better able at taking problems and representing them in an efficient manner in a programming language suited for the job.

Are you interested in an ambiguous project or one where the rules are pretty well-defined? Both are useful: the latter cultivates the ability to connive solutions to clear problems (building the mechanics), and the former cultivates the higher-level ability to dissect and attack a problem.

As an example of the former, just fish around for ideas from this and other sites, or just try doing something based on your own idea.

As an example of the latter, try to build something where the protocol is well-defined. For example, build a simple web server or quantitative trading platform or web-based git client. In all cases, the protocols are fairly straightforward, and you merely have to implement them.
Would it be totally ridiculous to argue that the encryption key is more like instructions for constructing data?

"Take these raw materials, and run the machine according to these instrctions:" seems functionally equivalent to "take this chunk of useless data, and run the machine according to this decryption key:". An incorrect decryption key produces data, it just produces garbage data, yes? This would be the same as providing poor instructions to the machine.

In this way, the court isn't asking you to reveal evidence, they're asking you to construct if for them.

Once it's been encrypted, it's been destroyed. "Decrypting" is analogous to "rebuilding".
Apple created Webkit, the engine that also powers Chrome. Webkit and probably other elements of desktop Safari power mobile Safari on iOS. The iPad makes up 1% of web use ALONE. Apple doesn't need to dominate browser marketshare. It needs to ensure top-notch web browsing for it's platform. This article is pure nonsense.
Yachtsmen yachtsmen 
ocean, USA
MD5 collision demo
To handle very high throughput, storing RRD files on a ramdisk works surprisingly well, if you can afford the cost and the loss of a few seconds of data - which most of the time you can.

A simple tar + gzip is all you need to flush to disk, at the frequency of your choice. It turns out rrd write operations are safe enough to do this without corruption. And the IO cost is minimal compared to rrdcache: rrd data compresses extremely well.
I'll tell you how: people are vain and stupid.

I haven't paid more than $8 for jeans in over ten years. Gotta love thrift stores. One man's expanding waistline is this man's ticket to near-new jeans on the cheap.
Unfortunate Infographic of the Day
Also stripe seems to be US only as well. As are most of these new payment gateway solutions.
...either that or Gource: http://code.google.com/p/gource/
The "Devil's Staircase", or The Shephard Scale in Practice
This has to do with the way that the way the algorithm works. When you click like, you like a page. Then, a server-side script on webperflab's server contacts Facebook's opengraph, gets a list of users, looks up information on the last user that liked the page, makes that user "unlike" the page (the page can do that, it's like kicking a user out of a group), and then returns information about that user. If, for example, another user likes the page before the script can return information about you, it will return information about the other user. The demo could probably fix this issue by having multiple groups.
I am not a lawyer either but I see the courts going the "neutral" route.
Wouldn't discovery of a degausser setup be equivalent to premeditated destruction of evidence?
That wasn't my point. My point is this hits hard because it seems very random, and meaningless, and I want to know how people can make sense of it. Animal cruelty is just people being cruel. Depleting natural resources is just greed. I can rationalize those things. They're extremely easy to think about
After reading both articles I'm left wondering what wacko liberal definition of plagiarism are you going with anyway?
The HTML5 'ruby' tag
LinkedIn Becomes 2nd Most Visited Social Networking Site In U.S.
Copied and pasted that into JSBin and it worked like a champ: http://jsbin.com/osihah/edit
>You can't just keep cutting out X% of the light and still have some there.

Yes you can.
I have only a trivial amount of experience experience with Scheme, could you explain how its closures are different from Python's?

I haven't used Java a lot either, but from what I have done Python's function seems more similar to JavaScript than to Java.
It would be the definition of destruction of evidence.
I'm absolutely certain you can get paid to teach it, you could also probably get paid to rent supplies / boards / gear at an appropriate beach, and you could get paid to demo/sell kiteboarding gear, and you could get paid to test / evaluate kiteboarding gear. A lot of different angles on that.
What will iPhone5 look like? Look at the iPhone 5 Pictures now
The purpose of encryption is to obscure and prevent access to data, not store it.
> The IBM wasn't.

IBM sold Real Computers to Real Businesses and Real People. That costs money, if only to look good to the CEO who doesn't look at cars that go for less than $300k. Money means quality, right?
Really surprised that LinkedIn has surpassed Twitter.
Heyelo.com (beta) [Mobile] - Discover people around you
Python has Java like closures? No comprende.
>Almost certainly because space exploration is underfunded.

Or because there is currently no benefit in conducting exploration using humans instead of robots.
Intel wasn't just late to the game for 64bit, EMT64 == AMD64. The cross-licensing that Intel was bemoaning for years finally worked in their favor.
I'm happy to help other BSD developers.
How Sid Meier Civilized Social Gaming
you can give a poor person money but you can't make them wealthy.
Without even looking at your profile I can tell by your remark you still live at home and are no older than 17.

That's not a bad thing. You just need to grow up a little. But for now, go ahead, obsess over needless things.
Not if you had it setup prior to any sort of court order to degauss the drive regardless of who tampers with your system or why. For example, Coca-cola might do that on a manufacturing system that controls the quantities and timing of the raw ingredients to produce the formula and is evidence only that they want to protect it. However, once the court has ordered you to turn over your system as evidence, you can't simply point and say "Sure, it's over there... take it" knowing full well that it will get wiped as soon as it's moved. That would be destruction of evidence.
Then it's just the Reddit Island all over again.

I've built mesh networks. I know they can be done. I also know that, even if you know which corners to cut and which equipment to use, they can be expensive and challenging to build out to any reasonable size. Plus, you still have the limited-hop issue, so any network resources that you want to access at any reasonable amount of bandwidth have to be cached at most just a couple of hops away.
Light is not slow, you're just comparing the wrong things. A processor computes instructions in parallel. It's like comparing the speed of 3 separate light beams to a single light beam. You can't say the 3 light beams were faster because they've crossed 3 times the distance a single beam could in the same time. And how many instructions do you think it takes the computer to impose a change of light?
I thought about that, but wouldn't it only be destruction of evidence if YOU were the one that destroyed the evidence? Just because it was set off when the cop/FBI/whomever moved your computer doesn't mean you wanted it to happen, right?
Yahoo to scan emails users send and receive
I am not a lawyer. This type of device can have legitimate use as well though. Think about if you are the guy that knows the coca-cola recipe. The destruction of the recipe by hd degaussing is good when a competitor comes to your office and steals your computer. Though, you would need a pretty large degaussing device to erase the hd beyond forensic analysis.
I usually think of it as Tor 2.0: Tor with better anonymity and encryption.

i2p has a very fair comparison between themselves and Tor at http://www.i2p2.de/how_networkcomparisons.html
Everyone was thinking years ago that no one could displace IE as the dominant browser - that Microsoft could and would pull every dirty trick in the book to kneecap the competition and outcompete with mass developers.

Now look - Firefox is sitting comfy, Chrome is a rising star, and on mobile, webkit browsers owns the whole place.

Windows can and will fall. If Microsoft is smart, they'll be the ones that put it to rest (like Apple had the mock funeral for OS9) on their own terms.
I'm worried you've fallen out of one trap (salarymanhood) into another (highly paid consulting). I'm sure you're good at consulting and it's clear from the way you write that you're excited to finally get paid what you're worth for a change.

I'd just hate to see you wake up in a few years in a very similar situation as you were in as a salaryman.

It sounds like you're significantly increasing your cost of living: new apartment, getting married, treating money differently ("whats $2k when my comfort is on the line"), etc. If you're not careful you're going to need to consult full time just to get by. Good bye startup. No time for that. Your new wife quit her job six months ago and that new car isn't going to pay for itself.

My advice: put off the enjoyment of making real money and get back to investing time in AppointmentReminder or something else that will pay big scalable dividends.

That's what I'd say if we were having coffee :-)
Nursery Wall Letters
Distinctive Nurseries offers a great selection of wall letters, hanging wall letters, nursery letters, wooden wall letters and painted wall letters.Our artists have the most creative selection of hanging nursery letters you will find. Browse our hanging wall letters and be amazed.
Because we can is almost always a poor reason to do something, but this may be an edge case.
The league is still busy trying to tackle the problem of keeping players out of jail. Maybe retirement plans are next on the agenda. I'm by marriage related to a recently retired NBA player employed by the league with the job of giving retarded simple advice about keeping out trouble and paying taxes, and so forth.

Anyway, the color of this problem of stupid decisions with large pro sports salary money is black. The cause is the disintegration of the black nuclear family. If a dumb white kid makes it big in baseball or the NFL, some reasonably successful uncle or cousin will come out of the woodwork to offer good advice. The dumb black kid, with just a mom and no functional extended family, will be prey to all kinds of hucksters.

There's plenty of literature about how these athletes lose their money: they get taken by local businessmen on deals for things like car washes and restaurants. They don't know how to value a business and they don't trust national financial markets, so they get soaked by local operators who trick them into trusting.
I don't find this one as informative as similar visualizations I've seen in the past. I think because the files fade out if they haven't been edited in a while you can't really see the progress of the project itself.
Environmentally Friendly Lawn Care
Environmentally Friendly Lawn Care and Maintenance Services offered by Nutri-Lawn. Best Lawn Care Service Provider in Ontario
Known Google+ issues
This article reminds me of a Cringley article that was written not too long ago, where he speculated that this was going to be India's century rather than China's, and China would have a decade instead. - http://www.cringely.com/2010/10/the-chinese-decade/

It also reminds me of seeing a report on infrastructure projects in Japan, with bridges going to nowhere and other crazy construction projects, all designed to pump up the economy as well as the pockets of construction companies owned by cronies.

It will be interesting to see how and where it goes, and I hope that Australia can diversify its economy - from mining and sending ore to China - to something else before China experiences any hiccups (or worse).
Read Hacker News in Your Terminal
And TrueCrypt's plausible deniability lets you provide a password that reconstitutes the scrambled matter back into a McDonald's Happy Meal.
ستار اكاديمي 8 البرايم الاخير  
ستار اكاديمي 8 البرايم الاخير
That's a valid point, but in that case the claim is no more reliable than random chance.
That's all a matter of perception though, no? Encryption is capable of storing data, therefore it can be used legitimately to do that. Just like most people use fans to cool people down during the summer, but people also use fans on large semi-rectangular pieces of metal to create hovercars.
Encryption is not just something computers can do. You can encrypt your handwritten notes. If you do so, can the government compel you to tell them what you have written? If they cannot, how is this different from having a machine act as your agent in the encryption?
Watch,Project Nim,online,free,megavideo
watch,Project Nim,online,free,megavideo
With the help of a good score by Dickon Hinchliffe, based Marsh terrifying suspense and shock when he shows Nim grows from a young chimpanzee in a restless beast capable of brutal violence.
Dreamhost for my personal site (and a host of other sites), Linode VPS for dev and experimentation.
I don't doubt that that is a better default, but I guarantee you that someone who understands money is going to offer them the same reverse annuity deal that unwinds the same protection for lottery winners. "Why get dribbled out a mere $200k for life when I'll put $2 million in your hand, cash, tomorrow? You think Jordan had to save to buy his crib? You earned that crib, dawg!"
Google to Stabilize Video for Google Talk
Entrepreneurship idea
Is there any requirement in the business sector that needs to be addressed technologically ?
"After all, when you introduce yourself in the real world, its apparent from either the looks or voice whether you're male or female."

Apparently, it's really not. I get called 'sir' all the time, and I'm a tall skinny chick with long hair. One memorable week, it happened four times. On another memorable occasion, I was wearing a bright pink coat.

"it paints things as being really bad for women in america; I doubt it's really that bad."

Let me tell you my experiences as a woman in America.

Online, we get to deal with turds like these: fatuglyorslutty.com. You know what else? 50-year-old men private messaging you pictures of their penises. It's happened three times. o_O

Maybe it's the anonymity, as one poster suggested, and clearly face to face interaction isn't that bad? I had a classmate tell me that I only got into college because of my gender. Never mind that my GPA nearly two points (out of four) higher than theirs.

Ever been flashed trying to work a drive thru? I have.

"having the gender by default will make it easier to make a better interface"

If your developers are worth their paychecks, they can probably figure out to handle 'decline to answer' and 'other' as the same case.
Download Mozilla Firefox 6 beta now
The decryption key doesn't construct data anymore than the combination to a safe constructs the papers inside it. The data exist independently of anyone's ability to read them.
Not for me. (Chrome, OS X)
Well, your first example makes sense. It ensures you're always referring to the same-scoped 'a' throughout your function. FWIW if you said 'global a' at the start of 'print_and_assign_a', Python wouldn't have a problem:

>>> a = 5
>>> def print_and_assign_a():
... global a
... print(a)
... a = 2
...
>>> print_and_assign_a()
5
>>> print_and_assign_a()
2

Your second example, however, seems to show an implementation detail of Python leaking out, and is probably a bug. Union starts off by making a copy of 'a' and adds the elements of 'b' to it, rather than creating a new object and adding the elements of both.

On a hunch that PyPy's implementation would be less special-cased, I installed PyPy and and it actually does print "Init!" on "c = a | b". So, I vote bug in CPython rather than an inconsistency in the language.

One more question arises, however. Should "a = set([1,2])" be equivalent to "a = set(); a.add(1); a.add(2)"? I overloaded 'add' on your PrintOnInitSet and it's not:

>>>> a = PrintOnInitSet(); a.add(1); a.add(2)
init!
Called add with item: 1
Called add with item: 2
>>>> a = PrintOnInitSet([1,2])
init!
I haven't downvoted you, but I think OP made a valid point highlighting how encryption differs from a safe, while you are, in my opinion, nitpicking on details.

For the practical purposes of a trial, I believe a well encrypted drive is 100% impossible to decrypt, while a safe is relatively easy to open. Again, the point here is to assume good faith and think about a real situation, not if it's hypothetically possible to decrypt it.