« first day (1783 days earlier)      last day (3163 days later) » 

4:00 PM
This track is stuck in my head right now: bansheebeat.bandcamp.com/track/tepplin
something about the echoing sound of those notes
 
DSM
I still have some of the music you were playing during your stream in my head. Not anything specific, just the atmosphere.
 
rhubarb
 
I have the Beatles' Ticket to Ride in my head. I blame the man in the next office who played it on his radio an hour ago.
 
DSM
He don't care.
 
I've found a bunch of good stuff lately. My wishlist is getting long again.
I'll try to stream again this afternoon, it was actually pretty fun.
 
4:04 PM
It took me an inordinately long time to convince myself that I hadn't just imagined that a song named Bad Blood existed and wasn't sung by Taylor Swift.
 
Need to get my workflow with OBS fixed so it's easier to switch windows around.
 
DSM
@Kevin: Too many negatives to figure out what that sentence means.
 
DSM
@davidism: I think I came in too late to have a real sense of what was going on, although I'm reminded that other people don't seem to change their minds midline as often as I do.
 
Perhaps if I rephrase it as a narrative. "I would like to listen to that song Bad Blood which I heard on the radio many weeks ago. <looks online>. No, this is all Taylor swift stuff. The one I'm thinking of had a male lead. Or did I just imagine it? <much searching ensues> Oh, it was by Bastille. Here it is."
 
4:06 PM
@Kevin Bastille's stuff is really good. I've seen them live twice, and they put on a great show.
 
DSM
I only know them from Pompeii.
 
Hot tip: to find songs not written by Taylor Swift, add "-Taylor" to your google search.
 
DSM
That doesn't seem like something I'll be wanting to do, though.
 
That's my favorite of Bastille's songs.
 
I'm considering using the microphone this time, rather than typing my thoughts, but I'm still a little weirded out speaking to random people on the internet.
 
4:07 PM
@DSM I know, right? Why would anyone want to listen to songs not written by Taylor Swift?
Slow pan out to reveal Kevin's insane wall of Taylor fandom
 
My aunt and her daughter went to see the Taylor Swift concert last weekend. I ended up watching boy cousin. We went and saw the new Mission Impossible, it was way better.
 
How do you know? You missed the concert
 
The fact that "cousin" has no gender is somewhat inconvenient in that sentence.
@SomeGuy I just know. o_o
 
You think you know
You can't know know
 
davidism is in constant contact with versions of himself in nearby branches of the multiverse, so he can easily determine the outcome of choices he didn't make.
 
DSM
4:11 PM
&quot;slider&quot;
 
From my experience going to a Kelly Clarkson / Maroon 5 concert with them last year, I can assume I would have enjoyed it about equally.
;_;
 
Yes, like whether he should have hamburger sliders for lunch today. Good example.
 
DSM
(I was betting on :-| ..)
 
:-|
I was getting there.
 
I would go see Maroon 5. <.< >.>
 
4:14 PM
Yeah, that half of it was ok.
 
DSM
I find I enjoy covers of Maroon 5 songs more than Maroon 5 songs.
 
I've only heard a few of Maroon 5's songs, but I've liked all of them so far
Catchy
 
I'm going to see Weezer for $5 this weekend. That will be much better.
 
You know what's a good cover? Hurt
 
DSM
4:17 PM
I only remember Weezer from the video. By the end of that year I wanted to shoot them all.
 
The Del Mar Racetracks does concerts in the Summer for the price of getting into the tracks.
Saw The Offspring last month, they were great.
 
DSM
@Kevin: you know what's a better cover? Respect, by Aretha Franklin.
 
Hi. Do you know how to set default image into Django ImageField
I'm trying to make this works like this:
 
models.ImageField(upload_to=/images/, default='/media/images/default/bla.png')
 
4:26 PM
Also "trying to make this works" is not a terribly helpful problem statement
 
there is just below example what I've done
 
Bah dupe-searching isn't very rewarding
I could just answer that :c
 
"this is not the snippet you're looking for, he can go about his business"
 
@vaultah I don't think it's a good enough dupe
gotta wait until we finally start working on nidaba again, so it can find dupes for us
 
4:32 PM
no, on second thought maybe it is good enough, I'll hammer it
 
In the OP's code or the standard library?
 
DSM
I wonder if adding the extra \n was intended or not.
 
I expect OP to come back and say "It's running now but the spacing is all weird!" exactly due to the "\n" discrepancy
 
4:45 PM
Eh they rolled my edit back
 
"could you please elaborate "wirte" != "write". Actually I am new to python"
 
I actually wrote a response to that because it was so polite. Couldn't submit it though, as he deleted the post.
 
DSM
I think the OP realized what was happening.
 
That is likely.
 
this in javascript is super annoying
 
4:55 PM
this has caused me much unhappiness.
 
think of it as of a global object being a proxy. like those flask contexts.
but still annoying, yes
 
DSM
Arrow functions for the win!
 
5:19 PM
Today I am trying to determine if people living near a radio station are exposed to appreciably more radio waves than people not living near one.
 
Cabbage all :D
 
cbg @AlexanderHuszagh
 
I know the atmosphere doesn't block much radio coming from space, but I don't know the comparative strength of the signal from the sun vs. 104.5 FM "the morning zoo"
 
I think it depends on how close you live. If you're close enough (under the tower), you won't get any.
 
"explain this function to me" Understanding cycle notation - Dustin Taylor 2015-09-03 17:10:43Z
 
5:22 PM
It doesn't really matter though how much they're exposed to, since radio-waves are non-ionizing, and furthermore, their energy is so low they cannot even contribute to vibrational modes of energy (undergrad training: physical and inorganic chemistry). Rotational, possible, but that's not really problematic. Microwaves, in theory, if blasted at someone, could contribute to vibrational modes to raise their body temperature to dangerous levels, but radio waves...
Much longer wavelength, in fact, extremely long.
 
I live, let's see... 534 meters away.
 
SCIENCE!
 
@AlexanderHuszagh Yeah I'm not worried but to put my parents at ease I told them "humanity has been bombarded with the same amount of radio waves since the beginning of history and it hasn't had much effect" but that line of reasoning may be fallacious even if the conclusion is correct
 
Actually...it might not be all true :o are you sure microwaves contribute to vibrations? I thought they contributed to stretching modes?
 
If poppa Kevinson looks it up and finds out that the tower has a signal strength a million times stronger than what we get from the sun, then they'll go right back to worrying
 
5:28 PM
@Ffisegydd, (Vibrational includes stretching. There's many modes in vibrational)
 
cbg
 
Cbg @OneRaynyDay :D
 
Hmm okay, it's been a long time since 3rd year ffiseg
 
@AlexanderHuszagh hey dude how you doin? :)
 
Ooh ok, I get that. (I actually understand that way too well: I'm a scientist who works in a field where everyone makes GMOs to study how organisms function and I went home to see my mom with a giant saying "BAN GMOs" and "Carbon isn't cool".
Doing pretty well actually, how are you?
Rhbrb
 
5:31 PM
I'm pretty sure carbon is actually fairly important.
 
Nah dude. Silicon-based life is where it's at.
 
carbon -> CO2 -> bad for the environment -> must remove from our planet
/sarcasm
 
Insert obligatory link here for the petition to ban dihydrogen monoxide
 
Classic
 
How do you know when connection is lost to a socket?
 
5:35 PM
When it doesn't look at you during
The dihydrogen monoxide hoax involves calling water by the unfamiliar chemical name "dihydrogen monoxide" (DHMO), and listing some of water's effects in an alarming manner, such as the fact that it accelerates corrosion and can cause severe burns. The hoax often calls for dihydrogen monoxide to be regulated, labeled as hazardous, or banned. It illustrates how the lack of scientific literacy and an exaggerated analysis can lead to misplaced fears. The hoax gained renewed popularity in the late 1990s when a 14-year-old student collected anti-DHMO petitions for a science project about gullibility...
This reminds me of an anti-smoking commercial that has been airing recently that breathlessly reports that cigarettes contain "over 5000 chemicals"
Oh no, not chemicals!
 
my god these are hillarious
But unfortunately I feel like as we become older we'll one day be like that too, or maybe it's the previous generation that have a nature of becoming like that when they grow older
 
stackoverflow.com/q/32368145/400617 typo (and not apparent from question)
 
my parents still believe in "Organic" foods after many tries to inform them that there's no difference
 
I fully expect to be terrorized by the media about quantum foam or qubits or some other scifi concept that we don't currently have to worry about
 
@OneRaynyDay Yeeeeeah. There's a difference between organic and non-organic food :/
 
5:40 PM
Despite the lack of accurate label, there is indeed a difference between the two.
 
@davidism but the term organic is super vague
like, I take it as "contains carbon"
 
And don't get me wrong, I ain't a hippie, I buy non-organic food all the time, but there's definitely a difference.
 
I had an argument with my parents about what food may be considered "natural" and it had the same kind of circular reasoning you get from "Brawndo is what plants crave"
 
Yes, that's what I just said, but that's a poor way to argue the point.
 
In which case you're using the term "organic" in a way that it's not meant to be used in this case, and that just makes you look foolish.
 
5:41 PM
What is the difference between "organic" and nonorganic?
 
"organic" means "contains carbon"
 
I never ask questions, and the vast majority of my answers are accepte as correct (on SO), so logically I'm always right. I won't be terrorized by anyone!
 
As we know, carbon is bad, so avoid organic food.
 
@Kevin welp. Oh and that reminds me, I did watch a section by Healthcare Triage on youtube, where
he did discuss that "organic" food has more antioxidants but that's about it
 
Yes, because a Youtube video is definitely the be-all-and-end-all of science.
 
5:43 PM
Who the cabbage cares? Python room.
 
Yeah sorry for the tangent.
 
Let's stop arguing about what constitutes "organic" and instead argue about what constitutes "strong typing"
 
Don't be sorry, we talk about off-topic stuff all the time, and as long as there's no on-going Python conversation going on, is it really that bad to?
 
Even if so, it should be me that's apologizing because I'm the one that brought up radio waves in the first place.
 
Kevin, I'd rather argue if whether using map on a variable assigned to lambda can ever be Python /sarcasm
 
5:46 PM
@Ffisegydd Never said it was, but he's one of the few people who actually cites his research article sources constantly in the american academy of science, and etc, so I believe he has some backing to his evidence in comparison to stay-at-home moms who rely on placebo
anyways i'm done too!
 
I duck type all my food, my mouth accepts organic and non organic
 
"Ugh, he eats like a pig!" "I don't know about that, pigs tend to chew. He eats more like a duck."
-- The Simpsons, Episode ? Season ??
 
Set up and scored ;D
 
Is there a duplicate question for "What is a set?"
 
My code generates the following error: TypeError: object() takes no parameters. Choose one: unclear for being in Spanish; or typo for having the wrong number of underscores
 
5:49 PM
Anyhow, as a placebo loving hippy, who codes models of low Carbon sustainable energy production, I feel I may be rowing against the ride here
Ride, tide, phone. Typo.
 
@JRichardSnape hey, there's nothing placebo about sustainable energy production :)
 
True dat. However, I do enjoy self southing with placebo every so often.
 
:D I love hippies though. I've just learned that awesome agriculture actually reduces our carbon footprint, and is more sustainable. And it uses oftentimes GMOs
 
I was objecting to the weird argument that was going on, not the fact that it was off topic.
 
I don't mind someone saying "take two advil and call me in the morning" but I do mind someone saying "apply two healing crystals and call me in the morning" even if advil is no more effective than healing crystals for whatever ailment the person has. So I guess it depends on the presentation of the placebo
 
DSM
6:00 PM
The healing crystals are likely to have fewer negative side effects, so that's a point in their favour.
 
I guess it's OK to trick a single person into feeling better with sugar pills, but not OK to trick an entire demographic into thinking that pseudoscience is actually science.
 
what are you talking about, I've been using healing crystals to cure my kids of measles and they haven't gotten autism yet
 
Looks like today is my turn to get far more points than I deserve for pointing out a mismatched parens typo
 
DSM
You can't be too careful.
 
The rain falls on the just and unjust alike. Not sure if that's applicable here, I just felt like typing it.
 
6:03 PM
that was like super deep
 
Matthew 5:45. Excuse me, I need to check the Bible's Terms and Conditions to see if I owe them a licensing fee now.
 
DSM
Public redistribution of the text is not only allowed but recommended, but modifications are not permitted and attribution is required. :-)
 
If attribution is required, I have a lot of needlepoint pillows to update.
 
You might be able to just attribute the whole house.
 
DSM
You can probably get a common-practice fair-use exemption. I'll take it up with the management this weekend.
 
6:08 PM
Much appreciated.
 
I'm sorry, but after ~2000 years it's surely now in the public domain. Don't you try some copyright extension malarky on us!
 
cats happens to be a valid Python identifier too, is why. — Martijn Pieters ♦ 25 mins ago
@MartijnPieters I think you may have confused the op more
> EDIT: Turns out that "cats" is a Python keyword and I'm just silly...
 
wat?
 
DSM
@Ffisegydd: under the circumstances, "life of the author" provides a longer duration than normal..
cats? keyword? huh?
 
I'm not entirely sure what @Martijn was getting at either, based on the question.
 
6:12 PM
"cats is a legal name for a variable" is true but doesn't seem to be relevant to the question
 
yeah
 
DSM
I think it's the "why does interning depend on the content of the text" question, and that depends in CPython on whether or not it's a valid identifier. "Next, the Python compiler will also intern any Python string stored as a constant, provided it is a valid identifier."
 
I choose to believe that he's replying to a now-deleted comment.
 
I'll admit I tried it out and was slightly disappointed that cats wasn't a keyword.
 
Likewise :-) in 2.7 and 3.X for good measure
 
DSM
6:14 PM
Even after years of programming in Python, I too may have tried and found NameError: name 'cats' is not defined, just in case.. (I came to the two-argument form of iter and the zip-like power of map very late.)
 
@DSM Oh, that makes sense.
 
Re: Python-Dev Digest, Vol 146, Issue 4
PEP Proposal to include the keywords "cat" and "cats" in Python. This PEP aims to be an extension of PEP 401, and embraces the same spirit.
 
PEP 401 mentions "the Python Secret Underground, which emphatically does not exist". Looks like the Dark Council has competition, if it existed.
 
It emphatically does not exist, and is entirely unconnected with the Secret Python Underground and the Underground for Python Secrets. Splitters.
 
Nor with the Underground Secret Python, a baement-level adult entertainment shop off of Fourth and Main.
 
6:23 PM
The Underground Secret Python is off the intersection of Charm and Anaconda street, right? If it existed, of course.
 
Could be a franchise. It's hard to tell, as their public records are quite serpentine.
 
Nah, that's the Secret Underground Python
 
I also heard someone spilled a flask on the records and they're quite twisted now.
 
:-D
 
This punnery is hurting my head. I need a pillow.
 
6:26 PM
:D
 
Or possibly a drink. Maybe a Bloody Mary with extra celery.
 
7:16 PM
I did it
 
DSM
Don't tell that to people who might be called to testify. There are more exceptions to the rule against hearsay than you think.
 
My alibi is that I was asking inane questions in SO chat rooms
 
DSM
"Seems reasonable to me. Case dismissed!"
 
Later we discover that crow's inane questions were being posted by a "drinking bird" desk toy that presses Enter on a time delay
Which also explains his characteristic silence in response to follow-up questions
 
DSM
7:23 PM
I don't think I'd downvote an answer which was correct but was known by the answerer to be an obvious dup.
 
Are we talking about this meta question? I actually don't mind people transcribing a comment as an answer as long as it's good and it seems like the commenter isn't coming back.
 
DSM
No, I meant the "a or b or c" question that I just dupd.
 
I dislike unanswered but answerable questions more than I dislike casual intellectual property theft
 
DSM
I tend to add [moved from comments, just to close this] and make it CW, to protect against downvotes.
 
Oh. Yeah, I also don't care if someone knowingly answers a dupe Q.
I answer typo Qs constantly so it would be kind of hypocritical to think otherwise.
 
7:30 PM
@davidism: A valid identifier != a keyword.
It means it could be used as a variable, while cats! cannot.
It uses only letters, numbers and underscores (where you cannot use a number as the first character)
 
DSM
@Martijn: doesn't "Next, the Python compiler will also intern any Python string stored as a constant, provided it is a valid identifier." overstate it though? There are valid unicode identifiers which aren't interned.
 
@DSM strings are not unicode objects..
I only looked at the str type for that answer.
 
Man, the is != == dupe target is getting a ton of attention these past couple days.
 
DSM
7:46 PM
@MartijnPieters: ehh. I can have two objects of type str, one "ex" and one "ëx", both of which are valid identifiers, and the first is sometimes interned and the second is sometimes not. (Putting in "sometimes" because I'm far too lazy to check the code to see if the observed behaviour is the way it'll always work.)
Aside: I have to fight the temptation to automatically downvote questions which contain phrases like "Also as a bonus question".
 
@DSM Not in Python 2 it isn't.
In Python 2 only ASCII letters and digits can be used.
 
DSM
What is this Python 2 of which you speak? (Only half-serious.)
 
The answer covers Python 2.
 
7:58 PM
With pymssql, is there a way to print the query it's trying to execute? Ideally one that works with executemany().
 
"You made too few improvements to this post" Uh, that's new.
 
DSM
Rejected edit?
 
I wanted to add to a question, which I do all the time
Maybe it's because it was identical to a pending proposed edit made by Morgan.
 
Sorry. :P
 
DSM
Are we typo-closing that one?
 
8:02 PM
@MartijnPieters yeah, I understood it, but in the context it looked like the op didn't
 
I would.
 
OP ignored jonrsharpe's "count your parentheses" comment. This bothers me.
I just know they'll come back saying "WTF why was this closed as a typo when no one told me what the typo was"
 
Yeah, I didn't see it so I added a redundant comment. Whoops, deleted.
 
this question I hammered earlier is one away from reopen. It's definitely a dupe, I had a good long look before I used @vaultah's target.
 
Opening a closed post that already has an accepted answer isn't so bad.
I don't foresee a flood of low quality answers at least
 
user559633
8:13 PM
What is an action that will net me +1 rep?
 
get an answer you downvoted deleted
 
DSM
I don't understand TBA's focus on the __enter__/__exit__ methods. If there were three methods, __enter__, __exit__, and __sometimes_just_for_fun__, nothing would change.
 
user559633
@davidism Nice, thanks
 
DSM
4700 special in some way?
 
user559633
@DSM No, 4699 is just bugging me for some reason
 
DSM
8:17 PM
Given the user's previous name from the last parenthesis question, "deathlord" is not what I would have guessed the user would select on a rename. Goes to show you never know, I guess..
 
133
Q: Only prohibit those who edited the tags from using the dupe hammer

PotatoswatterI have a gold c++ badge but this question wasn't closed when I marked it as a duplicate. The OP had left out the language tag, and it was only added later by an edit. Looking closer, no less than three "golden badgers" voted to close the question, yet it still waited for 5 votes and attracted a...

Now in review. \o/
 
@tristan now go downvote 9 bad answers
 
DSM
If it passes it'll make some things a little more convenient and affect most things not at all, so I find it hard to get worked up about it either way. (I guess I'm +0.)
 
I'm going to cancel that with a -0.
 
I still don't like the perverse incentives it causes by making a gold badger not want to edit a tag, and instead wait for someone else to do it. -0.1.
 
8:25 PM
I liked the other suggestion that trusted users with the badge be trusted to both edit and close, but they probably won't go that far.
@Kevin but I have run into the situation multiple times now where someone edited a question, then I went to close it and couldn't. I'm pretty sure you pulled that on me at least once. :)
 
the more time spent programming, the more refactoring there is to do :\
 
user559633
@AaronHall lol thanks
 
I don't have a gold badge and so any feature request that uses it I hate. -9000.
 
DSM
@AaronHall: you can't cancel it!
>>> 0.0
0.0
>>> -0.0
-0.0
>>> 0.0 + (-0.0)
0.0
 
8:32 PM
Hey up
 
DSM
Welcome to our humble room.
 
:)
At home ill today
 
DSM
bob is illin'
 
;_; poor bobert.
 
(also appears to have been upvoted by friend, a trend I can't prove but seems to be happening more in flask lately)
 
DSM
8:36 PM
It does seem odd that comment would get an upvote.
 
even got the token 1 favorite too
 
DSM
Never having asked a question, I assumed you automatically favourited your own.
 
I noticed the "1 favorite on low quality question" trend last year. It's not automatic, there are plenty of questions that don't have it.
 
DSM
Weird that it would be a trend, though.
 
It would be an interesting SEDE query: how many questions with <= 0 score have 1 favorite.
 
8:40 PM
On the plus side, I got to try WTForms a bit
 
@DSM thanks for the "x in iter()` tip yesterday, btw, it works just fine
way simpler than any, not sure why I didn't think of it
 
What tip is this?
 
I had an iterator that I wanted to advance until a token was reached. I was using any(x == token for token in tokens) and DSM pointed out that x in tokens would do the same thing.
 
>>> +0 + -0
0
Looks canceled to me! :P
 
Ah, right. I thought you more literally meant x in iter(...).
 
DSM
9:23 PM
aargh, just left a comment as someone else downvoted. :-/
 
That was me, I was like "argh, downvoted as someone commented"
I had the same comment written actually, but you get to take the fall this time evil laugh
Here, I'll remove it for a couple minutes, although I don't see it improving.
 
DSM
Would have commented sooner but first I had to confirm that the code was at least returning results in the way I expected..
 
>>> def foo(it):
...     for i in it:
...         yield i
...
>>> it = iter(xrange(10))
>>> 5 in foo(it)
True
>>> list(it)
[6, 7, 8, 9]
 
@AaronHall are you following some rule that says "wait until no one's talking about a piece of code, and all appear to have reached a conclusion, then post some code demonstrating that already reached conclusion"?
Because you seriously do that constantly.
 
demos are good - no demos are bad.
 
9:27 PM
You always seem to do it right in the middle of the next conversation too.
 
ok linux ppl ...
how can i ensure my app starts after the desktop loads (using supervisord
 
Why not let the desktop manager handle that? Most DEs have an autostart capability.
 
erm hey guys, quick question about python syntax
 
JUST ASK, you know the rules at this point
 
I can't seem to find an answer online(yes I have STFW)
 
9:30 PM
well i need to be able to schedule and unschedule it from the shell
 
yeah I know, but I was afraid you were going to say STFW
 
wtf is stfw?
 
I probably am anyway, but now you've written three messages without asking.
 
DSM
Syntax takes four weeks (to learn)?
 
But okay, it's about this -> variable, = (this,)
 
9:31 PM
that's not a tuple, (this,) is a tuple
 
Well two of them were responses to you :o, and okay sorry, I meant to say inside of those parentheses is a tuple. I'll edit it
 
that's unpacking
 
hehe is that a crocidile dundee quote?
:P
man spelling 101
` a,b = (1,2)`
there thats how it works
 
@AaronHall oh okay thank you, search engines don't like commas and underscores
 
DSM
Maybe you're seeing the pattern a = 1, and x, = a? People do that sometimes.
 
9:32 PM
@Joran I'm pretty sure there's a systemd target you can make your unit depend on
 
ehh i think I just figured it out :P
 
>>> var = 'foo'
>>> tup = (var,)
>>> same_var, = tup
>>> same_var
'foo'
>>> tup
('foo',)
 
x, y = (1, 2)
 
a,b,c="foo" :P
 
so it assigns the same_var as the tuple? It's a bit hard to see with only 1 thing in the tuple. And I understand the a,b = ("foo","bar"), I think... it means a = foo and b = bar
 
9:33 PM
no
 
yes ... in python everything is pass by reference ... but most things are immutable
 
DSM
I prefer [samevar] = tup. That dangling comma just doesn't look right to me (even though it is.)
 
somevar = tup[0] is how you should do that I think ....
 
the comma makes it a tuple, not the parens
 
9:35 PM
Oh, didn't know that actually. But I'll go check out the unpacking operator, cause I'm still not really getting it. I won't bother you guys with it though
thanks!
 
DSM
@Joran: the dangling comma is common in a lot of matplotlib code, more's the pity.
 
unpacking isn't an operator, it's just something that can happen on variable assignments.
 
@DSM Ah, coincidence you said that, I'm actually looking at someone else's matplotlib code right now haha
 
for index, integer in enumerate(range(1, 11)): print(index, integer)
 
ohh okay, so I've done a little bit of research and I'm guessing that
when you did a,b = 1,2 , a = 1, and b = 2. When you do a, = 1,2 then a = 1?
 
DSM
9:39 PM
a, = 1,2 won't work, so no. :-)
 
no, that's an error in all Pythons, I think
 
if that's the case then swapping in python's really nice, you could just do a, b = b, a instead of having a middle member for temp
 
that's correct
 
@DSM oh... so it'll only work if it's a tuple of __len__() == 1?
 
@OneRaynyDay you really need to read at least one of these tutorials: sopython.com/wiki/What_tutorial_should_I_read%3F this is all covered
 
9:40 PM
you have to collect the remaining members
 
got it
@davidism My bad, I didn't expect python to have such different syntax... I mainly use java so I thought transitioning was just a matter of googling up the differences
 
DSM
Just say len(tup) == 1. You should almost never need to call any of the specialmethods like __somethinghere__ directly.
 
>>> a, *_ = 1,2
>>> a, *_ = 1,2,3
>>> a, *_ = 1,2,3,4,5
 
I know you mainly use Java, you say it nearly every time you join. It is your bad: you should know at this point our view on basic questions, even if people here are willing to help. Seriously, go thoroughly read those tutorials.
 
@DSM oh.. woops, I always called the magic functions, thanks for the tip!
@davidism This was an exception though, the search engine doesn't register underscores or commas as actual queries, so I was in a bit of trouble. I read the help-vamp section and I understood what I did wrong, but it's situations like this where it would help alot to ask in chat
And yeah, I will check out the tutorials. This is the first time I was linked that
 
9:44 PM
I'm not telling you to go search, I'm telling you to read a tutorial, where this sort of stuff is covered.
Unfortunately, we are not here to help you succeed at a job you aren't ready for. I would talk to your manager about setting some time aside for training, especially since this is an internship.
 
Oh crap I accidentally removed my message: Was just saying that boss demands high productivity, so I would go read it if I have the time(he doesn't understand that java =/= python)
 
DSM
If that's the issue, you don't have the time not to work through a tutorial in an evening.
 
@davidism I've done most of the internship in java, and I only have about 2 weeks left. Was not aware he wanted me to write python on top of previous projects before
 
Your circumstances don't really factor into whether it's ok to take up our time.
 
@DSM yeah, I wrote in the previously deleted message that I'll check it in my downtime, I forgot to rewrite that portion
 
9:49 PM
My opinion is that stellar programmers, ones that I would like to hire, engage in learning on their own time when they're not on the job, because they enjoy learning.
 
Communication and setting expectations is part of being good at a job. I suggest you talk to your boss if you feel his expectations are unrealistic or not helpful.
 
@AaronHall you're right, but I'm really interested in doing some things in another language(I've been reading a few java spring and perceptron AI books)
and you're right too david, I'll talk to him about it later today
 
I'd put that on hold while I learned Python, to be honest.
It shouldn't take you too long.
 
What's the Python equivalent of std::vector<float>
 
Dive Into Python took me about a week to work through completely, in my off time during school. I knew no Python before that.
@AmagicalFishy a list with things in it
 
9:52 PM
@AmagicalFishy is that a typed list? I made an implementation of one a while back...
 
x = [1.0, 2.0, 3.14]
 
The gist should still be up.
But it's incredibly inefficient relative to a plain list.
 
Oh, that simple?
 
I wouldn't bother with trying to get cleverer than that, almost all typed solutions, even the built-in array tend to be slower than list.
 
damn. this error might be something else. :l
 
9:53 PM
@AaronHall yeah, as I said before I didn't realize python was that different in comparison. I'll sit down and read it for a good night or two! For the basics at least
 
that sounds like a really good idea.
 
I suggest Dive Into Python up to chapter 9, and chapter 11. The rest is good too, but not essential.
 
@davidism Ah gotcha, thanks again! I promise I won't bother you guys with basic questions that are in chapter 1-9 and 11 in the future :)
 
For example, here's exactly what you were asking about: diveintopython3.net/native-datatypes.html#multivar
 
I like the official tutorial: docs.python.org/2/tutorial/index.html
 
9:58 PM
@AaronHall please recommend the python 3 tutorial
and yes, that's on the wiki page too
 
Yeah? He's using it for work. I'm betting he's on Python 2.
 
DSM
It's true that many companies seem to be lagging.
 

« first day (1783 days earlier)      last day (3163 days later) »