skysight-inc/HackerNews huggingface dataset:
__del__ is actually perfectly deterministic in the moment it is called: as soon as the reference count reaches zero. See http://docs.python.org/reference/datamodel.html#object.__del...

So when does it gets decremented? When the variable gets out of scope, or voluntarily when you call 'del', just as in C++ or D. The difference lies in the notion of scope which is just different than of the one of C/C++/D/Java/C#.

Example:

from __future__ import print_function

class Foo:
def __init__(self, text):
self.text = text

def __del__(self):
print("deleting %s" % self)

def __str__(self):
return ("%r(%s)" % (self,self.text))

def bar():
if True:
print("+scope 1 in bar")
f = Foo("in bar")
print("-scope 1 in bar")

if True:
print("+scope 1")
bar()
print("bar quit")
if True:
print("+scope 2")
f = Foo("global")
print("-scope 2")
print(f)
print("-scope 1")

will output:

+scope 1
+scope 1 in bar
-scope 1 in bar
deleting <__main__.Foo instance at 0x1004d4a70>(in bar)
bar quit
+scope 2
-scope 2
<__main__.Foo instance at 0x1004d4a70>(global)
-scope 1
deleting <__main__.Foo instance at 0x1004d4a70>(global)

By now you have noticed that the scope is function-wide (or module-wide for global code).

So you can write the exact same code that he wrote in C++ in python and it would work the exact same way, and it doesn't create the Java dispose() mess of slide 12.

There is a twist though. Exceptions. Say you have an uncaught exception raised in bar(), then the Foo object created in bar() will be referenced in the stack frame of the exception, which belongs to the caller of bar(), so the Foo object reference count will drop to zero only after the caller scope closes.

Try it for yourself by adding this function:

def baz():¬
try:¬
bar()¬
except:¬
print("caught")¬

and calling it in place of bar() after "+scope 1", while raising any exception in bar().

If you want to override this behavior you can just as well call del when you want to get rid of the object, which is just as forgettable as adding 'scope' to variables declarations in the author's almighty D.

An interesting task is to examine (and why not, control) the gc behavior with the gc module (http://docs.python.org/library/gc.html)
I never said it was our duty. Hell, I even said I didn't like it. It's a moral judgement many folks make, is all.
Come on now, most people have a huge chunk of their net worth tied up into their homes. He's worth billions (supposedly), so his $7 million house is nothing compared to what he could live in. Also, he's getting old so he needs to stop sleeping on a matress on the floor of a rented apartment. Give the guy a break :D

On the other hand, I reallllly don't see how that house is worth $7mm. It's nice, but not that nice...
Ask HN: Recommend a startup that has developed a good simple time tracker?
For a single person legal practice/lawyer to record time.

The fewer features the better - just good simple time tracking. Maybe with an iPhone version?
Occam's razor. You are likely more educated than he is. But why be a douchebag about it? If your goal is to convince people of your point of view, then pissing them off is directly contrary to that.

On the other hand, if your goal is to make fun of the dimwits that surround you...

It's a fact that the world consists mostly of dimwits. I'm a dimwit about virtually everything, except programming. But it would be much more satisfying for me to teach you something programming-related, rather than to point out how stupid you are for [X programming mistake due to lack of knowledge], don't you think?
Great app. Next week I'm releasing a project for the Isle of Man which crowdsources the recording of location and health of Elm trees (via iPhone and Android app). The Island is one of the very few locations in the UK which still have a healthy population but has recently suffered funding cuts meaning Gov. surveys are no longer being done, and hence the need for a public solution.

If the app could recognise more species of elm (English and American seem to be there, but no Wych or Dutch for example), would be a valuable tool for users trying to contribute to the project.

The source for the Django app and PhoneGap-based mobile app will be up on GitHub next week, and the data is publicly available via our CouchOne instance (http://redrobot.couchone.com/_utils/database.html?openelm) – the project isn't live yet so there's only a small amount of data.
Groovy is different to Scala and Clojure, the other two languages in that blog series, in that Groovy uses the Java classes whenever possible, and isn't intended to run on the CLR. Scala and Clojure were both intended to be dual VM from the start. Rich Hickey says the 'C' in Clojure is for CLR and the 'j' is for JVM. Scala and Clojure have their own collection classes runnable on either VM, while Groovy is JVM-bound.

And of course Python and Ruby do it differently, having J- and Iron- implementations, each at different versions to the primary implement and each other.
I'm from England and for sure, when I'm in America I'm eating in restaurants/hotels in NYC/LA, and just seeing food prices in the occasional supermarket I happen to be in.

My query was purely based on the idea that is for some reason in my head, not on any actual experiences.

Cheers for the elaboration!
MondoNet, a global wireless mesh network
I'd be really interested in trying it. I currently just go to different vendor's to try out on actua devices in person.
That's so much more verbose than using tables. What do you gain?
איפור
an amazing professional make up website.
Honestly, in 90% of cases it's purely a choice. Most people in North America can't pay rent because they need to live downtown and work a min wage job. Let me tell you that there are plenty of starbucks in places with lower rent. If you can't pay rent in North America have 2 arms 2 legs and an IQ of 100 it's because you're spending your money stupidly and/or lazy.

My ex wife (IQ of 140-150) phoned me the other day complaining about how she can't pay rent. Note that she lives in social housing despite making in excess of 68K per year. She works for the gov't and could go to any number of places with cheap rent, yet she insists on living in some of the most expensive areas of Canada.

Two weeks ago she was raving about how much fun the new Green Day edition of Rock Band was and next week she is going on vacation.

Think there might be a connection as to why she can't pay subsidized rent let alone market rent?

When I was with her, I bought my own place at 22 while working a crap tech support job.
Amongst first-world, developed nations, the us has the highest inequality. Developing nations, with a rich established elite, little to no middle class, and a massive lower class will obviously score worse than the us. They are not, however, the countries by which we should judge ourselves. Look to the productive nations of the world for an apt comparison, and you will see that the us is an outlier with an ever-richer upper class and a shrinking middle class. This brings the us in line with developing countries, which is hardly where it should aim to be if the goal is long-term sustainable growth, the benefits of which are not limited to a select few.
Globalization could be argued to be a market solution for war. If your economies are interdependent you're much less willing or able to enter war. Seems to have worked in Western Europe.
This is one argument:

Every human deserves to live in dignity. If someone is unable to earn enough money to live a dignified live, society has to provide the means, wealth has to be redistributed.

What exactly living in dignity means and how exactly wealth should be redistributed is certainly always up for debate but this is the basic outline of a pretty standard argument. I would, for example, be very surprised if less than a large majority of people in my native Germany agreed with the basic argument.

Those who agree with the argument have compared the immorality of taking away someone’s money with the immorality of not enabling someone to live a dignified life and concluded that the second violation of rights weighs heavier.
I suspect that if you took the EU as a whole it probably have a much higher amount of inequality than any one of its constituent states as the differences between these states are currently ignored (and they are pretty big - compare the GDP per capita of Luxembourg ($81,800) and Bulgaria ($12,800)).
I'm reading it right now.
"In a series of articles labeled “Java.next()” I’ll be discussing modern alternatives to the Java programming language."

i.e., they're all labelled "java.next()"
The Curious Story of Saddam Hussein's FBI Interrogation
There's plenty of problems with the system, including people who are able to get far more than they should out of it, and people who don't get enough from it. That doesn't mean we should scrap it entirely.

A counterpoint example (although this is from the UK, but similar thing). When my sister was unemployed a couple of years ago, she signed up for unemployment benefits ("job seekers allowance"). That was something pretty low like maybe USD$100/week, but it was OK as she was living with parents and not paying rent. The purpose of job seekers allowance is, as the name suggests, to support people looking for work, and you stay on it you are meant to regularly prove that you are doing your best to find a job.

What she found was that, while she genuinely wanted a job, and wasn't picky (she wasn't thinking "I need to get a job suited to my skill set in a really specific industry", she would have been happy in a supermarket), the government staff that she had to see twice a month clearly didn't care about helping her find a job, and didn't even care about checking whether she was trying to find a job herself. To them it was all about ticking her off on a list and paying her the money.

That's really terrible, because it means that if you want to get benefits instead of working it's incredibly easy, and because, if they had bothered to help her find work sooner, she would have spent less time getting benefits, therefore taking less money out of the system.

So, was the system good in this example? No, it was terrible. But, at the same time, because she couldn't find a job, she did need the system, and she would have been much worse off if it didn't exist.
For most intro CS courses, the language is not as important as the lessons being taught. That being said, Python is an amazing language. I don't believe you're missing out on anything that you couldn't otherwise pick up later on if you were interested in learning Scheme as a language itself.
Jumping on the socialism badwagon in response to concerns over income inequality is not a well-considered view. The American economy is predicated upon consumerism, which requires a strong middle class. Nobody is saying we should take from the rich and give to the poor, rather we are saying that those [productive] members of society who find themselves marginalized by the increasing polarity of capital are the primary drivers of the economy that produces that capital in the first place. It's not about taxing the rich and giving to the poor, it's about ensuring that the burden if taxation is shared equally and that the benefits thereof are invested in education and other programs that ensure continued competitiveness.
Why are not using any color information in the feature vector? Does it result in poor performance improvement?
Obama-Zuckerberg and Expeditionary Economics
you're right though, wonder if it was intentional given the first sentence of the article.
Why Should Go With PHP Web Development?
Seems surprisingly modest.

5 bathrooms though? America makes me laugh. Apparently a house isn't worth much over there unless you can take a dump in a different room everyday of the week.
I believe the .net versions of both scala and clojure are rarely used and not a main focus.
I can't pay my bills.

I've been in between jobs for several months. I have less than $1k in the bank.

I had a confirmed job offer from nVidia. Then yesterday, I was notified they just went into a "hiring freeze" due to their stock being down. So even though they have 2 billion dollars in the bank, they can't hire me. Poof, I just went from "decent living" to "likely impoverished". (I've been in the process of getting a job there since January. Everything went very positively at every step of the way, so I didn't try to pursue anything else.)

My wife is displaying signs of schizophrenia, which has become acutely evident to both of us within the last several months (and slowly evident over the last 5 years). We're both freaked about it, especially because there is literally nothing we can do. She was just hired at a coffee shop, so there aren't any health benefits. And since we're married, she can't use her father's insurance.

I personally suffer from either hemorrhoids or rectal cancer or stomach ulcers --- I can't go ask a doctor because, again, no job = no health insurance. So I try to ignore the blood and quietly hope it's nothing serious, even though there's a possibility it might be.

Where's my charity? I don't get any. And I don't want any, unless it's to help my wife.

Because people are supposed to deal with their own problems.

It's not easy. In fact, it blows. But that's why they're called "problems". You just deal with them. You have to.

If you want to be charitable, then email me an offer to let me work for you remotely. I have a decade of experience and can solve virtually any software task. There's just nothing in St Louis MO, which is where we happen to be stuck at.
Golden Triangle Tours
Taj Mahal Tours arranging golden triangle tours, tour packages to golden triangle, agra, delhi, jaipur tours, Cheap tour packages to golden triangle india, holiday packages to golden triangle, budget golden triangle tours and more.
Agra Tours,Agra tour packages
Enjoy a wonderful train journey in the culturally important cities of Delhi, Agra and Jaipur. Cover all the historically important tourist attractions of the cities that are offered by this tour.
Inequality of outcome is a small price to pay for liberty.

Milton Friedman has some interesting thoughts on the subject:

Friedman and Sowell on Equality http://www.youtube.com/watch?v=WJBeuR0xEP8

Milton Friedman - Redistribution of Wealth http://www.youtube.com/watch?v=MRpEV2tmYz4
Thanks. I've been looking for something like this for a long time, and I've implemented around 3 different solutions for doing this (pure bash, python, c) but none has been as instantly useful as this.

I wanted something like DJBs daemontools but with less configuration and setup. And I've seen nohup, daemonize etc. But these loose ownership of the running process, and you eventually have to do hacks if you want to do stuff like auto restart or signal degradation.
That didn't seem like a thorough deconstruction at all, just a bunch of mostly incoherent rambling that manages to confront Konrath's previous position with his new one and saying "look it has changed". And when part of the argument involves insulting the person...

As for the only meat in the argument - that "many, many people are out there doing number 3 and getting nowhere"- it suffers from the bias I mentioned in my original reply. This is also true for print, you just don't see it because they don't get published at all. And even if the percentage of unsuccessful authors is higher for ebooks (for which no evidence is presented) that's ok since higher margins for authors and more direct access to their readers should be able to support more niche authors.

The argument that Konrath does better than most because he has a backlog and name recognition is just comparing apples to oranges. Of course established authors will make more than newcomers. The real question is will an established ebook author earn more than an established print author. And the math I do there is that for the margin the publishers take they provide very little that can't be provided more efficiently, so they will die when they cease to be gatekeepers to distribution (very soon).
I think he is trying to say that mobile is still
in a gold rush, and the Mac App Store is what an app store on a stable platform looks like. I'm not sure I agree with that, but it's not completely unrelated.
Epilepsy in Autistic Children Is a Cause of Concern
RCB vs KXIP IPL T20 2011 Match 47 
Check out what Astro Pandeet feels about today's 47th IPL Match between Royal Challengers Bangalore vs Kings XI Punjab.

Astro Pandeet has been giving more than 75-80% of most accurate Cricket and Other Speculation Report Predictions.
Sean Parker:Facebook Should Not Have Won, MySpace blew it
Milton Friedman - Redistribution of Wealth
Best Refrigerator-3 Door Refrigerator
Buy the best refrigerator / Fridge for your home with the 6th Sense Cooling System in Single Door, Double Door and 3 Door Refrigerators.Refrigerator: Double Door Refrigerator.
ارقام جلوس الثانوية العامة 2011
ارقام جلوس الثانوية العامة 2011 ارقام جلوس الثانوية العامة 2011 ارقام جلوس الثانوية العامة 2011 ارقام جلوس الثانوية العامة 2011 ارقام جلوس الثانوية العامة 2011 ارقام جلوس الثانوية العامة 2011
er, "GOT"?
Yeah even i hope so!!! There are a lot of people out there who are desperately trying to live properly, so i guess the multi-millionaires will come as well, seeing their billionaire superiors!!!
It's hard to tell whether the guy is being actively intellectually dishonest (ie. is aware of what the major factors are in increasing inequality but is choosing to ignore them) or simply naive to the point of dimness.

Pointing out these major factors instead of merely asserting they exist might be a more productive way of addressing the OP's comment. I, for one, would be very interested to know what factors you believe contribute to income disparity.
Watch manny pacquiao vs shane mosley Livestream
In my experience, this is a good opportunity to gain insight on how sane a company really is. If a company puts there business before such a unique event, something is wrong.

I had such a case with the (rather expected, as in "old age") death of relative. Working freelance, we had to call a number of clients that I would have to take a few days off for funeral arrangements spontaneously. Luckily, all of them were very supportive and adjusted their timelines accordingly.

I don't know what I would have done if any of them had a problem with that situation. Chances are high I would have dropped the client as soon as possible.
Why so snarky?

Groovy's syntax is so close to Ruby's you can barely tell them apart sometimes, and its tooling as pretty good, certainly way better than what I believe is available for Go.
My favorite approach to using groovy in projects is with the groovy compiler plugin for maven. Compile and bundle the resulting byte code. All you have to remember is too bundle the groovy runtime and remember how groovy interacts with Java natively.

The one thing that disturbs me about groovy is that overloaded methods seems to only be signature checked at runtime, which results in an exception when invoked with the wrong parameters - not a compiler error.
Fansy 2011 Kid's Short Haircuts Styles | 2011 Kid's Short Haircuts
If you're rich and not happy, inequality probably is a large part of why. The richer you get, the smaller the group of people exists that shares your problems... and the smaller your pool of potential friends becomes.
I have switched to "Stylizer" for CSS editing and have never looked back.

Firebug is pretty good for JavaScript and DOM. Chrome for profiling and the network.
Finding a needle in Haystack: Facebook’s photo storage
If you substitute "method" for "memory" it makes sense.
The thing that led me to it was halfway through, when I moved the cursor on top of the text and there was some popup, at which point I yelled, WTH is that crap site with some broken JS advertising! I moved the mouse away but kept moving it in by pure reflex. It took me a whole minute to realize it was Google Translate.

Before I actually noticed that, "snapshot'ov" actually made me laughed, genuinely (mis)taking it for some sort of pun.
So this doesn't exist beyond a landing page? That's a bit misleading if I'm honest.

Anyway... yes this would be a useful tool. See: http://www.perfectomobile.com
another great google feature.

i had struggled with 4 pc sync apps to pc programs via USB.

this just worked..
1. People aren't dumb

2. Technology has created most of the jobs that exist today

3. Most jobs it makes obsolete were created by technology in the first place

4. Technology allows us to more with the same amount of people.

5. Human civilization hasn't even started yet. You're suggesting we're already done.
hi i am mahesh
> not very timely ...

I wonder how untimely would it be to extend their delay forever.

Sad to say, but this is what I would expect from Microsoft, not Apple.
Evolution of Code Design at Facebook
That is a lot of material. Thanks.

minor grumble: why, why, WHY do so many universities put their content on ItunesU, thus making it all but inaccessible for those of us not already using apple software.

Even dumping a pile of MP3s on a server somewhere would make your material much more accessible.
And the drug consumers elsewhere, maybe?
is that true? i don't have any data, but i don't think it is. my understanding is that immigrants in the usa typically move quite quickly up the social scale. your problem is that you have a large class of americans who have somehow got locked out of any progress.
I wouldn't worry about it. My school starts of with C++ (ugh), and the experience has taught me that its the teachers that matter more than the language.
Portugal gets own Silicon Valley
There are actually a bunch of Markdown parsers that create a DOM, or at least a proper tree (e.g markdown2 in PyPI). Markdown is outrageously simple compared to MediaWiki.

I actually wrote a subset-of-MediaWiki parser in C#, which stayed at the "subset" stage because of the ridiculous complexity and corner-cases that crop up even very early.
Uphillrush4 cheats - Google Search
If I could, i'd live in highly equipped bunker
Perhaps you make a good point, but cheesy Internet libertarianism gets on my nerves, and politely correcting people that are actively celebrating increasing inequality is beyond me.

Sometimes, as the old USENET saying goes, we must retract the foreskin of ignorance and apply the wirebrush of enlightenment.

I will instead ponder the strange default assumption of everyone on Hacker News that they have Much To Teach Me about Programming. Maybe the screenname "Onan the Barbarian" fails to convey gravitas...
Skin tips
Can you explain the technology behind the potential implementation?
Collapse of US manufacturing industry and unions, reduction in minimum wages and move towards lesser job security, changes in the tax code to reduce effective progressiveness would all spring to mind as a bit more important than HN style "entrepreneurship". The list goes on and on, not always negatively - after all inequality isn't always the only issue.

One is also inclined to raise an eyebrow at the Rise of the Bankers (and the fortunes made that way), though that is entrepreneurship - and very creative - in its way.
this company has been providing a similar service for 8 years:

http://www.deviceanywhere.com/

You can remotely use a real phone to test your app. They actually take apart the phone and connect switches to all the buttons while capturing the screen output.
This touches upon another important point: fusion has never received the amount of funding it should have received in order to make true on their claim. It would have been available right now if only countries would have freed up reasonable amounts of funds. The JET project in the UK was extremely succesful and it is completely incomprehensible that it wasn't followed up upon swiftly and strongly. I believe lobbying by those invested in traditional sources of energy has everything to do with that.