« first day (1935 days earlier)      last day (2891 days later) » 

9:00 PM
@quartata Analogous to basis vectors for a space?
 
@El'endiaStarman yeah
 
@El'endiaStarman yes
ninja'd
 
The (1,0) and (0,1) are actually supposed to be matrices, not coordinate pairs.
 
@PhiNotPi and if you have multiple qubits you tensor product them, right?
this is all making sense now
(slightly) ;P
 
Ah, tensors...something I still don't get.
 
9:03 PM
@Maltysen I think so.
 
@El'endiaStarman neither do I, but boy, can I multiply them :P
 
4
Q: Print out a shape in printable ASCII art based on a specific number of sides provided by the user

R. KapThe Challenge: Just as the title says, your challenge is to use the printable ASCII characters to create a program that prints out a random polygon in the terminal based on the number of sides, n provided by the user, where n is an integer in the range 3 -> 10 including 3 and 10, in as few bytes...

@Maltysen @El'endiaStarman Tensors
 
Did someone post something about a tumbleweed on a treadmill?
If so, who?
 
@VTCAKAVSMoACE A tumbleweed on a treadmill?...
Ok, I'll admit it...
It was m–@Maltysen
 
9:16 PM
@El'endiaStarman posted that before you.
 
wuh
 
@El'endiaStarman My girlfriend just said "that tumbleweed does more exercise than I".
 
@VTCAKAVSMoACE oh, yeah el'endia.
 
@EᴀsᴛᴇʀʟʏIʀᴋ I was trying to find that, hwoops
 
9:16 PM
@VTCAKAVSMoACE Bahahahaha :P
 
Ok, that's hilarious.
 
@R.Kap I have rarely found MathWorld to be useful for understanding. Kinda like Wikipedia, but usually worse.
 
There. Original image for ya
/me raises the dank level slightly.
 
@El'endiaStarman Okay then...physlink.com/Education/AskExperts/ae168.cfm
 
okay I found another image I wanna post should I wait a little while for the dankness to dissipate?
 
9:19 PM
@El'endiaStarman I agree
Sometimes it's good though
 
>>> class F(int):
...  def __init__(self, x, y):
...   print(x,y)
...
>>> F(1,2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: int() can't convert non-string with explicit base
How do I fix
 
@VTCAKAVSMoACE let it semm like, the fum kmages are gone and...bumm, another one
 
Interestingly, that was found with the same search query as that first one.
 
@VTCAKAVSMoACE Is that a real fish though? It looks like it came from the mind of a deep-web site owner
 
@VTCAKAVSMoACE mmmm no
 
9:23 PM
wow much ouch why delete?
 
@Cyoce get rid of the (int) after F, or call it with F('1','2') where the 1 and 2 are strings.
 
@R.Kap but then it doesn't extend int! How do I make it not try to call int with my arguments to F?
 
@Cyoce get rid of (int)
You know, I never really got what that does.
What does it mean when you put something in parenthesis after defining a class?
 
It makes F extend int. So now F has all of int's methods.
 
@VTCAKAVSMoACE it's probably to much SASS
 
9:27 PM
kek
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Treemotes!!!
|    |
| :P |
|    |
@VTCAKAVSMoACE @CᴏɴᴏʀO'Bʀɪᴇɴ I think that's pretty simple and ready. Any suggestions?
 
let it stay for a while
 
Help.
 
9 mins ago, by Cyoce
>>> class F(int):
...  def __init__(self, x, y):
...   print(x,y)
...
>>> F(1,2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: int() can't convert non-string with explicit base
 
9:31 PM
maybe you need to pair x,y explicitly
 
@CᴏɴᴏʀO'Bʀɪᴇɴ What do you mean by that?
 
python 3 or 2?
 
print((x,y))
 
@CᴏɴᴏʀO'Bʀɪᴇɴ Nope, that does not really work.
 
@EᴀsᴛᴇʀʟʏIʀᴋ python 2
 
9:33 PM
hehe
Idk python
 
@Cyoce ... what is the "int" for?
 
2
A: Sandbox for Proposed Challenges

Eᴀsᴛᴇʀʟʏ IʀᴋGrow a Treemote! This is my friend Thomas. He is half tree, half emoticon. | | | :D | | | He is lonely. Let's make him some friends! Given a text-based emoticon as input (e.g. ಠ_ಠ, :P, >_>, not 😀, 🤓, or 🐦), output the corresponding treemote. A treemote's length is how many charac...

 
and :D::D:D:D:D:D:D::D
@NewSandboxedPosts Ninja'ed buddy. But thanks for trying and for all your hard work.
 
@EᴀsᴛᴇʀʟʏIʀᴋ so F extends int.
 
9:34 PM
So I can have int's methods in F.
 
>_> that's not how it works.
 
But it is!
 
Int is also a type.
That means the first argument it receives must be a string, just like the type cast call.
@Cyoce
 
@EᴀsᴛᴇʀʟʏIʀᴋ This is what I need help with! How do I make it not do that? How do I just inherit the methods? How do I override __init__ so it does not call int's __init__?
 
9:36 PM
@Cyoce it trys to execute the int init func first, with converting the first arg to a int in base <second arg>
 
@EᴀsᴛᴇʀʟʏIʀᴋ How do I make it not do that?
 
You can't.
That is python.
 
@Cyoce Try calling the class with F('1',2)
 
Python is stupid. confirmed
 
@VTCAKAVSMoACE >_> unicode
 
9:37 PM
@Cyoce Where '1' is a string
 
@Cyoce specifically what functions do you want?
 
It works perfectly for me
 
Like you want abs(F(1)) to return something like int does?
 
@R.Kap Nooooooo. I'm not trying to make the int call work, I'm trying to make it not call int.
@EᴀsᴛᴇʀʟʏIʀᴋ Yes that kind of thing.
 
@Cyoce :DDDD I learned this a long time ago in a similar situation.
__abs__
And etc.
 
9:38 PM
Well, Worldbuilding got their design
 
YOu have to manually implement them.
@HelkaHomba noice
 
@EᴀsᴛᴇʀʟʏIʀᴋ Fixed - it works locally. TIO doesn't like it.
 
oay
>>> dir( int)    ['__abs__', '__add__', '__and__', '__class__', '__cmp__', '__coerce__', '__delattr__', '__div__', '__divmod__', '__doc__', '__float__', '__floordiv__', '__format__', '__getattribute__', '__getnewargs__', '__hash__', '__hex__', '__index__', '__init__', '__int__', '__invert__', '__long__', '__lshift__', '__mod__', '__mul__', '__neg__', '__new__', '__nonzero__', '__oct__', '__or__', '__pos__', '__pow__', '__radd__', '__rand__', '__rdiv__', '__rdivmod__', '__reduce__', '__reduce_ex__', '__repr__', '__rfloordiv__', '__rlshift__', '__rmod__', '__rmul__', '__ror__', '__rpow__', '_
 
@EᴀsᴛᴇʀʟʏIʀᴋ Yeah I know how to do that. But I don't want to have to do that with every method of int! I want it to inherit them from int so I don't have to do it manually!
 
@Dennis Error in this code, works locally, does not work on TIO.
Also ah I have my solution yet cannot post it.
 
9:40 PM
@Cyoce you can't.
 
@Cyoce You don't have to...
 
@quartata ?
 
@Cyoce oh, try super.
@quartata He wants to only inherit some functions, not all.
 
I thought all you had to do was override __int__
Then you should get all the functionality
Does it not work?
 
@Cyoce def __abs__(self):super(int ).__abs__
 
9:41 PM
11 mins ago, by Cyoce
9 mins ago, by Cyoce
>>> class F(int):
...  def __init__(self, x, y):
...   print(x,y)
...
>>> F(1,2)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: int() can't convert non-string with explicit base
 
@EᴀsᴛᴇʀʟʏIʀᴋ When are you planning on posting tree mote?
 
@Cyoce Not like that
You need to override __new__ in this case
 
You should call it "The Emote in Tree's Eye"
 
@EᴀsᴛᴇʀʟʏIʀᴋ But that's still doing it manually! I want it to say "int has abs, I'll give F the same abs function.
 
Not __init__
Then also override __int__ with your return self.value
 
9:43 PM
@VTCAKAVSMoACE idk
>_> too fast bruh.
 
oh gad
 
@quartata yeah I know. The problem is it doesn't get that far. It errors as soon as I initialize the instance.
 
Yeah you don't override __init__
 
Gimme something general. Should I stay up or no?
 
@VTCAKAVSMoACE .... no
@VTCAKAVSMoACE ???
 
9:43 PM
You override __new__ instead
It's weird, I know.
 
I'm about to go to bed - should I wait for you to post this first?
 
@EᴀsᴛᴇʀʟʏIʀᴋ It's only for subclassing int and the various ones I don't even know why
 
sure, i'll post now.
@quartata can you at this?
@VTCAKAVSMoACE will post within 5 min.
I have to go also, just not for bed.
oh, adding test cases
 
@EᴀsᴛᴇʀʟʏIʀᴋ Probably should mention that there are ceil(n/2) newline-separated rings
 
9:47 PM
okay
 
The way you have it (|< 2+n spaces>| * ceil(n/2)) makes it seem like | || || |
 
yeah
0
Q: Grow a Treemote!

Eᴀsᴛᴇʀʟʏ IʀᴋThis is my friend Thomas. He is half tree, half emoticon. | | | :D | | | He is lonely. Let's make him some friends! Given a text-based emoticon as input (e.g. ಠ_ಠ, :P, >_>, not 😀, 🤓, or 🐦), output the corresponding treemote. A treemote's length is how many characters it is lon (ba...

 
Well, nevermind then
 
I put in a quick thing about it.
Gtg, bai!!!
 
@EᴀsᴛᴇʀʟʏIʀᴋ drinkbai
 
9:50 PM
@EᴀsᴛᴇʀʟʏIʀᴋ What's the point of sandboxing something for 20 minutes?
 
Sand Hotboxing
 
2
Q: Grow a Treemote!

Eᴀsᴛᴇʀʟʏ IʀᴋThis is my friend Thomas. He is half tree, half emoticon. | | | :D | | | He is lonely. Let's make him some friends! Given a text-based emoticon as input (e.g. ಠ_ಠ, :P, >_>, not 😀, 🤓, or 🐦), output the corresponding treemote. A treemote's length is how many characters it is lon (ba...

 
^^ better approximate quantum fourier transform
^ actual results for a somewhat arbitrary input
much better than last time
@mınxomaτ ^
 
You should all read Uncle Quill's guide to staying safe on the internet... just don't upvote for 2 hours cause I already capped
 
9:55 PM
Nice
 
@Quill Did you seriously already mortarboard
you know a lot about this deep web
highly suspicious
 
I got it like 2 hours ago
@quartata I have a dark history with this, but dark in a different sense. It was the days of Ye Olde when Dogecoins were Nigh and the dark web merely a gateway to crypto currency
 
such deep web much history so cryptocurrency?
 
;-;
 
0
Q: collatz run time game

shai horowitzWinner is shortest run time to check whether all number up to N will end in $x=1$ or goes (70 iterations without returning to the original number or without decreasing under a step over Log(N) steps in a row) under iterating $f (x)=x/2$ if x is even and $f (x)=(3x+1)/2$ if x is odd. Hint all one...

 
10:00 PM
crypto currencies always were pretty interesting, I suppose
 
still are...
 
Oh I think they're pretty interesting
I was just making a joke
@NewMetaPosts Oops I totally misunderstood this question
 
@quartata I know :p
before I hung out on SE, I hung out on an IRC channel that gave random Dogecoin drops for chatting for certain periods
I got banned eventually for gaming the system... :p
 
You could get free money for chatting? Whoa I want in
I could get paid to shitpost
I can't believe it
 
Except they're dogecoins so they're literally useless, well
 
10:03 PM
@Quill Surely there's a dogecoin to bitcoin exchange
 
except there was an eBay for doge coins at one stage
@quartata yeah... but it's pretty steep IIRC
 
It's still money that's all that matters
Give me the name of this network I need this
 
I can't remember it :p
 
playing randomizer in tf2 if anyone is interested
 
@NewMetaPosts Interesting, but this belongs in the Sandbox
 
10:05 PM
I actually got my first programming textbook off that said dogeBay site for the equivalent of like 30 aussie cents total
actually it had a different name than the subreddit
 
@Quill ^
 
Python is stupid. If I want initializing my class to also call the superclasses __init__, shouldn't I have to specify that? Isn't "explicit better than implicit"?
 
^
 
@Downgoat yeah somebody starred one of my forks the other day
 
@Cyoce No language ever forces you to do that
 
10:07 PM
and Jimmy Kimmel is running for vp, alone. This is either the greatest commedy stunt every attempted or the American election system is a joke now.
 
Why would anyone want to have that
 
;_; only 16 views on my blog post
 
@Downgoat try posting it somewhere like Hacker News
and/or twitter
 
maybe reddit?
 
George Gibson, Leicester, United Kingdom
464 1 16
 
10:12 PM
@Downgoat Arghh! I followed a link outside SE and I can't edit the typos!
8
 
@Downgoat Get thee to a spellchecker.
 
@VTCAKAVSMoACE The question marks? If that's the problem, I only have to switch to UTF-8.
 
@PhiNotPi It was one of those devious correctly spelled typos
The kind I loose my mind over
 
@trichoplax sounds painful
 
Indeed :)
 
10:15 PM
@trichoplax where? I'm using wordpress's bult-in spell checker
 
@Downgoat Everything is correctly spelled, but one of the correctly spelled words isn't the one you want...
I used it in the example above
(which Phil described as painful)
 
> Hopefully I didn’t loose you
 
@Quill whoops, fixed
oh shit, it broke my whitespace
 
they must be tabs
 
I liked the post, but there's a consistent lack of concluding punctuation marks on the sentences. Perhaps a trend that followed over from programming :p
 
10:18 PM
@quartata v
irb(main):001:0> class F
irb(main):002:1>  def initialize
irb(main):003:2>   puts "F"
irb(main):004:2>  end
irb(main):005:1> end
=> nil
irb(main):006:0> class G < F
irb(main):007:1>  def initialize
irb(main):008:2>   puts "G"
irb(main):009:2>  end
irb(main):010:1> end
=> nil
irb(main):011:0> class H < F
irb(main):012:1>  def initialize
irb(main):013:2>   super
irb(main):014:2>   puts "H"
irb(main):015:2>  end
irb(main):016:1> end
=> nil
irb(main):017:0> F.new
F
=> #<F:0x007fc33c0667b8>
irb(main):018:0> G.new
 
Oh right. Sorry, I meant no good language ever forces you to do that
shots fired
 
@Optimizer no, wordpress works with spaces, just not in visual mode
thanks for the 4 views btw
 
@Dennis Yes pleeease.
 
0
A: Sandbox for Proposed Challenges

shai horowitzCollatz or Hailstone sequence efficiently Sorry for everywhere I posted in the wrong place and thank you to all of the mods for helping me find the sandbox (i'm hoping here) Winner is shortest run time to check whether all number up to N will end in $x=1$ or goes (70 iterations without returni...

 
@quartata Regardless of your fallacious implication about Ruby, Python's insistence on explicitness should require that. In fact, Python's insistence on being explicit is why it is a bad language.
 
10:21 PM
@Downgoat It's an interesting read. Are you interested in more trivial typo and layout feedback?
 
@trichoplax sure.
 
On a side note, @Downgoat, you should write a blog post on how to use Symbols correctly
 
@Downgoat Is line 9 of your 3rd code block meant to be labelled line 9? It looks like it's just wrapped from line 8.
 
@trichoplax no... it's wordpress being dumb... lemme see if i can fix
 
@Downgoat "a async function"
 
10:25 PM
@Cyoce it was yolk
But Ruby is in the minority on making super explicit.
Generally, if you inherit from a class you're assumed to want the fields of that class initialized
(i.e what the constructor does)
 
But if "explicit is better than implicit", then Python shouldn't assume
 
Explicit is better than implicit works in the reverse too.
 
I did a V answer!
0
A: Grow a Treemote!

Dr Green Eggs and Ham DJV, 60 bytes I| A |byiWo=ceil(len(""")/2.0) dF."ad0kwviWr Yu@apH@aP Unfortunately, V has next to nothing in terms of mathematical operations. The divide and ceil functions drastically inflated the byte count. Since this contains a bunch of nasty unprintables, here is a reversible hexdump: 000...

It's horribly long.
 
@DrGreenEggsandHamDJ V_V
 
10:31 PM
@Quill how do you use symbols _in_correctly?
 
from math import pi # constants should be in all caps like PEP 8 says.
True, False, None   # constants should be in all caps like PEP 8 says.
 
@Downgoat I haven't tried, but I'm sure I could do it
 
@Quill use them incorrectly?
 
yeah
 
So is using them for like private properties symbol abuse?
 
10:32 PM
I meant more toward explaining what they are, what use cases ask for them
 
Everytime there's a Gitlab update, the What-Ifs get delayed a bit further.
 
@Quill ok
 
@EᴀsᴛᴇʀʟʏIʀᴋ In R there are types and classes. numeric is a class and integer is both a type and a class. Integer literals are suffixed with L, meaning long. So class(1L) is integer. Any numeric literal not suffixed with L is actually a float; R just hides that fact when it prints doubles that are close to integers. is.numeric() is TRUE for both doubles and integers. Does that sort of answer your question?
 
that's interesting
 
Help how do I get back to mobile mode
 
10:38 PM
what site?
 
This one
 
try a refresh or two, otherwise Chrome and Safari for mobile have a specific swap option in their settings
 
clear cookies
 
COOKIE
D
 
Ahhhh there's only a "request desktop site" button
 
10:40 PM
@CᴏɴᴏʀO'Bʀɪᴇɴ O_O
 
@Cyoce close the app and remove it from the tray
 
@AlexA. le lenny bat
 
@Quill nope
 
smash your phone, buy a laptop
I'd like to see them goddamn no-repro that one
 
10:44 PM
@Quill I have a laptop. It ran out of batteries because the asshole in my class won't give up the outlet even though his computer is fully charged
 
ugh
I hate those people
 
ಠ_ಠ
 
That was directed at "those people"
 
@Cyoce *smash your laptop over the "a*sehole's" head.
 
10:46 PM
@Cyoce oh
 
10:57 PM
 
@Dennis Yay many thank
 

« first day (1935 days earlier)      last day (2891 days later) »