« first day (3549 days earlier)      last day (1298 days later) » 

1:50 AM
Quick question: In the Political Simulator proposal, I'm using a number to keep track of each voter's vote. Zero would be neutral, positive is a vote for one candidate, negative for another. For example, campaigning in an area might increase that by 0.25 (so it's not just a plain ternary value, it's more like a number line with farther from 0 being more support for the candidate). Any ideas on what to call this value?
 
2:41 AM
@RedwolfPrograms goodwill
 
Maybe, although it might sound a little ambiguous (like "the voter's goodwill"). I like it, maybe there's another word with more of an election sort of theme?
 
Canvas votes?
 
preference
sway
 
Ranked choice?
 
swing
 
2:50 AM
insert generic voting term here
 
bias
 
Actually "bias" and "preference" are pretty good
 
woo! both of those were my suggestions!
 
Also sorry for the delayed reply, I had to go feed my cats
 
cats?
golly
that seems kinda paradoxical
redwolf feeding (presumably) blue cats
 
2:55 AM
Gotta fatten them up first
 
ah
there we go
kill or be killed lol
 
I will happily adopt any cats that could potentially be killed
#saveallcats
 
(In all seriousness my cats are very cute and I would never eat them)
(The feeling does not seem to be mutual)
 
Cats will gladly eat you when you die
The reverse is (from experience) not true
 
willingly or unwillingly?
 
2:59 AM
Somewhere on my SE account is a picture containing one of my cats, if anyone can find it I will give them an ASCII smiley face
 
and somewhere on here y'all can see the sleep schedule of me, caird, AviFS, Razetime and a few other users. first to find that isn't on the list gets an ascii smiley face.
 
goes to a specific chat room
 
hey, you're not allowed to answer
you're on the list
no smiley face for you
 
I didn't answer tho
 
i know
but what i said still stands
 
3:04 AM
Maybe I'll just give away a bunch of smiley faces to devalue them.
 
@RedwolfPrograms dang it this isn't 1920s germany y'know
 
3:41 AM
@RedwolfPrograms gonna take while to get this
 
It's on a site you'd expect it to be on
 
hackernews?
 
> Somewhere on my SE account
 
13
A: How can I stop my kitten from growing?

Redwolf ProgramsThere is in fact a way to keep your cat how it is: Photographs. They're a wonderful invention, and you can even keep cameras in your pocket now. Photos are: Guaranteed not to grow Easy to copy. Cats run away; flash drives do too, but you can back them up Still cute Instagram postable Convenie...

HAH
 
Not exactly, but close
 
3:44 AM
Just thought that was funny
 
Correct. Here are 657 smiley faces: pastebin.com/pJ1gH5RZ
 
I shall use this currency toperform drone strikes thank you
 
 
4 hours later…
8:14 AM
Can I please pick the locations?
 
 
2 hours later…
10:07 AM
yes, you can. Do message me when you have a list.
 
 
2 hours later…
11:46 AM
17
Q: Find maximal matching in divisibility relation

ghosts_in_the_codeYou are given a set of positive integers. You must arrange them into pairs such that: Each pair contains 2 numbers, one of which is a multiple of another. For example, 8 is a multiple of 4, and 9 is a multiple of 9. If the same number occurs many times in the initial set, it can be used that ma...

 
 
3 hours later…
2:45 PM
Is there something shorter than String.fromCodePoint to convert a code point into a character (Javascript)? I think Node has a trick with buffers, but V8 (what I use) doesn't have those.
(Other than the practically identical String.fromCharCode which is one byte shorter)
 
 
1 hour later…
3:51 PM
I guess you could do a="abcdefghijklmnopqrstuvwxy";a[x-96]... but I don't suppose you're even close to the point where it becomes beneficial
...because then you could also do a=String.toFromCharCode
 
Hmm, I wonder if typed arrays can be used for this
 
The shortest way is probably to change languages :P
Beyond that, I'm pretty sure it's well known that there isn;t a shorter way
 
Yeah, it seems new Uint16Array(1)[0] = "A" just sets it to 0 anyway, so there's no trick I can think of to do anything string related with those (other than TextEncoder and TextDecoder, which are probably even longer)
 
@JohnDvorak for converting digits into lowercase letters you could use (x+10).toString(36)
 
Oh, that's actually really smart...
 
4:02 PM
oh, nice!
 
Also I just thought of an interesting way to convert a hexadecimal string to a number: h=>+["0x"+h]
Do we even have a plain hex-to-decimal challenge? All I can find is this that has really restrictive rules and is closed. I know we have a lot of plain number conversion challenges, but I think hex to decimal is a really interesting one because of interesting shortcuts a lot of languages will have (like the one I mentioned above)
 
Its a subset of this
 
That's unary to a bunch of different bases, very different I think
 
Yeah, just pointing out a related task
 
I think I'm going to write a sandbox proposal for it, seems like there's a lot of language-specific tricks one could use to shorten it
 
4:10 PM
It might fall under the binary to decimal challenge as "it's just base conversion with a different base"
But that's not a guaranteed dupe hammer version of a duplicate, so you might be able to get away with it
 
Especially if I specifically list all the related challenges and give a brief explanation of why it's different enough
 
@RedwolfPrograms h=>+`0x${h}` also works for the same byte count
 
 
2 hours later…
5:56 PM
Posted a vanilla hex-to-decimal challenge to the sandbox, let me know if anything needs to be clarified or the formatting should be changed.
 
0
A: Sandbox for Proposed Challenges

Redwolf ProgramsConvert hexadecimal to decimal code-golf base-conversion We have a lot of base conversion challenges. Surprisingly, aside from one closed challenge, there aren't any where the goal is purely to convert hexadecimal to decimal. This is different from challenges like converting hexadecimal to binary...

 
 
3 hours later…
8:41 PM
Any final feedback for Political Simualtor? Probably posting in a few days.
 
0
Q: Rectangles in rectangles

Peter KageyThis code-golf challenge will give you two positive integers n and k as inputs and have you count the number of rectangles with integer coordinates that can be drawn with vertices touching all four sides of the \$n \times k\$ rectangle $$ \{(x,y) : 0 \leq x \leq n, 0 \leq y \leq k\}. $$ That is, ...

 
 
2 hours later…
10:57 PM
Has there ever been an answer chaining CnR? As in, there'd be one post (rather than separate cop and robber ones), with an initial cop. Each answer would consist of a crack for the previous cop, then a new cop based on their robber (like using the same bytes, or one byte shorter, etc.).
 
11:51 PM
TIL you can't just average decimal RGB representations to find the closest color
 

« first day (3549 days earlier)      last day (1298 days later) »