« first day (2234 days earlier)      last day (2602 days later) » 

12:05 AM
For[i=1,0<1,i++,If[a=Solve[3600^2+i^2==x^2,x,Integers],Print@a,;]]
 
@ГригорийПерельман Mathematica?
 
How to test?
 
One second, I can improve on it.
Solve[3600^2+a^2==b^2,{a,b},Integers]
Works theoretically, might need Reduce.
 
don't forget the hypotenuse
 
a^2+b^2=3600^2
 
@DownChristopher please tell me it is goat butter
 
Also you can certainly golf this more
 
@Qwerp-Derp I'd make a link, but Wolfram Development Platform isn't loading for me
 
@Downgoat ew
 
12:10 AM
ಠ_ಠ
 
Isn't that, like, super-weird for adult goats?
I'm a human and I wouldn't drink human milk.
and I've never seen human butter in shops
 
pls stop bursting my bubble :P
 
... Apparently "breast milk butter" is a thing. I wish I hadn't known.
 
@ГригорийПерельман Your program includes all the negative integers as well (I specified that a, b and c are all positive)
 
Fine, add &&a>0&&b>0 to the condition
 
12:27 AM
New challenge!
 
@MatthewRoh not really sure what you "examples" section is...
 
@JanDvorak Wanna buy unrealized-breast-milk-butter brain?
@MistahFiggins Example input, The output is too long to write
 
How much for?
 
idk
 
I can buy it for that price
 
12:31 AM
(pulls out random guy(aka pavel)'s brain)
(changes it with Dvorak's)
RIP Pavel XD
 
(turns the brain to police)
 
D:
Suddenly the dumb police eats the brain
 
0
Q: Make a Bubble-wrap simulator

Matthew RohBubble-wraps are maximum-level entertainment. Everyone can agree to that. Now, you will make even computers enjoy bubble-wraps. Specs You will be given two integers, w, and h.(each are responsively width and height) Your program should output all w*h phases waiting 1 second between each one a...

 
@ГригорийПерельман How do I reduce all the answers down to a set of integers?
 
@Qwerp-Derp Uh, if I did that right it should have only solved over the Integers. The third argument to Solve is the domain.
 
12:42 AM
It's right, but currently it's looking like this:
 
@Downgoat no :(
 
{{a->147,b->3603},{a->380,b->3620},{a->425,b->3625},{a->660,b->3660},{a->810,b->‌​3690}...
 
I want goats to milk
 
When I want a set of integers
{147, 380, 425...}
Is that possible?
 
Coat cheese is lit tho
 
12:43 AM
Some specific goats can speak though
 
@ГригорийПерельман? (Also what does your profile name mean)
 
@Qwerp-Derp AFAIK no, and I've been trying a really long time to find a way. Whenever I've needed to I've converted the expression to a string and did String magic on it.
@Qwerp-Derp Grigori Perelman is my favorite mathematician.
 
@ГригорийПерельман So is your username basically "Grigori Perelman" in Cyrillic?
 
How to make your username meta
make it 'Copy paste my name on google translate' to Cycrillic
 
12:45 AM
So basically you just listen to this youtube.com/watch?v=A3YmHZ9HMPs
 
Then you type out your name
 
@DJMcMayhem Can you do something on a time delay in V(im)??
 
@ГригорийПерельман Yep! :h gs and :h :sl
 
Why is a entire SE dedicated to coffee?
 
12:51 AM
I think I'm gonna post this challenge tonight: meta.codegolf.stackexchange.com/a/11740/2867. I know that's a quick turnaround time, but it's just a normal code-golf challenge without much special about it.
 
@ГригорийПерельман Are you basically solving my challenge
 
@DJMcMayhem I kind of want to try the Bubblewrap challenge in Vim.
Except I just realized I won't have access to a device with Vim on it for at least 24 hours ;-;
You should totally do that tho!
 
You know, is there actually ways to use random sources on vim?
@ГригорийПерельман Your current device?
 
I thought the idea of Vim was to provide a pseudorandom mapping between user input and the resulting file?
5
 
...is a Windows computer on which I can't install software.
 
12:53 AM
@ГригорийПерельман There are ways to bypass UAC
 
@DJMcMayhem While convenient, why did the vim people think that they needed that in a text editor.
 
also, would not be practical, but android with busybox
 
Have you ever needed to use that feature for non-challenge purposes?
@MatthewRoh I do not have an android
 
@ГригорийПерельман So, an iPhone?
 
TIO doesn't work either, since that doesn't support animated output.
 
12:55 AM
I was watching Trolls and 15 minutes in I started wanting to know what i was doing with my life right then. I was watching youtube.com/watch?v=Y_IS_ccjkZE and got 1:30 in and starting thinking what i was doing with my life
 
@ГригорийПерельман So, no Linux Subsystem for Windows either?
 
That would require installing software, yes.
Even vim.org is blocked, which is just sad.
 
Can you not install software, or you just cant access admin
 
I cannot install anything
 
Is it a school computer?
 
Uhh, okay then
(btw, is chatting like this in school allowed when installing things are not?)
 
apparently
 
It's Saturday
Also, TIL Vim has a GUI mode.
 
Yep
gvim
 
@ГригорийПерельман do you mean visual mode?
 
afaik gvim is the visual mode
 
GVim looks more dated than regular Vim
Even though it has a UI
 
@MatthewRoh gvim is just vim but bundled so it can be run as a windows program rather than from command line
 
@MatthewRoh ... Linux Subsystem for Windows != WSL
 
Meh, I just run gvim with LSW and XWindows
 
1:05 AM
@Downgoat ew just run vim from command line in Windows
 
The installer does not appear to come with a command-line version
 
@ГригорийПерельман I thought about it, the major problem is that it doesn't have any reliable way of providing random numbers
 
CMC: Clickbait detector - Given a string output truthy if it contains ?? or !! or !? or ?! or 5+ consecutive uppercase letters in a row.
 
@ASCII-only eww, no. Windows command line sucks really badly
 
Also, you would be forced to use Vim with the Powershell coloring
 
1:07 AM
@DJMcMayhem what do you mean
 
Which is basically a blue version of hotdog.vim
 
e.g. "All about NAND gates!" -> False, "What is a NAND gate?!" -> True
 
with cygwin + msysgit + hyperterm it's as good as linux
 
@ASCII-only haha, windows command line for vim is like using bottle rocket to get to moon
 
@HelkaHomba Does spaces separate those 'consecutive letters'?
 
1:07 AM
@HelkaHomba Retina; [?!]{2}|[A-Z]{5}
 
@ASCII-only you might as well install a linux VM with all that abstraction
 
@DJMcMayhem You should build that into V
 
@Downgoat too much overhead
 
@MatthewRoh No, just purely consecutive. e.g. "A E I O U" False, "AEIOU" True
 
@ASCII-only eeeehhh
 
1:09 AM
@HelkaHomba Oh. okay.
 
I don't mean GUI VM
 
JavaScript (ES6), 29 bytes: s=>/[?!]{2}|[A-Z]{5}/.test(s)
 
@ASCII-only plagiarism
 
@JanDvorak ... it's a simple regex and regexes are the shortest way to solve it
 
@HelkaHomba Pls make another CMC clickbait detector challenge using the fact most clickbaits have arrows in their thumbnails
 
1:10 AM
@ГригорийПерельман That's a good idea. I've been planning to for a while, but not gotten around to it
 
@ASCII-only citation needed
:35979369 k
 
@DJMcMayhem And add arrowkeys while you're at it.
 
Cheddar v2: @.test /[?!]{2}|[A-Z]{5}/
 
dat space...
 
?
 
1:11 AM
Oh good loads of regex
 
I don't like space characters in code
 
oh cheddar need otherwise you're doing divsion
 
@ГригорийПерельман yeah...
 
s->s.matches(".*[!?]{2}|[A-Z]{5}.*")
Java regex support is not great
 
oh god java lambdas
 
1:12 AM
That's not horrible
 
I had nightmare experience when CS teacher saw
 
@JanDvorak It is horrible
 
Now do that in Brainfuck
 
@JanDvorak .matches() is the only useful regex method that doesn't require an import
Still, better than Python
 
@ГригорийПерельман O_o you did not just say that
 
1:14 AM
Python regex support is shit
 
Still, better than Python
 
The only way to use it is with import re; re.compile(); #...
 
Still worse than every language other than Python
 
@ГригорийПерельман i couldn't agree more
 
(oh, also, C++, they don't even support them)
 
1:16 AM
@MatthewRoh ... what C++ has regex, you know
 
re module comes with python, that's one. Second, you don't need re.compile() in the first place.
 
0
A: Sandbox for Proposed Challenges

SparklePonyGeometric Shape Quine Your task: write a quine that outputs in a geometric shape. For example, the psuedocode output a triangular quine___ would make: o ut put a t riang ular q uine___ You can chose from the following geometric shapes: triangle, rectangle, more tbd. A triangle must have 1 ch...

 
@ASCII-only only if you're using boost
 
@DJMcMayhem pretty sure no, i didn't use boost and had regex
 
C++ regex sux in the first place tho
 
1:18 AM
But does C have regex?
 
With external libraries
 
ECMAscript isnt that good
 
>>> import re
>>> re.search("world","Hello world")
<_sre.SRE_Match object at 0x7f89c50555e0>
There, that's all that's necessary
 
@MatthewRoh JS has pretty good regex support.
 
Still worse than Java
 
1:19 AM
Not as good as say, Perl, but still pretty good.
@MatthewRoh No.
 
I love Ruby's regexes
 
@ГригорийПерельман True, well, but I'm not a JS main
 
@ГригорийПерельман Perl was built around regex in the first place. It wins in that respect of course.
 
@ГригорийПерельман I meant that to serg
 
@Serg That is the point, yes.
 
1:21 AM
For simple matches, you don't even need regex though
 
>>> "world" in "Hello world"
True
>>> "Hello world".startswith("Hello")
True
 
JS regex support > most other languages
 
@MatthewRoh PCRE is C++ so technically C++ regex is awesome
 
> startswith
 
1:22 AM
I want to design semantics for my programming language but I can't get to my computer because sister is sleeping :(
 
that method name is way too long
 
JS has really good regex support except for lookbehinds and named capturing groups and recursive groups and conditionals
 
@ASCII-only hell no
 
@Downgoat PCRE is ECMAScript?
 
@TuxCopter awesome. stealing that link back to AU room
 
1:23 AM
@MatthewRoh no PCRE is perl
 
@JanDvorak I think he means in terms of regex functions
 
That's what I do
 
@Downgoat Aren't conditionals only a thing in Perl 6?
 
no lookbehind, no recursive patterns, no [:foo:] thing
 
I think .NET has them too
 
1:25 AM
no interpolation
 
@MatthewRoh PCRE is literally Perl-Compatible Regex
 
@JanDvorak [:foo:] think is not very useful with \p unicode groups
 
.NET has balancing groups, but I don't know what they are
 
@ГригорийПерельман basically just a toy that lets you parse HTML with regex
 
puts on lol hat does assembly have any regex ?
 
1:27 AM
Someone has probably made a library or something
 
@JanDvorak Now do it where your code must return false when run on itself
 
@Serg I mean you can always link a regex library so yeah
 
oh, gawd no, thanks no
 
@HelkaHomba this code does
 
1:28 AM
@Downgoat Recursive regexes and balancing groups are actually pretty similar.
I mean balancing groups basically just let you manage your own stack
So
 
I don't know what balancing group is so don't really know
though lots of regex engine have recursive groups
 
@JanDvorak It contains ?! which means it should give truthy
 
@Downgoat Not really, no
 
you could probably simulate them with kleene star but not sure how to keep track of states
@ГригорийПерельман read linked article
 
ah, right. (?|!) should cut it.
 
1:29 AM
Yeah :P
 
What regex engines, other than Perl and Ruby, support recursive groups?
 
PHP, .NET, etc.
 
don't mention PHP
 
oh python too
 
Wait, really?
I didn't know Python had recursive groups
 
/sigh
Have they made regexes TC yet?
 
@ГригорийПерельман See: Retina
 
Retina is more than just "Match a string against a regex"
 
yes, it's TC regex
 
yep, like 'replace them'
 
1:44 AM
@Downgoat No, it's repeated application of Regex. Is Retina TC with only one line?
 
@ГригорийПерельман I mean no language is "Turing Complete" on it's own, so I'm not sure what the question is
what are you defining as TC?
that it can compute something?
 
Using the Acceptance model, not the Transformative model. For example given a string of BF code and another string, match if the BF code outputs the other string.
 
so one line of Retina or a program of C is just a string of bytes, so I'm not sure what you mean by TC w/ one line
that it can perform a TC-complete operation with just one line of code?
I suppose it's possible as Retina uses matching mode by default
 
2:14 AM
where does the name for this chat come from?
 
17
Q: Let's think of a creative name for our chatroom

DoorknobI'm hoping we're nearing the end of beta soon, but even if we aren't, our chatroom name is so bland. "Code Golf." Look at all the creative names others have thought up: "Root Access" for Super User "The DMZ" for Security "The Renderfarm" for Blender "The Litter Box" for Pets "The Hangar" for Av...

 
Why does chrome not red-underline "teh" :/
 
Works for me
You might need a space after
 
2:40 AM
It doesn't recognize that you have a word for it to check until you put a space.
 
I did put a space
 
Anonymous
2:53 AM
@MatthewRoh sigh
 
Huh. SE randomly logged me out.
 
@TuxCopter happens quite a bit to me also, I must have Cookie Monster on my phone eating session cookie
 
Hasn't happened to me, ever.
 
 
1 hour later…
4:08 AM
> I'm hoping we're nearing the end of beta soon
4
awh, so cute
Man, that was 3 years ago.
 
4:33 AM
But... we did graduate.
So it's not funny anymore.
 
@WheatWizard And anyone else, 2D languages should be a breeze for this challenge, since you can use 1 character to move down, and use whitespace to determine which characters of the long string to execute.
Working on ><> ATM
 
4:51 AM
Is there really no "not" command in ><>?
 
I don't think ><> has booleans
 
I mean, pop x; if(x = 0){ push 1 } else { push 0 }
Like Befunge's !
 
Well, you can push 1, then pop 1, pop x, push 1-x.
 
Is anyone else getting failures on reddit searches?
 
Well, I think your first problem is you're using reddit's search.
 
5:08 AM
@ГригорийПерельман Google doesn't have sort by top
 
5:26 AM
@ГригорийПерельман I guess I could do 0=
 
5:38 AM
@Mego sigh
 
0
Q: Two-Coloring Overlapping Circles

Helka HombaWrite a program or function that takes in the following input in a reasonable format of your choice: Two positive integers W and H that define the width and height of the image you'll be generating. Two RGB colors C1 and C2 that will be used to color the image. A list of 3-tuples of the form (r...

 
TIL ASCII 5 = 53, and i in fish reads a character's ASCII value
 
5:44 AM
hey
 
does O(2nlogn) = O(nlogn)? (big-oh complexity)
 
yes
 
O(k__) = O(___)
 
thanks, what about O(nlogn + 2n) = O(n(logn + 2))? can this simplified further?
 
Yes
O(nlogn+2n)=O(nlogn)
 
5:46 AM
is ti because O(n(logn + 2)) = O(n) * O(logn + 2) = O(n) * O(logn) = O(nlogn)?
 
That's not how I would have written it out, but pretty much, yeah.
 
wait, logn+2=logn? am i dumb or are people dumb?
 
Big O notation
And there is an edit button
 
@ГригорийПерельман better to show by definition, right?
 
@MistahFiggins ik, mobile chat is dumb
 
@ГригорийПерельман how would you have written it out?
 
@MatthewRoh O(logn + k) = O(logn), even though logn + k != logn
 
You can always omit constant factors in big O
 
`O(nlogn + 2n) = O(nlogn)`
The `2n` is of a lower order than nlogn, so it doesn't matter.
 
@ГригорийПерельман Thats what I thought too
 
5:49 AM
oooh yeah, thanks @ГригорийПерельман
 
O(n^3 + n^2) = O(n^3)?
 
@HelkaHomba Right, O(nlogn + 2n)=O(nlogn+n)=O(2(n)logn)=O(nlogn)
@MistahFiggins Same
 
@MistahFiggins Right, I'm dumb
 
Hah. You missed the part where I thought something was wrong here
i reads character ASCII in ><>, and 5 is 53.
 
@MistahFiggins You told us already
 
5:54 AM
Posted a challenge on the Sandbox!
 
0
Q: Curious Errors with a Simple Program

PersonfromafarI'm taking some time to understand more about Python's error management and control flow. I've written a small bit of code and have purposefully neglected to use isinstance and try/exception. Normally, I would use related techniques to manage the error, but I want to understand these errors and w...

 
@NewMainPosts @VoteToClose. no criteria.
 
> D:< Y U NO CRITERIA?
...I think it's just in the wrong place
 
lol
I just went a bit insane
 
0
A: Sandbox for Proposed Challenges

Qwerp-DerpFind all the triples! Your task is, given a number n, find all the Pythagorean triples containing that number, and output a list of the terms in each Pythagorean triple which is not n, without repeats and in ascending order. For example, given 8 as an input, there are two Pythagorean triples wh...

 
6:00 AM
atleast its not (_/ಠ_ಠ)_/Y U NO CRITERIA?
 
@MatthewRoh Yeah, but still--we can do better. The person who posted that was simply on the wrong site. They needed to be told, "Sorry, you're in the wrong place." "Y U NO CRITERIA?" doesn't communicate anything to them and therefore isn't a helpful comment. If there's an appropriate place to make a comment like that--if you need to get it out of your system--it's here in chat.
 
Agreed
 
Snoopy DeLarge is right
 
@HelkaHomba Whowat now?? :P
 
Your avatar is snoopy dressed as the guy from Clockwork orange
 
6:08 AM
Ah, I see. In truth, I've never read Clockwork Orange--I just thought the hat and monocle looked dapper on Snoopy.
 
Not sure it was part of the book, but def in the movie
CMC: Find an SE post with more favorites than upvotes and at least 3 of each
 
@HelkaHomba After reading [some things I kinda didn't want to on] the novel's Wikipedia page, it appears that DeLarge as a name was invented for the movie, but sorta based on something from the book.
 
@HelkaHomba Upvotes or Upvotes - Downvotes?
 
@ГригорийПерельман Upvotes. It might have negative total score
 
6:25 AM
0
Q: Determinate shift by X-axis of css objects

jsfiddlefcnI'm trying to draw something like STAR *. https://jsfiddle.net/jsfiddlefcn/w7y86acz/7/ From the center width / 2 and height / 2 to different points around bx and by. var counter = 0; function linedraw(ax, ay, bx, by) { var r = parseInt(Math.random() * 255); var g = parseInt(Math.random()...

 
@NewMainPosts I feel like we're getting a higher than usual stream of SO questions.
 
I wonder if ever in the history of PPCG the front page has held all open questions.
 
7:23 AM
D:< Y U NO CRITERIA? — Matthew Roh 1 hour ago
@MatthewRoh You should refrain from comments like that in the future (even if the post is off-topic)
 
7:47 AM
@KritixiLithos You mean the yellow/purple example? Seem ok to me
Note that x, y is the center of the circle and 0, 0 is at the top left
 
8:28 AM
@HelkaHomba I'm getting
Oh wait, I'm stupid
nvm, but can we get the width of the circle as input instead of the radius?
@KritixiLithos I stupidly used the radius as the width of the circle
 
I am on the top 5%
thats because the majority is on 0 rep
@DJMcMayhem btw, isn't there an option to migrate a question to another site?
 
8:49 AM
 
I have an idea
Inspired from GoL in the profile
The idea is
The Button in the profile
 
9:25 AM
@KritixiLithos I committed a new version of Röda that contains predefined streams STDIN, STDOUT and STDERR. So now you can use I/O inside a pipeline.
 
Cool, how does it work?
 
STDIN.pull() returns one line from stdin. If you call inputMode("c"), it returns characters instead. And inputMode("l") changes back to lines.
STDOUT.push(str) sends str to stdout.
 
If only BufferedReaders can read ints
 
help! My question is not liked codegolf.stackexchange.com/questions/112649/…
any advice gratefully received
hi @flawr
I could delete it and move it back to the sandbox
 
I've been thinking that I should make a more innovative solution than BufferedReader so that it could also read bytes.
 
9:37 AM
there a lot of new people here on ppcg chat which is great
 
I should really learn SQL
 
@fergusq "bytes" as in the data type?
 
8-bit integers, most likely signed. Now the BufferedReader reads Java chars = 16-bit unsigned integers, which is nice for most of textual input but fails with raw binary data.
 
btw, How can I make a server generate a random number everytime you access the link?
I'm making a diceroll in my profile
 
Anonymous
@MatthewRoh Should be simple with JS or PHP
 
9:51 AM
@Mego JS, Sure, I know those. PHP, Nah
 
don't mention the PHP
 
0
A: Sandbox for Proposed Challenges

LembikCount how many output arrays are far from all other arrays Let P be a binary string of length n and T be a binary string of length 2n-1. We can compute the n Hamming distances between P and every n-length substring of T and put them into an array (or list). Now let's consider two such arrays o...

 
So, Change the image in the script block?
Then go back to previous page?
(btw heroku ftw)
Wait, how do we make an html site on heroku
Oh, wait, using nodejs is not so different
its just html changed to ejs
 
@Lembik Your question is hard to understand. It's long and contains unexplained terms (what is a Hamming distance?). Give us links: how to calculate the Hamming distances. Where do P and T come from? Is the task to find Ps and Ts so that the resulting arrays are not close? The description is vague, I don't fully understand the task.
"the task is to find the size of the largest set of Hamming distance arrays [...]": what set of arrays? What conditions must these arrays meet? The set is restricted by n, but how exactly?
 
@MatthewRoh please refrain from comments like this in the future
 
10:05 AM
oh right
 
You might want to delete this one, too
 
Sorry, the delete time is out. why does the chat limit deleting time
 
@fergusq thanks!
I have moved it back to the sandbox meta.codegolf.stackexchange.com/a/11745/9206
 
I have a question, How do I make heroku to host images to I can use them on <img>s
(Yes, I'm making a profile utility)
 
10:41 AM
Hey
 
hi @TuxCopter
 
Hi @TuxFlyingMachineWhichHasTwoPropellersWhichEachOneHasThreeToFourWings
 
wot
 
any comments on the new improved meta.codegolf.stackexchange.com/a/11745/9206 gratefully received
 
At least its not @APenguinCharacterAndTheOfficialMascotOfTheLinuxKernelTurnedIntoATypeOfRotorcraf‌​tInWhichLiftAndThrustAreSuppliedByRotors
 
10:59 AM
@Lembik A lot better now. One thing that could be explained in more detail is the array comparing: is A <= B iff A[i] <= B[i] for all indexes i?
 

« first day (2234 days earlier)      last day (2602 days later) »