« first day (1586 days earlier)      last day (3365 days later) » 

8:01 PM
Here it is, on the common questions page
 
@DSM - I answered that at some point. Let me see if I can find it...
 
They're not named in github.com/mwaskom/seaborn/blob/master/seaborn/palettes.py#L85 unfortunately. You may be able to get the closest match though.
 
1
A: Modifying the built-in colors of matplotlib

Joe KingtonFor a lot of reasons, I think this is a bad idea... However, if you really want to do it, just modify matplotlib.colors.colorConverter.colors instead of matplotlib.colors.ColorConverter.colors. colorConverter is a singleton (well, by convention only) instance of ColorConverter that matplotlib u...

Oh, wait, I thought you meant make matplotlib's "blue" have that color
 
I assumed he meant "what's the name of the first seaborn colour, should I want to use it for reasons"
 
The First Seaborn Color? How did you know the title of book 1 of my upcoming epic fantasy series?
 
DSM
8:06 PM
I wound up just giving the colour I wanted (0.2980392156862745, 0.4470588235294118, 0.6901960784313725) a specific name. It's handy to be able to name them when I want to give a standard colour scheme (blue for men and purple for women.)
 
is there a "pythonic" way to do something like read file line by line while keeping track of line #?
 
user2555451
Use enumerate and iterate over the file object.
 
user2555451
for i, x in enumerate(file_obj, 1):
 
k
 
@Kevin it is your turn now, give me something, cause I have no idea what to watch..
..actually I can start the HP septology again, for the 11th time..
but I almost know all the dialogs from the whole series :)
 
8:20 PM
hmm
Incidentally, I finally got a mail-in Netflix account, so I can start working on my backlog of films that aren't on their web site (which is nearly all of them)
I dunno, Blade Runner? I don't think my brain supports the "name me a good movie" interface
I also can't do "name a book you have read whose title starts with 'O'" even though I have surely read many.
 
@Kevin seriously? I thought you'd know me better than that => ofc I;ve already watched it :)
 
All the films I watched that were good, were also famous. So if you want a good film that you haven't yet heard of, then there's not much I can do for you :-)
 
fair enough..
 
Most of the non-mainstream video media I take in is in the form of five minute short films on Vimeo (or similar). Maybe I should start keeping a list of the ones I like so I can share them.
 
8:35 PM
I started to watch all of them on Vimeo by genre
I almost finished all the ones
 
Likewise, Youtube has a wealth of student animation projects, some of them very good
 
Interviewed at Slack. They don't want to continue because I'd be remote 😶
^ That irony.
 
Way to not eat one's dog food :-|
 
Yeah.
 
I guess the fear there is, if the software gets a breaking bug, then they won't be able to contact any of their devs because their software has a breaking bug
 
DSM
8:43 PM
Okay, it's a bit of an odd juxtaposition under the circumstances, but outside of that context it's not crazy to prefer people on-site.
 
Yeah, every company has every right to decide that for themselves.
But a company building a single product, and that product being a persistent team communication and collaboration software for remote work…
 
How hypocritical I perceive it to be, depends on how much of their marketing copy advertises remote working as the way of the future.
"Try Slack if you think remote working is a good idea" --> fine
"Only dumb idiots don't support their remote workers" --> no-no
 
“Slack is a platform for team communication: everything in one place, instantly searchable, available wherever you go.”
 
DSM
That something is awesome doesn't mean it's awesome for everything and nothing should be any other way.. bicycle manufacturers are still allowed to take the car to work.
 
As long as the bicycle marketing department doesn't call drivers "earth-murderers", I agree.
 
DSM
8:47 PM
I feel like I should hire you to write copy for our next campaign.
 
oh shite... my accountant called to say I might have under-paid my tax
 
:-O
 
he might have mis-calculated something
 
DSM
Donations for the puppy will be accepted c/o DSM Inc., Canada.
 
this guy is certainly taking a creative approach to reading a file.
I don't mind literal_eval there, but the for loop after it is just weird.
 
DSM
8:57 PM
I had to look up what "spoor" meant in "Can you give me some spoor? please".
 
I kind of feel like we're going to run around for 20 minutes and end up with the answer "you want to use yield, here is teh codes: for line in file: yield ast.literal_eval(line)"
 
i made pythonv2, guys
 
Looks assembly-esque. What does the << line do?
 
output
i tried "print" but was having some problems so i said "meh, i'll just use <<"
 
Cool.
 
9:10 PM
tried to use labels instead of jumping line numbers
but then i'd have to scan the whole file and store all label positions
to be able to jump ahead
naaaah
 
I think that's pretty much how assemblers actually do that :-)
 
yea. gotta let the users know what's actually happening under the hood
not because i'm lazy or anything
 
Now you just have to write a compiler that turns your language into actual executable machine code.
 
it's a python interpreter
well, python
i'm writing the specification as i write the interpreter so i don't screw myself up by describing features i can't implement
 
I've been there :-)
Or rather, I am there.
 
9:15 PM
Someone here good with wx?
 
I've been trying to implement a new feature for my own toy language for several weeks now
 
what feature?
 
I am trying to create a splitted Window in wxpython. Something like this:
+---+-----------+
|   |           |
|   |           |
|   |           |
+---+-----------+
Ops
 
a number of features related to object oriented programming, the most prominent being inheritance
@Emyen Try preceding each line with four spaces, or press the "fixed font" button
 
i need to write a legit language.. maybe in a year or so
 
9:19 PM
There you see
 
next year's java, though. ew.
 
The panel to left is File Explorer. And the panel to right is texteditor (Notebook system / Panels)
 
@Emyen stackoverflow.com/… looks like you want a SplitterWindow
 
Yeah i have tried. But it wont work correctly. pastebin.com/S91ZaaDS
 
I know nothing about WX. Also, "it won't work correctly" is not a valid problem statement.
 
9:30 PM
Its hard to tell/explain. But do you know What Notebooks are in wx?
If you run the code i sent you will know what i am trying to do
The StyledTextCtrl wont appear in the right panel.
 
Room language

    The room language is Salad.
yes
 
10:18 PM
wx is good stuff its my favorite framework
oh he left
....
im probably better at wx than he is at asking questions
 
could always ping him and see if he comes back
 
I'm back.
I think i change my strategy for solving the problem and start learning wx thorough and slowly. Do you guys have some good tutorials for wx?
 
10:53 PM
dont use the form builders .... build up from base classes
use oop
I almost always write class MyFrame(wx.Frame): as the first thing I write when starting a new wx project
dont try and use super() instead do stupid style initialization wx.Frame.__init__(self,...)
(you can use super ... but it will break in interesting ways that become hard to debug ... just get in the habit of dumb initialization when using wx now to avoid that pain
use the Demo regularly ... they have code for pretty much anything you might want to do
 

« first day (1586 days earlier)      last day (3365 days later) »