« first day (1283 days earlier)      last day (3567 days later) » 

6:00 PM
I committed it to github via fedora
and I copied the code from the fix you posted earlier
 
As I said, if I did I don't remember doing it. Unless it's included in winetricks or a similar package and I did without knowing specifically that I did.
 
Ray
OKay, forget about the unity things. Have you fix the select.poll() problem, I may work for it.
 
Hmmm...I may have to include a windows version
give me a sec to fix it up for windows
 
6:15 PM
this looks promising for the select.pol stackoverflow.com/questions/375427/…
select.poll*
 
if interruptingcow works for you then the polling might be optional
 
it looks like the queue answer has a timeout feature
 
interruptingcow does not work on windows
select.poll doesn't work on windows
queuing works, but the bot has to catch errors
For some reason, when I implemented the queue, End of file errors were thrown
 
oh
 
(when I hadn't outputted yet, and the user tried to get the output)
 
6:18 PM
@Geobits I'll wait two months and then rake in a Necromancer for it :P
 
@NathanMerrill have a maze right now with a 2x2 room in it on the left wall. did you say you knew how to fix that bug?
 
...oh I never fixed that
I know why...
 
Does anyone know why this:
import java.io.IOException;

public class Testan {

public static void main(String []args) {
ProcessBuilder processBuilder = new ProcessBuilder("./hello.py");
try {
Process process = processBuilder.start();
process.destroy();
} catch (IOException e) {
e.printStackTrace();
}
}
}
would throw this error?
%1 is not a valid Win32 application
When the hello.py program definitely runs fine when I run it myself
And is absolutely in the right place.
 
@overactor I am not sure if the environment variables work with Process
could you fully specify your python path?
 
Same error
 
6:27 PM
@overactor Why are you using forward slashes?
 
Ray
@NathanMerrill time.sleep(10).... Maybe we can set the time limit of the first round to 10 sec instead of doing this.
 
it won't care about the forward slashes, but I'd reckon you need to provide the path to python executable, and hello.py as an argument for that
 
it bugs me too Ray
 
I know it won't care, but that doesn't mean it's readable, and he's asking us to read it.
 
I haven't gotten around to fixing that
 
6:28 PM
which I think moop was saying but it might not have been quite clear
 
Backward slashes don't compile
 
Why not?
 
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
Invalid escape sequence (valid ones are \b \t \n \f \r \" \' \\ )
 
ProcessBuilder processBuilder = new ProcessBuilder("python .\\hello.py");
 
if I give an incorrect path, i get a different exception btw
 
Ray
6:30 PM
@NathanMerrill Are you working on this repo: github.com/thenameipicked/Pacman
 
@Rainbolt: java.io.IOException: Cannot run program "python .\hello.py": CreateProcess error=2, The system cannot find the file specified
 
looking at the docs, it wants command line args as a separate argument in the constructor
(it sounds like it's calling some dodgy program underneath, and thusly will be quoting each argument)
 
@overactor Are you using a jar or netbeans or what?
 
Ray
@NathanMerrill You don't apply the 500 turns limit yet, right ?
 
6:33 PM
@Rainbolt err..
 
Ah, I didn't do that either
bah, I thought I had the code tested and ready
 
Eclipse maybe? Or maybe you wrote some code in notepad and ran javac yourself?
 
This is the point where I point out that I don't QUITE know what I'm doing.
Yes
 
@overactor was there an error for new ProcessBuilder("python", "hello.py"); ??
 
@Rainbolt I finally got around to writing up a draft for the 3D (underwater) "sequel" to Wolf... would you mind having a look at it at some point? there are still a few things that need balancing, but I'd like to know what you think.
 
6:35 PM
sec
 
@MartinBüttner Sure I'll take a look at it sometime today
 
@Rainbolt yup: Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
that's for both new ProcessBuilder("python", "hello.py"); and new ProcessBuilder("python", "./hello.py");
 
@Rainbolt great, thanks :)
 
@overactor How are you coding? I'm trying to figure out how your project is structured
 
It's in eclipse
What I posted was all the code in the only class in the project
(Except for the first line with the package on it)
 
6:38 PM
Can you navigate to the root of your eclipse project folder on disk?
And tell me if you see hello.py?
 
yup
It's right there
 
Are you on a windows machine?
 
yeah
windows 7 64bit
 
Can you run cmd and then type PATH and press enter
Tell me if you see something like C:\Python27 or C:\Python3.X
 
Doesn't seem like it
I have Python 27 installed though
 
6:42 PM
When you install Python, you have the option to add it to your PATH. You may not have checked it, but thats ok
 
Reinstall?
 
nah
one sec
 
what is the first line of your hello.py ?
 
Is Python installed in C:\Python27?
 
@Moop #!/usr/bin/env python
@Rainbolt, it is.
 
6:44 PM
ok, that's just code for a unix version
 
Go to System Properties > Advanced System Settings > Environment Variables
Click the Path variable and then click Edit...
 
@Moop ooh
that makes sense, since that was Sparr's code
 
@overactor don't worry, it will still work
 
At the end of the string, add ;C:\Python27;
That will tell Windows where to find the command "python" when you ask for it
 
the PATH string?
 
6:45 PM
yes
When you run a command in Windows, it looks in all the places you have in your PATH variable. If it doesn't find it, it gives up.
 
Ray
@NathanMerrill I fixed(hopefully) the 10 second problem, and you changed the problem description......
 
Will this command do:
 
Ray, I just set it to 2 seconds
 
setx PATH "%PATH%;C:\Python27;"
?
 
I'm not clever with commands, but that looks fair
You'll know it worked if you run cmd and type python blahblahblah
or just python by itself
 
6:50 PM
works
 
Ok now try ProcessBuilder processBuilder = new ProcessBuilder("python hello.py");
 
@overactor @Rainbolt i still don't know if environment variables work with process
 
Ray
Nathan, I've send a pull request. You may have a look at it. It won't wait and just start, yet it give at most 10 secs for each player to prepare.
 
still get Caused by: java.io.IOException: CreateProcess error=193, %1 is not a valid Win32 application
oh
I'll try that @Rainbolt
java.io.IOException: Cannot run program "python hello.py": CreateProcess error=2, The system cannot find the file specified
 
I don't think you need the dot slash. dot slash just says "look in the current directory". You shouldn't need to tell someone to look where they already are. Can someone else confirm my thinking?
Ok last thing I want you to try
Close Eclipse. Then run Eclipse with administrative privileges
 
6:52 PM
I'd like to see a game where the information supplied up front is far too much to process but with no time delay, so the first few moves are blind and the movements of the bots gradually improves as they slot the information into a usable data structure
 
Eclipse may be unable to find the file because it has insufficient access to it
 
@Rainbolt, seems like a fair suggestion
 
check out the second section on processs
 
It literally saves the program in a string lol
Oh
 
ProcessBuilder pb = new ProcessBuilder("python","test1.py");
 
6:54 PM
then writes it to a file... then runs that file. I get it
 
I'll try that then
 
Ray
@NathanMerrill I've send a pull request. You may have a look at it. It won't wait and just start, yet it give at most 10 secs for each player to prepare. I'll work on my answer tomorrow. It's 3:00 am here.
 
ProcessBuilder has two constructors.
ProcessBuilder processBuilder = new ProcessBuilder("python hello.py");
is equivalent to
ProcessBuilder processBuilder = new ProcessBuilder("python", "hello.py");
right?
One is the entire command as a string, the other is a command with some args
 
I don't have any pull requests @Ray
 
It runs!
 
6:55 PM
Sweet!
 
only ProcessBuilder processBuilder = new ProcessBuilder("python", "hello.py"); though
 
Oh haha I guess moop is right then
 
ah, just got it
 
i think the first version with one string puts all the args in the first program (i.e. python)
the second version with multiple strings
 
Ray
My mistake.
 
6:57 PM
funnels the args into second program
 
Hmmm...for my next program, I may create a single program that will pipe to the controller and to the bots
 
@Moop Ah ok. So there isn't a program literally called "python hello.py" and it fails
 
Haha, it's working for my challenge too!
 
that may be significantly easier than doing it in the controller
 
How old are you @Ray?
 
Ray
7:01 PM
Maybe you don't need a single program, a separate thread is enough.
@Rainbolt 23
 
argh... forgot that I had to take The Doctor into consideration for the LOS...
 
Ray
What is "LOS" ?
 
I wish I still looked 18 when I was 23
 
Line of Sight
 
Ray
@Rainbolt The phote was taken when I was about 18...
 
7:04 PM
Oh haha. That explains a lot
 
Ray
Seems like it's time to update it.
 
@Sparr, could you edit the question and explain your wrapper a bit in the communicating with the controller part?
 
sure!
 
7:23 PM
@Geobits would you mind looking at this scenario visualmelon.onl/angels.txt (ignore the fact that doctor can't win either way)
do we have to consider smart angels, which are able to maneuver freely when we can't see them, or do we just treat that as death by the N angel?
 
> An Angel can attack if it can see you while not being seen by you or another Angel.
It's death by that Angel.
 
OK
thanks for clarifying
 
Also, your LOS isn't quite wide enough. It needs to also see the 45degree line.
 
ah, yeah, thanks
 
Ray
@Rainbolt I'm 23 now.
 
7:34 PM
@Ray Thanks. Now I can say that you are cute without feeling like a pedophile.
 
you flattered him speechless
 
He looks exactly the same honestly (from 18 to 23)
This meta post was modified 22 hours ago by Community, but I can't see the changes. Anyone know what happened?
 
@Rainbolt community bumps old posts without accepted answers every now and then
 
2
Q: Anomalous community user activity

GnomeOn the meta home page I noticed the community user is list as doing something, but cannot figure out what it is. There is nothing on the question or its timeline, but the recent activity is listed with the same timestamp.

 
Ray
Actually I said "Thanks". But here in China the network is ... interesting
 
7:51 PM
Oh I see. It bumps unanswered questions. But I'm not going to accept my own answer because it has zero votes and I don't even feel like it's the best answer.
 
The point is more to attract attention to it so other people might answer, not to attract the asker's attention.
 
@Geobits You shouldn't automatically disqualify the asker as a potential answerer.
Maybe I know more now than I did then
 
I'm not, really. I'm saying the point is to attract answers, not persuade you to accept one.
As soon as it has any upvoted answer, it won't be bumped again, whether or not it has an accepted one (IIRC).
 
@overactor edited your post to explain my wrapper
 
7:57 PM
I'm trying to write a diffusion limited aggregation answer to the tweetable art question. I can't work out if I'm doing something stupid with c++, or just something stupid in general with my algorithm. It works fine for some image sizes, but for images of side length 512 or 1024 it biases the drift of the particles strongly.
 
If I spend a few more years here, I feel like I will be familiar with the Stack Exchange code base despite having never even seen it
 
8:11 PM
I wrote a Context Free script to render the Sierpinski triangle and I can't figure out why it works...?
startshape wow

shape wow {
	TRIANGLE []
	TRIANGLE [flip 180 s 0.5 b 1]
	wow [s 0.5 y 0.29]
	wow [s 0.5 x 0.249 y -0.144]
	wow [s 0.5 x -0.249 y -0.144]
}
so many magic numbers in there...and they don't seem very logical
and yet
 
I don't know Context Free
 
Is the 0.5 a scaling factor?
 
@githubphagocyte yup
 
that much makes sense, each smaller triangle is half the height of the next one up
 
8:13 PM
@githubphagocyte yeah, what gets me is the x and y displacing in the recursive calls
0.29, 0.249, and 0.144
why do those numbers exist
 
Have you tried selectively taking bits of code out and seeing if it still works?
 
@githubphagocyte i wrote it xD
 
Still...
 
And what happens if you change a number by a small bit...?
 
i just tweaked the numbers until it rendered the triangle correctly, and they don't make sense to me
@Geobits one sec ;3
 
8:14 PM
I wrote the c++ code for my DLA attempt and I still have no idea why it introduces bias but only for certain side lengths...
 
startshape wow

shape wow {
	TRIANGLE []
	TRIANGLE [flip 180 s 0.5 b 1]
	wow [s 0.5 y 0.27]
	wow [s 0.5 x 0.22 y -0.1]
	wow [s 0.5 x -0.22 y -0.1]
}
 
It would probably be easier to see what's going on if you only change one at a time.
 
@Geobits meh :P
startshape wow

shape wow {
	TRIANGLE []
	TRIANGLE [flip 180 s 0.5 b 1]
	wow [s 0.5 y 0.29]
	wow [s 0.5 x 0.249 y -0.1]
	wow [s 0.5 x -0.249 y -0.144]
}
 
If you replace your original 0.249s with 0.25s does that work?
 
@githubphagocyte it's off slightly
that's what the code above renders ^^;
 
8:17 PM
If you leave out the flip what happens?
 
It might not be "right", but it looks nice in 3D :D
 
@Geobits ;D
@githubphagocyte you've just made a really pretty thing :)
startshape wow

shape wow {
	TRIANGLE []
	TRIANGLE [s 0.5 b 1]
	wow [s 0.5 y 0.29]
	wow [s 0.5 x 0.249 y -0.144]
	wow [s 0.5 x -0.249 y -0.144]
}
they're hexagons!
 
Startshapes are meant to flyyyyyy
 
WAIT
 
8:21 PM
I'm guessing as long as you have the factor of 0.5 in there it will give you the general feel, and the rest is just aligning
 
I just changed the flip to a weird angle
 
It looks like they're just translation values...
 
startshape wow

shape wow {
	TRIANGLE []
	TRIANGLE [flip 200 s 0.5 b 1]
	wow [s 0.5 y 0.29]
	wow [s 0.5 x 0.249 y -0.144]
	wow [s 0.5 x -0.249 y -0.144]
}
now they're cubes :D
 
Now animate it with flip values in a loop between 0-360.
 
0
A: Proposed Question Sandbox - Mark XIV

xnorAnt on a Cube code-golf An ant walks along the edges (not faces) of a wireframe cube. Each time it encounters a vertex, the two other edges coming off from it make a fork, and its choose which way to continue -- left or right. These direction are relative to the ant, who is facing the vertex an...

 
8:22 PM
@Geobits ;3
 
Yes. If so can you just leave one of them untranslated and only move the other 2? Might be easier to see what the values need to be then
 
does anyone need an ASCII venn diagram generator?
0
A: Golf a Venn Diagram generator

Martin BüttnerRuby, 654 bytes This was fun. I used ASCII. I wasn't able to test every possible combination yet, so if you find a glitchy test case, please let me know. require'set' u=(1..gets.to_i).to_set a,b,c=[1,2,3].map{gets.split.map(&:to_i).to_set} puts (u-a-b-c).to_a*' ' m,M,n,N,o,O,p,P,q,Q,r,R,s,S=[a-...

 
@MartinBüttner that's a thing of beauty
 
@cjfaure CFA is amazing, isn't it? :)
 
@MartinBüttner yeah :D
 
8:29 PM
hm? what did I miss?
 
I asked you a question and then deleted it
 
0
A: Proposed Question Sandbox - Mark XIV

jt0ddFind a multiple of 42 that is spelled with all of the characters that make up the word "forty-two". Rules: All of the characters in "forty-two" must be included at least once. Dashes count as characters, and each character must be used cumulatively (dog doesn't contain all of the characters th...

 
@Geobits it's rendering now
it'll be a massive 12 second mov video though
not a nice gif
I used this code;
startshape wowx

shape wowx {
  loop i = 360 [time 1 1]
    wow (i) []
}

shape wow (angle) {
	TRIANGLE []
	TRIANGLE [flip angle s 0.5 b 1]
	wow (angle) [s 0.5 y 0.29]
	wow (angle) [s 0.5 x 0.249 y -0.144]
	wow (angle) [s 0.5 x -0.249 y -0.144]
}
not sure whether it'll work, I've never used the animation feature before
just hit 50%
it's done and it worked
just gimme a sec, converting to a nice gif for ya
i hate how bad file format support is on Virtualdub
i just converted the mov to msmpeg to mpeg-1
 
9:01 PM
I don't have supermod powers. I can't star removed posts!
 
Very sneaky
 
Oh?
 
Pee
 
Cue
 
I'm confused
 
9:03 PM
Are?
 
@overactor And as thus shall you forever be known.
 
I shall changes my username immediately.
 
Make sure you check the box that says "Change for all of my Stack Exchange accounts"
Else you'll end up in "lembo"
 
on second thought
I think it would just make everyone confused
And with everyone's username being confused
 
No, it would make you confused.
 
9:06 PM
well, that will definitely spread confusion
 
Yea, because now we can't use the word you
 
me?
 
I'm okay with that. I live in the south, so it's within my rights to use ya instead.
or yuh, but I'm not that southern.
 
♫I want confused, I wanted confused so baaaaaad.♫
 
Okay, the animation is done but it's a bit shaky
user image
5
 
9:08 PM
fabulous
 
Nicely done.
 
very smooth
 
why did i just spend like 20 minutes doing that?! xD
thanks guys ;3
 
@cjfaure Because this is the site to spend enormous amounts of effort accomplishing things that don't usually matter?
 
@Rainbolt oh, right ^^'
 
9:10 PM
Damn, ninja'd
 
I think you can scratch usually there, @Rainbolt
 
in codegolf's defence, I have a much better idea of C# operator precedence now
 
@overactor Well, in the process of learning how to compile 90 entries in 20 languages, I learned to how manipulate environment variables in Windows, how to debug some things in a few languages, the maximum command length in Windows, and a bunch of other things. Some of it is bound to be useful later.
 
I just made a new version, yet to convert it
 
@Rainbolt good point, but those are things you learn along the way
rather than what you are trying to accomplish
 
9:15 PM
The journey is the goal. </pithyzen>
 
Good point. The end result was indeed useless lol.
I have 90 chunks of code that print good or evil. Hurray!
 
@Geobits that's a nice motto for PPCG
 
Okay so when you rotate a shape, CFA doesn't stop rendering...
 
@overactor I spent my weekend creating artworks to put up on the wall in my living room... that matters, surely?
 
with a modified sierpinski triangle,
it did this...
 
9:17 PM
wat
 
cool
 
i'm making that into an animation now
 
okay, I think I golfed this Venn diagram enough for today... I should probably eat.
 
Wow you turned a fractal into what looks like a wall that goes off into the distance
I wonder if this has real use in rendering terrain
 
I think that's called a Sierpinski Fortress.
(if not it should be)
 
9:20 PM
Oh pffft I feel dumb. I actually Googled "Sierpinski Fortress"
2
 
@Rainbolt The problem with rendering Terrain is, usually you want to be able to move the camera. And very often you also need a physical representation.
 
Fractal terrain in general works fine, though.
 
If you could bend the angle of the triangle, you could make it appear as though it was moving
 
The generic diamond-square algorithm is pretty common.
 
@Geobits yeah I know... but that's not using the fractal features to suggest perspective
 
9:22 PM
I'm not a big fan of the diamond-square, it's hard to generate in chunks that align well
 
Right, I get that.
 
Exactly my point.
 
@cjfaure True, but it can be useful if you need something fast that you can then modify for finer detail.
 
@Geobits yeah, and you can always blur the edges
 
Now I understand why some people find my speech abrasive. I need to start with "Right, blah..." or "True, but..." or "Yeah, and..."
Basically, agree and then make a point
 
9:24 PM
I'm coding my Traders controller. I have 30 points to divvy up in 5 unique containers. If I put 1 point in a random container 30 times, most of the time, the containers will have 6 points
 
Sure, but that's not going to earn you any respect ;)
 
...is there a better way to split up numbers?/
oh!
I know how to do it
 
@VisualMelon Of course, but obviously the world is round
 
@Rainbolt Yea, that's management 101 ;)
 
Naturally, but locally it's always worked to treat it as flat
 
9:26 PM
True, but how local is local?
 
Aww come on! That's a question! Of course I can't agree with that!
 
I played some trivia game last night and now the word respect has prompted Aretha Franklin to start screaming in my head
 
No doubt, I'm sorry
 
Counter it with Rodney Dangerfield.
Or better, a different Aretha Franklin song covered by Cake.
TIL: I Will Survive was not originally done by Aretha Franklin. Hmm.
There goes my disco cred.
 
9:44 PM
i changed my avatar to my sierpinski paint splash thing :D
 
Only just realised that didn't read "Aretha Franklin song 'Cover by Cake' "
 
i'm totally rebranding myself today, lol
 
those new Tweetable Maths submissions by Manuel Kasten are beautiful!
 
Just been to have a look. They're both fantastic.
 
I was already starting to be disappointed that not a single submission came in today despite >1500 more views ^^
 
9:58 PM
I'm still working on mine. It's behaviour has me baffled still.
I'm currently putting in deliberate bias in the opposite direction to try and measure the unidentified bias
 
@githubphagocyte your new example question on CG is great! that got my 5th upvote :)
 
Thanks! I posted it as a real question during the private beta and it got an answer that I really wasn't expecting, and lots of upvotes, so I thought I'd add it in the new proposal too. If you didn't see the real question I think it's still available in the data dumps. The answer gave diffraction images for holes, slits, interference from two slits, and it sounded like it would work for the poisson spot experiment too (which I hadn't even heard of until the comments on that answer...)
I only asked the question to make up the numbers initially - I had no idea there was actually a way of getting diffraction and interference from ray tracing
 
I've heard of photon based rendering techniques before
 
I was imagining this would need a wave based approach but apparently not
 
woo!
my first real submission
 
10:12 PM
@NathanMerrill for which question?
Ah the pacman
I see it now
How many entries do you need before the first run?
 
I might do it later today
 
10:29 PM
I hope pacman isn't another dogfight :(
 
...lots of specs, a few entries?
 
yeah
 
I'm not sure PPCG is ready for those really involved KotHs yet... many people are interested in submitting a simple to intermediate entry but only few people are really interested in analysing and understanding the game and writing a sophisticated bot for it... and the more complex challenges do have an entry barrier that excludes the former type almost completely
 
I guess if we keep the quality of KotHs up we can attract those people in the long run, but so far I suppose we only have a handful
 
10:39 PM
Hopefully my trader program will perform better
it has a shorter post, and seems to be easier to program in
 
Introducing an infinitesimal bias deliberately to my DLA code completely cancels out the large unidentified bias. Not only does this confuse me even more, but introducing an infinitesimal bias costs characters...
 
@NathanMerrill is there a way to figure out a ghost's personality in your KotH?
 
nope
except by watching it
...its not really that useful because of player ghosts
 
10:54 PM
well if you'd know whether it's Inky, Blinky, Pinky, Clyde or a Player that would be enough
not knowing it makes it actually a lot less interesting, because you can't even keep track of them once you figure them out, and with the limited field of view it's going to be hard to tell anyway.
but well, you can't change the spec now
 
yeah, I should have made my specs more...responsive
If I could do it over, I would have tested it on linux and windows
fixed my input problems
and have a limited view, but allow the player to request squares
after they request a certain square, they could get more info about it
 
It's hard to know where to draw the boundaries in a koth. Full information of the arena could put people off even trying to process it, but restricted information narrows the possibilities. Somewhere in the middle is interesting, but where...
 
I'm currently in favor of all information, as long as it doesn't ruin the game. However, you only get the information if you request it
 

« first day (1283 days earlier)      last day (3567 days later) »