Better HN
topnewbestaskshowjobs
Log inSign up

stestagg

804 karma · joined Jan 3, 2015 (11y ago) · 155 submissions

Submissions

comment 6y ago · link · parent

> * 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

2.

Reuters GDPR prompt on every scroll event(twitter.com ↗)

1 points · by stestagg · 6y ago · discuss

comment 6y ago · link · parent

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 6y ago · link · parent

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 6y ago · link · parent

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 6y ago · link · parent

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 6y ago · link · parent

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.

8.

Stealing secrets from developers using WebSockets(medium.com ↗)

513 points · by _gok2 · 6y ago · 137 comments

comment 6y ago · link · parent

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 6y ago · link · parent

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 6y ago · link · parent

> 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 6y ago · link · parent

There is a hitherto-unwritten rule that it is allowed to comment...

comment 6y ago · link · parent

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 6y ago · link · parent

> 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

comment 6y ago · link · parent

I think you're mistaking "It just works" for "It just works in the way I want it to"

Unfortunately if you go with the suggested methods for using zoom, it is very easy to join a meeting

comment 6y ago · link · parent

The thing about rural areas, is that not many people live there.

We live just ouside a mid-sized UK town (and cities down to small/mid sized towns covers a really high % of the population). Between public transport and good cycle/pedestrian routes, a car is not a major living requirement for many.

comment 6y ago · link · parent

Back in 1995 all websites shared one global stylesheet.

Every time a new rule was added, you had to wait up to 24 hours for the css servers to propagate.

comment 6y ago · link · parent

From the docs: "CPython implementation detail: Keys and values are listed in an arbitrary order which is non-random, varies across Python implementations, and depends on the dictionary’s history of insertions and deletions."

So I would claim that equates to non-deterministic

comment 6y ago · link · parent

It’s fast coz the cpu be blazing ;)

comment 6y ago · link · parent

Workflows are full of trade offs. Different people & teams value different features in different ways. It’s what makes software development such a vibrant ecosystem.

comment 6y ago · link · parent

https://www.nasa.gov/image-feature/goddard/2019/vikram-lande...

comment 7y ago · link · parent

> Uh, I'm not very confident on this helping; wouldn't this mean fewer people will be using and evaluating beta components?

Probably. But the benefit gained by doing this is that every issue discovered should be directly attributable.

If everything is broken, it’s very easy to normalise broken behaviours, or to deflect responsibility.

comment 7y ago · link · parent

Yeah. I only trained addition. Actually exploring the impact of training a net to perform a range of operations on the minimum plausible neuron count would be quite interesting

I don’t see any reason why it would be significantly harder to do, however

You’re right about accuracy. I didn’t let the model train enough to push the error low enough to guarantee exact results over the input range. But then again this was designed as a toy experiment, not something people should rely on

comment 7y ago · link · parent

A child comes pre-programmed to put things in their mouth. They also have very sophisticated reward functions built-in that identify tasty sugars entering their mouth.

Very quickly (assuming said child doesn't eat something too bad), in the absence of an external oracle, the child learns a very productive mental model of what an apple is.

This type of feedback loop seems eminently translatable to machine learning, assuming we can encode the concept space in a way that allows the model to be encoded and trained in a reasonable set of constraints

comment 7y ago · link · parent

Here’s one that does so using roman numerals:

http://static.offd.es/numerals/

It’s unsurprisingly easy to implement

comment 7y ago · link · parent

I think in this context it relates to the overheads of provisioning new services.

Traditional virtualized hosting environments typically also come with varying levels of technical overheads when setting up new boxes.

What bofa have is a virtually self-service (some business approvals needed) user interface with the ability for devs to set up new virtual servers with little/no knowledge of the underlying hosting infrastructure.

comment 7y ago · link · parent

> I am wondering why they decided to first release it in a phone, where it seems like it has the least benefits...

Google wanting something in your phone that allows it to track engagement? I can't think why.. :)

> Engaged > Soli anticipates when you want to interact.

comment 7y ago · link · parent

Especially as the privacy statement you quoted is immediately followed by a diagram showing how Soli can tell if you're paying attention to your phone or not, and how many people are near-by.

comment 7y ago · link · parent

My working theory on that is the military are concerned about foreign surveillance UAVs.

And by reigniting the UFO narrative, they are more likely to receive reports and data from the public who may be looking for Aliens.

Interestingly, if this were true, it might imply that there is some pretty funky military tech out there, not owned by the US, that might have some interesting capabilities.

123456