48 karma · joined Jan 6, 2021 (5y ago) · 24 submissions
comment 3y ago · link · parent
comment 4y ago · link · parent
>>> 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
comment 5y ago · link · parent
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
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
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
... 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
- 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
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
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.