skysight-inc/HackerNews huggingface dataset:
I think there are two mind sets when it comes to programming, those that relish in learning every detail in a particular technology and those that find beauty in simplicity.
(technically there is probably a third which is just a hack).

I don't think that these two programmer see eye to eye. One looks to apply the chains of functions to a problem to simplify the task at hand. While the other looks to creatively attack the problem with a minimalistic approach to writing code. They find beauty in recursion and abstraction, through interfacing things so that common logic can provide different results based on plug-able interfaces.

They are different mind sets entirely, where one looks to reuse existing library code the other looks to not write as little code as possible through creativity. Both are very valid programmer types and both can achieve mastery, it is more just a matter of how ones mind works. I myself am the latter, I love abstracting problems away till they just seem to disappear. I love closures and delegates, interfaces and anonymous functions. These are my utensils of mastery.

One thing I have noticed though is that programmers tend to work better with other programmer of the same type. For most of my career I have worked with the same development team. Many of the guys I trained and then they trained others. We are like a caravan of programming gypsies one of us would find a position at a start-up or find backing and the rest would follow in time.

Anyway, after the sale of the last company we where at I had to go out and find a real job. I did, and the entire team was of the other type it seems that they had amassed in a similar fashion as my group of developers and ended up there. Anyways, I have to say, for the first time in my life I was a drag on the team it just seemed that my code and their code just never jived, i mean it all worked properly but when I would have to work on one of their code or they would have to work on my code it was just hours of lost productivity. I eventually resigned because it was clear that for the first time in my life I was not working out as a developer. I was just mediocre at doing it there way.

Anyway, just food for thought, maybe you are like me Daniel and see the elegance of code. While the other guy sees the robustness.
I think Ed wrote the first line of a function, not all of it. See the iterative solution in the posted article.
This has been discussed a fair amount, as well as replaying session transcripts, persisting key data structures easily, some other things i can't remember.

http://groups.google.com/group/clojure/browse_thread/thread/...

http://groups.google.com/group/clojure/browse_frm/thread/473...

http://stackoverflow.com/questions/3480377/clojure-namespace...

http://clojure-log.n01se.net/date/2010-01-16.html#i75
Negative numbers cannot be powers of two.
True, it depends on your goals.

If your goal is to help Ugandans, it may be more beneficial to attack a corrupt official for a bit. For all the good we're capable of doing, this immigration official is apparently a wrench in the gears capable of preventing many people from doing their work. I almost see it like writing more code while you have an error preventing your program from executing.
>@Thilo No, it doesn't... ? If a random variable is uniformly distributed in the range (0,1), and you sample the variable n times, and take the sum, it will just be uniformly distributed in the range (0,n). – user359996 12 hours ago

It's so easy to sound certain and be wildly wrong.
I won't refer to subjective views of intellect, but one of the WAIS IQ tests' component is the Verbal Comprehension Index. Among other things, it aims to measure the degree of general information acquired from culture by the person and her ability to deal with abstract social conventions, rules and expressions, as well as her vocabulary. To me, each of those three subtextually imply a certain degree of memorization, or accumulation of knowledge if you will.

Alternatively, one could say that knowing your tools is quite important. I mean, I'd consider someone who learns, forgets, and relearns what a screwdriver does not to be the definition of 'bright'.
Freedoms that Drunks, Slackers, [...] Pioneered and The Founding Fathers Opposed
I was under the impression that living in the IDE was only popular for certain languages (Java, C#, MSVC++, ...)

Not necessarily a bad thing - I like using Visual Studio when doing C#.
Typical - there's no contact info in the God's .sig

Suppose I want to serve him a writ?
3D printer made of Legos that prints with Legos
I was under the impression that generally official websites of the US government had to pass stringent reviews, be them hosted internally or externally. Be that as it may, it's important because you can tell your customers "Hey if EC2 is good enough for the US government it's good enough for you!" :)
Cynically stating that PayPal is truly attempting to "steal" from their customers is incorrect. Based on most of what I've read (and I, like everyone here, have read a of PayPal horror stories...), PayPal "stealing" is really just PayPal giving a false positive about fraud and having abysmal customer service. While the end-result is indistinguishable from "stealing", they at least deserve the distinction.

However, that certainly doesn't excuse their actions. I wouldn't object to further regulation for PayPal but I have a feeling this won't happen anytime soon.
You're out by a factor of a 10^4. You forgot to divide by 1000 to get KW from W, and you accidentally scaled everything up by 10, too. Still, the correct figure is meaningless too.
Lazy programmer it is!
Could you elaborate a little more on CCL? I thought it was mainly used to access Cocoa frameworks, but maybe things have changed since the last time I checked it. Are there any chances it can now work with Cocoa touch?
Reminds be of an older Harvard Business Review article: "Narcissistic Leaders: The Incredible Pros, the Inevitable Cons"
http://hbr.org/2004/01/narcissistic-leaders/ar/1
I feel that some absolute time limits for napping is a no no for me. I grab my keys to my other hand and I extend that hand over the bed. It takes some time to get used to the idea of having the keys on your hand while trying to nap, but soon enough you'll forget you're holding the keys on your hand. Eventually you'll drop the keys at the exact moment you doze off and that's a clear sign from yourself that you've hit the time limit of a nap. There's no need to set your alarm clock for a 20-30min nap.

The alarm will inevitably go off during the wrong moment.

If you try to keep something in your hands (which will make a sound once fallen) you'll get the alarm at the exact moment you strive for.
Does Every Developer Deserve a Mental Health Day?
Ohh, looks like you are probably right. Mea culpa!
I'm pretty sure you can in Canada, using the interac (debit) network:

http://www.interac.ca/consumers/productsandservices_ol_emt.p...
I guess I was focusing on the bit-level answers since that's what the article and most of the comments seem to value the highest.

You're right, though, the original question itself is not so much of a problem, I suppose. What bothered me is the subtext that, unless you get down to the bit level with the minimum possible number of CPU instructions in the result and do the compiler's job yourself, you're not a "real programmer" or something.
If they have the allocation, why wouldn't they use it?

That's how IP was supposed to work. And once you've worked in a network where everyone has a real, non-RFC1918 address, you'll probably not want to go back. It just makes things really convenient; you never need to worry about address space collisions if you decide to connect two building networks together, for instance ... it's a whole lot more elegant than private addressing.

The places I've worked at that have legacy allocations have absolutely no interest in switching to RFC1918, and their allocation agreements are old enough that they don't contain any clawback provisions. It'll be "from my cold, dead hands" before they transition, and I can't blame them. It's how the Internet was supposed to work.

It's unfortunate that IPv6 got used as a way to shoehorn in a lot of stuff besides just increasing the address space. I've periodically seen much more conservative proposals that would have been less of a "forklift upgrade" and I think in retrospect it's unfortunate that these weren't considered.

But if IPv6 manages to kill or at least discourage the widespread use of RFC1918 addresses and bring back a more peer-to-peer architecture, it will be worth it in the long haul. The variety of applications and use cases we would be killing off without even knowing it by continuing down the path towards multiple layers of private addresses (because they just wouldn't be possible under that topology, and hence would never get developed) ought to sober anyone interested in development and new technology.

It may be possible for the Internet of today to work just fine with ISP-level NAT on top of home-network NAT, but if we resign ourselves to that we're shutting out a whole lot of interesting future possibilities that can only happen with an Internet that has end-to-end routability without second-class citizens. That would be truly sad.
Before, Lisp had the edge in native code compilation and functional programming, Python had the edge in libraries. In the modern landscape, that made Python win IMO. Now CL has caught up to Python (mostly -- it's 90% of the way there) in libraries and retains its edge in the other two areas, so in my book CL has pulled back into the lead. YMMV.
A tiny WSGI-style HTTP client written in PHP
Smartphone Application Netra
Reminded of Tim Bray's 'Forget the defaults': http://www.tbray.org/ongoing/When/201x/2010/06/29/No-Default...
The last time I looked at PayPal's user agreements, they require you to agree to an arbitration procedure in any disputes. So you'd have to fight the validity of that agreement too.

(I'm not a lawyer, this isn't legal advice.)
Well in my defense I only live at home because I am so confused. My parents are nice about it. I can easily buy/rent but the stopping factor is that I don't know what to do. I am located on the east coast, and want to go to Silicon valley, etc. so I see no reason to invest in a 1-year lease or mortgage if I am trying to change my lifestyle! :o
How much do you wanna bet that pilot's uniform he was wearing got him a calmer treatment than, say, a shaggy kid carrying a backpack?

The backpacker would have been tasered and thrown in jail after the first "no".
My apologies and I wish no ill will or to cause flames, but your comment makes me sad and reminds me of "First they came..."

My comment makes me sad, too. I think my actions and beliefs today would probably disappoint the "10 years ago" instance of myself.

A little background...

The incident in question happened 4 weeks ago, when I had an extra 2 hours before my flight. Sure, I had plenty of time to stand up for what I believe in.

On Friday, I was running late because of traffic and crowds. If I had refused the naked machine, I would have missed my flight, and I would have missed Startup School.

Funny how strongly we believe in something until it's our turn to act. That's when we find out, for better or worse, who we really are.
Now I am beginning to understand why people like Clojure so much. Instead of calling them "state threads", whose Google results turn up academic papers from the early 90s, they call them "pods", whose Google results have nothing to do with programming.
I typically just use initials, can't get much shorter than that.
Wow, so amazingly insightful...not.
Please provide normal links, because I always (always, always, always...) open lots of links in new tabs. Not being able to middle-click/control-click the links is a huge usability defect.
Yes. Microsoft asked me to verbally test my code (come up with a few examples and walk through the code), and Google asked me to describe a range of test cases to start with, and to decide if my code passed them.

They want to know that you know what sorts of inputs to start testing on (empty input, if that's valid, each obvious corner case (can you find all the corner cases quickly? This is a good skill to have), etc.) and that you can do this mentally a little before you compile and run the tests.
Whoops, missed that. Well then, in the absence of unpredictable events, twitter could predict the stock market, but it can't anymore since the market will now factor this new knowledge in (assuming perfect markets of course.)
There is a massive overvaluing of 'degrees' throughout Africa. You are promoted not based on skill or ability but by 'highest level of education acheived'. The degree does not necessarily even need to apply to the work you are doing and even if it does a degree in X does not in generally qualify someone to be an administrator in that field.

I'd vote for a move to Rwanda. They seem to be a little more sensible regarding foreign business involvement.
I actual favor this model in many cases. I've always thought that MVC was still too tightly integrated for my tastes.

Why should we treat our internal applications as any different than our interaction with external ones? I realize this is "self-contained" but the same logic applies.
As you said, anything that uses gethostbyname(), or directly works with sin_addr.s_addr.

Here's the Microsoft guide:

http://msdn.microsoft.com/en-us/library/ms738649(VS.85).aspx

Note: I'm 100% sure Linux is much closer to IPv6 shangri-la than the rest of the world.
This is the head of IT in immigration. He should understand that writing Google Hacking for Penetration Testers, which was good enough they also published his sequel, shows some qualifications..
I have yet to be convinced that any other development philosophy other than OO is superior when it comes to the UI. I will concede that OO offers little advantage when writing services, accessing databases, and integrating systems. But for the UI having self encapsulated widgets that can be extended to add distinct functionality is far superior to procedural, functional or declarative. Having a select box that can be extended to create a filtering select box with only the functionality for filtering needed is a no brainer. As well having the UI elements functionality represented by a distinct object helps isolate that code and functionality away from the larger system, with a defined interface so that it can be reused as needed without external dependencies. OO manages the hierarchy of code and its bisection in a manner that is far more comprehensible when it comes to UI, AI and game development. The rest is just preference.
Why did Google blacklist all of your Tldscan sites? Was it just because your sites' content was updated automatically? Or was it because you did something wrong for SEO?
Businesses don't need the government to tell them how to treat their customers. It is in a company's best interest to be accountable for their mistakes because if they don't they will lose business.

Fraud is and always has been illegal, so why we would need a regulatory institution to tell businesses how to treat their customers is beyond me.

If anything, regulations just protect bigger companies from smaller competition because smaller companies can't afford to bear the cost of complying with regulations.
The annoying thing is that in cases like this, people are not supposed to just resign themselves to take it and they are not supposed to try to get Congress to force PayPal to do what they want by fiat, they are supposed to look around, say, "Oh, PayPal is a dishonesty entity that makes a lot of money from stealing; if it hasn't happened to me yet, it is more happenstance than anything else", and not use PayPal. This is a great opportunity for someone to create a non-broken, non-evil PayPal and make money off of it.

That is how the market is supposed to work but people are generally too lazy to care or do any research before they go on with something. What good is it to keep running to the government to tattle on everyone who crosses us? We need to teach people to cultivate a brain and learn from their mistakes instead of getting upset and running to Uncle Sam crying about the bully down the street; instead of trying to make your dads fight, just don't play with the bully anymore and the problem goes away.

PayPal should be running amiss of generic anti-evildoing laws involving fraudulent activities and deceitful business practices without the need for any specific legislation.
Ask HN: Rate my Startup
NXTPass - A web app that lets you add Two-Factor Authentication to your own web app. Add one-time passwords via SMS and phone call by using our REST API.

I saw that Facebook has added one-time passwords and thought other websites would want this for themselves, without having to deal with building it.

http://nxtpass.com/
In the days before the DOM and AJAX, JavaScript could only really do two useful things: form validation and mouseovers. As "dynamic HTML" came into use, advanced UI elements were conceptualized simply as more elaborate mouseovers. Web developers failed to make the association between HTML and GUI long enough to establish this antipattern.
This is the moral equivalent of saying your computer has bignum libraries, so it still fits. Of course it does, if you use a bignum library.
Every positive number is a power of 2. Yes, I know, but there is no mention of "integer".
Btw, I would just check if log2(x) is an integer.
A good problem to have: Scaling recurring billing
I disagree. A "real programmer" should know something about how the computer works, and should not revere anything below his level as "magic" or be afraid of it, even if he/she will never need to deal with it. Understanding that integers are stored as binary bitstrings, and what this means, is the most basic level of competency in this area.
I thought so, too, until I saw that it's selling for $679. Then I saw that your account was created an hour ago so I wonder if you're being sarcastic.
Oh yeah, I've been asked to describe how I would verify my code was correct including edge cases, but I've never seen people actually write test code.
Ask HN: Sacred Cows and Self-Preservation
Thinking of how the oil and gas industry has stifled alternative energy innovation and implementation, what innovations/changes might we be avoiding as programmers out of self-preservation? Do we keep things overly complicated to justify our own existence? Do we give the cold shoulder to those wanting to learn our trade in a subconscious effort to prevent dilution of our own value?
I take a 20 minute nap almost every day, and I'm quite sure that I'm much more productive because of it!

I'm looking for a new gig in Paris now... my chances of getting hired would probably be infinitesimal if one of my interview questions was: Do you allow naps?

On the other hand if someone said yes, I'm petty sure I'd love the job!
This question sounds like it's from 2005 rather than 2010. Lisp seems to have become fashionable again now, thanks to Clojure.

I'm sure Python has very good libraries, but I would find it constraining to program in a language without proper macros.
positive, real
Microsoft Expands Effort to Protect Nonprofit Groups
how many points do you get for simply parsing the output of bash's factor function?
What Language Do I Use?
I am in the process of developing a site similar to www.zazzle.com and www.cafepress.com. Being the non-technical creator, I am looking for the programming language that I need to use when looking for an appropriate programmer for developing this site with me. In your responses, I would greatly appreciate if you could estimate the time and cost it would take for a programmer to bring this site online. Thanks!!!
Corrupt officials are usually experienced in this kind of confrontations.
I hope you don't mind if I ask you a few questions about work in China as it may be relevant to me in the future:

1) I've heard China often has 6-day workweeks as a norm, is this true? And likewise that official time off (vacation time for instance) is hard to come by?
2) Do you work on the technical side of things? If so how did you get the position? (I work in consulting and right now we don't actually have any clients in China).
Apparently the first beer and wine Starbucks is going in here:

http://maps.google.com/maps?f=q&source=s_q&hl=en&...
Just the leads.
You're quite correct, the Open Core model (and, to some extent, the proprietary relicensing system as well) is made possible because of the way copyleft works. I've previously written that <a href="http://www.ebb.org/bkuhn/blog/2009/10/16/open-core-shareware... is only a tool, and the tool can be used for good things and bad things too</a>. I also agree that permissive licensing is <em>much better</em> than GPL+OpenCore.
I'm pretty sure that's allowed. Amazon has a really nice xml interface designed to make it easy for you to sell books for amazon.com. I'm fairly certain that they provide photos for the same reason.
I think his first example was a recursive function like:

if !(mod(x,2) {
if (x == 1) return true else return false;
}else return is_power_of_2(x/2);

or

if !(mod(x,2) {
if (x == 1) return true;
if ((x > 1) || (x == 0)) return false;
return is_power_of_2(x * 2);
}else if (x > 2) return is_power_of_2(x/2) else return false;

PS: 2^0 = 1 and 2^-1 so you could have 3 versions of this fuction.
i run my life off my todo.txt file as well. i also recently discovered the plaintext iphone app that syncs this to my dropbox - highly recommend it if you run your life out of txt docs too.
I lived in Israel for 6 years. I do not want to have an Israel/Palestine debate, I just want to talk about airport security. I go insane at airports in the US because these people do not know what they are doing. In Israel, they hire the best and the brightest just out of their army service to do airport security. They have their pick of applicants because the jobs are well-paid, and offer fantastic benefits, one of which is the chance to live abroad in the various countries served by El Al. Housing and stipend paid for.

I understand that much of what El Al does for security screening amounts to racial profiling. But surely we can take what they have established and work with them to make it better and conform to US laws and civil rights. I am sad because we don't even try.

Instead, we have underpaid dolts who don't know what a bookmark is (happened to me).
I can't really tell if you're being sarcastic or not
I have a friend who regularly talks about how easy it would be to 'destroy' (kill power grid, poison water supply bomb pretty much anything) NYC (he's from up there) without using the airlines.

Even before 9/11, it was by far much easier to 'destroy' a city than it is to hijack an airplane to do whatever.
I agree that things stop being a commodity, when art gets involved. But this art can also be factored in as a cost - like say the difference in costs relating to hiring a chef and a simple cook. This cost can also be factored in when arriving upon a price.

Depending on whether one wants to not go hungry (or) have some decent enough food (or) experience dinner, they can choose a category of food and price point.

So at last, price = cost + profit is still valid.

Unlike in cooking, the effort put in to creating software is one-time effort, whether you do it for a single person as a professional service (or) if you can make it generic enough for reuse (or) with if can be built with multi-tenant capability, along with online customization features. The talent level differs for each kind of deliverable, but it can at last be factored in as a cost.

This cost is becoming relatively much lesser, when compared to the recurring costs required to keep the software running on a hosted platform.

So, why not just price the software apps based on what really is a major cost factor and in terms of those cost-units (resource used), instead of trying to fit in a model which is not very natural (in terms of number of users, number of records - which is hard to do right, without over-charging most users), was what I liked to be discussed.