« first day (2483 days earlier)      last day (2657 days later) » 

20:10
@cairdcoinheringaahing s/has/have/? I know the English is intentionally bad but I think it's have in the official video.
@HyperNeutrino Think about this counter argument: does it matter?
:P
oh snap can't argue with that logic
:P
You know what's sad about eating a cookie? Running out of cookie.
but no ofc not I'm just picky with basic grammar (of course capitalization and not using short-forms is for old-school people, this is the internet :P)
@AdmBorkBork or running over cookie
@AdmBorkBork Or not having a biscuit
20:13
I live in the US, a biscuit is something very different.
@AdmBorkBork biscuit = scone?
@cairdcoinheringaahing Scone is something completely different
Ugh, I can't keep up with Americanisms. What is a biscuit, scone and cookie to you guys?
No, a biscuit here is a type of quick-bread. Soft and leavened, sometimes flaky.
@cairdcoinheringaahing Biscuit, Cookie, scone
20:15
codegolf.meta.stackexchange.com/a/11925/43319 says that for Python, A function submission may include helper code outside the function, for example import re;r=range;lambda l: ... Shouldn't we then allow the same for APL?
Scone is a sweet breakfast pastry
@DrMcMoylex In English, that's a scone, biscuit and a blueberry scone
@Adám Yes, don't we?
@cairdcoinheringaahing Last time I checked, I'm pretty sure I'm speaking English as well...
:P
@cairdcoinheringaahing So far, I've shied away from doing so. But I think it is fair if Python can.
But if that's the case, then yeah in the US a biscuit is like a UK scone
20:17
@cairdcoinheringaahing I'll add it to my APL post there.
In the US, the difference between a biscuit and a scone is that a scone is less flaky and way sweeter. Typically only a breakfast thing too
@DrMcMoylex I genuinely refer to the language you guys call English as "American" or "American English" :P
@cairdcoinheringaahing Wait, so what is a cookie?
@DrMcMoylex As in what do we think when someone says cookie?
Biscuits are usually served with meals, not eaten separately like a scone.
20:18
@cairdcoinheringaahing Yeah
@AdmBorkBork Like biscuits and gravy... mmmhmmmm
I love biscuits and gravy
We usually think they're American. There's no such thing as a cookie (in England)
I could have a scone with a cup of tea or coffee in the afternoon, but I wouldn't have a biscuit with that. (Ignore for the moment that I dislike hot beverages)
Same way that you guys don't have trousers
4
That sounds really weird :P
Sure we do. They're just normally called pants.
20:20
Caird just assumes that all of us uncultured Americans run around without pants all the time :P
@cairdcoinheringaahing Out of context quote of the day lol
Pretty sure we don't have jumpers, though.
@AdmBorkBork Exactly the same here, but with cookies and biscuits
@AdmBorkBork I'm not sure what jumpers are.
I think of cables
Sweaters (is what jumpers are)
Trousers is usually more formal. Like, a suit would have trousers, but jeans would be pants.
@DrMcMoylex Sweater / sweatshirt.
20:22
TIL
If we say "I'm not wearing any pants", it means you're going commando, whereas you guys think of someone running around in underwear?
TIL that APL functions can return functions as result.
I think it's fascinating how two extremely similar yet different languages evolved. And in like 99% of cases, they're the same. But that 1% is really interesting
Honestly, 99% of all American that I know is from Family Guy, and 1% from visits to Utah, NYC and Seattle :P
20:25
Walk on this sidewalk, after three blocks, go through the tunnel to the subway, and take the Circle line counterclockwise to the railroad station (it stops there). Or you can just borrow my cell and call for a station wagon.
Walk on this pavement, after three estates, go through the subway to the underground and take the Circle line anticlockwise to the railway station (it calls there). Or you can just borrow my mobile and call for an estate car.
@Adám For the second one, s/estate car/black cab/
I was working on a chat client and I broke my test account lol
now I have to restart the server xD (takes me about 4 keystrokes so I don't rly care)
@cairdcoinheringaahing You can have a black cab in the US too, it just doesn't mean a black cab.
@Adám What does it mean?
@Adám Assuming the first one is AME, I'd say just borrow my phone and call a Taxi
20:27
@cairdcoinheringaahing a taxi which is painted black.
Cell works, but it's less common. I have never heard station wagon before
@DrMcMoylex I know, but I wanted to put in as many differences as I could. Contrived example, of course.
But Phone and Taxi are still different
@DrMcMoylex Station wagon is what a five-door hatchback is called.
Can an American tell me why there's such a complaint against gay marriage?
20:29
@AdmBorkBork ... Well I know that, but why would you call one like a taxi?
Just a reminder that Australia isn’t the only place with strange slang...
@DrMcMoylex Really? When I lived in NY, people would often ask if I had a cell, ask for my cell number, tell me to call on their cell, say "I'm on my cell", etc.
@DrMcMoylex Right, you wouldn't.
@Adám Could easily be a regional thing.
NY and Colorado speak differently, but the differences would be more subtle then BRE/AME
I am Canadian, is that close enough? And the reason is because some people are way too conservative. I don't know. My parents are extremely anti-gay (they were not raised here, I don't know if that makes a difference), but the society here is extremely supportive of it. Some people might be against it for religious reasons? I'm not quite sure.
20:30
@HyperNeutrino Canada is close enough :P
The majority of Australians recently voted yes for it, I’m proud of this country
ok :P I mean half of our culture comes from America and the other half comes from polar bears and moose
Also, as far as I know, there's nothing in the Bible that bans gay marriage
@DrMcMoylex Yeah, regional things are very common. Ask people what a "bubbler" is and you'll get blank stares in most places and "that thing at the park you drink water from" in Wisconsin.
@HyperNeutrino And France, given that half the country speaks the language?
20:32
We just called ‘em “Drinking Taps” or “The Taps”
IIRC, nothing explicitly forbids it, but there is a thing about a family having to have a mother, a father, and children, but I don't think anything bans it.
Huh, I just realised I don't know my own county's stance on gay marriage
@cairdcoinheringaahing 1) The US isn't that opposed to gay marriage, but lots of its residents are. But it's federally approved now, so I don't know why you assume that the US is entirely opposed. 2) I'd assume the people that oppose it do for the exact same reason anyone in any other country opposes it. Most likely religious reasons, but who knows?
@AdmBorkBork That's hilarious
@cairdcoinheringaahing Sure, France, Britain, all the major superpowers who used to own this country :P and Quebec isn't that large and not that many people outside of QC speak the language :P
FWIW, I'd call that a drinking fountain or water fountain
20:33
wait I just realized that what counts as being able to "speak" the language is ambiguous
Also the term “Taps” probably sounds weird to people who only call taps Faucets
@DrMcMoylex I don't think that most or all the country is against it, but it is quite well-known that it's a controversial topic there
63% of Australians said yes 🎉
That's just because ~15~ years ago, it was pretty unpopular, and recently there's been a radical shift in public opinion, not to mention that it was federally legalized recently(ish)
Do people across the pond know who Nigel Farage/UKIP is?
20:35
I don't
I've heard of UKIP - that's a political party in England
I have heard of both of them.
@AdmBorkBork Nigel Farage is the leader of UKIP
Also \o/ gay marriage is legal in the UK \o/
Boo ukip
@AdmBorkBork Wisconsin also has a really entertaining accent (IMO)
20:39
Oh accents are something totally different, doncha know.
Haha, I can hear it even over text
Well, I found a list of countries I'm never going to live in
OK, random question, but this is something my friends have been discussing recently: How do you pronounce Colorado?
What are the dotted lines in chat? I always see them but I've never known what they are.
I guess technically, the 'uh' is a schwa, but I didn't feel like copying it
20:41
@cairdcoinheringaahing According to the Bible, marriage is something between a man and a woman. The phrase is ki yikach ish isha which means when a man takes a woman. It doesn't ban gay marriage, it just doesn't consider it marriage. Also the Bible does not prohibit homosexuality. It only prohibits male-male intercourse.
@WheatWizard It's where SE chat thinks you've read up until (so anything after the dots would be new messages as far as SE chat thinks)
@WheatWizard Oh, I actually know the answer! It shows the last thing you read
^^
Why are there three then?
and why are they always wrong
well SE can't really tell where you've read up until and I think it's just buggy overall. Also, the last 4 messages didn't have dots before them even though this window was unfocused (but still visible because the window in front of it wasn't maximized)
@DrMcMoylex Option not listed: Cholera Dough
20:43
As in, Coe-LAIR-uh-doe?
@DrMcMoylex Or color-a-DOE.
@DrMcMoylex It's very clearly "co" (as in co-dependant) "low-ray-doo" :P
Is Cholera meant to be "coe-lair-a/uh" or "col(umn)-ur-a/uh"?
(the (umn) is just to indicate how "col" is pronounced in this case)
@Adám But is that 'a' like 'cat', or 'a' like 'call'?
@DrMcMoylex Like to paint an antelope.
20:45
Call-or-ad-doe
@Adám so "a" as in "uh" or "ay"?
@Adám Thanks, that's very helpful :P
@HyperNeutrino uh
Is there John Lewis (the shop) in America?
Maybe it is call or aDOO?
20:46
@cairdcoinheringaahing At first glance, without context, that sounded really weird
wait should "a" (on its own) be "uh" or "ay"? or does it depend?
@Mr.Xcoder starboard's lack of context is wonderful for messages like this :P
@HyperNeutrino I usually say 'uh', but if I I'm referring to the word 'a' itself, I'll say "ay"
@HyperNeutrino Ay, if talking about the letter.
Whoops, I meant as an article.
@HyperNeutrino Depends upon the next sound.
20:48
ah ok, what I thought. what does it depend on though?
@HyperNeutrino an
ಠ_ಠ Wastes 15 minutes of their lives debugging -- An identifier was "Cell", not "cell" ARGH!
I think I tend to use "ay" when the next sound is an emphasized one (so "uh - computer" but "ay - binder")
@Mr.Xcoder use a language with case-insensitive identifiers :P
@HyperNeutrino If there's a hard consonant, like a t or d, I would say "ay" ... "ay toad" or "ay door"
banned from the internet forever
@AdmBorkBork hm interesting
I really can't find a rule to which one I pick, I just go with whichever one comes to mind first :P usually I follow the rule I gave but not always
20:50
@HyperNeutrino ... This is the only language that serves my current purpose
@Mr.Xcoder oh ok rip. what language are you currently using?
@Mr.Xcoder I wasted probably 2 hours trying to figure out why something was segfaulting, and it turns out I needed to remove a _.
Swift (I will never use OBJECTIVE-C!!)
ah ok
I once wasted at least 30 minutes trying to figure out something and then I realized that it was because I didn't change the variable name after copy-pasting :P
@DrMcMoylex an
20:52
Meh
Ugh oh Apple has made a terrible design choice for Table Views... The TableViewController comes with some standard code, and if you try to modify the contents of a cell you get nil exceptions, because of a line that should be deleted from the initial template facepalm took me 5 mins to figure out
I spent one and a half week troubleshooting a power system model that didn't behave as I expected. I finally contacted the company producing the software yesterday. Got an answer today: "Yes, the IEEE standards were updated, and we misunderstood them. It doesn't work in this release, but it will be fixed when we launch the new release next summer.
@StewieGriffin Lol, facedesk huh?
@Mr.Xcoder Last year our conference registration system fell over when I signed up with my wife because someone had written spouce instead of spouse.
I'm guessing more facecomputer :P
20:55
1
Q: Simple markdown rendering

Stewie GriffinThere are several ways to create headers on posts on the Stack Exchange network. The format that's most commonly1 used on PPCG seems to be: # Level one header ## Level two header ### Level three header Note the space after the hash marks. Also, note that trailing hash marks are not included. ...

-1
Q: Packing Density of Polyline Defined Shapes

Jakob LovernSo... I was making bacon this morning and I couldn't fit all of my bacon into my pan. However I oriented the strips, there was always one or two pieces that didn't fit. Culinary endeavors aside, here's my challenge: Input: pan and bacon Any occurrences of these strings in your program should be...

computerfloor
@cairdcoinheringaahing or computerwindow
@StewieGriffin You must be somewhat reach to afford that :P
Guys, the infallible Unicode consortium has standardised that to facepalm: 🤦
Well, the hours lost troubleshooting that problem cost way way way more than the computer I worked on.
20:57
@Adám I can't see that 🤦
The new 1337 way of saying facepalm is U+1F926.
… and then he had just forgotten to plug in the computer. 1F926!
@cairdcoinheringaahing emojipedia.org/face-palm
2
A: Basic ASCII Tallies

FrownyFrogJ, 50 48 45 35 bytes 1|:_50[\'|/ '{~[{.(|.2,=i.4)$~]-5|] Try it online!

@Adám Oh, a bunch of white rectangles
I beat Jelly :D
@FrownyFrog No way Jellyers can let that happen!
21:02
@mınxomaτ Can't you see the images if you scroll down?
Is there a shorter alternative to .round() in Ruby?
Jelly was beaten? :o Dennis will be summoned and outgolf you by 8 orders of magnitude
grr, you're winning by 3 bytes. must not lose golf battle :P
hey I already found 1 free byte
p (1.0*numerator/denominator).round
can be this shortened? (ignore var names)
trying to round the fraction to nearest int
i.e. not floor division
right now I use 1.0 to force float then .round() to round but :/
floor(x+0.5) may save bytes (don't know what it would be in ruby)
@HyperNeutrino You use list literals...? In Jelly
21:06
I can't think of a better way :P
I think that would make it longer
I have to keep the fraction in float form before converting
unless there's a rounding shortcut but I can't think of one
i.e. I don't think I can just stick .5 in the numerator for instance
oh you don't have a fraction, instead you have the num/denom?
@Mr.Xcoder Using W is longer. I tried
I still believe [“|||/”] is golfable, not sure how though
as in I have two integers, numerator and denominator
and I need to compute the rounded integer division
i.e. not truncated division
in which case i would have just done numerator/denominator
if you're trying to do rounded integer division why do you need the result as a float
@cairdcoinheringaahing Eugh!
@cairdcoinheringaahing That is not what I was expecting to click on
Also, you left out an option for I'm a female
0
A: Sandbox for Proposed Challenges

Jakob LovernPacking Density of Polyline Defined Shapes So... I was making bacon this morning and I couldn't fit all of my bacon into my pan. However I oriented the strips, there was always one or two pieces that didn't fit. Culinary endeavors aside, here's my challenge: Input: pan and bacon Each of these...

(I'm not, just saying you forgot the option)
21:11
@Poke In order to keep the fraction so I can round it
@DrMcMoylex You could just not answer it (or say No) :P
unless you know of a better way?
if I just do numerator / denominator I'm flooring the division
@cairdcoinheringaahing Yes, but a female answering no and a male answering no are two very different options
Also, I'd be shocked if anyone was willing to answer such a personal question in front of a bunch of random people on the internet
@DrMcMoylex it's anonymous
@MarcusAndrews after you round do you need to do anything or is that the answer
that's just the answer
the integer representation of a / b rounded (not truncated)
my shortest approach right now is


p (1.0*a/b).round
21:15
you could try the string format operator %
may not even need the 0
puts'%.f'%(1.0*6/7)
puts (1.0*6/7).round
A byte's a byte.
Useless fact of the day: There are currently 8888 questions on main.
@Laikoni More useless fact -- I was betting with myself whether I'd hit 20k or main would reach 8888 first. I lost.
@AdmBorkBork You got 20k a couple of hours ago, the latest question was asked 30 minutes ago. Although, you had to both win and lose :P
21:24
Right. I had bet with myself that main would hit 8888 before I hit 20k.
Next goal: Beating DJ to Socratic.
@AdmBorkBork Good luck. I still don't have Curious :P
@HyperNeutrino Does that work with p always?
*vs puts
@AdmBorkBork Good luck :P
@DrMcMoylex Why is your parent site English Language?
because that's where he's called "DrMcMoylex" I think...and that's ELL btw
21:27
@DrMcMoylex Pshaw, easy-peasy lemon squeezy. You've been stuck at 96 for like forever.
@MarcusAndrews I don't know Ruby :P
how about this challenge: given a number, sum the even digits
Anonymous
@MarcusAndrews lambda s:sum(map(int,s[::2])) (takes input as a string)
sorry, by even digits I mean the even-valued digits
e.g. 24556 -> 2+4+6
Anonymous
Oh
21:31
@MarcusAndrews PowerShell, 40 bytes -- ([char[]]"$args"|?{!($_%2)})-join'+'|iex Try it online!
Anonymous
lambda s:sum(int(x)for x in s if int(x)%2<1)
5 bytes in Jelly: <digit><bit><filter (2 bytes><sum> (getting actual commands)
lambda s:sum(int(i)for i in s if-~int(i)%2)
Anonymous
f=lambda n:n and-~(n%10)%2+f(n//10)or 0
Anonymous
Except I messed that up
21:33
@Mego whoops :p that would count the odd digits :p
Jelly, 5 bytes: DḂÐḟS
I think it's also longer (I'm also counting input/printing)
trying ruby too
as I think it's prob. shorter for this
what server are you golfing in btw?
f=lambda n:n and-~n%2*(n%10)+f(n//10) works I think
or use python 2
f=lambda n:n and-~n%2*(n%10)+f(n/10)
21:38
sure :P
f=n=>n?-~n%2*(n%10)+f(n//10):0 should work for Proton
omgwat something in Proton actually works? incredible!
I think you can also remove the ()
f=lambda n:n and-~n%2*n%10+f(n/10)
but it's still the same size as the original XD
@MarcusAndrews huh
what is the "original"
python 3
s=input()
print(sum(int(i)for i in s if-~int(i)%2))

vs

python 2
f=lambda n:n and-~n%2*n%10+f(n/10)
print f(input())
both 52 char
print(sum(int(i)for i in input()if-~int(i)%2))

47
Anonymous
@MarcusAndrews The first one should be print(sum(int(i)for i in input()if-~int(i)%2)) for a full program
Anonymous
Ninja'd
21:42
@MarcusAndrews that way you can do 46 in python 2
print sum(int(i)for i in input()if-~int(i)%2)
Anonymous
I've been trying to come up with a clever exec solution, but I think it would be longer than the sum method
print sum(-~int(i)%2*int(i)for i in input())
(45)
The -~ thing is a +1 trick right?
21:44
yes
is there a - trick by chance?
-~ for +1 and ~- for -1 because that way you can avoid brackets
@MarcusAndrews huh? isn't it just -?
21:45
I meant a (n-1) trick
(sorry I wasn't being precise)
then as hyper said above, ~-
n-~n is n*2+1 or n+n+1
note that ~x == -(x + 1) == -x - 1
one of these days i've got to learn this two's complement stuff
Yay someone talks about bitwise :D
21:46
just take the bits and flip them all
Why does ~ negate the number if it flips the bits?
so -~= = --(x + 1) == x + 1
like say I have the number x=7, or 111 in binary. Then ~x would be 000 and then taking the negative of that I believe is adding an extra bit to the start, making it 1000 or 8
(I'm prob. totally wrong on that tbh)
actually almost certain that's wrong, it shouldn't make it 0
Anonymous
Best I have with exec is 50: a=0;n=input();exec"a+=-~n%2*n%10;n/=10;"*n;print a
@Mego For what?
Anonymous
21:50
@MarcusAndrews 7 is 0111 (implied sign bit for two's complement). ~7 is 1000, which is -8.
Leading ones instead of leading zeros basically
Does ~ always go one extra bit beyond the most significant bit?
and if I have 1000 as binary how does it know if I mean 8 or -8?
@cairdcoinheringaahing first xmas add in greece: november 11
Anonymous
@MarcusAndrews Yes and no. floor(log2(7)) = 3, but you need an extra bit for a sign in two's complement, so 7 is 4 bits: 0111.
Yay none here yet (Xmas ads)! \o/
21:51
i guess that's what I never quite understood about how signed and unsigned handle things -- I guess it's in the implementation of the data type, but then when dealing with python, I'm not sureyet
Anonymous
@MarcusAndrews Because the leading bit is the sign bit
@EriktheOutgolfer The John Lewis Christmas ad came out last week, which is kinda the indicator that it's "Christmas" time
so if I were dealing with a signed data type then the MSB is always the sign bit?
and if unsigned data type then the whole thing is just implicitly positive and we get another magnitude of 2
python doesn't have "unsigned"
Anonymous
I think your confusion stems from the facts that Python (mostly) hides the yucky bitwise mechanics from you, that Python seamlessly shifts from fixed-width ints to arbitrary-width ints, and that Python ignores leading zeroes but still makes the sign bit significant, since there are no unsigned ints.
Anonymous
21:53
@MarcusAndrews Basically, yes. That's how it works in languages close to the metal, like C.
python has arbitrary precision in both directions
right
I assume python is inherently "signed" (to whatever extent the definition applies)
Anonymous
In two's complement in C, int8_t has the range [-2**7, 2**7-1]. uint8_t has the range [0, 2**8-1].
I have 45: print sum(int(f)for f in input()if~int(f)%2)
Anonymous
@MarcusAndrews Yes - all Python ints are represented using signed two's complement, so you have to account for the sign bit when doing bitwise manipulation.
Anonymous
21:55
Nvm I see the diff
Yeah slightly different then
Anonymous
Yeah, the -~ isn't really necessary, since x%2 is always 0 or 1 - just straight up flipping is sufficient
that can get to 44 with mine then
bytes...
21:56
print sum(~int(i)%2*int(i)for i in input())
Anonymous
And 49 with exec
I just ported Erik's to print sum(~int(f)%2*int(f)for f in input()) (but now it's identical)
Anonymous
On a completely unrelated note, we don't seem to have a challenge just for finding the eigenvalues (with multiplicity) of a square matrix

« first day (2483 days earlier)      last day (2657 days later) »