« first day (2671 days earlier)      last day (2502 days later) » 

14:00
Read what I linked, then read what I've told you so far. We can continue if you start showing interest in my help.
Sprouts
Here we see the importance of an MCVE
If we were all able to run your code on our machines and see exactly the error that you're seeing, without us having to manually transcribe a csv from a screenshot, then there'd be none of this frustration of "there must be an error in spot X. No, not that spot, more to the left"
@ZackTarr I won't hammer that because your dupe target is rather old, and some of the suggestions there may be obsolete, or at least a bit suspect. I'm not an expert on doing fancy importing, so I'll leave it for someone who is.
It's the difference between tying your shoe with your hands, and tying your shoe with chopsticks
@ZackTarr BTW, rather than making a plain comment when you find a dupe target you should flag the question as a dupe and the system will write the comment for you. And when asking for a dupe closure in here use [tag:cv-pls] dupe URL; that way those of us running cv-pls userscripts will get notified.
14:10
Yep @PM2Ring I did try to put a tag on there. I will make sure to use the cv one. The tag messed up on me as it was a double line message.
o\ @OldTinfoil
Ahoy @AndyK !
@OldTinfoil how's tricks?
Good thanks! Back and working on some Python. Tend to lurk in here when I do that :)
Rather than some horrendous BASIC variant that was foisted upon me ;)
What about yourself?
cabbage
So it's not even been a day and we're already seeing "Live" Tesla Roaster footage with "aliens" edited into it.
14:25
That's dumb. There's no particular reason for aliens to choose to reveal themselves during yesterday's launch and not during any of the zillion launches we've had before hand. It's not like the Vulcans revealing themselves to us once we developed warp technology. Simultaneous upright landing technology is real neat and all, but it's not exactly the one thing we needed to take to the stars.
@Kevin Maybe they were afraid Elon might start sending flamethrowers in space!
Twist: the aliens are anarcho-capitalists and were waiting until a non-government entity became spacefaring
are those the same ones as the neo-liberalists?
"Take us to your leader. No Washington fat cats, please, your market leader."
\o cbg
14:28
Do we know that bitcoin was invented by a human?
"human"
Maybe it was some rogue AI trying to get it's own currency started, you know, for ease of transacting with other AIs.
@ArneRecknagel I can never keep the names straight. Whichever group it is that favors overthrowing the government and maintaining order with a series of carefully constructed contract between regular people agreeing not to loot one another, enforced by autonomous military forces which have not the monopoly on force but quite a lot of force nonetheless
The political relation of hostility is really interesting, in so far that groups will get along better the closer their interests are aligned, but will also hate those most that are exactly the same as them, minus one small issue
I've heard that explained as "As an American, the person with a lifestyle most dissimilar to my own is a traditional Australian aboriginal. But there's no point in hating them because they're twelve thousand miles away from me. Easier to hate my neighbor, who drinks pepsi instead of coke, that scoundrel"
14:38
plus pepsi is disgusting
I prefer hating on people who write more than 80 characters in one line
I prefer hating the people that say something is "dithered" when it is really just inactive or greyed out.
I prefer all-embracing love on the planet
@AndrasDeak I wish more people were like you
I'd hate them
rhubarb for a while
14:40
> So what makes an outgroup? Proximity plus small differences. If you want to know who someone in former Yugoslavia hates, don’t look at the Indonesians or the Zulus or the Tibetans or anyone else distant and exotic. Find the Yugoslavian ethnicity that lives closely intermingled with them and is most conspicuously similar to them, and chances are you’ll find the one who they have eight hundred years of seething hatred toward.
That's a really nice word to know
cbg
Anyone get an email to take part in: pluralsight.com/partners/stack-overflow/iq
No :( but Pineapples for getting it
I got it too, so everyone else here should get it as well :p
@idjaw Way ahead of you.
14:47
I need to check my spam filter :(
@Aran-Fey I got the same score o/
Nice! I got tripped up by the python -m question, if it weren't for that I'd have a perfect score :(
@Aran-Fey how long does it take?
Depends. Probably around 5-10 minutes, but if you read and answer quickly you can do it in 2.
good good.
14:52
is it multiple choice ?
I'm going to do it in 1
@MooingRawr Yep, 4 choices per question
oh it's timed and all that
nevermind
I'm going to have to take this one more seriously. I'll have to wait.
Yeah looks like you do get 1 free do over however.
The timer pauses after each question
14:54
that's helpful
serious idjaw, where he takes his general goofy head and put on a serious head instead.
I didn't know the name of the standard venv executable, and I got confused by iterables vs iterable 😶
@MooingRawr spoiler. It's the same head
@vaultah Huh, I'm glad I didn't get those questions :D
@vaultah standard venv executable? Are the questions based on py2 or py3?
14:55
@idjaw that particular question was about Python 3.3
ok
There was not a single Python 2 question, IIRC
do you have to post your score if you aren't happy with the results?
it doesn't do some auto posting to shame you if you have an off day?
ok good
14:56
Nope. In fact it's somewhat difficult to even find the button that posts your score on SO
because I have trust issues with the internet.
@Kevin Nice.
@idjaw If you get a good score and want to post it, this might be helpful
[Off-topic] This is a fun interactive ride to gauge the vastness of "space", and seeing everything at relative scale joshworth.com/dev/pixelspace/pixelspace_solarsystem.html
Man, and I thought it was a long way to the chemist's...
15:04
this seems relevant
Clicking the "C" icon displays a message about the speed of light, and if you consider it too slow, to take it up with Einstein. But I could only take it up with him if I traveled backwards in time, by traveling faster than c.
That's some next-level "your call is important to us" maneuver. Die so that you don't have to deal with whiners.
DSM
DSM
Midweek cabbage for all.
cbg DSM
15:24
@MooingRawr I didn't see it in spam or email.
@idjaw If I can get "expert" then it can't be hard.
hm
I'm having what could be a stupid question, but no obvious answer in googling
I'm using a generator in a long-running response like this flask.pocoo.org/docs/0.12/patterns/streaming
how do you return e.g. a 500 from that?
from what exactly?
You can't.
like, you start streaming stuff, then you get an error
oh ok
15:27
The headers, including the status code, are all sent before the body.
hm, indeed
So you can't provide some indication that the stream broke based on that implementation approach?
If you know it's a 500 response initially, you can set the status code then, but not after.
gotcha, I need to rely on a custom protocol
@Aran-Fey Where is that button? I managed to post something, but it looks like it merely invites others to take the test, rather than showing a score?
15:35
@toonarmycaptain see this post: meta.stackoverflow.com/a/362760/1222951
@Aran-Fey Ironically, that's exactly what I did, but I don't see a score in my Devstory
@davidism thanks, btw :)
Huh, weird. The assessment shows up, but without a score.
Just put down 'defies categorization" in your profile, then
A bug on their end, I guess? ¯\_(ツ)_/¯
15:42

Happy little Bezier curve

Mar 23 '16 at 17:58, 26 minutes total – 15 messages, 6 users, 6 stars

Bookmarked Mar 23 '16 at 18:34 by davidism

@Kevin was just looking through the old bookmarks and this made me smile.
I'm glad my weird side-projects have some kind of positive effect on the world :^)-)-<
16:02
cabbage
@AnttiHaapala What am I looking at there?
@ArneRecknagel Hi, Sublime Text is a text editor. I bumped into a video that explained why I was having such a problem. I had to install a third part package to get it running. It is now working fine. Thanks for response.
Happy to hear =) and I hope you have a good time using python
Yes, Python is interesting. I am writing small programs and it is coming out fine :D
16:20
Did anyone bother to read Pluralsight’s terms and conditions for this thing?
Do I have to read it?
@poke They don't want your soul, but a sweat sample taken via keyboard, and at their request, your left kidney.
So the usual, huh
@poke the "that's a bug" :D
Stupid question, but how do I make sphinx respect my line breaks? My rst looks like this:
Lorem ipsum dolor amet



Foo bar I'm a firetruck



.. toctree::
   :maxdepth: 2
   :caption: Contents:

   classes
   functions
Should I be concerned that they consider me "expert," despite one misclick and a couple of misreads/stupid errors? If that is their assessment, are their courses really worth my time?
16:26
And the result like this:
@Aran-Fey spaces before newline? Markdown might need that, dunno
I don't think there's a way to do it in rst.
wim
wim
try beginning the lines with a vertical bar |
Spaces didn't make a difference
@wim Aha! Prefixing empty lines with | did the trick!
I need to try this with a different theme though... it's possible that this makes a visible blockquote
Hmm, seems to work fine with all the built-in themes. Thanks, wim!
16:48
Stupid Pluralsight test…
wim
wim
.. just saw the confused cat, lol
What the yam? How can someone with 11k rep not know that you can iterate over a range multiple times?
btw the line first_list = list(sequence) will exhaust the range and sequence will be empty from then on. — quamrana 3 mins ago
The lines between iterables and iterators are blurry sometimes. I can't blame the guy. *shrug*
17:05
@PM2Ring how much of that rep is from ?
Fair point, but range / xrange is one of the first things you learn about in Python, and it gets used an awful lot, so IMHO Python coders ought to know the basics of how it behaves. OTOH, not knowing that it's both possible and efficient in Python 3 to do stuff like 7 in range(1, 10, 2) is excusable.
@Code-Apprentice Dunno, but he's got a bronze badge in Python, and his profile says he's a senior software engineer. OTOH, he's been a member for 9 years, and 11k isn't a lot of rep for that time span.
@PM2Ring Is it more efficient than 1 <= a <= 10 and a % 2 == 0?
@Code-Apprentice Not sure. I think so. I guess I could write a timeit test, but it's 4:13 AM here, and I'm starting to get sleepy. ;)
wim
wim
11k rep is nothing and it comes from C++
excusable mistake
It's 10:14 here and I should be working...
17:15
And that should be 1 <= a < 10 and a % 2 == 1 :)
17:36
there are two difficult problems for computer programmers: concurrency, naming things, and off by one errors
Most of my rep is from go, a language I don't code in
some of those pluralsight questions were misleading
and one of them was extremely stupid
why the hell would you assess someone on knowing whether you write setUp or setup for unittest
how does that yammin' prove your python knowledge?????
that is $$$$$$
"How do you set up your unittest"
`import pytest`
"you're hired"
seriously....people who write questions like that need to be yelled at
hahaha
17:46
does it remind you of school all over again :D ?
ugh....I got in to the expert range...but lower than I wanted.
frustratingly enough I accidentally chose two answers
there should be a select then confirm
instead of just clicking and it taking it right away
time to write your own tests, with asserts and dependency
you get 1 free do-over :)
I did it
the first one was higher than the second
oh :(
17:55
I'm not happy with either even though it is in the expert range.
screw that noise. I hate multiple choice
wim
wim
@KevinMGranger vi conftest.py
conftest is my homeboy
@idjaw I got expert too, even with some mis-clicks, or mistakes when I knew better. I'd call myself much more of a novice/intermediate than an expert, so I wouldn't give it much credence.
some of them had tricky wording that threw me off
and once I clicked I immediately had my OH NO moment
but too late. It was locked in.
exam anxiety is coming back....the PTSD of school is returning
I hate tests
Ok, seriously, what the yam is autodoc doing.
My code:
> def __init__(self, parameters = None, return_annotation = inspect.Signature.empty):
Output:
> class Signature(parameters, return_annotation=None)
?????????????????
I'm done, I'm writing my own autodoc.
18:04
Hi, I have a quick question.
I am using a context manager for reading a text. The lines are returned as byte type even though the format is set as "r"
with open('text.txt', 'r') as t:
@AminGhaderi The r indicates opening the file in read mode, rather than write mode etc, not a format, or am I confused?
please post a pastebin of the snippet of code with this context manager
@toonarmycaptain You're confused. 'r' mode is the same as 'rt' mode, which opens the file for reading in text mode.
Also, what is the format of your file?
If only r is given, the format is implicitly text. kevin'd
18:11
It gives me this error:
print((line).split('|'))
TypeError: a bytes-like object is required, not 'str'
Ah, so you lied to us before. The zipfile docs are clear that it'll be binary in that case
Please. It's called "bending the truth"
@AminGhaderi next time, please use the code formatting so the code can be read easier. Also, ensure that the code is formatted as it is in your editor so we have a good indication of how it looks like on your end.
To use the code formatting properly, your code has to be sent as its own separate message
So when you set your code just hit "ctrl-k"
with zipfile.ZipFile(r"zip.zip") as z:
    with z.open("txt.txt",'r') as f:
        for line in f:
            print((line).split('|'))
got it. this will be the code
The ZipFile.open documentation doesn't bother mentioning if the file is opened in text mode or binary mode, but it does at least link to io.BufferedIOBase, which is a byte stream
18:16
@Aran-Fey yes it does?
@KevinMGranger where?
> Access a member of the archive as a binary file-like object
Ooh, I like the new room name
ooops, I was reading the 3.5 docs
Ooh you're right, that is a recent add. Seems important to mention, strange they didn't before
18:21
What's the not-stupid way to turn a byte stream into a text stream? i.e. something better than line = line.decode()
@AminGhaderi Ok. So you need to find out what the encoding is of that file, and decode it to text. If it's UTF-8, you could do line.decode().split('|')
I'll give you both a hint: it mentioned io.BufferedIOBase, so keep looking in that module
I'm going to argue that just decoding the line isn't necessarily the best way because of how newlines would need to be handled
You make good points, KMG.
@PM2Ring Ok, I think I get it now. But 'r' is read mode, 'w' for write mode, 'r+' for both, right? I didn't realise there was an implicit format.
18:27
Yep yep. It's important because of universal newlines
I don't think zip files store metadata like the file encoding though, do they?
@MartijnPieters You have quite the fan :-) stackoverflow.com/users/5904928/jr-martijn-pieters
PYQT4 question... So I am trying to use this script to get some of its code to work in a different script. However I cannot get the full functionality of the icons from their program. http://ftp.ics.uci.edu/pub/centos0/ics-custom-build/BUILD/PyQt-x11-gpl-4.7.2/examples/desktop/systray/systray.py
Sadly to test you have to set up the same /images folder they have which you can get too by going up a dir in the URL.
Also any clue as to what the import systray_rc is trying to do? I dont see that file in there. I do see the qrc file and copied that to my working dir on my PC but it fails to import.
@ZackTarr I guess there aren't any PyQt experts in here at the moment. I think 1 or 2 regulars do know it, and hopefully they'll see your question when they skim the transcript.
18:42
Yep. Thats what I figured. No worries yet, Im still trying somethings. But if anyone does know it feel free to ping me :^D
It makes the system tray icon but there is no image, only a blank place holder.... :(
wow
Martijn needs to trademark himself. Start making royalties
hey
im currently looking for projects to work on to improve my skills
@Permian cbg
but i dont really know where to start
@Permian Any areas you have in mind?
18:49
yeah django development preferably
Are you looking for something to walk you through django or are you trying to just make something and self learn?
wim
wim
the django tutorial is good
do that
There you go @wim has spoken :D
no ive been through every django tutorial
wim
wim
then what needs improving
18:51
but its not replacement for working on a real project
no**
@PM2Ring I used the .encode(). It didnt work, so it is apparently not a unicode format. It is a large code, dataset that can't be open with text editor to check its format.
@Permian welcome, please read our room rules: sopython.com/chatroom
Hit up GitHub and look up projects that hit keywords you are interested in @Permian.
checkout the code, run the tests. See how it works
when (in employment) you start altering things there and there
Learn test driven development
18:52
before starting a projects from scratch
@idjaw ah ok
We're not going to be able to help you the way you want here. You need to read tutorials, explore, and discover on your own.
its difficult
Yes, it is. It gets easier the more you do it.
That means youll learn alot though :)
The site that has the rules suggests some starting areas
18:55
@AminGhaderi Huh? Why did you use .encode? You have bytes, so you need to decode them. As I said, you need to find out the actual encoding. The .decode method will work if you give the correct encoding name, if you don't give it a name then it uses UTF-8 as the default encoding.
Does it really? I found something in the wiki's but it looks like its mostly just about learning python. Didnt know if you found something else @KevinMGranger
@Permian it is not easy. But it also should not be discouraging. It is challenging and if your interest lies in development, you can use that to motivate you to learn how to work around these challenges.
yeah the hardest thing i find is finding things to work on
(im not a creative!)
more of a problem solver
here is a project for you, that you can try. Make a very simple "social media" type of site for kittens and puppers
kittens and puppers post on this site
so you just make a website, that can store data, and can be interacted with with a login page
use test driven development principles and learn how to properly structure code and your project
have fun
idjaw what should I do :D ?
18:57
just be you. You're doing good at that
Just don't moo too loudly.
:D :O :I :S :\ :D <- my emotions just now.... didn't know how to take it so I'll take it as a compliment, ignorantly :D
it was a compliment.
\o/ btw idjaw, did you ever get around those udemy "classes" if so what was your experience like ?
Everyone should be themselves and do good at being them. Haters are gonna be haters.
I only did one. The Docker one and I loved it.
I can't speak of the other ones
19:01
OMG
I love that. I'm keeping it.
That's good to hear. I'm thinking of picking up the panda/data scientist one. and that's good news to the potatos for finding a new home :D
I'm planning on doing the postgresql one
I see a lot of mixed reviews for Udemy... so it's nice to ask someone first hand
is hackerrank any good guys?
Hello guys, I've recently worked on a new project. If you have some spare time, I would love to get some feedback. Here: github.com/heemayl/hat
@heemayl not familiar with linux OS, so I won't be able to play with your creation, sorry
Ive done a few of the Project Euler ones. They are pretty fun to do. And the simple ones dont take to much time either.
The harder questions near the end seem impossible unless you know more about math than I do.
@StefanPochmann oh dear.
@MooingRawr No prob :)
The "I consider {} as my Teacher.".format(my_profile_name.split('.')[1].strip()) is a nice touch.
19:09
What, not making a single mistake isn't sufficient to get the 300 score on the Pluralsight test
@MooingRawr potatoes, not potatos
@MooingRawr now is a good time to start learning
@MartijnPieters given the quality of the few answers I looked at, they didn't learn the right lessons from you :-)
wim
wim
19:32
oh man, don't look at the PyPI website's source code
you'll have to wash your eyeballs out
19:48
Py2exe issue. dpaste.com/0BB881R Any hints as why this isnt including my time library? I thought py2exe gathered all of them and put it in the exe?
Did you try running that code?
sleep isn't a module under time, it's an object.
import time; time.sleep() or from time import sleep
wim
wim
for once, py2exe is not to blame :P
Well then that explains a lot. Its been a long day! haha.
@AnttiHaapala Ah, now I get it! xD
20:03
@Code-Apprentice yeah, kinda busy these days. Maybe future me will pick it up :D
We have a productivity issue: ♬Ladies and gentlemen, this is the moment you've been waiting for♬
@vaultah that's bs. how did you manage to do it more than twice?
I did it twice
does it maybe take in to account the time it took you to answer?
because that is a bit crappy if that is the case
20:19
I suspect that they show the average of two scores
apparently they discard your previous
or at least the lowest of two
Q: How long will it take for me to find a project?
A: This depends on a number of factors, but many of our interns find a project around 6-8 weeks from the time the majority of projects are approved.
I've learned not to trust anything that is supposed to happen within that specific timeframe
That's a question from the career FAQ page for a certain company, by the way
20:25
@idjaw I wanna say that's more business over promising :\
20:42
hi all! would anyone know of a good RPC API design guide?
Found a new way to trip up autodoc: annotate a function with functools.lru_cache()! -_-

« first day (2671 days earlier)      last day (2502 days later) »