« first day (1829 days earlier)      last day (3004 days later) » 

Anonymous
7:00 PM
 
Anonymous
Odd integers works for me (not adjacent, but in order)
 
People with asciibetical names are cheaters :P
 
What happens when we get to A999999? Do we go to B000001?
 
Failed. (Greetings from the On-line Encyclopedia of Integer Sequences!)
 
7:04 PM
Same here. Oh well. =P
 
Anonymous
@CᴏɴᴏʀO'Bʀɪᴇɴ No, then it goes to A1000000, duh
 
@ՊՓԼՃՐՊՃՈԲՍԼ should do this XD
 
@Zgarb we'll sort something out
 
@CᴏɴᴏʀO'Bʀɪᴇɴ No, the last sequence will be A000000. Then no further sequences will be allowed.
 
Is it just me, or did Martin somehow just ninja a message in without his avatar moving in the userlist?
 
If anyone's interested we got Pyth working in the Databot.
 
Ugh, I wish more languages had a proper modulus operator
 
We're branching out from TIO to local interpreters too
 
@quartata \o/ add jolf
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Does it have a safe mode?
 
7:10 PM
@quartata It's always safe.
wait define "safe"
 
"safe = can't evaluate JS code steal our passwords and trash the bot"
 
Hm.
Just remove $, I guess.
I'll work on it.
Oh, and ~e and and Έ and...
 
Yeah don't worry about it.
Eventually we'll figure something out for proper sandboxing
 
@VoteToClose -s from the command line, or automatic online. Use -h to list all options
 
7:14 PM
in PPCG Code Snippet Chat Bot, 7 mins ago, by quartata
!eval pyth "'z" "/home/ubuntu/workspace/INTERPRETERS/pyth/pyth.py"
 
@isaacg We already figured that out.
 
Gotcha
 
You can come test it out and see if you can break it
2
We have safe mode on and a timeout of 60 seconds but I'm sure you'll figure something out
 
We could probably create a few challenges from the OEIS pictures.
 
Please don't turn us into a spambot or use all of our CPU power that'll get us kicked off C9
 
7:15 PM
@El'endiaStarman I was just looking at those :D
 
@quartata Test it where?
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Eventually safe mode will include no command. Programs are not mind readers. Don't delete too much unsafe commands.
 
@zyabin101 Those commands would be eval as javascript, document module, and error module. You don't know Jolf, so don't speak on its behalf.
 
7:37 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ what should I do?
 
Is there a technical term for removing a node from a tree and reparenting all of the child nodes to be children of their former grandparent?
 
Something that shouldn't happen in real life.
 
@ՊՓԼՃՐՊՃՈԲՍԼ Try to find the codepoints of your username's characters in an OEIS sequence, I think
 
@Roujo Oh...
 
@ՊՓԼՃՐՊՃՈԲՍԼ Thanks for the advice. My teammate rejected my code review though. He didn't like protected void SomethingThatShouldntHappenInRealLife(RadTreeNode node) { ... }
 
7:41 PM
Upsew?
I just made that up.
But it's like you're "sewing" the child nodes to their grandparent.
 
@Rainbolt I meant that as a joke :P
 
That's twice today someone told me they were joking
Ah, unwrap might be a winner
 
It's so mesmerizing to scroll down oeis.org/A000045/b000045.txt really quickly.
 
It works in that context, since the parents wrap around the children
Not sure about your usecase
 
If you consider the DOM a tree, then it works
 
7:45 PM
KillAndGiveToGrandParent(RadTreeNode node)
 
Wikipedia says "The nodes of every document are organized in a tree structure, called the DOM tree."
 
It's a kind of tree, yes, but it's one in which the nodes are contained in their parent
Which isn't true of all trees, semantically
 
@Rainbolt How about ReplaceByChildren(RadTreeNode node)
 
@Zgarb +1
Clear, to the point, little chance of confusion
 
I like that
Now I'm off to SO to get people to write the code for me
 
7:47 PM
@Rainbolt orphan
can you use that as a verb?
 
Yes, but the node being removed isn't being orphaned. It ceases to exist
 
Or maybe reparent?
 
oh you're applying it to the parent, not the child. my bad
 
I started with delete, then reparent, then collapse, then SomethingThatShouldntHappenInRealLife, and now ReplaceByChildren
 
@El'endiaStarman I feel like reparent would be applied to the children, not the parent =/
 
Anonymous
7:48 PM
surrender
 
getDisowned
 
guardianized
 
unperson
 
1 hour ago, by Cᴏɴᴏʀ O'Bʀɪᴇɴ
mini-challenge: find an OEIS where the character codes of the characters in your name are contained in it. First person to find one wins.
@Rainbolt Splicing?
 
We're going with ReplaceByChildren, mostly because I already asked my team for a code review
And if I make a change now I have to unshelve my changes
 
7:58 PM
Displace?
oh.
 
And send out another review...
There's a summary on the function anyway. I hate doing summaries but I do it when it isn't totally clear what the function does.
 
returns a random number, guaranteed to be random by a fair dice roll
 
@Rainbolt Thought of UpgradeChildren (because they are merged into a higher level).
 
Yea that's similar to PromoteChildren which I was considering earlier
 
It doesn't quite capture the fact that the parent is removed, though
 
8:03 PM
@Rainbolt I like that one the best.
 
@Rainbolt Yeah, that's better.
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Parts of my username's codepoints are found in the fibonacci sequence, but I haven't found a pattern yet.
 
> but I ahven
 
Lol pressed enter key by accident
 
@ՊՓԼՃՐՊՃՈԲՍԼ oh, cool!
 
8:04 PM
Oh yeah, I'm changing my username to ӍѲꝆΛҐӍΛПҒЦꝆ today!
 
Aggh why are TreeViews so temperamental. When I promote the children, all of the checkboxes go back to unchecked.
 
@ՊՓԼՃՐՊՃՈԲՍԼ Oh, how... lovely.
XD
 
Okay I'm back.
 
@mınxomaτ Ahven is Finnish for perch (the fish).
 
8:16 PM
bai
@ӍѲꝆΛҐӍΛПҒЦꝆ they really need to move " away from the enter key
 
@Cyoce change the keymap and physically move the key yourself ;P
 
but there'll always be something in that slot and I don't want to extend my keyboard
 
move your right alt key to it or something
no one uses that
 
@Maltysen did you see that our bot can run Pyth now
 
@Cyoce My enter key is next to ^~'*
 
8:28 PM
I thought you'd want to know.
 
what bot?
 
you're one of today's lucky 10,000 I guess
 
haha yes
what does this bot do?
 
Runs any language on TIO and it also runs Pyth (does so locally)
!eval <lang> <code> <input> <args>
Soon we'll add more languages locally but for now it's just Pyth and TIO
 
!eval pyth *TT
wait I'm stupid its the other chatroom, isn't it
 
Anonymous
8:30 PM
@Maltysen wrong room homebro
 
Do we have a plain convolution challenge?
 
I'm pretty sure we have a fast convo challenge
It was like convo in sub-quadratic time, code-golf
 
Chat mini-challenge: Given a list L of positive integers, return the largest integer n such that there are exactly n copies of n in L.
 
@Zgarb eSfqT/QTQ
 
@Maltysen Pyth, I presume.
 
8:40 PM
yup
 
Anonymous
@Zgarb ,;;╗`;╜c=`M;l@r1í@-D@E (seriously)
 
@Mego Seriously programs always seem to begin with a random sequence of punctuation and box-drawing characters.
 
Anonymous
@Zgarb Usually input, dupe, and register pushes
 
@Zgarb just like Java programs always seem to begin with way too many words
 
First day of Programming I: "Today we're going to print Hello, world! in Java. For now, I want you to burn these magic words into your head: public static void main string args. They won't mean anything to you for a while, but we'll get there."
That was Mike from UT Austin
 
8:49 PM
That's why the into course should not be java
 
even C makes the sysargs optional. screw you, java
 
Yea, beginners should definitely be put into an environment where the modifiers are mostly implied or hidden, so they can be surprised to find them later.
 
Either that or a language that can be used as a script, too
 
Sarcasm aside, I thought Java was only popular because it is beginner friendly
 
hahhahahaahahahahhaaaa
 
8:52 PM
You can write both programs and scripts using F#, for example, and learning it by scripting in the REPL is probably a better idea ^^
Since you can worry about program-specific boilerplate like entry points and such later
 
Then you have to understand the REPL, and how it saves state. I much prefer the introduction of "Your program has one entry point and one exit point unless you screw up."
 
Right. Then skip the REPL, and just run the script as is
 
That said, I watched an entire class of math majors learn Python with a REPL, so I guess it works alright.
 
@Rainbolt I remember learning Python with the REPL, and being confused about the difference of print and return.
 
by the time I've typed static void main string args I'm already bored and have tuned out of the class
 
8:54 PM
@Cyoce You forgot public
 
told you I had already tuned out
 
> by the time I've typed static void main string args I'm already bored and have tuned out of the class someone has finished typing a Pyth answer
FTFY
 
9:10 PM
by the time I've stopped typing public static void main string args I've already finished Arrow the Flash and Daredevil and am weeping over the lack of superhero shows to watch :(
 
hah
 
@Cyoce There are 137 episodes combined of Arrow, The Flash, and Daredevil. There are 35 characters in public static void main string args. You average approximately one character per 3.63 hours, making you the slowest typist I have ever met.
 
Strict source control.
 
@Rainbolt the flash arrow and daredevil had a head start
 
@TimmyD Recursive pair programming.
Every nth character of code must be reviewed by at least Ack(n) programmers.
 
9:21 PM
doesn't ack take 2-3 args?
 
2, the second be the number of executives present.
 
if(execPresent){System.Out.println("Not committing code today.")}
 
0
Q: It's snowing in my console windows!

J AtkinYou love watching the snow falling outside, but you know it won't be snowing much longer, so you decide to make a snow animation so you can see it snowing all year. Task Write a animation script that draws falling snow. Snow Snow is simply the # symbol here. Half of the snow moves at 1 char p...

 
while(execPresent){}
That is, a busy loop =P
 
You know how when programming games come out we sometimes have a chat dedicated to it? Like we had the TIS-100 chat and the Infinifactory chat and whatever? I'm legitimately surprised puzzling.se doesn't have a chat about The Witness.
 
9:26 PM
Saw you playing that yesterday/today :P
 
Reading un-reviewed research is really annoying:
> we propose a stronger coding strategy, which can provide higher compression ratios and higher security towards all
possible ways in which of attacks while transmission
 
It's pretty fun
 
@mınxomaτ lolwat
 
I'm making notes! In a notebook! Not many games make you do that
 
@quartata They sort of just gave up halfway though the sentence.
 
9:27 PM
heh
 
@mınxomaτ nobody is gonna read it anyway
 
@mınxomaτ In one cryptography article I read, they consistently used "analise" instead of "analyze".
 
> There is a growing demand for speedy compression of data, which can be made possible by achieving compression.
 
What is this article even on
 
Everything apparently. Seems to be solving all issues of compression and cryptography in the abstract.
Or so they think.
 
9:30 PM
The Article of Everything
@mınxomaτ With what I've seen of their grammar, I wouldn't keep my hopes up.
 
@mınxomaτ Perhaps they did solve it, but were just too stoned when they tried to write it down.
5
 
> Nearly 70-80 % of the Internet users send and receive text-based documents.
Fascinating.
 
@flawr alas the world will never know the genius that was... stoned compression guy
 
@flawr "Wooo, we solved all the problems, let's get high! ... Wait, we should have written it down while we still remembered it."
 
I wonder if there's a journal for scientifically making fun of papers in other journals.
(Oh wait, that's basically every journal.)
 
9:34 PM
Reminds me of texts explaining how they solved compression, side-stepping the pigeonhole principle by (probably) not knowing about it
 
When I'm playing The Witness and taking notes, I don't usually use many words because they take a long time to write down and I know what I mean anyway. As a result, my notes for solving a puzzle in The Witness look like they themselves could be a puzzle in a different game. I won't onebox it because I guess you could technically consider it spoilers...
 
Hmm... don't think I've done that part yet, or if I have I'm not recognising it :P
 
@Roujo One time I went to My Computer and it told me my drive had 0 bytes left. It was obviously wrong because I took a screenshot and it let me save it. :P
@Sp3000 It's really early, I just overthought this puzzle. 3/4ths of the information is unnecessary to find the solution :P
 
@undergroundmonorail Who knows what it deleted to make room for your screenshot... =P
 
9:38 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ I'm going to change my username to EFG :P
 
@undergroundmonorail I'm getting a security error - "The site ahead contains harmful programs"
 
@Roujo Yeah
That is technically true but it's silly to have an error in this case
 
How technically is it true? =P
 
Lose/Lose is a space invaders clone but the invaders are generated based on random files on your hard drive. If you get hit, the game closes and deletes itself. Kill an enemy first? It deletes that file.
 
Oh
 
9:40 PM
So yeah, it's a harmful program, but that's why you're there :P
 
Right, I've heard of that =P
 
btw, @CᴏɴᴏʀO'Bʀɪᴇɴ, I've updated the symbols for Crayon's unprintable characters: github.com/ETHproductions/Crayon/blob/master/docs/Encoding.md Let me know if you can see all of them they all look good to you.
 
There's been a lot of capital-p-based emoticons in chat recently.
I wanted to put one at the end of that message but I resisted.
 
I see =p
 
P:
^ licking your lips
 
9:44 PM
eyes*
 
It only just occurred to me that if I'm taking notes that I'm going to want to take notes on later (e.g. copying down a map, i might want to draw on that map some ideas or something) I shouldn't write it in pencil and then darker pencil on top. If I write it in pen and then write on top with pencil I can erase just the new notes. :)
 
0
A: Sandbox for Proposed Challenges

TimmyDLucas-nacci Numbers code-golf sequence Most everyone is familiar with the Fibonacci numbers F(n): 0, 1, 1, 2, 3, 5, 8, 13, 21 ... These are formed by the recursion function F(n) = F(n-1) + F(n-2) with F(0)=0 and F(1)=1. A000045 A related sequence is the Lucas numbers L(m): 2, 1, 3, 4...

 
 
in The Whiteboard, 1 min ago, by Jimmy Hoffa
Angular is currently The Big Mistake floating around like a virus. There's always at least one floating around proclaiming itself The Answer with adherents growing in number constantly.
 
@Sp3000 Part of why you're having trouble might be that I had to invent my own notation to compensate for not having enough distinct colours. A pencil circle means "white" and a sharpie circle means "this colour but light"
 
9:50 PM
@Mego Hai
 
10:08 PM
yo
 
@Quill you are reminding me to post my code on CR.
I have been putting it off for 5 months.
 
which language?
 
Python
 
ooooh, cool
 
A math problem generator that auto-divides into subcatagorerys
Screw spleling.
_=x=>1;
for(;_(_);)_(_);
My new favorite code.
 
10:20 PM
@RikerW that code looks like it's crying
 
Just finished my answer
1
A: I'm not the language you're looking for!

LegionMammal978Mathematica 9/Mathematica 10, 115 bytes Print["This program wasn't written in",a=" Mathematica ",If[b=Now==Now,9,10],", it was built for",a,If[b,10,9],"!"] A bit late to the party... In Mathematica 9, Now remains unevaluated, and therefore equals itself. In Mma 10, each evaluation has a slight...

Any golfing tips?
 
@KevinW. lol
@LegionMammal978 Remove comments.
You didn't say specifically applicable to that program. :P
 
@RikerW <!-- Remove comments, you say? -->
 
0
A: Sandbox for Proposed Challenges

J AtkinIt's snowing in my console window! code-golf You love watching the snow falling outside, but you know it won't be snowing much longer, so you decide to make a snow animation so you can see it snowing all year. Task Write a animation script that draws falling snow. Snow Snow is simply the # ...

 
0
Q: Indexable quine

TheNumberOneThe goal of this challenge is to make a program that outputs the nth letter of its source code where n is given as input to the program. Like most quine challenges, you are not allowed to read your source code as a file or use any builtin quine functions. Input An integer 0 <= n < len(program)....

0
Q: How can I develop a nonrecursive implementation for power function which using repeated squaring in Java

ZBruceI remember that any linear recursions can be expressed quite efficiently with iteration. The following function (Java code) is a linear recursions. It uses repeated squaring and its memory usage is O(logn). I am failed to develop a nonrecursive implementation for it. Will you please share some h...

 
10:28 PM
> please share some hint?
 
@NewMainPosts 11-second close :)
4
 
@RikerW Is this JS?
 
> Ninjas with Hammers: A PPCG story
 
I have a feeling people don't like my challenge.
 
It's pretty much identical to "regular quine"...
(with a string index stuck at the end)
 
10:38 PM
@flawr Yeah.
 
What the hell are you?
 
greetings conor!
 
Hi green reptile friend.
 
hello smaller reptile friend :)
 
10:50 PM
for indexable quine would 0 be considered valid?
 
I hope so because I posted it 30 minutes ago
 
1
A: Indexable quine

DoorknobPyth, 0.76 (Also happens to be a CJam polyglot, and probably many other languages.) 0 Expects input on STDIN: llama@llama:~$ echo 0..0 | pyth -c '0' 0 Any single digit works, of course. Not exactly the most interesting challenge in Pyth.

ugh ninja'd
 
5 minutes till daily Discord (but nobody's there :( )
 
Is there a daily discord?
 
10:57 PM
 
ninja'd
 
I totally got the link in first, you just got the message in first
a true ninja has already won before starting battle
2
 
re.sub(regex,replacement,string) EWWWWWWW PYTHON
 
what's wrong with that?
 
It's so unintuitive.
 
10:58 PM
why?
 
the arguments are in such the wrong order
 
The string should go first, it's what you're modifying.
 
Try working with strings in SQL and then complaining about Python
 
regex.replace(string, replacement) is obviously the right way to do it
 
^
or string.replace(regex, repl)
 

« first day (1829 days earlier)      last day (3004 days later) »