« first day (3774 days earlier)      last day (1063 days later) » 

12:02 AM
trains could probably help here
 
0
Q: System-defined short forms for function-option combinations in Mathematica?

theoristSeveral Mathematica functions have system-defined short forms, e.g., /@ for Map. Many of them are listed here: https://reference.wolfram.com/language/tutorial/OperatorInputForms.html However, there also exist some system-defined short forms for function-option combinations. E.g., Log2@ninstead ...

 
p#[]=const p
p#('`':t)=p#t.not
p#(h:t)=\c->((p++[x|x<-[h],c])#t)c
That last part should be a lot more short and elegant, but I can't find it :(
 
@user No
 
@user ($0<1).([]#) to run it, I think
 
@Wezl tacit solution in nib: (=: "`" (^^:({!= /:0) or: /) not repeat: /)
can't convert it to APL because I don't know how to use dyadic / in a train
 
12:17 AM
 
ngn
@Wezl why do you need it in apl?
 
@ngn I don't, but it's the array language I know the most
 
@Ausername * Lederach rares quaremeandering BinisSaltchuck_D waygoingarear
 
@ngn ooh this is interesting. Splitting is OP :P
 
@user Not only unnecessary; it prevents it from working.
 
12:26 AM
Oh lol
Oh wait I meant ⍣≡
 
ngn
@Wezl "OP"?
 
Still unnecessary, I guess
 
Yeah.
 
@ngn overpowered.
 
Do any Haskellers know how to use combinators for the fourth line here?
Lambdas are ugly
 
12:28 AM
can you paste it please (sorry)
 
f :: [Char] -> Bool -> [Char] -> [Char]
f[]=flip const
f('`':t)=f t.not
f(h:t)=(\c p->f t c(p++[x|x<-[h],c]))
g x=f x(0<1)[]
I've been trying to use <*> without success
 
I don't even know what <*> does :/
 
It's the S combinator (for (->)r)
 
@Wezl Golfed: {⍵/⍨(⊢⍱≠\)'`'=⍵}
@Wezl Not necessary: {⍵/⍨m⍱≠\m←'`'=⍵}
 
Backticks are hard
 
12:31 AM
Not really, unless you need to write `\​
 
@Adám I was at exactly that, but ngn/apl doesn't like /⍨
 
@Wezl Right, I also found that. Any particular reason you're using ngn/apl?
 
@Adám no other APLs support my platform. But you're probably right I should stop using APL :D
 
tryapl's online too
 
@Wezl What is your platform?
 
12:33 AM
@user slower
 
@NewPosts I get the feeling that this could very justifiably spawn a meta discussion about the site scope
 
A user just edited and rolled back their edit on the Print This Question challenge :P
 
"A user" aka Arnauld :P
 
Didn't want to mention their name
 
@hyper-neutrino Can mods attach custom notices to challenges, without having to lock them? I seem to remember this being a thing
 
12:36 AM
@Adám Chrome os + constraints
 
@Wezl You reminded me that my boss wanted to have a closer look at why TryAPL is so slow.
 
I'm reluctant to use my hammer here. But list questions are typically off-scope.
 
I'm not sure it'd be on-topic on Mathematica because it asks for shorter functions. Do they allow that kind of thing?
@hyper-neutrino Current event maybe?
 
@cairdcoinheringaahing ^^^ oh would you look at that, my tools are once again restrictive and don't trust me to make decisions for what to do and don't apply to CGCC. LOL
 
None of those notices are great
 
12:39 AM
@user current event implies the post (/ its context) should be constantly changing
this is like the exact opposite
 
@Wezl Constraints prohibiting Crostini?
 
@Adám yes
 
You could ping a CM and ask very nicely if they'd add a custom reason for you :P
 
:-(
 
I can add the "needs detailed answers" post notice to an answer... but I can't choose my own post notices. Thanks
Yeah, looks like CMs can add custom notices.
But this is... a special case and I'm not going to bother CMs over just this one use case; I don't think "hey don't edit this post at all" is really often that useful
 
12:42 AM
Although, having an "other" notice that allows you to add a custom message a la bounty would be a useful ability for mods to have, you could open a on MM?
 
@Adám I have access to OpenBSD but ...
 
@Wezl What about this this
 
codeanywhere.com has APL (idk the impl)
 
@Adám I've tried it and I think it was still pretty slow (It includes running theia, though there may be a way to avoid that)
 
@user Should be easy to assess.
 
12:45 AM
@Wezl Btw which implementation of SML are you using?
@Adám ¯\_(ツ)_/¯I don't feel like making an account to check it out
 
@user moscow ml, built from source, with the REPL
 
@user How do you know? I don't see it on the list.
 
@Adám That's interesting. Higher up, they have a scrolling thingy
 
well thanks people but I don't really need a different APL
 
@Wezl Would you recommend it, or are you just using it because Chrome OS?
 
12:48 AM
@user both, but a different one like SMLNJ or PolyML would probably be better
 
Clearly, the sales department has no clue:
 
Thanks, I'll check those out too
 
ngn
is standard ml a popular language these days?
 
If it was, Wezl probably wouldn't use it /s
@Adám JSON projects?
 
ngn
:D
 
12:51 AM
@Adám If you scroll up here, you can find it (or just look at the HTML, I guess)
Apparently, they also support Bralnfsck and Pig Latin, so I'm a little dubious about their APL support
 
Pig Latin must be an esolang.
How does one program in diff?
My Spreadsheet won't compile!
At least they got COBOL right.
 
Sandbox posts last active a week ago: Lowest effort to fill the bucket
 
OK, so I sacrificed myself to check out their claims. Turns out the real list is a fair bit shorter than the advertised one:
∘ PHP Development Stack with Apache, PHP, MySQL, phpMyAdmin and Composer preinstalled.
∘ Node.js Development Stack with nvm, npm, Redis and MySQL server.
∘ Ruby Development Stack with RVM and Ruby on Rails preinstalled.
∘ Python Development Stack with pip and virtualenv preinstalled.
∘ C/C++ Development Stack with gcc & g++ compiler and gdb preinstalled.
∘ HTML5 Development Stack with Apache, npm, yeoman, bower and grunt preinstalled.
 
1:08 AM
18 mins ago, by user
If it was, Wezl probably wouldn't use it /s
so no it isn't
 
ngn
good :) so, i don't need to learn it
 
@ngn I disagree :)
 
ngn
looks similar to haskell
 
is it just me or uh
-1 for a completely trivial construction without a single point. It is uninteresting in any way obviously since it involves no thinking in every single part of this. It was only a tetris challenge but look at what you have done: a huge unnecessary badly-designed computer. That's like buy a supercomputer to compute 1+1. Everyone who have the tiniest knowledge on CGoL should see the trivialness of this random so-called "project" and it certainly don't deserve a single upvote. — null Jul 19 '20 at 5:29
is QFT not "trivial"
 
@ngn yeah but with the bad parts removed and replaced with different bad parts basically
 
1:30 AM
So what's the consensus on code anywhere?
 
do you mean codeanywhere.com or just "code anywhere" lol
 
The service
Asking because I've got an interest in migrating away from pythonanywhere
 
0
Q: Write a program to build a sudoku grid in C

AIDAN GREENImagine that you are a worker at a puzzle book making company. You are in charge of making sudoku puzzles. You decide to make your life easier, and write a program to do it for you. What you have to do: Write a program in C that gives you an 81 digit code. This code, when put into an empty sudoku...

 
it's fine to SSH to an existing server, especially if SSH is blocked on your network (e.g. redwolf lmao)
 
0
A: Sandbox for Proposed Challenges

WzlRemove All Comments for Code Golf code-golfstring Take a line of input (function arguments or stdin, etc.). Remove comments in it, where a comment starts and ends with `. Do not remove comments in string literals, which start and end with ". Return this string. The number of `s not inside string...

 
1:32 AM
Does it have support for python threading?
 
um I don't think codeanywhere is a replacement for/is related to/is the same kind of product as pythonanywhere
 
1:46 AM
@hyper-neutrino HighlyRadioactive (null) had a habit of calling complex things trivial. I remember whenever someone would say that Jelly was hard to learn, theirs response was always "Well, Dennis specifically made it hard to learn" or "It's pretty intuitive and trivial to use tbh", yet I never saw them post a Jelly answer. Similar thing to QFT, they called it "trivial" a decent amount, yet never bothered to even make any kind of effort towards solving such a "trivial" challenge
Contrarians and words in the winds tbh
 
Community: time for your weekly rejecting the "too many answers" flag on Sandbox!
me every week: yes community
@cairdcoinheringaahing Ah. okay. well, gonna purge a lot of comments there because it's really chatty, so I think I'll discard those comments too
TBH i find it a bit rude but I'll just quietly purge them since it's not that bad
 
Tbh I'm not really sure what happened with null. IIRC, one day they just randomly vandalised all the LotM nominations, changed their name to null and suspended all activity. They were super active before that, like 2k in a couple of months active
 
that's... strange
I never knew about that otherwise I probably would've suspected account compromise
 
@NewPosts @hyper-neutrino Suggestion: mention the Sandbox
I would, but links in comments on mobile (and opening the Sandbox to get the link) are bleh
 
1:59 AM
@cairdcoinheringaahing Considering where your name comes from...
@lyxal You were thinking about heroku. Porting the interpreter to Javascript would be a huge task... You've got thousands and thousands of lines in there.
 
@rak1507 Ah. okay. what's the situation with the account now?
 
oh cool, I have exactly 256 rep on codidact, what a nice round number :P
@hyper-neutrino beats me, I just searched the name
 
the twtxt link is dead. anyway, thanks for letting me know tho
hopefully another mod / whoever got to it since I never saw that (I think I was comparatively inactive during that period of time)
 
probably
 
@Ausername I tried heroku. It was a bad idea
 
2:04 AM
@lyxal Why
 
@Ausername it was painful
 
Could you adapt it to something like skulpt?
 
@Ausername I'll be changing it to "rares quaremeandering" in a bit, then BinisSaltchuck_D after that :P
2
 
@cairdcoinheringaahing Good idea.
 
Actually, I think "dude coinheringaahing" is next on my list if/when K do change it :P
Saltchuck can be after Dude
 
2:08 AM
Ok
One thing I've noticed about this site is, whenever someone digs up an old gem, everyone starts answering it.
 
2:52 AM
Looks like NP/SP are working fine
I kinda want to use STATUS, but I have access to the full logs so I might as well use those lol
Oh no
I just deleted NP/SP
 
o_O explain
 
Very big brain of me
 
do i need to steal control of your bots from you :thinking:
 
I had two copies of one of the main parts of it, so I used rm make_post.js to remove it. I changed directories to my main one and hit up then enter, expecting vim make_post.js to be the last thing I did.
Well frick
 
................................................
do you have this on github anywhere by any chance
 
2:55 AM
No
 
or backups
please tell me you have some sort of revision history going on
 
Well I did...on my laptop...with the SSD destroyed by rain
 
and I had just deleted my old version
 
2:56 AM
That's why the rm one was in my bash history
 
Announcement: I've decided to learn git
This should take maybe a day to rewrite, don't worry too much
I have it spread across two main files, so I only lost one
 
should i just steal the bots? most i just don't want to seem rude and you've worked very hard on these and i (and i'm sure many others) appreciate it but... i tend to usually not suffering critical failure or total destruction very often :p
oh. well that's somewhat reassuring :p
 
Well, I needed to make one very small change. I should be done with those soon.
I swear, everything works perfectly fine until I decide to run something important on it.
 
as long as you put it on git this time ;)
@Feeds please just spam this room already
you are making me very anxious
 
3:01 AM
I should probably rewrite this from scratch honestly, the code is absolutely horrible
Anything involving multiple lines in JS is guaranteed to be
 
lol
i'm tempted to rewrite this with the chatexchange in python lol :p but i'll let you do your thing unless more death happens
 
I don't know who the frick makes a programming language and doesn't think about adding the option to have multiple files for twenty plus years
Most of the time I spent developing this was understanding how chat and logging in works, rewriting it shouldn't be overly difficult
 
well, we do have the feeds which, although slow, are very reliable so take your time making sure it works well :p
 
My bots were (as of this morning) reliable, I am not :p
 
what if we have the bots code the bots
 
3:16 AM
greasemonkey doesn't seem to actually do anything. anyone run into similar issues?
like, i installed userscripts by clicking on a .user.js and the install popup showed up
i install it
nothing happens
holy shit i had to click that four times
wow chat sucks
 
it looks like the one userscript i have for unfucking the monospace font is working at the moment
 
maybe i'll just get tamper
 
hey TNB, what's your guys' opinion on the Pxem "quine"? it runs based off of filename but outputs its own file name. i'm not sure if this is in violation of any rules here, but something feels off about it. it's sort of like doing this for 35 bytes in Python 2 IMO
 
Hang on
I'm a genius
I'm a fricking genius
 
lemme guess you have a copy of the file floating around somewhere for no reason
 
3:22 AM
make_post.toString()
NP is still running
The code is in RAM
 
I can inject arbitrary code
 
i hate JS so much but i guess this is really poggers here
@Makonede this consensus might help - I'm reading through it now and I'll see if I can find a proper answer for this specific case
Pxem is a weird language. might warrant its own post for various different things
 
well first of all it is currently invalid anyways as it outputs its code (which is in the file name), not the content of the file which is what a quine is
 
(Also I am definitely not a genius lol)
(I was one button away from losing a week's worth of work)
 
3:25 AM
no you deleted your code without having any revision control or backup and are now pulling the source code by stringifying a js function in RAM
you and JS's combined un-ingenuity made for a very nice fix; I guess two wrongs sometimes do make a right :D
 
I do love how you can actually read comments within a program's source code programatically
 
i absolutely hate it xd
 
@NewPosts STATUS
 
RUNNING: [1] 1 1

[01:55:15] request: chat.stackexchange.com/messages/ack
[02:36:52] write: nmp
[02:36:53] write: nsp
 
:D
Wait I lost my list of trusted user IDs though
That's the old one running
 
3:33 AM
@RedwolfPrograms 52673, 59776, 347075, 281362, 337270, 130368, 322760, 218449,
in order, xnor, doorknob, redwolf, hyper-neutrino, bubbler, adam, joking, ww
 
Thanks, although I just finished finding them myself lol
Oh, I forgot xnor's though
 
same, the first time. sorry xnor no offense intended :c
 
@NewPosts STATUS
 
RUNNING: [1] 1 1

[02:36:53] write: nsp
[03:31:05] request: chat.stackexchange.com/chats/240/messages/new
[03:31:05] request: chat.stackexchange.com/messages/ack
RUNNING: [1] 1 1

[03:35:16] ws: wss://chat.sockets.stackexchange.com/events/240/971a8b0742b143cd9bd3faaf03f8cb6e?l=124983911
[03:35:16] opened: nmp
[03:35:16] opened: nsp
 
3:35 AM
is it posting twice due to having two instances or smth?
 
Yep
About to kill the instance that saved me from losing all of that work
It has been done. 15265.nmp has been killed.
 
maybe JS isn't so bad after all
jk it is. but at least it saved you a lot of time :p
 
hyper-neutrino has stopped a feed from being posted into this room
hyper-neutrino has stopped a feed from being posted into this room
hyper-neutrino has stopped a feed from being posted into this room
 
Backing up all of the important things on my server, then encrypting that and uploading it to google drive lol
 
lol
just upload your whole server content to git /s
almost everything (belonging to me) on my server is on github actually, lol
 
3:40 AM
Considered it briefly lol
 
almost all of it is just random code and i like keeping things open-source
obviously except config files that contain like discord bot tokens or api keys :p
 
I really dislike deleting things from a terminal
Too easy to delete the wrong thing
I think I'm going to alias rm to a bash script that makes me re-enter the name of the file being deleted first
 
oh that's a good idea
9
A: How to alias rm to always confirm

mswConfirmation is a weak way to achieve the result you want: not deleting files you didn't want to delete. I can ask you to confirm 10 times in a row, but if since you just asked me to delete mispeled.txt you will not realize your error until after you confirmed it. Better to use trash or similar ...

or if you really want to use confirm, just alias rm='rm -i' in your rc
 
Hmm, a good point against changing rm is that it could mess up scripts
I guess I'll just install a trash-cli thing
 
(comments under this) though be careful about -i and -f contradicting each other, and how they interact
 
3:48 AM
Actually I'll just add rmr as an alias, which would fix that and prevent me from building up muscle memory to use rm without thinking
 
wdym, alias rmr as rm and remove rm itself? or smth
or alias rmr as rm -i so it doesn't break scripts using rm itself
 
No, just not use rm directly and do everything though my rmr command
 
ah. that could work too
as long as it confirms somehow, since typing here wasn't really the main problem, it was just using command history incorrectly :p
 
I like how GH does it. Having to retype the name of the file is good.
It's slightly more time consuming, but something that potentially dangerous should be
 
how can I remove the ctrl-shift-c shortcut from firefox?
i need it to copy-paste out of the codeanywhere console
 
4:01 AM
 
Ummm...
 
oh you can do it if you know how to compile ff from source
i do not
i can disable devtools but idk if i want to do that
oh well, i shouldn't be using codeanywhere anyway, i should be sshing from my own computer realistically
 
4:17 AM
this meta post and this meta post are over a month old and nothing really has happened nor has a consensus been reached; what do we want to do about these?
neither seem to be resolvable by a merge so we'd need to slowly fix stuff or just pick a day / weekend to apply all of these edits, but we should get a direction in any case, even if that's to just leave them
 
The high from managing to find a copy of something you've worked hard on that you think you've lost forever is what I'd imagine hardcore drugs are like lol
But not nearly as addictive
 
*hardcore
 
You've got mod powers, just edit it for me :p
 
well, I wouldn't know what those are like. perhaps ask caird :p
@RedwolfPrograms i mean i could but i typically only do that after asking or (more often) if they request it of me
 
Sounds like I should be asking time :p
 
4:22 AM
i have forcefully censored messages like, once total, other than to redact+purge
 
Mod censorship!!!1!!111!!!1
 
@RedwolfPrograms true; i was thinking based on that comparison perhaps caird knows, but that doesn't make sense in hindsight since caird wasn't comparing something to hardcore drugs (which would imply he knows what that's like :p)
 
Just installed trash-cli
 
poggers
 
That moment when you keep mistaking your alexa hoodie for pants because you constantly leave it inside out
 
4:33 AM
Made aliases, trr is trash-put (basically rm -r but can be restored), trl is trash-list, tru is trash-restore, trx is trash-rm (delete something in trash, permanently), trxx is trash-empty
 
4:51 AM
when it 23:50 and haf to speedrun duolingo
 
saving your family any%?
 
5:33 AM
Hello everyone
 
@hyper-neutrino hello
@RedwolfPrograms hello
 
howdy ;p
 
Hope you all are doing well
@NewPosts is this a new bot?
 
5:35 AM
@NewPosts STATUS
dang
this is so sad
 
Why does bots require so much time to respond?
 
@NewPosts STATUS
 
RUNNING: [1] 1 1

[03:35:31] request: chat.stackexchange.com/messages/ack
[05:35:30] request: chat.stackexchange.com/messages/ack
[05:35:41] request: chat.stackexchange.com/messages/ack
 
smugly grins
 
yeah yeah we get it
you with your elite group of trusted users
smh
 
5:37 AM
I think the bot only pays heed to redwolf's commands :P
 
smokey responds to anyone
 
I considered adding you, but keeping it to ROs was the fairest thing I think
And giving all users access wouldn't be smart
 
What is the use of this bot?
Is it a replacement of NewMainPosta
 
@RedwolfPrograms laughs in !!/alive
 
@Wasif Yes
STATUS just returns whether its running or not
 
5:38 AM
Oh i see
@lyxal are you talking about the SmokeDetector bot?
 
@Wasif correct
 
well smokey runs in a dedicated room where "spam" is the whole point :p
even this amount of bot presence in TNB is... way higher than I'm used to lol
i'm fine with it but it feels weird
 
@hyper-neutrino laughs in SOCVR
 
Honestly I don't really think the status command is that necessary, but I suppose it's not a bad thing to have
 
i mean i did suggest it :p but it's more convenient than yelling at you each time
or posting something to test if the bots are really dead or just dropped out of the user list for no reason
 
5:42 AM
Maybe a thing on my website would be a good idea
 
yeah. it'd probably be faster and wouldn't generate clutter and anyone can use it
 
Since if the botd are actually down they can't reply to the message asking if they're down :p
Might be a project for tomorrow
 
@RedwolfPrograms where is your website
 
@lyxal missed rickroll opportunity
 
5:45 AM
Rather uncreative
Both in name and appearance :p
 
@Wasif the correct question is "when is your website"
 
@lyxal why "when" instead of where
 
that's an incorrect question to ask ;p
 
why is your website
 
that's a somewhat acceptible question
 
5:51 AM
Everyone always asks why is rewolf's website, but nobody asks how is redwolf's website D:
Anyway see y'all tomorrow o/
 
\o
he's already gone, hasn't he
 
Not yet :p
...how did this get two upvotes?
 
...lol what
well i don't have enough rep to cast a real downvote but i'll just naa it
 
6:23 AM
The real question is, who is redwolf's website?
 
6:34 AM
 
interesting
 
when the language header isn't formatted properly
 
no it means that the language programming language is op
 
HELLO FELLOW HUMANS. I TOO ENJOY "GOLFING" IN <LANGUAGE>
 
7:04 AM
y'all ever just scroll through like 7 screens of youtube feed and somehow not find anything you want to watch?
 
lol aight sure. been a while since i've watched it
 
8:47 AM
@hyper-neutrino someone seems to be missing :P
 
subtle shade
 
9:03 AM
What is the last digit of the smallest positive integer whose digits add to 2019?
(just for fun)
 
@Anush 9
 
I edited the question
 
Still 9.
 
(sorry)
 
399999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999
 
9:06 AM
Nice answer
 
Since all but the first digit is a 9, changing any digit will lower the sum unless the 3 is also increased, which means the number grows.
CMC: Given N, answer the smallest positive integer whose digits add to N. (Must handle at least N=1000.)
 
Nice.
 
@Anush always 9 for any integer greater than 9, no?
 
Indeed.
 
CMC: Given N>1 and B>1, answer the smallest positive base-B integer whose digits add to N. Must handle at least N=1000 and B=36. You can answer using letters for digits after 9, or as a list of digit values.
 
9:49 AM
@Adám Zsh, 38 bytes, Try it online!
 
10:04 AM
CMQ: Everybody (try to) find their submission that took the most effort.
 
@ophact Submission means any challenge or answer?
 
answer
 
This took a lot of typing
 
@ophact That may take some looking. I've got almost 900…
 
Oops, maybe I phrased it wrong, the code which took the most effort, and not necessarily the prose.
 
10:07 AM
 
Wow! How long did it take to write that?
As for me, I'm not known for answering hard challenges, but I have over-long (if that's a word) answers.
 
That was when I didn't know how to golf.
 
Wait no, this was worse.
 
One tip I can immediately spot, var can be dropped
 
10:11 AM
I was tired, and it wasn't .
Anyway, padding the lines so I had the right line length and codepoint sum took approximately one and a half hours.
 
@ophact Probably this or that.
 
@Adám Nice!
 
(I should add an explanation to Qeng Ho.)
 
@pxeger yes I think so.
 
In second place, this. I was learning Vyxal at the time.
 
10:53 AM
Uhh...
 
@Ausername You seem to be on an answering spree today...
 
Yes, sorry about the frontpage...
 
... "answered 15 mins ago by A username". "answered 35 mins ago by A username"
..."answered 1 hour ago by A username"
 
Ik, I'm stopping now cos sleep.
 

« first day (3774 days earlier)      last day (1063 days later) »