« first day (1994 days earlier)      last day (2863 days later) » 

1:00 AM
Mini challenge: Teach me a new interesting English vocab word. Like ambulatory or bucolic or contretemps.
 
I mean if he powered off his system right away and prayed that no processes swapped he could recover...
 
No, he formatted it as swap
So yeah, rip
 
@HelkaHomba "defenestration"
 
pushed out a window right
 
@DrGreenEggsandIronMan Good. Potato for you 🍠
 
1:03 AM
Yup
taters? What's taters precious?
 
@HelkaHomba zygomorphic. Cool scrabble word
@DrGreenEggsandIronMan haha
 
@quartata Already knew it. You get corn 🌽
 
:(
Oh well I like corn
 
Haha, this is like that experiment with the monkeys and the grape/cucumber.
 
@HelkaHomba multifarious
 
1:10 AM
@HelkaHomba Can you put the word "defenestration" somewhere in your next MC video?
 
@DrGreenEggsandIronMan I'll try :P
 
I'l give you a grape if you do.
 
@quartata Kinda new. Rice: 🍚
 
Oooooh
 
@HelkaHomba gauche
 
1:13 AM
@Quill Nice. 🍠
 
philately (I think that's how it's spelled?)
 
Hey, have you seen PhiLately?
 
Stamp collecting. Corny corn 🌽
 
dammit
 
@quartata Everyone knows that. Eggplant for you 🍆
 
1:18 AM
@HelkaHomba OK I've got you for sure this time. Tyro.
 
I vaguely knew that. Rice worthy 🍚
 
you know tyro but not defenestration wtf
sigh
 
@HelkaHomba Scatalogical
 
@HelkaHomba obeisance
numismatics
I won't give up until I get my grape I needz grape has lots of vitamins
 
@HelkaHomba Antidisestablishmentarianism
 
1:26 AM
Everyone knows that lel
 
@NinjaBearMonkey Gross, known, corn: 🌽
 
Hippopotomonstrosesquipadelliaphobia
 
@quartata Sorry, I've read The Raven (and know about coin collecting) 🌽
 
Probably a typo in there
 
DAMMIT POE
4
 
1:27 AM
@quartata Made me laugh. Have a star.
 
Would you rather get a star or a grape?
 
@DrGreenEggsandIronMan 🍚 (havent heard in a while but still)
 
I'm desparate for my grape. I'm pulling out all the vocabulary stops here
I used to have a list of 100+ super weird words I would practice memorizing every day. You will not defeat me
 
@uoɥʇʎPʎzɐɹC starmaninnovations.com/static/SW3D_20160714.zip Run the spacewars3Dextended_newship_windowed.exe executable in the folder after unzipping.
 
@HelkaHomba Parvenu
Eh that one is not that weird...
Calabash
gimme the grape pls
In all seriousness fruit is expensive please mail me an actual grape: 1337 Infinite Loop Urmum, CA
I could use it
 
1:44 AM
@quartata I actually recognized that word, unexpectedly, and that was because of this: rice-boy.com/see/index.php?c=001
I didn't know it was an actual English word though.
 
Oh haha. Well I'm not surprised it's been used for names, it's a pretty cool word
Not too many syllables, obscure, nice ring...
 
Speaking of which, that comic I just linked to is a long-but-good read.
 
Turns out my site doesn't get much traffic
 
turns out my server has more mood swings than yours
 
yay for digital ocean
 
1:59 AM
@quartata 🍠
 
Can't see that but I'm assuming it's corn
 
@quartata It's a potato, actually.
Good job.
 
Yeesh. That took a while
mm baked potato
 
@HelkaHomba: Unconformably.
Just saw it in a Wikipedia article and misread it at first.
Source sentence:
 
@HelkaHomba Ziggurat
promise it's not a pokemon
 
2:10 AM
@Quill Even I know that one!
 
I left chat for a while. Did quartata ever end up getting his grape?
 
Well, given my minor interest in ancient mythology, that's perhaps not too surprising.
@DrGreenEggsandIronMan No, but he did get a potato! For "parvenu".
 
@El'endiaStarman I guess that makes me *looks directly into camera and blasts finger guns* stupid
 
Did anyone see the rubiks cube guy on America's got talent this week?
 
@GamrCorps no, what did he do?
 
2:20 AM
it was the guy who got out of a speeding ticket by doing rubiks cube magic, but two of his "tricks" were very obvious to how they were done
 
Goddamn it, worldbuilding
23
Q: What's the most reasonable way to fit Monsters in your Pocket?

Serban TanasaSay you have a hollow sphere, about the size of the grapefruit, comprised of a (let's say red) top half and a (let's say white) bottom half. There's an articulated lid, and an LED on the front. Most importantly, it fits in the pocket of your pants (or skirt, if skirts have pockets). Now, someho...

 
hahahaha
 
@Quill pyramid-dealy
 
13 mins ago, by Quill
@El'endiaStarman I guess that makes me *looks directly into camera and blasts finger guns* stupid
 
> However we could, technically, compress the monsters. Matter can be obscenely compressed with the use of a singularity, or black hole. We'd need to come up with some manner of creating a black hole in the small sphere. While this would kill the monster, getting the monster back out wasn't a requirement, so let's not focus on that too much.
Bahahaha.
 
2:27 AM
^ I thought black holes had all the information from the matter they consume stored around the event horizon? Maybe you could actually reconstruct them :P
 
@El'endiaStarman kind of a collection of common terms - un/conform/ably :/
 
@HelkaHomba True, true.
 
user214599
 
user214599
I had to upload this again :p
 
user214599
Anyone remember this?
 
user214599
2:34 AM
@Quill Do we have to fit the monster alive?
 
@MatthewRoh idk read the question
I think I know why the room feels noisy lately.
 
@MatthewRoh hrm?
 
There's a distinct lack of Arctic Fox gifs
 
user214599
I did some talk about spies, some images got starred almost instantly
 
Everything went downhill when Doorknob changed his avatar
 
user214599
2:36 AM
And this is one of them
 
2:47 AM
Anyone here who knows how planetary gears work, I could use some help if you are willing to give it: engineering.stackexchange.com/questions/10705/…
 
CSS is easy. It’s like riding a bike, which is on fire and the ground is on fire and everything is on fire because it is hell.
 
@Quill doing css right now. could not be more true
 
3:37 AM
hi.. I have a basic python question
 
shoot
 
I have some code that has "return A and B or C" at the end of a function. To me this looks like it should return a Boolean but it seems not to
it's not my code
what does this do?
 
@quartata correlation/causation? D:
 
@Lembik could you send the full function?
 
3:40 AM
@GamrCorps sorry this is from something I looked at yesterday.. I don't have it here
I think python is returning the last thing it evaluated
or something like that
 
That's fine, the problem looks to be that the and keyword returns one of its arguments, not a Boolean expression. For example, return 0 and 21 would return 0. I have no clue why though
 
right
 
might be something to do with short circuiting
Oh!
In JS there's stuff like return x || y
 
so it's some sort of if, then else it seems
 
it will return x, buit if x is undefined it returns y
that;s probably it
 
3:42 AM
there are A, B and C :)
 
uhhhhh
 
After further investigation it seems to be something like this: return A and B actually is this: if (A and B) return B else return A
 
oh so it's like ternary but weird
 
precisely
if A and B is true it returns B, and A if it is false
 
I think it is return B if A else C
so it never returns A
but just the mere fact that A and B or C is not a Boolean is already upsetting me :)
 
3:44 AM
Well yeah, I didn't consider the or keyword
 
thanks very much
Python is not a serious language it seems :)
2
 
in that case it is like this: A and B or C -> if (A and B) return B, else return C
and youre welcome
 
@Lembik be careful, some people will lynch you for saying that :)
 
I know! But they are wrong :)
 
3:46 AM
python is weird
 
It's insane.. take if (A and B) return B, else return C, Clearly A and B is a Boolean
 
but not sometimes :)
 
@GamrCorps that's the worst thing I've ever seen. remind me never to use that syntax
 
You missed the brutal JS bashing earlier today.
 
3:48 AM
I assume it comes in handy for VERY specific scenarios, but otherwise it is a complete pain
 
@GamrCorps right
 
> (Note that neither and nor or restrict the value and type they return to False and True, but rather return the last evaluated argument. This is sometimes useful, e.g., if s is a string that should be replaced by a default value if it is empty, the expression s or 'foo' yields the desired value. Because not has to create a new value, it returns a boolean value regardless of the type of its argument (for example, not 'foo' produces False rather than ''.)
 
@GamrCorps if anyone uses this regularly in real code I will murder them
 
haha
youre going to easy on them
I would do much worse
 
3:55 AM
I will shove a ternary operator down their throat?
 
I would shove two
 
I have moved on to trying to understand xgboost :)
 
Um, I use those all the time.
 
Uh... I retract my former statement
 
@Dennis genuinely curious - what is it useful for?
 
3:57 AM
@charredgrass Why? AFAIK that's the standard way to do ternaries in Python. I've seen that used all over the place.
 
@Doorknob I'm not familiar with Python. I guess I'm just not used to its syntax :P
I'm too used to seeing ternaries as (x ? y : z)
 
I am familiar with Python, just not that confusing syntax
^^^
 
@charredgrass For example, I'm currently writing an interpreter for a BF-like language. I want to set the cell to the ordinal of the byte read of STDIN or 0 on EOF. cell = ord(sys.stdin.buffer.read(1) or '\0') does that.
 
Grr. I've got a huge update for V in the works, but I don't want to pull it yet cause it adds one stinking byte in one very specific scenario.
 
Sure, it's possible without or, but that would require a variable, etc.
 
@Dennis I see, thanks for explaining
 
@DrGreenEggsandIronMan Well, if each version is easily accessible, just use an older version in your solution.
 
By the way, 'yay' if condition else 'nay' is Python's ternary if syntax.
 
Anonymous
@charredgrass That idiom is very common with pseudo-default parameters. Suppose you want a function parameter to default to an empty list. Doing param=[] causes problems. So, instead, you do param=None, and at the start of the function body, you do param = param or [].
 
Anonymous
@Dennis sys.stdin.buffer.read(1) what is this madness?
 
4:03 AM
@Mego Oh, so it's equivalent to using || during assignment or returns in js.
EOF maybe?
 
Anonymous
@charredgrass Sort of, yeah
 
So if I understand correctly, is A and B or Cequivalent to B if A else C?
 
Anonymous
Oh wow it says to read and write from the buffers in the docs for Py3k
 
Anonymous
TIL I've been doing it wrong
 
Anonymous
@GamrCorps Basically yeah. It's golfier, too, in most cases.
 
4:06 AM
neat
 
Anonymous
@quartata When I saw this on the starboard, I did not immediately think of the author :P
 
@GamrCorps No. 1 and 0 or 2 gives 2, while 0 if 1 else 2 gives 0.
 
it would be great if there were a machine learning chat room as active as this
 
@Mego Reads one byte from STDIN. Is there a better way?
 
but then, everything would be better if it were like PPCG :)
 
4:09 AM
@Dennis Good point.
 
hmmm...what if python decided to copy the variable on each call
instead of evaluating the expression every time
 
Anonymous
4:25 AM
@Dennis I always used sys.stdin.read(1) - that was the "correct" way in Python 2. I didn't know that sys.stdin.buffer.read(1) was an option (and apparently the "correct" way) in Python 3 until I looked it up.
 
Yeah, sys.stdin.read(1) reads a character in Python 3.
 
5:01 AM
Hello
 
hi
 
So, V has this command that inserts a character 'n' times. So for example 3i would insert the letter 'i' 3 times. What character should it default to if you don't specify what character at the end?
 
Anonymous
@DrGreenEggsandIronMan Whatever the last character entered is?
 
Anonymous
@Dennis Yeah - I never realized the distinction until I dug deeper just now. It doesn't make any difference for me in Seriously, because it works with both UTF-8 and CP437 seamlessly.
 
Oh, so like if you do hello3 it would insert hellooo?
 
Anonymous
5:11 AM
Sure
 
Anonymous
Maybe have it repeat the previous string n times? Or is that a different command?
 
So I guess it's just infix prefix vs postfix.
@Mego Yeah, that's a different command. That would be 3i<string><esc>
Prefix and postfix take the same number of bytes, unless prefix has a default character it could be one shorter. When you don't specify.
Maybe I should just default it to V since it's the name of the language, and it will most likely never actually be useful.
So it's an easter egg.
 
5:25 AM
0
Q: File Format Challenges

Nick TI recently posed a question about attempting to ruin Lepton's attempt to compress a JPEG. I've done other file-format-type questions before, to generate a WAV, defeat LZMA compression, etc, in part because I like to learn how file formats are put together at the byte level. The question is all a...

 
5:47 AM
@Lembik ???
@Lembik python and and or short-circuit, plus python (like JS) has truthiness, so they usually leave types the same
@charredgrass D: uh oh
 
@MᴀʀsUʟᴛᴏʀ lol don't worry, Dennis and Mego explained its usefulness to me
it's a thing in js too, like return x || y
 
I don't use it too often though
Except as JS' null coalesce (look it up in C# documentation if you want), basically to make sure some variable exists
 
woah, windows 10 allows pasting into command prompt using ctrl+v
this is beautiful
 
Agreed, but it's completely ridiculous that they didn't have that like 10 years ago.
 
Anonymous
It's completely ridiculous that Windows doesn't just have some feature-compatible version of mintty and bash as its command prompt
 
5:58 AM
I have bash. :P
Other than mintty
 
So file formats
 
@charredgrass In Ubuntu it's ctrl+shift+c/ctrl+shift+v, since ctrl+c is quit
 
Rather than try to fit such a question into existing bins, is there a compelling reason to not have it be in-scope?
 
Anonymous
@MᴀʀsUʟᴛᴏʀ The standard way to do it in Linux is ctrl+ins for copy and shift-ins for paste
 
Anonymous
@NickT This is a site about programming. If there's no programming involved in the challenge, it's off-topic.
 
Anonymous
6:01 AM
There's no simpler way to put it.
 
@Mego Would you say the same thing about the PDF question?
 
It's a good question, just not really programming
 
12
Q: Hand-crafting a PDF

Nate EldredgeInspired by this answer, I thought an interesting challenge would be to golf a PDF file. PDF files are based on the PostScript language, so I thought this might be acceptable as a programming challenge for this site; but I wanted to check first. A proposed challenge might be something like: ...

 
oh interesting
 
It seems incredibly myopic to dismiss a question about a specific file format as not being "about programming"
 
6:02 AM
@NickT It's not about programming because the task is not "Write a program that XYZ".
 
Anonymous
@DrGreenEggsandIronMan Yes, I would. I would also say that the proposed challenge has many other flaws (like the ones Peter and Fry brought up).
 
The task is "Find the set of data that has XYZ property".
 
@Mego Oh (I have a laptop where the ins is fn+printscr though)
 
Anonymous
@MᴀʀsUʟᴛᴏʀ It should still work (my laptop is the same way). Do shift+fn+printscr
 
@DrGreenEggsandIronMan is there some slippery slope that I'm not seeing here?
 
6:04 AM
@Mego I know, it's just that I find ctrl + shift + c easier
 
is this question about two other "algorithms" going to lead to totally off-the-wall questions?
such a challenge is so intimately computational
no way it's going to fly on Puzzling.SE or Math.SE
 
Even if computing it is the best way to get the answer, the answer is the result, not the code.
 
The answer with the LZMA question was mostly dictated by the result answer, I just had some totally bullshit scoring mechanism
 
Anonymous
@NickT There's no slippery slope. There's a very clear-cut line of what is on-topic and what is off-topic, and your challenge falls on the off-topic side.
 
@Mego is that formally specified on codegolf.stackexchange.com/help/on-topic somewhere that I can't see or in some meta question?
 
Anonymous
6:07 AM
> Programming Puzzles & Code Golf is for programming contests and challenges.
 
Anonymous
There is no programming in your challenge. It's not a programming contest/challenge.
 
There's no programming required to generate "Hello World", I can write it down on a piece of paper
Is there some slippery slope I'm not seeing
 
Maybe a mod should edit this it possible
 
Sorta related:
 
There is no programming required to create a PDF that shows hello world
 
6:09 AM
6
A: Guidelines for posting and closing popularity contests

DennisWhich challenges are on topic here? First and foremost, the same rules apply to all challenges, whether they are popularity contests or not. These rules are outlined in our help center. They were phrased differently in the past, but their essence was the same ever since the help center was creat...

 
So if I make it a kolomogorov complexity problem to generate such a JPEG, is that OK?
 
That's not what kolmogorov complexity is.
 
A specific JPEG, or a variable one?
 
Kolmogorov complexity would be golfing the code to find a specific JPEG
 
@NickT JPEG seems a little restrictive, (and maybe a specific image as well) but yeah
 
6:11 AM
or rather, lets say the JPEG needs to be one of two, based on some arbitrary input
 
@charredgrass No, that's not true.
 
> Kolmogorov complexity, informally, is the amount of code it takes to produce a given string of text.
It's tangentially related to entropy.
 
I see
 
So strings like "aaaaaaaaaaaaa" have a low KC, and strings like "lasdifuhliasdfalsd" have a higher KC.
 
6:12 AM
"You must specify a program that generates a valid JPEG if the input to the program is True, otherwise it must exit and produce nothing"
Would that make the question OK?
 
What's the scoring?
 
You don't need input
 
Same as it is
 
Kinda seems like a chameleon challenge.
 
but it's impossible to do without a program, because I specified it.
I always figured that as programmers, it was commonplace to have to deal with other people's specs and algorithms
god forbid a question where people try to learn anything
 
6:16 AM
wow, Python's in is so much better than me changing JS .indexOf results into truthy values by adding 1
 
All I heard in that sentence was "Python... Better... JS"
3
 
@Quill does that work on strings though?
 
@NickT The smallest possible depends on the viewer stackoverflow.com/posts/24147349/edit
 
Anonymous
@NickT I think your frustration at having your challenge closed is preventing you from understanding the reasoning for why it was closed. I recommend taking a breather, and coming back when you're less frustrated.
 
@Quill why have I never been told about this
I should read more docs
 
Anonymous
But a in b is just so much golfier
 
@Mego I'm happy to comply with the letter of your law
 
@charredgrass because it's only been added recently so there's a lot more docs that use indexOf
 
Anonymous
6:19 AM
@Quill That's not at all the same thing
 
yeah not the same
 
Anonymous
That's hasattr(a,b), not a.contains(b)
 
yeah, I know. but still, it exists
 
Anonymous
It exists, but it has nothing to do with the current conversation
 
@Mego but, yes, I'm frustrated. Clearly. Rather than slapping me with "u mad bro", can you help me understand why expanding the scope of things is anathema?
 
Anonymous
6:23 AM
@NickT I didn't "slap" you with "u mad bro" - I merely suggested taking a break until you're less frustrated. That's good advice in any setting. Expanding the scope can happen, but we do have limits on how far the scope can be expanded. Challenges which don't involve programming at all will never be on-topic for this site, because this site is for programming challenges.
 
@NickT Sure, it may be a valid question, but I don't think many people would do it because it's less kolmogorov complexity and more compression
 
@Mego is dealing with JPEGs not a programming task?
 
Anonymous
@NickT Not by itself.
 
@MᴀʀsUʟᴛᴏʀ The scoring would remain as it's posted
 
@NickT As it's posted?
 
6:26 AM
hey @Downgoat, I'm gonna take a crack at making Cheddar run on serverside later on, you interested?
 
@Quill serverside?
 
yup
 
@Quill Basically transpile node.js into node.cdr?
 
kinda sorta not really
 
@Quill ???
as in the online interpreter?
 
Anonymous
6:29 AM
@MᴀʀsUʟᴛᴏʀ He means an online interpreter that runs Cheddar serverside rather than clientside, I think.
 
Anonymous
Like how TIO runs code serverside
 
@Quill pls don't make the interpreter run code serverside, the server might die from processing load
 
Wow, I'm really bad at Python
 
What are you having trouble with?
 
Nothing really, it's just the syntax is so unfamiliar to me that I'm much slower in Python than JS
the headache due to lack of semicolons and braces is also getting to me
 
6:35 AM
Actually, optional semicolons are allowed.
Also, try running from __future__ import braces
:P
 
I know :P
also did import antigravity
 
That's a classic.
Did you import this?
 
woah, never heard of that one before :D
 
@Mego pretty much, I'll route files into the cheddar interpreter code
 
6:51 AM
Found this in some documentation about reddit api and OAuth:
> Ingredients: 1x Web Browser; 1x Folder; 1x Commandline interface; 1x Text Editor. Preheat keyboard to 425°F (400°F for dark or nonstick keyboards).
 
7:36 AM
that feel when your function has a cyclomatic complexity of 100000000
 
@charredgrass wat
 
i'm bad at python thats wat
 
7:59 AM
ANOTHER ISSUE PROUDLY BROUGHT TO YOU BY THE TYPE COERCION COMPANY
9
 
> Suppose you want to match a pair of opening and closing HTML tags, and the text in between.
oh god
what am I reading
 
then you use a dom document
 
@Fatalize I hope you're well
 
@flawr I don't live in Nice, so yes
 
@NewMainPosts @quill edit that?
elevening == mod power abuse.
 
8:15 AM
:31048966 not quite, i'm about 300km away from Nice
 
@Fatalize good to hear
 
8:34 AM
gm
 
@NewMainPosts what's happening lol
 
i have 572 reputation .____________________.
OEIS ftw
 
To all the other french people on PPCG, hope you're doing well, and your family and friends are too!
7
 
@Katenkyo that's Nice of you
 
> A000027 also satisfies all three rules unless you also specify that 1 is the only element not generated by rule 3. – f'' 1 hour ago
GENIUS
 
8:40 AM
so I got Cheddar running server side but stuff is still broken
 
@Fatalize Nice pun there
 
@Fatalize little too soon?
it was literally today
 
@Katenkyo ?
 
@charredgrass I think you can joke if you're part of the population that suffered ^^
Also, humor is important in these moments
 
even if you're not, I'm not gonna stop joking because of a single person
 
8:42 AM
Is it a holiday or mourning in France? >>'
 
@zʏᴀʙiɴ101 Someone though that running with a truck on the sideway was funny in GTA, and decided to do the same thing on our National Day at Nice. 84 Death, and 20 heavily injured people.
 
@zʏᴀʙiɴ101 Both
 
Bastille Day
 
11
A: Calculate A190810

mbomb007Python 2, 88 83 72 bytes You may want to read the programs in this answer in reverse order... Slower and shorter still, thanks to Dennis: L=1,;exec'L+=2*L[0]+1,3*L[0]-1;L=sorted(set(L))[1:];'*input() print L[0] Try it online This doesn't run as fast, but is shorter (83 bytes.) By sortin...

5
A: Calculate A190810

DennisPython 2, 59 bytes t={1} exec'm=min(t);t=t-{m}|{2*m+1,3*m-1};'*input() print m Based on @mbomb007's Python answer. Test it on Ideone.

One does not simply outgolf Dennis
 
8:47 AM
@TùxCräftîñg ninja'd:
 
hahaha
 
@TùxCräftîñg SadTux is sad
 
oscillator heaven rule: B4/S1235678
official
 
I'm still waiting for SuperJedi and LegionMammal to come, I have readied an isotropic rule for them.
 
8:56 AM
@zʏᴀʙiɴ101 Which rule?
also, what symmetry
 
exactly 900 views on your-mom repo \o/
 
@MᴀʀsUʟᴛᴏʀ C1, as always.
@MᴀʀsUʟᴛᴏʀ A non-totalistic isotropic rule.
As in, letters in the rules.
 
and 133 downloads on npm \o/
 

« first day (1994 days earlier)      last day (2863 days later) »