skysight-inc/HackerNews huggingface dataset:
I'm not sure how useful it is as a desktop application. I suppose it depends on your organization's workflow.

If there was an equivalent of ckeditor or tinymce that could output markdown or textile instead of html, I'd find that extremely useful.
Neither solution is great. Excessive use of return and continue is an incredibly fast way of making code completely incomprehensible.

Such complicated control flows should be treated as a major, fundamental problem. Keeping them in place will cause bugs and prevent future contributors from having confidence that their changes are correct. The problem of complicated control flow is too deep to be solved with a band-aid like this, although perhaps syntactically it looks a bit nicer. In fact, this is exactly what people did before the so-called "structured programming adepts" came around, except using gotos instead of continues. It didn't work so well back then, and it doesn't work so well now.
I am kinda afraid of getting down voted, but I have used Python and I feel like I get all this and more (CPAN) when using Perl. The major difference in my opinion is that Perl gives you even more freedoms, which causes you to need some self discipline, but you get stuff done even quicker that way.

It feels a bit like Python is better for programming beginners or people that tend to be too lazy sometimes and Perl is for people who want to be able to be lazier since they know what they are doing.

Also, I think Python (and most other language projects) should clone CPAN (including CPAN testers). Seriously it's a major deficit.

I also think Python is the easiest to grasp for people coming from static languages. Perl and Ruby are way harder.
You're calling me a grandpa?!!!

I used those kinds of terminals, mid nineties in Uni...
Ditch the Textbooks
Whats your skill set? I run a small design agency, where occasionally I need help with frontend/backend projects. Drop me a line if you want to chat
I sometimes feel like I have the opposite problem. I can come up with the algorithm which requires an understanding of why it works on the problem, but then I lose my train of thought while coding it (albeit this is happening in stressful interview write-on-the-whiteboard-while-I-judge-you situations).
Python doesn't have the glyph noise that brace-based languages do, and well-written Python is beautiful and easy to read.

But lately I have been having an internal debate on whether using autodoc and inline docstrings detracts from its beauty and makes it harder to read because it reduces the amount of code you can see on the screen (see Steve Yegge's rant on this http://steve-yegge.blogspot.com/2008/02/portrait-of-n00b.htm... from a few years back).

If you use Sphinx to document a method's description, params, param types, and return type, then it can easily turn a three-line method into a 12 line method, and then you can only see ~5 methods on the screen at a time.

So if the code is already readable, would it not be better to put the docstring comments in an external file to keep the code density?

Django does this, and I'm starting to think it's the right balance.
Is this something that you can easily scale up and down? If so, shoot me an e-mail and I'll sponsor you to crank it up for the next month. (e-mail in my profile description)
URDU SEX STORIES: Kaam Wali Aunty
Ask HN: Does my website properly represent me (through the eyes of an employer)?
I just completely changed the layout of my website and tried to revamp it a little. I added some jQuery and made it nice and simple (I like simple).

If you were an employer, what would my site "tell" you about me? Does it look good on my part for having a nice (or ugly, please tell me) website that I took the time to create? Do employers usually look for more in terms of representation and community involvement (see my "Online" section)?

Any feedback would be greatly appreciated. I'm still an undergrad enrolled in a COOP/Internship program (Computer Engineering), so while this isn't super important (not "in" the job market) I would like to have a head start.

Website: http://maxmackie.com

That's the URL up there. Thanks for your help.
Why Do People Start Businesses?
This is an anti-pattern. The HTTP spec already sends files to web browsers, and it can send many files in parallel.
Square could get rid of the Dongle, but America is an leveraged nation and we need to pay for most of our expenses using credit cards. Dwolla, Paypal, Serve and others are circumventing credit card companies, but in total I have not seen them have much impact on credit companies and their business model. The only way credit card companies will change their model is for a new, competing card to lower fees for vendors and provide equal service to credit card holders.
PEP 8 covers this: http://www.python.org/dev/peps/pep-0008/
I read that and was surprised that the solution wasn't changing it to use MD5 or some other hash, rather than a CRC.

I guess they didn't have time?
Don't be deceived. 10$ an hour on freelancer.com may seem like the norm, and you may well take some jobs that end up paying about that, but:
1. Not all skill areas pay that poorly. Look for an underserved area and exploit it.
2. Those low paying initial projects can turn into long term good paying clientele. I did exactly that with six iOS projects in 2011. The effective hourly rate on the initial jobs was 20-30, but once I had proved myself to the client, I would quote at 80-90 an hour, with no objections.
3. You're a student who can't take a fulltime job. In that situation 10$ an hour work from home isn't a bad deal.
I think the whole differences are in some edge cases (though for some those cases could be their bread and butter), like escape codes handling, advanced ncurses stuff, etc etc.
In all of the above cases, Firefox actually does support the features used by these sites, and has for a long time (years, in some cases). In most cases the developers would just need to tweak their UA sniffing, or add some -moz properties alongside the -webkit properties in their styles.

For some technical details, see for example http://bugzil.la/668218

Mozilla does need to "step up" -- but work required to fix cases like these is not technical. It's about gaining user marketshare, developer mindshare, and improving the standards process.
2-step verification has made that practice obsolete.

I've read that it's better to use 2-step in conjunction with a strong password that you'll remember, versus regularly migrating from one weak or medium strength password to another.
It would be nice to have "Tell" and "Show" next to "Ask" at the top of HN.
Hell, I'm a grownup with a job, and I don't have a smartphone. They're very expensive toys.
I can't recall the exact details, but just days or maybe a week before gold master of one title I worked on, there was a case where an object's virtual table was getting munged somehow. I do remember I managed to figure out exactly what was happening. But the amount and type of work it would take to fix would have likely delayed shipping.

So I wrote some code that constructed a new object of the same type on the stack, then

memcpy(&realObject, &stackObject,
(char * )&stackObject.m_firstDataMember - (char * )&stackObject));

It worked. I'm not proud of it, but I am amused by it. I'm sure it wasn't guaranteed to work by any standard, but in practice worked fine for us.
I have used Python for a rather long time (I think 1997 when I was 17 was when I first used it). As the the writer of the article stated Python is awesome for writing "tools" and throughout my career I have used it for such.

However I have used Python also for big projects and that is where its gets a little messy. I know I am going to get down-voted to kingdom come but I think Java is a better language for big projects mostly because of the static typing (try renaming a class in Python compared to Java).

Modern Java is for sure more verbose than Python and more complicated but the languages are extremely similar (Guido has even take some of the design consistency from Java for Python 3.0).

The reason I bring it up is Java is very often in various circles crapped on to no end. The reality its basically just more verbose Python. Not to mention Java offers an introduction to Parametric/algebraic typing (generics) and more sophisticated concurrency (futures ... yes actors are better but python really has neither).
Seems like it would be an easy thing to do from the OAuth provider's end - in addition to showing the scopes, you can put it into a few easy buckets:

24 hours, 7 days, 1 month, 1 year, indefinitely
Agreed.

Using the dock connector with a legitimate product requires you to join Apple's "Made for iPhone" program.

For a device like Square that works on multiple platforms, the audio jack is a common interface and the Square reader has the benefit of requiring little (to zero) power to function as it consists of a magnetic head that works when a card slides across it.
The Paradox of Our Times
Mostly true 'cept for pythons built in pasta makers:

http://www.python.org/dev/peps/pep-0318/
I think you could pretty much substitute Python and Django with Ruby and Rails, and the article would still ring true. As a Ruby developer I've only had brief encounters with Python, but to me it seems like a language I would love for the same reasons I like Ruby.
My biggest problem with Python is that projects larger than a given size tend to become unmaintainable rather quickly.

This is in large part because of the lack of strong typing and type annotations; if you aren't the only author or can't keep the codebase in your head, it takes real effort to figure out what a function does. Even the type annotations provided in a language like Java or C++ make this task much easier, not to mention languages with real strong type systems like Haskell.

That's not to say that building large systems in Python is impossible, but it takes a lot more effort and documentation that it would in other languages.
Agile Estimation
It is nice, and I'd wonder why I would use this instead of http://coderwall.com/ ?
You're presuming without evidence that an Air in 2005 or so would not be successful. Moreover, it need not be an Air as we know it, but simply a MacBook with no optical drive and a 10-11" screen. The tiny Vaios of the time did fairly well, and with healthy margins.

I'll stipulate that I have no clue what BTO infrastructure costs.

However, I do take umbrage with the notion that power users will simply see the light one day. Most of the time, it's not a matter of preferences or delicate sensibilities, but needing a tool to do a job. It is today impossible to have a modern Mac laptop with five extra batteries, harming a certain user segment's ability to work while traveling. Soon, it may be impossible to get a modern Mac laptop with over 512G of storage, which sucks for someone, say, editing video in the field. (Dangling an external HD sucks; you're one jostled cable away from serious data loss.)

I have no issue with the "applianceification" of computing; in fact, I'm all for it. But because this has been Apple's focus, they've spent less effort in recent years on professionals for whom Macs are vital tools (see also the Final Cut fiasco). Maybe those users simply aren't profitable, which would be very sad indeed, given the alternatives.

Hopefully, cheap and huge
There are two big reason why I stick with Firefox, despite it lacking in many areas of other browsers:

1) The Awesome Bar is really just that. I have not found any other browser that works as well in this area as does Firefox.
2) Firebug is one of those tools I've been using so long that it just seems like part of the browser. Safari's Inspector is pretty dang close but still not what I'm accustom to.

I'd love to switch to something lighter. I just don't see that happening as a permanent switch anytime soon.
somewhere around 3.5 a game. Jeremy Lin is averaging twice that at least

In his first four games of real time, he's averaging 4.25 turnovers, 8 assists, and 28.5 points per game. Deron Williams, a premier point guard in his prime, and playing with talent about on par with Lin's right now, is averaging 8.4 assists and 4.22 turnovers per game.

The turnovers might be a touch high, but there wasn't a moment in last night's game where I thought, "oh, this guy's just taking way too many risks." He seems quite solid.

And any fool watching these games knows that Lin's no Jason Williams.
I agree and I was worried I was the only who would say it :)
Library support.

For example, there really is no Ruby equivalent to SciPy, NumPy, Matplotlib or NLTK (http://news.ycombinator.com/item?id=3179370). However, there has been some effort in the Ruby community to begin the process of developing some of these libraries (see SciRuby http://news.ycombinator.com/item?id=3180369). but the Python libraries have been in development for years so this will be no easy feat.
I'd like to point out a similar app: Mou
http://mouapp.com/

Good to have alternatives, especially for the Windows platform.
"Mozilla doesn't seem to have had a problem dumping all kinds of Javascript and CSS features into Firefox over the years not all of it making it into draft spec proposals."

Certainly, every vendor has been guilty here. I at least think that every extension Mozilla is currently encouraging use of is hoped to be a potential future standard. (And no, I'm not claiming this is unique -- some other vendors like Google are also good citizens in this regard.)

I also agree that proprietary platforms are hurting the web, and that the web needs new abilities in order to fight the threat. However, to preserve the openness of the web, new features need to be things that more than one vendor has the resources and motivation to implement; even if Mozilla and Opera thought Dart or Pepper were great ideas, adopting them would put is on a treadmill where Google (with its much greater resources) controls the speed.

And no, I am not claiming that Apple/Mozilla/Opera would have adopted Dart or NaCL if they were brought before the right committee at the right time. Part of getting early feedback means finding out if the community even thinks that your solution is something that's desired in the first place.

"When Mozilla developed Rust, the first time most of the web heard of it was Graydon dumping a gigantic codebomb into GitHub and it being covered on Lambda-the-Ultimate."

This is actually an interesting contrast between Mozilla and Google. The initial Rust code-dump was a barely-running proof-of-concept; it was shared with the world on the same day it was first shared within the Mozilla community. Zero lines of the current self-hosted compiler were written at the time. Most of the planned features (like the task system) were unimplemented. The first actual release (Rust 0.1 alpha) came a year and a half later, and that first release already reflected significant community feedback and contributions. For example, the packaging system in Rust 0.1 was written by a volunteer contributor who happens to be a Google employee. The stage of maturity at which Rust became open source was far earlier than Go.

Some things really are different at a non-profit like Mozilla, and the goal of opening everything up as early as possible is one thing that's unique among tech companies I've worked for or with. We don't always do it perfectly, and we do struggle with the need for people to do some types of design and experimentation without the world looking over their shoulders, but it's very much a unique core principle that affects all of our work.
In the scam one person is making loads of predictions knowing that some will pay off. In this story, lots of people are making predictions and again, the chances are some of them will be right. Read the comment I replied to, his point was exactly the same as the scam's logic, which is basically that if enough monkeys spend enough time with typewriters... etc.
17 Year-Old Entrepreneur Launches Social Good Startup
Docstrings should already be easy to detect by editors, so it would be trivial to add a show/hide functionality. Incidentally, one could also use Sphinx to create a plugin for that.
If a visitor clicks through to another page on your site, the difference in time between the visits is reported as the 'time on page' for the first page. If someone visits a single page of your site and then closes their browser, it's not reported as there is no subsequent pageview.
But does it support file pushing? I think that's the only special thing about this library.
Hmmm, you have a point there, but what is your proposal to solve it in a correct way, then?

Some problems need a deeply nested control flow and arcane business rules, you have to implement that somehow, and in such a case the method I use looks like the lesser of two evils. I'd rather have some flat ecosystem of meaningful functions than one monolithic deeply nested control structure.

From time to time I like defensive programming, and when I write a function 'frob' that promises to frob something, that function first makes sure that the thing can indeed be 'frobbed', and if not, bails out. This also works well for programs that should be idempotent (although that is a whole other issue).
Or even better - have it playing on your big screen TV while you're entertaining guests, eating dinner, whatever... What an awesome creation!
I think you forget that MVC is a pattern and not a specific method or an implementation. MVC could care less whether something is procedural, evented, client or serverside.
It's also my reason to use Firefox. If there's an truly open software, I will use it. I don't trust corporations, who are storing our data and life for their own purposes.
I haven't seen it with memory, but I work with an graphics programmer who swears he's done the same trick with CPU cycles, just insert a busy loop that does nothing for a couple of milliseconds every frame (busy loop, not sleep, so it still appears to the casual observer that your rendering engine is working as hard as it can). Then when the game is getting ready to launch, and the framerate is inevitably dropping, remove the loop.

I don't think he has a loop like that in our current code base. But it's possible.
Ruby on Rails, Python, PHP (Symfony, CakePHP), MongoDB, MySQL, jQuery, Javascript, C/C++, algorithms.

I learn new things pretty quickly, too.

How would you like me to contact you?
Yeah, it sucks. It's pretty hard to fix though, one of those bugs where the multi-week or even multi-month effort to fix it probably isn't ever going to make sense to anybody. (Say IDLE in particular is bothering you; you could probably spend a very short time just hacking it to truncate that string before putting it in the widget, vs. the likely gigantic task of fixing the widget. Everyone is making that same calculation whenever they get annoyed by this.)
I think you are over-analyzing. Like others have said in this thread, TO's are expected from PG's. While, these stats need to be considered, you should also consider the timing of these turnovers. If his team is up 15 with 1 minute to go and he turns the ball over because he was trying to test a play etc... that TO should not be given the same weight as the others.

I think the most important stat is scoring efficiency (or FG percentage). Against the Lakers yesterday, he was at 56.5% for the game (scoring 38 points). That is commendable given that it is against the Lakers.
Yeah, that's fun ;-) I wish there was a

if main:
... # do some processing

instead of having to write:

if __name__ == "__main__":
... # do some processing

That'd make DHH happy, too ;-)
See, for me, I don't really want to work if its $10/hr, because "just making money" isn't really my goal, and I would rather spend my time working with open source projects.

Thanks for the suggestion, though!
This seems to ignore every branch but one.
Sound Player
Self-service architecture to avoid water-scrum-fall
OSS is definitely an alternative. For me bidding on and winning iOS jobs was a way to motivate myself to grow my iOS skillset whilst getting paid.
it is true stats don't lie. but there is no replacement for the human judgment of personality and dedication. if it was all about stats, allen iverson would have lead the 76ers to multiple championships. THAT'S the importance of personality! thats the importance of showing up for practice. :)
I've seen projects that use decorators for type checking. You could turn it into a noop for production.
Sir, do you understand the World Wide Web?
I noticed too, on the Tor project website, about the obfuscating Tor traffic to appear as non-encrypted traffic; that sounds interesting - https://www.torproject.org/projects/obfsproxy-instructions.h....
OK, that looks way more useful. thanks
Like the author said,

you’ll spend a lot more time reading code than writing it, and [python] focuses on guiding developers to write readable code.

As someone who reads a reasonable amount of source, I'm grateful for that.
It's not pushing, the browser still has to poll - it's just enqueueing files for transfer, right?

Even if that use case has some utility (of which I'm dubious), it still needlessly breaks the addressability semantics of URLs. It would be much better, in my opinion, to have the backend issue redirect to an unambiguous URL that refers to the static resource, then let the web server do the thing it's good at.
Thankyou! So many programmers seem to forget they have an enormous base of syntax and logic which is not at all like natural language. They see python and say, oh wow this is so easy to read, just like English! But its only an easier way to express a syntax that really is nothing like what a nonprogrammer would consider English.
>> Library support.

Isn't that rather an argument for Java or Perl?

What I don't get is the cheerleading for Python? Ruby has/had something similar going with Rails. I mean, the article even notes that it is a middle of the road choice, optimised to not be extreme.
I'd worry more about all the home users. If they can't work out how to get back online (without google to help them) they'll end up buying a new computer or paying an expensive repair bill.
A Survey of Rollback-Recovery Protocols in Message-Passing Systems
Currency markets exist, but most currency trading is a lot more short-term.

Holding USD is rarely an investment. You put money in your checking account(as opposed to a savings account/CD, which is an investment in the bank) because you expect to spend it(you know, what money is for?) soon. Only banks hold large amounts of USD and they almost immediately loan it out.

And you're right, it's unfair to compare gold to Bitcoin. There are people actually using Bitcoin as a currency, whereas gold is almost exclusively exchanged for actual currencies, which are then exchanged for goods and services.

And the failure of the Zim dollar is the reason they recently returned to the gold standard. Oh wait, no, they switched to USD.
That depends on your taste buds. Mine prefer consistency. Ruby is a alippery slope when it comes to consistency and it requires the whole community to change certain attitudes.
It's an argument for any language that has libraries available, weighted by your need for those particular libraries and their quality.
No, there's a different device that produces power and this is its inverse. The article is not worded very clearly.
Cloud Standards are DOA
I just noticed Sublime Text 2 has an ability to fold multiline docstrings. If there only was a way to do this automatically.
Hi
I've set up a shopify site. I decided to give shopify a go as I'm getting requests from clients for ecommerce and already do wordpress and custom carts but wanted to try and find a low cost offering for small businesses. The url for my concept test is (it's live and all setup)

http://nzsunglasses.co.nz

It redirects to

nzsunglasses.myshopify.com

It has good products but I csn't seem to get any traffic (like 5 visits in 3 weeks). Adwords hasn't delivered any impressions, posibbly because it's a very competitive category. Maybe it's the redirect but I've but I've a/b tested urls and even used.

Any suggestions much appreciated
The Power of Passion
10 Reasons To Join Triberr... Like Today