« first day (2560 days earlier)      last day (2288 days later) » 

12:17 AM
Anybody else have a moment when they are having this bug for a really long time, and then they actually read the documentation, and it's actually right there?
 
12:33 AM
0
Q: Editing code-golf answers to add headers

jrtapsellIs it considered bad to edit old code-golf answers to add in headers so that the answers can be easily seen by tools using the SEDE or data dumps? I can see pros and cons to doing this, and I what is the correct thing to do in this case. Pros: Allows for easier analysis and searching Can brin...

 
 
1 hour later…
1:37 AM
CMC: given a number N>1, yield the sum of two random integers between 1 and N, negating the second. E.g., N = 2, 1 + -2 or 2 + -1
 
So the (signed) difference of two random numbers.
Distribution please?
 
How does this code look? It's for my friends text adventure, so not golfy at all.
 
Useful comment to read (for newcomers who like banning golfing languages):
Re 1. if you encourage downvotes, please encourage them for boring solutions, not for languages you personally dislike. Re 2. Limiting the admissible languages for a challenge is very much discouraged on the site. Saying "I don't like your language, you can't participate" isn't really nice. Especially since these lists will always be completely arbitrary. And once you disallow CJam, GolfScript and Pyth, you'll get the same complaints about the (non-golfing languages) APL, J and K. And when you start disallowing those people will complain that they can't beat Perl. — Martin Ender ♦ Sep 15 '15 at 14:24
 
@ConorO'Brien Pyt
7 bytes
 
Fixed it
 
1:40 AM
can anybody find a fairly high resolution image of the esolangs logo?
all I have is a very tiny measly one :(
 
@ConorO'Brien do they have to be unique?
 
@ConorO'Brien APL: -/?2⍴⎕ if with replacement, -/2?⎕ if without replacement.
 
@totallyhuman i can't view image on the one on the wiki at the top left
 
@DestructibleLemon no they do not, 2 + -2 is valid
 
Actually, @ConorO'Brien Pyt: 6 bytes: řĐʀ~+ʀ
 
1:49 AM
@mudkip201 The rhotics are unreal
 
python:

from random import*;r=randint;x=input();print r(1,x)-r(1,x)
I think
 
lol
@Zacharý there are more. Řɽɾɹŕṛ are all also valid commands
:P
 
Are they are related?
 
ř and Ř push ranges, ŕ removes the top of the stack, and all the rest are random generators
 
is the next step pt or py?
 
1:54 AM
Guess you could say the relation is a bit ... RRRRRandom?
@DestructibleLemon pþ or pð
 
lel
 
who says that second one though
 
@DestructibleLemon Éh?
 
Ǝƕ?
 
the th isn't voiced
 
2:01 AM
you mean /pθ/ then?
 
Youre right ... but then it could be /pθ/ as well for IPA
I got ninja'd on the IPA, rrrrrly?
 
yep
also, wouldn't /pð/ be kinda hard to say?
 
Angsts
Angsts my friend, angsts
It could be said as P Ð /pi eð/ (with /e/ being the sound in "bet", because I can't type it on my keyboard)
 
do you pronounce that /æŋsts/ or /æŋksts/
:P
 
/æŋksts/
 
2:03 AM
just checkin'
 
As long as it's not anything outrageous, like syllabic stops...
 
applies 'a'a to @Zacharý
:P
 
@mudkip201 Quoi?
 
oh. syllabic stops
I was thinkin' glottal stops
 
Uh-oh, you got it wrong :p
 
2:07 AM
@Zacharý here, have this en.wikipedia.org/wiki/Nuxalk_language
 
I know, that's where I know they exist from.
 
lol
 
Yep, LOL indeed.
Or "lel"
/"lul"
/Whatever internet-style laugh you use
 
/lɔl/
 
there are glottal stops in some accents of english
 
2:11 AM
well, yes. But we don't really think of them that way
 
Hence, uh-oh, you got it wrong
 
You mean a replacement for t in words like 'bottle'
that too, @Zacharý
 
*bashes the lemon with a bo-le
 
2:13 AM
@DestructibleLemon but it's also used as a null onset in English
 
2:26 AM
b is p but voiced, how come d isn't a gw sound
or q a t sound
 
Speak of the devil, Ðproductions is here
 
what did you just say about me
 
That ... pushes self-destruct button of Lemon
 
2:32 AM
This is getting too cringe
 
Aug 7 '15 at 6:25, by Alex A.
If I ever become a mod, I'm going to change my name and avatar to "FUN POLICE."
I see an undelivered on promise
 
Is there a specific reason we're having a mod election? They don't seem to be annual and it's not like our site has hit a milestone (or has it?)
 
because it's fun
 
police
@totallyhuman Where is the qat at?
 
2:49 AM
@Zacharý The Horn of Africa and the Arabian Peninsula
...
lol
 
@Zacharý delete this
 
Won't that cause an error though? :p
I don't know why, but I read that as something awful.
 
3:04 AM
@Downgoat it's annual
second one since graduation only though
(the first one was when we re-elected alex, knob, dennis, martin)
 
@Riker we didnt have one in 2017
 
we didn't?
huh
maybe biennial
 
It's not strictly annual. If the site doesn't need more mods, there are no spots to fill.
 
@Dennis So who decided PPCG needs more mods this year?
 
SE of course
just like any other questionable decision /s
 
3:08 AM
I think it's a perfectly reasonable decision
 
<half-joke> Who needs more mods? We have Dennis! </half-joke>
 
Dennis will eventually crumble under the pressure.
 
speaking in the third person is one of the first signs of insanity in the average human being
 
Noted by talking in 3rd person
I've been ninja'd
 
@Riker Definitely not one of the first in me.
 
3:10 AM
@Dennis that is true
 
@Dennis We still need Dennis to run TIO, so we can't have that.
 
@Pavel Not much to decide. It was pretty evident.
 
@Dennis if you don't mind me asking, are the other mods (except for alex) still semi-active in flag handling and stuff?
or are there not enough mod flags to really say
 
I've only been semi-active myself lately.
 
Are there any handy text-to-Mornington-Crescent converters?
 
3:26 AM
@MDXF don't think so
you can always check timwi's thing tho
 
ooO fancy i can manually delete and edit my copy-paste clipboard content :p
 
0
A: List of bounties with no deadline

MD XF250 rep for Script that outputs a script that prints a given input in Mornington Crescent Simple enough.

 
Ooh, that's hyper-fancy, éh?
 
@Riker well ^^ should do it
 
3:56 AM
One of my friends wants to know some examples of "relatively complicated recurrence relation problems."
So I'm outsourcing the brainstorming to TNB.
He's using the Josephus problem as an example (the problem where every Xth person from a group of N people is killed until one remains).
 
I might be installing 3 copies of DMD >_<
 
@Zacharý DMD?
 
Interpreter for the D language
Would "aptd" be the process that installs things?
 
@Zacharý Probably, I wouldn't reccommend killing it though
If you're installing it through apt, you shouldn't be getting 3 of anything. That's the point of a package manager.
 
Yeah, that makes sense
Wait ... next it should be ðp ... get it? ðp roductions ?
*takes a bite out of ATaco
 
4:20 AM
Ahh!
 
I'm just waiting for cmake to install
 
@Zacharý Given the taco is clearly made of Lego, that seems like a bad idea.
 
*A Taco
 
A much better decision.
 
Do dependency installations take a long time?
 
4:27 AM
@Zacharý For me, installing Clang takes less than 10 seconds.
So.
 
request: google doesn't show it's stupid little "translate" box on searches where that lang is horribly incomplete :p
(see; irish)
 
$ time sudo dnf install dmd -y > /dev/null
sudo dnf install dmd  6.36s user 0.78s system 47% cpu 15.085 total
@Zacharý What are you trying to install?
dmd doesn't depend on clang
 
The allegro game engine, along with a d binding. Of course my internet happens to go out when I start installing it.
@Pavel when did I ever say clang?
 
@Zacharý You didn't, and I confused clang and cmake
 
Ah, I see.
I'm just gonna wait for my internet to come back up, then restart the installation...
 
4:42 AM
What's a clever name for a chatroom/Discord server for fixing/joking about memory leaks and other memory issues in C?
 
leaky memory
 
MemC? I'm bad with naming things
 
@Οurous what do you think about ^^^ you're good at naming things
@LeakyNun I'm sure that's in no way biased towards your username ಠ_ಠ
 
@MDXF Amnesia (losing memory)?
 
Ooh that's not bad
 
4:46 AM
Amnesia actually does seem like a good name for the chatroom and or discord server
Yay, it's back up
 
1
Q: Fryer simulator

ngnYour task is to model the effects of batter on pieces of food. Please add three layers of crust. [[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0], // in [0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0], [0,0,0,1,1,1,0,0,0,0,0,0,0,1,1,0,0,0], [0,0,0,0,1,0,0,0,0,0,0,0,1,1,0,1,0,0], [0,0,0,0,0,0,0,0,0,0,0,0,0,1,1,1...

 
:D Just bought Mathematica
Just need to wait for my student status to be approved
Also, after getting paid just now, I had literally 47 more cents than I needed to complete the purchase.
 
5:07 AM
@Pavel is buying mathematica cheaper than buying raspberry pi
 
@Downgoat Not if you include the cost of selling your soul.
 
@Downgoat ^
I like Wolfram Research, and wish to support them by paying for Mathematica.
Also, I'm a dumbass.
 
@EsolangingFruit selling your soul to RasPi or Wolfram?
 
@MDXF Both, but Rasberry Pi provides the necessary component to get a new one.
 
Wolfram: Mathematica Student Edition [Linux] (4.5 Gb) - Estimated download time: Under 1 minute
5
 
@Pavel ironic a software/company based on complex maths and powerful state-of-art computation cannot do basic download time calc
 
@PhiNotPi Josephus is a pretty good example
Especially since it's complicated as all hell after X gets larger than 2
 
Refreshing the page fixed it by the way. It now estimates download to be over two hours, which sounds more correct.
 
Part of the reason for this is that it's somewhat like an exponential function in the background
Solutions for Diophantine equations have some relatively gnarly recurrence relations
 
5:55 AM
So now I'm having a problem with stack exchange CSS. Anyone know how can I replace the primary.css on all sites of SE with a version I provided? (locally)
... I hate oneboxes.
 
@user202729 Um. Sorry.
 
 
2 hours later…
7:40 AM
2
Q: Column-wise summation of overlapping slices

Mr. XcoderTask Given a list of integers L and another integer s, the goal is to compute the column-wise sums of all s-length (potentially overlapping) slices of L, while pertaining their positions relative to L (see below). Definitions The s-length (overlapping) slices of the list L are all the contiguo...

 
7:53 AM
@MDXF "pointers on how to avoid losing strings"
Or things, if it isn't string related.
 
:o TIL we had ?-keyboard shortcuts on SE
 
@Mr.Xcoder that isn't a dup
But there was a question that was almost the same
 
8:12 AM
@betseg You mean this?
Well, if you want to see if it is a dupe or not, wait for Peter to see it :P
 
@Mr.Xcoder yes
Ugh I can't find it
 
I searched quite a bit before too, but couldn't find anything
 
9:08 AM
@user202729 I believe I fixed your solution with JṡṬS×⁸ while also saving a byte
 
9:21 AM
my new golfing language is closed source with a $49 license and if you want to learn it, its book is $94
 
9:59 AM
@miles I didn't know about . Thanks!
@miles I guess you should post it.
... ṡFµSƙ almost worked ...
 
10:18 AM
I can prove that the "get two from one" challenge is solvable. Solution coming soon.
@HeebyJeebyMan Why ? It's not even related to coding. (but you're likely to code to solve this anyway)
... after all, the "minus 8" part is just for nice looking score. Just like how we make golfing languages while competitions are for each languages, not between languages.
 
Anonymous
Anyone interested in being on the next episode of the PPCG Podcast, or anyone who wants to suggest topics, come on down to the PPCG Podcast Room!
 
11:58 AM
When is the next Podcast?
 
Anonymous
TBD - that will largely depend on what guests I get
 
Okay
 
0
A: Sandbox for Proposed Challenges

Евгений Новиковfunction magic(in){ if(in.boolean != true){console.log("non-true");} if(in.boolean != false){console.log("non-false");} console.log(in); } prints non-true non-false {"boolean": true} What is passed to magic function? Based on real problem :) I spent 30 minutes on this puzzle

 
VTC
 
12:17 PM
And why didn't they just use x and! X instead of treating inequality with true and false
 
Anonymous
12:28 PM
@Zacharý Presumably because that's part of the "puzzle"
 
@Dennis @MartinEnder Can you give Jay Foad write access to The APL Orchard?
@ThomasWard ^
 
12:51 PM
@Adám done
 
@MartinEnder Thanks!
 
 
1 hour later…
1:56 PM
This site is for programming contests, not pure programming puzzles. Thanks for using the sandbox, anyway. — user202729 2 hours ago
lolwut
 
Still better than posting directly to main and then get downvotes, right?
 
@AdmBorkBork PPCG → PCCG.
 
If SE cares about us.
 
@user202729 Programming Puzzles are on-topic, though, so I don't understand your statement.
 
... how?
 
We should totally make programming puzzles off-topic.
 
19
Q: Are pure programming puzzles on topic?

xnorThe tag wiki for programming puzzle says: A programming puzzle includes a goal, a partially completed program, and rules outlining how the program can be modified. The program is specifically designed to make achieving the goal difficult. An answer to a programming puzzle takes the prog...

 
.... people can correct me if they like.
If that sandbox challenge later receive a lot of upvotes, most of the voters are copycats.
 
2:21 PM
@user202729 or maybe the drama attracted attention and folks like the idea
 
2:43 PM
@Shaggy FYI the hammer only works for closing as a dupe
 
Anonymous
It's probably a good time to close nominations and start Best Of voting
 
tfw your code fails the test case... but only since the TIO version forgot the print statement
 
I concur.
 
@EriktheOutgolfer Good to know, thanks, Erik.
 
3:02 PM
@Mego yup, it's February already!
but the voting is on the same post, it's just that the post gets edited (that is, post recycling)
 
Can I assign to lru_cache in Python?
(e.g., assume I implement a function f with cache having property f(f(x)) = x.
Then when the function f is called with x and the result is r, I want to store the result for input r too.
 
@Mego Technically I think there's a couple hours left, but yeah.
 
Anonymous
3:31 PM
@EriktheOutgolfer The post still needs locking so that more answers aren't posted and the existing answers aren't edited
 
@user202729 It needs a winning criterion tag of some sort and is the most broad. I consider generalized minesweeper to be a programming language and thus using it to be coding. questions were before there was a tag for them.
 
I built AND gate and XOR gate there.
 
There is a rather nice universal gate. I can show you but I have to go rn.
 
3:58 PM
@Mego We need to track down some other things for Kansas City Shuffle.
 
Anonymous
@PhiNotPi There's been plenty of time for nominations. I'd rather have only one nomination (and thus the post wins by default) rather than a bunch of space-filling nominations that pose no real competition
 
4:21 PM
0
A: Sandbox for Proposed Challenges

AdmBorkBork5 Day Weather Forecast code-golf ascii-art Weather forecasting: Wrong too often to rely on, right too often to ignore. Given a high and low temperature and weather condition per day, output an ASCII-art graphical five day weather forecast. The structure of the graphical indicators are show...

 
Has there been any challenge that asks to input a number, and displays all possible ways to write the numbers from 1 - n using only + or - sign , such that result is 0?
just checking for dupes. if there hasnt been one, i will write it cuz its pretty good idea for a challenge
 
I can't find it.
sounds like a good challenge to me as well
 
4:42 PM
Im going to attempt to write an interpreter for my esoteric language
I think to work out the more complex things Ill convert eveything into a more organized dictionary
Then convert that into python code
 
5:28 PM
@SnivyDroid If you write out the spec I can help you
 
What is a spec?
you mean spcifications
Specifications?
 
@Mego then we won't be able to upvote comments
maybe the question can be locked, but nobt as historically significant
 
I wrote this finally codegolf.meta.stackexchange.com/questions/2140/… , but the examples are pretty much big. Should I pastebin them instead?
 
0
A: Sandbox for Proposed Challenges

Manish KunduChallenge The challenge is to write a code that takes a positive integer as an input and displays all the possible ways in which the numbers from 1 - n can be written, with either positive or negative sign in between, such that their sum is equal to zero. Please remember that you may only use ad...

 
@SnivyDroid FYI, you can edit chat messages by clicking on them, then clicking the 'edit' link/button.
 
5:40 PM
@ManishKundu Challenges should be self-contained, so, if you post it on Main, include them in the post rather than pastebin-ing. For sandboxing purposes, I think pastebin works
 
Alright
 
Some low-rep user just went and corrected a bunch of headers on a question, left about 20 reviews behind them :/
 
Its already included in the post. I am bad at formatting though.
 
@cairdcoinheringaahing At least we have something to review :P
 
Yep :P Just reached 70 reviews in Suggested edits :P
 
5:42 PM
Talking about this user?
 
:o +48 today from edits
@cairdcoinheringaahing Haha, I am at the bottom :p
 
I think it's OK, just so long as he's actually improving answers
 
Of course it is fine.
@J.Sallé Yes, mbomb and I did.
 
5:44 PM
@J.Sallé Yep. And me.
Just because they're old, doesn't mean they don't have to meet our current standards.
 
Ugh, just fixed taking input in mapping-loops in Triangularity
 
I see, I thought SE was just being weird
 
@SnivyDroid yes, sorry I wasn't clear enough
 
I actually learnt more about what a derivative is from this question than from any of the informal calculus lessons my parents have tried to teach me :P
 
Derivatives can be explained really simply by just sticking to broad concepts: It's a graph of the slope of another graph at any given point
 
5:49 PM
ಠ_ಠ
 
(Technically, s/graph/function/ but you get the idea)
On an unrelated note, holy crap I've already reviewed 9 posts today. o_O
 
See about 10 messages up :P
 
Derivatives can be explained really simply by just sticking to broad concepts: they're evil.
 
The derivative f' of a differential function f : ℝ ⟶ ℝ is really just the limit as ∆x tends towards zero of (f(x + ∆x) - f(x)) ÷ (∆x), right?
 
@Mr.Xcoder Uhhhhhh, I think so. But that's a really technical definition
 
5:54 PM
It's objective :P
 
I just prefer to think of it as the slope :P
 
Indeed, the derivative is basically the formula for the slope at any given point on the graph (assuming the function is differentiable)
 
And a lot of the rules are really simple too. For example, if you can remember 1) Drop +- x for any constant 'x', and 2) x**n --> nx**(n-1), then you're already most of the way there
@Mr.Xcoder It's been a while since I've done calc. Remind me again, what can make a function not differentiable?
 
Fun fact: I discovered d/dx x^n=nx^(n-1) by myself
@DJMcMayhem When its graph has cusps, discontinuities, etc
When it has "corners", a function is not differentiable at those points
 
Ah, that's right
Or vertical lines (tan)
 
5:57 PM
Yeah
 
@Mr.Xcoder It's differentiable on the rest though. You can do a partial differentiation, right?
 
Yeah
 
@cairdcoinheringaahing I wouldn't mind if you pay me tuition fees for that
 
Assuming you mean deriving a restriction of that function by partial differentiation
 
@Mr.Xcoder Yep
@Mr.Xcoder How much calc have you studied?
 
5:59 PM
In school, ~0.
 

« first day (2560 days earlier)      last day (2288 days later) »