« first day (4366 days earlier)      last day (586 days later) » 

2:33 AM
I wonder if Rust is one of those passing fads, or is it going to be another Java/C#.
I need to build a 'skeleton' to put rPi & a team of sensors and actuators on, anyone has any good suggestions on how to make one?
Maybe 3d printing or even wood work.
 
 
2 hours later…
4:59 AM
 
5:26 AM
hours into hurricane Ian, he's a nice guy but came on strong. Everyone said he was terrible but I think he has really moderated his views.
 
Given you are in the hurricane state, people should be well prepared.
I saw a snake in the middle of the road 2 days ago, I thought it was a road kill, but it was a live one, possibly a red bellied black snake. I tried hard to manoeuvre the car so not to run it over. In the rear mirror, I saw the snake slithered away really fast in the opposite direction to where it was from.
Both snakes I saw in the past week or so were afraid of people and their car, one threw itself into a creek, the other were slithering so fast, it could win an Olympic medal.
 
6:17 AM
My micro lidar has 4 pins: Power supply, RXD, TXD & GND. Apparently the RXD was not plugged in, but the lidar was working fine ~_~
Why do sensors have redundant pins?
China's Covid-zero, there is no limit to human stupidity!
 
 
2 hours later…
8:11 AM
@TelKitty maybe rxd is for a config that it can be programmed with
but once callibrated it doesn't need it
 
 
5 hours later…
nwp
12:59 PM
I'm looking for the name of an algorithm. I'm given a list of objects, a function that given one of those objects returning a bool of whether a certain property holds and I want to know how many objects have the property starting from the first element with early exit.
The closest I can think of is run detection for merge sort, except that it uses pairs of objects.
 
basically just "find first not if", kind of
std::find_if_not I guess in the c++ case
 
nwp
My guess at the standard's name was std::first_index_not_of, but it doesn't sound quite right.
 
because you want the count I guess std::distance(v.begin(),std::find_if_not(v.begin(),v.end(), cond))
the merge sort run detection would be kind of the same just with is_sorted_until instead of find_if_not
 
nwp
That sounds like a complexity increase in the merge sort case.
But yes
I guess it doesn't really matter what it's called if I can't easily get at an implementation anyways. Also people are likely to prefer a for loop -.-
 

« first day (4366 days earlier)      last day (586 days later) »