« first day (1525 days earlier)      last day (3406 days later) » 

12:29 AM
@inspectorG4dget I'm not your downvoter on that numpy question but I do often downvote code-only answers and I know I'm not the only one.
 
 
2 hours later…
2:17 AM
Cbg
 
Using pexpect or subprocess or something. Off the top of your head do you know of ways to stream a terminal output in python? Like as lines come in I know about it? Like connect to the terminal via a socket or something?
Does that make sense?
 
I've just got in from a heavy night out... my cognitive ability is limited right now
 
Well then.. Enjoy your limited cognition.
 
yes... I'm "sure" I'll "enjoy" it
 
2:28 AM
I'll just leave that message there in case anyone with more awareness has any ideas
 
you're more than welcome to have done so - no worries there
 
 
1 hour later…
user559633
3:34 AM
i'm starting to think it's possible to be without an email address
 
user559633
i've been slowly committing info-suicide over the past year and i'm down to only stackoverflow, soundcloud, github, gmail, and linkedin accounts. i don't need linkedin to get contracts, leaving soundcluod and stackoverflow talking to gmail for oauth and github on its own
 
No facebook account?
 
user559633
a/c? air conditioner?
 
We here write a/c for accounts while studying accountancy.. my bad
 
user559633
oh, it's okay. no facebook
 
user559633
3:41 AM
i think my goal for 2015 is to not have an email address
 
How will that work?
 
user559633
the one my work gave me can be whatever
 
Well ... break a leg!
 
user559633
my current email is only used by friends and my mom and bills
 
user559633
i talk to my mom every week and my friends every two weeks
 
user559633
3:43 AM
(within every week period mentioned there)
 
: )
You never had a facebook account or you deleted it?
 
user559633
i had one ~2 years ago for about 3 years
 
And?
 
user559633
no change.
 
You deleted it or the account still exists?
 
user559633
3:45 AM
Oh, I sent to to be deleted. It obvious is just an archive job on their end. No effect on my life.
 
user559633
I think I'm going to close my consulting business so I don't have to check email there as well.
 
Dan
cbg
 
user559633
cbg @Dan
 
user559633
@tilaprimera the further i pull back from "social networks," the better i feel inside
 
Why are you trying to do info -suicide?
 
user559633
3:47 AM
Hah. Weird timing
 
Dan
@tristan feel in the mood for giving advice about a job interview? :P
 
user559633
@Dan sure
 
Dan
@tristan as part of the interview process, an employer wants me to give a 15-min presentation on a 'deeply technical' topic
 
user559633
@tilaprimera i feel as if there's this weird need to be "social" on the internet because people so want to be part of an industry that will give jobs/work/money/benefit. what if you have a job, what if you don't care?
 
Dan
the problem is, those two parameters are at odds
 
user559633
3:49 AM
@Dan okay. what is technical for them?
 
user559633
i could rant about ctypes and python for 15 minutes
 
Dan
@tristan that's the problem, it's a position in a research lab where folks have varying CS backgrounds
 
user559633
what is your favorite programming language
 
Dan
@tristan python
 
user559633
this interview question is fucktarded, by the way
 
user559633
3:50 AM
so, i get you
 
user559633
@Dan what is your favorite part about python
 
@tristan you are brave
 
Dan
@tristan and the field is 'forensic engineering' - so pretty much writing software for low level parsing of data of interest to legal system - which would be anything from a csv file to 1980's custom binary file formats from some AS400 monstrosity
 
user559633
@tilaprimera why? i'm very senior and my mental health and realizing i'll die are more important than playing the stupid game with my life
 
user559633
@dan so what languages do you know?
 
user559633
3:52 AM
(@dan please just play along, this is part of the advice process)
 
Dan
@tristan programming-wise: python, c#/vb.net, c, c++, php
 
user559633
okay, you can burn at least an hour on the discovery/data-fuckery advantage that duck typing will give you over c#/c/c++
 
user559633
and that using the c/c++ API to python, if your data source is that deep, you can write a mining/analysis bridge to make chewing data C-fast, but Python-intuitive
 
user559633
plus the fact that python "knows" of native C types and that they're readily exposed
 
Dan
@tristan hmm...
@tristan "Why Python Should Be The Lingua Franca of Digital Forensics"
comparisons of tasks in Python and C
 
user559633
3:57 AM
@Dan which is to say, in my experience (as someone who cut his teeth on C++), when python-is-C-based is in your back pocket, you can simply talk about your favorite parts of the language and tell people to shut up when they start masturbating over Go by saying "python isn't bootstrapped in python; it has classical C roots"
 
Dan
perhaps with some cheap shots thrown in at perl :P
 
user559633
perl is a great language for its experts. you can talk about python for days without referencing other languages
 
user559633
@Dan what's your training? are you a CS background?
 
Dan
@tristan no, but I've read books on discrete math, linear algebra, and programming for fun :P
 
user559633
Okay, so what do they expect of you out of this interview? What is the role you're up for?
 
Dan
4:01 AM
@tristan my training is all related to digital forensics, tech, electronics
 
user559633
Okay, then I assume you have some tricks up your sleeve on python + reading from encrypted disks
 
user559633
I mean, if you're here, i assume you want to stay in Python
 
Dan
@tristan a forensic engineering position, basically embed me with forensic examiners except when the going gets tough, I step in and do the harder stuff, automate workflows, write tools to assist with parsing data, help deal with massive quantities of information, etc.
 
user559633
which means you should really focus on how it's all-wheel-drive and can adapt quickly to whatever shit you throw at it
 
Dan
@tristan yes, they want someone with python knowledge
 
user559633
4:03 AM
okay, so dictionaries are well hashed and lookups are O(1), it's cheap to try things in the lang
 
user559633
realistically, 15 minutes is 5 slides...
 
Dan
@tristan true
 
user559633
do you know anything of their current processes?
 
user559633
maybe write a multi-method that can parse csv or duck type its way through fields on some proprietary format?
 
user559633
and then just feed types to your IAMHUNGRY class that can crawl through any?
 
user559633
4:07 AM
one of my well working startups has a class that does that and that's the "oh what? wait? okay" points for anyone that steps into the codebase for the first time
 
user559633
csv? cool, look for row[0] cols that look like ids. sql? look for id col. json? crawl for things with int id
 
Dan
@tristan hmm good idea
 
user559633
that's a 20 liner in python, but not so in C
 
Dan
I already have classes that handle json/csv/html/text data, and many other formats
 
user559633
if they're looking for python, they're really looking for someone that's generally amenable to hacking and has CS fundamentals
 
Dan
4:11 AM
@tristan very true
 
user559633
just show that you can move faster in terms of lines of code running than a C developer and that you understand computer science (i.e. make sure you mention that you understand the value of static types and some sorting algorithm) and you're ahead of the game
 
user559633
when is your interview?
 
user559633
i didn't realize that the original was quite crap -- youtube.com/watch?v=D67kmFzSh_o
 
user559633
look at those t-shirts
 
user559633
anyway @Dan make sure you practice a round at home if you're nervous or unsure of your presentation
 
user559633
4:20 AM
cbg @MartijnPieters
 
Dan
@tristan thank you very much!
 
user559633
@Dan no problem mate. if you have pre-interview questions, i could get on a hangout/skype and give you a practice run this weekend
 
user559633
that said, 15 minutes goes fast, seriously
 
user559633
4:34 AM
stackoverflow.com/questions/27554932/… makes me a bit sad that my variant of the explanation lagged so far behind the FGIW
 
user559633
NPE is a way better programmer/answerer than I am, but I'm starting to think there's a thing to Stack about staking claim to an answer earlier.
 
abc
Cbg
 
Dan
@abc cbg
 
user559633
cbg
 
user559633
4:52 AM
and rhubarb. take care all
 
Dan
@tristan rhubarb
@tristan thx again
 
5:18 AM
need sleep but can't seem to get some cbg to all
 
@tristan : ) Sounds good
 
Dan
@JonClements I feel ya - I need to sleep so I can absorb more python stuff tomorrow - but need to finish this presentation first :P
 
have fun with that? :)
 
Dan
@JonClements job interview on monday - want me to give 15 min presentation on something 'deeply technical' -- undefined
I see 15 min and 'deeply technical' as orthogonal planes
 
wouldn't say it sounds completely compatible to me either
mind you - not having to have done an "interview" as such in nearly 20 years...
 
Dan
5:29 AM
@JonClements I haven't had to interview for a job really before - most jobs found me over past 15 years
 
curious as to "deeply technical" even means
 
Dan
@JonClements same here
 
I'm not the one going for the interview though :p
@Dan is it a Python related role?
 
DSM
Brief cabbage for all.
 
brief cbg right back at you then @DSM
um... a meta meta-class - that way you can show off the understanding of the way Python handles things... blah blah
 
DSM
5:40 AM
Frankly, after some of the interviews we've done over the last few weeks, I'm happy if someone can tell me when he'd use an associative array instead of a linked list. <shudder>
 
@DSM after interviewing some people - I'm getting the not too happy feeling that my career line is fairly safe...
 
DSM
I've mentioned this before, but I think hanging out with SO regulars gives me too optimistic a sense of what Joe Coder groks.
 
also, if you're going to turn up in trainers, jeans and a t-shirt... sigh
 
Dan
@JonClements yes
 
DSM
Now that's how I'll show up for work after the interview, but not during.. ;-)
 
5:46 AM
@DSM exactly
 
Dan
^^ think it's be ok if I use that slide as an icebreaker? :P
 
DSM
Those look more parallel than orthogonal.. :-)
 
@Dan it'd work if you used it as "a lead" and can pull off some humour
 
Dan
these two lines don't intersect...
 
DSM
Ah, so you're going for "not simultaneously satisfiable", not the "orthogonal planes" from before. Works for me!
 
Dan
5:50 AM
@DSM yeah, easier to visualize
 
@DSM just remembered I had some guy for an interview... CV looked good... but "somethink like dat"
also, while i relaly want you to be relaxed in an interview - don't put your feet on my desk
 
DSM
Okay, that made me laugh.
I had a lot of people who seemed good but were terrible in interviews. Wonder if there's an opportunity there to let tech people practice interview skills and give feedback.
 
Generally hiring for the sales team is more distinct
 
Dan
@DSM I have a background teaching tech stuff, I'm pretty sure they like to do in-house training and like to see how folks present to a technical audience
 
Normally, the "IT Team" has more access to the business systems than anyone else does - so need to be picked carefully and trusted
 
DSM
6:00 AM
True. We can cause a lot of damage, whether by accident or otherwise..
As a postdoc an IT guy deleted a lot of my group's work because he forgot to mount a drive and so assumed it was empty before reformatting. Still annoys me.
 
Which is why I guess, in some employment I've been put on immediate "Gardening Leave" and asked to leave the office
 
DSM
Gardening leave?
 
Garden leave or gardening leave describes the practice where an employee leaving a job – having resigned or otherwise had their employment terminated – is instructed to stay away from work during the notice period, while still remaining on the payroll. This practice is often used to prevent employees from taking with them up-to-date (and perhaps sensitive) information when they leave their current employer, especially when they are leaving to join a competitor. The term originated in the British Civil Service where employees had the right to request special leave for exceptional purposes. "Gardening...
 
DSM
Ahhhhh.
Okay, time to shut down. Rhubarb for all, and good luck with the presentation, Dan!
 
rbrb @DSM
 
6:17 AM
cbg
 
Dan
6:54 AM
@DSM rhubarb thx
@davidism cbg
 
7:12 AM
If anyone has a second to take a look at this it would be greatly appreciated. Working on a bit of a deadline :) stackoverflow.com/questions/27560922/…
 
Dan
7:23 AM
@Brandon curious why you are directly querying sql with sqlalchemy, but anyways
 
@Dan wasnt working the way i needed it to, on a time constraint so i improvised with what i had. I just dont understand what could be causing the string to be set to the default again
I dont see any flash messages suggesting it is being reset until the beginning of the function
 
Dan
3
A: Global variables in Python and Apache mod_wsgi

TobuWeb-apps are generally “shared-nothing”. In the context of WSGI, that means you have no idea how many times your application (and the counter with it) will be instantiated; that choice is up to the WSGI server which acts as your app's container. If you want some notion of user sessions, you have...

> Because the Python sub interpreter which hosts a WSGI application is retained in memory between requests, any global data is effectively persistent and can be used to carry state forward from one request to the next. On UNIX systems however, Apache will normally use multiple processes to handle requests and each such process will have its own global data.

This means that although global data can be used, it can only be used to cache data which can be safely reused within the context of that single process. You cannot use global data as a means of holding information that must be visible
 
@Dan Do you know if this is a hassle to implement? If you know of a tutorial to quickly accomplish what I am looking to accomplish it would be greatly appreciated.
 
Dan
@Brandon that's the problem - it's pretty convoluted. I'm not entirely sure what you're trying to implement
@Brandon my data models and database stuff is always handled separately from my flask app
 
@Dan I want to set these variables to their defaults when the server first starts ( will run a full qu ery) and then keep the query state saved until a user resets it
im on borrowed time so quick is desired vs the right way atm, as long as it works
 
Dan
7:37 AM
@Brandon why not use session variables/cookies? But this is not recommended for storing a sql query
 
@Dan is there a quick tutorial that you know of so that I can find out how to do this?
 
Dan
@Brandon did you at least go through a tutorial or anything? this quickstart is a start if not
specifically check out sessions
 
 
1 hour later…
abc
9:30 AM
There was some talk about LinkedIn here lately, what's wrong with it?
 
They've announced that all their support is via SO.
So people are asking really, really crap questions that are just getting nuked down.
 
abc
Ahh
 
There support via so? So if you want to ask about 3. party apps for linked in they support asking it here?
 
raise it on meta if it hasn't been done so far @Ffisegydd
 
@Jon it's been raised and closed as a dupe of an old question.
Not even sure a mod/dev saw it.
 
9:40 AM
blah then
 
We've just been keeping an eye on the tag and closing anything poor, getting bitched at by users who say "BUT LINKEDIN TOLD US IT WAS OKAY!!!!!!111!!!!!!!!one"
 
so torn now, can't vote cons, labs, libs, or even green...
hopefully there'd be an independent but it's a conservative safe seat...
 
Just defecate on the voting slip.
 
yes - that won't get looks at all will it :p
 
9:56 AM
hi all
can somebody give advice on deadlocks in mysql
and how can I avoid them using Django?
 
abc
Eh?
 
@micgeronimo there's no badge for speaking in chat.
7 messages moved to Trash can
 
abc
I thought about Talkative..
> Posted 10 messages, with 1 or more starred, in chat
 
10:28 AM
why was this question closed? I had an answer! :) stackoverflow.com/questions/1373164/…
 
Uhh... because it's a duplicate question?
 
well, yeah but I wanted to sugggest enumerate as a solution
ha, can comment
 
abc
Google for recursion. Sorry if its spelled wrong. Just click on "Did you mean:" — Vincent Beltman 45 mins ago
 
11:08 AM
Not able to find out why the word "Figures" is not getting captured (the one that comes before legends) regex101.com/r/gH4oV9/10
 
11:18 AM
Gah, don't use regexes that big!
 
@Swordy is a madman, he follows no rules but his own!
 
abc
That site looks terrible on phones :(
 
The rules of the regex will not bow, however.
 
yeah I'm a real mad man resurrecting Frankenstein but I'll need ur help as well..
 
I've got a few high voltage sources in my lab, in case you can't get any lightning.
 
11:22 AM
Don't worry, his computer will generate that while chewing though the massive regex.
 
11:37 AM
hi generic question- how would one implement a p2p forum
 
my computer will generate heat which will run turbines and generate electricity for my computer. Harvesting side products.. :P
 
user559633
morning all
 
user559633
@yayu python 2 python?
 
user559633
well, first you must seek the 3 wonders
 
11:38 AM
haha that git bug
 
@tristan peer2peer
 
@Ffisegydd the "bug" in git is a bug in mac and windows
 
user559633
@yayu where the peers are gopher clients or something esoteric?
 
@AnttiHaapala Yay, no worries for happy linux users like me!
 
user559633
which git bug? i'm having some tea and i woke up with my nighttime flu medicine still in action, so i'm ready to play :)
 
11:40 AM
@yayu Look into udp holepunching?
 
13 hours ago, by Ffisegydd
PSA : https://github.com/blog/1938-git-client-vulnerability-announced
 
@tristan clients = simple people using their webbrowser.. is it possible?
 
user559633
oh, no, sorry, python doesn't have support for "the web." i don't think that protocol is going to catch on
 
@Swordy Another perpetual motion machine, doomed by the laws of thermodynamics...
 
user559633
thanks @matsjoyce
 
user559633
11:44 AM
joking aside, PHP really does seem to have a lock down on the pre-baked forum software
 
1:04 PM
Could someone edit this post so the image is inlined? I can't access dropbox urls from this machine.
 
Doing it now
@Kevin done
 
Thanks :-)
 
I've removed the link to the dropbox copy as it is redundant now.
 
Now that I see the image, I can confirm that I can't replicate the OP's problem.
 
I can, on a Mac.
 
1:13 PM
Can't on linux
 
You'll have to be my hands for this question, ffisegydd... Nah, I don't even know what I would tell you to try.
I'm making a note of this OS incompatibility in my Tkinter Grievances file.
 
I shall by thy hands...and write and post the answer for you...in the name of friendship.
 
I started actually writing them down last week. So far I have "grid/pack don't allow method chaining, even though 100% of new users think they do", "the bind and command callback registration methods call the callback with different arguments", "<configure> events trigger both for user-initiated window resizes and programmatic resizes, and there's no way to distinguish them", "The Toplevel class isn't PascalCased", and "doesn't work on Mac"
I'm pretty sure I'm forgetting a lot.
 
Looks terrible everywhere?
 
Ooh, PhotoImage instances need to be specially stored or else they get garbage collected too early. That's a good one.
@matsjoyce Sure, added.
different module names in 2.7 and 3.X make it automatically version incompatible. How could I forget that little gem?
 
1:24 PM
Sigh, did it really take that long for someone to search for the error message and dupe that shebang post?
Surprised at the upvotes on Hackaholic's post.
 
My internet is dying at home for some reason. And yeah I was surprised too.
 
Hmm, not sure if I should add "no fully comprehensive documentation exists on any one site", as that's more of a grievance with the community than with the module itself.
 
@Kevin grid / pack incompatibility?
 
Putting that down as "using grid and pack in the same window will cause an infinite loop, instead of doing something sensible like raising an exception"
 
Effbot's comment is great on this.
Tkinter will happily spend the rest of your lifetime trying to negotiate a solution that both managers are happy with
 
1:29 PM
Yep :-)
 
I saw a question on PIL with someone using a tutorial from 2005 on effbot. Tutorials that old should come with a warning.
 
Bryan Oakley answered the Tkinter question. Of course the reason is "because Apple thinks it knows better than you do"
@Ffisegydd That tutorial is, sadly, the most comprehensive one I've found.
(Yes, I'm aware of the decade old "todo: finish up this section" messages)
 
I mildly badgered @holdenweb.
You win. I revisited the answer to incorporate your suggestions, to avoid those with little knowledge having problems locating the element they want. Thanks. — holdenweb 6 mins ago
 
In their defense, the interface is pretty stable. I don't expect Tkinter to get any hot new methods any time soon that would invalidate our old reliable tutorials.
@MartijnPieters Nice job :-)
 
1:36 PM
Augh, my coworker gave me a Christmas card and now there's glitter everywhere ;_;
 
My friend bought me a small bottle of gin for Christmas, I then explained to him how he was a terrible person for making me feel bad for not getting him something.
 
@Kevin I just don't do cards :(
 
@Kevin This(^)? Might have trouble getting inbetween the keys on the keyboard.
 
@JonClements Me neither, it's such a hassle.
It's a very one sided holiday for me, because all the things I want are weird abstract things like "self-actualization", and you can't get that at the store.
 
might send @Martijn a card... just for the fun of a surprise :)
 
1:42 PM
So my family gets me a 12 pack of socks instead. Meanwhile they're overjoyed with the handbag or whatever that they've been pining for for the last 11 months.
(I'm so non-materialistic #humblebrag)
 
How to I post a link to a SO question in a comment but make it display the question text?
 
[Use markdown formatting](http:example.com)
 
Just remembered another Tkinter grievance: performing per-keystroke validation on Entry text boxes requires the jumping through of many hoops, and is documented in exactly one website on the internet, which is hard to google
 
Yup, had to do that once. Lots of googling (and false trails).
 
Productive morning... I've doubled the size of my grievance file.
 
1:47 PM
@Ffisegydd have a couple of hours on Sunday, so can configure an email server on the sopython.com for your nidaba.io stuff if you want
 
@Ffisegydd I don't understand. It doesn't work :(
 
Wheee, stackoverflow.com/questions/27567290/… is getting upvoted but is not actually reproducible.
 
Ah sorry I misunderstood you. That's how you do markdown formatting for a link, but do you want to onebox something?
 
1:48 PM
HA!
 
@JonClements Well you fumbled that one now, didn't you.
 
@Ffisegydd thanks.
Followup question: can I somehow use the question title as the link text automagically?
 
@MartijnPieters But now that you expect it, you expect that he won't send it because you'll be expecting it. Making its subsequent arrival very unexpected!
 
@Reut not in chat, no.
 
in a comment
 
1:49 PM
Not in comment either.
 
@Kevin I don't know what to say to that.
@Kevin: that was unexpected.
 
@Kevin Reminds me of Jack Sparrow's lying by telling the truth...
 
I guess that line of reasoning only really works if you think Jon would send a letter only in order to surprise you.
If he has additional motives, then you can continue to expect it, and no paradox arises.
 
@MartijnPieters No. no.... errr....
 
1:52 PM
User script idea: add a "markdown-formatted permalink" button to all SO questions.
 
I'd enhance the share button so it has multiple copiable text boxes.
 
@matsjoyce I based it on the unexpected hanging paradox
 
wow... the sanctions are really hitting russia
 
@Ffisegydd Good idea. I hope the permalink box exists in the DOM even when hidden, that would make it easy to modify.
 
cabbage, all
 
1:55 PM
@holdenweb cbg again - how goes it Steve?
 
cbg
 
Greetings
 
Hacking away. Been working on the "Modules" chapter of the Nutshell 3E
Wondering whether, and at what stage, we should have O'Reilly put the book on Early Access - the feedback could be very valuable
 
@holdenweb: hey there.
 
as long as I get a "free" copy - happy to give feed back :)
 
1:58 PM
@MartijnPieters Yo!
 
Wanted to chat to me here or in that question specific chatroom?
 
@JonClements Not sure how early access works
 

« first day (1525 days earlier)      last day (3406 days later) »