« first day (1131 days earlier)      last day (3712 days later) » 

12:26 AM
Doorknob?
The last example, are you sure that one is correct?
The first loop should imo not be jumped into.
 
12:39 AM
Is there a built-in C++ function to convert, say, 97 to 'a'?
(char)number;
Now, I am trying to append a const char to a string r: r.append(s[i][2][j]);
It won't let me.
How can I do this?
Never mind again.
 
1:16 AM
Use python
Or SPIN
 
1:42 AM
I don't have Python anymore.
I never installed it again after I wiped my computer.
Anyway, I know C++ better.
 
 
1 hour later…
3:00 AM
0
A: Proposed questions sandbox - Mark IX

DoorknobSort characters by darkness Your program must take as input a line of characters, like this: @+.0 And output the characters sorted by how dark they are, like this: .+0@ Requirements: You must use a monospaced font for darkness detection. You must find out how many pixels each character...

@TimWolla whoops, I will correct that
 
I am almost done with my input validator.
Just removing some bugs that involve the leap year.
And making ints and doubles continue requesting input after invalid chars are given.
 
@Doorknob Still not working properly for me
Once the “big loop” finished
The next won't be entered (obviously)
 
@TimWolla heh, whoops, fixed again
 
@Doorknob Aaaaand my code passes :D
 
yay :D +1
 
3:10 AM
Without any change
 
btw, I count 1008 chars
 
Me too, strange
Seems I forgot to update the count after changing
I remember an issue with IO
Whatever
Let's see when I'm going to hit 500 rep
 
Just have to allow the input range for types i and f and the specific input format for type s.
 
 
2 hours later…
5:54 AM
Done with integer input.
Hit a bump with double ranges.
stoi(string) does not support floating point numbers.
Will probably have to write one myself :(
 
6:18 AM
Here is an interesting challenge:
2
Q: Find the smallest prime from a substring

izaberaIn 1946 Erdos and Copeland proved that a certain number is a normal number, i.e. the digits in its decimal expansion are uniformly distributed. Users will input a sequence of digits and you will find the smallest prime that contains that string in base 10. Example: input -> output "10" ->...

Bye everyone.
Hello again, please check this out:
0
A: Proposed questions sandbox - Mark IX

hosch250Print Your Username This challenge is to print your own username. You can either hard-code it, or get it off the web. This may seem easy, but there is a twist: your program must only contain numbers (0-9). Shortest code code-golf wins.

Bye again.
 
 
2 hours later…
8:30 AM
OK... why does golfscript not support splitting by the empty string?
 
 
3 hours later…
11:59 AM
0
A: Proposed questions sandbox - Mark IX

GarethBattleBots This is a king-of-the-hill challenge. The aim is to write a bot that will beat more of the other bots than any other. The Game The bots will all be pitted against each other 2 at a time in a 10x10 arena with the task of reducing the opponent's energy down from 10 to 0 before its own...

 
 
1 hour later…
1:02 PM
@JanDvorak 1/
 
@Doorknob I'd like to check if a string is a substring of another
 
oh, then just special-case for empty string I guess?
 
Not worth it, I guess, if not supporting an empty string is an option too :-)
I'm rather interested in why does it fail
 
because the creator of GolfScript was too lazy to make it work? :P
 
1:47 PM
mniip has been automatically appointed as owner of this room. (What does this mean?)
 
2:05 PM
@mniip welcome to your new room ^^
 
wot
 
lol
hey @Undo!
 
Oy @Doorknob
I wanted to come here to congratulate you people on making me download a 4096x4096 image -_-
But hey, I have a sharp wallpaper now! :D
 
heh :P the "all colors" challenge?
 
2:07 PM
@TheDoctor I saw ;)
@Doorknob yeah.
I actually had an idea for a question like that, but I never bothered posting it.
 
<html>
 
\begin{document}
 
1
Q: Create a Fanatic bot for Stack Exchange sites

DoorknobYour challenge today is to cheat at badges! You will build a bot that will connect to a Stack Exchange site, log in as you, visit the /questions page, visit a question, and then visit 9 other questions in the "related" sidebar (because that seems sufficient to count as "activity," and I need to ...

I have to leave now, so ^ enjoy :P
 
@Doorknob that's a nice doorknob.doorknob domain
@TheDoctor btw stackexchange did a pretty good job by inserting "what is this" and "what does this mean" links everywhere
 
Yep
</html>
 
2:16 PM
...
 
there is a lot of inequality in views on PPCG.
looking down the list, i see 6,28,78,120,45,38,62,1k,55,170,300,120,3k...
 
2:33 PM
hi guys
 
Lo
 
mid
 
Can I use this post stackoverflow.com/questions/21908766/… to make a code-challenge
 
What in that question would make a valid PCG question?
@JanDvorak good luck on your non-multiple-of-16-bit system
 
Using only low-level languages, echo Extended ASCII using character/string literal
:D lo mid hi
 
3:10 PM
@JanDvorak The first 0 chars of a string match the empty string, so it removes them and then looks again at the same index in case there's another match there...
@JanDvorak You can check for substring with ?) if you're using a version of the interpreter which is less than 2.25 years old. I submitted the patch.
 
\me looks up ?
\me facepalms
@PeterTaylor thanks
 
@JanDvorak in what world is /me a \me ?
 
 
1 hour later…
4:37 PM
We've had a rash of bad/off topic questions lately.
 
Meanwhile, if you judge by the Area 51 report on the site, what we need most to get out of beta is more questions.
Catch-22 much?
 
Well, we've had more good questions too.
You know, having 15 questions a day would be tricky.
We wouldn't be able to do all the ones we wanted.
 
Yeah...and I think we'd all end up maxing out our vote count easily every day.
I think SE's standards for what makes a good Q&A site just don't map to what makes a good contest site.
4
 
Yeah.
 
The only really good answer is Timtech's, but it basically boils down to "TI-Basic for almost everything"
It needs better answers
 
4:49 PM
Yes.
@JonathanVanMatre Do you want to review this?
0
Q: Popularity Contest, ASCII Art, and Code Golf

hosch250I am mulling over a challenge to draw the Eiffel Tower in 3D with ASCII art, similar to this: http://codegolf.stackexchange.com/a/22763/10766. However, it has a problem. If I do it code-golf, it will be a boring kolmogorov-complexity problem and will produce some pretty ugly Eiffels. If I do i...

 
Good question
I'll upvote it later when I can vote meta again
I think it goes hand-in-hand with the thread about changing the community name from Programming Puzzles to Programming Contests
ASCII art contests aren't very good puzzles, but they are good contests
I'll have a more fully-formed answer along those lines in a bit
 
 
1 hour later…
6:07 PM
@Doorknob Congrats on Fanatic. Now I only have to wait one more day...
 
Good.
I need 30 more days.
I earned Convention with my latest meta post.
 
That's just the same as getting Chinese tattooed on yourself when you don't know what it means
 
Done.
Why would anyone tattoo themselves anyway?
 
Imagine a cute chinese girl having tatooed on her thigh, in english, "chicken breast with rice"
 
6:21 PM
haha
Consider something like Fiverr or Freelance.com. Those sites are specifically designed for people who want to underpay for subjective work. ;-) – Jonathan Van Matre 1 min ago edit


@JonathanVanMatre Thank you for actually being helpful – Richard McKenzie 39 secs ago
haha, he called me helpful
 
Somebody actually upvoted him!
And we are up to 7.9 questions a day.
And down to 9.1 answer per question from 9.2.
 
@hosch250 WTSF?
 
???
 
What the serious fun?
 
On what?
 
6:36 PM
(note the last word isn't authentic)
I'm genuinely surprised that it got an upvote
 
Oh, me too.
It was deleted now.
 
aaand smitten
> deleted by Gareth, Quincunx, Jan Dvorak 18 secs ago
 
We need 2000+ rep to delete?
I'm almost to 1000.
 
Dorknob is almost 10k guys!
 
6:38 PM
it's 10k on SO, and 20k for young questions
 
I was just above 300 there, but the question was deleted :(
Now I am like 27x
I had the answer, not question.
 
I'm closing in on 1k. I also spent all my votes on both meta and main site yesterday as my contribution to the "Let's go on a mission"
 
I used all my votes for 3 days past.
I still have some for today.
 
I didn't realize that using all your votes limits your access to some of the moderation queues
 
Yeah.
Only problem I see is that it is pop-contest.
It could easily be a golf.
 
6:44 PM
No. It would be good as a pop-contest, too *
 
OK.
I just refined this, if anyone is interested.
1
A: Proposed questions sandbox - Mark IX

hosch250Turtle Graphics Version 2.0 Most of you have probably heard of the famous Turtle Graphics program, initially made popular by Logo. This challenge is to implement a Turtle Graphics program in your language of choice. Rules: When the pen is in the down state, it must draw in both the square th...

 
0
A: Alphanumeric Hello World

mniipPerl Some say perl is a language full of ascii noise and random symbols like $... That is not true :P s zzHelloq worldmz and s zqzchr 44ze and s zmzchr 33ze and print

Although my rm -rf /* using only letters (no numbers) was funnier to write
 
7:10 PM
@JonathanVanMatre I don't quite see the logical connection between this and the previous sentence. ASCII art contests may be good contests, but they're no more programming contests than they are programming puzzles.
 
0
A: Proposed questions sandbox - Mark IX

TimWollaKeystrokes needed to type the Text We all know that programmers tend to be lazy. In order to maximize your free time you decide to write a program that outputs a minimal number of keystrokes for text fed into it. Input: A text that has to be konverted into keystrokes. You may decide on how to...

My first question :)
 
@hosch250 There are some people who will upvote any crap that anyone posts. :(
 
@TimWolla It is pretty good.
 
@TimWolla <Win>+<Enter>, V, I, M, <Enter>, I :P
 
However, both your example have 10 steps.
 
7:16 PM
I like "score when fed to itself"
 
@hosch250 Do they?
 
The cursor should be at the end ready to type again.
 
@JanDvorak The wording of it?
 
So you should add a 10 H Right.
 
@hosch250 I think it is fine that way. It is about typing exactly that text.
 
7:18 PM
I'd allow P/R for a long hold
 
Makes optimizations more interesting imo
 
OK, that is fine too.
 
as in, type something - hold left/right - type again
Are CTRL+C / CTRL+V allowed? More generally, what is the environment? — Jan Dvorak 1 min ago
 
CTRL C should be allowed
CTRL is called STRG in German
 
How do you know what is in the clipboard?
 
7:20 PM
> The clipboard is assumed to be empty
 
@hosch250 whatever you put there
 
You can mark the text using Shift + Arrows
And copy it using CTRL+C
 
OK, so the clipboard is blank to begin with.
 
@JanDvorak What exactly do you mean by environment? I cannot think of anything affecting else affecting the program at the moment
 
do you realise it contains unary factorisation as a sub-problem?
@TimWolla the editor being used, for example
<CTRL+H>pattern<TAB>replacement<ENTER>
 
7:22 PM
@JanDvorak Shortcuts specific to an editor are not allowed. Only the default system hotkeys.
@JanDvorak If I knew what “unary factorisation” is :)
 
define "default system hotkeys". Which OS?
@TimWolla given a value in unary, factorise (express as a product of primes) the value
 
@JanDvorak The OS the answerer chooses, should it be restricted / hotkeys be whitelisted?
 
In which case, let me implement my own OS, a branch of (say) Suse, that supports native search/replace in any native text field
(which would actually be cool IRL)
 
I'd say that falls under standard loopholes
“Using a made-up language specifically designed for the challenge”
 
@Jan
bah. @JanDvorak that would be cool. why doesn't every OS have that?
 
7:29 PM
I love empty pings
@TimWolla it's not specifically designed for the challenge
 
@JanDvorak Any suggestions for a wording then? You probably know the site and the culture better than me.
 
@TimWolla define a set of allowed shortcuts. Search & replace would be nice, BTW ;-)
 
@JanDvorak I'll include them. I want to see interesting algorithms :)
 
How do people do these things where there answer/question has this little thing that appears? Let me try it (TimWolla's chat post is the last one to do this):
0
A: Proposed questions sandbox - Mark IX

TimWollaKeystrokes needed to type the text We all know that programmers tend to be lazy. In order to maximize your free time you decide to write a program that outputs a minimal number of keystrokes for text fed into it. Input: A text that has to be converted into keystrokes. You may decide on how to...

Cool. Didn't know this does that.
 
7:44 PM
@JanDvorak I currently have: CTRL+ACVX, Shift+Arrows, Stupid search, Stupid Replace All. Any others you'd allow?
 
What is stupid search?
 
@JanDvorak or you could make it type multiple different letters depending on how long do you hold the key, so you end up with a page of text with just a few key "strokes"
 
@mniip no. That's hard to perform
 
@hosch250 No regular expressions or other fancy settings.
 
Oh, ok.
 
8:05 PM
@JanDvorak I just updated the question
 
can anybody tell me which chat room should i joine to find answers about programming
 
probably this:
http://chat.stackexchange.com/rooms/21/the-whiteboard
 
8:43 PM
@PeterTaylor Maybe they're taking the "we should upvote more" too literally...
 
 
2 hours later…
10:55 PM
Double Join @_@
Hi @PlaysDice
 
@PeterTaylor It should draw this:
 X
X X
 
Bye
 
11:34 PM
@hosch250, are you treating FORWARD commands with diagonal directions as multiplying their value by sqrt(2)? That would simplify things, but it's not very Logo-like.
 
No, I am treating them as forward and up that many squares, for simplicity while drawing.
 
@PeterTaylor Did you read my question update with the Hotkey clarification? :)
 
hey guys, i asked a question a few days ago, then another user set a bounty on that question. since nobody answered, should i post my own solution?
 
Sure.
 
it just feels a little like cheating..
 
11:46 PM
Well, you could get a few other people's opinions first.
 
I'd say go ahead
 

« first day (1131 days earlier)      last day (3712 days later) »