« first day (4385 days earlier)      last day (451 days later) » 

12:10 AM
I'm wondering if the @ terminator would've been more useful if it terminated iff the bit that hit it was a 1.
Ie, how often is @ paired with a +, vs being used by itself.
(Then again, you might have to pair the proposed version with an = if you want it to terminate with a 0.)
 
12:32 AM
3 hours ago, by Seggan
so i think ive decided on my error strategy for rol
Whadda y’all think
 
1:24 AM
any last feedback on this?
 
✅ Ginger approved this post now
 
0
Q: Knook to Mate... With Portals!

lyxalAlternatively: Now you're checking with portals! Inspired this challenge I am somewhat of a self-declared Chess Anarchist. That means that when I play chess, en passant is forced (else the brick gets used), double check is mate (and pasta), and all sorts of new pieces and squares are added to the...

 
1:42 AM
@cairdcoinheringaahing the deadline for best-of nominations has passed
 
hey wait that's my job
...which I will do tomorrow, because now is sleepy time
 
That's my job now :P
 
don't you dare
we can wait a little longer
 
looks like it's started :p
 
I've already locked the nominations post and am doing the comments now, sorry
 
1:45 AM
:>(
I'm so angry my eyebrows turned into my nose
 
lol
 
I am slightly concerned at the number of uncontested categories tho
8/16 are uncontested, including multiple self-nominations
I am tempted to keep nominations open for another week or so to try to get more nominations
Due to the fact that 8 of the 16 Best Of categories are uncontested, nominations are remaining open for another week, until Feb 7, 2am UTC. Please, get in some more nominations!
6
@Ginger I am waiting a little longer
 
noice
 
and if there's still uncontested categories will the deadline be enforced?
 
Yes
At that point, any uncontested categories will be declared for the only nominee
If it were 2 or 3, I'd go ahead with voting now, but literally half are uncontested
 
1:57 AM
well we'll see if this announcement gets any better results than the last one
 
I haven't actually nominated anything yet, think I should probably do that :P
 
2:44 AM
Unironic category proposal for next year: Most contribution to Best Of
It's not easy hunting down things to nominate
 
@cairdcoinheringaahing huh?
 
Like categories where only one person was nominated
That person'll automatically win
I feel like I should completely start anew for how my chromebook SSD is organized
 
@RydwolfPrograms That's currently probably me
 
I've got Downloads (the root folder, ignore the name, it's a remnant from back when Chrome OS was way less capable), which contains over 2000 unorganized files (mostly screenshots), which contains Programs, most of which are JS projects of mine dating back about five years, then Random, which most of my newer projects are in, and with hundreds of files in the roots of each of those, then I've got a few random other subdirs, most of which haven't been opened in four years
 
 
1 hour later…
4:05 AM
@AviFS i can't see anyway of shortening it. i do wish sometimes that ? was itself a collector with highest priority, that would be good for golfing
 
 
4 hours later…
7:42 AM
0
Q: Create a bingo card generator

Stewie GriffinBingo Bingo is a numbers game where players match randomly drawn numbers to the numbers on their cards. Each bingo card is a square grid with 25 spaces, and the columns of the grid are labeled with letters such as "B", "I", "N", "G", "O". The letters help to identify the number range in each colu...

 
 
2 hours later…
9:55 AM
0
Q: What is the importance of SEO

Shivaprasad SundaramIn other words, SEO is essential because it increases the visibility of your website, which results in increased traffic and opportunity to convert visitors into paying clients. View the SEO tools available to you for the best rankings. example

 
@NewPosts This title could be an at-least-not-bad question though
 
@NewPosts I thought it was a spam but the link is just example.com
@l4m2 How? I really wouldn't know how to make a golfing question from SEO. They are opposites, in SEO you want to write as long as possible
 
@mousetail like giving definition and ask you to work out the SEO
 
I don't think that would work
 
10:43 AM
Hi! I don't visit often anymore, so I just noticed that the number of challenges that are posted have gone down from around 10 when I used to write challenges 6 years ago to around 1 each day now. I tried my luck and posted a new challenge today, for the first time in well over 3 years.
 
@StewieGriffin Yea 1 a day or every few days seems about average. Just not as many people writing challenges and each takes a lot longer to get ready to post I guess
 
I don't know if "I still got it", and I don't know how the community has changed over the years... Anyway, hope you enjoy it.. :)
 
I don't think the way challenges are written has changed much (apart from having more lax io rules) over the years
The thing that's really changed is the languages used
Things like fractional byte counts are now allowed
So you might see x.5 byte answers around :p
 
@StewieGriffin Yeah the activity of the site and chat is much lower than what it was in say 2016
 
@emanresuA did DSO die or is it just that i cannot load it?
 
11:00 AM
@Fatalize <- but that's a familiar name at least ;)
 
@StewieGriffin Takes me back to years where I could slack more
 
Yup... 2016 is three kids ago ;)
11
Q: Can we encourage more users to post challenges?

Stewie GriffinRecently, the challenge rate on PPCG has dropped. I haven't looked through the numbers all the way back, but we once had 9.9 questions per day. The number of questions per day is of course not the best measure since we want good question, not bad ones, and 90 % of everything is crap. There are...

 
7 of newest 50 questions are mine
4
 
11:17 AM
Keep going, and maybe you'll even surpass Calvin one day ;) codegolf.stackexchange.com/tags/code-golf/topusers
#legend
 
12:00 PM
@StewieGriffin Hi, welcome back to TNB!
 
12:30 PM
Today marks my first anniversary of joining CGCC
3
 
@StewieGriffin You mean Helka Homba or whatever he had changed it to
 
12:54 PM
Alright face it I can't understand SVGs in Scratch when you open them in Notepad
It's just confusing
 
SVGs are pretty easy
 
Says the SVG guy
I understand it, but Scratch SVGs aren't
For parsing
Look at this:
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="95.17898101806641" height="100.04156036376953" viewBox="0.3210171699523926 0.3000000357627869 95.17898101806641 100.04156036376953" version="1.1" xml:space="preserve">
  <!-- Generator: Sketch 52.5 (67469) - bohemiancoding.com/sketch -->
  <g>
    <title>costume1.1</title>
    <desc>Created with Sketch.</desc>
    <g id="Page-1" fill-rule="evenodd">
      <g id="costume1">
        <g id="costume1.1">
Makes... not much sense
What do you understand from it
Well
I suppose
 
1:24 PM
@UndoneStudios You can delete half of it
SVG generated by most software is mostly garbage
 
1:46 PM
decided to do a little makina coding, here's my (untested) reverse Collatz conjecture program:
v>n0;
>wv >n0;
>O>?C!
^E vU>n2;
^  v>%   ;
;0nOOCJ< 3
^ v?OI>wJnv
^;v>^ v+>*J
^0H;1n< UCn0;
^nv    v<<<
PCH>n0;H
^U>wv<<<
^<<O<>n1;
;2n/>-
  ;0nC
aaaand it divided by zero
cool
 
Would not recomend
 
@StewieGriffin Welcome back! It's been a while :P
 
hmmmmm
something sus is going on
mfw one of the instruction pointers phases through a wall
alright I'm going to try something else, makina always makes my brain hurt :p
 
2:06 PM
@StewieGriffin 1.0m users reached o.0
 
3:06 PM
0
A: Sandbox for Proposed Challenges

mathcatInfinite Apple Dilemma I have encountered this type of puzzle, that usually involves apples, several times. It goes as follows: There is a certain number of apples in a basket. Ava takes a third of the apples. Bob takes a quarter of the apples that are left. Finally, Dennis takes one-sixth of th...

 
Fun / too easy?
 
fun and easy
 
lol nice
 
hmm its actually not that easy
i thought (1/3) * (1/4) * (1/6) * x = 10 would solve it, but no
 
nah, more like this
should be pretty easy with recurse tho
 
3:19 PM
aaaah its subtraction i forgot
 
 
1 hour later…
c--
 
hmm
might be a dupe? idk
 
c--
I couldn't find one if it is
 
man i want to nominate some of my own post in best of, but like its hard to compete with whats already there lol, im like 100% not gonna get voted
 
do it
 
4:51 PM
@Seggan ok well, here goes nothing (i really hope i win but like not gonna happen lmao)
 
5:08 PM
0
A: Sandbox for Proposed Challenges

mousetailOutput a random value from the last 16 values outputted random code-golf Output the numbers 1-16 (or any other set of 16 distinct items). Then, repeatedly, output a random value chosen uniformly from the last 16 items outputted. After the same item is printed 16 times in a row or more, halt.

 
5:23 PM
Ooh, the integral of sin² is surprisingly fun
Well, there's probably some simpler less fun way than the one I did, but the way I did it was fun at least :p
 
0
A: Sandbox for Proposed Challenges

CursorCoercerA randomly colored walk code-golf random color Given two inputs, a distance \$d\$ and a number \$n\$ output \$n\$ random colors which each have distance \$d\$ from the previous. Background A random walk is a path which is defined by choosing a random direction and (usually) fixed distance to go a...

 
5:39 PM
combo!
 
@RydwolfPrograms I think I figured it out! That was fun.
 
c--
5:59 PM
@Ginger nvm, I can already see the first python answer
 
c--
6:30 PM
@RydwolfPrograms I got this:
I = int[ sin²(x)dx ] = int[ (1 - cos²(x))dx ]
2I = int[ (1 + sin²(x) - cos²(x))dx ]
2I = int[ (1 + cos(2x))dx ] (2x = y)
I = int[ (1 + cos(y))dy / 4 ]
I = y / 4 + sin(y) / 4 + C
I = x / 2 + sin(2x) / 4 + C

but I didn't find it too interesting, how did you solve it?
 
0
A: Sandbox for Proposed Challenges

GingerToggle my Comments comments self-referential code-golf Write a program which takes a string as input. If the string is a syntactically valid comment in the program's language, the program must output an uncommented version of the string. Otherwise, it must output a syntactically valid commented v...

 
@c-- Integration by parts with sin * sin to get int[sin²] = -sin*cos + int[cos²], rearrange that to find int[cos²] in terms of int[sin²], then add those, giving int[sin²] + int[cos²] = x. Then plug in int[sin²] + sin*cos for int[cos²] and solve for int[sin²] on its own
Doing the trig identity stuff first like you did would've made more sense but I forgot about the double angle identities until after I'd done the integration by parts, and I honestly just really love finding integrals by solving equations for them
 
6:47 PM
@PyGamer0 Probably that you can't load it, I don't host it myself so it almost never goes down
 
DSO's up for me
 
same
 
7:27 PM
in Off-Topic TNB, 30 mins ago, by Ginger
@RydwolfPrograms would ya mind setting up a new subdomain on your droplet?
@RydwolfPrograms ^
 
Huh, I've been here for two years now. It really feels like more than that
 
code golf ages you :p
 
Wait what I joined 2 years and 7 months ago.
 
Side effects of TNB may include: Accelerated aging, extreme tongue dexterity, full-body shrinkage, and loss of limbs.
Consult your doctor before taking TNB.
 
7:35 PM
> Best of Luck
In conclusion,
 
"Is it an Arithmetic Sequence or not"
*to be continued*
 
@mathcat Vyxal, 2 bytes with the strict input format
 
ಠ_ಠ
 
@mathcat you should work on that
id like to answer
and please loosen the input format if you do
 
idk, I do think that's a tad too trivial
 
7:47 PM
my first activity was a kotlin answer, and my first question was abt scrabble
 
@emanresuA frick why do you have like 5-times my rep
 
@mathcat i dont
 
I hereby grant you permission to repost it
I've never really focused on posting answers, but I kind of want to hit the 100-answer mark
 
@Ginger Y'know pinging me in one room pings me in all of them right :p
 
didn't know if you were logged out :b
 
7:59 PM
Yeah but you'd still have pinged me already lol
 
@mathcat how? ive got 148 in slightly over a year
 
ik, I've just been posting challenges
 
@mathcat skill issue
 
sadge
 
8:34 PM
Lol, and I found a substitution instead:
(sin(x) - cos(x))(sin(x) + cos(x)) = sin²(x) - cos²(x)
= sin²(x) - (1 - sin²(x))
= 2 sin²(x) - 1
sin²(x) = (sin(x) - cos(x))(sin(x) + cos(x))/2 + 1/2
int[sin²(x) dx] = int[(sin(x) - cos(x))(sin(x) + cos(x))/2 dx] + int[1/2 dx]
Let u = sin(x) - cos(x), du = (cos(x) + sin(x)) dx; then we have
int[u/2 du] + int[1/2 dx]
= u²/4 + x/2 + C
= (sin(x) - cos(x))²/4 + x/2 + C
= (sin²(x) - 2 sin(x)cos(x) + cos²(x))/4 + x/2 + C
= x/2 + 1/4 - sin(x)cos(x)/2 + C
I was originally trying to do integration by parts (which is my favorite kind of integration) but I apparently forgor 💀 how it works and thought I couldn't apply it to this integral
The nice thing about integrals is that it's usually pretty easy to check you got the right answer by just differentiating it again
 
The "standard" way is to substitute (1-cos 2x) / 2 for sin^2 x
 
8:49 PM
Like Rydwolf, I forgot about double angle identities
 
9:25 PM
@emanresuA yea thats what i wouldve done, super simple
 
9:50 PM
I know, I'm quick to suggest/start events, and I know events usually don't last long here. But they often sure start strong! And this is a one-time event anyway, so...
@cairdcoinheringaahing I propose we set up an event where we set up some search queries, and look through the questions and answers from this year together. Make a fun thing out of it, and just share cool things we find. We should additionally probably make another room for it.
Along the way, I'm sure we'll find plenty of things to nominate.
 
10:24 PM
I'm thinking in the new room, we'd have an event for like three days from 8pm - 11pm UTC. How does that work for people?
Of course, people would be there throughout the day, but events work better when there's a concentrated focus time.
 
For future reference, I just spent way too long diagramming "American Time", "European Time" and "Australian Time" using VIC, PST, UTC. Those are UTC offsets of +11, -8, and +0. I think it's easier to think about if you center around PST. Then you get offsets of -5, 0, 8. Eg, here's 2pm PST. It gives 9am (-5) for AUS and 10pm (+8) for UTC:
      {24|⍵+¯5 0 8}14
9 14 22
 
i just found the dumbest piece of code i ever wrote
val loaded = loadedDependencies.filter { it.pkg == pkg }
if (loaded.isNotEmpty()) {
    return loaded
}
return emptyList()
 
Anyway, here's an hour by hour breakdown of what I think are the set of the five best hours for CGCC, from what I understand about our spread:
(The room activity backs this up, although I think it adds noise because 2 of the 3 clusters can be very busy at a time when the third cluster can't be online. In fact there are several such overlaps I found.)
|  VIC  |  PST  |  UTC  |
|-------|-------|-------|
|  6am  | 11am  |  7pm  |
|  7am  | 12pm  |  8pm  |
|  8am  |  1pm  |  9pm  |
|  9am  |  2pm  | 10pm  |
| 10am  |  3pm  | 11pm  |
@Seggan That's pretty funny. I've done stuff like that before. Sometimes, I think it helps with readability. But don't tell anyone on CGCC that :p
@Seggan Specifically, I feel like I've had logical stuff like that. Where there's like some logical expression and you could just return it, but I find it more readable to say if (expr) return true; else return false; except with line breaks and unnecessary brackets, and all that jazz. Sometimes something like that comes up in a ternary, but it's the same idea. I'll use a ternary to assign a value where I could've used a logical expression or an &&/|| short-circuit.
Not always, of course, but sometimes it just feels like two different cases. Even if logically you can express it as only one. So I code it however I was thinking about it, ie found intuitive.
It also has the benefit of allowing you to change the "else" case. Or change the ternary. Sometimes I find I want to do something in the else case. Like change some state, or notify something. Or just add a console.log for debugging. It's annoying to extend a simple return statement into a true/false case if it turns out you need to, but it's trivial, and satisfying, to collapse it.
 
11:33 PM
argh type resolution is such a pain
youve got possibly unqualified identifiers, star imports, local types, the distinction between unresolved and resolved types, plus the compiler-defined types
and packages may be split across multiple files
 

« first day (4385 days earlier)      last day (451 days later) »