skysight-inc/HackerNews huggingface dataset:
What about composing together the various environments? Suppose we have a stack of three wrappers, A (the base provided by the framework), wrapped by B, wrapped by C. A declares an interface for what it provides, and provides a context object that implements it. B declares the additional interface it wants to provide, and composes in the object from A. (B's interface should probably compose in the A interface.) C does the same thing to B's interface. (Or, possibly, merely composes in A's interface.) In the end you end up with an object that is fully type-safe and statically checked, and has all the bits you want, with just a bit of management in the framework.

I'm not sure why none of the frameworks seem to be pursuing this, so I'm interested in why this doesn't work. (And yes, it's not completely as slick as a dynamic language... I'm comfortable with it taking a bit of manual, explicit work, since none of the other options are completely automatically working with no negative tradeoffs either.)

Go definitely doesn't have the machinery in place to dynamically create an interface for C that might compose A or might compose B, such as Haskell might do, but it seems like it could still work to me.
Turn off the TV, get something like F.lux on your mobile/tablet or don't use it and if you need light get something with low-blue output.

I searched for a long time to find a room light that avoided blue light and you have options with dimmer stands and certain bulbs. I ended up with some absurd-looking salt lamp that casts a soft orange light and has a dimmer (and allegedly releases magical ions that purify or clean the air -- not buying this last one).
Well, your website is also shit since you're not explaining what it actually is. How do you expect people to sign up for something that only insults you on the landing page without any more information?
> No warning on rebasing or amending pushed changes make this pretty unhelpful.

Btw, Mercurial Evolve makes this completely safe for hg. No more warnings about "git push -f"!
So what? If you made it to the desk interview, you had something worth talking about.

And what if you were the guy that found a bug in a Mars rover? Sure, maintenance programming, but you still did something worth talking about.

And even maintenance programmers with a bit of initiative can do something interesting. "Well, I had to dynamically change the name of 20,000 functions in a project so I wrote a tool to do it automatically and went home early while the tool did the work". That's the quality the interviewer is looking for.
nice, thanks!

it's too bad that it's not possible to change the behavior from 'caps lock' to simply imitate the shift key.
I think it certainly runs risk of "No true Scotsman". It also assumes that "their quality standard" is higher than that employed in the continuous production cases. I do think it's a good nudge for artisanal producers, which fits your role :-P
One of the things that isn't talked about, my guess is because urbanists also tend to be liberals, is reforming welfare policy. States have largely succeeded in, and the federal government has condoned, treating cities as the primary welfare distribution organ. Public housing is mostly built in the cities, most federal school aid goes into the cities, etc. This concentrates the social problems which welfare attempts to remedy in the cities, and has the impact of driving families out of the city when they have kids.

For example, until very recently, San Francisco had a policy of randomized school assignments. The idea was to limit the economic segregation of schools. Such policies are ultimately counter productive, because all they do is drive wealthier families, and their tax dollars, out into the suburbs. Peoples' egalitarian ideas tend to come crashing down when their kids are involved.
I learned a lot from reading the GOF book two or three years into my programming career. I think like most people, I'd already invented a few of its patterns, like pluggable Strategies, but it was great to have shared names for things.

On the other hand, I interviewed a while back and was talking about a web sockets project where my Javascript received a callback when a message arrived. "Did you think of that in terms of Design Patterns?" they asked. "Not really, callbacks are pretty common in Javascript." They really didn't like that answer. If I could think faster on my feet, I'd have whipped out that quote from Peter Norvig: "Design patterns are bug reports against your programming language."
been down >1x this week. unacceptable
There are two "allow" methods, one from the acceptable ads list, which is public, and another via an "x-adblock-key" that can be provided in an HTTP header. There is no list of which sites use the key.
Driverless cars and public transit will not fix the problem of having to spend an enormous amount of money on infrastructure caused by a lack of density.
Sweet, partner with any battery manufacturer, Tesla, or the US military and lets get this technology fast-tracked. Higher density batteries can't come soon enough.
I'm not convinced "nothing but black t-shirts" is much better than what the average engineer wears.
I don't know what's going on, but it seems to have something to do with black v-neck t-shirts.
Mindsets on A/B Testing
Did it say he was going to use secret patents?

Or just that he was going to use NSA patents?

Because the NSA maintains a list of patented technologies that they offer to the public on various terms: http://www.nsa.gov/research/_files/tech_transfers/nsa_techno...
Why do these startups think that they can put up a website that has so little information about what they exactly do? There's nothing solid there about how they operate, what they charge, what promises or guarantees they make, etc etc.

Instead, they still find time to put a big 'meet the team' section in there, as if end users deeply care about the bios of the founders and don't care about how the product actually works or costs.
This is really great, but could you put in a bit how some transition matrices aren't markov (e.g. [0 1; 1 0]) and the convergence criterion where you can take M^n n->infinity and get the occupancy of the states?
My end goal is to learn more about online advertising so that I can make better decision on what online ad avenues/strategies to adopting depending on the goal. It is not about making a decision in isolation whether to focus on lead gen, sales, etc. But to come up with a cohesive plan for incorporating online advertising in different part of sales and marketing aspects.
Looks great. I'd use this for videos on my laptop that I want to cast, so definitely looking forward to video support!
Not with kids involved
I am the author of that post, feel free to ask any question or give feedback :)
> Yet people insist on you naming a design pattern in interviews, like it's a secret handshake, or asking a carpenter if they know any kinds of wood. What does it prove? Nothing.

Looking at someone's code is more useful than asking if they know patterns. But some knowledge of patterns is a good thing IMHO.

For example, if I can point at some of my code and say "Yeah, that's kind of like a factory" and know I'm understood by my teammate, then that's a good thing.

One goal of the design patterns movement was to introduce a terminology that could be shared and understood. I think they succeeded to some degree, because employers are looking for familiarity with this terminology. Why is it such a PITA?

> Programming isn't paint by number, every day you make decisions on what to write and how to design or structure the code in a continuous basis.

But wouldn't it be quite cool if you could check your thinking against other peoples successes and failures? Patterns simply catalogue problem/solution, I don't think you're supposed to implement them in a paint by numbers fashion.
Yes, PSLV launches are not as prolific as Dnepr or Ariane. With current infra, I think ISRO can pull off 3 launches per year[1]. There were two launches this year, and a next one is planned in October for IRNSS-1D.

PSLV is indeed available for dedicated commercial launches[2] :) I've heard a dedicated launch costs around $15M; so ridesharing much be cheaper.

ISRO has two operational launch pads. One of the pads doubles up as Vehicle Assembly Building (VAB), so a rocket that's going to be launched from this pad holds up the pad. The other pad has a separate VAB with rail track to transfer assembled rocket[4]. Another VAB is being planned as of now, so that should improve frequency of launches (parallel assembly of rockets).

[1] http://en.wikipedia.org/wiki/Polar_Satellite_Launch_Vehicle#...

[2] http://www.antrix.gov.in/pslv.html ; http://www.isro.org/publications/pdf/114%20missions%20Brochu...
It's great that we have more privacy options for phone calls, texts, etc. But we still need a great "Privacy" phone, right?

There's been attempts to do so recently (Blackphone, PrivacyPhone), but both have suffered from the same fault: a binary blob for the baseband, something that renders all your privacy moot. I've heard the best recommendation is a tablet + USB LTE dongle, to put some space between the two processors ("firewalling" the baseband processor a bit).

Is there a better way than this? Has anyone kinda walked through all the steps neccesary to have a private/"secure" phone?

That being said, congratulations to Whisper Systems -- their work on things like TextSecure and Redphone have been awesome. I hope one day they do a Kickstarter for a whole secure mobile operating system.
They seem to be down...
Yes, we are working on static analysis and automated refactoring tools. We will make them available publicly when they are ready, but that won't be very soon. We wanted to publicize Context now to encourage people to start using it and incorporating it into new code and frameworks.
As my family includes many sufferers of anxiety of varying degrees, I've done quite a bit of research on the subject (in addition to personal bouts with mental health issues of that type, going through psychotherapy, etc.) and this James fellow is definitely the exception rather than the rule.

Typically childhood trauma like what the article mentions is much more likely to lead to mental issues (usually something like anxiety + depression) in adulthood.

So yeah, take that one with a grain of salt. It was a silver lining for this guy that he had such a horrible childhood but that is a dangerous part of the thesis to not mention as being very abnormal.
If I want a black v-neck I'll just go to Wal-Mart and pick up a pack of them.

Also, f*ck you I won't do what you tell me.
Glad you liked it.

Yeah, good point on the title! ;)
See also: last month's discussion of the Commencement address by Bill and Melinda Gates https://news.ycombinator.com/item?id=7954266
>The problem should more correctly be "how do we avoid needing to have so much state passed around?"

I work on a large game, and multiple smaller games of my own, which all use a few static classes or singletons. It's never caused an issue, and I've never had such a problem with inheritance. I've never regretted using it in my code. What about Exceptions?

You don't seem to have offered a way to avoid having so much state to pass around. Where does the notification queue go? Where do the settings go? Where does the scene manager go? All the MVC controllers I have are static or singletons.

I don't see what objects have to do with no global variables or functions being allowed. There's no theoretical reason a global function can't operate on or return objects.
as wreegab pointed out earlier

> So in fact there is really a public list and a private list it appears (through the x-adblock-key header), while the public list is presented as all there is to "acceptable ads".

https://news.ycombinator.com/item?id=8103119
I this point, I am pretty much the only developer (there are contributors for translations, issues), and working on this more as a hobby (I do not want this project to be more than this). As much as I would like to, I just don't have the time to work on a Firefox port for the time being.
Yes, my point was mostly that it's much sparser than a city proper in terms of things that have what I'd call culture to them, and that you're required to have some kind of vehicle to navigate it.

Of course, I wouldn't have felt comfortable riding a bike on the road there, so it somewhat mitigates how useful a bike actually is.
The best part about Flipkart are

1. They made online selling popular in India

2. Products got delivered in door steps

3. I could buy books at 20%-50% discount and foreign edition textbooks easily. This is something we couldnt even dream about, in some parts of India

4. I could easily get products from lee, nike, puma,... at discounted price too. If you are not in a big city, then its difficult to get branded products and if you get then you need to worry about whether they are original or not

I bought close to 150 books from Flipkart, which would cost some 70$ more if I buy from local sellers.

I have my Toshiba Laptop, Moto G phone, Lee Shirt, Sennheiser Headphone, Reebok shoe all bought from online sellers :)
Why "Empty Quarter"? What's the reason behind that name?
Very nice concept; a mvp

Just on first glance:
1. first diagram and others, ball jumps from beginning of BtoA arc to B without sliding along the arc.

2. second diagram box was no P(B|B). That is boxes are mislabeled.

3. strange, but arcs are sometimes at an angle. It appears to happen if they are scrolled to, but no if drawn on the initial screen.

4. while the R S on the next diagram does settle to a steady state, it starts with random Rs and Ss marching across at random rates.

Good Start!
I think what you're trying to say is that you're sick of people misusing or otherwise applying GOF patterns without thinking about them. Being 'sick of GOF patterns' is something entirely different.
Its perfectly fine to like that, just as it is perfectly fine to like private jets and caviar. The discussion, at least in this article, is how sustainable it is from a cost perspective.

You are talking about liking something that has tax revenues that cover mere fractions of the costs incurred. How much would you like it if your property taxes were 50% higher? 2000% higher?
The way I differentiate in my brain, because I'm an 80's kid:

I do like "Ferris Beuler's Day Off" style suburbs.

I do not like "Edward Scissorhands" style suburbs.

I grew up in the former, and given the opportunity, I'd like my future kids to do the same.
Hacker One Says Hi from China :-3 meow~
The suffix is present both in "utopia" and "dystopia".
I'm curious whether other organizations like Couchsurfing could hop on this bandwagon. Even without a city-wide natural disaster, sometimes there's an immediate need for local relief and people have excess capacity.

Here in Baltimore there was a street that collapsed a few months ago and residents were sent to hotels way outside the city with no way to get to their jobs, schools, etc. Luckily a week or two afterwards they moved them to hotels closer to their homes, but Airbnb, Couchsurfing and other organizations could provide relief for minor crises like that, too.
IMO this isn't really a problem that can be solved via Personal-Stylist-as-a-Service or a Trunk Club type offering.

Engineers dress like shit because they don't prioritize personal appearance very highly. The only thing that will fix this is to get an engineer to prioritize personal appearance more.
Not outside of California. Cycling is a seasonal luxury in the northern states, and car-centric culture makes things extremely dangerous on roads where cyclists are neither expected nor welcome. The number of times I've been shouted at to "get on the sidewalk!" is astounding (riding on the sidewalk is actually illegal in most cities).
The GPL is itself copyright, but its licence doesn't permit modification. One example.
Wow. I'd never before heard of Hedonic treadmill. Much appreciated.
In Interpose, that's exactly the pattern I use to pull in methods that require context while still satisfying the http.Handler interface (e.g., https://github.com/carbocation/interpose/blob/master/example... ), so it seems that this pattern would work well with Google's Context.
The zlib fork with "massive performance improvements" appears to perform worse than the earlier and actively developed zlib performance patch set from Intel [1]. Why start from scratch?

[1] https://github.com/jtkukunas/zlib
It turns out that about half of all people are luckier than the median. And ~2.5% are two sigma luckier than that.

It's a weighted random number generator. Some people make their own luck, and some have luck thrust upon them. Some people work hard and never get lucky.

Obligatory XKCD applies here too: http://xkcd.com/904
Recently a researcher at Toyota predicted that self-driving cars would perpetuate suburbia and enable more driving. A door-to-door ride in my own car would be far faster than riding the Boston area commuter rail, which has an inconveniently sparse schedule, and then the Red Line into Cambridge. The only reason to take the commuter rail is to avoid the chore of driving. The diesel locomotives are not cleaner or more efficient.
San Jose Police Have a Drone
In my experience it's been a ready flow of money -- people with funding (e.g. VCs, or upper management at a large firm) are able to advance an agenda that includes KPIs, and then you're back to square one. Somehow they're shielded from the learning at the grassroots. By this means learning processes are disrupted.
git-gc defaults to preserving any objects less than 14 days old. This is configurable.
That is coming: ran out of time and didn't want to drag my feet on actually releasing it. Video is also complicated: transcoding becomes a real requirement and its just messy to do that in a performant way. But I have something like 40 apps and libraries I've written that are all 80% there but never get released, so for this one I set an explicit rule that it would be released in whatever stable state it is in by the end of July.
I'm in Boston, and the drivers rarely ring after putting in an order request. This works fine for me, because the vast majority of the time there are no issues, and then if they get there and can't find me, they can call. I'll also call or text them if I notice they seem to be having issues taking the right route to me. For me this works better than adding an extra phone call to every transaction.
"the build system is now effectively responsible for source control for some part of the project"

Well, I think I've found your problem. :-/

I had a close call with nearly installing/building some Java packages a couple of weeks ago, and due to reasons I eventually decided to try and find a different solution. Looks like the bullet I dodged was bigger than I thought.
I will absolutely trade my ridiculously sized house in the burbs (within walking distance of a bank, grocery, bike store, gym, Tae Kwon Do school, movie theater, two salons, 3 doctors and 3 dentists and a psychiatrist, a mix of about a dozen local and chain eating options, an optometrist, high-end toy store, dry cleaners, wine store, 2 ice cream parlors, and a 5 minute drive to more local ethnic food than you can shake a stick at soon to get a local library, and dozens of miles of bike and hiking trails and three large swimming pools) for an equivalent sized domicile of my choice in my choice of neighborhoods in Manhattan tomorrow if he wants to make that trade.

After which, I'll probably sell that place in Manhattan for the $30-40 million I can get, buy another house back in my old suburb and a vacation house in Southern Spain and retire/angel fund my choice of startups till I die.
Um. Isn't encrypted calling on iPhones already provided by FaceTime Audio?
I'm not sure what studying failure can tell you about what's necessary to succeed. "Don't do this", maybe.
I hosted a website a while back on Ramnode[1], it was like $7.50 for a SSD based VPS. Prices have actually gone down to $5 since I used it. Pretty similar specs compared to Digital Ocean. But I also used Google's pagespeed service[2] which caches everything on their servers so it was super fast to load wherever. Then I had a backup on another Ramnode VPS on the other side of the country. Never had any downtime.

I'm not super savvy in regards to hosting websites and services and what not, but it worked well for me. I don't know what would be required to host a service like Minimal Reader so this may not even work for you.

[1] https://ramnode.com/

[2] https://developers.google.com/speed/pagespeed/
Yep I read stats that my kids results depends more on parents then on school choice. But you know what? If I have kid in shitty school, I will have to spend a lot of time and effort by supplementing that school and occasionally fighting that school. I will have to pay for tutors. I will have to look up math plans and exercises on the internet. The preparation for SAT or CAT or whatever will take more months then it would if the kid would be in a good school.

If I have a kid in good school, I can spend all that time and effort by something else. As a consequence, good school makes my kid to gain that something else and both of us to have less stressful life. I'm going to be involved too, but we will be both doing something we enjoy or something that adds bonuses on top on what school should be teaching.

That parental involvement can be both difficult and uncomfortable or pleasurable and easy. Which one it is going to be depends a lot on school choice.
I'm not sure about Stumptown, but from what I've heard Blue Bottle still gets a portion, however small or large, from importers.

Here's a somewhat dated article on the issue where Blue Bottle talks freely about sourcing from Royal Coffee:

http://www.eastbayexpress.com/oakland/the-truth-about-your-c...

In this sense, yes, it's true that they have direct trade. I don't believe it's true that it's completely direct trade. Royal Coffee, like MGP, does one thing and they do it very well. They do it better than most anyone with modest resources could hope to do. Is that dishonesty? Is that straight up dishonesty? Maybe, but maybe not. If you are looking for the highest quality coffee for your company, it'd be foolish not to take advantage of a place like Royal Coffee.

As for other whiskies, I do think dishonesty is bad, although I'm not sure how many companies are "straight up dishonest" about their operations. Like Blue Bottle has Direct Trade coffees, High West does have a distilling operation. Angel's Envy seems to almost tout their finishing. Similarly, Hooker's House says their bourbon is "born in Kentucky".
So switch to mozjpeg 2.0? You only need to compress once. You have to serve the file many times, and it reduces storage space.
Great analysis, Aline. The positive examples are exactly the kind of emails I'd like to receive. On the other hand, if all recruiters followed this advice, I'd have a harder time rejecting spammy recruiters... So maybe keep this on the down-low? ;)
>The hopefully part is where thread-state becomes unpleasant, because if you want to do concurrent work, you must pass one thread's state to the other. The other thread has no guarantee that it is there, so the programmer must either hope it is or verify it, which is annoying.

Right, so then you are in a situation where you can always rely on it implicitly, until you can't.

Much better to be consistent and force the inclusion everywhere as you mention in your second paragraph.
Do Not Fuck With A Hacker is a determined and talented hacker dedicated in making ezines.
All hail the mighty www.phrack.org and Wozniak and the Wachoskis.
All hail K.K.
Higher density communities built around public transportation rather than driving. It even says that towards the end of the article.
Hah! Glad to hear some people got some use out of it. It was definitely a huge pain to work through all of that.