« first day (1374 days earlier)      last day (3577 days later) » 

1:14 AM
Me trying to get flask_oathlib, requests_oauthlib, oauthlib, and finally just requests, to work:
OAuth is working now, I did it live. :)
Hmm, I'll need to register the demo server.
Done. Now to actually do stuff with users.
 
1:38 AM
I know a few things about oathlib
also requests... whatcha doing?
 
Using Stack Exchange API to authenticate users on sopython. I already finished: github.com/sopython/sopython-site/tree/ng/sopy/auth
 
ooo, you do things really differently than I do
 
How so?
 
I tend to like to have the __init__.py only have blueprint instantiation and imports, then the views.py only have routes in it
 
Uh, that's what I did.
 
1:50 AM
err... that login.py file just looks kinda foreign tbh. Does flask-login work with openid?
 
It does, but I didn't need most of flask-login, so I did it myself.
 
it kinda looks like it has a lot of flask-login's classes and methods
 
2:12 AM
hi guys, a quick question:
temp = [{'a': 0.5}, {'b': 1.0}, {'c': 32.5}]
result = [{'a': 0.5, 'b': 1.0, 'c': 32.5}]
how to get the result from the temp ?
i just want to combine dict items into one item
it seems zip(temp) does not work
 
result = {key: value for d in temp for key, value in d.items()}
 
@davidism, thanks
 
are wtforms posted as JSON when they're submitted?
 
HTML forms are submitted as application/x-www-form-urlencoded
 
so would there be a way to submit a wtform early?
 
2:20 AM
ajax
 
yes, but what would the data be? If my form is username and password, would the form look like:
$.post(url, {'username': asdnkajns, 'password': ajnsdakj})
 
Why not try it and find out?
 
it's not doing what I expect is the problem.
@school.route('/validate', methods=['POST'])
def validate():
    form = RegistrationForm(request.form)
    return jsonify(form.errors)
I know there's an error on the page, but it does not return it.
 
You didn't call form.validate().
 
oh wow I am an idiot... thank you haha
 
 
3 hours later…
5:08 AM
cbg guys
 
cbg all
 
cabbage
 
Cabbage humans
 
5:49 AM
cbg
 
cbg @Jerry
how was ur trip to SA?
 
awesome
a bit cold, but awesome
 
6:08 AM
Cbg all
 
6:29 AM
cbg stewie
 
how have you been btw @EricCartman? been a long time since I've seen you
 
you've haven't seen me yet ;)
:P
 
I've seen you @Eric. Through my binoculars...o.o
 
i'm fine , i wasn't regular on chats though :)
 
ahh
ok, good to hear
I haven't been over SO much, a bit more on chat though
 
6:32 AM
why do i keep track of just half the sentences?? i am having grammatical errors on every line :(
i haven't seen u here ,@Jerry
since a month
@Ffisegydd im changing my avatar again , sorry :(
 
oh? must have been online at the wrong times then =/
 
or maybe i was online at the right times and you were wrong after all ;)
woooosh and here's the new avatar
woosh actually was abt 2 hrs :(
 
6:47 AM
Back to @Sword eh?
 
with a y
 
You really shouldn't change your name round so much, it gets very confusing...
 
yeah.. iwasn't sure which one was good but i think this looks perfect
just need to change the pic
 
7:45 AM
Cbg
 
8:12 AM
Morning all, very soon I will be going back to uni to finish my final year (computer-science, of course) and wanting to get some ideas for my final year project and hear what other people have done, what did you guys do for yours?
 
cbg!
@Phillip-Marsden I skipped that step..
 
skipped university :o?
 
Skipped out; 20 years ago a full time position as webmaster at one of the largest ISP in my country was far more interesting.
 
Ahhh, any ideas if you DID do a final year project what you would do?
 
8:29 AM
I remember thinking up something dreadfully IT-esque. Some kind of quantitive research into software use in organisations or something like that. I am glad I never got to that point.
 
@Phillip-Marsden you should use machine learning to investigate the quality of questions and answers on Stack Overflow and try to predict which ones may be closed in the future ...then you should share the source code with me... :)
 
@Ffisegydd Waiting for the evil laugh....
 
Had to cut back on the evil laughs. Budget cuts.
 
8:35 AM
@Ffisegydd what should be the benchmark for quality?
 
Negative score, closed and/or deleted within a week is a good counter-indicator for quality.
 
@tila what we're planning on doing is training a model based on previous SO Q+As. From my limited knowledge of machine learning I believe we'll be using a supervised model where we basically say "Was this question closed or voted down severely?" and then try to work out how we can predict it again.
Unfortunately there is a problem that we don't have access to deleted posts, so we'll have to keep track of posts in real time and then check to see if they're deleted in the future.
 
@Ffisegydd haha its a plan!
 
we do have a specific benchmark for what is good and bad then i would believe yes, it is supervised.
 
As far as what will be going into the model? No idea. Not even sure how to do it yet so we've not thought that far in advance.
But SO itself uses a similar model internally.
They use parameters such as "has the user capitalised 'I' in sentences correctly?"
 
8:40 AM
Maybe a tag cloud of words to determine if the words used in the question relate to it being closed?
 
And "does the user use the word 'help'?"
 
or 'please'
 
And they actually see strong correlations.
Exactly.
Questions with "help please" or use "i need some code" are more likely to be low quality questions.
Hell. They even found that posts tagged with "php" were more likely to be low quality :D
 
I bet there is a correlation to people who use text talk in questions
hw 2 write h1 tag
 
Exactly.
So eventually we'd like to set up sopython.com to automatically "rate" new questions based on a model and then notify the chatroom when one is posted that is "low quality" so we can look at it and (if appropriate) close it.
 
8:43 AM
I want to learn cool stuff about python, suggest some really interesting tasks to work on. : )
 
One of my ideas is to make a drone with my pi that has sensors all around so it could tell it to get to a specfied lat long without crashing into buildings
 
Unfortunately we're not at a stage to work on Nidaba (as the project is called) just yet. For the moment we're redesigning sopython.com (new demo is given here).
 
sensors as in gps sensors? that would be cool, i have a pi too.
 
range sensors
 
specific lat long means gps variables
 
8:46 AM
I did buy some from Amazon but thet only work with Arduino :(
oh, I meant for not crashing - gps sensor too for lat/long
 
what if they only work with arduino?
what do you want them work with?
@Ffisegydd What is sopython.com made from?
 
you want two pi's to be able to communicate?
you could make a server on your computer and make pi's client, and make them connected to your computer via wireless module, and then communicate with them or pi-drones.
and all the coordinates to move to are fed by the server, and to coordinate among the pi's, the server could be the mediator.
 
The only thing that holds me back on that is, well you can buy PiDrones online, so by me doing it from scratch, is that really a good project for my final year?
 
@tila sopython is made from equal parts of Flask and the souls of kittens.
 
8:53 AM
are you going to make a drone all by yourself?
it is more than a semester worth of effort!
@Ffisegydd is Flask enough? How good is the documentation? I was going to learn Django. So do tell me the benefits.
 
I suppose
 
Flask is more than good enough. They both do the same job in the end but with Django everything is built in. Whilst with Flask you have more choice on what pieces you use.
I don't know Django though so can't compare them directly, only little bits that I've heard from others.
 
that makes me want to use Flask.
@Phillip-Marsden what are your other interests and choices?
 
From what little I know of the two, I'd suggest Flask.
 
The last idea I have on my list (and this may already be done - but I couldn't find a program to do it) a chrome plugin, or software that automatically generates subtitles for video by splitting the video and audio and sending the audio to google speech api
 
9:00 AM
that does not sound like a major year project
 
preferably in real-time, but even if I could create a service where you can load a video file and the program spits out a subtitles text document - that would pretty cool
 
if you make a sample speech api to convert speech to text or likewise
 
@Phillip-Marsden you'll have to check the usage terms on the Google Speech API.
 
Yeah - I dont think it would be as simple as passing the audio to google, because I think google will only pick the audio from the microphone, do not believe they allow a audio upload
and true - Google may not like it
 
9:27 AM
what's the old-style-class equivalent of object.__setattr__? I need to monkeypatch a method onto an instance which has a __setattr__ method that rejects any modifications
 
Just thought - for the drone, instead of a static lat/long suppose could make it controlled by the web kinda like twitch with the users in a chat controlling it up down left right, make it solar powered so it would actually last and see where it ends up
 
nvm, using one of its old-style superclasses worked
 
10:06 AM
She's talented
 
10:48 AM
@Phillip-Marsden that is a good idea
: )
 
11:07 AM
@tilaprimera yeah - just thinking about how I can make the Pi internet connected outside, buy a GPRS module - but the ones I have just looked at look way expensive, and not a lot of documentation - OR (and a little cheating I suppose, buy a cheap internet connected mobile - which will already be able to report lat/long)
 
hehe
gprs module hmm....
 
The only one I have found is here cooking-hacks.com/shop/raspberry-pi/…
and it looks pretty new, could be a big headache
 
i dont think you would need something that expensive to do a simple job.
do you need 3G?
is that the total cost for the whole unit??
 
I need to be able for it to be internet connected outside, how else could I go about that?
yeah
 
I'm creating a Nginx C module to embed the Python interpreter, so being able to script Nginx with it and have a lot of performance as there's no extra-layer overhead, it's direct. I'm calling it Ngython but it's not sure. If you want to keep updated drop a msg.
 
11:11 AM
it is reasonable then, since gps gprs modules do cost abt $60/$80+
and raspi costs around that too...
raspberry pi with all the sd cards and the canakit box
 
but could I get what I needed buy simply buying an old Samsung S2 for £30?
 
can you tweak it and run it like you need?
 
I already have a Pi
 
oh, if that is the case, then you surely should use the samsung
 
well you could just use one of the new HTML5 calls to get your lat/long
 
11:13 AM
:hmm
coolll
you have pretty much thought out all of these,
 
If you have any concerns or suggestion about my approach tell me :-)
 
how will raspi talk to samsung?
 
by putting the samsung in hotspot mode (assuming it has that functionality like iPhones) and then with the pi using a wireless dongle
 
hmm
that is pretty much done!
:D
 
it always sounds easy in theory
 
11:16 AM
hehe
i am using a pi right now, as of this moment and have experience communicating b/w my computer and rpi over tcp
 
I've been thinking about embedding Pypy instead as it has coroutines natively. Coroutines are needed not to yield a C boundary while passing requests nginx-interpreter.. any thoughts?
 
@Phillip-Marsden you should get started right away : )
also use the camera and take good shots as well of the aerial view!!: )
 
I know - off to CEX to buy a cheap, probably stolen phone
 
hahah you said you have the phone no?
btw
 
well not a spare one - but I could test the theory tonight of using a phone for the internet connection
 
11:19 AM
do you need that costly a phone?
 
*yield across
 
i guess a simple sim operable phone can be used to use the gprs connection to make a web call, and then the data could be used to find the lat/long.
$20 samsung phone with gprs enabled, how about that?
 
yeah, easiest way!
w3schools.com/html/tryit.asp?filename=tryhtml5_geolocation then this little request tells you your location
 
you said sth abt euro 20 : )
goodluck !! : )
 
plus I would imagine the mobile way would be more accurate?
 
11:22 AM
umm, yea, since gps modules are a bit way off 10 meters or so.
 
So far so good it seems to communicate fine with the interpreter with very trivial concurrency and without coroutines. But as more Nginx variables you pass to interpreter it slows down considerably. Going to try with Pypy.
 
Just you wait - I will get it up and running - and the people will navigate it over secret government agencies, they will shoot it down and I will fail uni :'(
 
hehe
: ) dont worry, use it only inside university
or within your home location
unless you live near borders:D
 
It seems to be better with Pypy and no coroutines. Going to try with them now.
 
maybe, I should make sure it unable to leave the UK too
now how would you suggest powering? guess it will have to be a big solar panel..
 
11:27 AM
worry not, for lots of debugs, i am sure you will be needing it within your reach, and within its fuel capacity
 
lol. Little ego is growing.
 
powering?: ) i am so bad at power consumption handling
think small for now? and getting a prototype working? solar panels are going to cost big on your project.
why not use a high capacity battery?
 
If you still want to use crap Flask or Django do it. Otherwise look on Ngython development! Bye!
 
Yeah true, its not cheating is it if I prove the theory of my project before I start my final year at uni hehe
 
hhehe
nope
 
11:36 AM
and on the mechanics of the actual drone, you reckon it would be better to just buy a cheap quadcopter toy and build from that - as I reckon actual sorting the balance out would be pretty hard if I did it from scratch
 
yup that is pretty much where you should start work from.
@HakanBoztepe very sorry. i have no idea about your work, so i was silent on it.
@Phillip-Marsden our seniors at uni, did a quadcopter from scratch, they brought the rotors/blades/ stuff from india, and built out the copter here, and then basically mounted a rpi on it and did some stuff, which took about 1 year for them to complete. the balancing stuff took them more time than they had precalculated
 
Yeah I can imagine!
@HakanBoztepe I wouldn't have a clue how to help you - sorry I am pretty much a 'noob' (if thats the right word)
 
@HakanBoztepe i am a noob in python !!: ) sorry about it, no idea abt django and flask except that they are web framework.
 
bringing it back to python, do you use another IDE than the standard python one?
 
i use a terminal and call python on it to get the python shell, or else for checking codes, i use ipython.
are you working on windows or linux platform?
 
11:44 AM
switch between the two - work I use windows, home unix
 
oh IDE
:D sorry
i use PyCharm community edition 3.4.1 currently
 
there is a standard set up lib for getting your lat/long.. 'geopy'
 
was using eclipse with pydev previously....
 
I will have to have a look at it
 
what IDE do you use?
 
11:47 AM
standard, think I am going to try use notepadd++ and set up being able to run through notepadd++
 
you could use sublime too
 
have to have a look, the standard one is a little clunky at time
 
hmm, notepad ++ is way sufficient. even gedit is. but sometimes to be more productive with time, a good IDE helps you. i would reco this pycharm.
 
@tilaprimera @Phillip-Marsden you have no need to apologise to Hakan by the way, if someone starts kicking off like that then just ignore them or flag their message as offensive.
 
ok : ) thank you
 
11:52 AM
:)
 
was worried we was being a bit 'off topic'
 
No don't worry about that.
You were discussing programming and are more than welcome to do it.
 
cheers :)
 
If there are several conversations going on that are discussing Python (say trying to help someone with something) then maybe you'd be asked to not chat off-topic as it can clutter up the chat room.
But we talk about much more off topic things around here all the time :D
 
: ) that keeps the chatroom warm and comfy : )
 
11:54 AM
discussing ways to import stewie is considered legit
 
import stewie as evil
 
For an example of OT chat let's just say: I love kittens.
 
import stewie gave an import error
:D
 
android 4.4.4 out for moto g. downloading at snail's pace
click on the pencil icon
next to ur name
 
:D glad.
 
12:05 PM
u have the privilege of editing it within 2mins of posting ,after that u can do nothing except for asking the moderator to do it.
 
Don't ask moderators to edit your posts.
You'll just get a warning for not wasting mods time.
 
Does anyone know how to get past firefox dialogue boxes? Just using selenium to use a quick webpage I put together to get current users lat/long, only problem is that firefox asks permission each time and that kinda kills the step from actually allowing the request to continue
 
12:26 PM
@Ffisegydd errr. not wasting?
 
:P
 
You know what I meant. Runs off to find a mod to edit it...
 
I have seven endorsements on linkedin for python, how did this happen?
 
Someone was drunk.
 
you put money in a brown paper bag and sent it to Mr.LinkedIn?
 
12:53 PM
If you get three more, you're banned from coding for a year ;-)
 
Well you've just got one endorsement as a star on @Zero's post...
 
1:23 PM
cbg
@Ffisegydd are there any good books on machine learning that you could use?
 
I've mainly been going off blogs/articles/tutorials. I picked up an ebook on Bayesian analysis too.
Found some spelling mistakes but doesn't look too bad as an introduction for when people ask what we're doing.
 
Wow
I so could hug you right now :)
 
wow! is this sopython?
who redesigned it?
looks sweet :D
 
@davidism has rebuilt it from scratch
It's not "live" yet but he's got the demo up on his server.
 
awesome
 
1:29 PM
So it may go down randomly.
 
@Ffisegydd Awesome documentation dude :)
 
Oh man that's freaking beautiful.
when you use markdown you can put code within ~~~ [multi line code] ~~~ markers and it'll highlight it according to Python syntax rather than markdown syntax.
You also don't need the 4-space indentation to make it code if you use ~~~ ... ~~~
 
@Ffisegydd Pretty neat, it looks a lot like Ask Ubuntu's page.
 
heya @Games - how ya been buddy?
 
wow it really does.
 
1:35 PM
nirvacana.com/thoughts/becoming-a-data-scientist - This has a roadmap on becoming a Data Scientist
 
Perfect! A fast and accurate solution, just what I needed. Thank you very much. — sentencia 26 mins ago
Not bad since I was just taking a stab in the dark at it :p
 
@JonClements All right, and how have you been?
 
@Games same old - busy and tired :)
 
@JonClements I can relate. I'm just tired and depressed.
 
Oh... not sure I like the "depressed" part - what's up?
 
1:37 PM
I'm looking forward to the end of the month, when my "must work using chat-blocking VPN" project is over
 
@JonClements You might like this
Level-Up Your Machine Learning http://metacademy.org/roadmaps/cjrd/level-up-your-ml
 
@Kevin Hey thats pretty neat? Is it going to be on your github?
 
I just started a HTTPS Proxy and couldn't complete it :'(
 
@JonClements Note sure really. Honestly, I'm at such a point that I feel tired just contemplating going to university. Really crappy place.
 
To clarify, I'm not writing a VPN. I'm required to use it, to remote into a desktop where I do my work.
 
1:39 PM
@thefourtheye datatau.com is good for data science links. It's basically Hacker News for DS.
 
@thefourtheye I can give you a better set of books.
 
Does python support proxies
 
Is there any material which I can read and with practice problems, for which the solutions can be validated?
 
@Kevin How ya been? Your friends still guilt tripping you? ;)
@thefourtheye Sure, but before I tell you what books are good, what do you want to make?
 
Not recently, no
 
1:42 PM
Well thats good. Hows life?
 
@Games wow... you've got really demoralised about uni education now then... :(
 
@GamesBrainiac I like to train a machine to detect/flag bad IPs
 
I need some books too @Games if you have any recommendations. I'm looking at both general machine learning as well as more specifically supervised models for looking at SO Q+As.
 
I can't believe it. The requests module supports proxies according to the docs
 
Wow wow wow wow - there's login support now?
 
1:44 PM
@Jon yeah davidism did that last night.
 
@GamesBrainiac Can't complain. How about you?
 
@Ffisegydd guess I'm going to have to get something nice on his wishlist now then :(
 
You might not be a trusted user though so may not be able to do anything.
 
@JonClements Honestly, it just happens every now and then... What can you do? University scuks, because I don't feel like I learn anything.
 
How long you got left @Games?
 
1:48 PM
@thefourtheye Good, so you want to work with AI and ML. If you want a practical book, then use "Machine Learning in Action", its a lot of fun, and gets you acquainted with all the stuff you need. If you want to try out something rigorous, then Norvig's AI book, but its not necessary for the simple thing you're trying to build.
 
@Ffisegydd allows me to add "Cabbage" back to the list...
 
@Ffisegydd I think we need to decide on which sub-topics we are going to entertain. I'll certainly make a note of this on trello (sorry, university is sucking the life out of me). After the topics are created, then finding relevant books is quite easy, we just need to make sure that the content is not too old.
e.g. Python in a Nutshell used to be a great book, but now its quite old.
 
@GamesBrainiac Thanks :) I ll check them out
 
@Ffisegydd another year and 6 months.
 
@Game Brainiac Maybe drop out of uni and become entrepreneur. Time well spent.
 
1:49 PM
@Jon then presumably you have superuser powers as otherwise you wouldn't even see the button to do it.
 
@Kevin Still working on that physics app. I might need some help with getting vectors to work.
 
It'll be fine @Games, try to work on side projects in your spare time and make the most of the summer.
 
@Ffisegydd We don't have a summer vacation :P
 
@Ffisegydd is it fine grained control yet, or just any SE login does it?
 
Make the most of it anyway! Jeez! :P
@Jon SE login and certain user ids can be added to the superuser list.
 
1:51 PM
@Games hang with us... we'll have fun! :)
 
Yea, trying to. But you know what happens, you try to do too many things, and you end up nowhere.
@JonClements so chat is therapy :)
 
@Games do you think chat is therapy? :)
 
If it's therapy then we can charge for it...
 
@JonClements Trust me, sometimes laughing at some of the stuff we do is a pretty good way to relax.
 
Yeah, but we'd have to give him a student discount wouldn't we?
 
1:52 PM
@Ffisegydd Good plan mate, We can compensate the budget cut ;)
 
Yeah definitely a student discount for our friend Games :) we'll only charge £95 per hour rather than £100.
 
@GamesBrainiac Ok, you know where to find me.
 
@Games I don't know what you're implying.... everything here is always Python related and of utmost importance to the world in general
 
Ya, he deserves that... Man, you are generous
 
cabbage all
 
1:53 PM
cbg @davidism
 
@davidism cbg!
 
Yo
 
@Ffisegydd Think you missed a 0 off that - I'm not dropping rates that much :)
 
@Kevin Still not eating "cabbage", huh? :D
 
Yeah. My refusal to use Salad further legitimizes it. "First they ignore you, then they laugh at you, then they fight you, then you win."
 
1:55 PM
The permissions go Anonymous, Authenticated, <groups>, superuser. Right now, you get write permissions if you're in the "approved" group. Everyone on the old list should be in the group.
 
@Kevin With a Ka Me Ha Me Ha! :P
 
@davidism I thought so, because even I see the add button :D
 
If I could fire energy beams, I wouldn't be working as a programmer.
I'd be... Actually, what profession would be made easier with chi blast powers?
Demolition?
 
How about evil villian?
 
High energy particle physics.
 
1:59 PM
@Kevin You can help @Ffisegydd in breaking diamonds :D
 

« first day (1374 days earlier)      last day (3577 days later) »