skysight-inc/HackerNews huggingface dataset:
Actually, the per-vertex color is passed into the pixel shader, which then decides what to do with it. The vertex shader itself has nothing to do with color except calculating an initial value and passing it to the pixel shader. The pixel shader can be set up to interpret that value as anything. It could make it a grayscale color, it could invert it, it could use only one of the four channels, etc.

There used to be no pixel shaders, which is why vertex shaders had to be used to do shading. That was circa 2004 though. EDIT: This paragraph is incorrect, see comment below.

Also, the whole idea of "color" in a vertex shader is mistaken. There is only one color: the RGB that ultimately shows up on the screen. Until then, there are values which are passed from the main application source code to the vertex / pixel shaders, which then decide what to do with those values. Sometimes the pixel shader interprets them as a color, but they're really just floating point numbers. That may seem like a silly distinction, but again, if your mental model is incorrect as a newcomer then you're going to have a hard time.
Hate speech is actually often? sometimes? protected in the USA.
Ask HN: Where to submit my consumer oriented health/medical service?
It consists of a web app and mobile apps (App Store and Google Play). They are all free (no hidden costs, in app purchases, etc.)
I sympathize with you on this - I've had several videogame addictions over the last few years. Mine were slightly different types of games (like Minecraft and Ingress) but I wasted weeks of time on them. And much like you, my work suffered because of them. I tried limiting myself, but I still had involvement the game so it was very hard to maintain a balance between gaming and work.

Eventually I found that the only solution for me was quitting entirely and only playing games that have a low level of commitment (like Angry Birds or 2048). The quitting itself is quite hard (I ended up deleting my accounts to prevent me from being able to go back). But now I feel really good about it.

As a bonus, without the fast-paced rewards system of games to distort my perception, programming is just as fun as videogames were... Oh, and I get money for programming, so that's pretty cool.
From what I can see, jQuery UI is only brought in to add draggable functionality. It's possible to leave it out if you want.

Or just build jQuery UI with only the draggable component.
I think building out national/region specific networks and services is a good thing. I'd probably be more willing to use SaaS products if I could absolutely guarantee that my traffic, personal details and my data never left my country.

Why? Because I actually have some chance of making the business accountable. We have things like the Privacy Act and Consumer Guarantees Act. Not only that, but there is a massively smaller barrier to entry to do things like take them to small claims court.

If a US based company sells my data or just hands it over to the NSA, I have no course of action. It's just "fuck you, read the TOS". Even if those Terms of Service literally go against established local laws.

Note that I'm not talking about content filtering or blocking international traffic. Just removing the huge reliance on international services and infrastructure, that doesn't have to mean cutting the cord.
Oh hey, it's the dancing girl gif! http://contemporary-home-computing.org/1tb/archives/2466 The animation isn't actually from Chuck Poynter http://contemporary-home-computing.org/1tb/archives/2559
Generator For Fullwidth Characters (2011)
disruptive innovation at it's best.........
I don't want to live in a society where people with bigoted and regressive views are merely considered as a difference of opinion. Human rights are absolute.

EDIT: So many downvotes, wow.
Just because the majority of people agree with his stance, doesn't mean anything. What, did you think this was some kind of democracy? ;)
Maybe you have undiagnosed ADHD:

http://en.wikipedia.org/wiki/Adhd#Signs_and_symptoms

Your story sounds remarkably like my own. I read a thread about ADHD on HN, and realised it was describing me. I found a sympathetic medic who prescribed Provigil, and the change was astonishing. I can now concentrate and produce.

Provigil is very gentle in its effect, not like Ritalin which is the normal prescription for ADHD.
I wonder if allowing a government agency to grant exceptions to anti-trust laws would be a good idea.
TL;DR Wikipedia
What about the human right to hold your own beliefs? Are you saying I am no longer allowed to believe what I want, I have to believe what you tell me is right?
First off: don't feel too bad. The behaviour you describe is super-common and I think probably the norm, rather than the exception. Most people don't have to battle with it though, because they have regular jobs with commitment-reinforcing routines and regulations.

What you need is to somehow get that same level of external "force" on you in this new running-your-own-business environment, where otherwise it is so easy just to slack off.

Let's try a framing technique.

When you think about stopping work to play a game, I want you to very clearly visualise coming to your client empty handed and them firing you. I want you to visualise having no money and not being able to afford all those things you like spending it on. I want you to visualise - again, super clearly - losing the respect of your peers, your family, even strangers you have met on the internet, all because you couldn't just get on with it and do the work and make your business succeed. And why couldn't you? Because you couldn't resist playing a stupid game designed to make someone else money at the expense of your productivity.

Got that horrible and depressing scenario clearly, vividly, and richly painted in your mind?

Now, just as vividly, picture yourself sitting up straight with amazing posture, coding like a damn JEDI, master of your domain, submitter of outstanding work, ahead of deadlines, everyone loves you, this is what you're good at and by god you're owning at it. You're virtuous and awesome, an actual fucking adult, a creator, producer, and earner of real stuff with real value.

You get the idea. Your imagination is a powerful tool which can do a complete hatchet job on the person you deep down don't want to be but seems appealing in the short term, and it can be PR god to the version you aspire to be but somehow don't have the bravery and force of will to become. When you do that, and get these images in your head with enough detail that they seem real, it bleeds into reality and pushes you to becoming one over the other.

Other than that, I got nothing.
I'm guessing a lot of us lack self-control when it comes to working from home. Too many distractions - for you it's games, for me it's the internet, for others chatting with friends.

The only thing that kind-of works for me is a complete change of setting - when I'm at home I never plan to do any work. All work has to be done in a designated place.

I started this in my colleage years, where I had a serious issue with distractions (like spending 3 months playing DeusEx from 7AM to 2AM) when I should be studying. I solved this by going to the Library and studying there. Sure its a hassle, moving to a secondary location, sure you need to figure out what you need to work there, but it was worth it. You just need to make sure that if you get an urge to game/surf the net/etc.. you get out of there. Sooner or later you'll get trained to automatically start working at the locaiton.

I have a similar setup with my current job - all work needs to be done in the office and the only work I do at home is the stuff that really needs to be done (I'm a cofounder, so it's easier :)). If I were to start all over again, then the first order of business would be to get myself a desk or an office - without that, regardless of how badly I want to do something, I'd be lost.

PS: An additional improvement in an environment is to condition yourself to work with music on your headphones. I started listening to music on my in-ear headphones due to the open-floor nature of the office and it really boosted my productivity (less distractions).

As a side-effect now headphones invoke a Pavlov-reflex, whenever I put them in my ears (sometimes even without anything playing) I start working harder and with more focus. It's also a curse - last time I needed to hack something (with maximum concentration) and found myself franticly searching for my headphones. Before finding them at last, I actually contemplated buying a new set right away.

BTW: We do have a team of people working in our offices and we did outsource quite a lot of stuff out. We found it that it's very common for people to get distracted when working from home and the tasks (even when properly planned) don't get executed. Now we actually prefer to have the outsourcers work in our offices if possible or we demand very hard penalties for missing deadlines (and they still do it!).

Don't feel bad - what you're experiencing is the norm.
Codecrap - HN for bad code
Internal Apple Document Shows Worries iPhone Growth Could Stall
Fixing tech recruiting
20 Euros
Am I crazy for thinking that prop8 disparages the love between two men or women that want to get married?

Maybe? California still gave all the legal rights and benefits of marriage to gay couples, it was just called something besides marriage. The only right Prop 8 took away was to the word "marriage".
Don't install games on your "work" PC.

This is a really simple way to keep yourself honest. Even if it's partitioned OSes on the same machine it would help.
So it's either your way or the highway? For thousands of years, his opinion was considered the de facto. Are people now suddenly bigoted hate mongers for supporting the same view that President Obama supported just a few years ago?
Wow this is exactly what I've been looking for. It also ties together what I've been working out in my head. I'm in a similar situation as OP but its worse because I am not great, haven't done great things and I'm stuck in the same low-paying PHP CRUD developer job. The difference is I'm not afraid to admit it. I do practice and learn a lot but never built anything substsbtial.

My current problem is with Civ5. It's hands down the best game I've played. One thing I enjoy doing is building extremely strong economies above anything else. When I'm raking, I notice it doesn't take much to swing in the direction I want to go. When starting out, you can only really increment gold per turn by 1 to max 7. I often wonder is there any of this I can apply to my real life situation? Can I model my income like a civ 5 economy? Maybe I can say x, y and z will increase the amount of £ I receive per day. Perhaps per hour so it's closer to a game.
Eich is a huge, HUGE proponent of the open web and helped co-found Mozilla. He created Javascript. He is a huge reason the web is so open and browser technologies made all of our lives better. He is also part of the reason Mozilla is so inclusive.

Everything is a balance. His contributions to Mozilla, the open web, technology, fairness and many other things outweighs his one misstep by far. And if that is not possible then we live in a black or white, totalitarian mindset state. People can be wrong and it shouldn't outweigh everything right they have done. Especially since this happens in the midst of major social change, there will be some waves.
Technically, Eich resigned. I assumed it was more from outside pressure than from the board.
You are free to say what you want, and free to deal with the repercussions. Everything can be framed as having two sides, but society at a certain point decides there isn't two sides.

The "pro-interracial-marriage" side is the only side that gets to speak its mind these days, because they are the side that is right. Try coming out as against interracial marriage and you will be run out of your company on a rail, as you should be, rinse and repeat for gay marriage.
It's odd that at the top of the article the author claims Pandora might be a scientist or a librarian (but they won't reveal such things)
Then later claims they looked at the hidden link because they were curious (because scientists are curious).
Maybe someone should have re-read their text for consistency.
Communists violate human rights too. Bring back the blacklist?
So was slavery, what's your point? State sanctioned discrimination is not just a difference of opinion issue, to reduce it to that is patronising and insulting in the extreme to the people being discriminated.
Same here. stty is available through cygwin, although I didn't result in a playable game.
One big problem with this is that you still end up having to use raw JS anyway. Debugging is usually a big hassle too.
Hi Guys,

Nicholas here. I started Carlypso.com last summer when Chris (my co-founder) and I had helped a number of our classmates sell their used cars after graduation.

About 9 months ago, I had the pleasure of dealing with Instamotor founder Sy when he bought his Audi A4 with our help. His feedback over email was really encouraging:

"About your idea:

1. I was looking a bit at ways to remotely unlock a car over a network connection. It seems to me that the technology story around that is a bit weak, but not completely infeasible. First, there's automatic (http://www.automatic.com/) though i don't know if they'll ever ship a product, but in theory it's really what you guys want. Second, there is a myriad of small stuff like this http://www.text2car.com/

2. I really liked the concept of being able to take the car for a drive, free of any awkward conversation with the owner. It's really pleasant actually, and it gave me the time to think about the purchase and inspect the car. The user psychology is really nailed on that one. That's the way I want to buy every used car from now on."

Long story short, Sy and Val liked our service so much that they decided to just copy it. I'm all for competition and welcome Val and Sy into the used car market. It is sorely in need of a better solution, one which will make buyers and sellers happier and eliminate the inefficiencies and scamming of the dealer model.

I'm not a big fan of plagiarism but different people are different I guess.

If you'd like to stop by our offices, meet our team and see how we're doing, just PM me and we'll hook it up. Chris might even let you drive his 500 hp formula car, which he's been building over the last couple of years! :)

Cheers,

Nicky and the Carlypso team
Nicholas@carlypso.com
Search Engine Marketing – Para Marketing Blog
I was referring to the GP's sweeping "society" comment. State-sanctioned discrimination is not a difference of opinion issue. I don't care if people genuinely believe that gay people are immoral so long as their belief is not being used to legitimately undermine the human rights of a whole group of people with no rational justification other than fear and prejudice. I don't like that society and don't want to be part of it - thankfully I'm not, New Zealand legalised gay marriage and has none of the stupid religious conservatism in our politics that the USA has.

Eich, in this wider societal context, means very little.
>> Proposition 8 passed. A majority of people were in favor of it.

This is debatable; there was a lot of propaganda from the prop8 supporters that confused people. One co-worker thought prop8 meant schools would actively teach her child about homosexuality. Any sexuality(hetero or homo) teaching in school should be first decided by the parent, ihmo. At least when I was growing up, parents had to sign a waiver/consent paper before the high-school kids were sent to the birds-and-bees classes.

http://articles.latimes.com/2010/aug/03/opinion/la-oe-fleish...

>> The Yes on 8 campaign targeted parents in its TV ads. "Mom! Guess what I learned in school today!" were the cheery-frightening first words of the supporters' most-broadcast ad. They emerged from the mouth of a young girl who had supposedly just learned that she could marry a female when she grew up.
You'll note in that wiki article you linked, the Supreme Court has found hate speech restrictions to be unconstitutional.

There's also the case where the ACLU defended the right of neo-nazis to march in a town with a heavy Jewish population. http://en.wikipedia.org/wiki/American_Civil_Liberties_Union#...

Hate speech is often despicable, but Freedom Of Speech has traditionally been taken very, very, VERY seriously in the US.

Personally, I feel it's a dangerous mistake to start policing hate speech, and I don't want to see it happen. I think the freedom to express whatever position you want on an issue, no matter how reprehensible, is crucial to the ideals of the nation.

If that means fringe groups say awful things, so be it. For me that's infinitely better than the alternative.
Marriage is a sociopolitical construct, not a human right.
I've been doing home-office last year for a short period of time and it was going great at first and then turned ugly pretty quick, here is what I learned from that (in order of what impacted my performance the most):

- Don't work at home, it just doesn't work! (for most of us)

- Don't work alone in a room! (so, probably a co-working space for you)

- Do some workout(gym, jogging, biking) after work, min. 2-3 times a week! It will make you feel good and tired, so you won't have much energy left to play any games afterwards. This is also hard if you are doing it alone, you HAVE to find a workout-buddy so you can motivate each other, also it's way harder to cheat on your buddy than to cheat on yourself.
Also a great motivation for me: Take a picture of yourself befor or after each workout and track your transformation.

- Define your schedule: e.g. 9-5 is work and after that+weekends is off.

- Don't install any distractions/games on your work-computer. (Get a work-computer if you don't have one)

- Get at least one weekly 'event'(non-work related) you can look forward to. (This can be some TV-Show, meeting a friend, but it should be something that's fun for you other than playing games)

I cannot promise this will help you the same, but it helped me and I'm sure there are lots of other things you can do. What I've learned from talking to others is that solutions to stuff like this are VERY idividual, so be ready to try out a lot of stuff, some might work, many might not, and imho I don't think it matters if the advice is given by some overpaid shrink or some fellow geek. Just: if you try something, give it at least 4 weeks to see if it works.
Haha. I would have linked to "Marseille la nuit" https://www.youtube.com/watch?v=fIWG167J1To. Marseille really is the most hiphop city in France (Europe ?).
Consider your whole life at a distance. It probably isn't "gaming is making me procrastinate" so much as "something about my existence is still unbalanced, and gaming lets me get away from it." It is a quiet, long-term struggle to figure this out, and nobody can tell you at this point what exactly is wrong.

Start off by recalling that your expectations have to be tuned around what actually happens when you work at home vs. what happens when you have butt-in-chair office hours. You're only going to have a very few "productive" hours each day, where you write code and tests and make visible changes, and they come in unpredictable lumps. Coming into this realization can make you feel extremely guilty at first and make the problem worse if you don't accept it and give yourself realistic schedules to compensate.

You'll get pulled along a lot more with people relationships - clients, teammates, etc. can all motivate you through the boring bottlenecks. And having friends, of course; if you aren't socializing, you can fall apart pretty fast. Let your client know that you underestimated your productivity; you can probably fix things up if you make a schedule that is implicitly planned around what you want out of your life.
It's representative of the values they hold as a company. If you can't be bothered allowing your users' control over their own data, it says a lot about their deeper intentions.
Apparently it's not the done thing (and will get downvoted) to state that I won't use a $50 per month service when my personal current fee and level of usage is $0.20 per month.

A 250x price rise isn't going to keep me though.

And my point was that it was the experience of the personal usage of Tarsnap that sold me on the business use. Because I knew it would start small and low cost, and scale with our needs just as a pure utility would.

Somehow, pointing this out deserves down votes.
Yup, it's a common problem. My technique is to have nothing but work stuff installed on my work laptop, and then I go and work in a cafe, away from my TV, games console, and permanent network connection (although I can still turn my phone's wifi hotspot on when I need to check something on the 'Net). It does wonders for my productivity!
A former employee shares insider secrets for getting help at the Apple Store
WTFJeans V3 launched
Today we’re launching Beggars.co
Nice try NSA!

Seriously though, it worries me that there are more and more 'listening devices' in my home.

We've seen what has happened recently with the NSA listening to calls. What is to stop the authorities getting a back door into all these devices and just recording everything?
Networks all the way down, part 2
Actually, I would argue that actively campaigning for somebody be fired from their job for political views is much more bigoted, since you would surely have to be concretely convinced of the superiority of your own beliefs to think that means justifies the ends:

Bigot: a person who is obstinately or intolerantly devoted to his or her own opinions and prejudices
Agreed. Twisted's behaviour of installing a reactor on import has caused me problems which could be worked around by importing conditionally or at a later time, but in cases like this, where one is importing modules dynamically, one doesn't know ahead of time which workarounds one needs.
It's a great service, I just added Lobsters. Adding a service takes 2 minutes, using the online editor from github that automatically creates a pull request etc.

Edit: and already merged & deployed less than an hour later. Contributing is fun :)
Of course you should do this in any language. I once used a Ruby library that, when loaded, would try to connect to a database on a remote machine. Programs which required this library would take several seconds to display their --help output.

Because of that and similar incidents, I've learned to import argparse up front but nothing else unless necessary. Once argument parsing is done, then importing other modules begins.