« first day (1569 days earlier)      last day (3276 days later) » 

12:01 AM
@orlp are you aware that N is only an upper bound? does that simplify things?
 
Saturn at n=500 :)
 
that's impressive
how long did that take?
 
try it on an old Starfox screenshot
 
Didn't time, but around 10-15 min.
 
that's not too bad
so did the speed optimisation work? (the one you mentioned earlier)
 
12:07 AM
Yea, I sped it up significantly, considering I'm still doing a naive nearest neighbor scoring.
 
@EricTressler That's not a bad idea, but I'm gonna wait for yoshi to run first ;)
 
i tried to find a screenshot of something like that with no textures at all
 
Oh, crap, he's done. that was fast.
 
maybe one of the old wing commander games
no, those show a cockpit. I can't come up with anything better than starfox off the top of my head
 
12:09 AM
yoshi, n=100
 
I'm really looking forward to the full post :)
 
Yea, I have to get the time to write it up and stuff, been kinda busy today.
The waterpark was fun, though :D
 
i like watching videos of waterpark mishaps on youtube
 
s/waterpark//
 
heh
that, too
schadenfreude is alive and well on the internet
 
12:23 AM
n=500, just for you, @Eric
I think I need some work on large flat areas.
 
Thanks. That didn't turn out how I expected, but I didn't even read the problem you're solving
 
"Turn this image into voronoi diagram with N cells"
 
oh. well, i guess my original guess was right
so you randomly choose n points, perturb them so they're spread out, make the cells, average the color over each cell, and redraw?
 
I should average over each cell. Right now I'm just using the color from the point in the original image.
 
actually, it just looks like you're taking the color at the center
yeah
I can tell, because the flat areas in the image above are all identically colored
 
12:29 AM
@Geobits wouldn't something like averaging the colour over the 5x5 neighbourhood be fairly cheap and improve results considerably?
 
Most likely. I use the same method to score and draw right now, so it makes it much faster to not do that while scoring. Might separate them out and retouch it a bit after finding points.
 
it's still cool. I'll read your placement algorithm when you make your post
since that's the only really interesting part of the problem, to me
 
I wish I could say it was a more interesting algorithm. It's pretty naive, just uses a lot of iterations.
 
@EricTressler it is supposed to be the core of the challenge after all :P
 
Seems to work all right, though.
I thought the core was posting pretty pictures in chat. Seriously, I think I've been doing this wrong.
 
12:37 AM
:D
 
12:48 AM
oh, we've got 3,333 questions
 
Well
when you consider that we have 110100000101_2 questions, that seems less impressive
 
1:00 AM
My sister got some new goldfish today. They are named Kaede and Wilmington.
 
is that a reference to something
 
I honestly do not know.
 
1053 points
that's starting to look good :P
@MartinBüttner ^
 
Are they non-random points?
 
it involves random sampling
but with heuristics
 
1:21 AM
I want to make something like that, but I can't even figure out the basic setup that's using. I want to make a local copy of it so i can rip the guts out and make my own variant
because i think that is a pretty cool demo.
but i go to the source on github, and it's a bunch of .hx files
and java. :/
 
1:35 AM
1453 cells
 
@EricTressler Ah yeah that's an amazing simulation... I'd actually like to do a PhD in fluid animation
 
@MartinBüttner they're starting to look real smooth :)
 
I've been trying to find javascript GPU particle examples, but for some reason none of them are running properly here
 
the longest time spent is actually computing average colors =/
 
but I looked at some of the math behind that demo, and it's pretty complex. I think it does a great job with turbulence and viscosity, though
 
1:51 AM
@orlp Devon approves of your version of his portrait :P
 
2:17 AM
It's so cool seeing people's Voronoi versions of my girlfriend's painting! :D
 
Oh boy, I have a lot of catching up to do :P
 
2:31 AM
@Geobits: Your son is famous!
 
2:44 AM
My river photo is excluded :(
 
@Calvin'sHobbies: Doesn't mean you can't do it. If I recall, the challenge says you can try it on others.
 
@AlexA. I just meant that it isn't one of the defaults even though it has been in a number of image challenges. I'm not that bent out of shape about it :P
@Doorknob (and everyone else) Has there ever been discussion about adding new posts to the main page to the chat feeds?
I mean like how meta and sandbox posts are autofed to chat
We don't get that many questions and it seems useful.
 
I second this ^
 
@MartinBüttner What does the other mod think?
 
3:01 AM
@Calvin'sHobbies: Your honeycomb challenge has been up less than 30 minutes and it already has two answers. :)
 
@AlexA. Good gracious!
 
952 cells
 
@orlp That's legit! Nice work!
 
3:25 AM
@AlexA. On second thought the feeds take forever...
 
What do you mean?
 
My question hasn't been auto posted yet
 
Oh yeah. How long do they typically take?
 
is there a difference between the geometric average of L*a*b* color coords and the 1-mean clustering of these coords?
 
Not sure. I've been looking for a mother meta post that mentions it
(That's not for you orlp :P)
 
3:28 AM
Haha
 
hrm
I need a KDTree that can handle updating data
 
@Calvin'sHobbies What's a "mother meta post"?
 
I need a range tree but scipy.spatial only has KD :(
 
@AlexA. From meta, not meta
 
Oh! I always forget about that one.
 
3:31 AM
1600 cells
 
@Sp3000 Let me play you a song on the world's smallest violin.
 
2
Q: Do we want new challenges auto posted in chat?

Calvin's HobbiesOur chatroom The Nineteenth Byte currently has 3 message feeds. For example, when there is a new meta post, it is automatically posted in chat. Do we want to have new questions from the main page be a new feed?

 
@Calvin'sHobbies: Guess we have our answer. About 20 minutes.
 
hmm
 
@Sp3000: Why don't you write your own?
 
3:32 AM
the escher one is really hard to express nicely
 
Your hedgehog looks great, @orlp.
 
fun fact, if you use 8 bit color that's a ~4.8kb compressed image of the hedgehog :P
 
:O
 
1600 points * 2 bytes for position * 1 byte for color
 
 
1 hour later…
4:54 AM
anyone around?
 
yes
 
I get a single white point on my screen, nothing moves
and i have a pretty decent graphics card. I can't figure out why these javascript particle demos aren't working; i tried firefox and chrome, both
 
i see same as you
 
for me it 'works'
 
okay. well, thanks for checking. it's supposed to be a bunch of particles doing something, but... who knows
 
5:04 AM
as in the cursor spawns dots
but they dont move or something
 
oh. that happened to me with chrome, orlp. I think maybe the demo is either broken or making some weird assumptions
i'm trying to learn to use the GPU in webgl, because I have some graphics-intensive demos that I think could be like 100-1000x faster if I would just learn this
 
3500 cells
(with markers to show how good the sampling is :P)
 
looks pretty good
not very ferocious-looking
 
5:37 AM
I like how the bear looks even fuzzier
 
in the "thumbnail" it looks like a stuffed teddy bear
 
 
1 hour later…
6:48 AM
0
A: Sandbox for Proposed Challenges

da capo aria(Currently unnamed) code-golf Introduction Arithmetic Gaol is a special facility that incarcerates positive integers. However, recently, the positive integers have been trying to escape. Therefore the wardens have decided to eliminate some of the positive integers to send a message to the othe...

 
7:35 AM
Say that 5 times fast
 
My money's on another mod-chain being the winner :D
 
the "any other string is 0" requirement makes this tougher than previous recognition challenges
 
till then, I am posting the most trivial solution
 
Oh anything else needs to give 0. Damn :P
 
basically, any code has to contain as much information as the list of strings, since they are determined by the code
this might turn into a yawn compression challenge
 
7:38 AM
Hope not :/
 
@Calvin'sHobbies I'm not sure this counts as kolmogorov-complexity -- it takes input
 
True but you have to encode the words
 
btw @xnor very nice honeycomb
 
thanks!
 
I was wondering if it was possible to shorten max(7-i,i-24,0) with some sort of insane bitwise method, but I'm not sure how to easily find such a solution
 
7:41 AM
there's so many degrees of freedom available here
i can be shifted, and everything can be shifted by a constant
 
Would you guys prefer if it was If any other string is input, anythings besides 1-9 should be output? (could be non-numeric, can be diff across inputs)
Still not terribly better perhaps
 
either way, I think answers will need to show that no other input can create a collision
 
Does that make a difference? The only thing I can think of is that some languages give -1 for .find()
 
You're right, doesn't really help.
I think I'll just remove the 0 thing. Hang on
 
ok, mod chains go go go!
 
7:57 AM
Ok
 
are you talking about mod chaining for the 9 similar words challenge ?
 
yes
 
its going to be really hard to check that any other possible word does not give the same result
 
CH changed it to only caring about the 9 given words
it can do anything on other strings
 
ohhh
 
8:04 AM
Mod chain gogogo indeed :D
 
maybe there's a golf or fastest alg challenge to be made about mod chains
 
Input: max base, max mod, max number of mods
 
11 bytes
still golfing
 
8 bytes
 
wow
sum(map(ord,input()))%x%10?
 
8:10 AM
11
 
Yes, only difference is that in Pyth I can do ord(input()) directly.
 
how do you do that?
 
what is x here ?
 
some number to be found by brute force search that makes the outputs distinct
 
haha lol
so 11 works
except it gives 11 for something instead of 9, all other are fine
 
8:13 AM
I'm almost done with my image code
just putting the final touches here and there and doing the rendering
 
Must... be.. as.. good... as... orlp
 
I guess I can let the cat out of the bag
 
@Jakube you are modding with 8109 ?
 
Yes
 
what is e%
 
8:15 AM
I'm using Poisson weighted disc sampling, and averaging colors in L*a*b* space.
the weights are chosen by a combination of two heuristics: edge detection and local entropy
 
two different commands. % 8109 does mod 8109, e gives the last digit (mod 10)
 
didn't know that about e, that's perfect here
how does C work a string?
does it treat it as base 256?
 
it's Python's ord
 
weird. I get different result
 
@orlp Are you doing anything fancy for edge detection? I'm lazy so I'm using the poor man's edge detect over here :P
 
8:18 AM
@orlp but Python ord doesn't work on strings, right?
 
@xnor it only works on strings
@Sp3000 I'm using Sobel edge detection
 
ord('abc') gives me an error?
 
@xnor it only works on single characters
 
Ah, that makes sense :) maybe if I get time...
 
oh wait
C
 
8:20 AM
@xnor It does map(ord, input()) and interprets the list as base 256.
 
ok, makes sense
 
@Sp3000 and entropy + edge detection gives you this sort of sampling density:
 
needs some work :P
althought mine is more than 1000 cells
 
Hm... I think I need to work on the edges
 
8:23 AM
on toilet right now, can like a 1000 cell one in a bit to compare
 
Yeah I still need to do some pruning :P Mine still puts a bunch in the black space of the planet/nebula pics currently
Hmm yours looks nice and even with the close points
 
@Sp3000 poisson disk sampling
already told you :P
 
It doesn't mean anything to me if I don't know what it is :P (I'll look it up later)
 
@Sp3000 how did you render all your images? by hand?
 
With the snippet
 
8:31 AM
yes, but I mean by hand copy pasting
 
Oh right, yes
 
as promised, the 1000 cell bear
 
At least you have an eye :P
 
and ears :P
 
@orlp Very nice. I'm eager to see your answer. What's the language?
 
8:35 AM
@Calvin'sHobbies python
 
I'd like to see the bear at 100 to compare to martins
 
one sec
@Calvin'sHobbies with or without dots?
 
without I guess
But it's not a big deal, I can wait for the answer
 
it's not great
but I'd say better than martins
 
It's easy to be better than Martin's because the color's easy to mess up :P
 
8:39 AM
colours are certainly more representative ;)
 
people need to learn you can't average RGB values :P
 
Martin doesn't even average, he just takes the colour
 
ah
 
At what N could a stranger to the contest tell it was a bear :P
 
300 maybe?
 
8:53 AM
5000 cell hedgehog
 
Oi 5000 is cheating :P
 
show me your 5000 hedgehog :P
 
k, I'll try running it while I do some housework (was in the middle of tweaking parameters so I hope this doesn't turn out too bad :P)
MemoryError <--- :/ I need to clean up my disk space
 
memory errors? :P
what are you doing
 
What if this is input with N = 20?
 
9:01 AM
lol
 
More like why do I only have 1GB of disk space left
 
pom
 
sec, coming in
not too great :P
at best it keeps the colors approximately the same
 
@Calvin'sHobbies Will try in a bit but I'm not sure if the black dots might interfere. Will see :)
 
n = 500
5000 cells
 
9:09 AM
It turned into a person!
 
Close enough :P I just figured out why I have a bias against the left edge though, fixing.
 
funny, yours is much much better at this one
 
Even funnier - I just realised I had my sampling backwards :P
Oops
 
oops, my yoshi is messed up
 
Wait nvm it was right
How's yours for Escher? I'm still finding that the hardest
 
9:18 AM
Ooh, how about this, N = 7 (you guys can stop if you're sick of posting images)
 
Nah this is good fun :D
Unfortunately mine take a lot longer to run than orlp's though
 
Actually the concave shapes won't ever work will they
 
mine is <1 sec for small sizes, <5 sec for 5000 cells
 
Mine is dependent on number of cells, but more importantly the number of sample pixels to k-means
^^ n = 500 is done
 
also better than mine
mine doesn't like straight edges it seems
 
9:21 AM
I think mine are better at paintings/flat colours than photos
 
and that's a direct consequence of circle sampling
 
Yeah this is pretty impossible
 
How about this (N around 32?)
Or N much larger
 
(gimme a sec, running something else atm - having only 5 colours might make this interesting though)
32's a bit too low I think, the colours get really messed up
Oh I know what I did wrong now - random.triangular defaults to having the mode at the midpoint, so I've been sampling from points which are neither extreme edge points nor points which are very similar to surrounding colours locally
 
10:04 AM
@Sp3000 still pending?
 
Doing a bit of tweaking and testing. Basically N = 100 was practically unrecognisable, and 500 was still quite messy
Mine's not great when you have similar colours in different locations, unfortunately :(
 
Haha, yikes :P
So much black on the edges but not on the other borders
 
That's because the centroids are naturally closer to the centre of the image, so any colours on the outskirts tend to be a bit larger
 
holy finally
figured out this stupid bug =/
 
Oh?
 
10:22 AM
 
5k is still cheating :D
 
But where's the black background?
 
It's the "challenge" version below the pics
Yoshi was originally on a white background, but was changed because it makes the belly significantly harder
 
10:45 AM
@orlp Still haven't done the getting-rid-of-useless-cells thing yet and I had to drop the sample points because of MemoryErrors, but anyway for comparison ^^
 
11:06 AM
@sirpercival your results look quite nice :) ... you'd probably get some more attention if you included an explanation of the algorithm and more thumbnails in the post itself.
 
11:17 AM
he's not doing it for the fame or attention
 
I'd still be interested how it works :P
 
oh you paparazzis
 
In a popularity contest I'm at least as swayed by an interesting explanation as I am by the output
 
(I agree that plenty of output thumbnails that don't require going off page is important too)
Especially once there are dozens of answers to scroll through...
 
11:22 AM
btw should we also give lots of the text output so people can play around with it?
(I haven't done that yet because I'm still fiddling)
 
Even just one or two text output examples will make for a lot of scrolling...
 
I'm pastebinning mine :P
 
Yeah that's one thing I would prefer to see linked off site
 
11:40 AM
good morning, all
@MartinBüttner i didn't do either of those things because I was headed directly bed afterwards. :D I'll put more stuff in right now
 
no worries :)
 
should i include all 36 thumbnails i have (not including the original images)?
or is that overkill?
 
if you use the small ones, I don't see a problem
 
ok then, that's what i'll do
 
11:53 AM
added a voronoi diagram to the test gallery
@orlp can you actually specify the number of cells now?
(also yay for Poisson disc sampling... that's still on the list for Random Golf of the Day)
 
The voronoi has a bit of a white border on the right and bottom
 
@MartinBüttner yes
@MartinBüttner I did some funky math
 
nice :)
@Sp3000 oh crap... wait
 
5000 cells, but def. my favourite :P
 
oh i forgot to do the white yoshi
 
11:55 AM
@MartinBüttner is there an easier way to render everything than to copy paste and screenshot all the time? =/
 
I don't know... writing your own renderer? :/
 
@orlp use IDL with its native graphics output :D
 
can you save the svg and then rasterise it locally?
 
@MartinBüttner I can't right click to save
it's not an image
 
oh okay... I don't know how browsers handle embedded svg
 
11:58 AM
@MartinBüttner basically I got the math right that if I linearly increase my 'parameter' it linearly increases the number of cells made (within a few percent)
so I just do a 'calibration' run before generating images :P
 

« first day (1569 days earlier)      last day (3276 days later) »