skysight-inc/HackerNews huggingface dataset:
What is with all the hate lately on anyone who dares to write Python with different semantics than employed by the stdlib builtins?

'You've invented your own incompatible dialect of python. '

It isn't a "dialect." You don't need a different parser. There are no macros. It is simply a container with slightly different semantics than the stdlib ones.

"You've broken composition, objects and the general design choices of python."

No those all still work and if you don't like his semantics don't use them. They are perfectly readable and easily understandable if you having a passing familiarity with the pattern he is using.

tl;dr : I don't see what the big deal is, people are allowed to write Python however they want.
Know your Computer/PC/Laptop's IP address.
I've started using Clojure after many years of Ruby and I have to say the parentheses are a non-issue. Emacs and many IDEs automatically balance the parens for you (see e.g. paredit). Once your eyes learn to ignore the bracket soup, the code starts looking an awful lot like Python (cmp. Emacs Lisp indention with Python semantic indention).
Note that the + may not be portable. I know it doesn't work on older Solaris versions (<10) and HP-UX (from a couple years ago when I last touched it).

Also, find may or may not split the files it finds into multiple invocations.
The ethics of private property aren't based on profit, they're based on the self-evident fact that one owns his own will and is responsible for his own actions, and consequently the fruits of his labor.

This is assuming that everyone is born into an equal setting, with an equal upbringing & that property & resources are dolled by a completely unbiased party. Something that is essentially impossible.
Official Suzuki Pulls Out of MotoGP 2012
My suggestion was only partly serious, but IMO, focusing on great content is probably one reason many blogs are abandoned - people worrying that an entry won't cut it. That doesn't meant everyone should post junk, but sometimes you can write something short and punchy rather than an epic essay.
Change your body into a good shape without a hard diet
1. Change your mindset! Most people think that dieting is to resist cravings, eat a minimum, only eat fruit, do not eat rice, and so forth so that the body
I wouldn't group Python with Java, But I would group a bunch of programmers common to Python and Java.

Python attracts the same major group of programmers as Java because it has a very low barrier to entry. It has all the qualities that you would need build a army of programmers. But unfortunately that quality also has a downside, you tend to get a lot of people who need tools and stuff to help them overcome their personal shortcomings.

If you make the tool very easy for novices sure you will get a lot of novices, but they won't really like to take the extra step beyond those initial steps.

This is also the crowd that is in love with verbosity. Verbosity in every thing, code, configuration etc. Because it helps them to write more than they think. Whereas ideally you must be thinking more than your write. Unfortunately Python belongs to the former school of taught.

Good to know you develop Java applications with vim. I don't see that as a very productive thing for the rest of the world. They are better off using eclipse.
OS.js - The  JavaScript Operating System
No actually the down-votes are because you don't know what you're talking about --and are arrogant about it on top.
I thought this was pretty cool and so shared the link with my friend, who asked me - 'so whats the point?'. And then I was like http://notsure.jpg.to
Parent talks about parsing speed.
Are these classes sustainable? Once a class has been run, how much labor is required of Stanford staffers?

My concern is that Stanford will hold these classes, realize no payoffs besides goodwill, and then quit. It may sound strange, but it'd be comforting to know Stanford is materially benefiting from the classes. If they aren't, I worry they'll stop. I think I won't have time for any classes this semester, as I'm taking some for credit classes elsewhere.

To remedy that, I wonder if Stanford could offer tutoring services for pay, sort of like giving away software and then charging for support. This wouldn't be too different from the status quo where TAs teach undergrads who in turn subsidize graduate instruction. This might create an incentive for Stanford to make classes unnecessarily abstruse (by analogy, making software impossible to use without technical support), but if professors weren't pressured to hit revenue targets, I don't think it would be an issue.

The next step to truly revolutionize education is to grant credits and eventually complete degrees, while lining up employers who would accept these degrees and hire their holders. Currently, online undergraduate education isn't taken seriously, especially by prestige employers.

But this in itself is pretty damn cool, and judging by the reception, superior to all the other means out there for educating oneself.
"Still, there are worse places in the world."

Really?

(Are there truly places more wealthy/luxurious than this?)
"""1) You can't always count on users having cached it from the CDN."""

No, but you can always count the MAJORITY of users will have it cached from the CDN.
I find it difficult to believe that this isn't taught in a proper MBA course.

Hell we were taught in 2nd year undergrad that IRR sucks for decision making, but if you absolutely must then at least use the modified IRR.
http://en.wikipedia.org/wiki/Modified_internal_rate_of_retur...
Don't forget the time to ungzip, the time for the js VM to parse etc.
also check

killall programname
See, the funny thing is that I'm just not that price sensitive, and that's the case with a lot of customers. People can feel quality, and appreciate when they see it. But the PC manufacturers are running like coked-up lemmings in their race to the bottom. That behavior's really helped Apple succeed. Many people spend over half their average workday on a machine, and even medium-sized changes in the machine is going to have a large, substantive difference.

But, then again, I think some of this psychology directly stems from Windows. MS has traditionally had this feature-checkmark mentality that pushes for more checkmarks & features over substantive quality; and you can see exactly the same thing with most Windows PCs. Now, the consumer's left a complete-shit algebra to reason about which computer is best for them. Ugh, ok, I'm cutting the rant off here.
That was a check for google adsense blocking.
sed's regular expressions are different from those perl uses (even when using the (¿gnu sed?) flag that tells sed to use extended regular expressions). Especially if you "live in perl", that can be a problem.
Occupy VB
every developer should know sed and awk. it is amazing how many devs write cumbersome scripts or little programs to handle tasks that are built for sed and awk.

my ~/bin folder has ~50 different little scripts that handle all sorts of small tasks.
For me, netcat. I mostly use it for

* Copying files across machines (`cat file| nc -l port` and `nc host port`)

* Remote pasteboard (on OSX w/ pbcopy, `while true; do nc -l port| pbcopy; done`)

Not a life changing, but I wish I know it earlier.

Only if there's a way to make "remote $EDITOR" with Netcat...
You're helping to prove my point - you're an outlier. Most people still buy magazines.
I would really like someone to take one of these facilities and turn it into a paintball play area/tournament. It would be a blast!
If that is surprising to you, then much of human behaviour must utterly baffle you.
"By pursuing his own interest he frequently promotes that of the society more effectually than when he really intends to promote it." [..] The fact of that matter is that we know this premise to be false.

I disagree. If someone doesn't pursue their own interests then by logical necessity they are pursueing interests imposed on them. "Social interest" is merely a euphamism for State interests. Killing the Jews in gas chambers was a social interest. Of course, by disagreeing with that you would prove my point that "social responsibility" is anything but a completely subjective term that varies (greatly) by each individual, and only has power in the context of the State.

As a practical matter, only a few crazies actually believe that people have no social obligations.

But what does social obligation mean? If you didn't obligate yourself, then social obligation really means obligation by force, obligation to the State and whatever the State deems an obligation. Obligation to a small group's whim instead of obligation to your own actions, interests, and responsiblities.
They're selling to businesses who know the price tag of an item isn't what it says on the package. Google believes they can reduce your IT costs enough that a ChromeBook pays for itself. It's not a race to the bottom, it's a race to the Cloud.

The problem is there aren't a lot of enterprises that are (yet) completely web based. It's going that way and there are more every day, but Google's still ahead of the curve with ChromeOS.
Your Questions About Carbohydrate Addicts [protein diet]4
Technology choice comes much later.

1)First think about who is your target customer/market, what are their problems, how are you going to solve those problems and if you can do it in a profitable way.

2)Decide about what products and services you want to offer to start with.

3)Then comes technology choice. Decide your product's target platforms - mobile, web, desktop, tablets. Then decide on which front-end and back-end technologies you want to learn and use.

I think these technologies will be good based on current trends :

Back-end : Python, Ruby, .Net , JavaScript(node.js) and framework of your choice.

Web based front-end : HTML5, CSS3, JavaScript, JQuery

Mobile Front-end : Android, ios , Windows Phone OS

Desktop front-end : .Net, C#, WinForms, WPF etc.

Personally, I would focus on Web and Mobile apps.
وفاة طلعت السادات 20/11/2011
I don't really know a lot about this stuff, but my understanding is that Perl was more or less replaced sed and awk.
> As a result, Sweden seems comparatively more active, in terms of industry and business in general. They have a lively entrepreneurial spirit, and a lively Internet startup scene.

You can definitely see that in the indie gaming scene: quite a few well known (and good) Swedish studios (Mojang of course, but also Arrowhead, developers of Magicka or Frictional, developers of the Penumbra series and Amnesia). Meanwhile I could not tell you of any Norwegian indie game dev, I don't know any (I'm sure they exist, but I don't know them)
Yeah, that's all great, but how do you advertise that sort of thing? I mean, as far as I can tell, it's again the "who you know" network- if you know someone at the company, and they trust/respect you enough to be honest about it rather than going for the referral bonus, (and/or if they are honest enough with themselves to not talk up or talk down the company they work for... I am shocked every day by how loyal some people are to employers that can only be described as abusive.) you can find out about working conditions.

But, you know? things are already pretty dang good for those of us that "know people" - If you have a large and functional network, you don't need job sites, and you don't need recruiters. It's been half a decade since I've gotten a job through a recruiter where I didn't pre-arrange things with the decision maker before the recruiter even saw my resume. (quite often for contract gigs at large companies, even if the decision maker knows you and wants you, there is still a body shop in the loop.)

The whole point of recruiters, job sites, and that whole industry is to try to move beyond "It's who you know" and while that is a laudable goal, I don't think they have made a whole heck of a lot of progress, in part due to the intangibles you describe, but eh, I think that communicating the intangibles about the employer to the potential employee has all the same problems of communicating the intangibles of the potential employee to the employer, and neither problem has been solved.
I wasnt commenting about the author's post. Rather I was commenting on what all the commenters for this post were about to do :).
yes and do you know about proxycommand ?

let you set up hops when you don't have direct access to a server.

e.g. if you don't have direct access to serverB but have direct access to a serverA that has direct access to serverB

put this in your ~/.ssh/config file

host serverA
hostname serverA.domainname.com

host serverB
hostname serverB.domainname.com
ProxyCommand ssh serverA "nc %h %p"

then typing ssh serverB will log you on serverB
"all the various women friends that need help "fixing their computers","
I don't see how is it relevant to hiring a developer, and I also don't see how you could possibly have no male relatives and friends asking for computer help (especially considering older demographics of those). Those are usually equally represented.
http://dumbsluts.jpg.to/ goes to sarah palin
Unassembled Kitchen Cabinets
Actually the new top comment blew me away. I'm in the 20 year veteran category and was also oblivious. Quoted:

disown - bash built in.

You know how you always start that mega long rsync in an ssh session from your laptop and then realize you have to go offline halfway through? You forgot to start it in screen or nohup, didn't you? You can pause it (ctrl+z), background it (bg), and then disown it so it is protected from SIGHUP when you quit your ssh session. Bash (and, to be fair, zsh and others have copied much of this) has some wonderful job control features most people are completely oblivious of - even veterans of 20 years.
pkill

pidof
magit and org-mode were two of the reasons I started using emacs a couple years ago. magit is still an emacs app I use very heavily. I can do things in it easily that are quite difficult to do without (and I know git very well).
> "It's possible that Chromebooks are just a shitty idea."

I'm inclined to take that explanation. This is a classic case of "how can we make the customer do what we want" instead of "how do we make our customer's life better".

Yeah, Google's profit is all in ads, so it wants you to spend as much time on the web and as little time on native apps as possible. Guess what Google: your customers don't care about your bottom line.

They want the best device, for the lowest price.

So here are our two contenders:

- A "broken laptop" that can't do everything the user wants it to do. It can only go on the web. It uses a strange OS that nobody is used to but yet does not seem to offer any benefits.

- A full-featured laptop/netbook that gets the same battery life (if not better), runs a common OS everyone is already familiar with, runs all of their apps (and the ones their friends are running too), and does the web thing just as well.

And checking out Chromebooks and Dell/HP netbooks... They're even the same price.

So here's Google, offering substantially less value for the customer's dollar, and people are standing around shocked that it's not working.

The core question here is: is this product better than what it seeks to replace. And the answer, IMO, is an emphatic no. It's missing many features people have come to expect from such devices, and for that it's not even cheaper.

Google needs to turn this upside down and work from the customers. At the end of the day, as long as you don't have a monopoly, the users do what they want, you cannot push a product that has a shitty value proposition and expect people to latch on. That's insanity.
Disclaimer: I am a Google customer. Not an app customer but I've been responsible for several million in ad spend over the years.

If the support you get you when you spend 10,000k+ per week is anything to go by, Google has the worst support I have ever encountered. By far.
You should really give Ruby a try.
TL;DR: PHP sucks because it is not Java or Python.

This is a typical PHP rant that only rehashes the standard criticism against PHP, the author is obsessed with OOP and can't tolerate some global variables and functions(that are not methods of classes) without namespaces, totally ignoring the fact that many frameworks simply get around all these, and he can too.

PHP probably does have a lot more terrible code than other languages, because it's low barrier to entry, but that doesn't mean it's impossible to write good code in it.

The author is also disrespectful, by calling the creators of PHP idiots, totally ignoring the fact that PHP is one of the most popular languages that was not backed by the immense marketing muscle of a Microsoft or Sun.

Low entry barrier is presented as a negative, because the author had too much competition on freelancer.com. I find this ridiculous in many ways.

Here is my conclusion: PHP is what you make it out to be, and you can make it work. Your client won't give a crap about the technology, so feel free to use any other language, but note that the number of available PHP developers is something to keep in mind.
Individual sovereignty, the fact that you are responsible for your own actions, does not require an equal anything outside of being a human being that acts.
No criticism intended.

What strikes me as odd about that is this:

- Free Speech is (over?)valued, things that are forbidden as insulting/hate-speech etc. over in DE are 'okay' and free to express in the US. Something the people I talked to were proud of and regularly pointed to as the fundamental freedom.

vs.

- Careful what you say, it might get you fired. We had the swear words discussion lately, now we're talking nipples / nudity and references to those.

I understand that these issues are not the same. It just feels like the Freedom of Speech is reduced(?) w/o actually touching the constitution, is it really still that free?
I've lived in a country with good social services and one with less good social services. They both have their ups and downs. The problem with social services as a system, is the same problem as with any system: people game it.

I assume in Norway it's no different. Employed feel that the [some] of the unemployed are lazy and taking advantage of the system.
The google closure tools provides this modularity automatically. The compiler removes unused functions in the google closure library.
I think you're missing the point. I was commenting on the impression I got from the book.
#proxy from port 80 to port 3001

socat TCP-LISTEN:80,fork TCP:localhost:3001
List of Standford Online Classes
ctrl+d was an amazing improvement when my boss showed it to me years ago. Now I discover that a lot of people don't know it.
>"The only purpose of corporations is to maximize shareholder profit."

That's not true, and it's not event a popular opinion among the people who actually study the subject. It's only popular among the arm-chair internet specialists on corporate governance. For a well-rounded perspective on the subject I would suggest the "Corporations" text book by Alan Palmiter.

In brief, a corporation's purpose is maintaining balance between interests of various stakeholders such as shareholders, employees, management, creditors, regulators, consumers, the public, etc. Each stakeholder is exerting a different kind of influence on the corporation and suffers different consequences from the resulting consensus action (which motivates his influence).
sed -n '/./{ /beg/,/end/p;}'
If you want a similar solution but are more comfortable in python then also check out hyde: http://ringce.com/hyde

It's very similar in spirit but uses python and the corresponding tools to get the job done.
When a particular product hits home, people feel robbed for not being able to buy it on the spot for any reason, especially when shipping and manufacturing costs are close to zero. Indeed, it really is the other way around, and it will never be otherwise, but it doesn't change the fact that some of your paying customers will be dissatisfied by your service to the point that they will take action to bypass your own faulty distribution channel, and they will even pay to be able to do that.

Heck, let's drop the masks, the majority of your paying customers even bought their very first computer just to be able to do that over the past decade.

I'm not advocating piracy, I'm explaining why it exists in the first place. When the pirated product is available immediately instead of months/years later, and with better features than the legit one, it's foolish to expect even paying fans not to pirate things nor look into piracy as a distribution channel. This is a challenge that content distributors need to deal with, one way or another.

Saying that people shouldn't pirate digital goods because it's illegal is all nice and well, but is this even enforceable? It's my own humble belief that it's not, not with the current state of the art, and that yelling at piracy is like yelling at windmills. Just deal with it and improve your product distribution in every possible way so that piracy is not exactly a better option.

It works, Apple proved it, Steam proved it.
Am I the only on perfectly happy with the epub files O'Reilly makes?

Also, when you are talking about ebooks, shouldn't things like font selection be left for the reader (the being, not the machine) to decide?
> I disagree. If someone doesn't pursue their own interests then by logical necessity they are pursueing interests imposed on them.

If you read the text surrounding the quoted language, it uses "own interest" in a narrow sense, not encompassing altruism. If you subscribe to the notion that there is a dichotomy between "own interest" (encompassing altruism) and "the state's interest" then yes your claim is logically valid, but also besides the point. The ethic underlying modern American business ethics conceives that profit maximization maximizes overall social welfare (i.e. it uses the narrower definition of "own interest" that Smith uses, not your broader definition).

> Of course, by disagreeing with that you would prove my point that "social responsibility" is anything but a completely subjective term that varies (greatly) by each individual, and only has power in the context of the State.

Guess what? We live in a state. And we live in a state where most people believe in welfare maximization: the greatest good for the greatest number. And many of those people, in the business context, believe that profit maximization leads to welfare maximization. To the extent that this assumption is incorrect, their behavior is inconsistent with their desired outcomes.

> But what does social obligation mean? If you didn't obligate yourself, then social obligation really means obligation by force, obligation to the State and whatever the State deems an obligation.

You obligate yourself by participating in civilized society. You obligate yourself by exchanging, for the protections of civilized society, the duties of living in a civilized society. You try to separate "the State" from "the people" but in reality "we the people" created "the State" to defend our property interests. "We the people" through "the State" keep big strong men from taking what you conceive of as "your property" and that obligates you to us.

That obligation doesn't necessarily have to involve coercion. To the extent that you don't consider how your business decisions impact society at large, it might simply make you a "bad person." The problem is that we have an ethical system that relieves you of the duty to make that consideration. You can ruthlessly try to maximize shareholder value and still be a "good person." That ethic is predicated on the idea that profit maximization ultimately serves to maximize social welfare. What I'm arguing is that this assumption has been empirically invalidated (or at least drastically limited) and as such we should move towards an ethic that labels people who are socially inconsiderate as "bad people."
You can play strikeball in this one!