« first day (2311 days earlier)      last day (2535 days later) » 

12:25 AM
fun wikipedia find
> "Therapeutic touch", was taught at more than 100 colleges and universities in 75 countries before the practice was debunked by a nine-year-old child for a school science project.
I think there is something not quite right here
 
wow my fill method took up half the time of the unit tests :P
hmm isinstance is taking up 10% of runtime now should i be optimizing it
 
c'mon NMP, you can do this!
@DestructibleLemon pls link ^^
 
12:46 AM
0
Q: Generate chord charts for ukulele

Steve BennettYour task is to write a function which outputs a ukulele chord chart in the following format for a given chord symbol. For instance, for input "G7", it must output: G C E A --------- | | |#| | --------- | |#| |#| --------- | | | | | --------- | | | | | --------- | | | | | --------- It must...

 
This is a rather interesting read:
530
A: Why do dynamic languages make it more difficult to maintain large codebases?

Eric Lippert dynamic languages make for harder to maintain large codebases Caveat: I have not watched the presentation. I have been on the design committees for JavaScript (a very dynamic language), C# (a mostly static language) and Visual Basic (which is both static and dynamic), so I have a number of ...

2
 
Does anyone know if this is bad practice? (answering my own question with a solution that will clearly not be winning)
 
@MDXF It's fine
 
Okay
 
1:01 AM
why do people get mad over a wrong definition
 
because wrong definitions lead to wrong usage
 
but if i define that usage, the definition shouldn't matter
 
In the case of MW it goes both ways, turning it into a positive feedback loop of language misues
You mean, you define addition on integers as taking the absolute value of a normal sum? This can get confusing - not to mention that this makes your addition not a group action
 
then why even have definitions?
 
to standardize usage of terms.
 
1:07 AM
i guess that did bite me somewhat
 
am I the only one who gets annoyed at the fact that you can assign to lists from inside functions?
 
unclear. What language?
 
Alternative medicine — or fringe medicine — includes practices claimed to have the healing effects of medicine but which are disproven, unproven, impossible to prove, or are excessively harmful in relation to their effect; and where the scientific consensus is that the therapy does not, or can not, work because the known laws of nature are violated by its basic claims; or where it is considered so much worse than conventional treatment that it would be unethical to offer as treatment. Alternative therapies or diagnoses are not part of medicine or science-based healthcare systems. Alternative medicine...
@JanDvorak python
I guess I'll just provide the args with a shallow copy [:]
it doesn't have lists within lists so it should be fine
 
perhaps clone your argument within the function instead
 
yeah it doesn't matter. also I was considering using tuples and adding them but that seems bad
what should I do if a program attempts to discard an already discarded item?
 
1:17 AM
does it fail when it does?
@DestructibleLemon
 
I guess it can just assume that it places it in the dungeon?
or maybe it commits suicide
@NathanMerrill you know KOTHs right? what should I do?
 
0
A: Sandbox for Proposed Challenges

MD XF(No) Vacancy code-golf color ascii-art? We've all seen the signs on motels telling us if there's a vacancy or not: Typically, these will permanently have the letters of VACANCY lit up, and have the letters of NO lit up if there isn't any room in the motel. The challenge The average motel in...

 
That was quick
I posted that thirty seconds ago
Nice job @NewSandboxedPosts
 
1:40 AM
best way to check if an item is a list in python?
I tried searching SO, but it just gives best way to check if an item is in a list
 
type(item)
 
isinstance(var, list)
will return true or false
@DestructibleLemon
 
at least, in python 3
 
1:44 AM
yeah, I plan to use python 3
 
@KuanHulio type(var)is list is golfier
 
yeah but are we really going for golf? I don't know, but you guys figure it out
@WheatWizard type(var)==list
if you are going to be like that
 
@DestructibleLemon I didn't know you were allowed to do that
 
the more you know
 
I remeber being told not to
 
1:46 AM
maybe they were just holding you back
 
but <s>shorter is better</s> shorter==better so ...
 
from your true potential
to golf
 
0
Q: How can I golf this program to flatten a cube?

I like my dogI am attempting an answer to this question and, while having finished the actual code, I am having trouble minimizing it. I hope that this is on topic but I'm not sure. My code is currently a whooping ~4000 bytes long and is in Python. Any tips would be appreciated. However, please refrain from ...

 
people wanna help with my koth?
 
@WheatWizard its more pythonic to do is than ==
 
1:57 AM
@NewMainPosts doesn't appear to work
 
Well then I have one hell of a golf
 
@WheatWizard ?
lol they used u for two diferent things
 
@ASCII-only If the code doesn't have to work it can be done in zero bytes
 
@WheatWizard true
 
ewww, global variables. I forgot those existed
 
2:01 AM
@EriktheOutgolfer Fixed
 
I hardly get any votes or responses on sandboxed posts, then a bunch when I actually post them to main (positive and negative responses). I really like this challenge, I think it's pretty clear and easy... should I post it?
And should I use the tag or not?
 
does it use ascii
 
@KuanHulio Optionally
@WheatWizard To which
 
don't use
 
2:07 AM
Okay
I guess since it's not really art and ASCII is optional anyway I shouldn't
 
Python 59 bytes (*nix terminal):lambda x:"\033[31m"+"\033[37m"*(x<200)+"NO\033[31m VACANCY"
 
Exactly, it will take people 30 seconds to solve
Feels like the kind of thing that goes viral tbh :P
 
Might be golfable
 
btw, you can save a few bytes by using \e in the place of \033
should work if you're on *nix
 
Doesn't work for me
 
2:08 AM
Oh okay
 
I am on *nix
 
Might just be a C thing
It doesn't work in Java either
 
Ok might be then
 
All right
Is it okay to post?
 
I can probably preassign \033[31m though
 
2:09 AM
Yeah
Man, that will look pretty cool... a <59-byte pre-golfed answer in 10 seconds flat
 
I actually can preassign \033[
 
How many bytes is it now
 
which is kind of cool
 
Aw snap the title is too small
(No) Vacancy is 13 bytes
Title requires 15
 
59 is still the shortest
preassigning doesn't save bytes
 
2:12 AM
Almost fixed:
https://tio.run/##lVbrUts4FP6vp1BCZ2QHJXGywBYvAgolnd0CS2nLdhKcqeM4ianjeHwhUAqPtQ@wL8YeSY7jJGRXNYOsI53v3L4jOeF9MpoEzefnDWfS94KhmSaD6mvUdwf4UgtpqpsID/1Jz/bxlI6oS33aQtgb4JCxjkGnFuxzMRViwzJT1mnQasOCZdePXS4bUs5AYKQIqjaoYRW0chRfL4CMNaD1GH/RkYiKK1WlVg4CmRsJme/FiTa2Qy1Ox/S7F4r8dR3hyE3SKMApDUVhbmHDoSm1@/215YE9s7XJnEKtRoWIiwVczXVaLGOxbC@sGlYhhzxzo5hpsR7zQv9/vi0KCyLjgWa/nKk9N8InFNu1OPS9RCPXARG2Qu6QRzGYRNjDXoAjOxi6mu8Gmt0xLF3POOJCx7NKjGDClyTSk02Be5Frf0PYYXYnBEULxoYFOxeM7O91b@sE4RYjME5ZbrnaQHjEvCDRjNo2rmCxwWNyMx2wLZR8KYt5wh7ILTEFJZR0YVaV032YcvIo2RMzAD8ifMw6gkUqCKaCPCrIooIcKsigoviSCofX4AKIS
 
@ASCII-only wow
 
@MDXF ?
 
@ASCII-only Mix tabs and spaces for a golf
 
halp how do I sign out of PPCG
 
neutrino bot
 
2:12 AM
@ASCII-only It's pretty awesome
 
I want to switch back to HyperNeutrino
but I'm stuck on my alt
 
i know this one
 
you log out very carefully
 
and I don't want to switch browsers
 
how about
 
2:13 AM
@MDXF It's not mine :P
 
@NeutrinoBot StackExchange logo in top left
 
@KuanHulio ಠ_ಠ
 
Log out in the dropdown
 
oh that was kinda obvious
 
:P
 
2:13 AM
thanks!
 
for anyone else who wanted to know
 
ninja'd
 
tbh its kind of a dumb position
 
What should I name it instead of (No) Vacancy
 
01101100 01101111 01100111 00100000 01101111 01110101 01110100 00100000 01110110 01100101 01110010 01111001 00100000 01100011 01100001 01110010 01100101 01100110 01110101 01101100 01101100 @HyperNeutrino
 
2:14 AM
(No )?Vacancy
 
user165474
much better
 
@MDXF Can we assume a default color of the terminal?
 
user165474
@KuanHulio what tf is this
 
@WheatWizard Your program must use your shell/terminal/IDE's default background color.
 
probably something about emag eht
 
2:15 AM
you dont know what binary is?
 
user165474
actually don't tell me
 
user165474
i want to figure it out myself
 
@WheatWizard Additionally, If T ≤ 200, the letters of NO must be printed in your shell/terminal/IDE's default foreground color.
 
Oh ok
that makes things easier for me
 
Yeah I figured it would
 
user165474
2:16 AM
"log out very carefull"?
 
@HyperNeutrino It's a popular phrase
 
congrats
 
When someone asks how to do something obvious, others will often say "very carefully"
(no offense :P)
 
user165474
:P
 
^
see he gets it
 
user165474
2:16 AM
did you just assume my gender
 
user165474
(cc MD XF ;P)
 
My dad used to pull that on me all the time when I would ask obvious crap about C
@HyperNeutrino How so :P
 
did YOU just assume MY gender?
 
user165474
map(lambda x:chr(int(x,2)),s.split())
 
Oh @KuanHulio assumed mine
Luckily for him I'm a dude
 
2:17 AM
Did you just assume this joke would be funny all the time?
7
 
user165474
oic
 
user165474
@MDXF Did you just assume Kuan Hulio's gender?
 
anyway, wanna hear a crappy joke?
 
Oops :P
How about Motel sign challenge: (No) Vacancy
Or just Motel challenge: (No) Vacancy
Are either of those catchy enough?
Actually, I think I'm gonna go with Vacancy or no vacancy?
 
user165474
is this a challenge?
 
2:19 AM
Yeah
 
no this is patrick
 
user165474
ooo
 
0
A: Sandbox for Proposed Challenges

MD XF(No) Vacancy code-golf color We've all seen the signs on motels telling us if there's a vacancy or not: Typically, these will permanently have the letters of VACANCY lit up, and have the letters of NO lit up if there isn't any room in the motel. The challenge The average motel in the U.S. h...

 
user165474
ooo interesting
 
Yeah
 
2:20 AM
should be (NO )?VACANCY
 
What should I name it though
@DestructibleLemon That's still two bytes too short
 
user165474
though i personally would generalize it more, it seems interesting
 
They aren't letting us golf our titles :(
4
@HyperNeutrino How so?
 
user165474
@DestructibleLemon 0/10 the "NO" is always there
 
2:20 AM
(No v|V)acancy
 
@DestructibleLemon Nah because it's all caps anyway
But all-caps titles are annoying
You know what, I'm just gonna post it and change the title to something catchier later
if necessary
 
I had a sandboxed challenge named "HE COMETH NOT"
 
no vacancy for noveau tech
or something
 
user165474
@MDXF i think the part about checking if i > 200 doesn't seem any more interesting than just taking it as a boolean, and then it mostly just reduces down to finding a way to output colors. but idk looks good to me
 
@WheatWizard Nice job
@HyperNeutrino I think taking it as a boolean is a lot easier and a lot less original
Also if we're calculating the number of taken rooms, why would the input be a boolean?
 
2:23 AM
That might have been my Fastest west in the west ever, I think I got it in less than 30 seconfs
 
It was in 3 seconds
No joke
 
"That might have been my Fastest west in the west ever, I think I got it in less than 30 seconfs"
 
Well that's what the system says
 
> Fastest west in the west
 
no, he meant fastest gun in the west
 
2:23 AM
>30 seconfs
 
@MDXF who needs guns when you have wests
3
 
Accurate :P
 
i just need my wests in 30 seconfs
 
SECONFS = StackExchange Configuration Files
:D
 
everyone use seconfs from now on
 
2:26 AM
I like how WheatWizard hasn't even corrected himself yet :P
 
maybe... he did it on purpose
 
I guess it's possible
Highly unlikely though
 
user165474
did you just assume wheatwizard's gender maybe i should stop
 
I did the Fastest west in the west on purpose, because I've done that before, but seconfs was a accident
 
0
Q: Vacancy or no vacancy?

MD XFWe've all seen the signs on motels telling us if there's a vacancy or not: Typically, these will permanently have the letters of VACANCY lit up, and have the letters of NO lit up if there isn't any room in the motel. The challenge The average motel in the U.S. has 200 rooms. You will write ...

 
user165474
2:29 AM
0/10 not in sandbox for long enough
 
user165474
also plz delete sandbox post
 
I thought the consensus was to change it to just the title
 
user165474
well deleting it is nice
 
user165474
especially for people on the app
 
user165474
for me it makes no difference
 
user165474
2:31 AM
same with wheat wizard
 
sandbox 2.0 when?
 
o0 you use the app?
 
user165474
no
 
user165474
i use it to get updates though
 
user165474
and then when i get a notification i go to a computer and open the site
 
2:33 AM
ok, so say I have two items, that I want to do an operation on in a loop
but the order is variable
so far I added an if statement at the start, but is that the best way?
 
user165474
example?
 
just a second
wait, I just realised a better way to do this
 
user165474
ah ok
 
user165474
can I see the original/the better version though?
 
to be honest they aren't really related and I never finished the first way
 
user165474
2:42 AM
ah ok
 
@HyperNeutrino Whats going on? I'm confused as to why I was mentioned.
 
user165474
on the website it makes no difference to you whether or not a post is deleted because you have >2k
 
Oh yes, that is true, The only difference is that they are red.
 
user165474
yes
 
user165474
true
 
2:46 AM
@HyperNeutrino Do people actually use that? o_O
 
user165474
I have it on my phone...
 
user165474
But I don't use it often.
 
user165474
I usually just use it so I know when I get a notification :P
 
I don't even have a phone :(
(i mean duh I've got a work phone but not a smartphone)
 
Well, I do have it on my phone too, but I wouldn't dare using it for anything.
Posted a challenge from it to get a hat, but that's about it.
 
2:48 AM
is lambda{|x|...} really the shortest way to make a ruby lambda?
 
You don't need escape sequences for unprintable bytes.
 
@WheatWizard I could beat both of your solutions but I'm pretty sure it's bad practice to bomb your own challenge immediately
 
user165474
Isn't ->something correct?
 
CMC: return a truthy value (if x: print(truthy)) if a float is not an integer
 
@HyperNeutrino yes thanks
 
user165474
2:50 AM
ooo ok
 
@DestructibleLemon What does CMC stand for?
 
user165474
@MDXF Chat Mini Challenge
 
chat mini challenge
 
user165474
(sorry i wasn't the one asked :P)
 
Ah
Thanks
(@DestructibleLemon ninja'd)
 
2:51 AM
@DestructibleLemon what do you mean?
what KoTH should you make?
 
@Dennis What is this? I'm not sure what you are suggesting
 
whoops, accidentally a word
 
@MDXF In ruby and python or in another language?
 
In C
 
@WheatWizard Replacing \033 and \e with actual ESC bytes.
 
2:52 AM
Oh good thinking
 
@NathanMerrill I mean, if a bot tries to discard an already discarded item, should it be suicide or should it default to placing in the dungeon. I decided to be lenient so far. should I not be?
 
@Dennis I suggested that, he said it didn't work
Ohh for Ruby
 
hard to test though :p
 
nvm
 
What is the esc byte?
oh 27 nvrmnd
 
2:54 AM
@DestructibleLemon always remove submissions that don't follow the rules
 
well, if I do it this way, they follow the rules
 
@WheatWizard Do either of your solutions print a newline?
 
Python 3 doesn't like non-UTF-8 code, but Ruby might actually let you get away with CSI bytes.
 
however, is the KoTH already posted? If so, don't change your rules
 
@MDXF They return strings with no newlines
 
2:55 AM
@WheatWizard Also in your Python submission s/ANSII/ANSI
@WheatWizard See my comment on your answer
 
@DestructibleLemon if they try to do something they shouldn't, don't just default to an action. Remove them
you want smart submissions
and you don't want to hide bugs
 
ok good point there
with the bugs
what should I do with the error?
 
@WheatWizard Never mind about the newline. Sorry :P
 
Does anyone know how I could move my clipboard to a file on OSX?
pbpaste>file
 

« first day (2311 days earlier)      last day (2535 days later) »