« first day (1715 days earlier)      last day (3131 days later) » 

1:03 PM
0
Q: Help with while loop?

Ferraro14 I need to make a program that reads characters for playing the game rock paper scissors. If the character entered by the user is not rock paper or scissors, the program prompts the user until they enter rock paper or scissor. I also need to use a while loop

 
@VTCAKAVSMoACE I made an online ShadyAsFuck to BrainFuck converter (forth and back): jsfiddle.net/flawr/sdo24mmt
 
I'm two upvotes away from 25 upvotes on Graph Florets of the Flower. The suspense is killing me :P Will I get it?
 
Let the downvoting begin! HarrHarr
 
@flawr Do you mind if I post a ShadyAsFuck Hello World to the catalog or would you rather to do the honors?
 
Feel free!
If you do not mind, you could post a link to the esolangs page.
 
1:11 PM
I was planning on doing so.
@flawr This site appears to be down by the way.
Hmm actually
I think it's just my internet being screwy
One second.
 
On the contrary, seeing how the best SAF is a trivial modification of the best BF, I don't see any point in posting a hello world answer for it
 
Mm fair enough.
 
@quartata It seems to work perfectly here: esolangs.org/wiki/ShadyAsFuck
 
?
I hate to do this because I don't think rep should be motivating people to post, but I think I might have to put a bounty on my RTTTL Obfuscation.
I mean, pop-con is kinda boring with only one answer.
 
1:37 PM
1
Q: Counting Abelian groups of a given size

DennisBackground Last time, we counted groups of a given size, which is a non-trivial problem. This time, we'll only count Abelian groups, i.e., groups with a commutative operation. Formally, a group (G, ∗) is Abelian if x ∗ y = y ∗ x for for all x, y in G. The problem becomes much simpler this way,...

 
1:57 PM
Wow, 7 of the latest 15 questions have negative vote counts.
 
Damnit Dennis, why did you make 0 a test case :P
 
Sorry. :P
 
2:20 PM
0
A: Sandbox for Proposed Challenges

Aaron GOUZITFind the 7 differences Little Timmy is waking you up on this Saturday morning once again to help him solve his puzzles. You love the little bugger, but those 7 differences games are starting to undermine your patience. Like always, you plan to delegate this tedious task to Robotic Dadâ„¢ so you ca...

 
Hi there ! Little help for a first-time poster? :)
As you'll see in the above sandbox link, I'm trying to embed a few pictures, I don't know how I should do it.
 
There's a little image button to the right of the {} button
 
@AaronGOUZIT Press Ctrl+G in the editor.
 
Thanks !
 
You also need to be weary of built-ins like this: reference.wolfram.com/language/ref/ImageDifference.html
 
2:28 PM
Indeed, thanks !
What would you propose? Won't the popularity challenge tag already take somehow care of that?
 
Well, you need to be more specific as to what makes one solution better than other.
 
It's popularity contest, by the way.
 
Hmmmm. It's hard to specify, the wolfram solution indeed IS good... I could always add a joke to my question saying that you intend to spend a little time savouring your beer, and that a built-in solution wouldn't provide that, but I'm not sure it will influence voters
 
@Dennis Which 64-bit semiprime took you the longest to factorise?
 
Uh, I don't remember. The longest one took around 10 seconds though, so I hope there won't be a problem with the 10 minute time limit.
 
2:44 PM
I was thinking Mego's answer might need testing if it's using xnor's golfy factori(al,sation)
 
I updated my sandbox post to include pictures (only one pair so far, I will post more), put a rant against built-ins and fix the popularity-<s>challenge</s>contest
 
@PhiNotPi I mean, if it is pop con I don't think you need to ban built ins.
People probably won't upvote answers that just use a builtin
 
From experience, that's not always the case, unfortunately
 
9
A: Element names above 118

Eric TowersMathematica 10.1, indium (49) This solution uses a built-in library of element properties, including IUPAC names and abbreviations. (I haven't seen this as a technique to be avoided in Golf. It seems to be encouraged. But this might be on (perhaps over) the edge of acceptable -- Mathematica i...

 
What do you mean I
77
A: Obfuscated Hello World

J BHQ9+, 1 char H This happens to meet both the second and third requirements.

Oh
OK point taken
 
2:47 PM
:s
 
@Sp3000 I'm testing the answer with 9223371994482243049 right now.
 
k :)
 
3:08 PM
I like the new test cases :P
Can we throw 161273449709568 in there?
Or some other number that tests the partitions side for more than one prime
 
Edit it in if you want to. Or I'll do it later. I have to go right now.
 
k, will do
 
@quartata that answer is wrong and it still netted the poster 900 rep.
 
3:36 PM
I really do like using linux as my home OS, but sometimes I find little things that are just ridiculous.
I've been trying for almost an hour to simply play a MIDI file.
Nothing seems to work.
I just don't get it. I mean, MIDI is one of the oldest, simplest things for sound cards to do.
 
also one of the most antiquated/deprecated :p
 
Meh. I'd agree with that more if a majority of instrument interfaces weren't still MIDI ;)
 
I think timidity is supposed to help, or lilypond (a bigger gun)
 
Yea, timidity was a big fail for me (as was audacity+plugins). I may try lilypond later, right now gonna take a breather.
 
I've never connected an instrument via MIDI
 
3:44 PM
I've done my keyboard that way, it's pretty cool to play with. Right now I'm actually just trying to play sheet music found online so I can play along with it to get the rhythm down better.
 
are you trying to measure your accuracy?
 
Not really, just trying to keep my pacing up. I could do it other ways, but I never thought "play a MIDI file" would be an issue.
I'm not connecting any instruments, I just want to play a file.
 
well, you could post a challenge about it, if it doesn't exist already :)
 
:D
 
can you give a link to a midi file you're trying to play?
 
3:52 PM
Oh, I've tried several now. Some from Ichigo's, some from Music Scores. The one that started it all was the FF Prelude :)
 
@BetaDecay
mildly relevant
 
@Geobits seems to play fine here
 
Yea, I figured it was a problem on this end. I've gotten music from both places before.
 
it opens with timidity automatically and it plays it
 
Stupid laptop :(
Oh well, I'm gonna go make some whistles now anyway. Later!
 
4:03 PM
0
A: Sandbox for Proposed Challenges

Daniel M.Cops and Robbers: String Printing cops-and-robbers Cops task Write a program that prints a string to STDOUT. The robbers will try to write a program that prints the same string. The string must consist of only printable ASCII characters (no control characters besides CR,LF,FF,TAB, and an opti...

 
@Dennis I have an answer in Python + sympy but now I feel bad because Mego's trying to do it with just Python D:
 
No reason to feel bad IMHO. We get "pure" Bash and Bash + coreutils answers all the time.
 
Hmm I guess. I might post a little later - trying to figure out how Mathematica works :P
 
@Dennis What's your opinion on difficulty tags?
 
@Sp3000 its magic
 
4:18 PM
There's a meta post somewhere about difficulty tags being bad meta tags...
8
Q: Tags regarding difficulty

Crazy EddieI think that we should tag puzzles (or whatever) with an estimated difficulty tag. That way people who want a real challenge can find it and those who are just starting out can find ones they might be more able to solve. For example consider: Distance between hands on clock vs: Shortest path i...

Wow that was from ages ago
(Shoot I was thinking of Puzzling re the meta tags part)
 
@ThomasKwa Do you mean things like or for questions? Those would be meta tags, which are officially frowned upon (on the entire SE network).
Jeff Atwood on August 7, 2010
There are a few tags on Stack Overflow that have bugged me for a long time. Namely:
(Doesn't mean that it's a bad idea though.)
 
cough cough
 
0
Q: Output a sorted list of random strings

Stewie GriffinTake an integer n as function input, or STDIN. n can be between 20-400. Create a random list of numbers, where the first number, num1 is a random integer between 1 and n. The second number is a random integer between 1 and n-2*num1, the third number is a random integer between 1 and n-num1-2*num2...

 
4:36 PM
> 334b
What. @Dennis
I'm surprised you bothered to check that high
 
The highest I could find is 354, but still 70 bytes. :/
 
Are you going to do that thing where you do )/ by having the separator in the string?
 
@undergroundmonorail D:
 
@Sp3000 Oh, I hadn't though about that. Thanks! It'll have to wait until later.
 
The best I find is 340 with j: [4 129 94 238 34 4 151 211 161 32 227 75 104 21 209 55 188 133 235 17 55 232 49] 340b24b'af+
(I guess that doesn't save here, unfortunately)
 
5:01 PM
@Dennis I think some of the arguments against meta-tags don't apply to PCG.
Yes, subjectivity is a problem, but that can be minimized by a consistent definition.
I've noticed that difficult questions and answers don't get as many votes as they deserve, and I can't think of any other way to solve that problem.
 
@ThomasKwa Meta tags should absolutely be avoided at all costs on any Stack Exchange site (including PPCG).
 
@Doorknob Why?
 
42 mins ago, by Dennis
Jeff Atwood on August 7, 2010
There are a few tags on Stack Overflow that have bugged me for a long time. Namely:
 
Furthermore, if I'm looking for a difficult question to answer, what should I do?
^I read that several times already.
 
@ThomasKwa If you want to find difficult questions, you could, say, search by how many answers a question has.
If it has very few answers, it's probably fairly difficult.
In any case, the function of tags is not to categorize posts by "difficulty level."
 
Fair enough, but I still think the lack of votes for answers that take the most effort is a very significant problem.
 
Okay, but the solution is not abuse of the tagging system.
 
As you have more experience than me, I trust your judgement there.
I have now upvoted fully one-quarter of the first page of unanswered questions.
 
@Sp3000 want some help golfing Abelian groups?
 
Yes please :D
(I'm assuming you're on the phone there :P)
 
5:19 PM
@Sp3000 want some help golfing Abelian groups?
 
> @Sp3000 want some help golfing Abelian groups?
 
what on earth
 
Oh god D:
 
I'm tethering from my tablet, but the mobile internet reception is horrible, and chat claims I'm timing out on most messages
 
Ah... I see :)
 
5:20 PM
@Sp3000 want some help golfing Abelian groups?
 
so... don't be surprised if I suddenly disappear :P (or repeat myself half a dozen times)
 
I'm on DSL and my ping is 1,2s
Friggin T-Online.
 
@Sp3000 Last/@FactorInteger@#
 
Hmm I'm having a bit of trouble getting that to work
 
as in...?
 
5:27 PM
Oh right, so it's & /@ Last /@ FactorInteger@#,0] at the end?
Didn't know map associates right to left
 
Not only is Last/@ shorter I also get to drop the parens, so that's a nice -4 :)
 
Here's another byte, but I'm sure there's a better way: 1##&@@(SeriesCoefficient[1/Product[1-x^k,{k,#}],{x,0,#}]&/@Last/@FactorInteger[‌​#]Sign@#)&
 
Ahaha yeah I was wondering about that - I initially has something like Mod[#,#+1]
 
The product also seems expensive... You can get the list with 1/(1-x^Range@#), but I haven't found a way yet to do the multiplying in fewer bytes
 
5:41 PM
Hmm not sure :/
 
f=1##&@@#&;f[SeriesCoefficient[1/f[1-x^Range@#],{x,0,#}]&/@Last/@FactorInteger@#]Sign@#&
 
Ah nice :)
I wonder why 1##&@@1/(1-x^Range@#)&@10 didn't work for me though
The 1##&@@ didn't seem to do anything
 
yeah @@ has higher precedence than /
 
Ah...
 
now 1##&@@#& seems really long...
 
5:54 PM
@flawr Damn. That's so much more efficient than what I have. XD
 
6:06 PM
Hmm makes me think there's surely something better than Sign...
 
6:23 PM
1
Q: How could this 'programming language' be improved?

m654I created a programming language for manipulating strings called Stringy. It's very different from other programming languages, since you only have one string (for manipulation) and some variables. With the various commands you can manipulate that one string. I created it because it might be usef...

 
6:41 PM
Is this question ready to go to the question world of code golf?
 
It's now "truly" expandable, with no details about the KOTHs being hard-wired into the web scripts. Everything is based off a config file here: koth-phinotpi.rhcloud.com/kothlist.txt
 
@Phi cool
 
The example KOTH is found here: github.com/PhiNotPi/servertest
I believe it's now compatible with KOTHs written in many languages (like Java or Python).
 
BTW, if you want I can give you FTP access to a subdir of codegolf.xyz and a subdomain. Strong servers and fast CDN. (Applies to everyone who wants to host something PPCG related) :)
@PhiNotPi
 
@VTCAKAVSMoACE I would say so. Great challenge :)
 
6:57 PM
@VTCAKAVSMoACE Looks good.
 
@minxomat To be honest, I'm not even sure how I would use that. As a redirect page? (This is like the first "real" web development I've done)
 
No I mean in terms of hosting, not as a redir.
Although that's fine. After all this site is for anything PPCG.
 
How would I go about changing hosts? That sounds like a complicated process.
 
How are you doing it now?
 
I'm using this: openshift.com
 
7:00 PM
@PhiNotPi just copy all the files?
 
OK, in that case I could just relay to your cloud sudomain if you want (koth.codegolf.xyz/$1 --> http://koth-phinotpi.rhcloud.com/runkoth.pl?$1). I don't really see any other benefit - I didn't know what platform you were using ;)
 
There might be some features I can't simply copy over, like having a MySQL database.
 
Just an idea, maybe if your project is finished.
 
@minxomat why not just CNAME koth.codegolf.xyz -> koth-phinotpi.rhcloud.com?
 
@DankMemes That would be way more complicated.
 
7:08 PM
it's more complicated to add a single DNS entry than to set up a relay using server scripts? Since when?
 
Since Nameserver 301s exists. I could literally past the rule (koth.codegolf.xyz/$1 --> koth-phinotpi.rhcloud.com/runkoth.pl?$1) in the CDN config and it would be done. No messing with the DNS.
And who said anything about serverscripts :P
 
My next step is to find an actual KOTH to host.
 
That's my bit for the night ;)
 
Ugh. I couldn't put in "Ulamic Rows" as my question title. Any suggestions for a name with 15 characters?
And I should delete the sandbox post, yes?
 
To reduce clutter, yeah. Hopefully edit it down too before you do so
 
7:22 PM
Edit it down?
 
High rep users still see deleted posts, so it's just to reduce clutter for them too
 
Ah, okay.
There - that good?
 
2
Q: Primes of Ulam's Spiral

VTCAKAVSMoACEUlam's spiral is a truly fascinating, yet puzzling, topic in mathematics. How it works in detail can be found here, but a short summary can be explained as so: I start off by writing a one, then I write a two to the right of it. Above the two, I write a three, and to the left of that I write fou...

 
@VTCAKAVSMoACE Maybe "Primes of Ulam's Spiral"?
 
Hmm... sounds good. Final edit.
 
7:41 PM
@Geobits timidity works for me on Fedora.
 
7:54 PM
@AlexA. The reason why that was a comment is because someone had asked about it in the comments, then deleted the comment. Sorry.
 
@VTCAKAVSMoACE No need to be sorry, I realized that after the edit
@Dennis Fedora? I thought you were using OpenSUSE.
 

« first day (1715 days earlier)      last day (3131 days later) »