« first day (2592 days earlier)      last day (2234 days later) » 
00:00 - 16:0016:00 - 00:00

4:00 PM
@J.Sallé icons 2/3 are hurricane symbols
 
@Fatalize I second this.
I didn't have time before, but something like that would be awesome.
 
@J.Sallé After some searching, the circle with dashes inside is probably a default temperature icon, where the dashes would be replaced with digits.
 
@mbomb007 ah, I see. I wouldn't have known the hurricane one though, that kind of stuff doesn't really happen where I live :p
 
Nor where I live, but I knew it from school and from learning about what to do during disasters.
I think the news often shows that symbol over radar of a hurricane, too
 
@mbomb007 yeah those 'classes' for me were usually summarized with "Duck and pray."
 
4:07 PM
I learned in Boy Scouts. There can be preparation, like sandbagging, boarding windows, etc.
 
Would've been good to get some of that knowledge, although here the only natural disasters that have ever happened were politicians.
 
1
Q: Rebuild a rectangular array from a corner

PavelI once had a beautiful rectangular array. It was very symmetrical, but unfortunately it has fallen apart and now I only have the top left corner. Your task will be to rebuild the original array. Your program will receive a 2 dimensional array of integers. For ease of parsing, you may assume they...

 
@NewMainPosts I'm expecting a ≤3 byte APL solution
 
4:26 PM
@DJMcMayhem very similar to mad scientist's comment, honestly
asking for 4 auto-flags may be more well-received but you still run into the issue where the bot is flagging as real mods
 
@NieDzejkob It seems as though there is a problem with the parser. This is how it's tokenised, and it has no problem when the refs are different. I'll take a look at it
 
@Poke What do you mean flagging as real mods?
 
Andy is a mod on SO IIRC
@NieDzejkob Corrected, the tokeniser was deduplicating the tokens on each line
 
4:47 PM
@cairdcoinheringaahing Whaat? Why would you want to do that?
 
¯\_(ツ)_/¯ I can't remember
 
@DJMcMayhem I'm looking at your recent V answer and I noticed it starts with y. Does y do anything when nothing is selected or does V select the input text by default?
 
@Pavel it's either <selection>y or y<movement>... at least in Vim
 
@NieDzejkob In the solution, the next character is j, which isn't a movement.
 
@NieDzejkob It was in the original commit, so I really can't remember :P
 
4:50 PM
@Pavel j moves down
 
@NieDzejkob Right, I was thinking of Join.
 
5:04 PM
@Pavel What NieDzejkob said
Join is J
 
@DJMcMayhem Are you going to write an explanation?
 
5:50 PM
@DJMcMayhem It isn't flagging as a bot account or something... it's flagging as if it was a flag made by an actual moderator, right?
 
6:17 PM
@Pavel Sure, but it'll have to be later
@Poke It's flagging with user accounts that have signed. (Mine for example) so when it finds a post it's reasonably sure is spam, it'll log in to my account and flag it without me needing to do anything (if my account is picked. It's random each time). That can't and won't happen on sites where someone is a mod
So my account might be randomly selected for any spam across the network, but if it's on PPCG, then it can't be picked
(because if a mod red flags a post, i.e. spam or rude/abusive, it will be deleted by community automatically)
 
That's what I mean. I think it would be better to have dedicated accounts assuming SE is okay with it
also i'm curious how it logs in to your account. surely you don't have a big password repo somewhere
does SE have apis for moderator tools?
 
@Poke I don't know the details, but I think it's oauth tokens (I don't know what those are, don't ask)
 
I'm familiar with them and that makes a lot more sense
 
2
A: Sandbox for Proposed Challenges

Conor O'BrienFind relevant digit groupings code-golf number functional-programming Recently, my reputation was 25,121. I noticed that each digit grouping (i.e. the numbers separated by commas) was a perfect square. Your challenge is, given an integer N and a unary boolean Black Box Function f : Z → B , yie...

planning on posting this, any thoughts?
 
Anonymous
6:33 PM
Some clarification on Charcoal/Smokey: users authorize the project to autoflag on their behalf. This authorization is done using OAuth tokens, not passwords. Users can set their custom thresholds for when their flags are used. Users are selected for autoflagging randomly, with a higher preference given to core project members (active with a certain feedback threshold). A user will never be selected for any site they don't have enabled, or any site where they are a moderator.
 
Anonymous
Having a single bot account casting flags would be better (and SE agrees - it's been brought up a few times), but would require significant work on SE's part, so it hasn't happened yet.
 
gotcha, thanks for the clarification
 
Anonymous
Glad to help
 
Anonymous
FWIW, I'm all for increasing the autoflagging count, but I'm a Charcoal core member, so I've drunk the Koolaid :P
 
@Mego Would you be for it if we removed user flagging?
I've been wondering the same thing myself
 
Anonymous
6:40 PM
@DJMcMayhem You mean casting autoflags from a bot account (that had magic multi-flagging powers), or unilaterally nuking posts?
 
The former (or 5 bot accounts)
 
Anonymous
Yes. I think that's better than user flags: the bot can withdraw flags with a single command, rather than needing to ping people
 
Anonymous
sd unflag would be much better than @people plz unflag
 
True
But it would remove the "reward" of badges and stats for participating in charcoal
Which isn't necessarily a bad thing
 
you could argue that mods shouldn't get those rewards anyway
since they're doing their jobs
 
6:48 PM
0
Q: Find relevant digit groupings

Conor O'BrienRecently, my reputation was 25,121. I noticed that each digit grouping (i.e. the numbers separated by commas) was a perfect square. Your challenge is, given an integer N and a unary boolean Black Box Function f : Z → B , yield a truthy value if each value of f applied to the digit groupings of N...

 
@Poke Well, I'm not a mod any where else, and I don't get autoflags on PPCG
 
that's fair. i was mainly saying for the sake of argument. rewards are fun even if it is your responsibility :]
 
Anonymous
Also mods don't get any badges related to flagging/moderation (other than the mod-specific flag)
 
Anonymous
Had I not gotten Marshal before becoming a mod, I wouldn't get it at all
 
Anonymous
(I think)
 
Anonymous
6:54 PM
I haven't had any more helpful flags since becoming a mod, but I also haven't cast any flags since becoming a mod :P
 
Anonymous
I just use my buttons
 
then how do you delete spam ;P
 
Anonymous
With the big red nuke button
 
which, IIRC, is a flag
 
Anonymous
I meant destroying the user :P
 
Anonymous
6:57 PM
Also I rarely get a chance to see spam posts before they're nuked - our community is really good about flagging spam quickly
 
Anonymous
I just clean up afterwards
 
Anonymous
Well, s/I/we
 
I don't think it's just our community, there's Charcoal too ;)
@Mego ah, sometimes that is not done right away and the user is given a second chance...not sure why though
 
Anonymous
@EriktheOutgolfer Not sure either - I haven't seen that. I guess it could be due to the difference between blatant spam and unintentional excessive promotion
 
I think it's because such posts are usually deleted by flags and mods don't bother then, leaving the user account undeleted
 
Anonymous
7:01 PM
Like users who forget (or don't know) to disclose their affiliation vs pharma spam
 
and that's , given that the punishment for spam is -100 rep and not account deletion rightaway
 
Anonymous
@EriktheOutgolfer IIRC they get cleaned up automatically eventually
 
@Mego don't forget your trailing slash
 
Anonymous
@Poke It's implicit in the dialect I'm using, called "Mego Always Forgets The Trailing Slash So It's Implicit"
 
I should use that one
 
7:06 PM
s/It's implicit in the dialect I'm using, called "Mego Always Forgets The Trailing Slash So It's Implicit"/I'm lazy./
 
why'd you assume laziness and not just forgetfulness...
 
@Mego If you include the trailing / in discord, it'll actually stick the / onto the end of the replacement.
 
because i don't use a trailing slash. :P
Now, back to being angry at the telnet protocol (So many commands ;-;)
 
@Pavel TIL discord accepts s/ replacements
 
I'm told Skype for Mac accepts arbitrary Sed
 
7:10 PM
@Pavel someone pls valid english+sed polyglot
 
Question: Why is it so hard to find non RFC documentation on the telnet control codes
 
@Mego It's possible, just difficult
 
7:26 PM
It's not even hard, most of the moderation badges asside from the 3 specifically about flagging are not made harder by being a moderator as far as I can see.
 
4
Q: Is this a truncated triangular number?

JungHwan MinRelated OEIS sequence: A008867 Truncated triangular number A common property of triangular numbers is that they can be arranged in a triangle. For instance, take 21 and arrange into a triangle of os: o o o o o o o o o o o o o o o o o o o o o Let's define a "truncation:" cutt...

 
7:37 PM
@WheatWizard True, I just meant flagging badges are harder
 
Ok sure. You are almost certainly correct there.
0
A: Sandbox for Proposed Challenges

Wheat WizardLead or Follow answer-chaining descision-problem restricted-source In this challenge you are to write a program or function, that takes a string as input and outputs one of two possible values. For an answer to be valid it must meet three additional criteria When you pass your program to its...

 
But it's still possible.
 
I posted this during off hours. I thought I would just make it seen during the on hours.
 
Technically, if I really wanted that badge and was ok gaming the system, I could flag everything right before handling it regularly
 
you wouldn't have just gamed the system, but also annoy the rest of us ;)
 
7:47 PM
$ read --help
read: bad option: -h
 
man read?
 
So it knows that --help is actually -h but still doesn't do anything with it.
@EriktheOutgolfer That brings up the generic manual page for bash builtins. `which read` --help works
 
bash? then you want help read
 
@EriktheOutgolfer zsh actually.
read behaves the same way I belive
 
@Pavel What is your avatar supposed to be?
 
7:52 PM
then you would need man zsh and then /read and then / repeatedly until you find it, since that's what the shell uses
 
@EriktheOutgolfer How would that annoy you? (Not that I'm planning on doing that)
 
deprivation of the ability to count helpful flags in our flag history
 
No, if I saw a flag, added my own additional flag, and then handled it regularly, you'd have your flag marked helpful
 
if you are first to handle then we would be FGITW'd away though :/
that's what I'm referring to
 
Sure, but that would be true regardless of if I flagged it or not
 
8:02 PM
@cairdcoinheringaahing It's a chibi of Tachanka from Rainbow 6 Siege
I'm actively looking for a different one, it was supposed to be temporary for the duration of hats
 
@Pavel What is your chat profile's about?
 
@Adám i think it's another rainbow six thing
 
@Adám {-} is Tachanka's head (because he wears that helmet with a thin horizontal line for the eyes) and {-}7 is a salute
 
8:14 PM
@Pavel Oh. If you make it {_}7 it won't be a syntax error in APL anymore.
 
@Adám I get VALUE ERROR on that
 
@Pavel Under the right conditions, of course, e.g. _←42
 
> syntax error
 
It's (almost) valid Add++ . Just needs the function - to be defined (and the code needs to be in a function itself)
 
@EriktheOutgolfer No, {-}7 is syntax error, {_}7 is value error.
 
8:16 PM
@Adám uh, that's exactly what I said?
 
@EriktheOutgolfer I said {_}7 to Pavel, so he said that gave him a value error, and you seemed to be correcting him by quoting someone (presumably APL) that it was a syntax error.
 
@Adám maybe I should have included more context? it was you I was quoting
 
@EriktheOutgolfer Oh, so what were you trying to say?
 
@Hillside Storm Yello
 
CMC: Sigmoid function S(x) = (1 + eˣ)⁻¹eˣ or (1 + e⁻ˣ)⁻¹
 
8:33 PM
@Adám Dyalog, 6 bytes: ÷1+∘÷* or ÷1+*∘-
(second one)
 
@Adám Mathematica, LogisticSigmoid
You can also literally just use the sigma character but I can't type that on my keyboard
 
No, lowercase
 
Yes
 
8:37 PM
@EriktheOutgolfer Nice, but do it in 5!
 
You have to explicitely tell it to interpret it as TraditionalForm
 
@Adám If we went insane and rewrote The Powder Toy in APL, would we get a speed boost?
 
@Adám The current APL solution to codegolf.stackexchange.com/questions/157285/… is 11 bytes and I have a feeling you could do better.
 
lol mine there is 8 bytes but I don't want to post it, I already have 2 answers there
 
@moonheart08 Maybe, but probably not.
 
8:38 PM
@moonheart08 What is it currently written in?
 
If you have a ton of multidimensional arrays, Dyalog might do some optimizations that GCC won't
 
@Adám C++.
@Pavel We do. Air, Gravity, Particle Map, and the wall map are all 2d arrays
 
@moonheart08 If it has lots of Boolean arrays, then probably.
 
You'd get a speed boost if you wrote it in C
 
there's 4 2d arrays for air
@Pavel it was originally in C, lol
 
8:40 PM
And C++ slows it down
 
We moved to C++ because it was getting unmaintainable
 
Virtual calls and all
 
@Pavel we do tons of virtual functio calls every tick anyways
 
winscp's main feature list contains "graphical user interface"
 
each particle has it's own update function
 
8:41 PM
but the full feature list doesn't
 
@moonheart08 C has no virtual calls though.
 
@Pavel Precisely why we rewrote it in C++. The C version was much simpler
 
Right. All those virtual calls you do now slow it down.
 
The result is that we have stuff like PSTN (A particle that acts as a piston), EXOT, POLO, and practically every modern element
 
@Pavel I can do it in 7.
 
8:42 PM
they all have their own update function, giving each and every one a unique functionality
 
@Adám Please post
 
@Pavel Why don't you? It is really quite trivial, especiallially when you have the APL+WIN code to begin with.
 
@Adám I don't know how to reverse an array
Or how to concatenate arrays
 
Honestly, everyone who has done work on TPT would appreciate if someone goes through and improves something. At least improve the rendering engine (which is entirely a software renderer, so there's a lot to be wished for)
 
@Pavel ⌽ is reverse, ⊖ is reverse first, , is catenate/laminate, ⍪ is catenate/laminate first
 
8:45 PM
@moonheart08 As far as programming languages go, in 99% of cases the only way you can go faster than C++ is C, barring straight-up Assembly.
 
@Pavel Reverse: 20% down in Lesson 10 and concatenation: End of Lesson 9.
 
ngn
@Adám *÷1+*
 
Can't think of how to improve on the existing solution
 
@ngn What?
 
ngn
8:47 PM
@Adám bloody markup
 
@Pavel Go tacit. But ngn already wrote you the solution I had in mind. I didn't realise it was your cmc+main.
@ngn Yup, beautiful, isn't she?
 
@Pavel Yea. We know. But TPT also has issues with sloppy and/or slow code. I know our liquid equalization code is probably less than optimal, for one
 
@Adám I still don't know how trains work ;-;
 
Our implementation of Cellular automatons could definitely be improved in so many ways
Issue is all of us are either a) busy b) lazy as heck
 
ngn
@Adám have you been doing something related to neural nets? :)
 
8:49 PM
@moonheart08 What you guys need is an rpm package
 
ngn
@Pavel simples: they grab the earth by a pair of rails and rotate it to the place where you want to get off :)
 
@Pavel Look under Tacit (points-free) in the chat bot's profile.
@ngn No.
 
@Pavel We don't have one? RIP. Just check the website (powdertoy.co.uk)
The downloads are available there
 
@moonheart08 Right. There's a package for dpkg but not rpm
 
@Pavel If you know Python and know how to make a RPM package, you can probably add a function to our Sconstruct script to make RPMs
Just make sure it can be done on a dpkg based system
jacob1 has a build server, so it won't be hard to put RPMs onto the site from there
 
8:59 PM
@ngn So are you going to post ,∘⌽⍨⊢⍪⊖ as an answer
 
ngn
@Pavel if nobody else volunteers
 
You wrote it
 
ngn
@Pavel well, it's kind of obvious
 
I couldn't do it
 
9:02 PM
@ngn it's not that obvious, actually, I had (⊢⍪⊖)⊢,⌽
 
ngn
@Pavel after a few years of staring at squiggles, I'm sure you'd be able to
 
I know what those characters do on their own
 
Q: Can anyone else see the sheet music here or is it just me being logged in?
 
,∘⌽⍨ is the special thing (i.e. function – it is a single function) here.
 
I can't @cairdcoinheringaahing
 
9:04 PM
@cairdcoinheringaahing Nope.
 
@cairdcoinheringaahing I see sheet music in the background on the signup page
 
@Pavel Hmm, that's going to be annoying. Thanks for trying
 
@cairdcoinheringaahing nah
 
@cairdcoinheringaahing nope
 
9:13 PM
@cairdcoinheringaahing Visible
 
Perfect, thanks guys!
 
Working now.
 
Hehe, 6 views already :P
 
So what was the issue?
 
9:15 PM
It was set to 'Private' and I'm supposed to email it to my teacher
 
Yes that would be a large problem.
 
CMC: Given an n×2m top-to-bottom, left-to-right table of words and numbers, reverse the content order. Example:
"Alpha", 100, "Delta", 400
"Bravo", 200, "Echo", 500
"Charlie", 300 , "Foxtrot", 600
becomes
"Foxtrot", 600, "Charlie", 300
"Echo", 500, "Bravo", 200
"Delta", 400 , "Alpha", 100
CMP: Should I main the above CMC?
 
pair, reverse, unpair?
 
@totallyhuman Reverse and flip.
 
@Adám imo nah, because it’s just some repeated reversals
 
9:21 PM
@Mr.Xcoder OK, let me see some solutions then. Get golfing!
 
On mobile so... umm.
Ah wait we aren’t supposed to take a matrix of tuples as input, but rather a flattened version of the pairs ...
In that case we also need some splitting
 
@Mr.Xcoder Yep, like a CSV file or a spreadsheet.
 
Can we take input like so:
[["Alpha",   100, "Delta",   400],
 ["Bravo",   200, "Echo",    500],
 ["Charlie", 300, "Foxtrot", 600]]
 
@cairdcoinheringaahing Yes, that is the only allowed input form (which includes comma+newline separated)
 
Nevermind, it was wrong
Ok, I have 6 bytes in Jelly
 
Input is taken as ["Alpha", 100, "Delta", 400, "Bravo", 200, "Echo", 500, "Charlie", 300, "Foxtrot", 600]
 
Er. Can the numbers be strings that have those digits? Otherwise I need to stick some Either Int String in there
 
Note that the output is weird because Jelly outputs stuff strangely
 
@Mr.Xcoder I can't see a thing. Can you add boilerplate to convert to JSON?
@Οurous Yeah, it could really be any data. I just used numbers and strings for clarity.
@cairdcoinheringaahing Nope, not ok. HOw do you determine table dimensions then?
 
9:31 PM
Oh, in that case Xcoder's solution is better
 
Not exactly JSON, but...
 
@Mr.Xcoder Yes, that's great.
 
Yay ty. Gtg get some sleep now. o/
 
@Adám Clean, 60: tio.run/…
Dirty can do it at this point in development but I'm not typing arbitrary unicode from my phone.
The indexing operator would help a lot though. I should get around to that.
 
9:50 PM
@Adám Stax, 7 bytes
 
I've been seeing a lot of commentary about how horrible this code is. IMHO it's not even that bad
 
Can someone with the SE app find a comment with a TIO link in it and follow the link. Does it take you to the page where you can see the code, or just to the 'Pick a language' page?
 
@cairdcoinheringaahing It takes me to a place with the code
 
Weird. It doesn't work for me (iPhone 5). I think it's because it replaces the # with %23 in the URL
 
@cairdcoinheringaahing Yeah, I've seen that too. Some browsers do not like two consecutive #s. Remove one to fix (at the cost of no cache).
U+FE0E is quickly becoming my favourite Unicode character.
 
10:29 PM
@cairdcoinheringaahing I'm on Android (Google pixel, chrome)
 
@Adám what is it
 
@Pavel A variant selector, which when added after a character which could be rendered in emoji-style, tells the renderer to keep it sane: 🤷 vs 🤷︎.
 
They look the same to me 🤷
 
@cairdcoinheringaahing This used to be an issue, but Dennis fixed it a really long time ago. This it's probably something else
 
In my opinion, all emoji should be followed by this character.
 
10:31 PM
I see two of the same thing...
 
Prolly doesn't work on phones
 
@DJMcMayhem Then you have a non-compliant or out-of-date renderer.
 
Or a phone. Most smartphones force emoji rendering.
 
@Pavel Yet another reason to avoid "smart"phones.
 
@Adám In the grand scheme of things the rendering of a few characters doesn't outweigh the great convenience they give.
 
10:40 PM
@Pavel Imo, all emoji chars are evil and should never have been added to Unicode. But what can I do? ¯\_(⍨)_/¯
 
@Adám I meant smart phones are convenient.
Emoji are not
 
@Pavel Oh. The only thing I'm missing on my "dumb"phone is Google maps (although even that is quite rare). Maybe I'll get the new Nokia 8110…
 
@Adám hate them relentlessly, works well for me.
... I did not know there was a shortcut to preview the assembly for a module in the CleanIDE. Why is there one anyway, how could that be useful.
It's certainly fun though.
 
11:00 PM
@recursive Well that's because this is PPCG, barely any code is bad
@recursive also if you really want to see bad code look at Charcoal's source
 
@Adám Not all emoji are evil ... all that's needed is like a smiley-face and possibly a few others, Doesn't deserve a whole block though
 
@Adám I like the ability to TNB at any time. You can't really see that if you're e.g. on a bus without a smart phone.
 
@Adám :|||| chrome 64 uses outdated renderer? D:
@Pavel well, tablets are a thing
especially 2-in-1s. those are the best
it's a tablet with decent specs and a sane keyboard, how amazing is that
 
@Pavel I use computers for computer-jobs and phones for phone-jobs.
@ASCII-only Isn't that just a laptop?
 
@Adám Not everywhere has WiFi
 
11:04 PM
@Adám Yeah, well with a touchscreen, and a detachable/move-out-of-the-wayable keyboard depending on the type of 2-in-1
 
@Pavel Nokia 8110 can be used as WiFi hotspot, and tiny mobile USB plugs exist.
 
ngn
@Adám gosh, I don't want to think about what you use your hands for...
sorry, couldn't resist :)
 
@ASCII-only At a glance, it looks ok... shrugs maybe I've built up a tolerance.
 
@recursive maybe see wolfram.py
 
@ngn 2⚑≥2⚑
 
11:07 PM
That is (at the very least, partially) horrendous
@Adám googles
> Why Assassin's Creed Origins Is Actually Black Flag 2
ok
 
@ASCII-only That's a riddle.
 
@ASCII-only I don't really know the architecture of charcoal, but wolfram.py's worst sin seems to that it includes a whole bunch of different stuff that's not obviously related.
 
ngn
@ASCII-only "to flag or not to flag" - for my offensive language :)
 
@recursive wait what's not obviously related
@recursive also what does this have to do with code style
 
@ASCII-only Maybe I'm wrong, but what I mean is wolfram.py appears to contain things that aren't related to each other. Part of code style is scoping a file to a particular concern.
Not that I do that.
 
11:13 PM
@recursive examples please
if you mean there are multiple different groups of functions then yeah wolfram was written basically on a whim (?)
 
Just finished reviewing the problems for this year's Dyalog APL student competition phase I. They're great. I hope a lot of you will participate.
 
what are entry requirements
 
@ASCII-only None. Although you must be some sort of student to win the student prizes. There's also a single prize for a non-student.
 
@ASCII-only I don't think wolfram.py is that bad, and not as bad as you've claimed, and I also don't exactly understand what its purpose is, so I could be wrong. But for example, it contains code for doing different kinds of arithmetic, and also date formatting. The only reason I was looking at the file is that you gave it as an example of bad code.
 
@recursive maybe it's just me but even the structure of the arithmetic classes themselves are super hacky already >_>
 
11:17 PM
 
11:37 PM
hey guys, I have a somewhat off-topic question... firefox has giant border widths in form fields for some reason, but if I set the border width, the select fields become fugly (in chromium too), what can I do about it?
 
4
Q: how to call browser based css?

nectarwe can get the browser name from javascript but is there any way to change css accordingly.I mean some classes of css file because I dont want to link another css file , I want to write styles on if chrome a img { margin:0; } //if mozila a img { margin:5px; }

 
@aditsu link to repro?
 
@aditsu screenshot?
 
@Adám I don't think that's very useful here
 
11:58 PM
Hm, I think border-style: inset; is getting applied somehow.
Something like border-style: solid; border-color: #888; seems to get it closer to its initial state.
 
00:00 - 16:0016:00 - 00:00

« first day (2592 days earlier)      last day (2234 days later) »