« first day (2186 days earlier)      last day (2651 days later) » 

8:01 PM
What would be a good alternative for - for either negation or subtraction if I don't want to use the same symbol for both in a language?
 
@BusinessCat You could use ¬ for one. Probably the unary function, because it's not symmetrical.
I'd suggest ~, but that's often bitwise negation.
 
isn't logical not usually just !
 
I meant arithmetic negation, like -x
 
Anonymous
J uses _
 
_ is probably the best but right now I'm using it as string concatenation
But I could change that
 
8:06 PM
@GabrielBenamy hey know there is a button "edit" and/or add a comment on your post? (just kidding, but you could've had a reaction to my comment on this on ;) )
 
> this on ;)
I don't know what that means...
 
@Dada :P I've been thinking about it for a while but it involves reworking my explanation and I don't have a whole lot of time today >_< Maybe when I wake up from my nap after I get home.
I do appreciate the tips though !!
 
@Mego Is that for negation or subtraction?
 
@wiz try this out, tell me what you think
 
Anonymous
@BusinessCat Negation
 
Anonymous
8:08 PM
-5 in J is _5
 
@TrojanByAccident You should also add a check to see if any of the ones it generates are valid urls
 
Anonymous
But 5-4 is exactly that: 5-4
 
as in, resolve to an IP
 
@GabrielBenamy I'll look into that
 
Huhu, I understand, you already put a lot of work in the explanation. Feel free to update the code and let the explanation of the old one. No worries in any case, I was just wondering what you were doing ;)
 
8:10 PM
Anyone know why worldbuilding's background is weird?
 
@muddyfish Weird how?
 
@muddyfish Ouch.
 
it has a load of grey on the side
 
Failed site redesign?
 
8:11 PM
@wizzwizz4 I don't know
I've only noticed just now
 
Probably because the white background is like 5% transparent
 
@muddyfish Oh...I thought you meant the dark grey dotted lines...
I was about to say that I couldn't see them.
 
@wizzwizz4 no, that was me highlighting the areas
 
The outline looks like it's going around the robot in the background art
 
@muddyfish I noticed the GIMP toolbox. Well done for using GIMP! :-)
 
8:15 PM
@wizzwizz4 I only use GIMP for image editing apart from good old MS paint on occasion
 
@muddyfish Oh. I thought you used it for website browsing.
GIMP and telnet are all you need to understand the internet.
3
 
@wizzwizz4 I use it for reading PDFs?
 
@wizzwizz4 I attach a packet listener to my modem and have a flashing light representing the binary signal. I shine my own laser pointer back at it to transmit messages.
 
@GabrielBenamy Show-off. Just attach a button.
 
@GabrielBenamy That is... brilliant.
 
8:17 PM
@GabrielBenamy I use butterflies
 
I use atmospheric interference
 
Of course Emacs has a butterfly command
 
Oh, yeah. C-M-Butterfly.
 
I just had an idea.
Someone should make a computer that uses @Gab's idea
 
@TrojanByAccident I think it's called "fiber optics"
 
8:20 PM
@GabrielBenamy ?
 
Well I landed on _ for negation. Thanks for the suggestions
 
IIUC fiber optics is basically my suggestion, just better-implemented
 
@GabrielBenamy Flashing light travelling down cable to convert stuff between other stuff and then sending stuff to things... Doesn't sound well-implemented to me.
 
@BusinessCat Isn't negation generally ~?
 
Then again, my internet is now a usable speed thanks to it, so what do I know?
 
Anonymous
8:21 PM
@BusinessCat Glad to help
 
@Pavel Bitwise is. I'm talking about multiplying by -1.
 
Why not -?
 
in unrelated news, is the domain name a.com really unowned or do they just not have an http listener
 
Which for ambiguity reasons, I don't want to be the same symbol as subtraction
 
I mean making a computer that plugs that packet listener with a blinking light into the modem, then uses a light sensor to read the binary flashes, then displays that on a monitor
 
Anonymous
8:23 PM
@GabrielBenamy A DNS lookup would answer that for you
 
@GabrielBenamy Do 1-letter .coms even exist? I thought 2 characters was minimum.
 
Voting for Best of PPCG 2016 closes in 3.5 hours, if I did my timezone conversion correctly.
 
@PhiNotPi idk about .coms but I know t.co is a website
 
Last chance!
 
8:24 PM
@Pavel You could've just counted.
8 hours ago, by Martin Ender
Friendly reminder that voting for the Best Of will end in a bit over 11 hours.
 
@PhiNotPi q.com
 
Anonymous
@Pavel Correct
 
I was asleep 8 hours ago.
 
@TrojanByAccident It expires on december 8th. What are the chances I can buy it before they renew it?
 
@Pavel Look at the starboard! >>>>>>>>
 
8:25 PM
z.com too
 
I was myself 8 hours ago
 
@wizzwizz4 Mobile has no starboard
 
I was [FILE_NOT_FOUND] 8 hours ago.
@Pavel Wha...
*faints*
 
@wizzwizz4 I am always unintelligible
 
@wizzwizz4 I'm on my phone
 
8:26 PM
I was tired 8 hours ago, because I'm always tired.
 
The starboard doesn't appear
 
@GabrielBenamy From what I can see, last year, they updated it December 9th. If you are quick, you should be able to buy it on the 8th.
 
@Pavel Get off your phone! You'll break it!
 
I'm gonna own the best url
 
Which one?
 
8:27 PM
@TrojanByAccident That's not how domain renewal works.
 
@mınxomaτ Then I'm confused.
It expires on the 8th, though, so you should be able to get it if you're quick @Gab
 
@mınxomaτ Why?
 
It'll automatically renew if the owner has it set up that way
 
It will expire on the 8th, and instantly be re-registered.
 
8:28 PM
Not only that.
 
Also, it's reserved.
 
You guys are no fun.
 
I looked up info about it last year, wondering if I could make a bunch of money by doing that.
 
Domains don't expire. If they are not automatically renewed, there are several grace periods and conditions that apply. It can take many months, up to a few years, for a domain to be able to be re-registered.
 
8:29 PM
It's not as feasible as it first sounds.
 
@mınxomaτ and I think after that they're auctioned rather than sold
 
@Poke Usually.
 
@Poke After final expiration, the registrar can do whatever they want.
@wizzwizz4 Actually, not.
 
@mınxomaτ I've seen quite a few domain auctions.
 
You can send whoever registered me.me a letter and some money and have the best URL that way.
 
8:31 PM
@wizzwizz4 That doesn't really matter.
 
@mınxomaτ Ok... -.(o.o).-
 
For domains to be auctioned, they either need to be a premium reserved name or "bought" by the registrar after final expiration. But that's a stupid move for non-premium domains, because the registrar just lost money on not freeing up this domain to be sold again.
 
Anonymous
@Pavel Maybe think before you post noise next time, instead of posting it, thinking, and deleting it?
 
noise next time
 
Here's a nice writeup, specific to GoDaddy domains: godaddy.com/help/what-happens-after-domain-names-expire-6700
 
Anonymous
8:34 PM
@TrojanByAccident You're not as funny as you think you are.
 
@TrojanByAccident We had a really big noise problem before. Please don't encourage it.
 
@Mego Your point is?
 
Anonymous
@TrojanByAccident See the message from the person in blue :)
 
@wizzwizz4 I know, sorry.
 
@Sp3000 I know I'm a little bit late, but congrats on hitting 50k! :D
 
8:36 PM
Sp3000 has 50k? Wow, I'm missing lots...
@Sp3000 Congratulations! :-)
 
Does anyone have a million rep?
 
@Pavel Not yet
 
Anonymous
There's a convenient page for checking top users by rep
 
@Mego Oh, neat!
*upvotes Martin Ender*
 
Dennis is getting close to beating Martin
 
wat
8:44 PM
remember the Ender's Game KOTH?
 
No, actually
And searching for it isn't helping
 
Yay, I still have a higher voted answer than Jon!
Oh course, he's only posted one
:P
 
wat
@MistahFiggins wat
 
@MistahFiggins Are we talking about different Jons here?
 
wat
27
A: Fibonacci function or sequence

Jon SkeetC# 4, 58 bytes Stream (69; 65 if weakly typed to IEnumerable) (Assuming a using directive for System.Collections.Generic.) IEnumerable<int>F(){int c=0,n=1;for(;;){yield return c;n+=c;c=n-c;}} Single value (58) int F(uint n,int x=0,int y=1){return n<1?x:F(n-1,y,x+y);}

Jon Skeet posted an answer on PPCG
 
8:52 PM
Oh, interesting!
 
Please. I'll start trashing messages if you Jon Skeet any more.
 
Anonymous
Also the word is "overridden"
 
@Mego Could you stop quoting yourself?
@Mego You obviously knew what I meant
 
Just like El'endia Starman would have done. :'-( *sniff*
 
Anonymous
@TrojanByAccident I'll stop quoting myself once the meaning of what I said sinks in
3
 
wat
9:03 PM
@wizzwizz4 ;(
 
Anonymous
@TrojanByAccident That was to educate you
 
@DJMcMayhem Thanks :) yeah I've been pretty idle on the main site lately, so it seems like I hit 50k around the start of the month from idle upvotes :P
 
@wizzwizz4 El'endia would have handed out suspensions by now.
 
wat
why did (s|)he leave us
 
@Mego It's rather condescending that you think I need to be "educated"
 
9:03 PM
@Pavel El'endia wouldn't have let it get this far.
@TrojanByAccident Everybody does. I do, you do, @Mego does. We should learn whenever we can; that's what this site's all about!
 
@wat s?he I golfed your regex
 
wat
@Pavel thanks
 
Anonymous
@TrojanByAccident Everyone needs more education. Nobody knows everything. It's a sign of immaturity that you think needing more education is a bad thing.
 
 
@wizzwizz4 learning is fine, but trying to force what you think someone else should know onto them is not
 
9:05 PM
@Pavel :P On PPCG
 
@Mego @TrojanByAccident Please "Be Nice", or I'll kick both of you! :-)
 
Anonymous
@wizzwizz4 I'm following that policy.
 
This conversation topic is now over, new conversation topic: politics
 
Anonymous
@Pavel You're not helping
 
I hear Trump is going to invade Iraq.
 
9:06 PM
@Mego To be fair, you didn't have to bring immaturity into it.
@Pavel Please no.
 
Anonymous
@wizzwizz4 I'm not going to argue with you.
 
For a laugh we can all learn together youtube.com/watch?v=zt1fLzL13QE
enjoy
 
@Mego In which case, you win the argument! :-)
 
@Poke YT is blocked, what is it?
 
@orlp Yeah crypto's always been pretty controversial in CnR because of how easily it dominates them - maybe people are just surprised when they're actually solved? Dunno...
 
9:07 PM
 
Can we get back to talking about code?
 
@Pavel Computer corner with Gunter!
 
@wizzwizz4 That's neat!
 
I was once again disappointed by Behringer. This brand is now banned from my possessions.
 
Thanks!
 
9:08 PM
@TrojanByAccident Please.
 
Anonymous
@wizzwizz4 How about instead, you just trash them? There's no value in keeping them around.
 
@Mego Ok.
 
To whoever's spamming stars, please stop :/
 
WizzWizz 4 is here to clear stars, right!
(thx)
 
@Sp3000 whomever*
 
Anonymous
9:10 PM
sigh
 
@Poke As much as I like to be a stickler for grammar - that's one where I've never really learnt the difference :P
 
Alright, back to pleasant conversation.
 
@Sp3000 Always use 'whom' after 'to'
 
@Sp3000 "Who" is a subjective case pronoun while "Whom" is an objective case pronoun. In your sentence there is an implied subject "You" as your sentence is a command. Additionally "whomever" in your sentence is the object of a preposition "to ... <noun>"
 
@Mego → 20 Jon Skeet "jokes" moved to Trash
@Pavel I didn't clear any.
It was somebody else...
But who? :-O *dun dun duuuun*
 
9:20 PM
Pretty sure it was Sp3000
 
...and it is told that despite no longer actively participating in TNB, El'Endia Starman still lurks in this very chatroom to hand out suspensions and clear stars...
@BusinessCat He's not an RO tho
 
s?he is
 
Or his name would be blue
 
No, the name would be italicized
Which it is
 
Oh, why is wizzwizz blue then?
 
9:21 PM
@Pavel blue == mod
 
But... mods have a diamond icon.
 
@Pavel that's a diamond mod
 
That, or diamonds don't appear in chat.
 
To clear things up:
 
@Pavel Actually, it happens that wizz is a diamond mod.
 
9:23 PM
A mod is a mod. In chat they have a blue name, and the diamond shows on main on their site, and also if you click on their name in chat.
 
Blue means chat-diamond.
Italic means room owner.
Both means both.
 
I hate it when I post one perfectly reasonable/serious message and then everyone else turns it into a garbage fest so I get invited to trash like 30 minutes later.
 
@DJMcMayhem I deleted the first one of the trash chain. It might have been reasonable, but you can't have a train without an engine.
Well, you can, but it won't go anywhere except downhill unless it's going really fast.
 
@wizzwizz4 I'm going to design a train with no engine, just for you
 
@TrojanByAccident I'm honoured.
 
9:26 PM
Is that like... a trolleybus?
 
@Pavel You'll have to wait and see.
 
Agh. The perils of working on a SQL task followed by a JavaScript task. I just wrote var hasOption = selectedOptions.length = 0;
 
Would it be an interesting challenge to output the nth digit of pi, as a ?
 
@DJMcMayhem Although I don't worry too much if a stray signal message gets deleted in the middle of a series of deleted noise messages, in that case since it was the very first message there doesn't seem any reason to delete it, or any additional effort to avoid deleting it.
 
tfw you find a static salt
 
9:32 PM
I know it's not that big of a deal. It just bugs me that my messages get lumped in with the annoying ones frequently
 
@Poke wut
 
Anonymous
@wizzwizz4 Incidentally, that's usually what happens
 
Anonymous
@Pavel I think we've had that
 
JS people: why do += and push behave differently?
 
Anonymous
@wizzwizz4 Wrong. Mods that are also room owners don't get italics. See: trichoplax
 
9:34 PM
@DJMcMayhem += is for strings and numbers, push is for arrays
 
@Pavel private static final byte[] SALT = "secret_PasswoRd".getBytes(DEFAULT_CHARSET);
something like that
 
Then why does += on an array work at all?
 
Anonymous
@DJMcMayhem Same reason why += and append behave differently in Python: += concatenates arrays, push/append appends a single item to an array.
 
The longest inactive user in the room is named Bob. Bob is currently in 33 rooms. I'm in a whopping 2 rooms. Does that mean Bob has 33 tabs open in a browser somewhere?
 
@Mego Yeah, and it got closed as a duplicate of a challenge.
 
9:36 PM
Are you freaking kidding me right now? += casts your array into a string
This is why nobody takes JavaScript seriously
 
Anonymous
@DJMcMayhem I'm not sure you understand Javascript. Weird, nonsensical casting is
 
You can't have backwards compatibility like they do and still make everyone happy
 
That's exactly why I don't understand JavaScript
 
@Pavel This one was closed as a duplicate. It's debatable whether it should be considered a duplicate of a code-golf that had happened to have a speed requirement, but even if it's argued that it wasn't a duplicate reopening it would then make yours a duplicate unless there are answers that can give a single specified digit faster than working out digits up to and including.
 
I just never realized how bad it truly is
 
Anonymous
9:37 PM
Just ask yourself, "what's the complete opposite of what I want?" That's going to be what JS does.
 
Math.max() > Math.min()
false
 
@Mego Adding more sarcasm detracts points from your original sarcasm
 
@Poke don't max and min always take two parameters?
 
@Pavel In javascript they take any number
by design
 
Anonymous
9:39 PM
@Rainbolt If I make my sarcasm levels overflow enough, they'll wrap back around to the original levels
 
Math.max()
-Infinity
 
dafuq
That's stupid
That is so stupid
 
> Math.min()
infinity
 
from a conceptual standpoint it's stupid. from an implementation standpoint i get it... but it's still a bit silly
 
Are they even trying?
 
9:40 PM
@Poke Counterintuitive at first glance, but that actually makes a lot of sense... up to a point
 
You realize that you are calling Math.max() and not Integer.MAX_VALUE or whatever the equivalent in js is
 
I suppose they assign -Infinity to some variable x, then iterate over the arguments and compare it to x.
 
I think JavaScript may even be worse than vimscript, which is the worst language I've ever used
 
@Poke @DJMcMayhem I find it messed up when languages don't do that
 
@Sp3000 This is how I approach javascript in general
 
9:41 PM
So "Math.max() > Math.min()"
is like "Is the largest of nothing greater than the smallest of nothing?"
which is already a nonsensical question in the first place
 
@MartinEnder right, because you program and you understand the implementation details.
 
>>> max()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: max expected 1 arguments, got 0
>>>
@MartinEnder ^
 
Anonymous
@DJMcMayhem Exactly. Why the hell does it even allow 0 arguments?
 
why not?
 
I don't see a problem with defining max of an empty set as negative infinity, is what I mean
 
9:42 PM
@Mego likely for functional programming purposes
 
Will people take me posting a question about getting the factors of numbers in terms of 3,69,420?
 
@Mego Every function allows 0 arguments
 
Anonymous
@Poke You forgot the dys
 
Number.MAX_VALUE > Number.MIN_VALUE
true
Works as expected if you use the right numbers
 
Anonymous
@TrojanByAccident But why? That doesn't make any sense, even in a JS context!
 
9:43 PM
MAX_VALUE != max([])
 
@ChristopherPeart Could you give more detail?
 
Rules: don't cheat is a tautology — Luis Mendo 46 secs ago
opps
0
Q: Convert numbers to factors of 420, 69, and 3

Christopher PeartYour program will be given a number. It will have to use some form of STDOUT (or you language equivalent) and print out the factors of that number only using 420, 69, and 3. It does not have to print every way just one. Example Input is 9 Returns 3*3 Or 3+3+3 Rules Don't cheat You must di...

 
Main.java:1: error: no suitable method found for max(no arguments)
class g{public static void main(String[]a){System.out.println(Math.max());}}
                                                                  ^
 
@ChristopherPeart Probably not, unfortunately. We've had a lot of questions which are "get number X using restricted values Y and these basic operations". 3, 69, 420 in particular is pretty arbitrary from a mathematical standpoint.
Woop nvm
 
9:45 PM
They're not arbitrary, they're "funny" (which I disagree)
 
-1
Q: Factor numbers in terms of 3,69,420

Christopher PeartYour program will be given a number. It will have to use some form of STDOUT (or you language equivalent) and print out the factors of that number only using 420, 69, and 3. It does not have to print every way just one. Example Input is 9 Returns 3*3 Or 3+3+3 Rules Don't cheat You must di...

 
> from a mathematical standpoint
 
i also love javascript's typeof
typeof NaN
"number"
 
As opposed to cultural
 
NaN instanceof Number
false
it's great stuff
 
9:47 PM
wat
Is NaN truthy?
 
@Poke Number is like Java and C#'s wrapper classes (e.g., Integer). number (lowercase) is a primitive
 
It is not a number
 
NaN is definitely a number
 
Therefore is can't = 1
and 1 = true
so it is falsy
 
>> null <= 0
true
>> null >= 0
true
>> null == 0
false
 
9:49 PM
@ChristopherPeart Your argument seems to suggest that 2 is falsey
 
@TrojanByAccident 0-null?
 
@ChristopherPeart 2 is truthy
 
It isn't a mathematical concept, so it varies by language
 
Is 0/0 NaN or Infinity?
 
9:50 PM
NaN
 
@Pavel 0
 
Anything else over zero is infinity
 
Hmmm... 0/0*0
 
RIP my ascii art
 
@Rainbolt yeah yeah i get it. it's just silly
 
9:52 PM
nooooo
 
@ChristopherPeart try a code format
 
k
uhhhh how do you do that in the chat
 
Try not posting ASCII art
 
@ChristopherPeart Or try linking externally so we don't lose a page of screen space
 
The ghost of Starman will haunt you forever
 
9:53 PM
Ninja'd :( (You upload your ascii art to some third party website and just post the link here)
 
(hastebin)
 
@ChristopherPeart ctrl+k
@Pavel no, pastebin
 
@Rainbolt It's a good enough point to be worth making twice :)
 
@trichoplax it shortens it
 
9:54 PM
If you try to click "see full message" and the message is deleted at the same time you click on it, you get
jquery.min.js:4 GET chat.stackexchange.com/messages/240/34968380?_=1485208449732 404 (Not Found)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
(anonymous) @ master-chat.js:2
dispatch @ jquery.min.js:3
i @ jquery.min.js:3
the-nineteenth-byte:1 Uncaught (in promise) DOMException: The play() request was interrupted by a call to pause().
 
i guess ignoring 3 people works too
 
I love how the second I join on mobile I get two screen space bombs
 
@Poke I do it all the time
 
You shouldn't
 
@quartata There won't be any more
 
9:55 PM
I swear mine was two lines on my screen
 
Why was I banned
 
@ChristopherPeart ASCII art is generally not liked here.
 
I thought the art would shorten
:Opps
My bad sorry
 
@ChristopherPeart If you want to share art, I'd recommend linking to it in future.
 
@Rainbolt not talking about your post
 
9:56 PM
Good idea
 
@ChristopherPeart Directly after two different people explaining that linking off site saves us losing screen space, you posted a huge, irrelevant ASCII art
 
You were fine
 
It took a while so what I was trying to do didn't work
 
I was refereeing to 2 = falsey
 
9:57 PM
How and why is 2 a falsey value?
 
What language?
 
@Pavel It depends on the language
 
Whether a number is truthy or falsey is an arbitrary language defined concept, so let's not argue about it
 
@Rainbolt this makes sense to me
 

« first day (2186 days earlier)      last day (2651 days later) »