skysight-inc/HackerNews huggingface dataset:
I agree that they were not very different languages.

I did port code from Python 1.5.2 to Python 2. It required two minor changes, because "from X import *" was no longer allowed inside of a function.

As a similar example, the transition from 2.5 to 2.6 meant that an assignment like "as = 0" (which might initialize a counter for the number of 'a's found) was no longer legal either.
Legacy python needs to be thought of as the plague and avoided. There’s so much awesome in the 3.5+ land of python. This is a good thing.
If you are reading Mark Manson I would also suggest:
As You Are by Nick Sparks

Good on you for being honest with how you felt, it's something I still struggle with.
That's awesome, means Android emulator may soon work well on Windows/AMD and not conflict with hyper-v any more
Gmail had an exceptionally well UI, minimal and highly usable. What is bizzare that mailers were extremely bad and you didn't even needed to compare them to Gmail.

JS had maybe it's share, but Gmail was minimal, condensed and fast. Literally no one had that back then and today no one knows because competition is dead. Now every webapp is JS heavy, but there is still a great difference in minimalism. Not saying that google products are small, but they seem to have a better balance in "fancy" user interaction than the rest of the web. The reckless transition to a modern web with more bells and whistles takes it's toll, mostly because "we can", but it should be "make sense here".
I’m a software developer. I’ve worked for a network security company.

I don’t think I’m qualified to try to do that for something I might buy, let alone ‘normal’ people.

That’s one of the problems with the market approach. The information assymetry is so big that it’s not a reasonable demand on a person for a $15-20 lightbulb.
Oof. I wonder if any of the people who lost funds will sue Parity for negligence. Would they have a case?
Probably one of the most terrifying and very possible futures.
Previous discussion:

https://news.ycombinator.com/item?id=9653898
Whenever I read this stuff, I imagine similar articles about the US government.

We don’t do it the same way. US government officials will “leak” certain information to the press, knowing the press will take it and run.

The goal is the same. The government wants to strategically distract the populace.
Been there, found a gig remote. Good luck with your search.
While we all lament about incentives & regulation which are out of our control, there are still a lot of technical issues to solve, perhaps we can start there.

A few examples:
- It's currently pretty hard to add HTTPS on a router admin page.
- Browsers can't do service detection on a local network, so we have to resort to central servers to manage headless devices (or ugly, unreliable local IPs).
- Punching through firewalls / NAT is still hard, so we again resort to central servers.

It's really fucking hard to do IoT at scale, in a easy-to-use way that's secure and that respects the user's privacy. I think we can solve that.
What is OTP?
Can any Firefox pro here help me with the bookmark manager of FF? I can assign keywords to bookmarks (shortcuts), and I like that a lot. So if I assign the keyword `hn` to `https://news.ycombinator.com` I just need to enter `hn` in the URL bar.

But assigning a keyword to a bookmark is too many clicks away: I need to open the bookmarks manager (`show all bookmarks`), select a bookmark, look at the bookmark properties in the bottom, expand two more fields: keyword and description.

Now is there a shorter way to get this? Or an add on that works with FF 57?

Also: Is there a way to filter all bookmarks with keywords assigned to them? This question has been asked in [1] several years ago, and back then it was possible to add a `keyword` column to the existing columns in `manage bookmarks`.

[1] https://superuser.com/questions/479059/in-firefox-how-can-fi...

Edit: Added an explanation for the `keyword` feature.
I love that projects like this (and this: https://code.facebook.com/posts/717010588413497/introducing-...) exist and I love that they provide install instructions like this: http://opennetlinux.org/wedge ... but I also wish they provided a hardware parts list that I could easily order.

Does anybody know of a site that provides that kind of hardware shopping list for these projects?
Great review as an embedded SW guy to nourish my EE background. Nicely peppered with practical tricks and techniques that are useful in the field. I enjoyed seeing the low-pass and high-pass filtered wave signatures along with the explanation of what the problem might be (long/close connections and broken traces, respectively).
They did it in Australia during the GFC. Spent 10 billion dollars giving 12 million people $900 each.

Share market jumped, retailers rolled out significant sales. People bought TVs.
The UK is the same way.
Bitcoin is for the dark net markets; for everything else, there's MasterCard
This should be labeled as "Advertisement".

Has this been "fake voted"?
"think about it: the last guy who wrote a treatise on it - Machiavelli - got his name synonymized with 'evil'"

Machiavelli was not the last to write about power. Foucault was famous for doing so, and Nietzsche before him.

To the extent that Machiavelli's name has a negative connotation it is it not merely because he wrote about power, but because people think he advocated a ruthless, self-serving wielding of power and, famously, that "it is better to be feared than loved".

If you look at what "machiavellianism" means, it is:

"the employment of cunning and duplicity in statecraft or in general conduct... In modern psychology, Machiavellianism is one of the dark triad personalities, characterized by a duplicitous interpersonal style, a cynical disregard for morality, and a focus on self-interest and personal gain."

https://en.wikipedia.org/wiki/Machiavellianism
Yes. The Chinese are learning this from the US. A powerful disinformation capability is so much more important in the US because of free speech.
Let's Build a Compiler by Jack Crenshaw [0]. I'm using Scratch for this because why not?

[0]: https://compilers.iecc.com/crenshaw/
Reverse Engineernig a Real Candle (2016)
> Soon, I think most people will stop worrying about 2.x backwards compatibility.

Numpy is certainly not the only project with a plan to sunset Python 2 support: http://www.python3statement.org/#sections30-projects
+1 on XOPJ.

Long time depression is something which changes you forever. Once you find joy you'll love it.
There’s really not anything major in 3 that’s not easily available via back ports in 2.7. Or else why do you think people aren’t bothering to pay the price to switch?

This is also the reason maintainers are bringing out sticks. They realize the carrots just aren’t that tasty.
I would be absolutely shocked if Bitcoin hit $0 and nobody came out of the woodwork sheepishly admitting that their investment strategy was "put 110% in Bitcoin". People go bankrupt on much sillier schemes than Bitcoin on a routine basis...
> In my opinion you should be liable for any such danger you pose to others with the ability to shift that liability to whoever sold you source of such danger while assuring you that it is safe.

Right. So you, the little guy, is going to shift the blame to a rich company that does this for a living. Say it's a company such as Google which makes some IoT devices. Would you be able to prove in court, and in front of their engineers and lawyers that they've sold you an insecure device? Do you even have access to their source code?
https://eev.ee/blog/2016/07/31/python-faq-why-should-i-use-p... is a fairly good summary. There are loads and loads of syntax improvements (I personally love the new unpacking), new features, and other enhancements.

Sure, you can continue using Python 2, and it's going to work for you. I guess you can also keep using Windows XP (no reason not to use it beyond the fact that Microsoft has gotten bored of providing security and bugfixes), and code using your PS/2 keyboard...
"A lighbulb flashes when visitors ring the doorbell, which is useful for people with visual impairment. the doorbell has a hidden rfid reader, and certain guests have an rfid card. the doorbell flashes differently for each visitor."

How is this an example of something that needs to be connected to the Internet. My point is most examples are about local connect to justify a jump into a world-wide, insecure net.

I mean, all the light bulb examples are contrived because a PHONE has all information-conveying ability of a light bulb and is designed for information-conveyance. Light bulb are designed for the light-consumption needs of those nearby and examples of light-bulb-control at a distance are either poor substitutes for phones or "weirdness" - haunted houses and art-happenings.
Big difference between Swedish and -speaking. Swedish speaking Finns typically identify as just that: Finns who happen to speak Swedish.

It's a bit like calling someone from Quebec "French".
i do not think you understand the reality of someone living, for instance, paycheck-to-paycheck. "1-2 weeks in jail", which you seem to suggest is not that big of a deal, is a lost job and unpaid rent, to say nothing of other responsibilities (for instance, children or pets). does this seem like a reasonable consequence for being merely accused of a crime?

i brought up the human rights angle because your line of thought appears to run counter to article 11 of the UN Declaration of Human Rights...but it's interesting that you can dismiss that by calling it a "cliche".
The only purpose of a suit is to assert dominance.
The hoodie is just a different spin on it.

"I won't wear a tux!"

"Of course not, dear; tuxedos are for waiters!"

-Sunset Blvd
Arm recently announced an open source firmware for IoT devices. Now all it takes is for OEMs to want to replace their proprietary firmware with this (while keeping all bits open source as they extend it).

https://www.arm.com/news/2017/10/a-common-industry-framework
You don't have to be combative. I agree with you.

The article is advocating for JS developers to be aware of what makes their SPA react JS app heavy and load slowly. I'm saying that an article like this only makes sense when you have the full context behind working on a SPA react JS mono codebase. If you haven't worked on one, it all sounds like gibberish and your mind just goes off to wonder "why even build this heavy react JS app to begin with when you could build a site without JS".
I'm learning how to turn my life around. Much harder than OOP, believe me.
There are big companies with huge legacy 2.x codebases who will stall as long as possible. But popular libraries are dropping 2, and many new libraries aren’t supporting it to begin with. Python 2 is accelerating toward irrelevance.
I could maybe halfway see this.

I've been working on my current job for 8 years. I've been a programmer for 30. In the last year, I've started feeling free enough to say "I don't know" or "I don't remember". Before that, I felt that I had to remember, or, if I didn't, I had to find out, because I felt that I was supposed to know. But now, I've realized that it's OK for me to not know everything.

That's not dominance behavior, exactly. I'm not deliberately not remembering to put co-workers in their place. I'm also not trying to skate on my responsibilities: "You figure it out yourself; I'm too important to do that." But it is a level of security. My image of myself as a good programmer isn't destroyed if I don't remember some detail amid the tens of thousands of lines of code. And I don't fear that my boss's image of me will be destroyed by that, either.

So maybe, at least some of the time, it's not a exactly dominance behavior, but it's a behavior that only those in secure positions can afford.
Probably an alternative: you can configure a keyword to a stored search engine. Then you can search like `a lean startup`, where `a` is a keyword followed by a blank for amazon.com.

I found this to be very fast. It's also handy for translations, etc..
pretty sure this will be the best thing I've learnt today!
Scientists make first attempt to permanently change a person’s DNA
Yes, and maybe it's just me, but what does it do? Can I use it in my regular engineering job?
I get that. But most likely, that whole spin is the marketing dept's fault. As I said in another comment, they are not technical enough to understand CI/CD and devops terminology.
I hate bad pop sci articles and bad artist conceptions, but I actually support it if the depiction is designed to increase reader understanding (rather than just induce the "woah pretty" reaction).

For instance, did you know that Saturn's rings are made of rocks that are separated by very human-scale distances? I find these images valuable in communicating that fact:

https://www.quora.com/What-would-it-feel-like-to-touch-Satur...
Check out http://www.pyinvoke.org
One thing I'd worry about is that this kind of pension may only work in a closed system. People not living in France may still purchase French assets for investment, just as they continue to purchase international assets for investment, which will still drive an increase in demand. That could incentivize French people to continue investment, in the absence of strict capital controls.

And yes, it is somewhat common! I think your second point is definitely part of the problem. As to your first, I think that looking at inflation in these terms requires looking at interest rates as well. When both inflation and interest rates are low, hoarding cash is highly incentivized. If inflation is low and interest is high, there is a large opportunity cost to holding cash rather than collecting interest via a mechanism directly tied to the cash (e.g. a bond). If both inflation and interest are high, it would probably be optimal to invest in assets that won't have their underlying value erode as they do with bonds.
Don't forget shadow profiles based on data like others mentioning you on pictures etc.
Your computer ran billions of instructions in the time it takes to read this. Therefore, it probably made a mistake in that time, even if the chance of a mistake in any one instruction is "astronomically low", right? No, many real-life frequencies are way below one in a billion.
I'll happily debate the merits of breaking compatibility in general, but it's boring and completely academic for Python 3 which is getting on for a decade old and has very wide community support.

Same thing every Python thread. It doesn't matter if you liked the way 3.0 was handled (and there certainly was complaint at the time too), it's what Python is now, and that's that.
I pay salaries with bitcoin, compared to wire transfers it is just amazing.
To be clear, the only thing they'd need to do (in the ultimate phase) is only buy approved devices. Maybe a small hassle but not all that complicated.
Politics is the result of ethical values, which according to quite a lot of philosophy is a form of belief. Religion can and in many place do play a major role in forming such ethical values, which is partial reason why religion has so close connection in forming politics.

Ethical values impacts literal matter of life and death for millions of people. This is true. Ethical values differs also from people to people and is a deeply aspect of personal identity. As such, challenging coworkers on a political level also means challenging coworkers personal identity, and that just something which the workplace is poorly designed for.
(Several years of realtime editing experience reporting in)

Plain text CRDT and OT systems are often mutually adaptable. Even if they aren't directly compatible, with a bit of work it'll probably be possible to adapt from one realtime editing protocol to the other.

Of course, in the medium to long term having a standard for OT/CRDT operations that works in a lot of source code editors would be fantastic.
It doesn't need to even be a #nationalid#. It could be like an email address you register with USPS.
It's arguably even a little bit nicer in SaferCPlusPlus[1]:

template<typename TVectorPointer>
void write_foo(TVectorPointer vec_ptr) {
(*vec_ptr)[3] += 1;
}

template<typename TVectorPointer>
auto read_foo(TVectorPointer vec_ptr) {
return (*vec_ptr)[7];
}

template<typename TVectorAccessRequester>
void use_shared_vector(TVectorAccessRequester vec_ar) {
{
// obtain a non-const pointer to the vector from the "access requester"
// blocking if necessary
auto wl_ptr = vec_ar.writelock_ptr();

write_foo(wl_ptr);

// the pointer owns a lock on the vector so as long as the pointer
// exists it is safe and valid to use
}

// obtaining and using a const pointer to the vector
auto res1 = read_foo(vec_ar.readlock_ptr());

// without a "lock pointer" obtained from an access requester, there is no way
// to access, or even refer to the shared vector, so you can't access it in an
// unsafe manner
}

[1] shameless plug: https://github.com/duneroadrunner/SaferCPlusPlus#asynchronou...
20,000 word document titled "Concise electronics for geeks". Excellent choice of title!

Also, this looks like a really awesome primer!
If you believe that, create a VC fund, make public offerings, and let the general public buy shares in your fund via their brokerage account.
This reminds me of when Comedy Central ran a week long Red Dwarf marathon. I think a week is probably the maximum habitable time period. The species known as cat could probably handle watching itself on TV for longer.
Similar to what a Chinese teacher abroad told me:

We tried even distribution and found that everyone being poor sucks, so now we let some people get rich first then actually have something
to even out.

Very optimistic but seems to be the official reading of the plan.
I'm sorry, I don't understand.

Who's going to update the firmware in your light bulbs using a patched open source version of the manufacturer's code?

Edit:

> it's not generally that hard to flash devices that support it, so a report that says "X,Y and Z have exploits, here are some options" could go a long way. Making devices support some minimum standard of local upgradability would help immeasurably.

You're right, it's not hard. But can you imagine regular users doing that? Anti-viruses, Microsoft, Apple, Google and all major browsers had to automate and force updates on users to keep devices secure.

I have a hard time believing that any significant portion of users will flash updated firmware onto IoT devices to fix security vulnerabilities. Heck, when was the last time you checked for firmware updates for your home router? I do this stuff for a living and I don't think I've updated my (current) router's firmware more than once in the last few years.
> "providing a .pdf or .tex of the page"

I'm not the author, but in the case of .pdf, couldn't you just use a 'Print to PDF' solution? On Windows I've used PrimoPDF before, don't know what OS you use but guessing all the major platforms have something similar.
I could have been a bit clearer with what I wrote. I can imagine why someone would ask those questions...

> The CLAs I've signed never transferred rights to someone else

This is in part because copyright assignment/transfer is tricky and in some jurisdictions it isn't even possible. Instead, CLAs will often grant the company a perpetual license to reproduce, redistribute and sublicense the copyrighted work. Technically, the original contributor still owns the copyright to the work but the company is still able to use the contribution as part of non free software because the CLA gave them more powers than the original free software license did.

For example, Canonical's CLA[1] contains the following language:

> (b) To the maximum extent permitted by the relevant law,
You grant to Us a perpetual, worldwide, non-exclusive,
transferable, royalty-free, irrevocable license under the
Copyright covering the Contribution, with the right to
sublicense such rights through multiple tiers of
sublicensees, to reproduce, modify, display, perform and
distribute the Contribution as part of the Material; provided
that this license is conditioned upon compliance with
Section 2.3.

> Based on the grant of rights in Sections 2.1 and 2.2, if We
include Your Contribution in a Material, We may license the
Contribution under any license, including copyleft,
permissive, commercial, or proprietary licenses. As a
condition on the exercise of this right, We agree to also
license the Contribution under the terms of the license or
licenses which We are using for the Material on the
Submission Date.

Notice how it explicitly mentions that Canonical is allowed to use the contribution as part of non-free proprietary software. I can't find a copy of Gitlab's old CLA now but I guess it had a similar clause somewhere.

> (since the point of a CLA is to protect a project from "oops I wasn't supposed to contribute that" or "oops, new boss here decided to revoke all our contributions")

If the goal is to provide a paper trail ensuring that the contributor had the copyrights to their contribution, you can do that with a simpler certificate of origin document (like Gitlab is doing now) instead of the stronger terms usually found in CLAs.

> since FSF actually does require you to sign over copyright to them in order to contribute

The FSF's copyright assignment is a bit of a special case. It doesn't exist to protect the FSF's interests and is instead focused on making it easier for the FSF to litigate against GPL violators[2]. In particular, the FSF's copyright assignment contract[3] has a clause explicitly binding them to keep the software free and forbidding them from re-licensing it as proprietary software. The worst they could do is re-license it under a more permissive non-copyleft license, like MIT or BSD.

[1] https://www.ubuntu.com/legal/contributors/submit

[2] https://www.fsf.org/bulletin/2014/spring/copyright-assignmen...

[3] http://www.dreamsongs.com/IHE/IHE-110.html (I could only find older versions, you apparently need to email the FSF to get the latest version of the contract)
The problem is that the realistic alternative is that there is effectively even more centralized wealth, or wealth control with governments.

It would be neat if money was spread even more evenly. But the costs of the intervention to try and wangle it would probably outweigh the benefits.

That isn't to say that taxes shouldn't be higher or benefits higher. But even Sweden and France have billionaires. They just have their wealth in foundations and in Luxembourg.
> Torture may be used to find out the user has bitcoin but you can never be sure you got it all.

That's also true of caches of foreign currency in cash (not to mention remote accounts.)

Of course, the difficulty of the subject proving full compliance is more of a problem for the subject than the torturer.
I still love Kierkegaard
I understand that too. But in my experience, GitLab CI Runner is the fastest for our stack. I've seen build times reduced from 3 minutes to 59 seconds. I can give exact numbers if you want to scrutinize my statement more.

Edit: I should add, our build artficats are deployed to staging and NOT production.
> Basically every personal behavior is a manifestation of power dynamics

You're going to have to back up that claim, sparky.
> There is no going back.

Why not. Bad laws should be repealed.
Discreet hardware switch?
Except that the Alto came out in 1973. https://en.wikipedia.org/wiki/Xerox_Alto