« first day (1286 days earlier)      last day (3565 days later) » 
00:00 - 21:0021:00 - 00:00

12:31 AM
^ Can't marble, busy perfecting
2
 
Wow.
Is that for the tweetable art question?
 
Yep. It's similar to Martin's. Each pixel/channel takes a random walk based on the ones above and left of it, so it ends up making nice, streaky bands.
 
The colours are really subtle - reminded me of Jupiter at first
 
I've been playing with the color balance and randomness for like an hour now looking for just the right screenshot, but they all look decent. I think I'm gonna go with this one.
 
That one gets my vote...
 
12:34 AM
Make that two hours. That's what I get for glancing up at the clock.
 
I've got one running overnight to hopefully post tomorrow - at least I don't have to stay up while it's working...
 
Damn, what's it doing?
 
Do you know if the 500K limit applies to GIFs as well as images?
It's fairly simple just slow...
 
I didn't even know there was a 500K limit.
 
I'm trying to get ripples spreading out and reflecting off the sides of the image
I posted one as a test earlier and it seemed to work.
 
12:36 AM
Ah, nice.
 
It only takes about a minute to generate an image, but I wanted a reasonably long list of frames so you can see the reflections add up over time
 
12:57 AM
0
A: Proposed Question Sandbox - Mark XIV

RainboltTennis Tournament (Incomplete) Please do not vote or comment yet. Introduction Insert tennis themed introduction here. Game Insert description of the tournament hierarchy, player seeding, and program flow. Input You will be passed the current set of matches. Matches will be comma (,) del...

 
I made a new one that looks like what I imagine you'd see while having an aneurysm
 
Are you going to post it?
Do you mean mostly dark with flashes of light?
 
i'll paste it here in a second. most of the visual problems it gives you go away when not at full size, though
 
No permanent vision problems, I hope??
 
oh, here
unsigned char RD(int i,int j){
#define d(x,y,z,w) sqrt(_sq(x-z)+_sq(y-w))
return (char)(_sq(sin(2500000.0/_sq(d(i,j,512,512))))*155+10);
}
unsigned char GR(int i,int j){
return (char)(_sq(sin(2500000.0/_sq(d(i,j,500,500))))*155+10);
}
unsigned char BL(int i,int j){
return (char)(_sq(sin(2500000.0/_sq(d(i,j,500,512))))*155+10);
}
 
1:01 AM
Will I get auditory hallucinations?
 
lol should I look away now?
 
you should really run it, otherwise i can raise my desktop resolution to take a screenshot for imgur
 
I'd have to grab the char version, using the short one myself.
 
I'd run it but my machine is busy calculating my entry for tomorrow
 
oh, nm, i'll just take a screenshot of the middle bit
 
1:03 AM
We can use the reduced one as an innoculation against the full effect later
 
Ah, image vaccines. Good idea.
 
It won't show full size in the answer anyway, unless people right click and download it
And then only if it was less than 500k
otherwise it converts to jpg automatically and loses some of the detail
 
i don't know, maybe I overstated it, but I find it very uncomfortable to look at
 
I opened it full size and zoomed in
then I had to scroll to see all of it
scrolling makes it flicker violently
is that where you hid the mind control?
 
It's only really uncomfortable if you move your head toward and away from it rapidly :D
 
1:07 AM
Oh yeah
I won't do that again
 
i'm going to tweak the general idea until it's one of those false motion optical illusions
 
I accidentally found that a very small scale roughly hexagonal arrangement of distinct pixels makes shapes jump out at you if you move your head
I almost posted it...
It was just the initial layout of particles for my diffusion limited aggregation entry but it was an effect all of its own
Have you seen those patterns of black and white lines that look like a colour when you move past them quickly?
 
oh, yeah. lattices can do that too
 
There's a snake that moves through the grass at the right speed to make it's black and white stripes appear green
I'd like to make an image that is black and white from a distance but brightly coloured close up. I have a list of ideas though so probably won't get that far...
 
that's badass
it is so easy to blow hours doing this. I hope nobody takes my blue post the wrong way; i'll probably delete it and upload a real entry, or else put a really realistic frame on it
 
1:18 AM
Just keep posting - if people don't like it they won't vote for it. I can't see that it warrants a downvote - most people would reserve that for something that breaks the rules.
And you have gone to the trouble of getting exactly the right shade of blue...
 
and the exact proportions. hah. wait, we can have multiple entries? I just had a really cool idea to modify the abomination i just posted, so I'm working on that now
 
Yes, you can have as many answers as you like
I've posted 3 and I'm hoping to post my 4th some time tomorrow if it finishes running
Where I've had ideas for improvements I have edited them into my existing answers, but completely new ideas get a new answer
That way you can tell which of your answers is best loved
 
 
1 hour later…
2:32 AM
by the way, I would like your pentagon more with a different background, maybe grayscale. You could have the green and blue just call RD in the event that the pixel is 0, or something?
what am i saying, I can just mess with yours on my own
 
 
1 hour later…
3:35 AM
sorry if that sounded rude; I really like the pentagonal sierpinski entry, I'm just not fond of the background
 
 
3 hours later…
7:00 AM
@Geobits your tweetable maths submission looks great! :)
 
 
3 hours later…
9:46 AM
0
A: Proposed Question Sandbox - Mark XIV

impinballThis will be a underhanded popularity-contest. Notes for sandbox: is there anything missing that I didn't catch? Also, would it be suitable to make a GitHub gist to check? Print all multiples of 42 from 0 to n...imperfectly Objective: Print all multiples of 42 from 0 to an arbitrary number n....

 
 
1 hour later…
10:52 AM
@EricTressler didn't sound rude at all - feedback is great. Yes green and blue could follow the pattern of red in the background for about 6 extra characters in each function. Or for 10 extra characters they could be mirror images of it in x or in y. The code is all there for anyone to use - feel free to experiment...
I liked it red for the contrast where it shows through the holes, but I could had in half the blue and green for a lighter red, or just blue for magenta. I might edit it if I can find an improvement that fits in 140 bytes...
 
11:25 AM
Could add in, not had in. Too late to edit...
 
 
1 hour later…
12:29 PM
whoops wrong room
2
 
12:56 PM
@MartinBüttner Thanks! Yours are great too, but I guess from the 80+ votes you already know that :D
 
1:18 PM
I just realized, Peter Taylor is the user with the most reputation to not have popcon in their top 3 tags xD
I don't even have in my top 3 anymore ;_;
 
I need two more votes for my [code-golf] to finally pass my forgotten [code-trolling] posts :(
 
I need two more people to vote to reopen the game of life question so I can post my solution :D
 
What is the purpose of scoring by upvotes minus downvotes?
Doesn't that just equal "total votes"?
 
as a tiebreaker presumably
 
It doesn't break ties. They are literally the same thing...
Up + Down = Total
 
1:29 PM
Your submission score is the number of upvotes minus downvotes, plus extra points for discovering common Game of Life patterns in your tiling:
I meant tiebreaker if everyone gets the +X 'bonus' points for finding patterns
 
Sorry, I should have been more specific. What is the purpose of scoring by upvotes minus downvotes, which only certain users can see, instead of total votes, which all users can see?
 
Oh. /me shrugs
 
2:25 PM
new scores on Programmin Pacman
18
Q: Programming Pac-Man

Nathan MerrillProgrammin' Pac-Man Setting You play as Pac-Man. You want to collect pellets, fruit, and power pellets before anybody else, all while avoiding ghosts. Rules Every valid Pac-Man will be in a single maze. The player with the highest cumulative score after 10 games will win. A game is over wh...

 
2:57 PM
@cjfaure And some at least of those are protest answers. (I also have no idea why the partition function question is a pop-con).
 
hey Sparr!
Your shortsighted bot is being beaten out of the water :P
 
Can anyone give me any tips to actually compete in Code-Golf?
 
...I'd recommend writing code, then getting tips on it :P
otherwise, the only tip I have is to use golfscript
 
I just see code-golf as a bit of fun, it's between me and the C# spec, or the best Java entry, I cannot be beaten by Java, that would be horrible
 
@G_Wilson Make a working program. Then optimise it. Try out all your ideas, because sometimes it's surprising what works and what doesn't, and keep your earlier versions and failed branches because sometimes a new idea combines really well with one you rejected earlier.
4
 
3:11 PM
Thank you for the tips guys ... i will put them into practise
 
3:55 PM
I have some small strings and a large string. I want to know if there's a non-overlapping concatenation of some set of the short strings that produces the long string, and if so which combination(s) it is. Is there a name for this combinatoric or backtracking problem/algorithm? e.g. "foo" and "obar" are substrings of "foobar", but you can't make "foobar" without the substrings overlapping.
 
4:08 PM
guys
 
@Sparr Could an algorithm that detects plagiarism be somewhat relevant? It sounds like this is the special case of the Rabin-Karp algorithm where the string is 100% plagiarized from the input set.
 
any idea why this throws "KeyError: '.png'"?
import Image#, ImageDraw, ImageFilter
import random

im = Image.new("RGB", (800, 600))
forest = im.load()

trh = [210]
for i in range(799): trh.append(trh[-1]+random.choice([-1,0,0,0,0,1]))
trc = (80, 148, 0)
for x,h in enumerate(trh):
	for y in range(h):
		forest[x, 599-y] = trc

im.save("forest.png")
 
@Rainbolt plausibly, but I think there's a known algorithm for this. It's a lexical/parsing problem.
 
it was working fine until I imported ImageDraw and ImageFilter and tried to blur it...then it threw a keyerror for bmp,
so I undid everything and now it still won't work.
Ah I see, I'm using import Image now instead of from PIL import Image
so it's using PIL instead of Pillow, which means nothing ever works ever
this should go in an
 
@Sparr Oh, Rabin Karp doesn't account for overlap, so that won't work.
 
4:14 PM
the stupid simple approach is just ^(str1|str2|str3)?(str1|str2|str3)?(str1|str2|str3)?$ and let the regex engine sort it out
 
If you only have three patterns, I would almost definitely take the stupid approach
 
I expect to have a few dozen, of lengths 2-10
and the "long" string might be length 4-20
 
I don't understand Perl, but this seems relevant: perlmonks.org/?node_id=806741
JavaFan said, "Note that all solutions presented sofar will only return non-overlapping greedy matches"
 
greedy matches is a problem
 
I was under the impression that algorithms were "greedy", and problems were just problems.
I never knew that combinatorics problems were broken into subsets. I thought they were all called "combinatorics" lol.
 
4:21 PM
While it wouldn't help much big-o style, you could eliminate a lot of combinations in the average case by comparing string length combinations and throwing out all the combinations that don't match the target length. Then with the resulting set check the actual characters.
 
hah, my food is having a reaction of some sort to motion, when you touch a place on it it turns gold and shiny
 
are you King Midas by chance? :O
 
@KevinL it goes away after a second or so, so no
and i never had a daughter
i got a reference without having to google it! yay :D
I'd hug you but ;_;
 
5:25 PM
you can vote to reopen codegolf.stackexchange.com/questions/35827/… instead
 
@KevinL reopened ;)
 
@cjfaure Posting my house tessellations now
 
5:41 PM
0
A: Proposed Question Sandbox - Mark XIV

Andrew PiliserBalanced Ternary Converter Background Most of us are familiar with a few bases for numbers, like decimal, binary, hexadecimal, and octal. One interesting base is called balanced ternary. It has three digits and each place is multiplied by the corresponding power of three. What makes it interest...

 
man, creating these .gifs taking alot longer than I had hoped
 
@KevinL ;c
 
(Posted!)
 
Isn't "house" and "upside-down house" a single shape, just rotated? I was under the impression that it had to be >=2 differently shaped tiles.
 
Must contain at least 2 (but finitely many) differently shaped prototiles.
The different shapes may be scaled or rotated versions of each other.
fits the definition of "differently shaped" as posted
 
5:53 PM
Ah, didn't see that line.
 
6:17 PM
I think this was the first time I complete rewrote a golf in another language to shorten the answer.
(the 10k challenge)
@githubphagocyte I love those waves. I haven't read your code, but I suppose you just have a radial wave which you fold back into the plotted domain?
ah no, just read the spoiler
 
Even simpler :)
 
that's amazing
 
I think I need to animate my tablecloth too
 
if you're into wave graphics though, I once solved the 2D wave equation on the GPU with WebGL to render it in real time (WITH correct reflection on arbitrary boundaries)
 
The x and y coordinates in each "tile" are just reflected or not using %2 so the calculation is really short
 
Wow
You don't mean Navier-Stokes??
 
naaaah
that's not even water waves
that's basically just a 2D membrane
it's simple transverse waves in two dimensions
so you can't get shocks or anything
 
What does the Windows command "cd %0\.." do? I can't seem to Google %0 or "percent 0". I understand that "cd" changes directory and ".." moves up one parent, but the %0 is throwing me for a loop.
 
0
A: Meaning of %%~dpa?

Kurt Pfeifle@Santhosh: %0 would be *how the current batch file was called*. That could be any of the following forms: abc.bat, abc (no .bat suffix), ..\..\abc.bat, d:\path\to\abc.bat, "e:\path with spaces\to\abc.bat" and probably some more. Now, using %0 for further processing will not work in any case, si...

 
Ah
 
6:25 PM
that shows that %0 does
 
Thanks a lot
 
(found with Symbolhound.com)
 
I was just about to ask lol
Resources better than answers :)
 
I'm sure I saw a one line fork bomb using %0 recently - be careful... :)
 
Navier stokes... heh. Programming puzzle: Accurately model the turbulence in this fluid system. Answer most closely matching what actually happens in my sink wins.
 
6:29 PM
@EricTressler "This question is off-topic because it's lacking an objective winning criterion." :P
to be honest, even the shallow water equations would be a difficult golf :D
have there been any ODE/PDE solving challenges?
 
I hope not. I study combinatorics, I hate continuous things.
 
Not really related to water waves, but I've golfed my table cloth down enough to add in a phase so I can animate the sin waves :)
 
@githubphagocyte love that motion you added, it's funny
 
@tehinternetsismadeofcatz thank you!
@MartinBüttner just watching your WebGL ripples and one started just next to the G and went crazy inside the loop. Looks great.
 
6:46 PM
@githubphagocyte you can also click
 
oooh...
 
ripples? where?
 
need to close that window while I still can
@EricTressler top of the stars list
plus I add animated ripples to two of my tweetable art answers...
 
neat
I don't know how to view page source here
 
ctrl U?
 
6:50 PM
oh, there we go. I was able to right click on the message in the upper right
I was not aware of that shortcut. thanks
 
@MartinBüttner we need your input in Marbelous
 
oh, a better question
can you please explain to me the purpose of the line
<![CDATA[ */Math.random=function(a,c,d,b){return function(){return 300>d++?(a=(1103.........
 
where is that?
 
at the very top of your page source. I see it all over the place
but I can't quite figure out its purpose
Your page begins:
<html>
<head><script type="text/javascript">/* <![CDATA[ */Math.random=f
 
I don't have that... are you sure that's not some browser plugin of yours?
my page source begins with
<html>
<head>
<title>Waves</title>
<link rel="stylesheet" type="text/css" href="main.css" />

<script id="splash-vertex-shader" type="x-shader/x-vertex">
attribute vec4 aPos;
attribute vec2 aTexCoord;
 
6:58 PM
it must be a browser plugin. I have ad blocker, at least
 
@githubphagocyte the wavy table cloth is great!
 
Thank you!
 
how did you render the animations?
 
7:22 PM
@MartinBüttner Just had an idea - cellular automata on a Voronoi diagram!
I must make a web sim for this!
 
even on a grid, almost all rules lead to death or other stupid behavior
I think it would be tough to handle varying numbers of neighbors in a way that leads to interesting results
 
@cjfaure I JUST had that idea o.O
like
3 minutes ago
 
@MartinBüttner in sync
 
@cjfaure the only reason I thought of it is because that's the only irregular grid I already have code for :D
 
penrose tiles
 
7:24 PM
@MartinBüttner xD
 
but with random sampling it wouldn't be any use for Calvin's challenge
 
penrose tiles all have 8 or 10 neighbors, so it's as regular as you can get without being a grid
 
pwiddy ;o;
 
7:29 PM
@MartinBüttner yeah, and so is contextfreeart.org/gallery/view.php?id=2577 which would win the forest gen popcon
 
lol, some of the pictures in that gallery are so nuts
 
@MartinBüttner and the code is so short
 
I was looking for inspiration for mine earlier and found this: forums.tigsource.com/index.php?topic=10101.msg310877#msg310877
 
(i wasn't gonna add the cattle)
 
Between the other and this one from the CFA Gallery, I decided to go viny :)
 
7:35 PM
I hate that I don't understand half of the talk that goes on in here. It really makes me feel dumb.
 
Does that mean everyone needs to start talking Texan? :p
 
uh, "make some cells live in the area b'longing to the nearest mayor y'all"?
#stereotype #bad
 
I think you need to get rid of the ending 'g' in b'longin'.
 
@Geobits yeah that also came to mind
aand now i can't edit it
 
are those images L-systems ?
 
7:44 PM
@tehinternetsismadeofcatz isn't an L-system just a method of describing a fractal? :P
 
probably but I heard of L-systems for generating trees and such
 
Certainly the wording wants to be in terms of Eulerian tilings rather than neighbourhood sizes, because the Cairo pentagonal tiling of this image can be reduced to a 6-regular tiling with holes which is not isomorphic to the hexagonal tiling. - Peter Taylor
---
Ya need to say it like where each trail visits all them edges 'xactly one time, 'cause that tiling like they got in Cairo with all them pen-ti-gones ain't too dissimilar from them ones with all the heck-si-gones. - Bubbah Taylor
4
 
@tehinternetsismadeofcatz yeah, you can have an L-system that generates a tree, but a tree isn't an L-system
@Rainbolt starred for golfed english that's wasteful
 
I broke out Notepad for that one.
 
7:46 PM
Daaaaaaaaayuuuum
 
i can just hear it now, pen-tah-gawns
 
nono it's pen-tea-gawns
 
ah
 
Yea, I've heard it said that exact way several times. Makes me cringe.
 
is it bad that I read that in spongebob's voice?
 
7:47 PM
Trust me. My dad's a rancher. I know this stuff
 
@Rainbolt ranchers use "dissimilar"?
 
yes
 
I've also had 85% of my arm inside of a cow's vagina to save a calf that would have otherwise died, so I ain't kidding 'bout my qualifacations.
Now you guys know why I became a developer :)
 
Because the cow said no when you proposed? :p
 
When every morning starts with hot breakfast, every weekend with cattle, and every holiday with hunting trips, you develop a strong aversion to breakfast, hunting, and outdoors in general.
 
7:51 PM
The arbitrary edge count of Voronoi diagrams creates an interesting mechanic for cellular automata as it creates the need to dynamically adjust the rule to the neighbor count, which can either be done by slicing or a different method entirely.

---

Them Vorneys have a bad landlord.
 
Hmm. I wouldn't say I have a strong aversion to breakfast. I have a strong aversion to waking up during regular breakfast hours, though.
 
The smell of eggs actually makes me nauseous
 
So I always sleep until the very latest I can while still having time to shower/etc before work.
I mean the very latest. Every day. It's lovely.
I'm surprised my snooze button still works.
 
Years ago I slept into my work shift, and I've never used the snooze button since.
 
Things I hate: whispering can be heard from behind the stage as the presenter has trouble fitting the list through the door
 
7:54 PM
@cjfaure I..... have no idea what that means.
 
:17014224 aaaaand it's gone
 
Oh that's dirty
 
:D
Shoulda waited a couple minutes....
 
@Geobits That ... isn't a question. But thanks for sharing!
(if you get this reference, please email me)
 
@MartinBüttner the animation you asked about while I was gone, I just output them all as png and opened the whole folder as a layered image in GIMP. Then just save as GIF
Haven't got round to looking at imagemagick yet
 
7:59 PM
I just repcapped, and apparently it's the first time here :D
 
nice one
 
@Geobits yay
@Geobits isn't it weird to think that we joined at the same time? xD
 
I dunno, hadn't given it much thought. I think a lot of people joined around then.
 
@Geobits you have 2x my reputation and I've capped for 3 days in a row now
weird :P
I should probably ask questions. :/
 
8:20 PM
Questions aren't as easy as answers (for me at least). I've gotten 10+ votes for all of mine, though, so that's not bad. Still, less than a quarter of my rep is from Qs.
 
this seems worth a cross post... commented golfed fibonacci calculator in marbelous:
# calculates the nth fibonacci number, recursively
I0 I0 I0 .. # three copies of I0, call them A B C
-- S0 =0 O0 # decrement A, hold B for sync, return C if it's 0
S0 -- -- .. # hold A for sync, decrement B, decrement C
-- MB =0 ++ # decrement A, recurse with B, increment (then return) C if it's 0
MB .. S0 O0 # recurse with A, do nothing with B, release the sync if C made it this far
\\ O0 \/ .. # add A to B and return it, trash C
 
8:36 PM
@githubphagocyte are you still working on tweetable submissions?
 
I will be
At the moment I'm working on an output checker
 
I'm going to create a rainbow version of Marbelous called Favulous
 
for the alphabet tree question
 
@githubphagocyte kk... I'm currently giving the buddhabrot a go
although I'm in two minds about posting a fifth answer :D
 
Excellent!
Well I'll definitely be posting a 5th answer once I get this output checker done
They are all very distinct - we both put extra afterthoughts into the same answer - only creating a new answer for genuinely new things, so I think that's fine
 
8:39 PM
does anyone know if/when we get out of beta?
 
Sparr it's when
 
@Sparr not any time soon
 
You guys believe the encouraging stuff Grace Note posts? We aren't guaranteed to get out of beta ever. It's still an "if".
Errr... on second thought, I don't recall her ever guaranteeing our release in the first place.
 
What do we need to move closer?
 
before we get out of beta I want to hoard rep
>:D
 
8:43 PM
@githubphagocyte Grace basically said "Don't worry about it. You'll get out when you get out."
 
Currently we don't even have a trusted user for post-beta privileges
 
how much rep is that?
 
we'll get there :)
 
Well there's a target... :)
 
8:44 PM
Howard as 18 something I think
 
A friend going to defcon wants to pimp Marbelous because she finds it fascinating. If it gets any attention, codegolf.se is going to get attention.
 
...wow, I never thought Marbelous would ever impact anything
 
my boss at defcon is yelling at me to fix his broken unit tests :/
*who will be at
 
what's a defcon?
 
It's an emergency status
 
8:47 PM
pretty sure in this context, we mean the hacker-conference
 
ah so it's like where hackers go when the nsa tracking alarm goes off o:
 
I'm making that into a comic
time to put my epic art skills to good use
 
@githubphagocyte IT WORKS!
 
8:49 PM
???
 
well that's rare
 
Your next tweetable image? Or marbelous?
 
Marbelous works for nobody.
 
@cjfaure do you want to be credited in the README?
 
@MartinBüttner the buddabrot?
 
8:50 PM
@githubphagocyte the latter
 
@Sparr as "originator/dumbbell" xD
 
I can cross that one off my list then... :)
 
Reading about DEFCON reminded me of that time that my friends and I played a 2 v 2 game of Halo 2 in the back of two moving cars. We made it ten miles without disconnecting.
 
continues to not play Halo 2
 
We also disassembled our rock band drums and hooked it up to a real drum set that never really worked because the vibrations triggered the buttons hundreds of time
And we built a trebuchet (or two)
 
8:52 PM
Trebuchet's are no fun unless you have two...
 
i'm so jelly
;o;
 
@githubphagocyte and I've still got some space in two functions
 
@MartinBüttner is it monochrome?
sneak preview??
 
We made a potato gun and put ten solo cups inside of it and a fence post on top of that and it launched the fence post over .3 miles
It used axe deoderant as the propellant
 
@Rainbolt !!!
 
8:54 PM
Was about to ask...
 
err... maybe propellant isnt the word
 
"combustible thingy inside of PVC tubes that lights on fire real gud"
 
Do you want a job at nasa
because that's how you get a job at nasa
National Axe Sniffers Association
 
It has a downfall
You can only light Axe deoderant on fire a few times before the tubes get sticky
Then the thingy that sends a spark from point A to point B gets sticky and it stops lighting
 
8:56 PM
I'm just sitting here chuckling now, lol
 
@githubphagocyte currently, pretty much
 
Oh we fired a solo cup full of paintballs at a table and broke the table. We have it on video somewhere
I need to find that...
 
@Rainbolt You also broke the paintball. Nobody cares for paintballs. :c
At the local paintball range, it's a bit of a tradition to set up paintball fights with your enemies, then freeze the paintballs before the match. Nasty stuff.
 
I heard about that from the rednecks.
 
00:00 - 21:0021:00 - 00:00

« first day (1286 days earlier)      last day (3565 days later) »