Recent submissions

Comment · 6 years ago
> * Python only: what's this for, then? http://www.picklingtools.com/

From the picklingtools FAQ:

What versions of Python does PicklingTools support? Historically, versions 2.1.x to 2.6.x have been tested extensively. More recently, 2.7 has been tested and should work, but it has not been tested as much as the other versions.

   3.x has not been tested: We are waiting for our main paying customer to adopt the 3.x series.
[edit] formatting
Comment · 6 years ago
In the last 12 years of writing python, I have only hit had issues with .pyc files a handful of times, and always with python < 2.7. Anaecdotally this experience is shared with everyone I have worked with.

If you’re seeing this regularly, it suggests there may be something unique or uncommon in your set-up. You may wish to isolate and change whatever that is.

Comment · 6 years ago
It’s a map from a ‘WeakRef’ to a value. So if you have an object reference, you can associate a value with that object. But not the other way round
Comment · 6 years ago
Admittedly the example was a bit fake :)

I /have/ put other secrets into frontend code before, strictly for small temporary projects where the cost of implementing secret management outweighs the size of the project. And obviously not in code that was anywhere close to being deployed outside my own box.

Unfortunately the method outlined in the article allows access to environments that would otherwise be considered trusted and not-accessible over the internet, hence the problem

Comment · 6 years ago
Seems to be related to this: https://github.com/webpack/webpack-dev-server/issues/1604

It's not clear (without a lot more digging) what impact the sockjs changes have on this issue.

Comment · 6 years ago
I threw the code together last night. It's running on cloudflare backed by an S3 static file, so shouldn't be capacity issues

It was only tested on Firefox, as a basic proof-of-concept. AIUI, chrome et al offer similar functionality but maybe the API is different

It may also take a few minutes to find and connect to the websocket, I think CRA webserver maybe only binds to one client at a time, so maybe it would pick up the connection after a webpack-dev-server reload or two.

Comment · 6 years ago
you can replace with this:

    function shorten(text, length) {
      return new Promise((a, r) =>
      fetch(`http://leftpad.io/shorten?l=${length}&v=${encodeURIComponent(text)}`).then(rx=>rx.text().then(a, r), r));
    }
Comment · 6 years ago
No disagreement here.

I don't use gnome desktops, for similar reasons (although I'm also not the target audience for adopters, as I currently use Linux as my primary desktop environment!)

I use cinnamon, as, for my personal preferences, it strikes the best balance between familiarity, 'prettiness' and functionality of the options I've tried.

Comment · 6 years ago
> Like how the file explorer has a built in terminal that follows the folder you're in.

That’s a nice feature. But it has little to do with Windows/OSX equivalence.

It also highlights something I felt last time I tried KDE (admittedly a while ago).

There were lots of nice UX innovations and polish. But they didn’t feel familiar to me (as a user of many desktop environments). This makes switching much less of an appealing prospect to me.

Comment · 6 years ago
There is a hitherto-unwritten rule that it is allowed to comment...
Comment · 6 years ago
This is the plan. Once google have verified the advertisers, they can ‘help users understand the source of the advert’ by replacing the mini Ad icon with the advertisers’ favicon, to increase transparency..
Comment · 6 years ago
> With the COVID crisis our users are unable to depend on us for their daily spends.

If this is truly a humanitarian issue, then then disable the contact harvesting feature

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton