next day →
last day (60 days later) »
Bob
15:34
So, in here?
jokerdino
yep!
one sec. let me fetch my notes
Bob
Hm. Looks like I'll need to set up my Python environment too.
I never bothered to install it on this computer.
o.o
I have it installed, somehow. Ok, whatever.
jokerdino
heeh
err @Bob i cant seem to find the notes
anyway, what i had in mind was to track how many questions get any kind of response
Bob
Hmm... could you elaborate?
jokerdino
so, we check how many questions (from hereon) get comments, votes, answers, etc
Bob
15:39
Ah.
Essentially, check how many questions get
no
response?
jokerdino
like, last 100 questions- 5 got answers, 40 upvoted, etc.
Bob
Or the opposite, anyway.
jokerdino
@Bob that could be the extension of it
depending on how complex we want it to be.
that's pretty much the idea i have in mind.
Bob
Right.
How did you want it displayed?
Like, a list of questions? Overall statistics?
jokerdino
stats perhaps?
expanding to the list of questions could be nice too. but might be expensive
expensive in terms of resources
Bob
15:44
Resource-wise, it would probably have to be paginated.
I'll probably end up making API requests every 15 mins, and caching the results.
Maybe longer if it's a lot of requests.
jokerdino
actually, right now, i just would like to have some numbers.
and a list for questions with no response only.
would be easier to get a look into the site's vibrancy etc.
Bob
I would still end up caching requests, though.
It's just not feasible to fire off API requests every time someone loaded the page.
jokerdino
that's reasonable.
you can cache it per day
Bob
Unless that was done on the client side, but I suck with JavaScript.
jokerdino
okay how about a tabular form?
questions asked / answered / accepted / commented / voted / favorited etc
just let me enter the date from which i want to view the data. that's pretty much what i would like right now.
Bob
15:52
Well, see what you want to keep from here:
win8challengestats.tk/cgi-bin/stats.py
jokerdino
let me see
@Bob you can keep all those stats aside. nice to have them but don't have the ones i am looking for.
Bob
@jokerdino I meant, what from the formatting.
jokerdino
oh formatting.
two rows + lots of columns
100 questions / 40 answers / 30 accepted / 80 commented / 90 voted/ 5 favorited.
Bob
The numbers?
jokerdino
yeah, just the numbers
you want to list the questions too? i would be more than glad :P
Bob
15:56
I mean, what are the numbers?
100 questions?
40 answers?
jokerdino
@Bob just a filler
from 30 Dec 2012 onwards, x questions were asked. of it, etc ...
Bob
Right.
jokerdino
replace x with 100 and you should get what i am saying
Bob
Maybe use those as column headings with numbers under them?
jokerdino
yep
jokerdino
16:08
also, you might want to include numbers on closed posts as well.
Bob
I'm just going to try to get a Python environment up
this could take a while
jokerdino
programming with python on windows is not easy eh?
and do you use stack.py?
Bob
@jokerdino not at the moment. I was making raw HTTP requests
considering it though
@jokerdino more effing around with the virtualenv batch script generator
but at least I understand batch and powershell... bash gives me headaches
jokerdino
funny. i understand bash. never tried batch or powershell
@Bob using the wrapper should help no?
Bob
@jokerdino maybe
jokerdino
16:15
discounting the bugs, hopefully
Bob
I'll take a look at the wrapper. Looks like it has a caching implementation.
Weird that it doesn't seem to have good rate limiting / backoff handling.
I thought I had that, though it's untested.
jokerdino
yeah, i vaguely remember you saying something about backoff
wait, i saw that from your code.
Bob
backoff is something the API replies with if you request too many times
it just tells you to wait X seconds before another request
I just add a sleep for X seconds
though sleeping in a library is bad practice, so that might be why stack.py doesn't do it
jokerdino
makes sense
jokerdino
16:34
dinner time here. brb
jokerdino
17:07
and I am back.
Bob
17:27
Welcome back.
jokerdino
how is sleep?
Bob
Not bad.
What the hell is PYTHON_HOME?
I'm trying to migrate my Python install from my old laptop. Docs mention PYTHONHOME but not PYTHON_HOME.
What the hell is it.
WHAT'S CLIPPY DOING IN HERE
jokerdino
clippy is everywhere on SU network
@Bob could be the same thing. i dont know
Bob
@jokerdino Yea, maybe.
At some point, though, I modified the virtualenv config script to add it. So it's something special.
Oh I see. I'm an idiot.
jokerdino
@Bob so what happened?
Bob
17:41
@jokerdino Turns out it was a custom one.
I was using it to set the default file handler to
%PYTHON_HOME%\python.exe
cause Windows doesn't have a shebang
jokerdino
hm
Bob
don't worry about it :P
jokerdino
:D
makes me glad I use Linux.
a lot easier to get started on python programming :P
Bob
Eh, getting started is easy.
I just liked my customised environment :P
Customising on Linux is an even bigger pain, if you consider it being tied in to the package manager :\
jokerdino
i am usually too lazy to mess with those things.
it's just too much work man
Bob
17:54
lol
Bob
18:09
yea, I'll have this done within a month at this rate :P
jokerdino
lol
if you put it up on github, i can chip in
Bob
would you prefer stack.py or manual?
jokerdino
whichever you like.
you are the lead dev
Bob
o.O
2 hours later…
Bob
20:49
Finally got a Python environment up.
And it's almost 7 AM.
I'll do more tomorrow. Or tonight.
next day →
last day (60 days later) »
all rooms
Transcript for
Jun '13
29
Jun
30
Room for Bob and jokerdino
join this room
about this room
00:00
06:00
12:00
18:00
all times are UTC
site design / logo © 2025 Stack Exchange Inc;
legal
mobile