« first day (1882 days earlier)      last day (2962 days later) » 

4:00 AM
ROFL
never let the Internet decide anything
 
2 mins ago, by Dennis
A prime example of a popularity contest gone wrong.
 
Mountain Dew tried to name a flavor and got something along the lines of "Hitler did nothing wrong". Clearly, they cancelled that one.
 
>.<
Dewey McDewface would have been a much better choice.
 
TootToot McFeatherBus #TheInternetNamesAnimals (image: http://lirralirra.com) https://t.co/cL2k7AYLSq
 
This happens every day in the WHOIS inbox for Stack Overflow (and related domains): https://t.co/MZqkz8WSJW
 
4:07 AM
haha
 
Eh, if the price is right...
 
If I had a ton of money, I would pay SE to pay me to golf.
 
That's a job I would take in a heartbeat.
 
You could earn the big bucks.
Rollin' in the Benjamins
 
If only...
Good night!
 
4:23 AM
Good night!
 
0
A: Solve a Linear Equation

Mama Fun RollDesmos, 31 bytes h(x)=f(x)-g(x) h(0)/(h(0)-h(1)) Try it here. Takes 2 functions f(x) and g(x) for each side of the equation. No builtins!

My first real Desmos answer.
 
5:13 AM
12
Q: Sorting rectangular matrices

MegoGiven a matrix A, we can say that it is "sorted" if each row and column of A is sorted (ascending left-to-right for rows and top-to-bottom for columns). Thus, this matrix is sorted: [ 1 2 3 4 5 ] [ 2 2 3 4 5 ] [ 3 3 3 4 5 ] [ 4 4 4 4 5 ] [ 5 5 5 5 5 ] However, this matrix is not sorted: [ 1 2...

Correct me if I'm wrong, but many of the answers here seem to have misinterpreted the question.
 
Can you give an example input that any of the solutions give an incorrect output for? @MamaFunRoll
 
@isaacg Just look at the test cases in the problem.
 
Those test cases give example outputs
The problem specifies "Because there are multiple valid outputs for each input, these are possible outputs. "
What is an input that one of those solutions gives a wrong output for?
 
Oh... nevermind then :P
Brain fart
So sorry about that
 
It's fine.
 
5:19 AM
Man, I misinterpreted the question.
Geezus.
 
 
2 hours later…
ven
7:04 AM
Ahoy
 
Arrrr
 
7:25 AM
o/
 
o/
 
7:50 AM
@CoolestVeto: Thanks for following me on Twitter haha
 
 
1 hour later…
9:01 AM
Thanks anonymous bold text
 
ven
9:12 AM
:P
 
9:40 AM
Welp, I made a local countdown for Moscow time. XP Will try again later.
 
10:09 AM
I downloaded to my flash drive ZYABINA1 a lot of 2400² test images from TESTIMAGES.
By that, I meant ~200 MB. ಠ_ಠ
Also, my TV receiver really burns the flash drive.
I mean, it still works but my TV receiver intensively uses it, gradually increasing the temperature.
 
@zyabin101 Insane=)
 
11:08 AM
If anyone has the time, feedback on my website is much appreciated. Ping me about it
 
@ZachGates It's pretty fine.
 
@quartata I was reading your moderator post, and I like your commitment to cleaning up old questions
 
12:07 PM
0
Q: Mandlebrot Maze

Nick AIntroduction As we probably all know, making a maze by hand is a long and arduous task. So let's generate a new one. Your task here is to generate a maze so that the shortest path through the maze resembles the mandlebrot set. As an example, here is a maze and it's shortest path, starting fro...

 
ven
12:27 PM
damn you, long package names :P
^ I'm not sure how to add language tags on SO? looks around
 
@ven If it's a mainstream language, chances are that on Stack Overflow, the tag will be popular and kept. If it's a golfing languages, it will definitely be burninated. Or did you mean PPCG?
 
Creating a new tag? Just tag the question with it and it'll auto-create. Just make sure that it's a good tag to create in the first place.
 
But, that requires some reputation. See codegolf.stackexchange.com/help/privileges/create-tags.
199 rep is enough. :)
 
ven
12:42 PM
@TimmyD 'tis not a question.
@zyabin101 I meant PPCG
it was just <!-- language: lang-scala -->–did not realize the need for lang- prefix
 
ven
oh, -all? thanks
 
12:58 PM
What. The. Hell. (probably NSFW)
 
1:15 PM
Reminds me of Cloudy with a Chance of Meatballs.
 
Soooo close to 400 answers ...
 
1:28 PM
 
Hey
 
@NathanMerrill Thanks! I think it's really important that those old questions be kept presentable and that they don't hve any nasty answers. It's truly surprising how many answers challenges got back then that would now be considered standard loopholes.
or weren't golfed or didn't work..
 
@everyone Check out the community bulletin to the right of the main page. There, I found a link to a post from Meta Stack Exchange. Please read it.
 
Can you just post the link?
2
 
55
Q: Preview: A ToS update restricting companies that scrape your profile information without your permission

Jaydlestl;dr: We’re planning to make some changes to our ToS to stop companies from scraping user profile information from multiple websites and then spamming them. The changes only restrict a specific kind of commercial use of profile data that is scraped or copied from our site without the user’s per...

 
1:40 PM
0
Q: Convert a base-10 number into a number of any other base

ZacGYou have to take a base-10 number (e.g. 735) and another number for the base to convert to, and convert the base-10 number into the equivalent number in the other base. Rules: You aren't allowed to use any conversion functions built into your language This is code-golf, the shortest answer i...

 
@NewMainPosts Llama, llama, another llama.
 
@TimmyD Three llamas? Which ones?
 
Optimizer Doorknob and this guy.
 
I thought doorknob counted for two. Isn't he llama@llama?
 
Ahhh, good point. I suppose that makes 4 then
 
1:44 PM
Do any of you know how to turn cls.method(self, args) to self.method(args) in python?
 
Llama, llama, duck(-billed platypus).
 
without any nasty hacks
I have getattr(self, cur_func.__name__) at the moment
but I was wondering if there was a cleaner way to do it?
 
Ooo ... Community dupe-closed that one.
 
@muddyfish I take it you can't change the class? If so then no at least not without reflection
 
what do you mean?
 
1:47 PM
@TimmyD That means the challenge author hit the "yes this is a duplicate" button
 
@TimmyD I think that means the OP agreed, so it insta-closes even though he doesn't have the usual permissions.
dammit
 
@muddyfish i.e the code for the class isn't yours
 
I just find it amusing, as it's not something you see happen very often.
 
it's from a module or something
 
Poor Community. Not belonging to any Communities.
 
1:49 PM
Actually he belongs to every community but they are hidden on his profile
Hmm, I wonder if Community is a she.
 
Nope. Every Community is unique.
A Community of Communitys.
 
Probably best to play it safe and do he/she
 
(s)he
 
it
 
@TimmyD I am pretty sure it is one user since IIRC someone modified his hats network wide last winter bash
 
1:52 PM
eugh
my internet dies
 
@muddyfish :(
 
it is but I want to be able to use a function to get the function without initialising the class
:(
 
@quartata I refuse to let a little thing like "facts" get in the way of my grandiose musings about the inner workings of a piece of code on a website.
:D
 
So i want to have code-reuse but make it not hacky
 
All the Communities are user id -1, right? Seems like it'd be easy enough to modify all of them even if they aren't one account.
 
1:53 PM
@muddyfish But the function operates on an instance of the object right
 
ven
moar APL <3
 
yes
 
@Geobits It isn't something a moderator could do if that were the case.
 
Yea, I assumed it was a CM or other employee either way.
 
I have a function that doesnt belong to an instance and im trying to give it an instance
ok
I fixed it
woo!
its not even that hacky
 
ven
2:02 PM
> You've earned the "Yearling" badge (Active member for a year, earning at least 200 reputation).
lol. I've actually only started contributing some code golfs two days ago :P
 
@ven I think the badge counts time from your sign up for Stack Exchange, as a whole, not counting time taken for each community.
 
ven
@zyabin101 yeah :)
(I actually posted an answer in 2014, but that's been all to date)
 
@ven 999 GET!! Congrats for the 28509999th chat message.
 
Dupe-check -- "Given as input an unordered list of integers and a target integer, output all pairs from the list that equal the target." ... This feels like we've done it before, but I can't seem to find one. This and this are related but not the same. Inspired by this over on CR.
 
@TimmyD You mean all pairs whose sum equals the target?
 
2:09 PM
Right.
 
ven
would seem like a fun idea to have a spinoff of this challenge which requires to Stack Overflow when google is the input :P
 
@TimmyD I also don't remember seeing that before, and searching also didn't turn up anything. I don't think it's a dupe.
 
I'll sandbox it up.
 
This is pretty close.
 
Ah, dang. Yeah, that's close enough I'd say it's a dupe. I knew it felt similar. Thanks for the find.
 
2:29 PM
0
A: Sandbox for Proposed Challenges

Mr PublicCalculate the last N digits of Graham's Number fastest-code Write a function or program that, given an integer x, outputs the rightmost x digits of Graham's Number. Rules: You may not hardcode the answer in You may not fetch the answer from an external file or library Scoring: To Be ...

 
ven
wait what, i got the meta yearling badge as well¿¿
 
2:46 PM
@zyabin101 That's incorrect.
 
@ven How does your base-conversion APL work? That's just witchcraft.
 
@ven You posted a few answers in 2014. Those count as well.
 
ven
@Dennis only "how to golf in"
@TimmyD it takes the indices of string in from_base, then indexes into to_base with these indices :)
 
The badges don't care. :P
 
ven
true!
I feel accepted in the codegolfing community, after a piece of my code has been called "witchcraft" =P
 
2:48 PM
There is no higher honor.
 
Well, it is APL ...
The only way it'd be "more witchcraft" would be Perl. ;-)
 
ven
my previous answer was Perl 6 :P
 
Perl 6 is way too sane. Perl 5 on the other hand...
5
A: The Programming Language Quiz

DennisPerl 5.10, 139 bytes, cracked by primo ~!0!~('@"/(@`)~@``^"|'.(('" _]'^'|"`&').('[)).["[}(@,@@ {~/),$}@{**(!(^$&%{%{*[/,`, '^'+[@@/+{_`%@,/&[)@[@@_`[# !(!~-/,[,[#{&%@').'"!"})')) Verification For obvious reasons, the above code is deemed unsafe in modern versions of Perl. However, in Perl 5....

 
ven
@Dennis right! but I started by learning Perl 6.
my perl 5 is bad.
I answered in APL, LiveScript, Perl 6 and Scala since I've started contributing (... 2 days ago). I need to take up on Jelly, CJam, GolfScript and Pyth...
@Dennis what would be your suggested stack-based golfing language to learn?
 
> stack-based
You're only leaving Dennis with 2 options there, basically :P
 
ven
2:53 PM
aren't Jelly, GolfScript and CJam stack-based?
 
Nope.
 
Nope (at Jelly)
 
ven
oh, okay :D. see, I know 'nuthin 'bout 'em. (though I started learning bits of Pyth already, and annoyed @isaacg :P)
 
GolfScript is rarely better than CJam, except for quine and restricted source challenges.
 
ven
really? i thought i had read the opposite :o.
 
2:55 PM
I like Seriously, because every program simply looks like a cat wandered across a Unicode keyboard.
 
ven
okay, so cjam it will be. thanks
 
GolfScript came first, and CJam was designed to be a better GolfScript
 
@ven Not a chance. GolfScript basically has no built-ins.
 
ven
Ah! I'm confusing the story in my head
 
We have a lot more stack-based languages though. MATL is usually fairly competitive.
If you're familiar with APL's trains, Jelly should be easy to learn.
 
ven
2:57 PM
would it be right (at all) to say that MATL is to Matlab what Pyth is to Python?
I've done a bit of J and APL, yeah
Jelly looks a bit too scary right now.
 
Utterly smashes it so that it's basically a different language? Almost.
 
Pyth and MATL could have been implemented in any other language.
 
ven
does MATL not expose many of the matlab BIFs?
 
googles BIFs
finds Busan International Foreign School
 
I disagree with the Pyth part, but I don't know enough MATL to comment :P
 
ven
2:59 PM
built-in function, sorry.
name used in erlang and some others
(hah, reminds me I "golfed" with elixir... I'm not sure it's a good idea at all.)
 
Yeah, sure. Both Pyth and MATL make extensive use of their parent languages' built-ins. But they're not a shortened version, but an entirely different language.
I've been wondering: Would you get Populist for outscoring your own answer?
 
(except when they include things like $)
 
@Dennis It's Built In Functions, or built ins, as we call them.
 
ven
oh, you mean in that sense. Yeah, I at least know matlab isn't stack-based..
 
@Sp3000 Oh, right. I forgot about $.
 
3:02 PM
help I have a weird glitch where exiting fullscreen compresses the top of my window!
 
I added a question to the collection thread. Let me know what you think:
0
A: 2016 Moderator Election Q&A - Question Collection

I Go BestThis is one of the questions listed in the default set, but not guaranteed to show up unless it's split off and voted on. I think it's important, though, and would like to see it asked (and expanded on a bit): In what way do you feel that being a moderator will make you more effective as opposed...

 
@Cyoce Solution: don't use Mac. ;)
 
@Dennis I think no. The accepted answer should give reputation for accepting.
 
@El'endiaStarman but this thing was expensive! :(
 
@El'endiaStarman ಠ_ಠ
 
3:04 PM
@Cyoce Well, if you paid for it, that's your problem. If not, then...uh...guess you can't do anything about it. :P
 
Also, it's either this or (shudder) Windows
 
@zyabin101 What does that have to do with anything? It's not my question.
 
@Cyoce My turn to ಠ_ಠ.
 
presses button on timer
 
ven
do you even ಠ_ಠ
 
3:07 PM
What hardware runs only Mac or Windows? o_O
 
ven
my brane
 
Brains are squishy, not hard.
 
@Geobits Well, there's at least some given that "hackintoshes" are a thing.
 
I didn't see a software discussion :P
 
ven
my brain has a hard time running
 
3:09 PM
What software discussion?
(No, I'm totally not covering my tracks.)
 
The only software mentioned is Chrome, which I can confirm runs on other OSes ;)
 
ven
mmh, I wonder if the CJam documentation/tutorial is available in pdf
 
@El'endiaStarman Couldn't you just install something else on the same hardware though?
 
@Geobits I guess it depends on what you/we mean by "hardware".
 
AFAIK, a hackintosh just means "installing OSX (or whatever) on non-apple computers". That doesn't mean you couldn't also install some linux flavor, or whatever else on it.
 
3:13 PM
^
 
Where can I see the stats of the site?
 
Hmm. What is it called when you install Windows on Apple computers?
 
@zyabin101 Are you >5k?
Otherwise, nowhere.
 
@El'endiaStarman Sanity.
 
@El'endiaStarman Nothing special.
@TimmyD ಠ_ಠ
 
3:13 PM
@El'endiaStarman A waste of money :P
 
DON"T STAR THAT
 
@TimmyD +1 :P
 
and ^^^
damnit
 
@Geobits Not necessarily. You might want to buy Apple hardware for their (comparative) reliability.
 
Apple hardware does tend to have features / form that you can't find elsewhere.
For example, frickin' huge trackpads on their laptops.
 
3:15 PM
@El'endiaStarman Sure, there may be other reasons. I've never had a reliability issue with non-apple stuff though.
Meh. Trackpads are the devil, so size isn't a feature I care about much for them :P
 
If anyone is willing to settle with apple, I can give free os x .iso files.
 
@Geobits That may be in part because you, a computer person, take care of your stuff. :P
 
But you're the one getting sued.
 
@EasterlyIrk I was about to say, isn't that illegal? :P
 
@El'endiaStarman hahahahahahahaha. you should see my four-year-old desktop right now. it looks really pitiful.
 
3:16 PM
@El'endiaStarman Yes. It is illegal.
 
> size isn't a feature I care about
( ͡° ͜ʖ ͡°)
 
@El'endiaStarman possibly.
 
@TimmyD I don't need to care about size if I've never had an issue with it ;)
 
@Geobits Okay, I take that back. You're just the exception then. :P
 
You can download trial versions of Mathcad 15 and Mathcad Prime 3.1 (the successor to Mathcad 15). Both trials run for 30 days, after which M15 stops working, but Prime 3.1 still runs, albeit with reduced functionality (eg, no programming - so the above won't work ... but the for loop can be rewritten to use range variables to create v outside of the augment statement) — Stuart Bruff 15 hours ago
 
3:18 PM
Maybe I'm just lucky, I dunno. Hardware reliability hasn't been an issue. I had one hard drive fail fairly early once, but that's about it.
 
But even then, I think it isn't a free language.
 
Huh? No he's not >_>
 
i saw that
 
@Geobits I had a hard drive hard-fail on me right in the middle of playing Half-Life 2: Episode 2 ... $1500 later, I had all my data back. I learned a valuable lesson in "data you don't back up is data you don't care about" and also since then, every computer I've built has been RAID1 or RAID10.
@zyabin101 Where's the stipulation that the language must be free?
 
Luckily, when I say "early", I mean early. As in, take it back to the store early.
I didn't have much on it yet.
 
3:23 PM
27
A: Loopholes that are forbidden by default

isaacgUsing a non-free language on a Cops and Robbers challenge Most (currently all) cops and robbers challenges consist of two parts: A cop submission, where a user posts some secret property of a program, such as its output, a scrambled version of the code, etc. Then, other users, the robbers, try...

But that only covers lockers v. crackers challenges.
 
Right. And the linked challenge isn't CnR.
 
Link to the answer?
IIRC you may use any language you want, as long as there is an interpreter.
 
ven
MetaGolfScript is a... cute idea
 
:/
 
3:29 PM
0
A: Random array without repetition

Stuart BruffMathcad, 67 "bytes" creates a column vector of consecutive integers in range 1..R, joins it to a column vector of length R of (uniform) random numbers, sorts the resulting Rx2 matrix on the random number column, and then extracts the first n numbers from the randomized column of integers.

 
He just added trial links?
 
Especially getting the highest voted answer from the selected wuestion — TheDoctor Apr 10 '14 at 21:13
> wuestion
 
Qhat's the problem?
 
Qednesday?
 
3:46 PM
Not my answer or challenge, but I'm calling this out because dang. Awesome stuff.
1
A: Stuffing primes in a box

Amos M. CarpenterSmalltalk, 1098 primes First off, nice hard question - as evidenced by the lack of non-trivial responses thus far. I had a solution cooking at work, but had to wait for the long weekend to have time to clean it up a bit. Even so, it's quite "heavy", so excuse the length of this answer - thankfu...

 
Has anyone ever successfully received a password reset email from sony? This is getting stupid.
 
0
A: Stuffing primes in a box

SuperJedi224Javascript, score 659 Almost certainly suboptimal. lenof=function(a){return (""+a).length} Array.prototype.peek=function(){return this[this.length-1]} primes=[ 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 1...

I see this answer just hardcodes the primes.
 
> Your program may compute or check numbers at run time, or have them hard coded.
 
@Geobits I actually have one pending? from ~ 1.5 years ago...
I used to have a PS, but not anymore.
 
@zyabin101 Coming up with (computing) a list of primes isn't the interesting part of the challenge.
 
3:56 PM
@Geobits How long has it been?
 
16 hours or so.
 
lichess took 27:34.
 
tac
Would it be possible to get Shog or other SO mods to unlock stackoverflow.com/questions/tagged/code-golf and migrate them here? A lot of those seem to be good quality, maybe with a bit of editing, they'd be nice content
@Dennis @AlexA. ^
 
4:03 PM
The vast majority are too old to migrate
 
tac
I didn't know there was such a thing. That's kinda unfortunate; could they be re-asked here (if they aren't already dupes)?
 
With credit to the original author, sure, I guess
 
@tac I think most of them wouldn't meet our quality standards. For starters, many seem to be restricted to a single language or a small list of them.
@Doorknob IIRC it's still possible by pestering a dev, but it's probably not worth the trouble.
 
Anything Is Possible™ with dev intervention
4
 
Including an angry dev.
 
4:16 PM
 
@Doorknob TIL: dev intervention is the same as zombo.com
LOL at the loading screen for elections.stackexchange.com/#codegolf.stackexchange which includes the phrase "Reticulating splines."
 
tac
4:31 PM
@Dennis I was meaning more about their challenges, not the posts in specific -- obviously, they would need heavy editing and spec changes if they were migrated
 
Just recreating the challenges that are worth it is probably a better idea.
 
4:51 PM
-1
Q: Glofing Class of a language

Not that CharlesI feel like we may have enough data on this site to meaningfully break programming languages into classes. What I mean by classes is akin to Go's ranking system: If a player can win 90% of even games against a 2 kyu player, the AGA believes he or she is 1.33 ranks higher, the EGF believes (s...

 
Does PPCG have an AutoReviewComments template/config file/whatever? If so, where?
 
0
Q: The keyword keyboard

EMBLEMInput A single character, [a-g], from STDIN. Output Produce, in any format you choose, a 1.5 second tone corresponding to the musical note of the character. The note may be from any octave but must be within the range of normal human hearing (20 Hz to 20000 Hz). See piano key frequencies. You ...

 
5:35 PM
allo?
 
Hey @quartata. So I don't know in which versions of Ruby that 2r == Rational(2) == 2.to_r trick works
And I'm having trouble finding it anywhere but that post in "Tips for golfing in Ruby" post
 
Doorknob probably knows.
@Doorknob
?
 
@quartata Does PPCG have an AutoReviewComments comment list?
 
Found it. The following link says the syntax number r was introduced in 2.1 blog.honeybadger.io/ruby-rational-numbers-and-fractions
 
@zyabin101 No (at least far as I'm aware). Frankly I don't think any site should; it feels really impersonal just to slap a generic comment on a question that has problems.
2
At minimum you should tailor your comment a little bit
@Sherlock9 Ah. I really should update my Ruby version...
 
5:44 PM
Probably
Man, I like the new SE mobile chat. I can edit messages now! :D
 
Wow though, 67 bytes. That's almost half of the Python answer
 
Well, that stinks. I should go look at the Python answer
 
We should have an A+B challenge. You have to write a program which sums two integers, spaced apart or on separate lines.
 
I'm not sure we should, but we probably already do.
 
It's rather trivial.
+ in most infix language.
You could restrict builtins, but those types of challenges are not generally the best
 
5:52 PM
 
Just + in J or K.
And APL.
 
I always thought it was cool that K curries dyadic verbs.
 
Mmmm curried verbs
 
Define curry in the context of K?
 
5:56 PM
Is that short for verbetables?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ 2+ gives a monadic verb that adds two to the argument
 
@quartata Oh, yeah, J does that too sometimes
iirc
 
Are there any git experts in here?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ In J you need an adverb: 2&+
 
By the way, @quartata, if you just need the function to return and don't need to print, you can save two bytes by dropping p
 
5:58 PM
@AlexA. Doing a Google or Bing image search for curried verbs yields some interesting results.
 
Most functional languages do currying in some form since it comes from beta reduction in lambda calc
 
Cause I am most definitely not a git expert.
 
@Zgarb Oh. Why does 1+? work, then?
 
@TimmyD o_O that it does
 
That's 1 (+?). A hook.
 

« first day (1882 days earlier)      last day (2962 days later) »