« first day (2133 days earlier)      last day (2801 days later) » 

5:00 PM
@MarcusS Oh man, I remember that!
 
Aaahhh maybe it isn't broken
 
@MarcusS turns out you were? ;)
 
Turns out it was some protocol I was unfamiliar with
 
DSM
5:12 PM
So apparently a certain table I needed to be filled with important data hasn't been updated since 2 August, but output is still being produced every day. This makes no sense to me, the only person who really knows what's going on is in New York, and the local person who knows the most is at some toast-based meeting. #hangofthursdays
 
recbg
@JRi​S seen this?
 
Using \__bytes__ to represent an object's binary representation is bad, right? Even in 3?
 
DSM
dunderbold!
 
ther we go
 
5:14 PM
"\__@__ snail powa
 
@KevinMGranger you'd not want to use it usually I think
 
I guess, womp womp
 
and `__bytes__` ought to work
 
nope, that still italicizes. You also need the backslash
\`\__bytes__`
GAH
 
? Just __bytes__ like regular code, guys
don't overthink it
 
5:16 PM
__bytes__ didn't work for me before
see that
 
The sandwich was invented by the earl of sandwich, so I assume that Erlang was invented by the earl of lang
 
@KevinMGranger I see
 
Wait whoa it fixed itself
 
@MorganThrapp oh that's deep
 
5:17 PM
@KevinMGranger patience
 
DSM
All will be revealed.
 
it sometimes takes a few seconds for the parser to kick in
if your message goes from green to black and it's still wrong: edit
 
__bytes__
@KevinMGranger it italicizes in the browser but when it does the round trip to the server it will look okay
 
yeah, that's what I meant, only less fancy words:P
like "browser" and "server"
 
I wonder if we'll get to the point in the near future where we have too many connected services/websockets open that we'll exhaust them all. After all, we only have what, 65536 or something?
 
5:20 PM
should I close some tabs?
 
What's the quote from 3:45 of this song? I feel like I heard it in a movie or TV show, but can't quite remember. elhuervo.bandcamp.com/track/vandereer
 
and I was right, though it's 0-65535, and 0 is unusable(ish)
 
@davidism never heard it
 
google fails me
Might ask on movies & TV SE
I'd be interested if anyone could figure it out
 
5:25 PM
Umm... link doesn't appear to want to load for me... :(
 
stackoverflow.com/q/39024100/344286 Does anyone know of a good dupe target for that?
 
@WayneWerner too late
python gold badger to the rescue
no time to snark them now, gotta go:(
 
@WayneWerner I don't know any
 
@davidism No idea - sure that's even a film?
 
No clue, maybe it's totally made up. The accent and the quote just seemed familiar.
 
5:40 PM
Hm. Do we have a good question for u'' syntax errors? If not, I think I should go ahead and ask it, as there are a couple of open questions about the same thing.
 
Most of the other songs on the album also have quote samples, so my guess is it's from something else.
Can't identify any of the other quotes, so not too suprised.
 
stackoverflow.com/questions/7569014/… does that look like a good canonical question for unicode literal SyntaxErrors?
 
user6568562
I only managed to hear : " Help you, I used to, I used to, yourself, he begs, never forgives"
 
user6568562
But it's one cool artist, I dig his music. Didn't know him before
 
@AnttiHaapala: young guy next to me is teaching his friend everything about Finnish military service..
 
5:47 PM
rbrb, apparently walk time, says my son
 
Yeah, he does the art for the Bandcamp weekly podcast and was on the soundtrack for Hotline Miami.
I'd get a poster, but they're always sold out.
 
@MartijnPieters lol
@MartijnPieters you should shout that "asento" (for "attention! position") :D
see if he jumps up :D
 
user6568562
That's impressive. I liked the cover arts, didn't think it was his
 
user6568562
Gotta see the outside world, today, at some point. Laters everybody [ :
 
6:28 PM
@AnttiHaapala He laughed at that one :-)
Then again, these two were getting pretty tipsy on the Jameson..
 
lol :D
probably it was just your pronunciation
 
yeah, stress the first syllable:P
and roll that rrr in "asento"
 
hmm i am at 155 rep
perhaps I should try to make 200
 
edit some JS docs
I suggest Array
 
eewwwww
 
6:37 PM
cries
-1
Q: How to parse XML data with Python Regex

saadThe goal is to parse XML file to extract data and manipulate them using Regex. This is just an exercise to understand Regex. Please don't answer me with BeautifulSoup, DOM/XPath... solutions Here's my data : <table> <caption>Name list</caption> <tr> <th>First Name</th> <th

 
FWIW XML is the devil
 
@JonClements canicanicani?? :D
close it as a duplicate? :D
@JonClements closed
he wanted to understand regex
and that is what the answers there are all about, telling that you cannot do a single regular expression that matches this language.
 
I'd forgotten that post had 35 answers - everyone only remembers it as having one :)
 
that's evil:P
hammering python with Tony the Pony
 
1506
A: RegEx match open tags except XHTML self-contained tags

NealBI think the flaw here is that HTML is a Chomsky Type 2 grammar (context free grammar) and RegEx is a Chomsky Type 3 grammar (regular grammar). Since a Type 2 grammar is fundamentally more complex than a Type 3 grammar (see the Chomsky hierarchy), you can't possibly make this work. But many will ...

this for example.
 
6:48 PM
regex + HTML or XML = aaghghhhuujrnrnngfffff....rrggg.
Don't do it D:
 
wim
grr user deletes own post after getting the answer
annoying .. makes you feel "why do I waste my time here?"
 
@wim question ban time \o/
 
wim
or maybe its Jon Clements fault for posting the answer into the comments
 
wim
6:55 PM
he should know better ..
 
well crappy questions don't need full answers (if it was crappy)
 
wim
basic != crappy
crappy questions are the ones when the OP doesn't really know what they want
 
typo D:
but yeah.
@JonClements now the guy wants to do recursive grouping with regular expressions.
 
@AnttiHaapala sounds like fun :)
 
wim
 
7:02 PM
Maybe Tony The Pony is actually a good guy and whisks people away that refuse to believe regex isn't good for html...
 
he is adamant that he needs to do this in one regular expression...
the problem is not so much the regular expression now but the limited capturing support of Python.
 
to be fair, if you know something about the HTML beforehand, it's not a terrible way to practice -- but there are certainly betters ways to learn regex
 
@MarcusS but the thing that he wants to do cannot be done with 1 regular expression.
as in cannot.
 
What is he trying to do?
 
trying to capture td's from arbitrary number of tr's
thinking he might make one group capture multiple strings.
good luck
 
7:09 PM
@MarcusS Inflict pain upon himself...
 
What up folks?/
 
heya @MichaelBruce
 
Wondering if there is a way to install pip2 in virtualenv during setup. Curently, I have a system python 2 and 3 installed.. as well as pip 2 and 3
if I flag virtualenv as python=python2 or 3 it installed the correct python.
I really just want to run fabric and it is only supported in python2
I could deal with fabric3 which is a folk, but it is missing a function called local.
folk = fork
 
Are you trying to run both Python 2 and Python 3 packages in the same project?
 
not really. this is just a tool to deploy to a live and staging server...
i guess I can just run it from the system..
outside of virtualenv
it would be nice if, from the envirnment, run python3 or python2 or pip3 or pip2
is this possible?
 
7:18 PM
No. Each environment is either 2 or 3.
 
You know.. i guess it is ok. which python shows up in my env and which pip2 shows up in my /usr/bin
i guess this will work. I was freaking out for no reason
 
Hey, @Michael. Just an FYI: you can edit or delete your chat messages up to 2 minutes following posting:)
 
DSM
Anyone else here use (1) Slack and (2) Anaconda?
Oh, wait, figured it out. Nothing special going on, just a specific case of a general practice which surprised me, ignore the noise. :-)
 
I have a slack account and a single channel which I look at but doesn't contain anything new. Is that a "no"?
I feel especially useless here nowadays:)
 
DSM
Helping a colleague debug something and pasted a transcript into slack. It contained the line "Please check out: continuum.io/thanks and anaconda.org";, which led to a pretty Continuum link, and I was wondering if Continuum had paid Slack for advertising.. but really it's just the usual way Slack works..
 
7:31 PM
oh yeah, it oneboxes a bunch of things (if that's what you meant)
 
This Kaggle thing looked interesting but it's already been going on for two weeks D:
 
I'm going to start that this weekend. I need to ping the people who were interested
 
7:47 PM
what's the point of cover letters?
 
Hi all
 
@corvid screening people who can't communicate in written English
@cardycakes cabbage
 
I get so annoying with cover letters I wanted to template one written up pretty much like the intro to the fresh prince
but all about being a developer
I think I actually drafted one
 
Copy and paste requirements -> rewrite requirements -> add something about how you did something kind of like that once
 
If forced to use vanilla Python without the likes of Matlab, what is the best way to go about making a 2d array with easily accessible elements? I'm not aware of one that doesn't involve additional vars
 
7:49 PM
In West Arkansas, not born, nor raised...
 
Also yes @WayneWerner I like cabbages
 
if (this instanceof (story.about(life.flipped().turned("dir=upside-down"))))
 
DSM
@cardycakes: if by "Matlab" you mean "numpy", then you can just use a list of lists, I guess. I don't know what "additional vars" means, though.
 
@MarcusS that's even better. Have the cover letter done in the key of fresh prince but all in code
 
@DSM
 
7:51 PM
@cardycakes You mean like my2dlist = [[1,1,1], [2,2,2], [3,3,3]]?
 
@DSM yes sorry I mean NumPy, also yes @WayneWerner that is what I mean. So if you want to clearly reference a particular column you might have date=1 and reference my2dlist[date][2]
I like the descriptiveness, and am doing something without NumPy, but feel uneasy about those extra vars
 
extra vars?
 
Yeah like the in the example I used above with date =1, so you have a reference
 
DSM
If you want access by column and not just row you're going to have to create either accessor functions or a custom class. A list of lists gives good row access but not column access.
 
why not my2list[1][2]?
Unless perhaps you're talking about doing something like this
 
7:54 PM
my2dlist[1][2] I don't feel is as nice or robust, especially with multiple references
If you want to access [1] a lot, then I'd rather have it defined as a constant
 
mynot2dnotlist = {'date': [1, 2, 3], 'names': ['john', 'jacob', 'jingle-heimer']}
that's not a 2d list, though
but if you want them named, then there you go
 
dictionaries save lives
 
For example in shell writing a small bespoke logging function, I'd have log_types = {'INFO', 'WARN', 'FAIL'} and define vars as LOG_INFO=0, LOG_WARN=1, LOG_FAIL=2, and then when I reference I use LOG_TYPES[LOG_FAIL]
Okay thanks Wayne
 
@cardycakes Use the logging module, don't do that
Another alternative is to just alias the values you care about for that particular block...
e.g.
mylist = [[1,1,1], [2,2,2], [3,3,3]]
dates = mylist[0]
for date in dates:
    print('{} is not really a date, but ignore that for now'.format(date))
 
Okay I see, that does cut out what I feared
So your above example was using dictionaries?
mynot2dnotlist = {'date': [1, 2, 3], 'names': ['john', 'jacob', 'jingle-heimer']}
 
7:59 PM
dates has a reference to the same mutable object found in mylist[0], so it's technically almost identical to just doing whatever you would to mylist[0], just something maybe more meaningful
yeah, {} is shorthand for a dictionary
 
Cheers, picked up Python past couple of weeks
 
you could say dict(date=[1,2,3], names=[...]), but with the other syntax you can use any kind of immutable as a key
 
Okay great :)
 
such as numbers, tuples (of immutables), strings with spaces and other characters that are illegal for variable/argument names
largely it probably depends on exactly what your problem is - practically speaking the approaches could be functionally identical
 
Well basically I am doing a small exercise for something, not Uni work don't worry, but am not using any external libraries
 
8:02 PM
Meaning, there's not much difference between dates[0] and data['dates'][0]
 
But all I need to store are ints or floats, I used the date as an example above
 
but dictionaries are inherently un-ordered, so if you were doing something like for d in data:, you're going to get a different result for dictionaries vs lists
Without knowing what your actual problem is, the best I can do is just offer a bunch of different solutions in hopes that they'll apply to your problem ;)
 
I see, I see
I would require the ability to iterate through the elements in a predictable order
But thanks for your help, I've noted the solutions you've provided, will evaluate :)
 
There's ordereddict
 
8:06 PM
^ that, too ;)
 
What's the desired behavior? Are you just trying to access a list representing a given row / column?
 
Well, the order they were inserted in, or in sorted key order?
 
@MarcusS exactly that, but in a nice way
Checking out these ordered dictionaries. @KevinMGranger I would just need the ability to say for f in fruits: print price, juicy_level
 
Then it sounds like what you want is a list of dicts
 
8:09 PM
Thanks guys! Got plenty of possible solutions now :3
I like it here though
Oh really @WayneWerner
Makes sense now I think about it
 
@corvid I was going to make a joke about covering yourself with leaves; then I realized that leaves and letters are only the same word in Hungarian
 
Duplicate Sqlalchemy mass update - Simon Otter - 2016-08-18 18:24:42Z
 
fruits = [{'price': 3.21, 'juicy_level': 3}, {'price': 42.00, 'juicy_level': 100}]
    for fruit in fruits:
        print('{} {}'.format(fruit['price'], fruit['juicy_level']))
(there's also the namedtuple approach that may also be appropriate)
 
@IljaEverilä remember to edit the tag in so that our hammer works. I missed that it wasn't there so my vote wasn't binding.
 
Nice @WayneWerner so if I care about the name, but maybe not having the ability to reference the name, I can do the below..
fruits = [{'name': 'apple', 'price': 3.21, 'juicy_level': 3},
            {'name': 'pear', 'price': 42.00, 'juicy_level': 100}]
for fruit in fruits:
    print('{} {} {}'.format(fruit['name'], fruit['price'], fruit['juicy_level']))
 
8:16 PM
(if you press uparrow you can edit, then click the 'fixed font' button ---> )
 
There's also faq and help in the bottom right corner; room rules in the top right while we're at it;)
 
Am I violating the rules already?!
 
no no no:)
speaking generally
 
:P okay cheers
 
I didn't read back in the transcript
but @cardycakes I just saw your response to my comment on your answer half an hour ago; does that mean you'll edit it? If it doesn't mean that, what does it mean?:D
 
8:20 PM
So I've lurked StackOverflow for 5/6 years, only asked a few questions and finally unlocked this chat, very very nice, seems like a nice group
@AndrasDeak it meant "I'll take that on board" but I'll go edit now :P
 
:D OK;)
 
@cardycakes You could write that as: for fruit in fruits: print('{name} {price} {juicy_level}'.format(**fruit)) btw
 
@JonClements .format_map(fruit)
 
I wonder how juicy_level is measured
 
8:21 PM
@MarcusS especially that pear is 100; wtf
 
@davidsm yeah yeah :)
 
Would that imply... pear juice?
 
@davidism completely missed the missing tag :P
 
Is it even a fruit anymore, really?
 
or '{0[name]} {0[price]} {0[juicy_level]}'.format(fruit) - pyformat.info
 
8:22 PM
Although to be fair - I always forget that's there @davidism - so thanks for reminder :)
 
@MarcusS I mostly meant that I don't think of pear as a particularly juicy fruit. But I guess I'm just biased toward the Bosc pear as opposed to Williams pear
Also: are tomatoes fruits? And if so, how juicy are juicy tomatoes? Is juiciness a per-fruit unit, or a global one? I can't handle this right now.
 
Pear can be insanely juicy.
Almost...too juicy...
 
I love tomatoes as much as I love fruit
Especially small cherry plum tomatoes... Man
 
those are good
 
Great in salads.
Lovely to eat whole as a snack.
 
Yeah, my breakfast this morning was smoked salmon, cherry tomatoes, and tiny oranges, then some nuts
 
@Ffisegydd likes salad *giggles*
 
Good start to the day
Anyhow @JonClements thanks for the further improvement of for fruit in fruits: print('{name} {price} {juicy_level}'.format(**fruit))
 
@cardycakes are you into pygmy food?
 
I eat salad for lunch most days, in the best ideal of "vanquish and consume your enemies."
Vanquish your iceberg lettuce and hear the lamentations of their sweetcorn.
 
8:27 PM
@AndrasDeak not sure fully what that is, but I am mentally healthier when I eat healthier so it's a real incentive
 
@Ffisegydd laurel
 
And @WayneWerner for referencing by index
 
@cardycakes I just noted the tiny tomatoes and tiny oranges. Miniature food all around.
 
Oh, right
Sorry, spoiled your joke there @AndrasDeak
 
it wasn't really funny, so we're cool
(but that's the only reason *squints*)
 
8:31 PM
You'll never change this blank and lifeless face
 
thanks for the edit on your answer, you made the future brighter for us all
(and I removed my comment)
 
No problem. Going to make a coffee, and get me some oranges
 
8:50 PM
oranges + coffee....but..why?
 
Coffee because and oranges because I'm hungrier and don't want to eat chocolate
hungry*
And...sweet+bitter=good?
 
cbg all
chocolate + coffee is good
 
cbg
 
oranges + coffee.....depends on how sweet/milk filled one wants his coffee - it might work with black coffee
just finished my notes on my dissertation and realized how much I had written - boogle O.O
 
> a principal programming principle is the EAFP principle
 
8:59 PM
principally principle
and now the word principle is starting to sound weird because I said it too many times
 
that seems like one of those really broad tags that can mean like 80+ things and will never truly be definable in a tag wiki
 
bah
badge hunt?
@JGreenwell those are meta tags and should burn
 
don't know, would have to look through the results and see if it is helpful meta or just stupid meta
I leaning towards the latter with this one but haven't looked
 
yeah, I'd wager most of the on-topic questions there are opinionated
 
Does anyone know if it's possible to write triggers for the SQLite DB using Flask? Can't find any documentation about it
 
9:12 PM
Flask doesn't deal with databases. Assuming you're talking about Flask-SQLAlchemy, it does nothing different than SQLAlchemy in terms of SQL. So you're really asking if SQLAlchemy can create triggers.
 
@davidism 62 (now 61) posts tagged with that, smells like a burnination target.
 
wim
surprised there's nothing there yet -> stackoverflow.com/documentation/celery
 
Given the disorganization of the Celery docs, that is somewhat surprising.
 
maybe the rabbits ate it
 
wim
yes, the one time I thought SOD could actually be useful , it isn't .
 
9:15 PM
@wim go for it! There's reputation to be farmed here! Profit!!!!
(sorry, got a bit carried away there)
 
:D
It's OK, we know you have some human DNA left, Martijn;)
 
I'd commit to it, but I'm lazy enough with the docs already.
 
wim
apparently I have never answere a celery question, so I can't contribute to it
 
@wim what's the threshold? 0 score?
 
Hmm, I do have a topic in mind though, so maybe this weekend.
 
9:16 PM
@AndrasDeak Or I have great 'human DNA imitation' routines! You'll never know!1!!eleven!
 
@MartijnPieters true, true:) For all I know, you could be a brain in my jar.
 
Uh oh, Martijn's 1337 filter needs to be changed again.
 
wim
@AndrasDeak you just need an positively scored answer in the tag.
 
@davidism At times like this I'm glad I'm nobody here. I mean, that sounds dangerous.
 
@davidism d0n'7 y0u 70uch my f1l73r5!
 
wim
9:18 PM
I could have python gold badge 5x over but that doesn't count ... :P
 
@wim sucks, doesn't it?:P
 
wim
hmm what If I go and edit a random question to add ... lol
 
I still remember the struggle of having edits reviewed...unlike some people. At least that has been solved already for gold badgers.
 
They never responded to my bug report about that. I haven't tried to edit since though, so I don't know if it's fixed now.
 
@davidism yyyyyeah, sure it's fixed
 
wim
9:20 PM
whats the markup for a [tag] ?
 
[tag:tagname]
sneaky bugfixes are just the thing for SOD propaganda communication:P
 
@AndrasDeak and what's the markup for that?
 
wim
does it work for any string
 
`[ta​g:tagname]`
@wim any string with no whitespace and other garbage, I think
so mostly [a-zA-Z0-9-] or something
 
@AndrasDeak and... :-P
 
9:22 PM
@davidism the rest is left as an exercise to the reader:P
 
I guess that's a nay
 
sandbox time
 
wim
although the link redirects somewhere weird
 
oh, good; I made up the 15 rep I cost myself deleting stuff from SOD
 
9:23 PM
They're just trying to be helpful, since you obviously don't know how to write a proper tag. ;-)
Actually, that's not that weird, it's just running unicode normalization.
 
wim
hmm [tag:&quot;tag&quot;]
sadface.jpg
 
rhubarb
 
rbrb
 
A wonderfully successful dev day. Time to finish it off with dinner with my wife while the kids play at their grandparents. :D Great rest of the day for all of you. Cheers.
 
9:27 PM
@idjaw dinner, right
have fun:)
 
haha. :) take care
 
you too
 
cheers @idjaw
 
hmm...
I find it delightful and sad that you need tag score to commit to a tag; yet there are always high-rep people who commit to the worst tags imaginable:D
 
10k e-mail expert there; we're in safe hands
 
If I ever get not busy I'll make or look for a meta on deleting whole tags but too much for now
Also, I've been getting low-level Google results for SOD now - it scares me
 
last time I checked it was done manually by staff
the last python3 topic couldn't be deleted; even its last example stuck around until the tag was merged with python main
(mostly the SOCVR guys did the needful)
 
user559633
I thought about trolling that email SOD post by writing a tutorial on how to connect to AOL via dial up and configure AOL mail
 
I'd upvote that:D
 
user559633
9:50 PM
Then I was like "yeah this is pretty serious procrastination, even for me"
 
but Martijn would hunt us down once his f1lt3rs were replaced
 
re-cbg
 
I don't have close votes so I rarely hang out in SOCVR
 
I'm just not even sure what you'd put in the email tutorial o.O
 
user559633
meh. it's not like i can burn the internet points on this account for heat
 
9:51 PM
@JGreenwell you don't?
let's fix that
 
wanna post some examples in the e-mail tag?
 
yeah, one of these days I'll start answering some more questions - final semester of Master's just killed my time
just have to keep repeating: next week all over next week all over next week
 
FWIW I have close votes but mostly go to SOCVR for a few people and drama
 
user559633
How to email:
1. Write a subject line that doesn't add any info.
2. CC people that work for you
3. BCC people that you work for
4. Obsess on how to close the email
5. Attach inspiration quote
6. Send
2
 
then again, then I look at my Ph.D applications so not sure if that is true
 
9:54 PM
@tristan 7. realise you didn't actually attach anything, 8. re-forward email to all recipients saying "oops, forgot attachment"
@user2357112 heya
 
user559633
Whoops,
7. Add "see below by jon Clements"
 
Cabbage.
 
user559633
8. Forget to copy/paste
9. Request reader see inline

> @tristan 7. realise you didn't actually attach anything, 8. re-forward email to all recipients saying "oops, forgot attachment"
 
user559633
10. Continue not forgetting about Dre
 
cbg
 
user559633
9:55 PM
cbg
 
11. Get 20 reply emails asking for clarification of things you posted on the company wiki
 
dude what
 
user559633
lol hi corvid. i see you're also javascripting
 
12. Get 50 reply emails showing the "coolest" new memes or videos that "YOU HAVE TO SEE, SO FUNNY"
13. Check and see what certain people just did to your network by opening those
 
user559633
a tutorial i was reading implied that state changes were bound to an object instead of being bound after a factory method returns a new object. a++ would be filled with infinite despair again
 
9:58 PM
14. Purify with fire
 

« first day (2133 days earlier)      last day (2801 days later) »