« first day (1727 days earlier)      last day (3121 days later) » 

5:06 AM
Hmm. There are 9! = 362880 ways to fill a 3x3 square with 0..8. I can divide this by 16 because of rotations, flips, and inversion (subtract from 3^2-1), which is 22680, a little more than 60 times 376.
You know what would be really helpful? A group action and a way to know if it preserves sturdiness.
 
@nhahtdh Oh hey, you're n̴̖̋h̷͉̃a̷̭̿h̸̡̅ẗ̵̨́d̷̰̀ĥ̷̳
 
Wait, no...I need to know what the group of 3x3 squares filled with 0..8 is, to start with.
The answer is, of course, that there are multiple such groups. So now...how do I pick a useful one...
 
I know what are groups but what is a group "action"?
 
It's been about half a year since I learned about them, so gimme a couple moments.
I may have meant simply operation.
Okay, I think this is right: a group action is where each element of a group is an operation on some set. So composing two such operations gives another operation in the same group, that sort of thing.
I'm not totally sure this is the right idea though.
I'm trying to figure out how to use Burnside's Lemma.
Okay, yes, "group action" is right.
 
What does this theorem tell us that's interesting if we could use it?
 
5:18 AM
It lets you not count duplicates by counting fixed positions.
So like, let's say you have a cube where you can color each side with one of three colors.
How many distinct colorings are there?
 
up to rotation?
 
<brute forces answer with program>
 
You can look at every possible rotation and count how many colorings are fixed, that is, don't change under that rotation.
You add up these, and then divide by the number of possible rotations.
And ta-da! You have the number of distinct colorings!
 
Oh, well I knew that.
That doesn't stop us from having to examine all the rotational duplicates, does it?
 
5:22 AM
Mmm? Not sure what you mean?
 
Mmm!
 
Using this lemma, you still had to look at all 6-tuples of colors.
 
Yes and no.
For instance, consider the rotation where you spin the cube around an axis that goes through two corners on opposite ends.
Not on the same square.
All of the faces adjacent to one corner must be the same color, and likewise for those adjacent to the other corner. So you only have 3*3=9 possibilities.
 
Man this \n\n rule :/
 
I really don't like it.
 
5:27 AM
Doesn't yours do \n\n as well?
 
.....yes.
It's hard to actually do without also keeping track of how many grids have been computed so far.
 
What's nice for writing faster programs is easily-computed rules that allow me to identify a grid as the sole representative of its equivalence class under the group operations (Peter called it the 'canonical' grid).
 
feersum and don bright's answers also have \n\n.
 
Oh, is that really a rule?
 
Comments on the question.
I knew of it and decided not to bother with it.
 
5:34 AM
lol
 
@AlexA. Yup.
 
It would add something like 12 bytes or so.
 
+17 for me :/
 
(As for the avatar, you might want to visit Maid Cafe chat room)
 
Yuru Yuri?
 
5:38 AM
Yep, Toshinou Kyouko from Yuru Yuri, but the thing is, our room is having an avatar change event, where people participate by changing their avatar to that of Toshinou Kyouko
At one point, all our mods change their avatar to this exact same picture, and also their handle to Toshinou Kyouko
It's hilarious looking at the list of moderators
 
Ahaha nice :P Haven't popped by the cafe for a while (only really lurked tbh)
 
@Sp3000 Looks like you beat me anyway, so props on that.
 
You should from itertools import* btw
 
...that saves me 1 byte.
lol
 
:P (import ... as ... is basically useless for single imports, fyi)
 
5:48 AM
Also, isn't Python syntax highlighting <!-- language: lang-python -->?
 
lang-py is what I usually use
 
Ah, the problem was that I didn't put -all.
1 5 6
8 0 3
2 4 7

0 5 6
8 3 2
1 4 7

0 6 5
8 1 3
2 4 7

5 1 6
8 0 7
2 4 3
The last three squares all have four numbers different from the first one.
 
@El'endiaStarman Yes. An m x n square has (m-1) x (n-1) blocks, which between them cover most of the cells 4 times, the edge ones 2 times, and the corners ones 1 time. You can get a lower bound for (m-1)(n-1)S by assuming that the corners are the four largest numbers, and the edges are the next largest; and an upper bound by assuming that the corners are 0 to 3, the edges are 4 to ...
That's what the case-split calls to SetBounds in the gist I posted do.
 
ahh, gotcha
 
@NathanMerrill I removed that comment because I replaced it with a much more general one.
 
6:03 AM
Oh. Looks like I was wrong before.
8 1 6
0 7 2
5 4 3

8 4 6
0 1 2
5 7 3
> Things that won't work: swap two numbers, rotate a sub-square, shift one row, shift one column.
 
3x3 is a special case because the center square doesn't matter.
 
That'd apply to odd squares.
 
What I mean is that the center square is in all of the 2x2 boxes, so it can be changed to an arbitrary value without breaking equality.
 
riiight
The top and bottom middle values just increased by three.
Oh, yeah, that would only work for 3x3.
You wouldn't be able to increase the sum of all blocks simultaneously by adding a constant to two values.
Okay, in this pastebin are all of the squares where there is another ("greater") square that shares six of the same values. "Ref:" refers to the referent square; the following one or two squares are those that are three value-changes away.
Most squares do not have such a "neighbor".
Specifically, 216 squares do not have such a neighbor, 128 squares have just one neighbor, and 32 squares have two neighbors.
.... very "nice" numbers...
6^3 (or 2^3 * 3^3), 2^7, and 2^5, respectively.
 
3x3 seems a bit too small...could be misleading to study it
 
6:19 AM
mmm, perhaps
Unfortunately, though, I can't generate all 20,352 5x5 squares at the drop of a hat. :P
 
that's the number of 4x4
 
whoops
All 80,000+.
 
Do you want to use the C code?
There are 51840 of 5x5.
 
You'd probably work with the C code a lot better than I.
I'm just investigating connections.
Like this: {'[2, 1, 1]', '[2, 2, 1]', '[2, 1, 2]', '[1, 2]', '[1, 1]', '[0]'}
So, I counted how many neighbors each square has. Then for each of these neighbors, I counted their neighbors. This set above is all of the possibilities that show up.
 
test
 
6:30 AM
So, if a square has two neighbors, those squares cannot both have two neighbors each. If a square has one neighbor, that neighbor might have one or two neighbors.
@feersum: Do you understand what I'm doing here?
 
Not really.
 
Have you verified that neighbors even exist for 4x4?
 
Haven't tried yet.
Hey, is it possible to add a constant to all elements and then take a modulus? Or, equivalently, are squares ever cyclic permutations of each other?
Some more stats:
376
(1, 2) 32
(0,) 216
(2, 2, 1) 16
(2, 1, 1) 8
(2, 1, 2) 8
(1, 1) 96
Numbers on the right are how many of each there are.
 
7:02 AM
@AlexA. I like displaying my old versions, I think it is interesting to see how the length developed and what tricks were used!
 
@feersum The answer is YES! Where neighbors are those that share 12 values (so 4 are different).
20352
(4, 8, 4, 4, 4) 256
(4, 4, 4, 4, 8) 1024
(4, 4, 8, 8, 4) 256
(4, 4, 8, 8, 8) 3072
(4, 4, 4, 4, 4) 3072
(4, 8, 8, 4, 4) 256
(4, 4, 8, 4, 4) 1024
(4, 8, 8, 4, 8) 3072
(8, 4, 4, 4, 8, 4, 4, 4, 4) 2624
(8, 4, 4, 4, 4, 4, 4, 4, 8) 96
(4, 4, 4, 8, 8) 256
(4, 4, 4, 8, 4) 1024
(4, 8, 4, 4, 8) 1024
(8, 4, 4, 4, 4, 4, 8, 4, 4) 896
(4, 4, 8, 4, 8) 1024
(8, 4, 4, 4, 4, 4, 4, 4, 4) 96
(0,) 384
(8, 4, 8, 4, 4, 4, 4, 4, 4) 896
.... fascinating!
 
7:20 AM
0
Q: Convert a string to alternating upper/lower case letters of the (english) alphabet

gliderPHP Goal Write a PHP program that takes a parameter as input and outputs a filtered version with alternating upper/lower case letters of the (english) alphabet. Non-letter characters have to be printed but otherwise ignored. Example Input: Hello World! Hallo Welt! Output: HeLlO wOrLd! ...

 
7:37 AM
Gonna leave my computer working on 5x5 overnight.
 
8:30 AM
@El'endiaStarman I don't get what the numbers mean.
There are a lot of symmetry operations for 4x4 though.
Standard square symmetries (x8), column rotation (x4), row rotation(x4), subtraction from 15(x2).
If none of these are redundant then that's 256 elements in a symmetry group.
Would explain why there are so many powers of 2.
 
Anonymous
Wow my internet is laggy as all hell tonight
 
9:25 AM
@AlexA. Mods could also have purged the history. Just saying.
(Turns out, purging the history does not purge the last version... that's a bit stupid... I think you could also hard-delete the message right away though.)
1 messages deleted
doesn't help either.
so remember everyone: if you post sensitive information, first edit it out, then delete it...
 
 
2 hours later…
11:28 AM
or, ya know, don't post sensitive information :P
 
11:47 AM
< sensitive information >
 
Please note the new bounty:
18
Q: Golfing strings in Fourier

Beta DecayChallenge Given a string as input, golf down the Fourier program which outputs that string. In Fourier there is no easy way to output a string: you have to go through each character code and output that as a character. Fourier The language is based upon an accumulator, a global variable which...

 
you do the Fourier transform and encode the frequencies and amplitudes?
 
How can I start a program from the commandline in linux without blocking until it exits?
 
append an ampersand
it will still be linked to the shell
 
cool, thanks
 
11:53 AM
you can also check out ctrl+z, bg, fg and jobs
 
1
Q: Dames, do some math!

Stewie GriffinThe order of operations, PEMDAS, is a basic rule in mathematics telling us which order operations should be performed: "Parentheses, Exponents, Multiplication and Division, and Addition and Subtraction" The problem is, PEMDAS is not very versatile! What if you wanted to do it in another order? ...

 
I've gotta say, the Voronoi wave also makes for a really good portrait-orientation desktop wallpaper
 
12:30 PM
@Status Sorry for the delay in getting back to you. All 4 images work fine for me, using Python 3.4.3 on Windows 8.1, with pillow version 3.0.0. They are JPEG images so the distortion makes the key image barely recognisable, and the restored image horribly corrupted, but they don't give any error messages, and converting them all to PNG first gives the intended results without corruption.
I'm trying to guess what might be different for you but I have no errors to work with at this end.
 
Anonymous
Hallo
 
Did you just say hello?
 
Anonymous
In Megoese, yes
 
Hallo :)
 
Anonymous
Megoese is like English, but there's an X% chance that a randum letter in a sentence will be swapped out
 
Anonymous
12:43 PM
X=rand()
 
Anonymous
Double random, what could it mean
 
That explanation makes me wonder how randum that random letter is.
 
Anonymous
It's rendom
 
Does it only apply to vowels?
 
Anonymous
Mo
 
12:44 PM
I see
 
Anonymous
What's really fun is when the le ter gets replaces with a space
 
Anonymous
inb4 Megoese golf
 
Are spaces also eligible for replacement?
 
What about punctuation? Almost all of that seems to be missing.
 
Anonymous
Punched who?
 
12:45 PM
At least you use question marks
 
Anonymous
With instant messaging, I tend to leave off trailing periods
 
Anonymous
It makes my messages sort of an unfunny, uninteresting stream of consciousness
 
Is this the good kind of pop con, or the horrifically bad kind?
1
A: Sandbox for Proposed Challenges

VTCAKAVSMoACEOh Montague Code Review, Oh, Montague Code Review, Wherefore art thou Montague Code Review! 'Tis this tale which I bring to you, with dread in my heart and a tear in mine eye*: The Rivalry between Code Golf and Code Review! Thusly, I challenge thee to a duel!** The Duel's Rules Thine "code"...

I suspect there is no code objective, but I don't want to assume that I haven't missed it somewhere in the faux middle English
 
I honestly have no idea what the objective is. I suspect it's "write a poem about code", but if that's the case, it's the terrible kind for sure.
 
I would comment on the need for clarity, but I can't say it any better than Peter's comment
 
Anonymous
12:52 PM
I dunno what that challenge is supposed to be, but now I want to kill 6 other people and myself
 
That does sound like the bad kind
 
Anonymous
@VTCAKAVSMoACE splain yoself
 
Now, if this was on meta and the winner(s) got some swag, then I'd be all in ;)
 
Who do we talk to about that...?
 
Mods I'd guess. Dunno if they have swag powaz.
Or if PPCG swag even exists. Probably not.
 
Anonymous
12:56 PM
We have swag, but it's in beta too
 
> I won a PPCG poetry contest and all I got was this lousy t-shirt.
 
Anonymous
Psh, t-shirts? Too much fabric. You get a sock.
 
Hi, apparently I've missed a few things when writing this question. I'm trying my best to avoid additional downvotes or close votes (it's +3/-2, and 1 CV atm). I'd appreciate if someone would care to comment if there is still stuff that's not clear / unambiguous. =)
 
No thanks. Too many socks here already.
 
Anonymous
Tbh any swag we got would be golf balls
 
Anonymous
12:57 PM
Or bowling balls for those other contests
 
@StewieGriffin The comments seem to conflict with the latest edits. You might want to get rid of the "yes, 1-3+4=-6" comment at the least if you changed the rule to left-to-right.
 
@StewieGriffin I don't understand the meaning of commands or spaces in the input. Are those supposed to group operations of equal precedence?
 
@Mego or maybe trolls for code-trolling
 
I also think it would be "cleaner" if you dropped the bonuses. Too many moving parts at that point to compare answers well.
 
1:02 PM
I don't like the idea of bonuses in general, so I'm biased, but I agree in this case they seem even more of a distraction than normal.
 
@Geobits, left to right doesn't affect 1-3+4 as the operations should follow the letters strictly. It only applies for cases such as 1-2-3, where there are identical operators.
 
@StewieGriffin If the string of letters is shorter than 6 letters, can it be assumed that the omitted operations will not be used, or is there a default rule for them?
 
@StewieGriffin Yea, I realized that right after my two-minute deletion timer expired on that message ;)
 
@BetaDecay and llllong
 
@trichoplax, if not all letters are included, you can consider it invalid input.
 
1:09 PM
@StewieGriffin So AS is valid only if the expression contains only addition and subtraction?
 
@trichoplax I read that as "if not all the letters EMDAS are in the input, it's invalid" no matter what the expression is.
 
@Geobits Me too, but that conflicts with the examples, so I'm guessing it's not intended that way. I'm hoping to get an unambiguous statement before recommending editing it in
 
Which example doesn't have all the letters?
 
@Doorknob it's possible for mods to change people's display names right?
 
@trichoplax, Geobits is correct. I believe the examples are correct. If you're looking at the example strings in the beginning, ME, SAD is in a single code block, not as two separate ones. Maybe that was hard to see. I'll add " "
Or was there another example you had in mind?
 
1:15 PM
@Geobits Ah - I see my mistake. I am slightly zoomed in which changes the line break positions. SAD, ME is therefore broken across two lines and I mistook it for two separate examples. In standard size (no zoom) there is no ambiguity.
 
I think the spaces/comma thing is unnecessary though, tbh.
It makes parsing the input more involved for no good reason I can see.
 
The thought behind it was to create anagram strings, but I realize now it wasn't the best idea I've had.
 
@StewieGriffin Your edit now makes it break across two lines even without zoom...
 
I hate it when that happens :)
 
Anonymous
@Dr.EmmettBrown Or maybe cups of coffee, to celebrate the best golfing language ever
 
1:17 PM
PPCG-branded java? I'm in ;)
 
Anonymous
Minimal beans for maximal coffee
 
It probably tastes terrible, though. People around here like to take shortcuts when doing stuff.
 
@Geobits I'm reluctant to changing it now though, as it's been up for an hour now.
 
Anonymous
@trichoplax After drinking some coffee and having some breakfast, I read over this again, and I think I get what he intends. The challenge is to write code that looks like poetry, and prints out poetry. Either that, or he's challenging me to a duel at dawn.
 
@Optimizer Yeah.. I agree with that :P
 
1:23 PM
@Mego I got that much, but I couldn't tell if there was a requirement for that code to do anything
 
I believe it's 1) come up with a poem that is >= the length of the one given, and 2) kolmogorov it.
 
Anonymous
@Geobits Kolmogorov it in code that is also poetic
 
@Mego I honestly don't know if that's the intent. Either way, we shouldn't have to guess.
 
Anonymous
@Geobits I agree, I'm just offering my guess/interpretation
 
Anonymous
The ternary joke has 3 stars right now. That should never change.
 
1:27 PM
I have no clue how a -90% bonus for Shakespeare is supposed to work for a popcon o.O
 
Anonymous
I think it means your score is counted as 10% of your votes
 
He must really want to punish Shakespeare.
 
Anonymous
Given that Shakespeare <s>lends itself to</s> requires poetic code
 
Anonymous
After high school English classes, I really want to punish Shakespeare
 
1:28 PM
It absolutely fails at brevity, though :P
 
Doc brown === confused 😕
Wait, doesn't that mean I'm now "true"?
 
Anonymous
yes
 
Anonymous
maybe
 
Does a===0 mean true gets assigned to a?
 
Anonymous
a===b returns true iff a==b and a and b are of the same type
 
1:34 PM
Yea, but it doesn't assign anythign to a.
so Doc brown doesn't change to true.
Unless you're using a really strange language.
 
Anonymous
Well if confused === true and Doc brown === confused, Doc brown === true
 
Could've sworn it was an assignment operator
 
Anonymous
Nope
 
Oh. I don't see where it says confused=true.
 
Anonymous
Assignment is = or :=, depending on your language
 
Anonymous
1:37 PM
(Psuedocode, math proofs, and Thue (I believe) use the second)
 
Anonymous
And then there's the monstrosity that is COBOL
 
Anonymous
ASSIGN 2 TO SOME-STUPID-VARIABLE.
 
:= has the advantage of looking like a strange face.
 
Also SPIN uses :=
 
   __o
 _`\<,_
(_)/ (_)
^ SPIN classes use these
 
1:40 PM
I fixed my Sandbox post. >.>
Man, I make no sense when I'm tired.
 
Anonymous
@Geobits That looks like the unholy union of a Dalek and a bicycle
4
 
@VTCAKAVSMoACE You made a sandbox post? We hadn't noticed ;)
 
Nobody uses spin except me
 
@Mego That does not sound that unholy.
 
Oh, no, I read that. -.- It's in the starred list, you know.
 
Anonymous
1:42 PM
@Geobits "I want to EXTERMINATE my bicycle! I want to EXTERMINATE my bike!"
 
I can EXTERMINATE my bike with no handlebars.
 
Anonymous
@BetaDecay Exactly
 
I have always held the belief that people making skin care stuff could seriously get some good advertisements from a Dalek saying "EXFOLIATE".
 
@VTCAKAVSMoACE Can you clarify this? "If your code is written in Shakespeare, claim a -90% bonus!"
It doesn't seem like a numeric bonus on a popcon works very well.
 
1:44 PM
@VTCAKAVSMoACE There's still time for you ;)
 
And especially not a negative bonus.
 
Oh, yeah, for some reason I thought that I was writing a kolmogrov complexity code golf last night. I'll go fix that.
 
@VTCAKAVSMoACE Works even better for exterminators :)
 
@Geobits Yeah, but it's too obvious for that.
 
Scene: Roaches crawling around the kitchen. Dramatic music. The cult of Skaro blasts down the door. Etc and so on.
 
Anonymous
1:46 PM
@VTCAKAVSMoACE It looks much better now
 
@Geobits My money's on the roaches
 
Well sure. Daleks (on-screen at least) are pretty terrible at what they do.
 
If they survive a nuclear blast, they can survive a measly extermination
 
Anonymous
"THERE IS ONLY ONE THING THAT ROACHES ARE BETTER AT THAN DALEKS. YOU ARE BETTER AT DYING."
 
I'm thinking of adding a popcon target of also how creatively the person prints out the poem, but I can't think of an objective way to state that.
 
1:48 PM
Wait... @Geobits and @Mego are both pumpkins
 
Wow
 
Anonymous
@Dr.EmmettBrown No I'm a human bean. My avatar is a penguin wearing a pumpkin.
 
@VTCAKAVSMoACE I have a feeling most voting will be based on the poem and not the code, which just makes it an art contest :/
 
@VTCAKAVSMoACE I still can't detect any requirements for the program other than having short, poetic source code. Is it required to output anything?
 
@Dr.EmmettBrown I'm not a pumpkin, I'm a jack-o-lantern.
 
1:49 PM
@Geobits Should it be a meta thing, then? Since it has much to do with Code Golf and esolangs.
> Your code must print out a poem.
 
@Geobits What's the difference?
 
It used to say "write out", but that was vague.
 
That edit made a big difference to my understanding :)
 
Sorry about that.
 
@BetaDecay One's been carved up and lit? Also, lots of stores sell jack-o-lanterns made of plastic, so not even a pumpkin to start with, just pumpkin-shaped.
Also, only one makes a good pie.
 
1:52 PM
@Geobits Mego is also a Jack-o'-Lantern...
 
Looks that way, but I wasn't saying they were a pumpkin either :)
 
@Geobits Ahh I see
 
Trichoplax's kinda looks like it could be a jack-o-lantern, with the picture taken at night and just the glowing part showing up.
Speaking of which, I need to decide what to carve this year.
 
Anonymous
A downvote, obviously
 
@Calvin'sHobbies @El'endiaStarman Perhaps an avenue of finding a generator equation is to count the number of distinct squares, where two squares are distinct if they have a different sum
 
1:59 PM
@VTCAKAVSMoACE Now that I understand your sandbox post correctly, I don't see it as having an emphasis on programming skill, so I would expect it to be closed
 

« first day (1727 days earlier)      last day (3121 days later) »