« first day (1555 days earlier)      last day (3409 days later) » 
00:00 - 16:0016:00 - 00:00

4:16 PM
Haha... like the comment on stackoverflow.com/questions/28011790/…
 
Hi
Where can i download the "rsvg" Library for Python?
 
@ChristopherJakob please read the room rules at sopython.com/chatroom - also, your question is on the main site and you're receiving feedback on it - you don't need to post it here :)
 
@JonClements how about you let me get some work done dont mess with my stuff
 
@ChristopherJakob you need to learn some debugging skills here. That's too much code to expect us to look through (although this one's simple, we could answer based off the traceback). See stackoverflow.com/help/mcve.
 
@ChristopherJakob please don't get an attitude - if you're going to breach the room rules, then expect action to be taken to prevent disruption to this room
 
4:24 PM
@davidism thanks man I know I am currently working on it. I figured if people didnt want to do it they just would leave it alone
 
In addition, we're already watching the main site, so we know what's going on there for the most part. Wait a couple days to receive an answer there first.
 
Anyone know where i can find the "rsvg" module and download it?
 
@JonClements I'm not ok with that. live and let live, leave my stuff alone
 
@ChristopherJakob that really sounds like the wrong attitude to have. Don't expect us to "do it" for you. And seriously, drop it.
What's the longer acronym related to mvce? I couldn't remember it, but I like it's article more.
 
@davidism SSCCE?
 
4:30 PM
yeah, that one, I tried about every other combination of those letters :/
@Emyen it looks like it comes from, at least on Ubuntu, sudo apt-get install python-gnome2-desktop. I can't find much beyond that. Do you specifically need the rsvg library, or would another svg library such as cairocffi work?
 
Think there's python-rsvg as a package
 
4:45 PM
sometimes you really wish there were close votes and flags on other sites
 
Errr... I have a horrible feeling I did something wrong with trello the other week adding a board... we no longer have our "problematic visitors" board? @davidism - help!? :p
cbg @inspectorG4dget how goes it?
 
heya @JonClements! She was able to blow a whistle today (and then some bubbles)! Tomorrow, we try candles. This is a pretty good step - we've been trying for about a week, to get her to do this
 
@JonClements it's there for me
 
how've you been? how's the flu-like thing?
 
excellent - it's also go to make her perkier by achieving stuff :)
Oh... flu-like things all gone now... just was nasty for a little bit is all :(
 
4:52 PM
yeah. She's a very positive person, and loves to encourage people on even minor accomplishments. So, there were a bunch of us at home cheering her on, today
woot @ killing the notflu
on another note, I'm not quite sure what OP wants from me on this
 
@inspectorG4dget just so you know - users require 20rep to talk in rooms... I've put in a request to allow it to be overridden meta.stackoverflow.com/questions/257949/… but as with all things chat - I doubt anything's happening
 
@JonClements oh thanks. On a related note, what ever happened to the "lets continue this in chat" comment feature?
 
I think it's now disabled if the user doesn't have 20 rep - as inviting them to chat if they can't is somewhat pointless
Or... since chat related stuff never gets any TLC, it's likely that it's only triggered by a spurt of fairly recent comments - a lot of those are quite old
 
it sucks then. I can't really have a proper conversation with OP. This forces me to "hack" the system and upvote OP sufficiently to become chattable
also, OP really needs to learn to click on a username to see if an email is listed
 
5:09 PM
Well... I wouldn't list my email - have you seen the meta posts about people receiving snarky emails from people because they didn't like the fact their question was closed or edited etc... etc...?
Wow - not a great question and not particularly good answers either
 
I am yet to get such emails. The worst I've received is "I need the code NOW and I can't turn anywhere else for help". I've actually received some pretty nice emails and have made some friends in the process, too
 
You've obviously got good karma then :)
 
/me blushes
 
user2555451
cbg all
 
cbg @iCodez
@JonClements do you remember the username gamesBrainiac?
 
5:14 PM
I do - he was about not too long ago
@iCodez cbg
 
he and I have become pretty good friends now, thanks to SO. I also made another friend who happens to be a weapon systems expert in the USMC
 
@Jon we need to be careful, @inspector appears to be secretly recruiting a private army
the Dark Council must re-evaluate our stance on weapons-grade cabbage
 
@davidism it's okay - he's already under surveillance :)
 
we meet bi weekly in our super secret temple and chant the chant of the python
 
5:24 PM
re-cbg
 
Do I need to remind you of this?
hey! can anyone think of a way to incrementally format a string a bunch of times? String formatting and jinja templates don't seem to work
I have mytemplate = "hello {{this}}. How is {{that}}?" as a jinja template, and can't render it more than once, as the result of rendering is a string
 
you need some meta template where some of the variables are replaced with new placeholders
 
similarly, I can't do "hello {this}. How is {that}?".format(this='John'), as it KeyErrors on this
 
'Hello {this}. How is {that}?'.format(this='John', that='{that}').format(that='cabbage')
 
The best I've been able to come up with is a hack that uses "%s", "%(name)s" and "{name}".format(...), which is oh so ugly
@davidism: is there no better way? I'd ideally like to be able to leave out formatting keys that aren't rendered
 
5:30 PM
@inspectorG4dget escape?
 
... or at least automate the process (which right now doesn't seem possible without hacking Python itself)
how so, @PeterVaro?
 
'{{that}}'
 
Hello {this}. How is {{that}}?'.format(this='Jon').format(that='cabbage')
 
^ that
 
='cabbage'
 
5:31 PM
cabbage could work
bah! It just seems that string formatting is not as powerful as I'd like it to be
 
I think the first way is better though, because escaping the placeholders forces you to render in a certain order, a certain number of times.
 
it is fudging powerful -- probably the problem is with how you want to use it :)
 
Whereas in the first way, you can chose what stays unformatted by passing it back.
 
I'll have to sleep on it. Though the first way is less constrained, the second way might be better for the specific application I'm thinking of
 
@inspectorG4dget what exactly are you trying to do? Seems a weird situation to be in?
 
5:37 PM
building HTML using python, for which I'm sure there are much better ways (this is for one of the apps I'm building for Mom). From main(...), I call getContent(...), which reads a directory and makes some HTML buttons with the images in that directory. But it has to put those images in random order, so it leaves the HTML unformatted, shuffles the buttons, then formats the imagepaths into the HTML
passes back still unformatted HTML to main, which then formats it with other stuff
 
Sounds a little over-thought - go get some sleep if you're tired :p
 
I /am/ tired, but I wrote this a long time ago. I could really use a good refactor (any volunteers?)
 
Note - you don't want to take this approach... it's subject to SQL injection attacks. Python libraries have a standard DBI API that allows you to safely build the query string - see stackoverflow.com/questions/11807601/… for instance — Jon Clements 21 mins ago
Looks like my advice remains unheeded :(
 
Here's the code, if you want a good laugh at my expense (was written for python 2.6 first): site.uottawa.ca/~apanc006/airlock/matching/createPage.py
 
Mine eyes - they bleed! :)
Looks like a very basic flask app would do nicely for that
 
5:42 PM
I put that together in one night, so yeah, it's horrible. But I was able to deploy it so fast
sadly, I don't know any flask, and had not the time to learn it then. If there's a jumpstart you'd recommend, I'd take a look
I stayed away from most webdev things in undergrad, knowing I'd never have to build a website in my life... oh irony!
also, I am now taking down the link before anyone else sees my horrible code
@JonClements: oh! the problem with flask is that the webpage would have to be hosted on a server that can run python. The apps that I'm creating for Mom are hosted locally on the iPad that she uses. So, flask is a nogo
 
Ahhh okies - can run python an ipad I'm sure
 
Python MySQL:... gong
 
well, the iPad isn't jailbroken, so that would be a definite no
alright, I'm calling it a night! Rhubarb all
 
5:58 PM
rbrb inspector
 
@Jon I'm pretty sure this question is a duplicate of this one. The op needs to clarify first. There's probably a dupe if it goes the other way as well.
 
@davidism ahhh... let me have a look
@davidism ummm... I'd already written this sopython.com/wiki/flask_image_stuff :(
 
Am I supposed to see "This page is in draft mode. Only editors or any logged in users with the link may view it." if I'm not logged in?
 
yes... because you have the link
 
@Jon You're ~27 days too slow ;-)
 
6:11 PM
if you're not logged in, you won't see it listed on the wiki content page though
Well - I'm not convinced they want to only have authorised users access it, or just obscure the urls :)
 
@vaultah I'm thinking back, and I can't tell if the message is wrong or if that's actually a bug.
 
@davidism we'll see if the OP clarifies - it's definitely a dupe if they're after authorisation stuff
 
I interpret, "there's no public url" as, "the general public can't access the url".
 
@davidism, @Jon was right - I can't see the link at /wiki. The message isn't well worded imo :)
 
@vaultah you're welcome to submit a PR - but I don't think it'll get looked at with any particular level of urgency
 
6:23 PM
cbg
 
I think I should start learning VCSs...
I only had minor experience with Mercurial
 
Microsoft Source Safe was awesome :p
 
it's all about Fossil
entire project is a single sqlite file, including a wiki, issue tracker, and blog
 
Is "Only editors or anyone with the link may view it." okay, or my english is failing me again?
 
yeah, that's fine
 
6:36 PM
@vaultah maybe "Anyone may view this page if given a direct link. It will not show up on the wiki contents page for non-editors"
bah.... not convinced about that
 
dupe confirmed? his answer is still technically ambiguous...
 
I assume the same message will be suitable for /canon drafts?
 
yeah
 
@davidism that's a completely useless comment! Make me want to face-desk
 
yeah, he really has trouble explaining himself
 
6:48 PM
I made the pull request
 
Man!!!, you people are too fast at closing :)
 
@BhargavRao you snooze, you lose :)
 
Yeah...
Reinstalled my browser. Everythin is damn fast now
 
@davidism ummm... "Any logged in users may edit it" - while we're looking at it, shouldn't that be "Any logged in users with a reputation of 100 or more may edit it"? (Not that we're really using community mode at the moment)
 
7:31 PM
Wow... don't see many questions start with a story :)
 
hello
I have a question
should I create modules like get_name and set_name or should I not even bother with that and just do instance.name = 'blablabla
 
just do assignment directly
you can always upgrade to a property later
also, they're called methods, not modules
 
right, methods
in Java isn't it common practice to create these tiny functions though?
 
yeah, but this is python
In java, you would have to refactor everything if you wanted to change from direct assignment to calling methods. In python, you can just change the attribute to a property and still use direct assignment.
so you don't write the methods unless you actually need something beyond direct assignment
 
Node.js makes me realize how clever Flask's request object is...
 
7:39 PM
@vaultah is this narrowed down enough? — Shereen 19 mins ago
I feel bad for him, he's not really annoying :( And he put some effort into describing his idea even when the question was closed
 
Sad guy.... He's trying to learn something. But unfortunately, he is at the wrong forum
 
cel
probably needs cleaning up.
 
7:54 PM
does anyone know how to draw a graph using pyqt4? and not using any external libraries
 
cel
@Inthuson I am not sure if that's possible. pyqt is not a plotting library, but merely provides python bindings for qt.
 
It probably is possible. But you really don't want to.
Use an external library.
 
@Inthuson if you're okay using pyqt4 - what've you got against another library ?
 
well i did find the stuff like Qdrawlines? and so on? but I'm not sure how to create a space for them since the coordinates used by the graphs are from the main window @cel
nothing really, i'm doing my coursework, and pyqtgrpahs is asking me to install numpy and i cant find any installion guide on numpy @JonClements
 
8:04 PM
You can use matplotlib with Qt
 
Well, there's a windows installer for it, otherwise there's normally a system package, or pip install
 
thank you i will give matplotlib a try @Ffisegydd @JonClements
 
\o/
Got a +4 on this stackoverflow.com/a/28014245/4099593. FGITW -- 33 secs
 
W00t! Release the balloons!
user image
4
 
Hey what is wrong in my answer there ... Got a downvote now ... After 13 mins
 
8:19 PM
guys my dog is sassing. What do?
 
@BhargavRao maybe the compertion can't handle you
 
@corvid sedate it
 
what is sassing?
talking back to you?
 
yeah she keeps asking for my cookie
 
ohhh
give her one
afterwards tell her that she just ate the last one
then there will be no more cookies left to eat
this is not gonna work I just realized, because she is a dog and not a human
 
8:25 PM
actually I have to show her my plate, and that there's no food, then after that she leaves
 
Off to find someone that will feed her :)
 
so... I see flash used in a lot of 3D model viewers. Is flash better than WebGL for these types of operations?
 
Always seems to be issues with Flash ;)
 
Fine then Rhubarb all. Ending the day with 155 points more. Good night (2:15am IST)
 
I thought flash was considered somewhat deprecated because apple doesn't like it
 
8:39 PM
... that doesn't help - plus it always seem to have security issues
 
@JonClements deleted...
 
By chance is there a chat for those working on building Python?
 
@MattDMo well I suppose the answerer gets their self a peer pressure badge :)
 
@MonaLisaOverdrive ask away, and if someone can help they will
@Jon I thought Peer Pressure was only for self-deleted answers? What I meant in my previous comment was I cast the final delete vote.
 
8:50 PM
@MattDMo oh - it's showing as "deleted by owner" ?
 
Welp, I'm currently at the part of the build where the newly built Python is used to build a bunch of modules...or build_ext. Problem is that the nbP builds _struct successfully, and then throws a dlopen error
 
Oh, I see. I guess they deleted it right around when I cast my delete vote.
 
More specifically, the fakechrooted environment throws a dlopen error.
but if we could ignore the fakechroot part for now that would be very helpful
 
@Mona what platform are you on? Also, can you post the full text of the error?
 
hmmm. It may be a bit difficult as I'm building on an Android tablet. Let me see if I can re-join this chat from my tablet
 
8:54 PM
@vaultah ummm.... if it's not POB then as it stands, it'll be quite suited to being off-topic asking for off-site resources...
 
one sec
...and we're back.
 
@MonaLisaOverdrive nah you're not - I can't see what you're typing :D
 
@MattDMo, the error is very unhelpful as the fakechroot is fairly old...but what it usually means is that some part of the build is assuming libc contains dlopen...which it doesn't on Android
@JonClements insert witty reply here
 
@Mono hmm. I'm afraid I can't help much, as I've never built on Android before. Would it be possible to cross-compile on Linux using the Android libs, then transfer it over?
 
@MonaLisaOverdrive could you use a per-built Python that's used in some projects? Maybe there's one in kivy.org/#download ?
 
9:00 PM
@Jon mmm, missed it. I guess it's an okay question, though probably a dupe. Basically it's the last paragraph which makes it off-topic
 
@MattDMo well, that would involve unpacking my archived CentOS build box...which would require more space than I currently have on my system
Plus I've gotten so far already...seems silly to start over elsewhere.
@JonClements...I'll check the link...but i'm working within an env on the device that emulates a Linux filesys...if Kivy assumes android filesys itmay not work
@MattDMo also, perhaps you could forget that it's an Android env for a bit? Assume a Linux env withsome oddities?
 
@Mona I see. I'm not sure what else to do, as like I said, I've never tried building on Android before. Isn't there a way you could download a pre-built package using something like apt-get?
@MonaLisaOverdrive OK, let me think...
 
@MattDMo why would Android have apt-get - there must be some APK out there already
 
Thanks @MattDMo. Sadly no apt-get in this env. And there is QPython @JonClements, but it doesn't really work and I think the project has been abandoned
 
@Jon that's what I meant - I'm not that familiar with Android yet. We got the boys some Galaxy tabs for Christmas, but I haven't rooted them or anything yet. I'm working on rooting my Kindle Fire HD, but it's not going so well...
speaking of the boys, they are asking me to play Legos, so I gotta go. Rhubarb, all!
 
9:09 PM
rbrb Matt
 
Well the env i'm using to run the build emulates a Linux filesys. So, perhaps think Linux box with crap...er minimal libc and only dynamic calls to it allowed
Ditto. Thanks for help offer
For transcript record... if I run setup.py build_ext...--libraries='-lc -ldl' the module build progresses even though errors are thrown. If I sub --libraries='c dl' I get the same error
 
90
A: The black dog in the black road

Clint EastwoodThe dog was hit by lightning and is now on fire.

Nice answer on Puzzling
 
Or, the name of Coldplay's next album
 
It would actually make a rather awesome album title :)
Either a coldplay one, or maybe G'n'R or Metallica or something
heya @PaulH
 
Does anyone have experience with extending a python library with a C-library that has a trail of dependencies 3 other libraries long?
 
9:22 PM
Thankfully - no :)
 
hahaha
 
If I can get past this build problem I may have
But for now i'm gonna take a break from debugging. My hands hurt.
Back in a while...
 
Gotta go, rhubarb all
 
@vaultah rbrb!
 
9:40 PM
hmm... something I've always wondered myself
78
Q: Why Didn't Sauron Become Invisible While Wearing the One Ring?

SlytherincessI'm curious as to why Sauron is the only being/person shown wearing the One Ring who does not become invisible? Isildur, Gollum, Bilbo, Frodo, and Samwise all become invisible while wearing the One Ring. Why didn't Sauron become invisible while wearing the one ring? I became interested after ...

 
 
2 hours later…
11:29 PM
Can someone translate this query for me to sqlalchemy. I will appreciate it very much
select product.name
, avg(case when product_assessment.record_date = <todays date> then product_assessment.score else 0 end) as today
, avg(case when product_assessment.record_date between <start date> and <end date> then product_assessment.score else 0 end) as wtd
, avg(case when product_assessment.record_date between <start date> and <end date> then product_assessment.score else 0 end) as mtd
, avg(case when product_assessment.record_date between <start date> and <end date> then product_assessment.score else 0 end) as ytd
 
00:00 - 16:0016:00 - 00:00

« first day (1555 days earlier)      last day (3409 days later) »