skysight-inc/HackerNews huggingface dataset:
> Quick, name a language where I can do something simple like mention [...]

Every single language out there is capable of doing all these things. Like, even Python fits the bill:

> Whenever this function is called

Use decorators to add pre and post processing to any function.

> make sure there is enough free memory (at least ---- MB)

Call out appropriate OS function (http://stackoverflow.com/questions/2513505/how-to-get-availa...) via ctypes. Or use Python's own `gc` module, if you're only interested in your process' memory.

> if there isn't, first swap out any objects from memory to disk

Use `pickle` to serialize your objects, use advanced meta-programming to create proxies for the serialized objects which you can then use (store in dicts, list, pass to functions, etc.) which defer loading from disk until needed again in the future. Remember to initiate gc cleanup after you're done dumping things to disk.

> starting with the ones that had been used the longest time ago

Store access time on objects, sort by that time when serializing.

> and after the function has finished running, swap those back into memory.

Touch every proxy object so that it reads and unpickles the object it replaced earlier.

--

So, let me repeat: every existing language lets you do all of that and more. The amount of work needed to make all these differs by language, of course, but you can do all that if you want, in any language you choose.

I don't know what you're thinking. Given that the above is obvious to any competent programmer, could it be that you're a simple troll?
3. 3 laptops, broken when I wasn't even there from a family member or child or pet running by snagging the valve and ripping t out. 2 were just rendered unchargable, the third shattered the screen. I'm far from alone in that, as well. It's rather presimptuous on your part, don't you think?
I imagine it polls very well with developers who somewhat-distrust the flailings of "the business guys", but if the phrase gets past that layer...
With the same morality it would be highly insulting to those who cant get food to worry about taxing properties in the city so middle-class have better access to them.

But even more, it would be more practical to understand why are people paying such high rents, not only because of housing supply, but because of the concentration of work in the cities, once again, making it way more sustainable to live in a city than in the country side.
Accepted several hundreds? That would be astoundingly ungenerous even if true. According to here: http://www.independent.co.uk/news/uk/politics/syrian-refugee... .. "Despite its proximity and high level of economic development, Israel has refused to take any Syrian refugees."

If we take a country similar in population size to Israel - Sweden - we can see that they have taken in 2-3% of their population. Israel should at least match that - they are next door! That would mean at a minimum of 300,000 refugees. Open up Israel.
Really different and fascinating video, thanks!

Two surface level questions: 1) The "trains" design pattern you mention, do you have a link (to wikipedia or something) with more info? i might know the pattern by a different name 2) I liked the tree printout seen at 1:42. Is there a library or algo you used for that?
a *straight jacket* that you can wear

You shouldn't be allowed to sell a metaphor if you can't even spell it properly.
A container is a process with some extra isolation (namespaces), they certainly can't overrun into each other without an exploit.

Why would the costs be outlandish? We offer that and we're fairly cheap. Since the cost is mostly fixed per customer, it should scale linearly.

As for scaling, they already have to do that, by pointing different requests at different servers depending on their load, etc.
Everytime you upgrade you should check their webpage before, since they sometimes decide to move folders around or break things... Not really out of the way there.
(I've been using it for months before I decided it was not for me. Or was it the other way round?)
Best public defender ever?
> He offers no evidence to his argument that houses are going for 6-figures above the asking price.

This definitely is happening, but it's cherry-picked data. I live in what's considered a desirable area for chinese people (warden and steeles), and the latest sales around my area have mostly been for 6 figures over asking, with some being as high as 200k over asking. But around Unionville (a posh neighbourhood a few mins north), sales have actually been under asking (although, to be fair, the asking prices there are typically >1.5M)

Email me if you want a data source.
The original magsafe design ( http://www.iclarified.com/images/news/9014/31392/31392-500.j... ) was the most ideal desing out of all of them in my opinion... I have seen macbooks slide about 20-30cm with the new designs without the magsafe connector disengaging, all because the of direction of pull.

The only problem was that the original magsafe design was prone to fraying. and probably didn't look as sexy as having the cord at a right angle to the computer.
Sounds like a trip to to the gym and a few G&Ts followed by sex might have sorted this whole issue out more efficiently
> not really fair is it?

It's not fair. It's very very unfair because even in the PC world, hardware vendors write their own drivers for Windows, or release documentation only under NDA, while Linux is often dependent on reverse engineering by random contributors. And of course the latter can't begin until the hardware is actually available, delaying support.

Unfortunately, that still leaves hardware broken on a large fraction of systems, with only a handful of vendors explicitly designing systems for Linux. It's better than it used to be, but not great.
> You frequently see journalists representing the results of unreplicated garbage psychology experiments as scientific fact yet you never hear anyone claiming string theory is any such thing.

Supersymmetry and string theory have long been presented to the general public as "theoretical physics awaiting experimental validation." See, e.g., the Elegant Universe. Hell the fact that the LHC hasn't reported a new particle where most supersymmetry theorists expected one to be has prompted a rush towards moving goalposts to keep supersymmetry alive. That's not the sign of a robust theory.
3D/VR design and creative activities (or even just consumption), Cortana, higher performance media editing/creation... plenty of possibilities.
There is definitely a global effect of house price increases. One explanation is that access to cheap credit inflated prices in the US, but after the crisis, its the feds general interest of money being low that continued that.

Its interesting to see that dwelling production in the US hasnt caught up with basic demographic demand: its possible the 2008 crisis hit developers so hard that its taking time to recuperate dwelling construction (generally world wide)
Sure, but you had to learn something about this OS when it was new for you so that now you don't have to think about it. When you switch to Linux, there's maybe a week of adjustment to learn how are things around town, which is really the same for Windows and macOS.

The argument is that if you're going to try Linux, it's only fair to give it a fair shot at adjustment, rather than complaining that it doesn't work like you old OS, because guess what - it's not supposed to.
Yeah it makes a targeted attack easier.
But it prevents attacks across different customers.
Tradeoffs ...

Maintaining a running pool of VMs per service in a sufficient number to serve the load of requests grouped by customer, and assigning the VM to a specific customer only at needs is different than running permanently a pool of (n).customers x (m).services VMs.

This is why an efficient scheduler and the usage of disposable VMs is a need.
Still depending on the load and the variety of the traffic it may not be feasible,
you are absolutely right !

Another approach to ensure isolation is the usage of a MAC framework.
As I wrote "I bet they can develop even better solutions" ;)
Smart condoms: like Fitbit for sex – and you can even share your stats
Just checked in my new-ish flat where I have an electric oven only (gas hob). It's a 13A square pin standard wall socket, but does have a dedicated breaker, so it is indeed not on the ring main for the other wall sockets. It has a 32A MCB in the consumer unit (same as on the two main rings). Not sure if it's ring or radial without removing the socket.
I was thinking media editing/consumption (e.g. Video production, music making etc.). Presumably the Machine Learning GPU crowd get some use out of Windows machines too
I really appreciate your advice! Thank you very much, I will give it a try
Think of it as being exactly the same problem as "different customers have paid for different features". It's just that only the internal tester customer has paid for this new feature, so far.

How do you handle that? You need a consistent permissions framework.
this film is usually shown in the UK in this format, essentially 2 x 2 hour movies, usually on a friday and saturday night. It loses nothing in the telling to do this. Watch and enjoy, the soundtrack is almost as good as the movie.
The toronto bubble has begun spilling outwards to much of southern ontario as toronto homeowners cash out and move to the smaller cities. Here in Kitchener-Waterloo about 1.5 hrs from toronto house prices leapt 20-30% in the last year, primarily though all cash deals far above asking or assessed value. People flush with toronto cash are over the moon about spending so little on a house (even though it's still an insane figure divorced from reality). And they don't care what shape it's in since they since have more than enough cash leftover to gut the house and redo it.

Foreign money being injected into the process isn't helping, but I think the real problem in Toronto is unbelievably low interest rates and easy access to mortgages. Families are being approved for loans of such absurd proportions that everyone who has entered the real estate market in the last 10 years is house poor. Even small interest rate increases will make payments unaffordable and the whole teetering mess will come down.

Governments have exactly zero incentive to do anything about it, since greater property values means more revenue without the mess of a tax increase. The Ontario land transfer tax isn't high enough to stop anyone from speculating, but it's plenty to cash in on the situation.
Bold claims, I hope it pans out. I'll be watching this language.
The New York State legislature is often controlled by both parties and it's in the GOP's best interests to do what they can to stifle the vote while they have control.
I agree this is annoying, but regarding gdb: lldb works fine, and it's not Apple's fault that gdb hasn't automated the complicated signing dance. In my experience, gdb is broken on macOS in several other ways too...
That is not a "differing view". It's a blatantly incorrect view - as indicated by the reply of the account you subsequently banned.

But I accept your disapproval of my jibe towards HN.
My Music etc., are made by Apple. My Music is Garage Band, I believe. My Videos would be iMovie, I believe. I think savegames end up in Documents because they are considered to be "documents" as opposed to app state (which would go under ~/Library/Application Support), but I'm not sure what the Apple guidelines are.

"Microsoft User Data" is apparently from earlier versions of Office. Newer versions will look for it in ~/Library/Preferences, and you can actually move the folder there to get rid of it. [1]

Here [2] is my Documents folder. It's 100% crap that I did not ask for.

As for sharing: This discussion was about macOS, although the same limitation applies to iOS: There's no way to share an iCloud Drive file directly. If you do right-click -> Share -> Email, you get an attachment that you need to send, even though the file is already reachable through the cloud. Every other competitor (Dropbox etc.) adds a "Copy Link" option to the Finder context menu.

[1] https://www.atulhost.com/remove-microsoft-user-data-from-doc...

[2] http://i.imgur.com/PvXbmJk.png
Amazing detailed analysis on how cats flip themselves during the fall by smarter every day: https://www.youtube.com/watch?v=RtWbpyjJqrU
Hackers who breached Barts NHS Trust exploited a zero-day vulnerability
Patterns of Software [pdf]
What about patents?
While the majority of it probably isn't 'how the world should be', a man is going free because (we speculate) that the evidence against him was gathered illegally. This bit probably is 'how the world should be'.
after thinking about this more, what's the difference between an introductory email versus SPAM? basically I'd be targeting an ideal customer (sports league) for an offer of a free service, not just some random post. would there be a difference if these were hand written emails?
Does the XPS Developer Edition have a 4K screen?

I have a standing offer to buy a developer a laptop with a high DPI screen [1] if they can make High DPI support suck less on any distribution.

At least Fedora auto detected the screen and enabled 2x scaling. GRUB is still unreadable. WINE apps are unreadable. QT less than 5.6 is unreadable. GTK is unreadable.

1: http://en.chuwi.com/product/items/Chuwi-HiBook-pro.html although there's a newer one I can't find
It could also be because their method doesn't really prove who the individual really was...
This is by Richard Gabriel, who coined "worse is better" (https://www.dreamsongs.com/RiseOfWorseIsBetter.html). He's also the author of Patterns of Software (https://news.ycombinator.com/item?id=13799628).

Incidentally I just finished reading it and found it quite fascinating.
Given Google's continuous refusal to provide an adequate resolution mechanism despite all the negative PR, we can only assume they have a strong financial motivation to not provide it.

Interestingly, AdSense bans are almost always around pay day. We don't know what they do with the funds after an account is banned — we can only go on their word and goodwill, which we know is not to be trusted.
Richard Linklater (Slackers, Dazed and Confused, Boyhood, etc) leads the Austin Film Society and screened the full European cut then led a discussion of the film (video of that here: https://youtu.be/irYXKADAKjI)

Attending that screening caused me to discover one of my favorite American films.
It's weird, former UK colonies don't usually have a problem with land speculation, artificial scarcity and money laundering.
Is i=i++ the same as i++?
Inventor: https://angel.co/nikita-cheniuntai
"great battery life"? really? that's why I gave up Apple, they aren't keeping up. What's the new Macbook 3-6 hours, maybe? Meanwhile Windows laptops are pushing past 12.
If I live in San Francisco or New Work, my spouse can easily get a job. If I want to change jobs, I can easily do so without putting my life upside down. This what a large, diverse job market does. Plus a lot of people value urban amenities (i.e. the ability to walk 2minutes to your favorite café...)
Those computers are like $3000. Even if it only saves 10% of MacBooks from an untimely end, it's still $300's worth of insurance.
I really recommend looking outside the Ubuntu ecosystem, (Arch is a personal favourite), if you ever decide to try it.
I like how the author puts the burden of the quality of being ethical on those being trained in computer science after admitting in the first paragraph that they, like everyone else, leave school looking for jobs because they need to eat. Please go place the burden of ethics on the employer who has more control over what they instruct their computer workers to do. I would give more credence the author's argument should he have been from the University' business school.
That's a good description for a data engineer from my end.
If you enjoy the work consider a subscription. Since the election I've really been thinking a lot about how important it is for those of us who are able to provide financial support for quality writing. I'm trying to shed the idea that content should be free by asking, "Is this worth paying for?" If it is, then pay. If it's not, move on to something that is.
And many cultures have significantly different ideas on even that, and even in the Western world it's changed significantly over time.
that page is blank unless you allow ajax.google.com....
Are you web scraping the html or are you using Amazon's API[1] with an AWS developer access key?

[1] http://docs.aws.amazon.com/AWSECommerceService/latest/DG/EX_...
I don't remember there being an intermission (in contrast to Seven Samurai) when I saw a screening so I'm no sure the best point to pause.
I'm surprised HiDPI is working so well for you. See my other comment but I'm guessing you don't run anything in WINE. Yes Fedora is miles better than other distros regarding HiDPI but there's still no way to force per-application scaling in Wayland.

I mean, Windows doesn't get a pass here - you still can't scale HyperV, or anything involving mmc.exe, but Mac's HiDPI support is flawless.
Except these two countries are quite an upscale from the late 19th to 20th century occidental air pollution issue, an upscale of one or two order of magnitude.

Even if they both stopped every source of pollution instantly right now, the consequences would still last decades. Even if they do something, improving the pollution situation is not enough by a large margin, keep in mind the occident failed to fix their own air pollution issue to this day.

Economies of scale may well worsen the situation further due to Jevons paradox, while most renewables are actually not renewables at all.

The only way out is a radical global change including a large decrease in energy consumption and this will come when the massive overpopulation issue will fix itself through famine due to lack of oil to grow food "green revolution" style.

There's not doubt that reality will catch up on us, it is just a matter of time as this is now inevitable. Our choice is between crashing full speed ahead in a wall of brick or trying to slow down to crash in a hopefully somewhat less dramatic manner.
How Do I Decide to Make an Investment?
Looks like a class action against Google for Adsense terminations was dismissed by a California judge:

https://topclassactions.com/lawsuit-settlements/lawsuit-news...
Just an interesting tidbit - you can't bomb (bug) on first click. If you hit one, the board is reshuffled so that your first click is good. Apparently this fantastic UX feature was part of the original game. When someone pointed that out first time I posted it here - I just had to add it.
Index fund, real estate.
Personally I like real estate because I find the principles of it intuitive.
> I put Fedora 25 onto a Dell XPS 13 Developer Edition and everything worked perfectly out of the box

You have a 13" 1080p screen correct? Then all text will be absurdly small because Fedora only supports scaling at 1x and 2x but not at 1.5x, which is what that screen size / resolution combination requires for a comfortable DPI. Windows does support 1.5x scaling.
It's really difficult to conclusively measure the relative size of these impacts because they're all happening at the same time. I think comparing with Vancouver, Toronto has a larger share of organic demand vs induced or external demand because it has a larger and more diverse economy. I live in BC (moved from Toronto in 2014), so I've watched the very similar scenario play out in Vancouver and I think the case for foreign investment as the primary driving factor is pretty strong in Vancouver. It's difficult to prove because the government stubbornly refuses to collect data in a robust way, but what data does exist points to that conclusion. Vancouver is a smaller market, so it's easier to isolate the impact from, for example, the Immigrant Investor Program. But I agree that the only coherent reason why Toronto saw such a big spike in 2015/2016 is probably related to redirection of foreign capital that would have otherwise gone to Vancouver.

But to be clear, I didn't mean to say that the organic factors in Toronto justify the 20% YOY growth, just that in contrast with Vancouver there is more inherent strength in the market to cushion it from taking a big haircut if and when foreign investment tails off. In the Lower Mainland, real estate and associated construction industries account for around 1/3rd of total economic output - which means BC is more dependant on the Lower Mainland housing market than Alberta is on oil. Toronto at least doesn't have that potential double-whammy of having housing tank and losing its main economic driver at the same time. Housing is outpacing Toronto's economy, but housing IS Vancouver's economy. The latter scenario is a lot more dangerous, IMO.
Around here houses are still built on site, stick by stick. The only things built off site are the roof trusses.

I don't understand why all the walls, at least, aren't built in a warehouse and then trucked in. It could be built cheaper, more precise, with far less wastage. Holes for electrical, plumbing and HVAC could be already put in. Even windows can be pre-installed.

(I know that part of the problem is architects under-design houses, leaving it up to the contractors to figure out how to route electrical, plumbing and HVAC on-site.)
Thanks you too
I've never understood this. If I gather evidence against somebody illegally, and it proves their guilt, shouldn't we both go to jail?
Value creation in a connected world