« first day (2116 days earlier)      last day (2815 days later) » 

12:22 AM
Seems like legit study to me
It is a Python job, right? ;)
 
R mostly
but job's a job
and it will be nice to have an analysis position again (no matter the toolset)
 
12:50 AM
evening cbg
 
cbg
 
cbg cbg
 
pup. It's quite late in your neck of the woods
 
1:37 AM
Yup... v. busy
@idjaw can you try: sopython.ddns.net ?
 
@JonClements Anything in particular I should be looking for? Seems to be working
 
Are you getting sites and titles?
And occasionally, it might do a sublist of possible duplicates
 
I see that
 
Umm... yeah... shouldn't be doubling up like that - but ummm
 
just refreshed. Yeah I seem to be seeing duplicates for each item that shows up
and now just saw one come up three times
 
1:41 AM
yeah... it's not taking into account unique connections... :)
can fix that later
let's just see how the dupe finding works
[hermeneutics] In 1 Corinthians 5:8, who is to observe what feast?
What's the best way to find the inverse of datetime.isocalendar()?
How to retrieve the selected text from the active window
Generic Views from the object_id or the parent object
Why the Global Interpreter Lock?
Python: import the containing package
I think the dupe finding is completely screwed :)
 
 
2 hours later…
3:25 AM
stackoverflow.com/q/38690269/344286 Take your pick - too broad? POB? Tool/Resource?
 
4:11 AM
Morning!
 
4:23 AM
and goodnight! ;)
 
5:04 AM
bah 6am
 
0
A: Can we please introduce more reputation limits for examples on Documentation

Antti Haapala Idea 3: Scale rep awarded per-upvote, based on number of editors If an example only has 5 or so editors, each person will be awarded the full 5 reputation for every upvote. But, once an example reaches 10 or so editors, each upvote may only be worth 3 reputation; and when there are 20 edi...

 
5:36 AM
 
 
1 hour later…
6:49 AM
monday monday monday...
test test test
 
> Monday, Monday, so good to me; Monday morning, it was all I hoped it would be.
 
bah humbug :)
test test test
kittens!
why no kittens? :(
ahhh... almost there
 
@JonClements just wait until Monday evening..
 
:)
Better than Geldoff's :)
might have a quite nice rabbit version running... felt inspired by Kevin's stuff
does help if I remove the commented out lines for it to work though :)
 
7:22 AM
@MartijnPieters that made me google the Finland song
"Your mountains so lofty"
 
Gonna be slightly loftier if Norway has anything to say about it.
 
@Ffisegydd ^
the maximum on the left is Finland's tallest point.
the "top" on the right, slightly taller, belongs to Norway
 
I need Canon to bring out a new camera that shifts the price of the 7Dii down so I can pseudo-justify the expense D:
 
8:08 AM
Sup Bob.
 
Cbg
I finished Stranger Things this morning - pretty cool
 
Yeah was good.
 
Bit short, but then pretty much everything I watch made by Netflix ends up being too short, regardless of the number of episodes
So I watched the first episode of Star Trek the original series
Which was hilariously bad, but quite cool as well
 
Cabbayawn
 
8:24 AM
Cabbage
@MartijnPieters Some more Mamas & Papas: Dedicated_to_the_One_I_Love. This is the 1st Mamas & Papas song that Michelle Phillips was given the lead vocal. Sure, her voice isn't as strong as Mama Cass's, but I think her delicate tone is perfect for this song.
 
@PM2Ring I have a great 'best of' album, plus whatever was listed in the 1001 albums you must hear before you die list (as I have the full list).
 
Excellent. :)
 
morning cbbg
 
My favourite Mamas & Papas track: I Saw Her Again
 
@PM2Ring I travel to Silicon Valley a few times a year for my job, and my family will, without fail, start singing California Dreaming whenever I announce when I have to go again or during one of the video calls home..
 
8:39 AM
I need Martijn's life
 
Especially if it is outside summer.
@RobertGrant Facebook is always looking for more talented engineers!
 
Interesting!What if they're quite smart but have never been paid to do Python so they don't know it as well as someone who has?
 
@RobertGrant We look for Software Engineers, not specific language knowledge.
 
Because working for them would be pretty awesome
 
@MartijnPieters Nice one. :) There's a YouTube clip of Michelle performing California Dreaming with her daughter's band. Before they start singing Michelle tells the story of how that song was written.
 
8:45 AM
@RobertGrant: we allow just about any programming language in the coding sections of the interview process. If you want to use Brainfuck to show how to insert a new value into a circular linked list, then that's fine as long as you can explain how the code works to the interviewer :-)
And I am constantly teaching my team mates about Python intricacies.
 
That's cool
I'll pick Whitespace :)
Picks up whiteboard marker / Puts down whiteboard marker; nods confidently at interviewer
 
LOL
 
One of my friends used to work at FB, he just left and is doing a sort of 'guidance for tech interviews' series on youtube based on his time there, it's super interesting.
 
cbg, all
 
Looking at the questions listed here I first thought they were all too hard, then thinking about them I could probably do them okay. Under pressure might be tricky though
 
8:50 AM
@RobertGrant Don't envy @MartijnPieters his lifestyle until you've tried it. Flying around can become tedious when you are doing it to work rather than to have fun (though the tedium can take a while to set in)
 
@holdenweb I have done a fair bit of flying between SA and UK, and I guess that wasn't too bad because of the timezone similarity, which California wouldn't have
 
hey could someone take a look at my code and help me understand why my array is not updating
 
But still, going to there with work for a while would be cool :)
 
@RobertGrant 8 hours does hit you, especially on the way back. I do use an app called "Jetlag Rooster" that gives me a schedule to re-adjust on that works well for me, but still.
 
Sure, but the eight-hour time difference is a killer when you are travelling East (i.e. back to the UK).
 
8:54 AM
Tbh, I used to fly back and forward from London to Glasgow everyweek, and that got dull enough, nm doing it longer distance. Your tax pounds hard at work there.
 
At least, judging by the comments from my colleagues I appear to get over the jetlag faster by following the schedule set.
But at least FB auto-upgrades anyone flying over 4500 miles to business class.
 
@MartijnPieters I guess where possible they're fairly kind the next day if you flew for work
I've stepped off a plane and gone straight to work in SA before, but that was not pleasant, and a practically identical timezone
Though if I'd had business class I might've been better rested :)
 
Hi, so I have 2 basic classes but I don't understand why my globArray is not appending after I run the program multiple times, the message gets added but keeps getting overrides leaving the array with one element and deleting the previous.
This is the simple message class
and the mailbox class which I'm trying to add the message into an array is here
 
@RobertGrant we have sleeping pods at work :-)
 
Could anyone please help identify the issue as to why the array is being overwritten?
 
8:58 AM
I have one of those in my office too. It's the couch in my front room. ;)
 
@MartijnPieters nice. Unless they're regularly used for long hours rather than jetlag recovery, in which case eek.
Having said that, I like long hours. My eek is theoretical.
 
@RobertGrant they are mostly used for quick recovery naps.
I used one for a night sleep once after a hackathon. Wasn't too impressed with the comfort level for that length..
 
Ah okay, that's really good then
 
wowww
 
@Yeeee Why would you expect running the program multiple times would accumulate results in the globArray? Each time you run it it starts out empty and you add one message. Why would the program have any memory of previous runs when you aren't storing its state anywhere?
 
9:02 AM
How would I store it's state within the class?
 
The usual way to store state between program runs is to use a file.
 
That's the point. You can't, between runs. Every time you run the program it starts from scratch, so unless you actually have the program rewrite its own source code (a VERY bad idea) you will have to store the data externally - RDBMS, pickle, shelve are all possible solutions to that problem, depending on the nature of your data
 
@holdenweb I want to grow out this array without exporting its data to a txt file, would that be possible?
@holdenweb is there a way to append new elements to the array?
 
Well you have to save it somewhere if you want to have the results of earlier runs available to later ones.
 
Yes, but how do I do that?
 
9:08 AM
Look at the pickle and shelve modules - they are both fairly easy ways to store Python objects in files.
 
@Yeeee BTW, your Mailbox class is a bit odd. Doing x = requestUserForMessage() makes x a class attribute (shared by all instances of the class) that's evaluated when the class is compiled. Also, addMessage(x,x) calls addMessage with 3 args (including self), but it's defined to take 2 args.
 
And you've removed your Github repo?
 
I want to break while loop but it should only be-broken when user press stop button in UI, what kind of way I should follow, it is an webapp
 
9:26 AM
Can't run my tests as the server has gone down? Looks like all my tests just passed! Hurrah!
Just kidding guys. I don't have tests.
 
@arshpreet That's a bit hard to answer properly without seeing any code! But anyway... You can make the stop button set a boolean value which you test in the while loop.
 
@PM2Ring it is strategy that buy/sell bitcoins automatically from bitfinex based on some strategy, let me show some part:
 
@arshpreet Are you saying that you want code to run on the web server until the user out at the browser indicates it should stop?
 
yes
 
That's kind of tricky, due to the nature of web systems. Being standard client/server, normally each server operation is triggered by a client request.
 
9:35 AM
here is some part of code: pastebin.com/V3xMDp8w
in this code I am also making calls to bitfinex API to get live data as well
or do I need to run main_call() function in specific thread and other program to start and stop that thread?
 
Morning all.
 
Heya o/
 
9:55 AM
or maybe kittens
!!clearup knives
 
@arshpreet try ... except with no exception specifications is a real code smell - even though it doesn't bear on your current problem yo need to consider fixing that ASAP.
 
from truck import myxomatosis
 
!!rabbit
!!clearup rabbits
 
:(
dismay!
Or should that be
!!dismay
!!rabbit
 
10:11 AM
@arshpreet That's what they all say! Sure, I appreciate that isn't your current focus. Hope the link I posted helps you.
 
Getting that important core functionality sorted I see @JonC
 
Rabbit rabbit rabbit badger badger badger
 
This is where I regret first signing up via Facebook. I wonder if that script can be adapted...
 
@Ffisegydd Kevin kind of motivated me to have a stab... so I spent about 2 hours on it this morning trying to come up with something that's not truly crap, but happens to work and should be easily extended and multiroom if needs be.
 
@holdenweb :) yes definitely helpful, by the way what harm I can get if I don't write anything after except?
 
10:14 AM
@JRichardSnape You can add an email and password credentials to your account
 
We need a !!desnark command.
 
@Ffisegydd it's easy to write one (if you know what it's supposed to do anyway...)
 
@arshpreet Well, except with no exception specifications catches anything, including KeyboardInterrupt and StopException. See this answer for some hints.
 
10:38 AM
@arshpreet Also related: First part of this answer.
 
10:50 AM
thanks it was very helpful
 
From the look of his Gist I get the feeling that Josh doesn't understand what Kasra's code is doing. stackoverflow.com/questions/38686269/…
 
@PM2Ring lol
“A demonstration that sets store their contents in memory.”
 
Hopefully, my comment will clarify things for him, but in cases like this, you never can tell. :)
 
> Fortunately, there's an ancient permutation algorithm, due to the 14th century Indian mathematician Narayana Pandita
@PM2Ring Are you sure you’re not making that up?
 
:) Check the Wikipedia link.
 
11:03 AM
I know ;)
 
FWIW, I've used that algorithm in a couple of other SO answers, but the questions were sufficiently different that the new question isn't a dupe of either of them.
An old mate of mine is playing some blues on the radio, right now. eno.emit.com:8000/2mbs_live_128.mp3
I haven't seen him for over 30 years: he's been living in the UK, so it was a real surprise to hear him on the radio.
 
11:31 AM
!!listperm 1252759
id:1252759 current permissions:admin available commands:addperm,clearup,listperm,rabbit
!!listperm 216074
id:216074 current permissions: available commands:
!!addperm 216074 rabbit
id:216074 permissions set to:rabbit
!!listperm 216074
id:216074 current permissions:rabbit available commands:rabbit
@poke wanna try a !!rabbit ?
 
!!rabbit
 
So I can make you post stuff now. That sounds like a great idea
:D
 
just rabbits :)
 
!!rabbit
 
11:34 AM
 
What are the chances
!!rabbit
 
umm... one sec
 
and it’s broken
:(
Are you posting via your bot too, or how are you sharing the account?
 
!!addperm 216074 admin
id:216074 permissions set to:admin
!!listperm 216074
id:216074 current permissions:admin available commands:addperm,clearup,listperm,rabbit
@poke the bot's running on a server in the states
!!rabbit
 
So, you’re trying to remember the password? xD
 
11:36 AM
awww and it's a different one.. yay
!!rabbit
!!listperm 1252759
id:1252759 current permissions:admin available commands:addperm,clearup,listperm,rabbit
 
huh
 
!!rabbit
 
so did you link the rabbit account with your own?
 
Nope...
hoping to grab a dev later when they're about and see if they can't help out with whatever's going on there...
!!rabbit
!!addperm 216074 trusted
id:216074 permissions set to:trusted
!!listperm 216074
id:216074 current permissions:trusted available commands:clearup
grrr
 
(It’s super weird to communicate with the bot that’s running on your own chat account via said chat account)
 
11:43 AM
 
@poke I don't do weird by half :)
 
I realized that, yeah :P
 
cbg
guys, uwsgi server uses more and more memory after each request and also spawns new processes. Anybody knows what this can be?
 
cbg
@khajvah sounds like a leak... set the max number of requests in the config file to a reasonable amount and set vacuum to true to kill them and start new ones periodically
(although you might really want to look at why that's happening instead)
 
11:49 AM
@JonClements you mean inside the Django application?
 
@khajvah in the uwsgi config...
 
i mean the leak
 
Pass..!?
it's your leak :)
 
I doubt my code could cause new uwsgi processes to spawn
on every request
 
too broad stackoverflow.com/questions/38697269/… Sorry, I should've mentioned that before.
 
Bio
12:04 PM
Hello :)
Anyone can help me with seaborn please?
 
Just trying to smuggle in a link and see what happens
grrr
back to sandbox
 
Bio
you are talking to me?
 
@JonClements what does vaccum do? Can't seem to find anything in docs
 
@khajvah it's in the uwsgi docs
 
I am trying to understand, is it normal to spawn a new thread on every request?
 
12:15 PM
Okay smuggle the link in... come on!
Jon Clements just posted a link to Create a 'standard property' for class attributes in Python by Grysik first posted 2016-08-01 08:10:34
 
So he did!
 
Now for the other trick...
 
Jon Clements doesn't agree!
 
@Bio Hi @Bio. Check out our room rules - in particular, you don't need (and indeed are encouraged not) to ask to ask :) Fire away with your question, there are a couple of people on here familiar with seaborn (and mpl more generally)
 
12:24 PM
Animating height of fabricjs rect object decreasing from top instead of bottom was the last posted Q by Jon Clements at 2016-07-11 09:04:24
Is there a way to tell if the value of a DependencyProperty came from binding source or target? was the last posted Q by Johan Larsson at 2016-07-10 10:08:38
!!rabbit
Testing my take on rabbit
Printing passed bytes from Exception was the last posted Q by Sean at 2013-12-13 09:51:24
!!addperm 559633 admin
id:559633 permissions set to:admin
!!listperm 559633
id:559633 current permissions:admin available commands:addperm,clearup,delperm,listperm,rabbit
 
user559633
I see the puppy is also distracted from work.
 
Jon's 'busy' testing.
;)
 
Yes... "testing" :)
 
too early, Jon, too early.
 
Anyway - I've fixed that now :)
Animating height of fabricjs rect object decreasing from top instead of bottom was the last posted Q by Jon Clements at 2016-07-11 09:04:24
 
user559633
12:28 PM
!!wolf
 
!!donkey
 
user559633
Oh, apparently my !!rabbit defense bot is offline.
 
!!clearup !!
!!clearup tristan
 
user559633
Daaang. Look at you!
 
!!clearup hi
Okay - so that's slightly buggy
 
user559633
12:30 PM
!!clearup Okay (or does it only listen to you?)
 
Oops - you got "third" with "hi"!
 
@JRichardSnape yeah... was playing with wildcards
 
Probs RegEx will fix everything saunters off
 
hmph
 
!!addperm 559633 admin
id:559633 permissions set to:admin
 
user559633
12:32 PM
There's a new Star Trek movie apparently.
 
@tristan there you go - you can try now
 
TBH !!clearup SAID BY @jrs is probably basically fine.
 
user559633
With adblock, ghostery, and me barely leaving the house, I really am a hard to reach potential consumer.
 
user559633
@JonClements Cheers :)
 
user559633
!!rabbit
 
12:32 PM
 
user559633
oh nice, tactical pocket rabbit
 
Ha - you can now post on the internet as Jon. Power is basically yours.
 
user559633
without the ears, it would be hard to tell which way that rabbit is facing
 
go on - try !!puppy. It unlocks powers beyond our ken.
 
user559633
!!kick 3005188
 
12:33 PM
There isn't a kick command :)
 
user559633
!!rabbit. Ah, so first pass on a message only.
 
!!droptable; ?
 
user559633
!!rabbit;!!rabbit
 
user559633
!!clearup a
 
user559633
12:35 PM
:D!!!!!!
 
user559633
hey guys before i get banned, i just want to say it's been fun
 
:)
hope you've implemented !!dropperm, @joncle.
 
user559633
including: rabbit, snooker loopy, margate, gertcha...
 
user559633
that's a lot of english before my morning coffee
 
Anyway - code's on github.com/sopython/rabbit/tree/jon if you want to play with it or happen to want to add any bits to address the issues on GH
 
12:38 PM
Chas & Dave, a British institution. The weird thing is, despite the idiosyncratic style, the musicianship is really top quality.
 
@JRichardSnape "a British Institution" or "should be in a British Institution"? :p
 
user559633
@JonClements For elasticsearch, how did you generate/collect that data?
 
@tristan ahhh hang on...
 
@tristan @JRichardSnape a more marginal 'institution' in the same vein: Lawnmower Deth. youtube.com/…
 
user559633
...tha...thanks?
 
@tristan I've added sse.py, proto_listener.py and initial_upload.py to github.com/sopython/rabbit/tree/jon
 
Re-cbg after wifi failure
 
@JonClements probably both.
 
@AnttiHaapala On my local build, yes. Haven't pushed to github though.
 
@Kevin you inspired me :p
 
12:49 PM
@Withnail Niche, but I'm enjoying "sheepdip"
Some nice musical quotes from heavy rock in there.
 
@JonClements Oh nice, I was thinking of something like register.event.
Cramming everything in one big honking if-elif block like I was doing clearly isn't sustainable
 
@JonClements does a PR to break chat.stackoverflow.com into a config file to get his name on the contributors list
 
So I've got a file. config.py, which I haven't pushed to GH because it contains Terry's email and password. But config.py also contains non-private data like the database connection string and the list of bunny images.
This makes it harder for other people to download and run rabbit, because they have to reverse-engineer config.py's contents from scratch. Obviously not good.
 
You can put up an empty one with place holders...
 
For secret stuff, have it read env vars that you set locally?
 
12:59 PM
I could separate the config options into private and non-private files, and only commit the latter. But then the user still needs to reverse-engineer the private one, albeit it's a simpler task. I could change the email/password to example@example.com/swordfish every time I want to push config.py and change it back on my local machine, but if I make a mistake, the credentials will leak in a hard-to-reverse way.
I could create a config.py.example file and keep it in sync with config.py except the email/password is fake, but then I have to do twice as much work every time I need to update the config.
hmm, env vars...
 
Or...
You have a config.py with all the place holder variables in it, which you keep git controlled
 

« first day (2116 days earlier)      last day (2815 days later) »