Better HN
topnewbestaskshowjobs
Log inSign up

darkfirefly

48 karma · joined Jan 6, 2021 (5y ago) · 24 submissions

Submissions

comment 3y ago · link · parent

I often experience very slow time to fix with cell service off (& having location off beforehand) - I believe this is due to Assisted GNSS/GPS which significantly improves the time for GPS to start working (the associated Wikipedia article states that ~1 minute often without it, and worst case ~12.5 minutes)

comment 4y ago · link · parent

Python's default arguments are evaluated and stored once. This can cause issues, for example the naive "default to []" program:

    >>> def function(b, a=[]):
    ...     a.append(b)
    ...     print(a)
    ... 
    ...     
    >>> function(1)
    [1]
    >>> function(2)
    [1, 2]
    >>> function(3, [4])
    [4, 3]
    >>> function(5)
    [1, 2, 5]
A correct implementation would be:

    >>> def function2(b, a=None):
    ...     if a is None: a = []
    ...     a.append(b)
    ...     print(a)

comment 4y ago · link · parent

Maybe uh... not like Wikipedia does https://en.wikipedia.org/wiki/WP:CANCER

comment 5y ago · link · parent

Would helmets in cars make them safer though? It's a different risk profile; I don't think you tend to fall out of your cars and hit your head?

I can't find any stats of prevalence of various types of injuries in cars, although it does seem to be a thing to get brain injuries in cars (whether that is due to impact or neck/head stopping I don't know)

comment 5y ago · link · parent

Yeah, I'm not quite sure how other countries do it, but for the 2000 Olympics (Sydney) they basically renewed this giant landfill site. There's been a bunch of apartments, etc, built around there since then because it basically became a suburb where you could live.

comment 5y ago · link · parent

I believe they recently updated the O'Reilly Rust book with a new edition so it's not out of date anymore.

comment 5y ago · link · parent

Alternatively, I used zenstates and played around with VID values on different p-states (or is it c-states? I can't remember) which allowed my cores to go from ~400Mhz and then speed up as necessary.

There's info scattered around on the internet for how to do this; I don't have my script to do this easily accessible atm.

I do concur on the governor's though, nothing else really makes much of a different. My old HP laptop I permanently had on the powersave scheder and it would draw about 2.5W - the battery life was stupidly ridiculous. My new AMD Lenovo I can't even get below 6W by the same method unfortunately.

comment 5y ago · link · parent

True, but whether or not it should be or not doesn't change the fact that it is the current state of the US.

And it's not really just the phone number, but the combination of personal info that allows for social engineering - without having the existing customer confirm the transfer.

comment 5y ago · link · parent

> These bridges are made from lightweight Fibre-Reinforced Polymer > In just 11 months we have developed a prototype bridge that is stunning in design, environmentally friendly and will take days and not weeks to install and thereby causing less disruption for the surrounding community.”

... How exactly is this environmentally friendly? FRPs don't tend to be recycled easily or cheaply[1], not to mention the fact that they are often derived from oil-based products and require high-temperature curing.

[1]: "The recycling of composite materials is on the right track, but challenges still have to be taken-up in order to finally make it a commercial reality" (https://www.sciencedirect.com/science/article/pii/S007964251...)

comment 5y ago · link · parent

I don't think this really works, for a number of reasons:

- A user-enabled feature for "Driving Mode" probably won't be enabled, because drivers intend to use their phone.

- An automatic system that (magically) detects that you are in a car won't work, because what if you are a passenger, or in the backseat?

- A system which activates when connected with the car's system could work, although drivers could again choose not to connect or a passenger could be connected instead.

(Although this system wouldn't actually work for learners/under 25s many states in Australia, since you are legally not permitted to connect your phone to the car stereo)

comment 5y ago · link · parent

Unfortunately, trains are a different scenario than cars, mainly due to the fact that they are on rails and are generally kept well apart through rail signals.

A couple seconds where a train driver is distracted != a couple of seconds where a car driver is distracted. A button is not fast enough (you would need to press it >once per second, which is not particularly comfortable)

This is why it is "necessary" to have more "advanced" ways of detecting driver inattentiveness.

comment 5y ago · link · parent

Not sure how modern you are referring too, but I have 2009-era hard drives which are very sluggish.

comment 5y ago · link · parent

> problem is that n-tit-for-tat behavior in humans is moderated by testosterone levels, which have been declining precipitously

sorry, what?

comment 5y ago · link · parent

Yep, definitely works on Linux as well.

Not sure about mac, but it certainly should as well.

comment 5y ago · link · parent

As well, I've found Google docs is hardly able to work with 20 page documents with maybe 10 or so images. It slows down rapidly when you add images.

comment 5y ago · link · parent

Yeah, it's almost like it got merged with Austria, given it says "Austriaia"

comment 5y ago · link · parent

Or really any of the problems Electron attempts to solve; the GUI toolkits are still not (generally) not cross-platform in the way Electron is.

comment 5y ago · link · parent

The fact that Telegram is a Qt app that looks nice and is lightweight makes it really good; it's just a shame it's centralised.

Almost any other messaging platform is dominated by Electron clients (bar the few very WIP Matrix clients such as Neochat).

comment 5y ago · link · parent

NSW, Aus offers SIX Maps: https://six.maps.nsw.gov.au (this offers very good imagery of the NSW areas, better than google)

That's the easy-to-use-maps.

There's also the aus-wide https://nationalmap.gov.au where you get basic satellite maps with the option to add various datasets and even daily maps from Landsat 2A

There's also ELVIS foundation spatial data https://elevation.fsdf.org.au

There's don't really cover hiking trails that much, etc. There's more general purpose mapping applications.

It's also possible to find various topographic maps in static form somewhere on the government sites.

Councils are the ones that provide the hiking trails, etc. so it depends on the locality. The Northern Beaches council for example provides an interactive trails map, but most have static maps.

comment 5y ago · link · parent

Telegram doesn't require your phone number? It did for me to sign up.

comment 5y ago · link · parent

https://media.defcon.org/DEF%20CON%2027/voting-village-repor...

comment 5y ago · link · parent

Just look up the Panopticon, tbh.

comment 5y ago · link · parent

Two sentences later:

> The command line tools are orders of magnitude faster

and from the previous sentence:

> Encoding AVIF takes a long time in general, but it's especially bad in Squoosh because we're using WebAssembly, which doesn't let us use SIMD or multiple threads

comment 5y ago · link · parent

If you want to save Google Photos, use Google Takeout to download it. It allowed you to download all of your google-related-data, including photos.