HackerTrans
TopNewTrendsCommentsPastAskShowJobs

darkfirefly

no profile record

comments

darkfirefly
·4 năm trước·discuss
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)
darkfirefly
·4 năm trước·discuss
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)
darkfirefly
·4 năm trước·discuss
Maybe uh... not like Wikipedia does https://en.wikipedia.org/wiki/WP:CANCER
darkfirefly
·5 năm trước·discuss
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)
darkfirefly
·5 năm trước·discuss
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.
darkfirefly
·5 năm trước·discuss
I believe they recently updated the O'Reilly Rust book with a new edition so it's not out of date anymore.
darkfirefly
·5 năm trước·discuss
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.
darkfirefly
·5 năm trước·discuss
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.
darkfirefly
·5 năm trước·discuss
> 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...)
darkfirefly
·5 năm trước·discuss
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)
darkfirefly
·5 năm trước·discuss
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.
darkfirefly
·5 năm trước·discuss
Not sure how modern you are referring too, but I have 2009-era hard drives which are very sluggish.
darkfirefly
·5 năm trước·discuss
> problem is that n-tit-for-tat behavior in humans is moderated by testosterone levels, which have been declining precipitously

sorry, what?
darkfirefly
·5 năm trước·discuss
Yep, definitely works on Linux as well.

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