News for hackers. Stuff that matters.

darkfirefly

Re:Your Cellphone Will Be a Satphone on Wednesday December 28, 2022 @01:49AM (#34158215)
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)
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)
Re:Each Firefox download has a unique identifier on Thursday March 17, 2022 @09:34PM (#30717786)
Maybe uh... not like Wikipedia does https://en.wikipedia.org/wiki/WP:CANCER
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)

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.
Re:The Programmer's Brain on Tuesday July 06, 2021 @12:43AM (#27744293)
I believe they recently updated the O'Reilly Rust book with a new edition so it's not out of date anymore.
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.

Re:New LinkedIn Data Leak Leaves 700M Users Exposed on Tuesday June 29, 2021 @08:27AM (#27674865)
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.

> 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...)

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)

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.

Re:Did Windows 10 slow down with each feature update? on Tuesday June 22, 2021 @01:09AM (#27588190)
Not sure how modern you are referring too, but I have 2009-era hard drives which are very sluggish.
> problem is that n-tit-for-tat behavior in humans is moderated by testosterone levels, which have been declining precipitously

sorry, what?

Yep, definitely works on Linux as well.

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

Re:Google Docs will now use canvas based rendering on Thursday May 13, 2021 @02:43AM (#27139153)
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.
Re:Have I Been Facebooked? on Tuesday April 06, 2021 @06:30AM (#26710226)
Yeah, it's almost like it got merged with Austria, given it says "Austriaia"
Re:Actually Portable Executables on Sunday February 28, 2021 @07:41AM (#26292986)
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.
Re:Products vs. Protocols: What Signal got right on Thursday February 11, 2021 @04:20AM (#26099709)
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).

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.

Re:Security professionals often warn against Telegram on Friday January 29, 2021 @12:43AM (#25954445)
Telegram doesn't require your phone number? It did for me to sign up.
Just look up the Panopticon, tbh.
Re:AVIF support enabled by default in Firefox 86 on Sunday January 10, 2021 @01:43AM (#25711529)
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

Re:What I Use Instead of Google on Wednesday January 06, 2021 @08:52AM (#25657704)
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.