« first day (2641 days earlier)      last day (2300 days later) » 

12:00 AM
@Rawing How about both together?
 
Someone just got an extra vote on their highest voted answer
 
@cᴏʟᴅsᴘᴇᴇᴅ I can't deny that. And as much as I'd like to say "it's because the questions are so bad", the truth is that there still many, many, many questions that I can't answer
 
I disagree with the close on stackoverflow.com/questions/48142516/…
 
The OP didn't specifically ask for returning None, and I've provided an answer that isn't covered by the dupe.
 
12:02 AM
are the accepted/upvoted answers applicable to non-None default values?
and are there no better dupe targets for this problem?
 
In this case, a better solution is to return the key as the value if the key isn't in the dictionary.
One could infer from those answers, but I don't see that any of them make it explicit.
 
I disagree with your assessment that the target does not sufficiently answer the question with .get.
 
wim
.get accepts second argument
 
Ehm, the question isn't even clear. OP didn't even specify what kind of default they want to use. Their title is misleading.
 
@cᴏʟᴅsᴘᴇᴇᴅ :I Thanks I guess, though having earned 120 rep from such a trivial answer gives me some complicated feelings lol
 
12:06 AM
^, and that second argument can be anything besides None.
 
@cᴏʟᴅsᴘᴇᴇᴅ I figured you would. Yes, but passing key as second argument isn't explicit.
 
wim
I also disagree with the dupe closure. Re-opened
 
@AndrasDeak I agree with that.
Bad title
 
@wim eh, why
 
wim
@Craig I upvoted you and DV all the other crap answers there
 
12:07 AM
are you sure there's no dupe for <thing that OP might be asking> we could've added to the dupe target list?
 
wim
@AndrasDeak Because they don't want to return None, they want the 2-argument version of dict.get
 
@wim thanks - not looking for the votes.
I'm searching to see if there is something relevant.
 
not sure what the haste is all about, the answer is already posted and it wasn't going anywhere
@wim how the yam does the accepted answer not cover that on the dupe stackoverflow.com/questions/6130768/…
 
wim
you guys rush too much to close as duplicate and end up cramming a square peg into a round hole a lot of the time
 
cabbage
 
12:09 AM
> You can use get()
value = d.get(key)
which will return None if key is not in d. You can also provide a different default value that will be returned instead of None:
value = d.get(key, "empty")
literally the accepted answer ^
 
You could format.
 
I also disagree with taking action in the middle of an ongoing discussion on what to do with a post, but I'm sure that's just because I'm a pleb and don't have a gold badge
 
@AndrasDeak For this question though, the OP would be better with d.get(key, key). Not obvious.
 
wim
I don't know, it's a stretch and a bit of a leap for a beginner to see that they can also use a variable for the default. I think it's better to have the more tailored answer from @Craig
 
yesss, one more answer
hope we'll get some more
 
12:14 AM
@wim you just reopened a pedestrian question which has been asked a million times before... if you didn't think the target was good enough, you could've found a better one
 
wim
So if there is a better dupe, find one. No harm in the question remaining open in the meantime.
 
Less harm than leaving it closed and editing the dupe target list?
not taking action while we ponder seems to be the least invasive action
not to mention basic courtesy :P
 
I'm sorry to have caused so much fuss. My point is that the best answer is to do something that isn't made clear in those dupes. Specifically, that by using value=d.get(key, key) the OP could eliminate the conditional and simplify his code.
 
The policy I follow is
1. Close the VLQ with a "good enough" dupe
2. If people disagree, find a more pertinent one and edit the list.
 
I can't find a dupe that shows this.
 
12:18 AM
@Craig it's really not your fault, you should always feel free to challenge moderation actions
(though I really don't see why "d.get(key,default) # but OMG default is now key" merits a new set of Q&A)
 
@cᴏʟᴅsᴘᴇᴇᴅ Why do I have a feeling I am faster than you at finding questions?
 
Well, regardless, my answer is there is the OP wants to use it.
 
@Simon You mean, finding questions to answer?
 
Yep. I saw that question with the help() before you even commented and was considering getting links for an answer
 
Anyone here have an opinion on Kotlin? I like what I've seen so far, but I'm not sure if I really want to write a full program in it; it might be a little too close to java for me
 
12:23 AM
isn't that one of the android languages?
 
@cᴏʟᴅsᴘᴇᴇᴅ Funny I was going to say try using the docs but I won't bother now.
@AndrasDeak Possibly.
 
yeah, it is
 
Indeed it is
 
I saw a really off-topic Kotalin question today.
So I'm no longer reading. :p
 
@Simon I'll answer a question if I feel satisfied answering it. Which means anything that isn't answered in a single line, and anything that isn't help desk coding (pandas is an exception)
 
12:25 AM
Hehehe It is probably answered in those two lines though.
 
@cᴏʟᴅsᴘᴇᴇᴅ why is pandas an exception?
 
Hence, the comment and not the answer ;-)
@AndrasDeak I'm trying to improve my data crunching foo, so as far as pandas and numpy are concerned, if I can answer it, I will
As long as it isn't a dupe, of course.
 
I hammer those like anything
 
Well said!
 
12:27 AM
it's hammer time
 
Oh well, time for bed. Rhubarb, fellow snake charmers.
 
Quite fun, answering those.
 
rbrb, Rawing
 
@Rawing rbrb
 
wim
12:32 AM
@Craig Yep, I agree 100% with that.
The close-police have now hammered it anyway, but at least you got a few upvotes and an accept for your efforts.
 
both of which are probably unrelated to the closed/open state of the question
 
wim
@cᴏʟᴅsᴘᴇᴇᴅ Your policy is somewhat discourteous to the asker, in my opinion (and it's not a very low quality question).
Quite a decent question for a n00b
 
If the asker doesn't invest effort into their question with research and an [mcve], then they shouldn't expect much in return. But that's not to say that I go around indiscriminately hammering questions. Most of the time, I'm on the mark, and the question really does deserve closure.
 
wim
12:50 AM
Python 3.7.0 beta release end of this month
 
Yay
 
wim
ooh, new builtin function breakpoint()
 
after a cursory glance at What's New it seems I won't use anything from there
 
wim
I'm pretty surprised the blatant attr's rip-off got accepted
 
the data thingy?
 
wim
12:54 AM
yeah
 
It seems a niche feature I worked on will miss the feature freeze point
 
@wim you make it sound sleazy, but looking at the corresponding PEP made me think that they're honest about it being similar to attrs
 
wim
@vaultah what was that?
 
A niche feature ;)
 
wim
...
 
1:02 AM
I keep hearing Sean Connery's voice saying "very nishe"
 
1:18 AM
I've suggested an edited for a tag and it's the first time I've done this so I'm a little nervous.
I give up thinking of a title. I think I'll put "If I my posts have been helpful remember you can up-vote or accept" somewhere on my profile.
Or I'll give it further thought.
 
1:34 AM
Some would think you're giving it a little too much thought.
 
Like my brains is about to explode? Yes I would say that's immanent
 
Yes, you're not updating your tinder profile
So, relax.
 
@cᴏʟᴅsᴘᴇᴇᴅ I'm not that desperate.
Heck. I'm just going to be reckless and just go ahead and do it.
Done (phew).
 
2:02 AM
Rhubarb all. Thanks for the suggestions.
 
2:25 AM
hey are any of you guys familiar with tkinter?
 
2:47 AM
Hi. After dong some research this seems to be the way to slice duplicated rows in Pandas:
merged_df[merged_df.duplicated(subset=None, keep='first')]

I'm assuming the order of the column values would have to exactly the same for me to get a duplicate hit. Is there a trick to find duplicate rows if I don't care about the order of the values like the case below?


col1 col2 col3

1 2 3
3 3 3
3 2 1 (duplicate of first row)
 
 
2 hours later…
5:15 AM
Hi
I was wonder if there is a package to open password protected xlsx in Debian 9
I have the file password
But all I have found is about Win32
I can't use Windows
Will be awesome, I love Windows, but I can't
Would* be
 
Just a thought, could you copy the file then do as suggested here?
4
Q: Working with Password Protected Excel Sheets in Python on Linux

Jacobr365The problem is pretty simple. Every week I receive a bunch of password protected excel files. I have to parse through them and write certain parts to a new file using Python. I am given the password for the files. This was simple to handle when this was being done on Windows and I could just im...

I saw you actually responded to that lol, sorry!
 
Okay I have used unoconv
But doesn't works
I'm denied to use Windows. Runtime Exception, Office probably died(lol), unsupported URL "type detection aborted"
So.
That's what I got
unoconv -p 1234 -f csv ./Something.xlsx
Am I wrong?
Running in Root or normal user, is the same output.
 
Can you use wine at all?
 
Or if would be a way to save xlsx without password (using file password to open of course), to read it normally..
Wine, i've heard that
But I don't know how it works
Some people are saying that it's possible to install Win32 package with wine, but ...
Mind blow.
 
5:31 AM
It's been a long time since I used linux to be honest. Hopefully someone who knows more will chime in
 
Thank you for your replies.
 
@cᴏʟᴅsᴘᴇᴇᴅ eh...
 
 
2 hours later…
7:27 AM
cbg!
 
cbg
 
8:07 AM
cbg
 
 
1 hour later…
9:07 AM
cbg
 
cbg
 
9:21 AM
cbg
 
9:47 AM
cbg
 
cbg
 
Has anyone know the cause of an error:
ConnectionRefusedError: [WinError 10061] No connection could be made because the target machine actively refused it
when running only local files?
Does anyone*
Nevermind that's probably a shit half question. I'll keep poking it.
 
I've seen this error when trying to connect to a redis server on my local machine and the when said redis server was down. I'd then go and restart the redis server and problem solved
 
it isn't running on a dedicated server. it's being tested from c drive
 
so it depends on what you are trying to connect to and whether that service is actually available
 
10:02 AM
@Bonstark When doing what exactly? That error could be anything unfortunately.
 
Really sorry, I had forgot to edit out a .quit() time for a break. Thanks for the suggestions.
 
@wim “More than 255 arguments can now be passed to a function, and a function can now have more than 255 parameters.” – Finally!
Sep 22 '17 at 12:38, by Kevin
My original use case was to use it in a pattern that I pass to re.split, so no characters would be left out of the return value. But it turns out that split requires a non-empty pattern match, so it wouldn't have worked anyway.
@Kevin re.split() now supports splitting on a pattern like r'\b', '^$' or (?=-) that matches an empty string.” – \o/
@Kevin So your example from back then now works:
>>> re.split(r'(?<=\d)(?:\B|\b)(?=.)', 'foo1 bar2baz')
['foo1', ' bar2', 'baz']
 
10:20 AM
Amazing! Maybe someday we'll even get unicode character groups in regex
 
 
1 hour later…
11:23 AM
Hey guys,I'm trying to order Title objects with its foreignkey_set's objects that has created in the last 24 hours in django, this is the function:hastebin.com/gayuxagowe.py
But instead of ordering it by how much objects created in the last 24 hours, it sorts it according to the total number of entry objects
 
 
1 hour later…
12:33 PM
recbg
this is what pivot displays are for
 
wbcbg
 
got myself Room/6 in my side display :D
 
true productivity :P
 
@Antti So if I post an annoying GIF now and the room continues to be as noisy as it has been today, then you will constantly see that GIF for the rest of the day?
 
oooooh let's try that
 
12:41 PM
Searching for “annoying” on giphy unfortunately yields mostly GIFs of annoyed faces.
 
:D
my face
@poke see the room rules :P
 
awww, I was too slow
too bad
 
@AnttiHaapala What exactly are you referring to there? :P
 
I present you § 5
 
12:45 PM
it doesn't overrule § 1
 
Not sure about that
 
'twas a nice kitty
https://chat.stackoverflow.com/transcript/6?m=40711797#40711797
needs 1 more vote ^
thanks
 
1:11 PM
@poke Ooh, nice. Guess the dev team is reading my messages :-P
I have a feeling that the answer to python tkinter pop from a list, using string is "you need to do variable=list1.pop(int(dog)), because text box contents aren't automatically converted to integers just because they contain only digits" but without an mcve I'm not interested in taking that particular shot in the dark
Type shenanigans seem most likely to me since OP says his code worked before integrating Tkinter. So going from list1.pop(3) to list1.pop(variable_that_contains_the_character_3_and_not_the_number_3) is an easy enough mistake to make
 
1:26 PM
@Kevin I like how invested you still are with bad questions.. I open the question, see the list1.pop(**dog**)#This is where it goes wrong and instantly think “close vote and close tab”
 
Bad questions are all my children and I love them in spite of their myriad flaws
 
That’s cute. And also sad.
 
That's basically my brand.
 
Have you tried git status? — Jim Wright 29 mins ago
As @JimWright said, you can use subprocess to capture the output of git status and build your logic out of it — F. Leone 28 mins ago
That’s not exactly what Jim said, but okay…
 
1:52 PM
this question made me laugh and then cry
and that answer makes it even better
 
Hmm, can dyslexia make you misread a "b" as a "p", or is it usually limited to y-axis mirroring?
Wikipedia has failed me on this one
<mean joke> All of the people with first-hand knowledge of the topic keep going to wikidepia, presumably
Google suggests u/n reversal is fairly common, but doesn't mention b/p at all
 
@Kevin It’s probably tourette syndrom
 
2:21 PM
Cabbage
@Kevin Maybe. When one of my sisters was very young she would invert "W" in her surname to "M".
 
cbg \o
 
Mm hmm. Most of the google hits I looked at were more interested in reversals that young children make in the process of becoming literate, rather than the errors that adult dyslexics make. So I'm on even shakier ground than my previous message implied
 
@Kevin Relevant: bash.org/?330261
 
Classic.
Reminds me of a humorous screenshot of a text convo, which I can't find right now, but which goes something like:

Alice: luv ya <3
Bob: Love you too 3>
Bob: Hmm that's not quite right is it
Bob: Ɛ>
Bob: there we go.
Alice: what the heck
 
@Kevin That sister is still a little bit dyslexic, but not as bad as her dad (my step-father); neither of them are great spellers, but Dad is definitely worse. I'm also a little bit dyslexic, but I only reverse adjacent letter pairs, (so when I write I generally print rather than use cursive, since it's easier to insert letters when you print) and I've always been a good speller.
And when I type I occasionally type the wrong word, even though I know the correct one. :)
 
2:34 PM
14
Q: Take the 2018 Developer Survey

Rachel FerrignoIt’s that time of year again—the annual developer survey is now open! The survey will be open for three weeks starting today, and will tentatively close on January 26th. As in previous years, anonymized results of the survey will be made publicly available under the Open Database License. We ...

4
 
I have no idea if this is just regular human experience, but I have trouble counting adjacent repetitive icons when there are more than, say, five of them. Like, I don't know how many hearts I have when I play Zelda.
 
uh
 
I could count them if I held up a pencil or something just under the icons. My uninformed opinion is that without an obvious external point of reference, I lose track of which hearts I already counted when I saccade from one to another
"when my eye moved two degrees just now, did I jump from the fifth heart to the sixth, or from the fifth heart to the seventh?"
 
Hmm, that only happens to me with many items next to another
 
It just so happens that "many" for me is like seven
I bet there's a "dys[latin root word]ia" term for this
 
2:45 PM
probably
and if not, there’s still probably a German word for it.
 
And if there isn't one today, there can be one tomorrow
 
“How many monitors are set up at your workstation?” – That’s kind of a dismissive question for people with really large monitors…
 
Well how many?!?!?! ehhh :D
"Which of the following libraries, frameworks, and tools have you done extensive development work in over the past year, and which do you want to work in over the next year?" Still no Flask this year either :\
 
"What is the total combined surface area of the front faces of all of your monitors?"
 
My monitor at home is way larger as the combined area of my multi-monitor setup at work (which I hate because of borders between monitors)
@MooingRawr Oh, good point! Went back to that question and added it to my extra list
 
2:50 PM
So you don't full screen your windows.... and you have little one floating around :( ?
 
If you have a VR headset, you can have however many monitors your GPU can render
 
That would drive my OCD mad if one window is slightly larger than the others.
 
Maybe poke doesn't have any windows at all. #notAllInterfaces
 
"Which of the following methodologies do you have experience working in?" I don't even know more than 2 of those methods :(
 
@MooingRawr Depending on the program, yes. At certain sizes, maximizing a browser window is just a terrible idea.
 
2:52 PM
@Kevin He must have some sort of ui going on... or why would he have one giant cmd on screen lol
 
Methodologies I use at work: OOP, functional, holistic, crane style
 
“What version control systems do you use regularly?” – “Copying and pasting files to network shares” – ouch.
“Over the last year, how often have you checked-in or committed code?” – even more ouch
 
@poke The first one is me... along with git ... we use both :( don't version-update shame us please :(
 
[rings the shame bell]
 
“I enjoy seeing online updates from companies that I like” – What are online updates?
 
2:54 PM
meaning if there's a new game coming out and they release new info through their ads
new DLC comes with X and now Y, is what i would imagine
 
ah
 
Maybe they mean like when the Wendy's twitter account says rude things to people?
 
Rude yet true... :P
 
update: still sassy
 
"What do you think is the most dangerous aspect of increasingly advanced AI technology?" "AI" youtubers calling each other out. A serious answer? Ai taking all our jobs :(
 
2:56 PM
hello all, I have a question
 
cbg
you've been here before just ask your question, unless you are just announcing you have a question and you don't intend on asking it, well then well played.
 
I want AI to take all our jobs, provided the end result is "everyone has 23.9 hours of leisure time per day" and not "everyone digs ditches so they can barely afford enough food to keep themselves alive"
3
 
@MooingRawr Serious answer for both of those questions: Singularity. It’s both scary and exciting.
 
@poke really? why singularity is scary for you ?
@Kevin well yeah that's the dream have robots provide for humans so we don't need money. :\ but what will you do with the other .1 hours? is it to devote our love to AI ?
 
Because at that point, we are no longer in control of our machines.
 
2:59 PM
Suppose an AI attains virtually unlimited processing power. It uploads your mind to its mainframe and spends a couple spare cycles simulating torturing you for a billion years, just to see what happens if you torture a human for a billion years.
 
@MooingRawr 0.1% for rebooting because of memory leaks obviously.
 
Then after it has completed this task in one real-world second, it does it a billion more times in parallel just to make sure the result replicates
 
Do I remember the suffering? hmmmm, what do I get out of the suffering? hmmmm it's like that anime power where they can suspend a human mind to do whatever they want but in the actual time only a fraction of a second has pass.. interesting though
 
i wrote a program with a fuction to calculate def enegy_consumption()
the programe goes well into l this the function and calculate energy_consumption with right expected result in print.
The problem is when i dump the result in json file i don
'i wrote a program with a fuction to calculate def enegy_consumption()
the programe goes well into l this the function and calculate energy_consumption with right expected result in print.
The problem is when i dump the result in json file i dont get the result i get only none
 
you know you can edit your post with in a few minutes right ? you can also delete your posts with in a few minutes too
 
3:02 PM
@AhmyOhlin Wild guess: your function prints the result of the calculation, rather than returning it.
def a():
    for i in range(10):
        print(i)

def b():
    result = []
    for i in range(10):
        result.append(str(i))
    return "\n".join(result)

print("Running a.")
a_result = a()
print("Done running a.")
print("Return value of a:")
print(a_result)

print("Running b.")
b_result = b()
print("Done running b.")
print("Return value of b:")
print(b_result)
Result:
Running a.
0
1
2
3
4
5
6
7
8
9
Done running a.
Return value of a:
None
Running b.
Done running b.
Return value of b:
0
1
2
3
4
5
6
7
8
9
Here we see that the value returned by a function is unrelated to the values you print within that function
 
Now I want @Antti’s monitor
 
@Kevin
here is the script you can run it by you

import json,os
actual_value=8


def energy_consumption():
    if not os.path.isfile("energy_consumption.json"):
        return
    with open("energy_consumption.json") as feedjson:
        json_data = json.load(feedjson)
        #json_data.close()
    b= []
    for i in json_data['gas_counter_nr1']:
        #print("value:" + i['device'][-1] )
        b+=[i['value']]
    print("Json_stored_energy_value_list:",b)
    last_value= b[-1]
    print("last_value:",last_value)
 
@poke what's an Antti's monitor ?
 
Yep, looks like my guess is correct. You're not returning anything from that function.
 
3 hours ago, by Antti Haapala
this is what pivot displays are for
 
3:05 PM
Now that I've pointed out the difference, you should be able to write the correct version
 
DSM
Monday morning cabbage for all.
 
cbg DSM. are you able to take some time out of your morning for the SO's survey ?
I personally wanted to know your answer to the AI questions, since poke and kevin's answer provided a surprising answer to me.
 
"Man it's kind of a pain to rewrite a function to change all of its print calls to result.append calls. Can't I just redirect stdout to a buffer or something which I can retrieve later?" Yes, you can. But it's even more of a pain to do that.
 
@kevin
is this answer for me ?
Yep, looks like my guess is correct. You're not returning anything from that function.
 
@AhmyOhlin Yes, all of my last six messages are for you
 
3:10 PM
"In your opinion, what is the most exhausting part of searching for a new job?" Getting rejected.
"In your opinion, what is the most exciting part of searching for a new job?" hmmmm I wonder what it would be... If you guessed getting interviewed with programming/algorithm questions, you would be correct :D
 
SPOC management
Study it planit, operate it, check it
thanks you. i don't understand good what do you mean Kevin?
i should return a variable from the function
?
 
Yeah. Additional reading:
25
Q: How is returning the output of a function different from printing it?

ThanxIn my previous question, Andrew Jaffe writes: In addition to all of the other hints and tips, I think you're missing something crucial: your functions actually need to return something. When you create autoparts() or splittext(), the idea is that this will be a function that you can call, ...

 
ok thank you. i dont really understand how functions work
 
“Please rank the following items by how important it is to include them in the [job offer related] message”“Specifics of why they think I'd be a good fit for the role (ex. my prior work history, projects on GitHub)” – Oh wow, so much #1. This is the most annoying thing ever when they “believe I’m a good fit” because… I have no idea. Apparently, they found my name inside a copyright notice on a .php file from 2006… >_<
 
ah i see it. i have to wirte beside return the variable energy_consumption
write
 
3:18 PM
@poke #firstWorldContributingProblems
 
@MooingRawr I think that won't happen for a while.
 
@Kevin AFAIK 5 is the typical number you can count by just looking at it
I definitely can't image-recognize more than 5 items without counting
 
@AndrasDeak Yep, it's around 5 or 6 for most people, unless the items are arranged in a pattern.
 
@Kevin. it Works now. Thank you Kevin for the link
 
Good to hear
 
3:23 PM
@PM2Ring :D but maybe we will get so advance that we can just tell the "ai" in regular everyday language, what we want and it will "code" it for us. (maybe it will ask some questions along the way)
"Which of the following do you currently identify as? Please select all that apply. If you prefer not to answer, you may leave this question blank." I wonder how many Apache helicopters this year will yield.
 
this is the input now Kevin
{
"value": 101.68316831683168,
"device": "gas_zaehler",
"measure": "energy",
"energy_consumption": 0.09900990099009732

that wroks well
 
“On days when you work, what time do you typically wake up?” – Ugh. Waking up, my arch nemesis.
 
@MooingRawr something something declarative programming
 
DSM
@MooingRawr: I finished it, but I don't have anything interesting to say about AI, I'm afraid. I was really interested as a kid but was born at the wrong time, and so grew up continually being told we were only ten years away from Amazing Things, which never seemed to materialize. #wheresmyflyingcar
 
> but was born at the wrong time
;_; oh god that hurts to hear
 
3:28 PM
that's OK, you millennials are immune to these problems
whadya mean? :P (thanks)
 
@AndrasDeak #snowFlakes :(
#tooEarlyForSpaceExploration, #tooLateForEarthExploration, #JustInTimeFor_____
 
healthcare
 
i have important question about job.
im electrical engineer student and i write now my thesis about programming with python but before , i had never heard something called python.
Do you think guys i can find a job as programmer and improve my programming skills or should search a job in other electrical branches?
 
There's a kind of a Pascal's Mugging going on with my AI concerns, because way out in the long tail of the bell curve, there's a 10^(-1000) percent chance that I'll personally experience 10^(10^100) units of unhappiness, which from a naive utilitarian point of view, is something worth worrying about
 
"NameError: json.dumbs"
And the answerer got 6 upvotes. :-|
 
3:31 PM
Someone linked it earlier
 
and they dumped down the answer
 
@AhmyOhlin Bluntly, you need about five more years of learning before you'd qualify for any programming job
 
@Kevin or get lucky :P
 
I think @AhmyOhlin is trolling, he/she has several Python questions and answers on the main SO site.
 
No Iam "he" not trolling. all this questions which you see are related to my thesis
 
3:34 PM
@MooingRawr "Do I remember the suffering? ". Not as such, but a mind that thinks it's you, and has no way of telling that it's not the original you, experiences the suffering. See Roko's basilisk
 
You're in deep trouble if you're trying to write a thesis and don't understand functions.
 
Morning cabbage
 
cabbage
garlic
 
Hmm, your first Python question was last February. If it took ten months to learn how functions work, then I reassess my previous opinion: it will take thirty years of learning to qualify for a programming job
 
Funnily enough, I got a software engineering job mostly in C after just one year of college where the only programming language I had been taught was Python, just did a really good job on the interview I guess, though learning C on the fly was fun all in itself. I'm only half way through my CS bachelor's degree and I've been with the company I'm working at for a little over a year now.
 
3:36 PM
If we're going to get hung up on matters of identity, let's say the super-powerful AI destructively uploads your mind to the mainframe by chopping it to pieces, and runs its billion simulations of you sequentially rather than in parallel, so you have a perfectly seamless continuity of experience
 
DSM
Now, now, sometimes learning is nonlinear. Sometimes people just need to get over a mental block of some kind.
 
Sure. Maybe put a month into learning how to learn, and then it drops from thirty years to six months, not including the month of meta-learning.
 
@DavyM software engineering is not electrical engineering
 
@AhmyOhlin to learn the technical skills for a programming job, you should wrote code every day for at least the next 300 days
 
@PM2Ring Pascal's wager eh....
 
3:40 PM
Hey cool! Python (mentioned in part 3) helped recover some really old BBC comedy
 
@Kevin and the month of meta-learning will keep serving you for anything else you go on to learn afterwards, whether on the job, or formal or independent study. Definitely worth learning how to learn.
 
Now the trick is, knowing what to study during your meta-learning session to maximize your learning gains. But If you haven't yet learned how to learn, how will you learn how to learn how to learn?
 
DSM
@WayneWerner: heh. I used to work at Queen Mary! Small world.
 
Whew, I just got trapped in a Learning-ception loop there for a moment Kevin. Learn how to learn how to learn how to learn how to...
 
@Kevin learn recursion first
 
3:44 PM
Optimistically one might hope that you can use your inherent baseline learning ability to multiply your learning ability by 1.05, and then use your now-105% learning ability to multiply your learning ability by 1.05^2, etc... But without a sufficiently high baseline, you might end up multiplying by 0.95 instead
 
@WayneWerner I used to watch Morecambe & Wise as a a kid. It was pretty cheesy even back then. I don't know if I could cope with watching it now.
 
It's like rocket physics: you need X tons of fuel to lift Y tons of cargo, but then you need Z tons of fuel to lift X tons of fuel, and if Z>X, you're never leaving the planet
 
DSM
Solution: zero-mass fuel.
 
i learn python myself and iam ok with my basics skills. Iam not a programmer but i did research and i resolved all the tasks of my to do list. a lot of people will not do that without have the basics. my opinion that every one is able to learn. its not question of 1 or 5 years. it's question about your motivation
@Kevin. Iam working on several plattforms (Elasticsearch/python/Kibana/Logstash/Meteor). everything is new for me. my first question was in feb but i dont work everyday with python. in feb was an internship for 3 months.
 
@AhmyOhlin Also, you need to work on improving your English. That will make it a lot easier for you to explain your problems on sites like Stack Overflow, since English is the dominant language in the international programming community. That will also make it easier for you to understand programming documentation, since that's mostly written in English.
I suspect that some of the problems that you're having with Python are because you have misunderstood important things in the Python textbooks, tutorials, and documentation that you've been using.
 
DSM
3:52 PM
There's a quote like "what I say twice is true" but I can't remember where it's from.
 
Lewis Carroll, maybe?
 
> Just the place for a Snark! I have said it twice:
That alone should encourage the crew.
Just the place for a Snark! I have said it thrice:
What I tell you three times is true."
 
DSM
Good call, both of you.
 
@PM2Ring That is true. i will work on it
 
I've quoted it once or twice myself in the past, having picked it up from (IIRC) the blog The Old New Thing, which occasionally uses the device to drive home a point that is absolutely definitive
@DSM Perhaps a rope-and-pulley system, with a really really long rope.
One might view tutorials and SO as being like that: if you can't take off with your own thrust, let those more experienced than you yank you upwards to their rung of the ladder
 
3:57 PM
Google says Frederick York Powell, but I don't recognize that name. So I'm pretty sure I was thinking of the passage Kevin quoted.
 

« first day (2641 days earlier)      last day (2300 days later) »