skysight-inc/HackerNews huggingface dataset:
Immutable data types are a great idea, but man are Python's implementation of them so bad. Tuples are okay for really simple structures, but the lack of attribute access makes them a little clunky to use.

Fortunately, Python has namedtuples right? Holy shit is it such a pain in the ass to use. The way to declare namedtuples are some of the ugliest code I've seen anywhere, not just in Python.

Point = namedtuple('Point', ['x', 'y'])

Taking a list of strings to define attributes? Having to write the class name twice? Oh and as an extra fuck you to good coding style, a namedtuple instance has underscored methods that are intentionally meant for public use - https://docs.python.org/3/library/collections.html#collectio...

Fortunately 3.5 introduced the NamedTuple class that sort of fixed everything right? Of course I'm talking about `typing.NamedTuple` class, not `collections.named_tuple` - clearly two different things and definitely not confusing at all. Well, here's how you use that:

Employee = typing.NamedTuple('Employee', [('name', str), ('id', int)])

Just shoot me now.

3.6 fixed that, but I'm too tired to care anymore. I feel so frustrated just thinking about some of Python's recent daft design decisions. Hugely disappointing considering Python used to be rightfully lauded for having good style.
From the paper:
In conclusion, the temporary ‘slowdown’ in warming in the
early twenty-first century has provided the scientific community
with a valuable opportunity to advance understanding of internal
variability and external forcing, and to develop improved climate
observations, forcing estimates, and model simulations. Further
work is necessary to reliably quantify the relative magnitudes
of the internally generated and externally forced components of
temperature change. It is also of interest to explore whether surface
temperature yields results consistent with those obtained here for
tropospheric temperature.
Our analysis is unlikely to reconcile divergent schools of thought
regarding the causes of differences between modelled and observed
warming rates in the early twenty-first century. However, we have
shown that each hypothesized cause may have a unique statistical
signature. These signatures should be exploited in improving
understanding. Although scientific discussion about the causes of
short-term differences between modelled and observed warming
rates is likely to continue19, this discussion does not cast doubt on
the reality of long-term anthropogenic warming.
> You shouldn't have a workflow of fix failures blindly and private variables contribute to that style of over-reliance on language features instead of actual attention to detail.

If the project is large enough who knows every place some class is used? Even if you do it in what you claim is the "right" way, the compiler provides a sanity check on your work.
"no nice async web framework"

Tornado? http://www.tornadoweb.org/
Startup Fundraising Manifesto – A guide to getting funding for your startup [pdf]
Poet: Dependency Management for Python
The issue is remote sites that are using SSL and want to do an Ajax request to a local site.
Caterwauling is not the same as mewing.
This isn't a tech news website. From the Guidelines:

On-Topic: Anything that good hackers would find interesting. That includes more than hacking and startups. If you had to reduce it to a sentence, the answer might be: anything that gratifies one's intellectual curiosity.
Python the MS Word of Programming Languages. People over use it like a Swiss Knife. Expand a little and use it when it is the proper tool for the proper job.
The goal shouldn't be to get rid of jobs - people need something to do since we made surviving so easy. The goal should be to improve the quality of people's jobs.
Linux, why?
I'm not sure if it's all the language. I use RubyMine a lot and it's so much better than Pycharm. If anything I would have expected Ruby to be even harder to autocomplete. Yet Pycharm send much worse in that regard.
I believe this is for running non-browser applications in the browser.

Perhaps this could be a solution to avoid citrix or similar technologies if you have java apps only.
Mexican Gov Was Spying on Journalists and Activists with Pegasus Software
Computer programming isn't the only skill kids need
object mapping is the most important part of the ORM experience in my opinion. Writing DB queries isn't hard or even annoying, manually doing model binding constantly is frickin infuriating.
Not to be flippant, but ever since LinkedIn has become unbearably slow and buggy to use (since the UI update), any pressure to improve is welcome.
> "industry standards" and "reasonable effort" (controller, e.g. should flag that the processing the data should be restricted).

Not quite. That sort of fits the current model, such as Facebook not deleting data, just restricting access. In this case, data should be marked for deletion, "within a reasonable time frame". Data controllers may not retain the data indefinitely, no matter how much they want to.

In practical terms, the implementation of that will probably be influenced by the fact a user should be able to download all their data without hindrance, (Data Portability).
Are you kidding? If that's really what this does, you've just properly sandboxed a horribly insecure binary plugin, eliminated the need to constantly install patches, heck, eliminated the need to even install a plugin whatsoever.
The dickbar, by far. The spiel is a momentary interruption, usually delivered w/in the flow.
Absolutely, although I don't know how they handle wrinkles, though without an auto-fold/hang feature (that'd be so cool!).
Might be worth looking into Autowire [0]. Runs Scala code locally, compiles your API through ScalaJS, allowing you to write your app all in one language without exposing the business logic to the client.

[0] https://github.com/lihaoyi/autowire
Thanks. Not sure if it is useful for me as I still have to use python 2.7

UPDATE: I didn't see the python stubs, that made my day! lot of thanks for it!
I am going to disagree with the "it beats php, perl, R, and lots of things in readability and package coverage". PHP maybe, but Perl, R, etc. are quite readable. Often I find digging into others Python code, that it is written with a somewhat peculiar manner, making it difficult to reason about what the code is supposed to be doing.

I'd recommend Julia (http://julialang.org) for anyone looking at new projects where Python is an option. Similar syntax, though saner code structure (e.g. no tabs/spaces issues), compiled, strongly typed. All around an excellent language.
Porto (Software Architectural Pattern)
Security provided by the browser's vm instead of the system jvm?
I always imagined they would be called 'Stripers' but now realize why it could go horribly wrong when saying it loud.
Powerwall would certainly help with storage, wouldn't it? And consumers have an incentive to buy Powerwall to decrease the amount of power they need to buy from the grid.
You can try taking a broader stance and consider the criminalization of related things that otherwise innocent people would still want to use. E.g. encryption.

The jaded tone is likely due to laws being created for the 'drug war' and 'terrorism' quickly impacting ordinary citizens, while having relatively little effect on the groups they were purportedly created for.
You're quite correct. The proper phrase "The majority of people that could be bothered to vote still wants to leave the EU".
Phoenix flights cancelled due to extreme heat
This is for those reasons that EU companies are innovating in the privacy, for instance doing AI assistants which are private by design with https://snips.ai
The JVM plugin will only run signed applets these days, which costs at least $200 or so.

Presumably this will allow people who have legacy unsigned applets a way out?
It's like Indeed (in the early days, when they didn't have post jobs/resume search).

I guess it's possible they could build google apps type thing for recruiters eventually and step on everyone, although it's doubtful it will do them much good to get into that field.
Apple Alleges ‘Mounting Evidence’ Against Qualcomm's Business
Libraries, platform support/exclusivity, fast start-up, etc. The perfect language(s) hasn't(haven't) been invented yet.
Alex... really nice work! Going to dig in to this and check it out.
Why is the GDPR an requirements nightmare? It's one ruleset for the whole EU instead one ruleset for each EU state. And the GDPR seem to be not more complicate than the individuel laws where before.
He was referencing the US getting to experience dictatorial rule.
how did this thing even get 140M?
Is this "funny money" ?
Tabs, spaces and your salary – how is it really?
I certainly hope damage control does a better job than throwing another team under the bus whether or not they were let go. This speaks to systemic issues in my opinion.
If they aren't part of the EU or strongly associated with EU institutions why would the GDPR apply to them?

What the EU is trying to do is make it so countries outside the EU only have to think of the EU as a single country. This is why theres a single market and single currency.
I don't know about that. Packaging and web frameworks are issues with a language ecosystem. Not having a strong type system is an issue with the language itself.
While you're right the article is unbalanced -- I think it's acceptable when judging "not favorite".
So excited about this!
Oneplus 5: The best is yet to come – SuratNow
How much mildew is going to build up if it starts an hour or two later? Or sits in washer for a few hours after finish?

Waiting days? Sure... random-internet-answer(s) seem to hover around 24-48 hours before mildew becomes an issue...

So, sitting over night and then maybe a few hours before the dryer starts (Assuming that, it too, would be on a timer) shouldn't be a major issue.
> Running a clothes dryer unattended is not safe. Those appliances are among the more common causes of house fires.

A smart-ified clothes dryer is more attended to than a conventional one.

>And as a practical matter, busy parents with small children can't defer running the washer and dryer. It needs to finish in time to fold and put away the clothes, and you often need to run multiple loads

I'm one of them. I can't always defer, true enough. But I can often enough.
Techstars Expands Entrepreneurial Support in the Middle East with Dubai Accelera
> It was predictable and straightforward and boring, and generally did what I needed it to do without getting in the way.

This is usually how I know that a library is well put together.
>And I cannot use MyPy because I have to use python

What? That makes no sense! I think you should take another look at MyPy.
Why Does Economic Growth Keep Slowing Down?
It's kind of funny to see such a profound and important lesson distilled in to such a kitsch cross-stitch type musing. That might sound harsh but look closely - it took Graham 10+ years of following the wrong mental path before finally finding the right one. It's not about "copying what you like" it's about "finding yourself first" - and, even then, there's no guarantee self-actualization will put food on the table or pay medical bills.

All that in context, this would make a great inscription on a whisky flask:

>A guilty pleasure is at least a pure one.
I was happiest at a place where I was either paid 70% of the billed hours (client pays $100 per hour, I get $70, company get $30) with the company doing weekly paycheck (withholding the taxes, W-2, and handling the health insurance & 401k payments), or 90/10 split on a 1090 (but paid long before the client paid). I went with the 70% because I was a bit scarred of mucking up.

It is amazing how enthusiastic you can be in hour 50 with that situation. I frankly think its unhealthy but at least there was a pain point for requiring it and that pain ($) also benefited me.
It's not from a badly formatted source: it's my well formatted working code. I just did it a couple of minutes ago: I added an indentation level into a function and went TAB, ARROW DOWN through 10 lines of codes in emacs. There was a try except in that code and I had to pay attention to the line after the end of the except block.

I know that I should select the region and do C-c > to move it one level to the right, but it's not convenient. In any other language the editor indents it with one keystroke (actually it's 3 keystrokes: C-M-\ because it's emacs...) That's why TAB, ARROW DOWN is faster, when it doesn't add bugs.
Ask HN: What Was Your Experience with the EB1 Green Card Application?
What was your experience like applying, how much did it cost, how long did it take, any tips for future people applying for it?
IIRC, with many CAs all you have to do to generate a trusted certificate is show you control a subdomain. Once you control the subdomain, you get your cert signed by a CA, and then you can send keys anywhere you want.

In terms of who was _supposed_ to approve the decision, there is a policy in place for that. Did they get that approval? Who knows, but I think in theory there isn't a mechanism to enforce it once you control the subdomain.

Never underestimate the potential to make security mistakes.
A lot of web developers learned it, and a very natural tendency is to use a new medium in service of the old paradigm. The first tv broadcasts were a bunch of guys sitting at a table, reading the news just like they did on the radio.
"Hi, I noticed you have a job opening. Would you like me to fill that position with a small python script?"

~Google AI
Standalone packaging is even worse. There are a number of tools each with their own quirks and bugs. I thought Electron's 100MB packages were big, but then I tried to wrap up a ~30 line Python script that used one SciPy feature for portable redistribution on Windows. The whole thing came out to over 300MB!
And maybe not even a good explanation for small sites. For $5/month your site has a 1Gbps connection out. (Linode)
Timothy Morton wants humanity to give up some
of its core beliefs, from the fantasy that we
can control the planet to the notion that we
are ‘above’ other beings.

So... you're telling me there are too many chiefs, not enough Indians?
In particular, when the dishwasher's in the drying phase. Do you really care if the heating element turns off here and there at that time? Probably not.
Wow. From the article:

> the cancellations mostly affected regional flights on the smaller Bombardier CRJ airliners, which have a maximum operating temperature of about 118F (48C).

That seems like an awfully low cutoff point. The article alludes to this being about lift / needing to get more thrust to compensate. How much more lift are we talking about to get into 130F territory?
Do you need a reliable and genuine hacker? Contact hacksmart35@gmail.com for all your hacking related issues and web hacking. I really think I owe this man a lot. Contact him and thank me later. Ty
I mean, it's certainly some level of access if there's a local privilege escalation, but it's not "your box is already pwned". Proper isolation and correct permissions on the system will keep the damage isolated. I've seen attacks that were more-or-less nerfed because they couldn't find an open local privilege escalation.

I don't think these should be written off as "Well, you're screwed anyway" like we tend to do when discussing security against an attacker who has direct physical access to the hardware. Isolated user accounts are widely used as the model for running services because they provide significant (if non-total) benefit.
Of course you're right. These things are trade-offs. If it had no upside we wouldn't be talking about it because no one would use it.
Its pretty hard to run an actual java applet nowadays. I think Chrome doesn't support it at all, Firefox may have also stopped supporting it. The Java applet plugin requires all code to be signed, and you can't disable that check, so if you have some legacy applet it is going to be quite difficult.
What Is SBI, SiteSell, Solo Build It a FAKE BIZ? The SAME Company?
> The main focus is on getting the solution as quickly as possible with no regard for the code quality or maintenance.

That sounds like a startup to me.
Are you implying that the restriction is right, because of the content, even how disgusting as it may be? I don't think drawings should be censored, and I see no basis behind censoring them.
That's so vague that it doesn't mean anything.
> smart-ified

I don't care how smart your dryer is, if it catches on fire it's not going to do shit.
It is. And this is controversial statement but I'm really not sure how I feel about Net Neutrality.

Where I'm from (Russia), we had (and still have, to a some extent) a lot of competition in ISP space. This had happened just because government weren't particularly looking at that direction at the time (90s and early 2000s).

If one ISP did some weird stuff that upset customers, the market had actually worked and they lost profits, making them reconsider. This may sound weird, but that really was like that - "power" users were vocal, and word of mouth did spread fast. And absence of NN allowed ISPs to do things that were actually beneficial to the customers, like routing specific traffic differently so e.g. gaming would be smoother and files would download faster. Just because content customers meant good reputation - a stable userbase with steady growth. So I don't believe NN is a good idea if the market's right. It only makes sense if it's bad, with a few giant telcos and no competition.

[Edit: ignore this paragraph, please. I'm keeping it, but indeed it's a long stretch.] When the government decided they're going to get a grip on the tubes, things immediately got worse. No NN here, though, just censorship - a great pile of unsound kludges with mandatory monitoring and automatic fines if something goes through. But NN here would've killed tiniest ISPs just as well.

That's just how I see things. It very well could be that I'm mistaken here.
Have a look at this lecture. It's really well explained, at a undergrad level, how the cell keeps the error rate low. Quite impressive, imo. https://youtu.be/DRBREvFL19g
Cheerp[J] seems to have a handful of fans here on HN: https://hn.algolia.com/?query=cheerpj&sort=byPopularity&pref...

apignotti also posted the big discussion yesterday; gratz! Definitely some interest here.

CheerpJ Applet Viewer – Runs Java applets without a local Java installation | https://news.ycombinator.com/item?id=14587296

Not really sure on the licensing model; it doesn't appear to be open source. From the FAQ: Details on the commercial licensing model will be made available at a later date.
is it still all guys their?
Strategies women can use to combat sexist interruptions
Filtroo: An app to promote responsible sharing
I agree with PG for the most part.

As to copying--I think we all do it. BF Skinner spent a lifetime trying to get us to realize we all copy. I had a Psych teacher, who did Gardening during the the summers, whom told us flat out, "You're not original--you're just Copying. Some of you will copy better than others, or will be able to copy the right stuff?" I still can picture his conviction when he would lecture. I remember thinking this guy is so different than the other teachers. He was a true rebal, with some very high ethics.

It doesn't matter what I think because I am poor.

As for art, for years I didn't get it. I still don't get a lot of it. I did have a nervous breakdown in my twenties. I finally kinda got Modern Art. Or, at least the stuff that isn't popular. I needed to bust a gasket in order to understand the beauty behind Modern Art. That might be the only positive to having a breakdown, at least for myself.

But then my opinions don't matter because I'm not wealthy, or credentialed by our society.
I think that it is a relevant factor for people to consider to make a view on whether the policy is correct or not.
K6 adds support for load testing WebSockets
Did you actually click the link and read the title? Because that's what it says: "A chronic low dose of Δ9-tetrahydrocannabinol (THC) restores cognitive function in old mice"
I actually didn't like this "mistake, mistake" thing. I didn't know if it was based on what was said previously or what was to come.
Oh man, GWT mechanism all over again ?
This doesn't sound like philosophy so much as a quasi-Gaianistic religion.
If you are having trouble finding a needle in a haystack, adding more hay is a bad idea.

source: https://www.youtube.com/watch?v=V9_PjdU3Mpo
That's correct. My thesis (https://github.com/ycoroneos/G.E.R.T/blob/master/thesis/main...) also has detailed info in chapter 3. The github documentation is still a work in progress :P
Tumblr rolls out new content filtering tools with launch of ‘Safe Mode’
RamdaScript has now a playground
Thank you for putting this document together
Counter-argument would be that permitting states to stipulate their own criteria for measuring bandwidth delivered would further motivate providers to build out infrastructure that actually delivers the quality of service they're claiming. (Or at bare minimum, compel more honest advertising.) Otherwise, providers will A) tweak their infra to spoof popular speed test methods, and B) lobby the FCC to soften the regs that apply to them. Indeed, they do both already. Your speedtest.nets are regularly skewed by providers siting its nodes inside their networks.

I hardly need 50mbit/s+ for residential use, yet I know perfectly well I'm not actually getting that bandwidth allocation by any meaningful measure. Running curl against cachefly routinely surpasses 50m, even during peak, yet transfers from other destinations will creep down to 10m.
House cats are from a species of cat that tolerates humans better than the others.

I'm also of the opinion that if they were any bigger things would change.
- save in stocks, not savings accounts or funds

- dont waste money on tv subscriptions

- play less videogames

- take greater care of your friends and relations
The New York Times visualizations and interactive analyses are consistently high quality. Playing your own psychological tricks on Uber drivers in https://www.nytimes.com/interactive/2017/04/02/technology/ub... was very interesting.
It's worth viewing in the larger context though - it shows that the legislature has no problem censoring things, even possession of certain things, without evidence. In my opinion that sets a rather big precedent, whether you disagree with the specific content in this instance or not.

In terms of the principle, the actual content shouldn't matter in the slightest.
First, you have to define "made".
Does fire make ash? What was the fire thinking when it was making ash?

Also, why define the "eternal one" as God.
That eternal one may be so simple, and dumb, like that DNA replicating machine.

Usually "God" implies conscience. Are you okay with brainless God? And if you are okay with brainless God, then the word God has become meaningless, because now God can't even think, it surely then isn't God of any religion.
>This language is slowly destroying my soul, one painful unit test at a time.

So we're two! I'm trying out Rust for a side project now and so far it's fun. Lots of compile-time checks, non-crippled lambdas, and you can use itertools too!
Certainly agreed re; approval/proportional/similar.

I'm not sure what you mean regarding the EVN. They provide auditing services, don't they? Also recommend auditing paper ballots here:

> Conduct post-election audits before certification of final results

> Without voter-verified paper ballots, effective audits are impossible.

From their top ten list: http://editions.lib.umn.edu/electionacademy/2016/09/08/evns-...

My impression is that SF actually uses a ballot designed for chain of custody accounting, but doesn't use it whatsoever in practice because of the effort involved. I may be wrong on this. But "many hands, eyeballs, proper accounting" is unfortunately not available for our elections in most areas.

Happy to chat more about this - email is in my profile!