« first day (1707 days earlier)      last day (3126 days later) » 

12:14 AM
In a world where people can buy SE rep...
 
The mods ban everyone. The end.
 
>:D
 
Just a matter of time til someone creates a high performance P2P rep-exchange. (The mods will still ban everyone, and it will be even funnier :P)
 
12:33 AM
How possible would it be to have a cryptocurrency golf?
Shortest implementation of a cryptocurrency wins.
 
@sweerpotato You should have included Field Roast in your list of sausage. :P
 
I remember reading some article about making your own cryptocurrency.
 
Well, that would be just about who has the shortest hash algorithm.
If this isn't homework, I'll eat a broom: codegolf.stackexchange.com/questions/59310/…
Aaaaaand it's gone.
 
It's not gone, it's just closed.
Well, "on hold."
(Basically a death sentence in most cases.)
 
12:42 AM
That's why I said gone.
 
Haha
 
0
Q: Write a function which take a node in rootA and finds a clone node in other tree

brownmamba O O / \ / \ O O O O /|\ /|\ O O O O O O Assume two trees with root rootA and rootB, rootB tree being a clone of rootA tree. Write a function which take a node in rootA and finds a clone node in other tree.

 
12:46 AM
hah! Good timing.
 
I kinda want to turn that into an actual challenge, just to see his reaction to it being blatantly ripped off.
 
That's the seventh consecutive question to be closed.
 
Are they even on-topic anymore?
 
12:55 AM
IDK :P
 
The meta "consensus" is yes but not really.
 
A few more closes and they are statistically not.
 
1:35 AM
My friend told me he understand recursion. I asked him to write a recursive factorial function. He came up with this gem:
 var n = 5;
var a = n;
function thing() {
  if (!!!a) return n;
  a -= 1;
  n = n * a;
  thing();
}
And yes, that's three !s in a row.
 
I can't read :)
 
Does the !!! do anything other than !?
 
no >.>
 
... erm wtf
is that supposed to be the FACTORIAL function!?
 
I was hoping for some bizarre typecasting action.
 
1:44 AM
alright y'all g'night
 
That's pretty bad.
 
2:04 AM
Hi
 
I just made an interesting factorial function in Perl.
sub f{
 $v=1;
 $_[0]&&($v=$_[0]*f($_[0]-1));
 $v
}
 
The best factorial function recursively builds a string of numbers to multiply, then evals it for the base case.
That way you only do math once, so it should be a lot quicker.
 
@Geobits Well, a look at the resulting assembly would be interesting.
 
The best factorial function calculates (n+1)!/(n+1)
 
Divide out the 1 and you can simplify that to (n+1)!/(n+1)
 
2:13 AM
1/(n+1)*2/(n+1)*3/(n+1)...
Distribute the ! to make (n!+1!)/(n+1)
 
This website from Yale is absolutely horrendous.
 
Oh..
 
wat
 
That's fine. If you learn, you need as many distractions as possible. Especially in law (source: I went to law school :) ). Their frontpage is fine, so all is good.
 
Anyone here able to help me with Racket? :P
 
2:25 AM
@Doorknob Y u no liek frames?
It looks like the finest Geocities has to offer.
 
@Shebang Like, the illegal version?
(as a serious answer, I can't help you)
Programming in Racket should be called Racketeering.
 
Haha :P
 
That's illegal :P
 
Rust programmers are called Rustaceans. :D
 
I'm just relearning it because apparently I'm taking another CS course that starts with it.. :(
 
2:28 AM
Why are things like Racket popular with CS classes?
 
Maybe his professor has a lisp?
 
hehe
 
Lisp pun?
 
I had a course which started off with Racket too before we moved onto Haskell. Honestly I'm not sure what those professors are scheming...
 
@ZachGates What's the capital of Portugal got to do with it?
 
2:38 AM
wot
 
You did say Lisbon, right?
 
No...
2 mins ago, by Zach Gates
Lisp pun?
:P
 
Yes. Right there. Lisbon.
 
Clearly, someone's into Geography bits
 
As long as you leave out the graphy parts. Graphs can be a pain sometimes.
 
2:41 AM
Enough with the small talk.
 
OK
 
@PhiNotPi TALK
 
3:00 AM
wow this conversation died
Y'all understood my Smalltalk reference, right?
 
I was going to follow up with another pun, but I didn't see the Joy in it so I stopped myself :)
 
3:22 AM
@MartinBüttner l'_%'C*"l¤\^./""SPLRK "erS-$e`S* should work correctly.
 
4:18 AM
0
A: Sandbox for Proposed Challenges

vihanCompressing a String to a Rectangle code-challenge Challenge In this challenge, you will write a program (or function), in the shape of a rectangle, which will take an input, and format that into a rectangle. Comments are not allowed in the code. If you're language supports comments, you may a...

 
 
1 hour later…
5:27 AM
@Dennis Oh right, that's so much simpler
 
I've finally joined Doorknob and you in the millionaire's club. :)
 
congrats :)
 
Thanks!
Next milestone: 100k rep network wide.
 
oh, you're really close to that
 
Finally something I have a chance of achieving before you. :P
 
5:40 AM
;)
What's your Illuminator progress?
 
11/500...
 
oh
your ppcg rep graph looks funny ^^
I just noticed I still don't have a valid answer to codegolf.stackexchange.com/q/55380/8478 ... didn't you say you wanted to give that a go? ;)
 
Doesn't tell the whole story. Take a look at this:
Can you tell when I started working for real on my thesis and when I finished it? ;)
 
haha, that would explain it
 
Oh, I had already forgotten about MarioLANG. I remember hitting a bump, but I don't really recall what it was... I hope I have a little spare time this weekend.
I'm still waiting myself for a more competitive answers to this challenge:
15
Q: Counting groups of a given size

DennisGroups In abstract algebra, a group is a tuple (G, ∗), where G is a set and ∗ is a function G × G -> G such that the following holds: For all x, y, z in G, (x ∗ y) ∗ z = x ∗ (y ∗ z). There exists an element e in G such that for all x in G, x ∗ e = x. For each x in G, there exists an element y ...

I'm sitting on a 81 bytes answer.
It's a little hard to verify because of its O(n³n!ⁿ⁺¹) complexity, but I'm pretty sure it's valid.
 
5:56 AM
I can offer you ToExpression[Names[][[10446]]]@#& :P
 
Is ToExpression[Names[][[10446]]] a fancy way of writing FiniteGroupCount?
 
yes :D
 
As Alex would say, ಠ_ಠ.
 
@Dennis Y'know, after I learned about groups and group isomorphisms and the like last year, I wrote a Python class that let me work with such groups easily. I considered writing something that would generate all distinct groups of a certain size, but I decided not to pursue that because of the difficulty and work it would take... :P
Well, doing so efficiently...
 
@MartinBüttner Why is your answer to the sausage challenge deleted? Are you boycotting it until the Weisswurst is added?
 
6:03 AM
More efficient than O(n³n!ⁿ⁺¹)? Hard to imagine. :P
Seriously, I'd very much like to see a reasonably efficient solution to the challenge. I deliberately imposed no time or memory limits to make participation easier, but anything that doesn't rely on brute force should be rather interesting.
@RetoKoradi It is no longer deleted. The previous revision did not handle a single Kabanos correctly.
 
@Dennis Mind giving me a quick explanation for that bound?
I feel like I could figure it out, but...
 
@Dennis I don't see how an efficient solution would be a valid attempt to answer the question, since you made it a code-golf with no limits.
 
@Dennis Yes, it's undeleted now. It was still displaying as deleted a couple of minutes ago.
 
@El'endiaStarman n!ⁿ are the number of ways we can define x ∗ y by defining it for each fixed x by permuting all possible outcomes. n³ comes from the check for associativity. I forgot what the remaining n! was about. The code is on a different computer...
@feersum Well, not efficient efficient, but reasonably efficient. Anything you could actually run for n=10 before the universe explodes. I was thinking about posting a parallel fastest code challenge, but I have no idea how difficult this problem is.
 
I certainly wouldn't call that reasonably efficient
 
6:13 AM
Well, I feel like there has to be some way to rule out or establish isometries early on, or narrow them down.
 
Compared to O(n³n!ⁿ⁺¹), it is.
 
I like trying to take inspiration from the way humans do pattern matching.
 
Why don't you just force the first row of your table to be 1..N then. Then it will be waaaay more efficient!!
 
You can take the Big Dipper's shape, rotate it any way you like, and humans will still be able to identify it. Even if you further stretch or shrink it in any way, up to a certain point.
 
Great, O((n-1)³(n-1)!ⁿ). :P
 
 
2 hours later…
8:01 AM
@feersum Forgot to look into the pawn thing yesterday. Could you do me a favour and append a : to the first two lines and let me know what output you get?
 
-1
Q: Shuffling cars puzzle

Darren HThis has spawned from a real-life conundrum, I made a decision based on guesswork but it got me thinking, what interesting ways would people come up with to programmatically calculate a best solution to this? There are 4 locations C D H K There are 3 cars Red White Silver and 2 people ...

 
@MartinBüttner ok..
 
the only idea I could come up with is an evolution-of-hello-world like one, where you are doing the whole answer-chain in one answer
 
@MartinBüttner it doesn't print out anything extra besides the 0
should I use the master branch again?
 
uhh... you are using the -s flag, right?
it should be working from either branch, I think
 
8:14 AM
yep still using -s flag
 
that's really odd
especially that : doesn't do anything
I'll look into that, but I'll be busy moving over the weekend so it might take a few days
 
retina -s pawns.txt<in.txt this is the right command?
 
is <in.txt equivalent to cat in.txt | retina -s pawns.txt?
 
yes
 
that should be correct then
 
9:06 AM
I like how Windows 10 asked me whether it should include those useless standard apps during the upgrade... and then I deselected all of them and they were installed anyway...
 
That should not happen. You have the possibility to expand the setup to a "customized setup" during installation (that button is a bit hidden).
 
Congratulations, @VW, you're now a verb. http://t.co/4vMxyfLSQI
 
9:21 AM
@minxomat yeah, that's exactly where I deselected them.
 
@MartinBüttner Should work, maybe you missed something (did you choose a local or a MS login?).
Oh, now I see. You wrote upgrade. Yeah. Don't ever do that. Always wipe and fresh install. Upgrading has been known to cause problems all over the place.
 
10:12 AM
Should a scandal involving X now be referred to Xwagen, rather than Xgate?
 
 
2 hours later…
11:53 AM
I just got an invite for a OnePlus 2 that I'm not going to use. Anybody want it?
nevermind, it looks like they aren't shareable
 
 
1 hour later…
1:27 PM
0
Q: Is the PHP opening tag mandatory in byte count?

insertusernamehereAfter answering the first time on PPCG on "Source code ecological footprint" I had a little discussion about it. I found it's OK if your program throws notices or warnings. But I couldn't find anything about the opening PHP tag. My question is: Do I need to include and count it? If yes, is the s...

 
1:59 PM
> Thanks again for your time on the phone earlier, as well as your kindness and consideration to help me during my search for junior IT candidates. Glad to hear all is well on your end!

As mentioned, we are looking for a “junior, you”.. sounds funny but extremely true. If anyone comes to mind, please let me know as our client is actively interviewing for this position. It’s full time with salary and benefits. I will make myself available to speak with you at your convenience. Thank you again, and I look forward to hearing from you soon. (I’ve included the job description below)
Anyone want a job? ;)
 
0
Q: Tree traversing

jkklappHave you heard about trees? When performing DFS on a binary tree, you can traverse it in 3 possible orders. Root, left node, right node (Pre-order) Left node, Root, right node (In-order) Left node, right node, root (Post-order) Check wikipedia to know more. For this challenge, you have to ...

 
2:16 PM
Do any of the many online compiler services (like Ideone, coding ground etc.) offer a API where you can send them code and a stdin argument and get the stdout back?
 
I think I remember ideone having some sort of API, but IIRC it was a paid service.
 
Wow, that is expensive.
 
2:45 PM
@minxomat I searched for a free one and had no result. (it would have been for an automated KotH variant back then)
 
Look's like I'm going to be indoors this weekend. 12 inches of rain predicted.
 
Well that sucks. Joaquin? (I don't really know where you live :)
 
yes
It's basically going parallel to the east coast.
 
3:01 PM
Hmm, at least it doesn't look like the eye or main storm wall will make landfall there.
Feel bad for the Bahamas right now though.
 
Hm. Found a "free" way. Using emcc + node.js to compile C(++) code to javascript on the fly. Works fine.
Reasonably fast (.8, where 1 is native C speed).
 
So 239,834 km/s, since c is 299,792 km/s?
 
...
 
3:18 PM
@minxomat What.... C or C++ can be compiled to javascript... strange.
 
How is that strange. There are many applications for this. Mainly taking it from server to client-side without any additional work.
 
My repaired laptop just got delivered!
 
I just find it strange
 
(now I have to wait for my university's mail processing center)
 
0
Q: Most Complex C Program with One Variable of Each Kind

DaKnObObjective Create the most complex program in ANSI C that compiles with -Wall -Werror -ansi -pedantic by using one variable of type int, one variable of type float, one variable of type double and one variable of type char. Language ANSI C that compiles with gcc -Wall -Werror -ansi -pedantic f...

0
Q: Debug "Hello, World!"

EridanThe objective of this code challenge is to write a program that prints "Hello, World!" to STDOUT, but the program has a bug. The cops' challenge is to write the "Hello, World!" program, and the robbers' challenge will be to debug the program. If a cop's entry is unsolved for 72 hours, then it wil...

 
3:47 PM
what's it with the... subpar... challenges today?
 
Well if they were golfs, subpar would be a good thing.
3
 
0
Q: Number to dotted number

voidConvert number to dotted number with length based on input variable with c. example: number = 1000000 length = 2 output = 1.00.00.00 another example: number = 1000000 length = 4 output = 100.0000 Rules: Length is counted from the end of digit sequence. Don't reverse the number. Like 1234...

 
4:28 PM
0
Q: Greater Average Submatrix

DaKnObObjective Write a program in any language that reads a matrix from stdin in which all columns are space delimited and all rows are newline delimited. The program must output a sub matrix so as that there is no other sub matrix with greater average. Each sub matrix must be at least 2x2. The initi...

 
I'm voting to close the "Number to dotted number" challenge.
 
0
Q: The Attack of the Knights

DaKnObObjective You have two knights, one is located at 1C and the other at 2G. You have to write a program in the language of your choosing that accepts a set of coordinates from stdin, like 2C, and then calculates which of the two knights you have to move in order to capture the enemy pawn at the pr...

 
What's going on? Why so many new posts?
 
Two questions in 15 minutes? He should slow down..
Or give credit to the sites where he found his challenges
 
Or maybe he wrote the challenges beforehand and is posting them now?
 
4:38 PM
He posted the first one at 1 rep. Could be, though.
 
Hooray for being unable to link with Boost....
@Justin I just started posting in Code Golf. I actually have a collection of them and I came up with most of them. Now some of them may be duplicates because someone else must have thought of it too, but I haven't checked. I just hope you like them.. — DaKnOb 2 mins ago
 
4:53 PM
It might be worth suggesting to space them out a bit. His first got closed (then he deleted). If the others aren't well received, he could get hit with a question ban for having multiples closed in rapid succession. By spacing them out, he could see what is and isn't considered a "good" challenge and tailor his next ones accordingly.
Because that's four in about an hour he's posted now.
 
@Geobits Tell him that? :P
 
Yea, yea, I was just doing that :P
 
For some reason my pilot takes nine moves from 267. I'd like to answer, but I think I might be too lazy to debug this :)
 
@Doorknob Classic example of a perfectly drawn circle. :)
 
5:04 PM
0
Q: Optimizing View Counts

DaKnObObjective You run a video site like YouTube or Vimeo. Each video has a unique ID which is a 32-byte string containing any of the following characters: a-zA-Z0-9. You are tasked to perform view counting. You need to store a file that has the view count for every video. This file must be parseable...

 
@PhiNotPi Looks like someone lit the Bahamas on fire... except it's water.
 
This is hilarious:
0
Q: How do you access an array in python from Java

zdavidmmI want to do something like this: Python Code: nums = [1,2,3] Java Code: nums_Java[] = nums //from python System.out.println(nums_Java[0]) Output: 1 I have been looking over jython but I just can't seem to find the answer. It seems like it should be very simple but I'm lost. Thanks!

Python has arrays. Java has arrays. Conclusion: I must be able to use arrays from Python in Java!
 
@Rainbolt Noooo. I was going to post an image of a match right under the Fire Water...
:( #disappointed
 
Python is a tag. Java is a tag. Conclusion: Jython must also be an appropriate tag!
 
5:10 PM
@Rainbolt You just need to interface it with a Coffee Snake.
 
mbomb had to be the bringer of bad news
 
@Rainbolt Yep. Just one of those face-palm moments. Worth laughing at.
 
I don't recall ever thinking that all languages were the same, but I can see how one might get that idea.
Programming is pretty confusing
 
If the user had even held his mouse cursor over the Jython tag, he'd have been enlightened...
 
They tell you that your array is stored in memory, so why can't you grab it out of memory in another language?
 
5:14 PM
@Rainbolt The more languages you know, the more confusing
 
I stopped being confused after language number two
The second language was harder to learn than the first
 
I was trying to explain Java syntax to someone and kept getting mixed up with VB.net syntax, since I use that more.
 
When I finally reconciled the differences between the first two that I learned, it was easy to learn more
 
Like saying Nothing instead of null, or constant instead of final.
 
And the first was easier than the second because I just accepted that what the professor said must be true
After all, I don't know how to program and he does
 
5:16 PM
@Rainbolt Best Java class ever was when the professor wrote pubic static void main
 
That happens to everyone I think
I still remember day one. "public static void main string args. These are magic words for the first three weeks of class. Don't worry about what they mean for now."
 
Question: if I change my avatar, is there a way to get my gravitar back?
 
Not sure. I'd save it first just in case.
 
I've grown attached to my gravitar, but it may soon be time for an upgrade.
 
I actually have the option to change back to my identicon from when I started
So I guess it never really goes away
 
5:23 PM
0
Q: Shortest Infinite Loop

Kritixi LithosYour task is to create the shortest infinite loop! Since such a link does not exist in Wikipedia or in PPCG.SE, I have created this challenge. Rules Each submission must be a full program. You must create the shortest infinite loop. The program must take no input, and should not print anything...

 
@Rainbolt An identicon never changes per definition. It's not random.
 
The question was whether Stack Exchange saves it or not
 
They do not save it. It is a hash from your data :) . It never goes away as long as your profile exists.
 
Right, but there's no reason they'd have to give you that option. A lot of sites have "upload..." and "url..." as the only options when you change your avatar.
Luckily, they do :)
 
@minxomat That's an implementation detail. From a user's perspective, it is saved.
Speaking of which, you seem to know a lot about how Stack Exchange manages identicons. Do you (or did you) work for them?
 
5:39 PM
No, we had that topic a while ago here in chat.
It's just the "usual" way identicons are handled. I guess you could ask Chris about the details.
 
5:58 PM
@Geobits I stole your link-to-the-Wikipedia-page-even-though-everyone-knows-about-Java idea.
 
It felt so weird doing that. But he listed it as a rule, so... :)
 
Posting answers is too stressful for me.
I needed to get that sweet sweet up-vote privilege.
 
Hey y'all :)
 
Downvote privilege is better ;)
 
6:22 PM
Is this a valid Perl infinite loop?
`$0`
 
Does it loop forever?
 
If yes, then yes, if no, then no.
2
 
^
 
I have a idea for a new challenge, need your thoughts:
The cretan labyrinth can be constructed very easily:
 
Looks like a cross section of a brain.
 
6:27 PM
Your brain needs more squiggles if it looks like that.
 
But you can expand this to a larger 'degree' labyrinth, if you start with more L-s between the crosses an the points.
So I thought about asking for a program, that accepts N as a input, and outputs the N-th degree cretan labyrinth, as ascii, or image, or sound file or whatever.
 
Well, it sounds fine except I suppose it'll be [ascii-art] ;)
 
Sound file?
IMO it's best to choose one of and because otherwise submissions are harder to compare.
 
This is a seventh degree Cretan Labyrinth, as interpreted by a single Oboe.
 
Haha
 
6:31 PM
I suppose you could do it if you graphed the path on axes of pitch and volume. Sorta like a theremin. That would be... interesting.
 
The sound output was a joke, but now thinking about it: There is a guy making music (or just somethign that sounds) and some of his pieces have actual drawings if you look at their spectrograms!
 
:O
 
But I do not remember his name (a strange one too). But I thought he was quite famous.
 
I always see ghosts when I look at spectergrams :(
 
I always see graham crackers.
 
6:33 PM
Mmmm. Ghost crackers....
 
@Rainbolt actually, that is a valid question, and jython is a thing
 
@aditsu I know, but why the OP thinks Jython can helps him access a Python array in Java is beyond me
I made a house in Minecraft. How can I use Second Life to access my house in real life?
 
it's different, jython runs python code in the jvm
 
I FOUND IT, IT WAS MADE BY APHEX TWIN @Geobits Here is your ghost.
 
and there are ways to interface with java code
 
6:36 PM
No, and I made this distinction in a comment on the question, Jython is a language. It doesn't "run" anything.
 
@flawr Yep, ghosts.
 
it's practically an embedded language
 
Jythonc is a jython compiler. It compiles Jython in Java bytecode. And the JVM actually runs it.
 
you can run jython code on the fly from a java program
and pass data back and forth
 
So why don't we have Jyth?
 
6:38 PM
Okay, I concede that if you change the question, then it makes sense.
 
I think that's what he's asking, but didn't know how to phrase it well
 
@Geobits @AlexA. Do you think I should make this laby challenge a code-golf? With an arbitrary visual output or just with a well defined ascii art?
 
@aditsu You could go on SO and answer it
@flawr IMO code golf ASCII art but I think Geobits will disagree. :P
 
@AlexA. I'm pondering it, but I don't have jython installed to verify
 
You could install Jython first
 
6:41 PM
too much effort :p I think I'll just post some code with a disclaimer
 
Classic.
 
Embodying the spirit of SO.
 
The spirit of Somalia?
 
I must do my part ^_^
 
Somalia Overflow
 
6:45 PM
Shaquille O'neal
 
Hahaha
Shaq Overflow
 
Significant Other
 
Supervising Officer
 
So Outdated
 
6:51 PM
^ ruining the game
internet makes everything less fun ;)
 
Everything except internetting.
 
^ important
 
v unimportant :(
 
< leftportant
 
6:55 PM
Significant Otter
 
Otterly Significant
 
For some reason, this is now my most popular code golf answer:
109
A: The kitten command

DennisBash, 19 bytes cat "$@"|tr A-Z a-z The best way to make kittens is to use actual cats. Example run $ ./kitten kitten cat "$@"|tr a-z a-z

Conclusively proving that hard work doesn't pay off...
2
 
Haha
 
bah, why even try... (╯°□°)╯︵ ┻━┻
 
People like funny answers.
 
6:57 PM
I think my most popular one wasn't even codegolf=)
 
You used cat to implement kitten. That's pretty amusing.
 
@flawr I have more popular answers, but not to code golf challenges.
 
The top comments too.
 
Congrats
 
6:59 PM
Congrats!
 
I need to downvote 448 times more until I get that nice number!
 
(Now ruin your score by accepting the Perl answer. :P)
 

« first day (1707 days earlier)      last day (3126 days later) »