« first day (2029 days earlier)      last day (2830 days later) » 

6:02 PM
What the heck? > and == have higher precedence than &, ^ and | in C.
Somehow, I never knew this. @_@
 
That is strange
why C
 
Or is that “lower precedence”? Either way, I mean the surprising one
x & 1 == 0 means x & (1 == 0). Strange indeed
 
The surprising would be that the bitwise is done after comparison, which is higher precedence
 
I always mix those two up, somehow
 
@Lynn What the hell?
 
6:06 PM
But << and >> have higher precedence than > and ==
What..
 
Just use parentheses
 
Why do the bitwise ops not even have the same precedence?
 
< and == even have different precendence, haha
< <= > >= coming before == !=
 
This is why I avoid using C.
Oh, it's still like that in C++ apparently
 
0
Q: Hiding elements with CSS only

snowfinch27In the following markup without changing it or using JS, implement the behavior to show only the ul element of div which name is clicked in the first ul (before div). Name is content of li in top ul and it matches the content of the first li in ul you want to show. Elements that have {content} ar...

 
6:10 PM
every language has weird operator precendence
@NewMainPosts I don't think is off topic
 
haha, ruby. this error message is gold. (hint: the variable is declared later.)
2048.rb:155:in `<main>': undefined local variable or method `objective' for main:Object (NameError)
Did you mean?  objective
 
@NathanMerrill PowerShell's precedence makes sense to me ...
 
likely because you've used it :)
 
@NathanMerrill BF's operator precedence makes total sense!
 
APL’s—damn, same joke.
 
6:22 PM
Not as good as PHP Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM
 
APL actually has operators though. They just all have the same precedence!
 
@Lynn I like this one better XD for that ^ reason
 
0
Q: Collecting Candies problem?

KBMStatement Krishna loves candies a lot, so whenever he gets them, he stores them so that he can eat them later whenever he wants to. He has recently received N boxes of candies each containing Ci candies where Ci represents the total number of candies in the ith box. Krishna wants to store them...

 
@ConorO'Brien lol
 
Also any stack-based language's precedence...
 
6:26 PM
From Wikipedia: "In PHP, the scope resolution operator is also called Paamayim Nekudotayim (Hebrew: פעמיים נקודתיים‎, pronounced [paʔaˈmajim nəkudoˈtajim]), which means "twice colon" or "double colon" in Hebrew" -> Facing the fact that 99,9% of all dev's won't speak Hebrew very well, I must commit: I love Objective-C. And now I know why. — openfrog Dec 27 '09 at 14:19
Yeah, I know it's weird.
 
my new language
 
that's bs ;)
 
6:29 PM
@Dennis That "Copy Snippet" thing is really cool
 
Ouch, reading exchanges between xnor and xsot is confusing.
 
where did you see this?
 
1
A: Output "Fit" numbers

xnorPython 2, 36 bytes f=lambda n:n and f(n/2)<<(n%4>0)|n%2 A direct recursive implementation with no base conversion built-ins or string operations. Less golfed: f=lambda n:n and[f(n/2),n%2+2*f(n/2)][n%4>0] When n is a multiple of 4, it ends in two 0's in binary, so we cut one by floor-divid...

 
They should change their name to xsot - not xnor
 
6:47 PM
And xnor - not xsot
 
Then we'd be back where we started
 
:D
 
looking at Anarchy golf, xsot probably had their name before i did
 
7:08 PM
̩
huh invisible space on my compose key
 
-.- running my KoTH controller from a .jar doesn't work
because I use the System compiler
which doesn't exist on the JRE
only the JDK
 
oh no it's a COMBINING VERTICAL LINE BELOW
btw this character borked vim
 
Have you tried using a computer? I find jars are better for pickles and jams. ;-)
 
ಠ¯ಠ
 
7:10 PM
But seriously, the JDK and JRE have different compilers?
 
the JRE doesn't have a compiler in it
 
Oh, right, duh.
 
I'm trying to compile a .java file at runtime
which likely means that I'll have to call javac
instead of using the appropriate libraries
 
7:21 PM
If you're looking to evaluate code you should write this in Groovy
 
groovy can evaluate code???????????????
this new 'Copy snippet' thing on TIO is neat
 
@quartata I'm literally wanting to compile and include files
 
CMC: Square peg in a round hole. Given a positive [float] as input, r, output (the area of a circle with radius r) - (the area of a square with sides 2r)
Output within 3 points of precision
 
...that's a round peg in a square hole
 
/handwave Whatever
 
7:25 PM
you above formula is basically (pi-4)*r^2, which is always negative
 
Actually, that might be a neat challenge. Given a circle's radius r and a square's side length s, output a truthy whether the square peg will fit in the round hole.
 
JS: r=>(Math.PI-4)*Math.pow(r,2)
 
assuming each of the 4 points in the square touch the circle
r*sqrt(2) is the maximum for s
 
Shh - don't give it away
:p
 
CJam, 8 bytes: rd2#4P-*
(does square - circle)
(because that gives a positive number)
 
7:32 PM
Jon Skeet is coming up on 888,888 reputation!
I bet he's the first user to hit 1M in a year or two.
 
no. Jon Skeet dont hit 1M rep. 1M rep will hit Jon Skeet.
 
I wonder if he can get it to land exactly on 1m
 
Probably not, he gets so many upvotes on his old answers
Would be hard to control it
 
> 887,817 reputation
omg
 
7:36 PM
the only day when he dont hit the 200 rep cap he hit 199 rep
 
yeah, the only way to catch up is to get tons of user to bounty you
 
If I have a tuple, but it's got three elements, is it still called a tuple?
 
but you manage to do that, expect some moderation attention
 
OK, yeah, it'd just be a 3-tuple
 
7:38 PM
someone voted to reopen this wtf
 
I don't think that "tuple" implies 2
@TùxCräftîñg its almost on topic
 
a tuple is a group of n elements
@NathanMerrill it need a objective winning criterion
 
Like quintuple, sextuple, etc
 
in french a tuple is named a n-uplet
 
Or is it pentuple?
I don't actually know the words ;_;
 
7:40 PM
@TùxCräftîñg right, but for ` that's pretty much always first posted
 
it's very unfair as winning criterion
 
@BusinessCat quin
 
that's how programming puzzles work (most of the time)
we've done it before
 
That's how almost the whole of Puzzling SE works
 
@NathanMerrill As far as I know, no. The tag doesn't even have a wiki. — Dennis ♦ 1 hour ago
 
7:41 PM
@TùxCräftîñg I've obviously read that
which is why its "almost" on topic
I personally think that first-posted is implied (because its always how we've done it, and it makes the most sense)
 
> viewed 42 times
 
I'm downloading QB64 for the next answer and am amazed
They managed to use 400 MB in their re-creation of an MS-DOS app.
 
7:57 PM
lol, those two answers are almost safe
 
67
Q: Can you outgolf me? (Cops section)

AdnanCops section The robbers section can be found here. Thanks to FryAmTheEggman, Peter Taylor, Nathan Merrill, xnor, Dennis, Laikoni and Mego for their contributions. Challenge Your task is to write 2 different programs (full programs/functions/etc.) in the same language and the same version (...

3rd and 4th answer
 
@Maltysen Sent you the thing.
 
@mınxomaτ cool
 
@Sherlock9 Got your info, thx
@EᴀsᴛᴇʀʟʏIʀᴋ I need the year, not the day :-)
 
8:08 PM
@NathanMerrill Qbasic and J?
 
nice
@mınxomaτ >_> fixed, sent another email
 
(y)
 
Too young? :D
 
8:10 PM
oh, TIL
@mınxomaτ ?
 
To remember MSN
 
i thought it was well known in TNB i'm a minor
@mınxomaτ yes
definitely too young
 
AFAIK (y) also converts to a thumb on facebook. Dunno
 
Skype too
 
not for us who have that emoji turned off on skype
 
8:12 PM
Lol the other definitions on urban dict ...
 
> "Bro can I come get some draw now? (y)"
> "yeh sure gg, got some piff amnesia dere (y)"
WTF England.
 
@mınxomaτ Out of curiosity, why do you need to know age/birthday for the podcast?
 
@DJMcMayhem I just need to know who I need to send the parental consent form, too.
 
8:16 PM
Oh, OK
 
Ignore the above grammar butchering, I'm on mobile.
 
New sandbox post incoming
 
Finally finished my stable archlinux image. Going to publish to docker soon. So WSL users can now use a sane distro instead of ubuntu.
 
Woah. So WSL for arch basically?
 
0
A: Sandbox for Proposed Challenges

TimmyDSquare pegs in round holes code-golf geometry Does a square peg fit through a round hole? Let's find out ... Input Two 3-tuples, describing a circle and a square on the Cartesian coordinate plane. They're represented here by the form (x, y, r) and (x, y, s). For both tuples, x and y are floa...

 
8:26 PM
The other way around. Without any ubuntu overhead and without any MS auto-updating crap
Also, full stable support for all GUI apps no matter how complex.
 
Where can I find info about the podcast?
 
Ignore the numbers, focus on the idea :D
 
Anonymous
8:50 PM
@LeakyNun n (random uniform in [0,10]) random uniform numbers in [0,10]?
 
Anonymous
@LeakyNun Same byte count, all ASCII: `4PJ`4PJ`n
 
@Doorknob Mind if I ship xscast by default in my WSL arch image?
 
@mınxomaτ Go for it :D
 
Nice.
 
xscast?
 
Ooooh!
This is exactly something I've been looking for. °ヮ°
 
Anonymous
@mınxomaτ That's really neat
 
Xscast? What's that? It sounds like a mkcast rip off
 
@DJMcMayhem lol
 
Anonymous
8:59 PM
The hardcore Linux people might gnash their teeth a bit because ffmpeg is required
 
arch is for professional teeth gnashers
4
 
Anonymous
I only have a beak. Does that count?
 
Can you gnash it?
 
Sure. Lasts longer :D
 
Anonymous
@DJMcMayhem Kinda? It's awkward to do without a trout, though.
 
9:05 PM
penguins eat trout?
 
9:19 PM
Depends on if the penguin lives near freshwater
they'll eat any fish I presume
 
0
A: Sandbox for Proposed Challenges

Eamon OliveFigure Out the Android Lock Pattern Lets say you saw your friend enter his or her password into their Android phone. You don't remember how they made the pattern but you remember what the pattern looks like. Being the concerned friend that you are you want to know how secure their password is....

 
Anonymous
I think my cat has issues. Her preferred way of getting my attention is to smack her head on the arm of my chair.
 
@Doorknob Just noticed that you have your new chat server up on GH. Do you have an instance running?
 
@Mego Uh-oh, like head pressing?
Like, is she holding her head against the chair or is she just butting it with her head?
 
Anonymous
9:29 PM
@quartata Just butting it and meowing
 
Oh, that's normal.
This is one of those moments by the way:
(except left panel not right)
 
Anonymous
@quartata I suspect it may be a self-reinforcing condition. After the first few smacks, she no longer has the memory capacity to remember "ow"
 
Bunting is a form of animal behavior, often found in cats, in which the animal butts or rubs their head against other things, including people. It is generally considered to be a form of territorial scent-marking behavior, where the cat rubs the scent glands on their cheeks and forehead on the object being marked. Bunting is a normal animal behavior, and should be distinguished from head pressing, which is abnormal and typically a sign of illness. == References == == See also == Cat communication...
 
I just outgolfed Jelly with CJam. Not sure how I feel about that...
 
@Mego that's fairly normal, 2 out of 3 of my cats do that.
@Dennis o_O link to both?
 
Anonymous
9:31 PM
@Dennis Shame? (ding)
 
0
A: Implement this key cipher

DennisCJam, 11 bytes Nq{Amr_o+}/ Try it online!

 
Anonymous
@quartata Yep, I know cats :P I was making a joke
 
@Dennis The little Jelly I've learned tells me that any time you have to use a register something's wrong
 
@quartata Not right now. I've tested it with friends on my Pi, but I don't think I'm ready to open it up to the wrath of TNB just yet.
 
@Doorknob Wise choice
 
9:33 PM
@quartata Basically. Also, not having character arithmetic really hurts sometimes.
 
'Tis a shame we seem to have to deface every new project we encounter
 
@Dennis well I think that's being able to add ascii codes
 
@Dennis Ah, true. Nice perk of CJam there
 
ah ninjad
 
Anonymous
@quartata Deface? Don't you mean load test?
 
9:34 PM
@Mego No, I think deface is the right word.
Demolish, obliterate, vandalize, blemish, deform
 
@quartata Thanks for mentioning the register. That and the relaxed output format just saved me 3 bytes.
 
Uhhh, no problem
 
And Jelly is #1 again. </shame>
 
Oh hey, is new?
I didn't remember Jelly have explicit print
 
It's not new. Ȯ, , and have existed for quite some time.
is the newer than the other two though.
 
9:40 PM
What does it do?
 
magic
 
5
A: Golf you a quine for great good!

DennisJelly, 3 bytes ”ṘṘ Try it online! Verification $ echo $LANG en_US $ xxd -g 1 quine.jelly 0000000: ff cc cc ... $ ./jelly f quine.jelly | xxd -g 1 0000000: ff cc cc ... How it works ”ṘṘ Main link. No input. ...

That's the shortest non-cheating quine I know.
 
Ah, so equivalent to ṾȮ?
It's missing from the atoms list, by the way
 
Not quite. The return value is the original argument, not its string representation. In a way, it does ṾȮV.
 
Anonymous
9:48 PM
I finally got around to adding test cases to this:
 
Anonymous
0
A: Sandbox for Proposed Challenges

MegoStaggered Starts In races in which racers go around at least one turn of a curved track, the starting positions for each racer are staggered, so that each racer travels the same distance around the track (otherwise, the racer in the innermost lane would have a huge advantage). Given the lengths...

 
@Dennis *non cheating, non trivial quine
 
@quartata Added.
 
My terminal just went crazy with encoding, and it's beautiful
[␌├°-21528@␋␌␊␌├°-⎽␤␊┌┌-2016 /␤⎺└␊/␍␊└⎺]$ °␍│°␤±␌␤┴┘␉┼┐└┌␍│°␌±┴┼
 
it looks like a dance
 
9:56 PM
"This is a sentence" -> T␤␋⎽ ␋⎽ ▒ ⎽␊┼├␊┼␌␊.
 
±␤┘┤├␤±°␌°␤≤┘┘┤␤≤␉±├┴°␌␍°┴±␤┘┼
 
0
Q: The Letter A without A

ColdGolfYour task is to print the letter "A" alone, without anything else, except any form of trailing newlines if you cannot avoid them. Both the lowercase and uppercase versions are acceptable. However, you must not use any of the below characters in your code: A, whether uppercase or lowercase. U,...

 
M▒␌B⎺⎺┐-A␋⎼:U┼␋├␊␍ S├▒├␊⎽ C⎺└⎻┤├␋┼± O┌≤└⎻␋▒␍ ┘▒└␊⎽$ HALP ⎽⎺ └␊␉⎺␍≤ ␤␊┌⎻ HALP ⎻┌≥!! ⎽␊┼␍ ␤␊┌⎻ ^^^ DEATH ±┘⎽┘°±┴┐°␍ TON≤ ├␤␊ ONY
I cated a binary file. Usually it doesn't affect the terminal, not today though...
and carried out from remote z shell onto local bash
 
Just close it and open it
Or reset
 
10:08 PM
@quartata got multiple tabs :)
looks so weird... s maps to _
One time Bell Labs put a giant (ten thousand chars) copyright clause on an empty file.
I just saw this on my term:
panic: permission denied
from heroku. What are you doing heroku!?!?
 
...could one call this topic whiplash? Analogous to mood whiplash, but with topics. :P
 
@El'endiaStarman huh?
@El'endiaStarman Are you receiving?
 
In your six messages prior to my previous message, there are three or four distinct topics, with no transitions whatsoever between them,
 
creating a language is too hard :/
 
@El'endiaStarman look deep into my username
what do you see?
and yes
 
10:21 PM
Does anyone know how similar is Jelly to J?
If I read Jelly source code, will I be able to easily use J?
 
@feersum did you say that because they start with the same letter?
 
CSS and C are alike too
3
 
@feersum They are both tacit languages
 
@ReleasingHeliumNuclei both use braces. css is c confirmed
 
Random question out of nowhere time: Who here's on a linux/bsd flavor?
 
10:30 PM
me
 
Wanted to know how to squash the current arch rootfs. Got this >.> ...
 
Ubuntu Studio here
@feersum Similar in concept, different in actual mechanics. Chains are parsed very differently
J is also significantly easier to learn so
 
Is J really easier to learn?
 
Yes
 
10:31 PM
I've tried looking at a bit in the past and the documentation was terrible.
 
There are only 2 rules for parsing chains you need to know
 
Much more gleeful obscurantism than useful information.
 
Jelly has... I don't even know
 
Jelly at least has short and not nearly as obfuscasted source code.
 
@feersum Did you read the official J primer?
@feersum please don't make me laugh
Oh, you mean the interpreter
Yeah, that's true...
 
10:33 PM
@quartata Probably? I don't know.
I recall some introductory material which only showed you some wimp modes.
Like for loops or the thing where you make a function with a string with variables x, y.
It gave no hint about the parsing.
 
@quartata That's just a collection of random links?
 
@feersum easy to learn, harder to master, but not difficult.
 
@feersum Hit the >> to progress
It's a full book
 
10:36 PM
Although their website appears to be having some problems right now...
 
@quartata really? not for me
 
@ConorO'Brien ahem
 
yes, I saw that.
 
Just thought I'd respond to this.
This is probably the shortest BF submission possible. — Conor O'Brien 2 mins ago
 
Yes, thank you. I do quite get that I'm wrong.
>_<
 
10:40 PM
get rekt
 
oh hush you
 
probably != provenly
 
Question: does our new "zero-tolerance" for invalid answers apply to old answers (answers before that policy was created)?
 
10:47 PM
Depends on whether they're violating an old or a new rule.
 
@ReleasingHeliumNuclei does it compile to C?
@Dennis violating a rule that existed at time of posting
 
@Downgoat it used to be, not anymore
 
@Downgoat If the answer was invalid when it was posted but just got left alone, it's subject to removal.
 
@ReleasingHeliumNuclei is this still needed then?
@Dennis ok will flag then
 
@Downgoat no, thx
 
10:50 PM
I ran out of updoots ;_;
 
10 mins ago, by Releasing Helium Nuclei
https://github.com/betseg/bs/blob/master/bshello.bs how's my lang
 
Hello!
 
wat. when i run gcc on mac it says clang
@mac ;_; Y U LIE TO ME
 
If you want to administer a coding quiz, Programming Puzzles & Code GolfWon't 5 hours ago
might want to send in the hitsquad there
 
10:52 PM
@Downgoat ls -l $(which gcc)
 
The Nineteenth byte. That's an idea for a challenge! On it now! Any ideas?
 
probably symlink
 
@ReleasingHeliumNuclei yeah its symlinked to clang. i did a file
wait no its not symlink
wat
 
My next challenge will indeed be titled the ninenteeth byte or similar...
Actually, the Nth byte maybe.
 

« first day (2029 days earlier)      last day (2830 days later) »