« first day (2350 days earlier)      last day (2496 days later) » 

12:00 AM
@HyperNeutrino I don't think we have a challenge to trim whitespace on all sides.
 
Interesting.
 
Anyway, g'nite.
 
@Adám too trivial probably. '$\s+|\s+$'quad R ''
 
@HyperNeutrino Another one would be trimming the padding of a box.
 
Don't cause a fire! (iGNITE)
 
12:01 AM
interesting idea. goodnight!
 
@HyperNeutrino Finally. Crude CSS. given a box, adjust its paddings and margins according to the CSS (without units, only numbers).
 
Hm. Interesting idea.
 
G-U-I.
 
@Downgoat Gwee?
as in guido
 
12:03 AM
@DestructibleLemon ಠ_ಠ what no this is not what why
 
Anyone else's Firefox randomly decides to close occasionally?
 
0
A: Sandbox for Proposed Challenges

HyperNeutrinoHow many partitions contain all perfect squares? code-golf mathematics number Given a number, determine how many ways the number can be partitioned such that each partition only contains square numbers. This was originally a CMC, but the only answer was my quite long Jelly answer, so hopefully ...

 
@NewSandboxedPosts Geez that was fast.
 
CENSOR THE TITLE.
It's G-U-I people.
 
@DestructibleLemon I've always pronounced that "Geedoh" (hard g) but I'm not sure I've ever heard anyone say it out loud
 
12:07 AM
@HyperNeutrino no
 
@trichoplax I watched a foreign film one time...
 
@HyperNeutrino no
@DJMcMayhem ninja'd :P
brb making image of ninja cat in hat
 
15
Q: When should challenges be protected?

DJMcMayhemUsers with 3,500 rep (or 15,000 if when we get a site-design) can protect challenges. This makes it so that users who have not earned 10 rep on the site can not answer. As a user with this privilege, I have no idea when it would be appropriate to use. This is because the idea of "protecting ques...

 
Ah okay.
OK only drive-by spam answers. ok
 
@Adám Thanks!
@totallyhuman The Game.
 
12:11 AM
@Zacharý Not in the last few months. It used to crash sometimes a year or so ago with many tabs open
 
o_o. Must be because I never update it.
 
wtf apparently clang things a struct in C++ is a C struct
 
@Downgoat So afaik you do some UX design?
@Downgoat wait wtf
 
@Zacharý Not even the urgent security updates??
 
isn't a C++ struct just a class that's public by default?
 
12:12 AM
Nope.
 
@Mendeleev no, it also has naming differences a C struct I refer to by struct Name a C++ struct I don't need a prefix
also C++ struct can have function etc.
 
@Downgoat Um
That's what I said
 
you said struct is public by default
 
struct members are public by default, right?
 
struct doesn't have access modifiers, that is main difference IIRC
 
12:15 AM
struct x {int x; int f(y) {return y + 1;} }; == class c {public: int x; int f(y) {return y + 1;} };
@Downgoat no, they have access modifiers
 
You forgot two semicolons.
 
Can you instantiate a struct?
 
wtf apparently they do O_o
 
@Zacharý Sorry, I've been using Ruby for the past three years. I forgot how to C++ for a bit lol
 
12:16 AM
Don't worry, if you know as many langs as I do... you forget some stuff.
 
Erik The Outgolfer out-golfed me in my own language before I could even answer
 
Of course he OUTGOLFed you.
 
also apparently Clang things a C++ file is a file of language 'Invalid' not 'Unknown' which make like 0 sense
 
I'm just a little shocked someone used my language.
 
C++ = Invalid
 
12:29 AM
Link?
 
@totallyhuman ... you're just asking for that image right now
 
What language?
 
@ATaco ok but forreal you need to link this
 
@DestructibleLemon not my fault :P
 
12:40 AM
Everyone will have NODEA how to play, because no one wants to play.
 
;_; stop being mean
@Zacharý considering the name is derived from "no idea", this isn't really a pun
 
Well, it's a NO DEAl from me then.
 
stop making puns and play please
 
13
A: Interquine - Two programs that output each other in a loop

Erik the OutgolferRProgN 2, 3 + 3 = 6 bytes First program: 0 1 Try it online! Second program: 1 0 Try it online! -2 thanks to Martin Ender.

 
um
not very impressive
 
12:46 AM
At all.
 
I never said it showed an incredible understanding of the language.
But it showed an interest!
 
no it showed that they found a stack based lang with implicit output
 
;-; But RProgN does handle quines rather well.
 
also it was a not fun answer
 
That's entirely subjective.
 
12:55 AM
20
Q: Cheating Cyclic Quine

MendeleevConcept Write a program that outputs code in its programming language. That code, when executed, must output the original program. Rules Since this is a cheating quine, you can read the original source code. First output program must be in the same language as the original program. You may no...

 
Cya.
 
well
@ATaco well I got someone adding turtlèd in the polyglot challenge
 
1:11 AM
Imagine releasing Jelly in 2011, it would have been driven out with torches and pitchforks for being witchcraft.
 
no starbait please
 
I assure you, I'm not trying to starbait.
 
;-; You hurt me so today.
Seriously though I'm not sure Jelly would have survived in the days of Golfscript being ridiculed.
 
when a new user comes to the site:
Mar 16 at 4:08, by Destructible Lemon
user image
 
1:21 AM
Stacked, RProgN, J, APL, Etc: "That's fine."
 
anyway, would anyone here be interested in a new koth, with its own language (a little bit like that simplified core war one in that it has its own language)?
disclaimer: I don't actually have any koth things right now
 
Core war was great fun.
So yes, yes I would.
 
not actually like core war
just that it has its own lang
I think people have expressed interest about a 2d version...
 
Yeah I understand what you mean.
 
oh that reminds me of that coreflak project I was almost working on
how about one of those machine operating games as a koth
how about a ttt/mafia thing
but that doesn't need its own lang
but I was just thinking about that
alright
;_; i ruined my rep number
how about... some sort of automaton behaviour koth
so, a bot has exactly 2 bits of memory
and you get to define behaviour's for all cases of memory arrangement and presence of bots in from of them.
although maybe that would have not enough distinguishable strategy
maybe if...
4 bits
fun fact: I remember that 2^4 = 16 from 4^2 = 16, because this is the only non trivial case of a^b= b^a
ok, so things you can do
fire weapons
rotate
reload maybe
move for a certain amount of turns
 
1:45 AM
ok I was being noisy again
 
1:58 AM
@Dennis according to the email a week ago
> ProtonMail accounts and DigitalOcean credits will be distributed by the companies themselves, so we cannot provide an exact estimate for when these prizes will be given to you. Still, you may expect them within the next few weeks.
 
2:18 AM
J'ai un question sûr français (I think that's how you write "I have a question about French")
 
I think the preposition may be wrong but continue
 
@Zacharý that's what challenges are for
 
@Qwerp-Derp sûr is incorrect; it's just sur. and I'm not sure that's correct either.

 Le Dix-Neuvième Byte

Discussion générale pour codegolf.stackexchange.com en français
 
@Dennis is there any convenient way to make the BrainF*** interpreter on TIO take in and print numbers rather than ASCII literals?
 
Not without a Bash wrapper.
 
2:27 AM
Command Line flags?
Well that depends on how the interpreter's written, actually. Hm.
 
@Maltysen Huh. As far as I can tell, nothing happened.
 
2:46 AM
Should I make a Mandarin room for TNB?
“第十九个字节”?
 
probably not
ok, so, I have an idea for a somewhat interesting koth with its own language
should I make a new room for it?
 
3:02 AM
Is there a way to flatten a directory structure in Windows so all the files get put in one directory?
 
If you're just doing it once, search for * in the top folder, select all, cut, move back to the top folder, paste.
 
Makes sense
ty
 
Super User showed me that and I was honestly baffled with how simple it turned out to be.
 
On Linux I think mv path/to/dir/*/* /path/to/dir works?
 
I tried doing that once and accidentally moved / into a subdirectory, permanently breaking my install.
 
3:14 AM
:OOO I found Linux distro that don't look 100% crap I thought this was impossible
 
Which one?
 
3:35 AM
basic structure of a bot for my koth
botfound:
 00:
 01:
 10:
 11:
nobotfound:
 00:
 01:
 10:
 11:
main:
 00:
 01:
 10:
 11:
after each of the number: parts, is a command
the basic idea is of an automaton basically, and the teeny tiny memory is there to augment it a little bit
actually, there will be a command and two bits that represent what memory will be set to.
does noone want any part of this koth? ;_;

 Automakoth

for a koth I am making, which has a custom "language", and bot...
 
3:53 AM
What is the rule for self answering questions?
Permitted? Encouraged? Permitted with Caveats? Forbidden?
 
Encouraged, assuming you gave everyone else a chance to solve the problem.
 
Cool.
 
Ironically you are more likely to be downvoted for a clever self solution, because people will think you set up the question for that answer.
 
But downvotes don't really hurt, in the long run.
so not to worry, ay
 
They loose you rep, but not a lot. I wouldn't worry about it. I self answer pretty early on and I've never been downvoted as far as I can remember
If its been more than an hour or two I would say everything is pretty much fair game
 
4:08 AM
How long should I leave a challange in the sandbox?
 
why will noone help with my koth ;_;
 
I'm guessing longer if the challange is popularity contest, since these seem more contentious?
 
it tends to be fine to make example answers for those kinds of things actually I think
 
@LyndonWhite Could we see the challenge? I'd like to give it a look over
I don't think people are going to care about you answering your own pop-con, people are more suspicious of
 
0
A: Sandbox for Proposed Challenges

Lyndon WhiteLorum Ipsum Generator popularity-constest string Lorum Ipsum is placeholder text used when preparing layout without wanted to have content already filled. One of it's key features over using some arbitrary text is that it is nonsense. It isn't even valid latin (though it is close). This preven...

 
4:12 AM
I'm not sure how I feel about this
 
Tell me more about those confused feelings?
 
It is an interesting premise but I don't know if it is really right for the site
I will admit that I am highly critical of pop-cons and think they should be banished from the site, but I don't feel like this is a programming puzzle.
I don't know, might just be me. I certainly wouldn't downvote or VTC if I saw it on main.
 
Conceptually it is similar to codegolf.stackexchange.com/q/70483/4397
 
I don't like that one. I think its off topic.
I might be the wrong guy though. I would ask around because there are a lot of people that really like popcons
 
Well fair enough, I think yes if you dislike that one it would be interally consistant if you disliked mine also
 
4:17 AM
I do think your question is better than the patch the image one.
 
Well it is easier.
 
two words, Markov chains
 
Exactly -- it is basically a task in using ngram language models (bigram would prob do)
 
I think it being easier is a plus, the other one could practically be a graduate thesis. Which I believe is too much to ask in a single question.
 
for my koth, should attempting to fire with no ammo kill a bot, or just make the bot not fire and have no other consequences?
 
4:23 AM
Can the bot know how much ammo it has?
 
Though there are other (nonlanguage modelling) solutions that might work for mine.
Take the source text take each work, and consider randomly swapping vowel for vowel, consonant for random consonant. Ignoring the first and last letter of each word.
 
@WheatWizard not very well
I was thinking that maybe I would add an ability for bots to drop "markers"
but maybe not
 
@LyndonWhite You might want to combine that with an n-gram of some sort because not all consonants are equivalent/interchangeable.
 
Point is: Not all solutions are created equal.
That method is easier than implementing anythign with n-grams
There is also a harder solution -- using an RNN language model.
 
fair enough
 
5:23 AM
1
Q: List input in C and length argument

Keyu GanWhen dealing with list input in C, as in this question, is it acceptable to add extra argument to indicate the length of the list? It does give advantages because other language needs functions like len(M), but I cannot figure out a simple way to represent such a list in C. If it is not accepta...

 
23 hours ago, by Leaky Nun
CMC: given a positive number, find the first multiple of it whose decimal notation is matched by the regex /9+0*/
How should I phrase such a challenge in the title?
 
is there a repunit but for nines?
repnonit?
 
@Adám ^^^
 
Hmmm
 
0
A: Sandbox for Proposed Challenges

fireflame241Number Named Regex Groups code-golfstring Using named matching groups is often easier to understand than numbering groups but takes up more bytes. Given a regular expression as specified below, your program or function must convert named groups to numbered groups. Task These specifications ...

 
5:25 AM
Is there an OEIS sequence for that
 
@Phoenix for what?
 
> the first multiple of it whose decimal notation is matched by the regex /9+0*/
 
@Phoenix 9,90,99,900,990,999,...?
not a very useful sequence to me
 
f(1), f(2), f(3), f(4), IDK what the sequence is I haven't done the CMC
 
related but not the same
so no, the sequence doesn't exist in OEIS
 
Anonymous
5:28 AM
Whoops wrong link, also ninja'd
 
@LeakyNun Smallest repnonit multiplied by a power of ten that is divisible by input, then define repnonit in the question
 
@Mego how should I title such a challenge?
 
Anonymous
@LeakyNun I dunno
 
Anonymous
@Phoenix Whoops, change search to match and add a ^ to the end of the regex
 
5:30 AM
:38595698 I like replying to future messages
 
CMC: prove that my challenge is well-defined
 
nope that isn't gonna work
@LeakyNun ?
 
@DestructibleLemon in other words, prove that such a multiple exists
 
@Mego Isn't $ end of line?
 
@LeakyNun hmmm
 
Anonymous
5:31 AM
@Phoenix That would explain why it wasn't working, if true
 
RProgN's seemingly pointless inability to match a string will make this challenge needlessly difficult.
 
@DestructibleLemon 999999 = 7 x 142857
 
^ is start of line
 
5:32 AM
I am now backing up to CrashPlan!
 
Anonymous
@Phoenix I am bad at regex :P
 
Regex is great
 
Regex is awesome
 
You should stop being bad at it
 
5:33 AM
''.'^9+0*$'-L0e is matching the regex... ''. casts to string, '^9+0*$'- removes the regex from the string, L0e checks if it's now empty.
 
@Mendeleev stahp
 
Anonymous
@Phoenix I've tried. Forgetting which anchor is which is a permanent and constant problem.
 
\A and \z are start and end of string
 
@Phoenix Why aren't they the same case!!!?
 
Which is easier to remember and arguably more useful
 
Anonymous
5:34 AM
A reference now will do me no good when I inevitably screw it up in a week or so :P
 
@DestructibleLemon Because there is a \Z and it's equivalent to \n?\z
 
I'm going to give RProgN 2 both regex matching, and easier string casting...
 
I was gonna say, this is some php level nonsense
 
That is, allows an extra trailing newline
 
5:35 AM
There's not a \a
 
Anonymous
It would take a lot more to get to PHP-level nonsense
 
tru
Feature request for any languages people are making
case sensitive bool literal with this capitalisation:
tRue; fAlse
 
@DestructibleLemon Wut
I only posted one thing
 
Anonymous
I don't know why I expected a serious request
 
In most cases, \z is better, but if you're validating user input from a form for example, \Z is more useful because an extra newline shouldn't make any difference.
 
5:37 AM
@Mego because past behaviour is good predictor of future behaviour usually?
 
Anonymous
@DestructibleLemon In that case I definitely shouldn't have expected anything serious
 
I made a serious feature request one time
so up until now I had a perfect track record I think
unless I forget one other time I made a joke or something
 
Anonymous
I'm not just talking about FRs
 
@DestructibleLemon why
 
do it
add it as an easter egg
 
5:41 AM
Will do once get explanation what is reason
 
easter eggs taste good
@Mego ;_;
 
@Downgoat Do you mean it looks pretty? You can stick basically any DE onto any distro.
 
yea mean DE
is Arch Linux good idea for desktop or should I do Debain
Debain has apt-get
 
Arch linux is a bad idea
 
D:
 
5:44 AM
Debian is really stable, but it has outdated software a lot of the time.
 
I found that out the hard way >_<
 
It's not flashy, but it just works without too much setup.
For up to date software, I recommend Fedora or OpenSUSE
Distros like Arch and Gentoo have up to date software, but they're really difficult to set up and use.
 
what's hard about arch?
 
With arch, you have complete and utter control over every aspect of your OS
Setup takes forever and you will probably break something.
 
wait nvm website looks like it was made with wordpress, I see your point :P
@Phoenix what about Ubuntu
I have not actually used ubuntu in like 6 years >_<
 
5:47 AM
It's pretty much in the middle between Debian and Fedora/SUSE
 
ubuntu has horrible typesetting, will a DE do it's own type stuff?
 
Packages are more recent than on Debian, but it's easier to use than Fedora, and apt-get supports a lot of packages.
@Downgoat A DE would do that, but I think changing the font might be enough.
You can get Kubuntu or Lubuntu or whatever to get whatever DE out of the box
@Downgoat Which DE did you find?
 
ARC theme
 
I don't think that's a DE
I think that's a theme
Altough, I may be wrong, looking at some screenshots
No no, not a DE
Just a really extensive theme
I'm pretty sure camo.githubusercontent.com/… is GNOME 3 with some extensions
@Downgoat You have to chose an actual DE before you can apply ARC
 
oh it do both KDE and GNOME
 
5:59 AM
1
Q: Smallest multiple being run of 9 followed by optional run of 0

Leaky NunGiven a positive integer, find its smallest positive integer multiple which is a run of 9 followed by an optional run of 0. In other words, find its smallest positive integer multiple which is matched by the regex /^9+0*$/. For example, if the given positive integer is 2, then return 90, since 9...

 
@Downgoat It doesn't do KDE natively but someone ported it to KDE
 
what is difference between KDE and GNOME
 
@Downgoat Well, GNOME is a pile of garbage.
You need to download an extension to have a taskbar
At least GNOME 3 is
GNOME 2 might have been good
The only thing I like about gnome over KDE is the built in terminal, gnome-terminal is better than Konsole IMO.
But you can apt install gnome-terminal even if you're using KDE
 
6:25 AM
@Downgoat Cinnamon is Linux Mint's DE . It's a fork of GNOME 3 and is generally less awful, it should support Arc normally.
In fact, for you it might be better to go with Mint over Ubuntu
 
@LeakyNun Would you mind me using the just implemented match function for your challenge? Or should I stick to functionality implemented prior to the creation of the challenge?
 
@ATaco as you like
 
@Downgoat Mint is entirely built from Ubuntu and uses the Ubuntu repositories, it's basically guaranteed to be fully compatible with Ubuntu software and packages. It's considered one of the easiest distros to set up and use, however it's biggest criticism is its security, which is worse than on many other popular distros.
 
Fedora is love, Fedora is life.
 
I personally like OpenSUSE, but I wouldn't recommend it as someone's first Linux.
 
6:44 AM
-3
Q: Chernoff face for two variables.

TbbGenerate a Chernoff face for two variables. The input is two integers between 0 and 10, they can be imported as a list or string. The output is the figure. The figure should be in the tradition and style of Chernoff faces. It's up to the golfer to find two suitable expressions of the variable...

 
6:58 AM
@LeakyNun "Find the next 999…[000…]"
 

« first day (2350 days earlier)      last day (2496 days later) »