skysight-inc/HackerNews huggingface dataset:
Adrian here, author of the post and book. Thanks for picking up a copy of Practical Python and OpenCV -- and it's really awesome to hear you liked it so much.

If you have any questions about computer vision, feel free to reach out!
This would be a heartwarming message at any workplace, but honestly it's impressive to see how even Bay area tech superstars can be human. This may have or not something to do with the recent hyperactivity of pg.
LinkedIn.

I send a LinkedIn message to some of my contacts I'd like to work with, telling them it's been a while and that I'd like to get in touch, and offer them to take a cup of coffee with them this week.

During the meeting, tell them about your freelance status and that you're looking for work.

Good luck!
This is so totally messed up. Having an entire DOM with all the associated scripts running live, just for a thumbnail. What if you want to show a dozen of them? What if the user wants to save the image to their machine?

We solve this by taking server side screen shots (currently using slimerjs). We used HTML2Canvas in the past, but it wasn't reliable enough.

It would be great if there was a built-in browser method though, to just get a bitmap of the screen in Javascript. I've heard about security considerations in the past — a prompt for access would not be a problem in our case.
I barely follow this topic, and I was aware of it 18 months ago.

Living on the edge is always a risk, and those who do should be prepared for the risks associated with it.
The 32 bit runtime (commonly used but misleading name, it should be called legacy) is still supported, but it's not compatible with Swift. iOS had the modern runtime from the start, way before 64 bit.

https://developer.apple.com/library/mac/documentation/Cocoa/...
You certainly could wrap realloc(), but besides the bizarre/unnecessary behavior with realloc(ptr, 0), it behaves exactly as you would expect: on failure it returns NULL and doesn't touch your pointer, on success it returns the new pointer. It doesn't seem like it requires any more "energy" than using malloc() and programming in C to begin with.
I can vouch for awesomeness of Org mode, I've been using it for all my note-taking needs for more than half a decade. I've created http://markup.rocks for a quick way to read my notes stored on Dropbox when I'm out and about (it's a bit heavy and not usable on mobile browsers since it runs Pandoc client-side).
Ok, work hard to clear secretive data from memory after using it... Just be sure to sanitize that code that manages untrusted inputs first (and by all means, make sure those two are different) because:

- Your input parser can compromise many more things than what you'll think about erasing.

- You won't be able to clean all secretive data anyway. You can't win here.

- You can be sure to a huge degree that your input parsing code won't get outside of its bounds.
What Oxfam isn't saying about capitalism and poverty
While this is an interesting approach I would not recommend this for anything other than desktop websites, where bandwidth and performance are less of an issue, simply because you are loading every single "Thumbnail" as a full webpage inside those iframes. Downloading all the associated scripts, stylesheets and other resources.
Starting from scratch is such a monumental feat. Why wouldn't Apple just use it's cash reserves and buy out an existing car maker? They could literally buy pretty much any automaker they want, why not start with something like Fiat Chrysler, for a bargain basement price of $10B?

I'm a supply chain guy. I work for a company with one of the top peer-rated supply chains in the world and Apple is still so far ahead of us that it isn't even funny. Apple could, with minimal comparative effort (as in, easier than any other company, not easily), translate their manufacturing supply chain knowledge towards automotive manufacturing and optimize it to the point of absurd superiority over every other automaker out there. That alone could change the profitability of the company significantly toward self-sustainability within a matter of a 3-4 years. Throw in a well funded software and hardware research division, poach the top specialized auto manufacturing talent, and you have a recipe for the next Toyota or (forgive the faux pas) VW.

But if you start from scratch, you are going to be 10 years away from making a dent in the market, regardless of how much expertise you have.
It depends on my arrangement with a client. Work-for-hire contracts make reuse impossible, and so I tend to price higher, whereas a perpetual, transferable, etc. license to the code I work on has a better chance of being useful down the line and so I may knock a couple bucks off.
Rockets have always been able to land in the ocean more or less intact (i.e. without disintegrating).

No they haven't. SpaceX started doing that in 2013 before the barge landings. I don't think anyone had ever even tried to land(sea?) a liquid fuel booster before that.

You may be thinking of the STS solid boosters, but solid boosters are really a different game. They can be built sturdy enough to hit the ocean at 60mph, but they couldn't possibly be simply refueled and reflown.
While that's true, this blog post points out that to make a dent in the market, you need some factories. You can't just have Foxconn assemble your cars with key parts from Samsung. I don't think Apple can pull a rabbit out of a hat with a surprise "special announcement" of an Apple Car, nor can they make a surprise pre-announcement 6 or even 12 months before availability of a car... it's going to be pretty obvious that they're building a car factory a couple years before anyone can buy one. And we don't see that yet.
>The long term relationships, I had, were with people who were my exact opposites. People I thought I would have nothing in common with.

You are an outlier as far as research on attraction. Studies show that people are attracted to very similar people on all dimensions, except for the opposite sex.

Maybe there needs to be "The Opposite" dating app:

George Costanza Does The Opposite

https://www.youtube.com/watch?v=cKUvKE3bQlY
Node.js Websocket Examples with Socket.io
What the GP said about how often people travel:

> Then drop in this hard truth - recreational travel isn't actually all that commonplace amongst average people. The average joe goes on one or two major vacations in their entire life.

is similar to what sama said about why his local startup (Loopt) failed[0]:

> Most people are too boring I think--they're at the same places most of the time.

0: https://www.producthunt.com/live/sam-altman#comment-208794
More afterwards. For me, getting acquainted with schools again has made academic discussion more real.

Also, watching the changes in industries I interact with at work over the last decade has been eye opening.
What's happening in Turkey really breaks my heart. It reminds me of Fareed Zakaria's book The Future of Freedom, about the phenomenon of illiberal and failed democracies. His thesis is that democratization can't succeed without liberalization first, brought about by economic and social development. And that democracy, anyhow, is a lesser good than constitutional liberalism. That the ballot box is less important than the impartial judge and guarantee of liberties. This is difficult for us who believe in both freedom and democracy to swallow. Where would Turkey be today without Ataturk? And what if his dictatorship survived to the current day, would that be better than the populist, democratically-elected, Erdogan?
The space shuttle couldn't land and take off on a planet whose atmosphere doesn't support it, hence why SpaceX is trying to do the same via rocket propulsion.
I agree, Chrome and Firefox already have the functionality built in because they use screenshots for that "tiles" page when you open your browser.

Exposing it using an API would be amazing. But there are most definitely security considerations that would have to be worked around.
You can get memory errors outside of malloc() on an OS that overcommits RAM. Whether that is a SIGSEGV or some other signal, or just the heavy boots of the OOM killer nuking your process, doesn't really matter. The key point is that your program cannot handle them. It is impossible to handle every case.

Allocation failures can and do occur outside of malloc() when overcommit is the memory policy. Malloc might return memory that it believes is valid, but when you try to write to it later on, the OS discovers that it has no free space in the swap and no spare pages to evict. Result: process death (SIGSEGV? SIGBUS? not sure, but it doesn't matter)
China’s Search for Dissidents Has Now Expanded to Foreign Countries
The fix is to wrap malloc and friends with your own routines.

You can have it so that "my_malloc" always returns NULL on a zero length object. Or, if you prefer, so that it always returns a unique pointer:

void *my_malloc(size_t size)
{
return size ? malloc(size) : 0; /* option A */
}

void *my_malloc(size_t size)
{
return malloc(size ? size : 1); /* option B */
}

And you can make my_realloc have the nice freeing behavior:

void *my_realloc(void *ptr, size_t size)
{
return (ptr && size)
? realloc(ptr, size)
: !ptr
? my_malloc(size)
: (free(ptr), 0);
}

Note how we still carefully implement a parallel requirement to the one in ISO C. Namely that my_realloc(NULL, size) calls my_malloc(size), regardless of size, just like realloc(NULL, size) is required to be equivalent to malloc(size). We want all the routines in this allocator to be drop-in replacements such that any code which is written to the ISO C allocator spec can be blindly retargetted to use them.

Pretty much any serious C program, if indeed it doesn't have an entire allocator of its own, at least wraps the standard one, for the sake of more uniform behaviors, as well as easy retargettability to embedded scenarios. (Not only embedded machines, but say, embedding in a larger application, where you are told "you must use this table of funtion pointers as your allocator" and it doesn't quite look like malloc: zero allocations are not allowed, realloc is missing, ...)

In this particular program, realloc is wrapped under a function called resize; resize had to be patched not to rely on realloc(nonnull, 0), but users of resize don't have to change. The programmer doesn't have to look for fifty uses of resize to fix them. However, it's worth it to wrap the functions at a lower level anyway, with an identical API.

The C library is far from perfect. Do not expect consistency, completeness, beauty, symmetry and so on.

There are worse things in it than realloc(ptr, 0) not behaving in the neat way that you would like. Oh such as:

isalpha(str[42]); // str is char array

being undefined behavior if char happens to be signed, and str[42] is negative, because isalpha takes an int argument which is expected to hold a positive byte value [0, UCHAR_MAX), and not char value. Whoooops!
I think "api" meant that they didn't see any of the upside in the bubbles.
Even after people have RTFM, many are still misunderstanding the pricing model. For instance, people now think you can store 2TB of data and download 100GB of it at once (5%) for free. Nope! You can request a max of 0.16% per day of data for free. Once you exceed 0.16% of your data in any given day, you start getting charged. I think it's fair to say that even with the intent to RTFM, the pricing model is unusually strange and AWS should really put more effort into explaining it.
Have you ever just reached out to someone you don't know this way and had success? Cold calling or knocking on doors? I haven't been in a position to have this need but this whole comment thread made me think about doing it the "old-fashioned" way, rather than browsing the web meat/meet markets.
>Instead of raising exactly what they needed, they over-raised by double or tripple that

Do you have any evidence of this? On the surface, it doesn't even make sense. There are two sides to every transaction; are you claiming that the entrepreneurs could see the slide coming, and anticipated it, but the financiers didn't?
Many thanks for sharing this. One usability nitpick though: please consider fixing links so that they could be opened in new tabs/windows.
Netbooting isn't new. Insecure netbooting isn't new (ala netboot install USB's per distro). Wrapping it up into a cohesive service is and it's awesome.

Going signed CA wouldn't be hard to do in this case at all, it's just part of the build process actually but only gets you to to a trusted PXE+menu system. After getting into the PXE menu a system could still hijack the upstream kernel/initrd files.

Even freebsd netinstall (aka not limited to linux installers) is just http/ftp without any package signing. The whole ecosystem probably needs to mature some more in regards to verification that won't break downstream projects such as this.
Still not a hot idea. The IP packet size is ultimately limited by the Ethernet frame size, which is 1500 bytes practically everywhere. The article says, “A ton of favicon were bigger than 50k,” so it would take over 30 flawlessly delivered fragments to create this hypothetical “single” TCP segment. Any congestion anywhere between you and the server, and the segment does not succeed.

Though, I suspect stestagg meant IP packet. Less than 1.5 kB is just too small for most icons. The ubiquitous 32×32 Wordpress icon is just about small enough, and still sharp enough for Retina, but Amazon’s more detailed favicon is 2.8 kB, Y-Combinator’s icon is 6.5 kB, Apple’s 2-toned logo is 9.1 kB, and Microsoft’s 4 colored squares are an astonishing 17.1 kB.

On the other hand, like everything else outdated about it, Slashdot’s icon is a mere 668 bytes.
> You had a lot of company saying the same things in 1999.

It doesn't seem like a useful comparison though.

Adjusting for inflation, current investment levels (2014 at least) are less than half what they were in 2000.

There are also, what, 8+ times as many people online, spending upwards of $350bn (2014 figures I think), compared to $50bn in 2000.
It is supposed to be, but the administration organized a Massive Resistance campaign against the California Civil Rights Initiative. [0] Through mass 'holistic' review of individual applications for racial background, the University of California follows the same racial quota admission system that nearly all elite American universities do.

[0] https://en.wikipedia.org/wiki/Massive_resistance
There's also this mail in the freebsd list archives on the subject. Not sure how current it is, but it gives more names of algorithms and people in case one wants to dig deeper. https://lists.freebsd.org/pipermail/freebsd-hackers/2008-Nov...
One alternative would be to sidestep this memory-reallocation-and-buffering problem altogether and just use the code that already exists to connect to an ssh-agent, even when only private keys from the local filesystem are used for authentication:

Let ssh spawn an ephemeral ssh-agent just for the duration of the key-exchange and just for this single ssh instance. Kill it once authentication is complete.
Amazon Wind Farm Fowler Ridge Is Live
Org-mode has lots of hidden jewels. For example, org-drill [1]. Spaced repetition with all the flexibility of org-mode-made flashcards.

[1] http://orgmode.org/worg/org-contrib/org-drill.html
I do sometimes if only just for the comments.
Make $500 a week creating 90-second taglines for innovative companies
Hi My Name is Austin and I'm a senior at Emory - I'm working on a project where companies launch advertising contests sourced from their target market. Each contest is limited to 50 submission and the companies give $50 to the winner. We've got 10 companies this week looking for university students but we're short on users in their age demographic. Love for anyone who is looking for easy extra money to submit (it only takes 90 seconds to submit and the contests close in 25 hours) We've already given out $2,500 to 75 winners in 4 weeks.

Heres' the link: http://www.rawreturn.com/contests.html
Amazing! If they want to use this tech for landing people on Mars (or anywhere) they still have some way to go though!
Here's a great interview with Stephen Kotkin, Princeton professor, about Stalin: http://www.hoover.org/research/hoover-fellow-stephen-kotkin-... . He was apparently a very charismatic and likable guy. The interview convinced me to buy the book.
I think the difference here is that C# (and the .NET platform) was never meant to completely replace C/C++ Win32 development; it was a higher-level solution for a certain class of Windows applications.

I might be wrong, but I thought Swift was designed as an eventual replacement for Objective-C (with its seamless interoperability, and the fact that it uses the same runtime as Objective-C, it doesn't seem that far-fetched). If it is meant to be Objective-C's successor, then Apple should really be preaching by example at this point.
But of all those that are requirements (not internet, etc.), are medium-term requirements at best, and farmers are probably in a better position to adapt to losing them than a city population is to losing its food. For instance: people only need medicine if they're sick and farms can grow crops without fertilizer, gasoline, and electricity (just not enough to feed billions).
Thanks for posting the list. The chart in the article makes it impossible to tell what the books are without hovering over each one to see the captions.
And some people are keeping their fingers crossed for knock-on effects in the housing market.
A bit preachy, sorry: Everyone frowns on discrimination by others, people in different times and/or places, but much more important than criticizing others is to do the right thing ourselves. We need to look in the mirror (myself included!).

To choose a prominent example, open discrimination against people who believe in Islam is socially acceptable in much of Western society. How stupid can we be? We're blatently repeating the exact same mistakes as before, the exact thing we frown upon. Some will say, 'but this time is different; we have a valid reason' - which of course is exactly what people said all those previous times, it's just a justification for acting out on fear (and it's just dumb reasoning). The old fears and rationalizations look absurd to us now but seemed just as real at the time as our current fears. Ours will look just as absurd in the future.

Why can't we just apply the simple, blanket rule? Don't discriminate; prejudice is cruel, unjust and unfair, and it results in very bad things. It provides no real benefits. It always ends up on the wrong side of history; the accomplishments and heroes we honor are never hate and the hateful, but those that stood up against them. When our descendents look back at us, which side will we be on?
Can anyone recommend articles or guides for learning org-mode? I'm interested in its use as an all-purpose information manager to combine TODO lists, daily notetaking, calendar and agenda planning into a single cross-referencing system, but I've never managed to get past the "make and navigate a simple outline" stage.
The only bad thing about ES7 async/await
>good for soul

I've always been intending to read "The Human Zoo":

"How does city life change the way we act? What accounts for the increasing prevalence of violence and anxiety in our world? In this new edition of his controversial 1969 bestseller, The Human Zoo, renowned zoologist Desmond Morris argues that many of the social instabilities we face are largely a product of the artificial, impersonal confines of our urban surroundings. Indeed, our behavior often startlingly resembles that of captive animals, and our developed and urbane environment seems not so much a concrete jungle as it does a human zoo. Animals do not normally exhibit stress, random violence, and erratic behavioruntil they are confined. Similarly, the human propensity toward antisocial and sociopathic behavior is intensified in todays cities. Morris argues that we are biologically still tribal and ill-equipped to thrive in the impersonal urban sprawl. As important and meaningful today as it was a quarter-century ago, The Human Zoo sounds an urgent warning and provides startling insight into our increasingly complex lives."

http://www.amazon.com/The-Human-Zoo-Zoologists-Kodansha/dp/1...
It's because bad code is a long-term cost, not a short-term cost. So lay businesspeople will decide from the following:

A) Pay $x and get y features. (I don't know this or don't care, but this is good code that is inexpensive to maintain.)

B) Pay 0.5 x $x and get y features. (I don't know this or don't care, but this is bad code that is expensive to maintain.)

Even if the businessperson knows that bad code is expensive, they rarely understand how much more expensive it is. And almost all executives are incentivized to sacrifice long-term gains to achieve short-term gains, so even if they knew, they'd rather kick the can down the road.
World History Atlas and Timelines Since 3000 BC
They provide tools to port. So I think it depends more on how large your app is. For a small app running the tool and making a few misc fixes will probably be fairly easy. At least if it is like the 1.0 -> 2.0 change.

For larger apps, well, I have a Swift app that isn't really very big, probably still small but significantly bigger than a tutorial, and it keeps freezing Xcode. (Edit something in Interface Builder, switch to the ViewController class with IBOutlets in it, then switch back and forth between ViewControllers making edits. Each time it takes longer and longer until I just force-quit Xcode to avoid twiddling my thumbs for 5 minutes.) So I don't think Swift is ready for any app that isn't pretty small anyway.
The behavior of realloc(NULL, x) is always equivalent to malloc(x) according to the C standard. But yes, I never remember a time when malloc(0) or realloc(y, 0) played nice.
And no, free user acquisition schemes like SEO do not work in 2015 at scale in established markets.

This is the big takeaway from this article for me. In fact I think this whole article is great if you are trying to build a new way to do something in an established market.

We aren't in the travel space, but we are in the retail home goods space, which is arguably even more established. It follows the same pattern: 1-2 times a year someone needs something and it's a fairly large purchase.

We learned early on that the most important thing is getting in with manufacturers and having them promote us.

A white-label/tech-vendor strategy works if your product is indeed relevant within the incumbents’ offering, hard-to-build, reasonably easy to integrate and doesn’t step on too many toes.

Man that hits home
The article states "the enclosure has the dominant influence" and it's far greater than any measurable impact of the speakers. The worst-case change is an inaudible .09 dB difference.
HelioAnimals
I think this is where self driving, electric, Uber cars will rescue us. The car will be owned by someone who has plenty of charging stations and it'll simply appear at my door 5 minutes before I need to leave for work.
Tying Quantum Knots
This is very cool and very useful to me as I'm currently in the process of rebuilding our infrastructure (working on OpenBSD autoinstalls at the moment). I'm gonna test this out very shortly although I'll be using it internally and not over the Internet (for what should be obvious reasons), but it will definitely simplify things for me. Thanks!
In 1987 I and my friend from school went to Moscow to apply to MATI (Moscovskii Aviatsionno Technologicheskii Institut). I am Jewish, my friend Jewish as well. While in line to submit some additional paperwork, we were approached by an administrator, who walked us to the side, and frankly told us to take our documents somewhere else. As Jews, we would never be admitted to the Institut. no matter what.

We went to one of the more Jewish institutes: MIIT (Moskovskii Institut Zheleznodoroshnogo Transporta). The other Jewish place was Moskovskii Institute Stali i Splavov.
Penguin ditches degree requirement for job applicants