« first day (3169 days earlier)      last day (1665 days later) » 

1:16 AM
0
Q: Code golf involving GPS?

Dannyu NDosI planned to ask a code golf involving GPS: What's the current zodiac? Objective: Display the emoji of the zodiac of current time, according to your location. Rules: 1. There's no input. 2. If your system cannot access GPS, use your system locale and your system time. (blah bl...

 
2:15 AM
It's difficult to overstate how significant the monetary and organizational overhead was in dealing with SO's will they / won't they in the past year for us (with 1000+ developers working on 3000+ repositories). The result is a complete and total ban of SO-sourced code (or prose), with static analyzers and regular audits set up to purge them from existing and future code.

Plus, this whole thing has done nothing to improve legal's stance (which I can empathize with - in this specific case) on open-source, damaging efforts that had been in the works for a long time.
 
 
1 hour later…
3:22 AM
@mınxomaτ Yeeeesh, that's no good. :/
 
 
2 hours later…
4:56 AM
0
Q: CUT OUT HEXAGONS

AZTECCOWrite a full program or a function taking an unsigned integer number N and doing this cut out work : -> Cut out an exagonal shape with side B-C equal to 2 '/' * N -> Translate the piece above by 3 lines. -> Repeat the job N times (from the piece obtained) decrementing by 2 '/' side B-C , unt...

 
 
1 hour later…
6:19 AM
0
A: Sandbox for Proposed Challenges

AZTECCOTurned Shape code-golf ascii-art 3d How can we rappresent a turned shape in 3d simply and nicely using ascii charachters? I suggest this method : Instead of a circle we use a square rotated by 45° for the cutting section so that we only need '/' and '\' characters to draw it. /\ / \ \ /...

 
6:39 AM
0
A: Sandbox for Proposed Challenges

AZTECCOGolf Lathe Machine code-golf ascii-art 3d You probably know what is a Turing Machine but do you know what is a Turning Machine (lathe)? Ok you already know.. and what about a Golf Turning Machine ?? Ok i tell you.. A Golf Turning Machine is a full program or function taking a list/array (or an...

 
 
2 hours later…
8:41 AM
0
A: Sandbox for Proposed Challenges

A _Shortest way to get an EOF Error It's simple, simply write the shortest code to raise an EOF Error. An EOF Error happens when the language expects more code to be entered into the source code; however, the language encounters an EOF character. So here is a sample Python program to throw an EOF e...

 
9:00 AM
2
Q: Fill a bowl with alphabet soup

Luis MendoWe seem to never get tired of alphabet-related challenges... The recipe Given a string of letters S, and two positive integers M, N, produce an alphabet soup with the letters of S occupying random positions in a rectangular bowl of size M×N, framed by a non-alphabetic character to represe...

 
 
3 hours later…
12:10 PM
^ 10 answers and 4 votes? People don't like the challenge much, yet they answer it...?
 
@LuisMendo I have never not upvoted a question that I took the time to write an answer for
4
 
I have encountered challenges that I didn't really like yet decided to answer anyways. Not see why that would be the case for this one though.
 
maybe people don't like alphabet soup?
 
@LuisMendo Since I stopped caring about rep, I've begun to forget about voting.
 
12:29 PM
@NewMainPosts my Canvas answer currently contains p.p.overlap(p.p,0,p.p,(a,b)=>b==0?a:b)# and i have no idea if i can do the thing that does in less bytes than that ಠ__ಠ
this is how far i've got, no idea how to handle the bottom without +30% size
https://tio.run/##zZtLruIwEEXntQrvwBsqCT31vCct9fZpICSxE8e@t1xFk8EjQjxyVMc38Y9fP7///vy539OXH@L7dbfH8cWAt/z8q7cvBbzlvJyoJ6J44ulymj0RxQ0vv@w@jteJG6J44T2x8u116ELogyheeLoWcClh9kIUF7yX1VLxW7MDonjgLXp1fztvmqcRxQPvXby34UcNS82TiDKNV@ndEEvNU4gyi7fr1QNfoXkCUWbxVr0l4fuWU2o2I8oUXqFX64/kk2YjoszgVXrrNtjSbEKUGbyW3q5mA6KY8Q56tcNXFpFFFCterbd5m2lrJhHFilej6fnj@VIzhSgmvLPecxvsaSYQUcCcYb2QZlVfwDzQqwO@hmb1BGzqrV@afIvb/cVAKBa@3CBs/duBTy2EQvK1infdBltlJAmF5EttwssSDjR7AAJ6FedTllAIvgu93dvMUPMsIKC3c40MaJ4DhPQ269eLCUMoIF9Hb/cLEM12QEyvmvgSSCgoHx
 
@LuisMendo got an answer and an upvote from me:)
 
1:27 PM
@flawr :-D
 
2:25 PM
21 messages moved to MATL CHATL
 
Let's try then, thanks!
Works!
Thank you
Funny, I think the permalink of a message before and after moving it to another room is the same
 
Oh, interesting
 
Yeah, permalinks are based on message ids, which are globally unique (in a chat network).
 
@El'endiaStarman How many chat networks are there?
 
Three. StackOverflow, StackExchange, and...Meta SE, I think?
 
2:40 PM
@El'endiaStarman So you can't move msgs between them?
 
Correct.
 
@El'endiaStarman Thank you for that info. I'd been considering whether my room would be better off on SO, but then I couldn't move off-topic messages.
 
@Adám And also we couldn't give explicit write access anymore
You'd have to find... gasp an SO mod
4
 
@DJMcMayhem That sounds very scary. Don't worry, I'll stay here. At least there are still some mods left.
 
ngn
coincidence? same topic in the "the meta room"
 
2:49 PM
I think they're talking about post migration
 
 
2 hours later…
4:37 PM
Anyone knows what Stack Exchange site "hsm.se" is?
 
History of Science and Mathematics
 
Yeah, that one
 
Wow, no one on that site has the great question badge :o
 
@cairdcoinheringaahing Thanks. Way too many mathematical SEs… I count 4 now.
 
4:43 PM
@Adám MO, Math, HSM, what else?
 
@cairdcoinheringaahing matheducators
 
Of course :/
 
 
2 hours later…
6:29 PM
1
Q: Spreadsheet Columns

gadzooks02Spreadsheet Columns In most spreadsheet programs, columns go A, B, C, ... X, Y, Z. After this comes AA, AB, AC ... AX, AY, AZ, BA and so on. Your task is to convert one of these strings in to a column number. You must support inputs up to the maximum length of your language, to a minimum of 3. ...

 
Bah. Crappy answer is crappy.
 
@AdmBorkBork Crappy? Is that a new language? I don't see it on TIO ;-)
 
hehe
No, I'm just losing to Python/JS by about 45 bytes. Which usually means I'm missing something obvious.
 
7:11 PM
0
A: Sandbox for Proposed Challenges

gadzooks02Code Golf Measurer © 2019 code-golfhexadecimal Hexdumps used with hd look something like this: 00000000 48 65 6c 6c 6f 2c 20 77 6f 72 6c 64 21 20 48 65 |Hello, world! He| 00000010 6c 6c 6f 2c 20 77 6f 72 6c 64 0a |llo, world.| 0000001b Your task is to convert a hexdump i...

 
f(a) = {
returns 0 the first time you call it
returns cmp(a, lastA) //lastA is the last a you passed to f
}

Using `f` to compare items, sort a list in as few `f` calls as possible
 
@NathanMerrill Worst case or average?
 
@DJMcMayhem hmmm...average
though worst case would also be interesting
 
7:28 PM
That feels a lot like bubblesort
 
@LuisMendo Answered and upvoted.
 
7:53 PM
@Adám Thanks :-) Upvoted too
 
Two high-rep users creating even more rep for each other — out of vacuum.
tbf, rep isn't entirely useless, it has one use: as payment for bounties.
 
It also grants privileges
 
@AdmBorkBork Early on, yes, but once a high-rep user (≥25k) that becomes irrelevant.
 
true
 
@Adám it also gives you some internet points.
 
8:06 PM
@J.Sallé To which end?
 
That feel when you know Python, JS, C, C++, Elixir etc. but the project that you need to work on must be implemented in Java...
Feels bad man
 
@Adám :-)
(To be clear, I didn't mean to suggest that the challenge deserved more or fewer votes. But it was surprising to have way fewer votes than answers)
 
@LuisMendo I know. But the challenge is good (so it did deserve my upvote), and led to extensive discussions in the APL Orchard all day long (so I was aware of the challenge long before your comment — i.e. you didn't influence my voting either).
 
ngn
8:41 PM
@Adám obviously a conspiracy between the jews and the il luminedos (the anagram - coincidence?)
 
9:25 PM
@ngn :-D
@Adám I see. I'm happy that it led to some discussions there
 
9:42 PM
Is mathematical-formula-golf on-topic?
 
ngn
@Adám as long as it doesn't interrupt any important conversations about food
 
CMC: Golf
 
0
Q: Recreate Apple ][ Lemonade Stand Intro

TeslaX93Your task is to recreate this simple intro animation from an oldschool game called Lemonade Stand (Apple ][ version) Rules: The animation should be at least 40x25 characters (or 320x200 pixels in graphic mode) - the animation can be bigger if you keep the aspect ratio. There should be 5 differ...

 
ngn
@Adám 2=i - should that be i=2?
 
@ngn I guess. APL influence, but isn't = commutative in TMN?
 
ngn
9:57 PM
@Adám not when introducing the iterator variable for big sigma. and if i see an i only on the right-hand side, i'd normally assume it's sqrt(-1)
 
@ngn Except 2 ≠ i :P
 
@ngn OK, then:
 
ngn
@DJMcMayhem you are right. i checked that with a calculator. @Adam please correct 2=i to 2≠i :)
or i≠2, as ≠ is also commutative
 
Ground rule: Score will be in bytes of ASCII characters between the opening and closing $$.
 
ngn
using / instead of \frac is a bit cheaty
is the whole thing the prime-counting function?
 
10:04 PM
@ngn No. It is a function which returns 1 if n is prime, 0 otherwise.
 
ngn
oh, right
so, 15 bytes: $$\pi(n)-\pi(n-1)$$
 
@ngn Nice try, but fails for p(3.5)
 
ngn
i could do floor but it's so expensive in LaTeX
@Adám is this allowed? p(n)=[n~\textrm{prime}]
 
@ngn No, that is cheating.
@ngn Btw, you don't need rm
@ngn Btw, that's 20 including p(n)=
My best so far is 35.
 
ngn
maths notation isn't an objective criterion for scoring, but anyway
 
10:13 PM
@ngn Hence CMC. Are you not having fun?
 
ngn
@Adám i've been having too much fun watching the stackexchange drama lately, so yeah, this is refreshing :)
 
@ngn Want to see my 35er?
 
ngn
@Adám hang on
many number-theory functions are defined only for natural numbers, can we use them?
for instance idk what the totient of a fractional number would be
p(n)=[\varphi(n)=n-1]
 
@ngn If something isn't defined for any number n, then you can't use it without catching domain errors first, like I did with n∉ℕ before evaluating n<2
 
ngn
@Adám ok, if there aren't others who are golfing rn, i'd like to see your 35er
 
10:23 PM
@ngn p(n)=[n\in\Bbb{N}](\pi(n)>\pi(n-1))
 
ngn
! Undefined control sequence.
l.5 p(n)=[n\in\Bbb
                  {N}](\pi(n)>\pi(n-1))
 
Hey, -1 byte: p(n)=[n\in\Bbb N](\pi(n)>\pi(n-1)) which renders like this:
@ngn Where does that msg come from?
 
ngn
@Adám pdflatex barfs it out
 
@ngn Ah, but we're on CGCC.SE, so:
Actually, the right-side paren should be a bracket, p(n)=[n\in\Bbb N][\pi(n)>\pi(n-1)], but same byte count.
 
ngn
heh, when i saw \Bbb here, i assumed it must be some newly added command instead of the good old \mathbb i was taught long ago
turns out it's the other way round, and i ain't so old after all :)
 
 
1 hour later…
11:55 PM
0
A: Sandbox for Proposed Challenges

bigyihsuanA Musical Tuner code-golfnumbermusic Oh no! My tuner's batteries ran out, I need to play in a concert in a few minutes, and I need to know if my instrument's in tune! I need this tuner quick, so it needs to be short. Background In music, all notes are given a letter from A-G/H, an optional sh...

 

« first day (3169 days earlier)      last day (1665 days later) »