Rustyoznail
Aussie smartarse
- Joined
- Apr 14, 2019
- Posts
- 6,545
They're not very good on the floor, but they are excellent at getting the polishing cream flowing.Mops, brooms, how about the Hitachi Magic Wand floor polisher?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
They're not very good on the floor, but they are excellent at getting the polishing cream flowing.Mops, brooms, how about the Hitachi Magic Wand floor polisher?
The actual Oglaf comic has both a man and a woman as mop fetishists.Oh, sure, you all love Oglaf. And yet if I say 'women like housework actually' I'm just a sexist pig!
It's political correctness gone mad!The actual Oglaf comic has both a man and a woman as mop fetishists.
# subset sum program
# calculate how many different ways
# given v : number of votes
# s : average vote
# generate possible combinations to generate the resultant vote
# use convergeance
# possible scores
A = [1,2,3,4,5]
N = [0,0,0,0,0]
TARGET = 4.87
TOTAL = 3247
def gt(v)
A.select{ |x| x >= TARGET.ceil }.sample
end
def lt(v)
A.select{ |x| x <= TARGET.floor }.sample
end
s = 5
[]
debug = false
(1..TOTAL).each do |idx|
# puts s/(idx.to_f)
if s/(idx.to_f) < TARGET
i = gt(TARGET)
puts "+ [%d] -> %#f, %#f, %4f, %4f" % [i, s / (idx.to_f), TARGET, s / (idx.to_f) * TOTAL, TARGET * TOTAL] if debug
else
i = lt(TARGET)
puts "- [%d] -> %#f, %#f, %4f, %4f" % [i, s / (idx.to_f), TARGET, s / (idx.to_f) * TOTAL, TARGET * TOTAL] if debug
end
N[i-1] += 1
s += i
end
puts "\nPotential voting combination to give score %.2f from %d votes" % [TARGET, TOTAL]
puts " -----------------------------------------------------------------------"
puts " [ *] : %d" % N[0]
puts " [ **] : %d" % N[1]
puts " [ ***] : %d" % N[2]
puts " [ ****] : %d" % N[3]
puts " [*****] : %d" % N[4]
Potential voting combination to give score 4.87 from 3247 votes
-----------------------------------------------------------------------
[ *] : 47
[ **] : 42
[ ***] : 35
[ ****] : 39
[*****] : 3084
It absolutely demonstrates the skew. It might be quite representative. Scores obviously can't be all fives and ones.[ *] : 47
[ **] : 42
[ ***] : 35
[ ****] : 39
[*****] : 3084[/CODE]
absolutely useless, of course, and takes no notice of the skewing towards 1 and 5 that we see, but I found it fun anyway.

Language is irrelevant, but the style... Simple, clean, elegant, easy to follow, and with comments...Comments!!!I am more amused by the fact that she is coding in Ruby![]()
@AwkwardlySet python is for troglodytes and the products of incest.I am more amused by the fact that she is coding in Ruby![]()
My coding stopped at Fortran...
@AwkwardlySet python is for troglodytes and the products of incest.
https://tlgrm.eu/_/stickers/9a2/da4/9a2da40e-fd23-3b44-b374-062398a4ce96/15.png
@ElectricBlue I was a software engineer for many years. I still like to pretend I am.
I C what you did there. Sharp.I'm sure you could COBOL something together if you needed to...
@AwkwardlySet python is for troglodytes and the products of incest.
https://tlgrm.eu/_/stickers/9a2/da4/9a2da40e-fd23-3b44-b374-062398a4ce96/15.png
@ElectricBlue I was a software engineer for many years. I still like to pretend I am.

[ ***] : 35
You're a real card, the way you can just punch out puns. You really leave Chad behind.I'm sure you could COBOL something together if you needed to...
Are we all so old that we get your puns, or are we just not playing with a full deck?You're a real card, the way you can just punch out puns. You really leave Chad behind.