« first day (1833 days earlier)      last day (3308 days later) » 

16:00
I just estimated how many cards we have, with two of us drafting once per week (which is a lowball estimate because some weeks we draft twice and/or win a lot of packs at a tournament). Came out to 9720 cards.
woah
I have like 100?
@Rainbolt I counted mine by the inch. It's a rough estimate, but I think it's somewhere between 10k and 11k.
@Rainbolt 'we'?
My partner and I
We share a collection
100? What can you do with 100 cards? :P
16:01
You can play Commander!
Sorta play until I go back to nethack/minecraft...
We do pack wars at our local store. I buy a pack, store owner buys a pack, we add 15 basic lands (three of each color) and we pack war.
You have to play every card in the pack
Sounds fun, except for the buying packs thing. I have so many cards because I don't want to buy a pack every time I want to play ;)
I have more fun sifting through 2k whites looking for synergy.
@Dennis what exactly do you mean by "command line version"? does it have to be something like $ detour <filename> <args>, or can it be run through another language (e.g. $ python detour.py <filename> <args>)
sorry for the silly questions
I've been thinking of making a cube to play with my group of friends. It makes the "I'm an addict and can't stop buying cards" thing less of an issue =P
That sweet new card smell...
16:16
@Cyoce Either one would be fine. I could run JavaScript with node if extended ES6 support isn't required, but it would still have to read from STDIN (or command line arguments) and print to STDOUT.
@Dennis I could make a version that works in node without too much effort. I would just have to change the IO parts
@Cyoce If you do, I'll add it to TIO.
@Dennis okay.
There are so many stupid answers on SO...
^
And they obsess about speed, not golfiness.
16:30
I mean, some questions have 4 or even more completely unacceptable non-answers that just throw random thoughts and ideas. Most of the accepted answers don't answer the question at all, just what the author thought the question was about. The overall quality is really degrading...
@RikerW Better than CR. They obsess on looks. How shallow is that? :P
lol
@mınxomaτ Yeah, I do agree. And only the very generic questions actually get answers at all.
0
Q: Solution to king kohima problem in python

Ravinder BaidKing Kohima problem: King Kohima has reserved a new exclusive street for his executive class employees where they can build their homes. He has assigned you to plan that street. You have to decide on which plots along the street are new building allowed to be built. In order to this, you fi...

Also, they keep walking across my lawn. I mean, there's a sidewalk right there!
dude, non sequitur?
16:34
Nope.
It's a direct comparison (and slight mockery) of complaining about the quality on SO declining, as opposed to the "good old days". You're old and crotchety, much like a man complaining that kids are on his lawn.
Yay for explaining the joke!
I thought the non sequitur was "There is a sidewalk; therefore people should use it."
Admittedly I read only the last five messages before jumping to that conclusion
Pfft, no. They should get off my lawn and use the sidewalk :P
Are all the syntax highlighting edits here spam edits?
@Geobits Build a sidewalk on your lawn. That'll create a paradox and the trespassers implode.
2
The guy edited like every answer just for that.
16:39
@RikerW Link to the edit please.
@RikerW Nah. It's not hurting anything to add highlighting.
@mınxomaτ edit *s
Huh, I can downvote now. Wooooo =P
16:40
I also approved like 8 of them.
It's nice to have good-looking code on non-golf challenges.
There are differing opinions on doing a lot at once, but no overall "rule": meta.codegolf.stackexchange.com/q/1109/14215
@mınxomaτ Nice one. I just found it funny since I had just mentioned that I couldn't downvote yet when the subject was down(vote|goat)(s|ing)
Then suddenly +20 rep. So yes, it has come to this.
That's 20 downvotes!
Welcome to the club. Use them liberally and judiciously.
16:44
I'm trying to get to 200 rep first, to get the SE-wide rep grant. Then we'll see. ^^
@RikerW Holy unusually specific non-sequitur!
Hmm. I can't log in to urbandictionary. I get a 401 OAuth deleted client :(
wtf is ubuntu suddenly so big. Wasn't it like ... 700MB a year ago? Now over 1GB?!
@mınxomaτ I think the move from CD to DVD might have removed some downwards pressure on the size
And the upwards pressure is relentless, as usual
Wait, a year ago?
@Roujo That is still way too much for a linux distro. It's been a while since I used ubuntu (I use archlinux mainly). I'm not used to so much overhead.
16:51
Maybe not exactly. I don't remember exactly when it was, but definitely in the last couple years.
Well, RIP users with low bandwidth...
I had to stop using my old 1GB flash drive that I had for that sole purpose.
@mınxomaτ Right. I've never used anything but Ubuntu - except for that one time long ago when I tried to boot Slackware and got confused. =P
I really should broaden my horizons, although I guess I don't see a use in it now that I have less free time.
@Roujo When you first get arch, you absolutely hate it. Once it is set up though, you'll never switch back to ubuntu.
@mınxomaτ Why's that? =)
16:54
I lost the urge to OS-hop once I realized that there are far more similarities between them all than differences.
Let's just say arch is the "no bullshit" distro.
It makes you realize what you don't need, and makes things you need easier.
And you learn a lot about linux in general while setting it up.
That sounds nice, do you have a specific example? I'm interested, but it feels pretty abstract so far.
Well, it's small, boots very fast, comes with nothing pre-installed (you have to do everything yourself). It has (IMO) the most intuitive package manager (pacman) and most certainly the most active user-moderated repo system (AUR), which makes it easier to maintain and publish your own packages. I just like that you can be absolutely sure there's nothing on your PC you don't want there. (And it uses sane system management tools like systemd etc.). Just try it and see if it's for you ¯\(◉‿◉)/¯
@Calvin'sHobbies uh thanks, that was a bit too late for me :P
@MartinBüttner Whoa, I just accidentally clicked my 19th byte bookmark never seeing a ping and the latest message is for me :D
17:09
@Dennis how would TIO pass the source code? would that be included in the first command-line argument?
@Calvin'sHobbies Ah yeah, my telepathic skills sometimes freak people out.
@Optimizer I know everything.
@flawr that's not true. Only Alex knows everything, which is why
@Cyoce That would be the easiest option for me, since I could just create a symlink to the interpreter (if it's set as executable and has a shebang). But in any case, I can create a wrapper script for Detour. I had to do that for most of the interpreters I added.
@Dennis and would the command-line argument preserve whitespace and work with newlines?
17:12
@Cyoce ಠ_ಠ (speaking for @Alex since he's not in the room)
@Cyoce That's not true. Alex isn't the only one. Remember, if I ever say I don't know something, it's for your protection. Some things can't be shared.
@Cyoce No, the source code's file name is the default. I can provide the source code as an actual CLA if you want. It would preserve whitespace, but could not contain null bytes.
@Dennis does javascript even support reading files?
17:16
Oh yeah. node. right
also you can of course load files to webpages and such with html + js
Give this guy some love!
I love his idea. The first really innovative answer so far=)
I'm pretty tempted to simply paint the Mona Lisa's face over each cut-out.
You'd get my vote=)
For real, why not? The objective is to fill the patch with something.
How do you pronounce @Cyoce?
17:26
@Calvin'sHobbies sigh-ose
sigh
not ky-os-ee?
@Calvin'sHobbies that's what everyone except Siri thinks.
I get ky-os, koys, see-os-ee, but never si-os
@Calvin'sHobbies not ky-oh-see?
For future references: Dennis is pronounced fish.
@Cyoce All I get is confused.
2
17:32
@Dennis yeah, that's mean what I
カイオス
translate: カイオス
(from Japanese) Caius
translate: Caius
(from English) Caius
Yeah, right. Stop making up words, Bing.
? It completely skipped the o and changed it to a u.
O'Caius?
Sounds Irish.
Google Translate: Kaiosu
17:43
@Dennis Any O'd name will. O'Dennis, O'lendia, O'ptimizer
O'right.
I like Mc better for some. McLendia :D
Just don't go full Mac unless you want Scottish ;)
Come on, McPtimizer sounds just silly.
> for some
Hrmpf, you anticipated my trolling.
17:46
It takes one to know one and all that.
macmınxomaτ
O'Calvin's McHobbies
me Irish cousin
@Rainbolt I love pack wars
@Geobits ಠ'Cᴀʟᴠɪɴ's® Mcsǝıqqoɥ™
17:52
Add that to the list of names I never want to have to type out.
Does anyone actually follow the per-site Twitters?
I had forgotten they were even a thing on SE
Twitter is still around?
Er yes
I'm not much of a follower of social networks but I was under the impression that was the "hippest" one
@quartata I bet everyone in this chatroom sees the posts before long before they get to twitter
Has something supplanted it?
@Calvin'sHobbies pretty much
17:56
@quartata Last time I checked twitter was either people full of themselves or spambots.
Mini-word-challenge: What's the longest understandable sentence you can write that only contains two-letter English words, no word may be used twice. e.g. He is my pa. -> 4 words
@quartata I think I follow StackCodeGolf but I only just remembered that fact after you mentioned it, which I think says something about how useful they are :P
He is no my pa <- easy upgrade
Hi, he is no my pa
@Calvin'sHobbies Hi, He is no my pa or my ma so
17:57
@Geobits need be more grammar
I set up a twitter news bot in 2011 and forgot about it. It has tweeted more than 530,000 tweets since then. I just wonder why it didn't get blocked by now.
My friend wanted to make a linked list in a class to familiarize himself with Python. He's a good programmer all around, just picked linked list a starter project. His code however... let me type it up, I'd like your critique
@quartata Yo, hi, he is no my pa or my ma so
@mınxomaτ hahaha
You said "understandable". I think everyone understood it :P
17:58
@Doorknob so what?
@Calvin'sHobbies "so..."
@quartata It has 1023 followers though ...
so ye
haha that works
Yo, hi, he is no my pa or my ma so ye, ha
No word may be used twice. "my"
17:59
sentence = "um, " + sentence;
um, yo, hi, he is no my pa or ma so ye, ha
class Node:
    def __init__(self,value,prev=None):
        self.value=value
        self.prev=prev
    def printR(self):
        print(self.value)
        if self.prev:
            self.prev.printR()
    def add(self,value):
        if not self.prev:
            self.prev=Node(value)
        else:
            self.prev.add(value)
whitespace
One-space indents? What monstrosity is this?
er um, yo, hi, he is no my pa or ma so ye, ha
18:01
more whitespace
Can you tell what is the matter with this linked list implementation? Besides the whitespace, I was just now typing it up on my computer
@Geobits better than tabs
@quartata no, my pa or ma is an, um, ho, ok?
@Doorknob I can't see how even the most ardent anti-tabber would think it's worse than one-space indents.
better
18:03
The add function gentlemen
is it not working?
It is
But I'd rather not have the if else
whooooah. node has no window.
@Cyoce well duh, it's not attached to a browser
@Sherlock9 why not?
@CᴏɴᴏʀO'Bʀɪᴇɴ is golden angle right?
> Math["\x176"]
< undefined
18:05
I'm just wondering for my own curiosity, why it is needed and why we can't say def add(self, value): self.prev = Node(self.value, self.prev); self.value = value
That doesn't look like it does the same thing.
Does anyone know how to simplify (1+x)/(1-x)?
@GamrCorps you don't
Ah, you know what? Forget it. I am just confusing myself
I suppose you could do -(x+1)/(x-1) if you think it looks nicer
18:06
^
1+2x/(1-x) but that isn't simple
@GamrCorps Assign a value to x. That would simplify it nicely :P
let x = x
@GamrCorps is this for golf or math?
Math, just some challenge problem in my calc book
@Doorknob That's valid Haskell code.
@Zgarb lemme guess what it does
let 2+2=5 in 2+2
> 5
18:09
TIL that there is an encoding called WTF-8. I like it already.
Ok now my friend wants to modify add so that if he calls it on a list, if will add Nodes on each value in the list starting on the left.
Does he need a map?
Also, his words were not modify. His words were "if I call add on the list, will it do (see above)"
@Dennis haha
I'm not sure I understand the question. In linked list implementations I'm used to, there's no real difference between a node and a list.
@Doorknob Either it does nothing, or it goes into an infinite loop the next time you try accessing x.
I mean, in this case: we haves with values 3, 4 then 7 already, 3 at the head. c points to the last node with 7. c.add([11,12,13]) should to the linked list, Nodes with 11, 12, 13
18:14
I don't see it doing that, but I'm not a pythonista.
It looks more like it will add a single node with value [11,12,13].
Well, he did map(c.add, range(10) and that seems to work for him
Fair point
Are you just trying to add each element of the list? map will return another list, is that what you want?
At least, my friend is enjoying Python :') I'm tired and he's had too much coffee
@Calvin'sHobbies Well map will return a list, but c.add will still add the nodes
At this point, I should stop translating for him
but a plain for loop makes more sense
Ah wait, to the Python users, does Python support class inheritance and do Python users use inheritance
@Calvin'sHobbies That's what I said!
Also, he usually uses R and Ruby. For loops are not popular in those parts
18:19
def addList(self, lst):
	for x in lst:
		self.add(x)
I found a cool twitter german news thing:
@OpenNewsDeutsch, Deutschland
Open News - Die neuesten Neuigkeiten aus allen Perspektiven
543k tweets, 1k followers, following 29 users
@Sherlock9 I'd say make list adding a separate function, else you can never have lists as node values
Hmmm... If I have an better answer in a language that has already been submitted, should I comment with my suggestions or post my own?
I’d post a new answer if it takes a radically different approach
18:25
you can post your own, but maybe just comment if nearly the same code
Sometimes I coincidentally write very similar code to an existing answer, in which case I just comment, yeah.
It's a different approach, although I guess there aren't 1001 ways to print all chars from NUL to n. It does use a function instead of a program, though.
@Lynn You seem new here yet you have 11k rep. Did you change your name and avatar recently or have you just been hiding?
Former Mauris?
18:30
Think so
@mınxomaτ Thanks for the summary, I might give it a try for a server I want to put up =)
@Calvin'sHobbies Yep, thank you. I think it was just a one-off question considering he's moved on to asking about operator overload and now, removing the head from the tail of the list
For that last bit, he found that c=c.prev works but doesn't know how to do that in-class. self=self.prev may not work.
> For some reason—I don't really want to know why—you asked about filling a pool.
This is from Sherlock's friend. I wanted to ask if you know how to do Java-style reflection (I think? I don't really use Java that much)

Essentially: Is it possible to make a class, that has a function, that prints out the name of the variable that the instance is under?
18:46
Nnnnno, I don't think that's possible in Python.
[starts up IDLE]
Okay, you can't get the name of the variable, so far as I know.
However, if all you want are unique identifiers, you could use str.
>>> class foo: pass

>>> f = foo()
>>> dir(f)
['__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__']
>>> f.__class__
<class '__main__.foo'>
>>> f.__hash__()
-9223372036851251284
>>> hash(f)
-9223372036851251284
>>> str(f)
'<__main__.foo object at 0x00000000035C7AC8>'
oh god
Check out the Mona Lisa in this answer. Creeeeeepy.
0
A: Sandbox for Proposed Challenges

DJ McGoathemPrint sin, cos and tan of special angles This will be a code-golf challenge. In trigonometry, there are certain angles known as "special angles". This is because when you take sin, cos or tan of one of these angles, you get an exact result that is easy to remember. These special angles are al...

@El'endiaStarman Ew. Anyways, he forgot to account for evaporation, bacteria, and probably animals trying to drink it.
19:02
@mbomb007 Just shoo the bacteria and animals away, I guess
@quartata "\x176" != "°". "\x176" == "\x17" + "6".
@Calvin'sHobbies Hi, I am indeed an ex-Mauris.
Maybe include it on your profile page.
Eh, I think most people who knew me under that name are up-to-date on it
19:22
I am not
Information never spreads to everyone you need it to, unfortunately. Those who work in social media and promote events always find people who were temporarily under a rock and go "Oh, I didn't know you were having that event! I would have totally joined!"
I love the visualizations at the end.
@Sherlock9 this works by filtering globals:
class Reflecter(object):
    def find(self):
        return [k for k, v in globals().items() if v is self][0]
Chat mini-challenge: Produce a random 10-element list of 0s and 1s where there are no adjacent 1s. All possibilities must have positive probability.
This guy's amazement made me laugh lol
that is amazing this person has such a high score with a auto-generated username. unbelievable... — Chris Hawkes Jan 29 at 17:06
@Maltysen Thank you from me and my friend :D
19:35
only works with globals btw
not with local vars
We'll keep that in mind. Again, thanks
If you need to determine the variable of the value you have, you're probably doing something wrong.
4
@Zgarb are strings allowed?
@Maltysen Sure.
19:54
open System
let r=Random()
let rec f()=
    let s=List.init 10(fun _->string<|r.Next()%2)
    if Seq.exists2(fun i j->i="1"&&i=j)(Seq.take 9 s)(Seq.skip 1 s)then f()else String.Join("",s)
Markdown doesn't work in multiline messages
@Zgarb There ^
@Zgarb seq(0,X,1,10 - TI-BASIC, 9 bytes. 0 is still a positive number.
;)
No it isn't...
Not strictly =P
But yeah, I get what you mean
19:56
Zero is defined as being neither positive nor negative
You're defined as being neither positive nor negative!
:p
@Roujo Is this F#?
I believe in being positive.
@Zgarb Yes sir ^^
0
Q: Counting of words in string with multiple spaces

user535204Count the number of words in a string assuming there will be multiple spaces between words Ex - he _ _ _ _ _ is _ _ _ _ a _ _ _ good _ _boy

19:57
@TimmyD Oh damn, sick burn, bro
@TimmyD s/You're/Your mom is/
@NewMetaPosts lel
@Maltysen s/Your mom is/You're mom's/g
@AlexA. The square of any integer is positive.
@El'endiaStarman My friend: "I am"
19:59
@El'endiaStarman The square root of any positive integer is positive, right?
0 (zero; BrE: /ˈzɪərəʊ/ or AmE: /ˈziːroʊ/) is both a number and the numerical digit used to represent that number in numerals. It fulfills a central role in mathematics as the additive identity of the integers, real numbers, and many other algebraic structures. As a digit, 0 is used as a placeholder in place value systems. Names for the number 0 in English include zero, nought or (US) naught (/ˈnɔːt/), nil, or — in contexts where at least one adjacent digit distinguishes it from the letter "O" — oh or o (/ˈoʊ/). Informal or slang terms for zero include zilch and zip. Ought and aught (/ˈɔːt/), as...
In mathematics, the concept of sign originates from the property of every non-zero real number to be positive or negative. Zero itself is signless, although in some contexts it makes sense to consider a signed zero. Along its application to real numbers, "change of sign" is used throughout mathematics and physics to denote the additive inverse (multiplication to −1), even for quantities which are not real numbers (so, which are not prescribed to be either positive, negative, or zero). Also, the word "sign" can indicate aspects of mathematical objects that resemble positivity and negativity, such...
@CᴏɴᴏʀO'Bʀɪᴇɴ Square roots can be negative. Every number has a positive square root and a negative square root.
> 0 is neither positive nor negative.

« first day (1833 days earlier)      last day (3308 days later) »