« first day (2429 days earlier)      last day (2415 days later) » 
00:00 - 21:0021:00 - 00:00

12:21 AM
Is any of the Conway programmers here?
 
@Hosch250 Check out this chat room
 
Thanks.
 
1:07 AM
1
Q: Is the matrix rank-one?

xnorGiven a matrix of integers, test if it's rank-one, meaning that every row is a multiple of the same vector. For example, in 2 0 -20 10 -3 0 30 -15 0 0 0 0 every row is a multiple of 1 0 -10 5. The same definition also works with columns in place of rows. Alternatively, a m...

 
 
3 hours later…
3:44 AM
 
There's no Backend Validation.
 
I guess that's intentional
 
4:37 AM
-1
Q: Rearrange jumbled java code to check magic squares (please read description)

gowthamIf you think it's a cake walk soon after reading the title. I request you to read further to find the catch. I've been provided with code for checking magic squares in jumbled manner and the task is to arrange it properly. The code should print yes if it is a magic square and print no if it is no...

 
 
1 hour later…
5:58 AM
Does anyone know what ¤ is? It's supposed to be "currency sign" but what currency
 
Anonymous
@Pavel Generic
 
"That coffee will cost you 5¤." "5 what?" "5 currency please"
 
Anonymous
@Pavel It's used when the correct typographic symbol isn't available, e.g. when the euro was first introduced, before Unicode added it
 
Ah
 
Anonymous
Also it's used in place of $ in national (non-US) ASCII variants
 
6:03 AM
Why not use that nation's currency symbol tho
 
Anonymous
Because not every currency had a symbol typographically
 
Well if you're making your own encoding anyway...
 
Anonymous
A lot of places (including some in the US) use(d) just numeric amounts, with no currency symbol
 
Anonymous
For example, it's common in upscale restaurants in the US for prices to be listed as whole number amounts, with no currency symbol
 
I guess in most cases it's obvious from context
 
6:27 AM
@ATaco All this time later the though occurs that you should have used Curly braces in the design like in our gradscript logo
 
hi everyone
 
Hi
 
7:10 AM
0
Q: Generate a special period image

Piotr GrochowskiThe program must take input in form of <width> <height> <backgroundcolor> <textcolor> The first row alternates <height> amount of <backgroundcolor> pixels then <textcolor> pixels, second row <height>-1 in the same way and so on. Here is an example for 120 6 #000000 #FFFF00: https://i.imgur.c...

 
7:37 AM
> We're sorry, an error occurred while trying to respond to your request. A log of the error has been saved and we'll fix it as soon as we can.
yeah I'm not sure if that's what we usually mean by "working"...
was it working when you said that?
I mean, tryapl's server
 
8:17 AM
:O TNB used to be so inactive
 
I like golfing with js, is that a problem? thinking about learning ruby
 
@Unihedron If you like JS, Japt is a good extension into golfing languages. Just sayin'
 
hmm, the site I'm using doesn't support JS, but learning Japt seems like a good start
>tfw the code is literally UmX{Xc0 s16}
 
@Unihedron I don't know Japt, but isn't that the ungolfed version?
 
I think you sometimes need spaces in japt they're not always unnecessary
but I suspect } is outgolfed though
 
8:23 AM
@cairdcoinheringaahing ¡Xc s16 is apparently shorter
> users (35)
rooms (37)
It really is quiet right now
 
8:40 AM
do you know of sites that has mock problems to practice golfing with?
ideally with functionality for scorekeeping, etc
 
 
3 hours later…
12:01 PM
0
Q: Nobody knows GAU Numbers

Jose ZamanLet me introduce you to GAU numbers GAU(1) = 1 GAU(2) = 1122 GAU(3) = 1122122333 GAU(4) = 11221223331223334444 GAU(6) = 11221223331223334444122333444455555122333444455555666666 ... GAU(10) = 112212233312233344441223334444555551223334444555556666661223334444555556666667777777122333444...

 
@Unihedron No sites (aside from here, of course), but this may be helpful if you're learning a new language
 
heh, 3 answers with 7 bytes!
 
@LeakyNun SOGL could be 6 (replacing .∫ with ) if was implemented..
 
@dzaima emphasis on could
 
12:18 PM
@LeakyNun Levant would be 6 bytes, if I could finish the interpreter :(
 
@cairdcoinheringaahing emphasis on could
 
@LeakyNun Just give it 2 months, then I'll win :P
 
12:43 PM
0
Q: Use an editor to write "Hello, World"

user72528Objective Use any editor or IDE (vim, emacs, IntelliJ, etc) to write a valid "Hello, World" program in any C-like language. You may use publicly available plugins, a publicly available vimrc, etc, but you may not write or make modifications to them specifically for this challenge. Winning Few...

 
4 answers with 7 bytes
 
12:56 PM
total?
 
@JohnDvorak ?
ooooh someone posted a 5-byter
 
oh, each.
 
1:09 PM
@Unihedron golf.shinh.org
@cairdcoinheringaahing How could you not know about anagol...
 
1:19 PM
Sep 19 at 21:30, by programmer5000
Is it possible to make a finite-length regex that takes infinite time to match a finite string?
 
@programmer5000 sure, but most optimizations prevent that
by having you not able to match the empty string for more than once
 
@LeakyNun example / proof?
 
@programmer5000 ()+
 
1:45 PM
After seeing this recently closed question, I was wondering whether [tips] questions on how to solve specific programming puzzles would be considered on-topic on PPCG.
 
@Laikoni I remember seeing some a while ago that didn't get closed (as far as I know)
 
We allow [tips] questions on how to golf a certain task, but I'm not sure I have seen questions concerning other types of programming puzzles.
Oh well, the question just got deleted.
 
2:15 PM
@MagicOctopusUrn Do you watch too many vines :P
 
Okx
1 vine is more than enough for anyone
 
wine, on the other hand...
 
2:45 PM
0
A: Sandbox for Proposed Challenges

Bruce ForteCreate a .pdf file Your task is, given a non-empty string, to create a valid PDF file that contains no more than this string (no page numbers, date etc). Your submission has can either be a function or full program that achieves this task. Rules The input will be a non-empty string of printab...

 
Is there a publicly available spec of the format, that doesn't require six months of waiting, 100$, signing a non-disclosure agreement and sacrificing a goat? If yes, do link. If not, I'm going to nope out of the challenge. — John Dvorak 56 secs ago
 
3:21 PM
0
Q: Is there a way to search not get my own content?

sergiolI tried to get all tcl posts that are not from my own authorship https://codegolf.stackexchange.com/search?tab=newest&q=tcl%20-user%3ame using tcl -user:me but it interpreted it as posts not containing the string "user:me". I also tried https://codegolf.stackexchange.com/search?q=tcl+use...

 
@Adám ;_; y use turnstile as identity
 
@ people with OEIS accounts, this answer has more values for A000214
 
@Stephen wait
I still have no idea what AG is
@Stephen
 
@LeakyNun this is the most I've seem that talks about AG
I dunno anything about it
 
oh, affine group
In mathematics, the affine group or general affine group of any affine space over a field K is the group of all invertible affine transformations from the space into itself. It is a Lie group if K is the real or complex field or quaternions. == Relation to general linear group == === Construction from general linear group === Concretely, given a vector space V, it has an underlying affine space A obtained by "forgetting" the origin, with V acting by translations, and the affine group of A can be described concretely as the semidirect product of V by GL(V), the general linear group of V: ...
 
3:28 PM
sure
 
@JohnDvorak Thanks a lot for your feedback!
 
halp I'm trying to compile clang but it crashed because it's using too much memory, yet I have 8GiB RAM + 1GiB swap
 
@TuxCopter compile clang = compile with clang, or are you compile compiler toolchain itself?
 
I'm compiling the LLVM toolchain
 
Good luck
 
3:44 PM
@TuxCopter why?
 
To write a backend
 
@TuxCopter you should use LLIR for that :D
 
Also I just noticed the compilation already used 40GiB of my home partition o_o
 
@Stephen submitted edit proposal
 
@LeakyNun Looks like the b file has already been updated.
 
3:54 PM
@H.PWiz yes, I uploaded it
 
Oh, well the link name hasn't been updated
 
@H.PWiz because the edit is pending
 
I'm surprised that they update the file without approving the edit
 
lol
 
4:08 PM
@EriktheOutgolfer @H.PWiz Why do you think this is not unclear?
 
because I understand the well-worked example
 
@FunkyComputerMan I think the same, actually
 
G is for GAU, A and U are just there for no reason — Jose Zaman 4 hours ago
>_>
 
Examples are not a specification. Am I alone in thinking that the examples are neither "well-worked" or sufficiently clear?
 
it doesn't really specify what to do with multi digit numbers also
 
4:11 PM
where it says "Example" you can see how it works...if you think it's unclear vote so
 
@FunkyComputerMan feel free to provide a bullet proof spec if you feel the examples alone can be misinterpreted.
@HyperNeutrino the last example does
 
umm, by "example" I'm not referring to the test cases
 
Ok, the last test case does then
 
@JohnDvorak oh ok whoops
 
I'd say the challenge is unclear but it is understandable. Whether or not it's close-voteable because of that is anyones opinion IMO.
 
4:13 PM
I do not feel like speculating about what the author intended or not. Its really not my responsibility to satisfy the numerous comments on the challenge.
 
but those aren't part of the spec, although by "every number as many times as its value" I understand that multi-digit numbers need to be handled like 10 -> 10101010101010101010
 
I don't see why everyone is always so adverse to closing things until the problem is sorted out. Its just a temporary measure
 
@FunkyComputerMan what is there to speculate about?
 
The entire specification. We are all speculating as to the task from the examples
 
Disagreed
 
4:16 PM
What do you disagree on?
 
I disagree there is anything unclear about the asker's intent.
 
I think you had already made that clear. I was claiming that we were all speculating which I don't think is a very controversial statement.
 
It's not a question of the asker's intent but more so how the question can be unambiguously interpreted by a user
 
@FunkyComputerMan Did you see my questions in the third stack? I'd like to get rand-flak published as ASAP as possible, so I'd like your input
 
Oh I thought you resolved it yourself for some reason
 
4:20 PM
There is a crystal clear spec implied by the question. I don't think there is any doubt what the spec is. Feel free to turn it into an explicit spec.
 
I'll look at that
 
@FunkyComputerMan Well, I did resolve the error, but now I have a design question
 
Is there a flag in python3 I can set for the interpretor so I can be really sloppy and pass strings in functions as say myFun(myStr) instead of writing myFun('myStr') ?
 
no you cannot overwrite the syntax of Python
first of all that would be a mess. in short, don't be lazy :P
you can set the strong to a variable of you want though that's not quite the same effect
 
You can convince Ruby to sport bare words. You just shouldn't.
 
4:28 PM
@georg no, an interpreter would implode if you could do that
@georg just a few examples, especially considering Python is dynamically typed - myFun()), myFun(1), myFun([]), myFun([str(x) for x in myList]), etc. - so many symbols that can be in strings have meaning in Python, and Python doesn't know that the argument is supposed to be a string
 
You can't hack the syntax? I do it all the time when I don't care expressions in LaTeX. So then I use TeX to hack it
 
@georg short of recompiling and forking Python to do what you want, no.
LaTeX and TeX also aren't exactly the same as interpreted programming languages like Python :p
 
Ok, I'll just use create keyboard macro with editor i guess.. :p
 
@georg well... how do you want to interpreter to interpret myFun())?
 
do we have a "sort these strings, taking numbers into account" challenge?
aka, sort a list like: "1a", "1b", "4a", "4b", "10a"
 
4:44 PM
I'm not sure how that would be applicable...you mean strings of [0-9] to be considered as numbers?
 
yeah. It's a pretty common task to want to sort filenames like that
like, you want "photo1.jpg", "photo2.jpg" not "photo1.jpg" then "photo10.jpg"
 
not really sure about that
 
@ThomasWard Oh god those eyes.
 
they weren't always like that
 
5:07 PM
Can I have some feedback on this? I'm thinking about posting it.
 
@EriktheOutgolfer actually they had been :P
@flawr CHAOS RISES MUAHAHAHAH laser eyes fire lazers at everything and burns the room to the ground
 
@ThomasWard sorry couldn't get the joke since I search for so that I prove my statement saw your network profile :p
 
:P
yeah that's outdated
but still
 
5:33 PM
@ThomasWard Your eyes remind me of Mr Flibble
 
who?
 
Someone with eyes like yours...
 
heh
 
Specifically the penguin
 
5:47 PM
@trichoplax :O Its a cross between Thomas and Mego!
 
such a cross would spell doom for the earth
 
Don't cross the eyes!
 
crosses eyes
 
@ThomasWard A penguin with lasers for eyes who has both RO and mod powers. Sounds awesome to me :P
 
massive subspace explosion destroys the world
 
5:51 PM
> both RO and mod powers
the latter implies the former
"maximum powers you can get as a normal user" is a mod power
 
^ that
 
@EriktheOutgolfer Whatever, you know what I mean
 
no he doesn't
:P
 
@ThomasWard For the first time today, ಠ_ಠ
 
6:07 PM
I need two more answers for but I haven't written a code-golf answer in over a week. Any suggestions?
 
What type are you looking for?
 
@FunkyComputerMan How about this or this? totally not promoting my questions
 
If we're recommending our own golf questions, I've written a baker's dozen myself...
OK make that a dozen - one of them's a tips question
 
@trichoplax That link only works for you. Showed mine for me
 
I could change it by replacing the number (or just clicking search again) but that's not as funny
 
6:14 PM
@trichoplax Can you explain why that's boring?
 
It's not - I genuinely forgot to correct the link
Excuse my poor sense of humour. I'm working on it
 
0
A: Sandbox for Proposed Challenges

fireflame241Generate Numpad Friendly Numbers code-golfnumbersequencenumber-theory Inspired by Generate Keyboard Friendly Numbers. Background Many number pads have the following layout: 789 456 123     0     We define a number's neighborhood as the set of cells orthogonally adjacent to it on the nump...

 
hey my answer caused a new sandbox post! :D
 
@cairdcoinheringaahing I don't know why I promote old posts, when all that happens is that they get downvoted :(
 
haters gonna hate
(not to accuse anyone)
 
6:25 PM
@EriktheOutgolfer Doesn't mean I have to like it
 
but you can't vote on your own posts
 
CMC: Write the shortest JavaScript code that when run in the console will swap the behaviour of all upvote and downvote buttons.
 
@HyperNeutrino 2 bytes: no
 
@EriktheOutgolfer 1 byte: y
 
who knows what will happen next
 
6:27 PM
@HyperNeutrino Is it possible to down-repcap? i.e. get a limited number of downvotes?
 
@EriktheOutgolfer lol :P
@cairdcoinheringaahing I don't think so... I can try it on you if you'd like /s
 
@HyperNeutrino Yes, let's try it. I'll downvote you 100 times :P
 
ಠ_ಠ :P
 
also 40 votes per day!
and serial vote reversal
;p
 
@EriktheOutgolfer 100 < 40 in some base
 
6:29 PM
no
 
I think the base has to be negative
 
probably
 
yes negative bases exist but I'm not sure such representation is correct for it
 
Nope that;s fine
negative bases have the nice attribute of not needing a - sign to represent any numbers
 
yes
- is an operation actually I think
 
the latter
 
@EriktheOutgolfer lol
 
because you are trying to convert 40 from base 4 where 100₄ = 40₄
 
@EriktheOutgolfer Yeah I just realised what I did wrong when I tried to do it in Python :D
 
btw there's also bijective base but 40 isn't either valid base-4 or bijective base-4
jelly instead of erroring uses math though
so "convert from base" is more like "do the computations used without checking for validity first" and that is a useful feature sometimes
 
6:37 PM
Haha Jelly thinks that 100 < 40 in unary :P
 
but that's not unary?
 
@EriktheOutgolfer Base 1 is unary
 
but that's base 8
oh wait
 
@EriktheOutgolfer ಠ_ಠ The footer is a nilad
 
yes the argument is misleading
and yes it's smaller since 1 < 4
 
6:41 PM
CMC: Given a list l, check if the elements of l are in ascending order
 
jelly, 2 bytes: ⁼Ṣ
 
I have 2 bytes for Jelly
 
ninja'd :P
ninja'd
@EriktheOutgolfer Weirdly, that isn't my solution. Mine uses ASCII only
 
I'm guessing it uses I?
 
6:43 PM
btw = won't work
 
mhm cuz vectorization
also, ascending strictly or >=?
 
I don't think you can force > just with "order"
 
true
I guess you'd have to say "check if each element of l is strictly greater than its successor"
 
you also have to say "and each of its elements is unique"
 
or that
 
6:49 PM
@cairdcoinheringaahing SOGL, 5 bytes: -{1<+ - 0 = strictly ascending, 1+ = not strictly ascending
 
@dzaima fail
 
@dzaima What does →F do?
 
it also shows >=1 for non-at-all-ascending
 
@cairdcoinheringaahing → = evaluate POP (nothing on stack, so input), F is the above defined function
@EriktheOutgolfer & ^^^^ ?
 
6:53 PM
@EriktheOutgolfer @HyperNeutrino either of you up for some JHT?
 
@EriktheOutgolfer what's wrong there? it's not strictly ascending, so it gives >=1
 
not right now sorry
 
@HyperNeutrino sees the CMC set by Jonathan Allan, quickly avoids doing it :P /s
 
in Jelly Hypertraining, 2 hours ago, by Jonathan Allan
CMC: input is a list containing any mixture of integers and wrapped integers - e.g. [1,2,3], [1,[2],[3],4,5,6,7], [[1],2,[3],[4],5,[6]], or, ... The output should be a list with each of the integers untouched and runs of wrapped integers concatenated together - e.g., respectively, [1,2,3], [1,[2,3],4,5,6,7], [[1],2,[3,4],5,[6]], or, ...
 
6:54 PM
huh that's a cool CMC
might go do it in a bit once I post my answer to the OEIS challenge
that looks like a fun CMC
 
@HyperNeutrino Let me guess. Python?
 
nope
well I'm writing my implementation in Python but then I want to make a PostL answer to this
 
@HyperNeutrino I don't suppose you'd mind explaining codegolf.stackexchange.com/a/143539 ?
 
@Neil done
 
thanks
 
7:03 PM
np
 
CMC: Find a Python answer that uses a class. Example: this one
 
7:30 PM
huh so apparently PostL is slightly less trash than I originally thought; it can do a few minor tasks
 
Hey, I'm not sure if this is the place to put this, but I think that this question should be considered for re-opening
 
@TaylorScott this is the right place (the room is for discussion about ppcg lol)
 
Sweet :)
(wanted to make sure that I was not stepping on any toes)
 
:P
if you look at what TNB becomes sometimes that is like ultra-on topic lol
1 more vote
 
And it's open, thanks for taking a look at it guys :)
 
7:35 PM
@HyperNeutrino Wait, so TNB isn't just a slew of offtopic oddness and code chatting? *shot*
:P
 
@ThomasWard Well that's what we want the mods to believe
 
...it was bound to happen
-1
A: Nobody knows GAU Numbers

MidnightasNow That's Just Cheating, 0 bytes   Run with: java -jar ntjc-0.0.1-SNAPSHOT.jar 143555-8 <insert gau number here>

 
wow
I'm not even mad
that's actually super impressive
but I guess it should probably be disallowed
 
7:40 PM
really? :/ This along with we may implement functionality post-challenge means it's super easy to have a lang that has 0 bytes for every challenge. It's hardly impressive.
 
I'm more impressed that someone went through the trouble of actually making the language itself rather than the submission - i mean to say that making any language is, as far as I see it, impressive in and of itself
 
@TaylorScott doesn't this cover it?
 
LOL it just wraps "run this program"
 
@TaylorScott Please read my profile :P
 
yes, I am aware that you and several others have made your own languages, @cairdcoinheringaahing
:P
 
7:44 PM
@TaylorScott Although, keep in mind that basically all of mine are useless :PPP
 
lol
will do :P
and @dzaima, i don't think it actually does - this language is actually taking a program as an compiler argument, which that rule does not explicitly forbid; However, I think that maybe this does
 
Whatever loophole it breaks, it should be deleted.
 
@TaylorScott no, it takes a number as an argument, which chooses a file with an implementation of the challenge
I mean, in the source code there's this, how is that not specifically designed for the challenge :p
 
@TaylorScott It is a version of MetaGolfScript, which is a standard loophole
 
Oh - you are right - i just skimmed over the answer and thought that it was taking a jar file as input
but thats just the command line argument
 
7:52 PM
@JonathanAllan lol
 
Aaaand, flagged
 
Also @cairdcoinheringaahing, since I read your profile, what type of dog are you?
 
@TaylorScott Springer/lab cross
 
dalmatian I guess?
ah
 
Cool :)
 
7:56 PM
@EriktheOutgolfer ಠ_ಠ Not all black and white dogs are dalmatians. We springerdors are trying to get rid of that stereotype
 
I'd say that you are cute but that seems like it would be wierd
6
 
@TaylorScott I know what you mean, it's not weird.
 
@TaylorScott There's a pretty high bar in here for being considered weird.
 
Oh, wonderful - then I'll fit right in
 
Anonymous
8:05 PM
@mınxomaτ Given the amount of people with animal avatars... Plus that one weirdo with an artsy doorknob.
 
@Mego Artsy is one word for it.
 
@Mego shhh that weirdo can suspend you :P
 
@dzaima Because is an operator and binds ¯1 first. Here is your solution golfed: {⍺⌷⍣(≢1↓⍺)⍨⊂⍵}
@LeakyNun APL, 5 bytes: ⍞[⍋⎕]
 
@Adám lol
 
@LeakyNun Yeah, well, APL has had a permutation-inverter built-in since day 1.
 
8:13 PM
@Adám nice
 
@Adám Which part of the code is the builtin?
 
@cairdcoinheringaahing It is really just ⍋. the rest just to apply it and index the string using the result.
[sorry for the messed up edits - all fixed now]
 
10 mins ago, by Mego
@mınxomaτ Given the amount of people with animal avatars... Plus that one weirdo with an artsy doorknob.
 
ah that one
 
Um, I think I broke TIO's Python
> Traceback (most recent call last):

Real time: 32.114 s
User time: 30.634 s
Sys. time: 0.007 s
CPU share: 95.41 %
Exit code: 1
Full error message
 
8:21 PM
lol?
what code were you writing xD
 
@ThomasWard Brainfuck interpreter
 
ouch xD
 
@cairdcoinheringaahing TIO link?
 
@Pavel Weird. I reran that code and got . It was a KeyboardInterrupt though.
 
@cairdcoinheringaahing sounds like an anti-runtime-overload kill
i see KeyboardInterrupt on my python processes when the oom-killer kills them off
 
8:25 PM
Or you pressed "stop this code" twice
 
true
 
I think the first time will raise KeyboardInterrupt and the second time will hard-kill it
 
Yep
 
-1
Q: I need help creating a program with characters!

ErnestoI need to create a program that will ask the user to guess a random number that you generated between 1 and 8 inclusive. You will read their guess as a character data type and validate that it is a number using the isdigit() function. If they enter a character that isn't a number assign the value...

 
@NewMainPosts Huh? Why did someone upvote that?
 
8:28 PM
Dropping a new (WIP) track: soundcloud.com/phinotpi/mist </self-promotion>
Maybe... five hours of work this morning?
 
@PhiNotPi Why does that feel like a track from the original Star Wars trilogy?
Also, nice work!
 
thanks
 
@PhiNotPi Is there a way to play all of your tracks on Soundcloud? I just realised how much I like them :P
 
@cairdcoinheringaahing Thanks :)
 
@TaylorScott Sure thing. I always upvote creative solutions :D
 
8:46 PM
@cairdcoinheringaahing try soundcloud.com/phinotpi/tracks
 
@PhiNotPi Ah, thanks! You do make great music btw
 
8:59 PM
Hey guys, I think I'm running into a compatibility issue with a 64-bit vs 32-Bit Excel VBA - would any of you be willing to check if y=Int(w/2^8) is autoformatted to y = Int(w / 2 ^ 8) when pasted into a new module in 32-bit excel VBA ?
 
00:00 - 21:0021:00 - 00:00

« first day (2429 days earlier)      last day (2415 days later) »