This takes me back about 20 years.
This takes me back about 20 years.
Correct. A piece of paper with the golden (aspect) ratio would have the property that if you remove the large square (with side length equal to the shortest side of the rectangle) then the remaining rectangle has the same (golden) aspect ratio.
The ISO216 ratio of 1:sqrt(2) has the property that if you cut the paper in half then both halves have the same aspect ratio as the original larger piece.
People tend to confuse these two properties as they both involve the remaining rectangle having the same aspect ratio as the original piece, but the process to bisect the sheet is different.
deleted by creator
Some more projects here: https://hackaday.com/blog/?s=lawnmower
Maybe skip the first one (running DooM on your lawnmower), I don’t think that will help.
square_root
takes a uint64_t
argument then it should return a uint32_t
x = (x + (s / x)) / 2;
This update of the test value uses integer divisions which means it is not guaranteed to converge (due to the truncation moving your approximation further away than the previous iteration). You should also check that x > 0 to avoid accidental division by zero.seed
is trying to calculate pow(10, log_100(x)) in some way, but it has bugs, for example a < 10
is true for radicand values of 100-999, 10000-99999, 1000000-9999999 etc. which probably isn’t what you want. An easier way to estimate a starting value for the first iteration would be to take a number that has half as many bits as the input, since we know that if a number X uses K bits then its square root will use K/2 bits. You can use a method to calculate the position of the most significant set bit in the input and then use 2^(k/2) as the seed.-Wall -Werror
(with gcc) to enforce those checks and make them compile errors that you must fix.This reminds me of simpler times.
O(N^2) - with every new character in the string its speed decreases exponentially,
Try to be precise when teaching others. O(N^2) increases “quadratically” not exponentially. O(k^N) would be exponentially increasing with N.
Back in the early 90s someone told me, “source code gets lost, but binaries live forever.” It was true back then (because of the way people shared files by trading floppy disks) but I think today in the open source ecosystem, actually the opposite is true.
A project may not get packaged or released anymore, but as long as the source code is still available, new people can make use of that work and make derivative works with their own modifications.
I worry that too much of our collective community work is siloed in places like GitHub that one day may throw out old repositories while spring cleaning. I hope that we see the same level of effort put into source code preservation that organizations like the Internet Archive put into binary preservation.
Everything in its right place.
Add your name to our petition to help stop this part of the bill from becoming law.
Where can I find the text of the petition that they will be submitting to the French government? How do I know what I am signing if they don’t actually display the petition text?
Benny Harvey RIP.
Miss you big man. Gone but not forgotten.
During the debate on Wednesday, the members of parliament in the camp of President Emmanuel Macron inserted an amendment limiting the use of remote spying to “when justified by the nature and seriousness of the crime” and “for a strictly proportional duration.” They noted that a judge must approve any use of the provision, while the total duration of the surveillance cannot exceed six months.
They said sensitive professions, including doctors, journalists, lawyers, judges and MPs, would not be legitimate targets.
It sounds like they have some nice improvements, but I wonder why they didn’t contribute them back to the original restic project.
I also wouldn’t rely on an immature piece of software to handle backups - you want to avoid as many risk factors as possible with backups, since when you need to restore you really need it to work.
Thanks for posting this. I’ve been meaning to write something similar for a while but never got around to it. I wish Restic would ship an official client application for managing this stuff!
Wouldn’t a wug, wugis group noun be wuges plural?