« first day (1476 days earlier)      last day (3455 days later) » 

12:49 AM
cbg
someone made the mistake of putting the heating on at 34c instead of 18c
 
nice
 
 
1 hour later…
2:16 AM
@ZeroPiraeus any chance you are here?
 
2:58 AM
@Peter I am right now, but just checking in (there's a party at my house)
Will check in again in 5 minutes; can talk if you want, but won't hear pings.
 
3:24 AM
ahoy
 
4:17 AM
london life i understand the grumpy face on @Ffisegydd
 
4:38 AM
CBG!
 
user559633
4:55 AM
I like to think of myself as relatively design-minded, but it's really humbling to sit down for a handful of hours with a real designer/front-end coder and pair program
 
5:20 AM
0
Q: edx "Live Preview" and "View Live Version" button doesn't redirect to required page

Anjum After making changes in a course on the Teacher side, there are options to preview changes and view live version but currently both options are not working properly and we have to append base url (www.abc.com/) in URL every time to preview changes or view live version. We are using edx open code...

 
5:45 AM
cbg!
 
cbg
 
So, whats up?
 
ceiling..
what about you
?*
what about you
 
Not much, just doing some database crap.
 
CRUD stuff
 
5:59 AM
Hi Guys
Have any one of you worked on edx open code
 
cbg
@IntrepidBrit you worked for Google?
 
@IntrepidBrit he hinted so...
 
cbg
 
@RobertGrant he hinted so...
 
I know :)
@d-coder cbg
 
6:13 AM
@RobertGrant is it sunny there?
 
@RobertGrant How was the day today ?
 
was or is the day going on, perhaps..it is not over yet i guess
 
@tilaprimera Yeah
you never know :)
 
yup
 
@tilaprimera exclusively :)
@d-coder it's just starting: 8:15am here
 
6:16 AM
yup
 
Tired because had to help a friend with some SQL stuff yesterday evening after work
Bed at 12, awake at 6 again
 
: ) best friends i suppose
 
:)
Where I stay its 11:47 a.m.
 
Well it got done, and that's good :)
 
12:08pm
checkboxes that allow only a single check... can database models be made such field that, it automatically sets the old true field to false and sets new one to true
 
6:28 AM
No, although you can do it in a stored proc if you need
But why not just have one field?
 
there is a single field
only one value in all rows can be set to true
 
Oh, you mean like a radio button group? Only one in the group can be selected?
 
aa
using django admin site
radio button group is the word..
melons
 
@tilaprimera I think I'm imaging a different data structure to you. Do you have all the options as columns in the same table instead of rows of a different table?
 
as columns in the same table
 
6:38 AM
Does anyone use komodo IDE?
 
@tilaprimera maybe change it to rows of another table
That would be how I'd do it, anyway. Then Django will help you as well
 
I have a question
 
rbrb lunch
 
I need to create a folder and create a file inside that folder.
 
6:46 AM
automatically?
run shell command and do mkdir
 
No
I am fetching the values from DB
DataBase
 
i got that
rbrb for now, lunch
 
Go ahead.
Be back soon :P
 
7:12 AM
cbg
what is the easiest way of getting 20 reps?
for a python noob :D
 
edit questions of people with rep 1??
 
@AnttiHaapala ask a question
 
7:28 AM
yea ask a question
 
Get association bonus
Cbg
 
cbgg
 
7:59 AM
This is how we check if the file exists in directory or not right ?
if os.path.isfile(file_name):
 
hate the fact that there still exists the 20 rep hard limit :P
 
Edits is the easiest. Look for questions in a package that don't have the python tag, edit the tag and make small improvements to the post as necessary
You can add -python matplotlib at the end of the standard questions url to get matplotlib lib questions that don't have python tag for e.g.
Can't link it properly as on my phone
 
8:16 AM
Association bonus is the easiest, assuming you have some rep on another SE site
It'd give you 100 points
 
truedata = Android.objects.get(installed=request.POST['installed'])

these give me 6 objects..
how do i store these?
 
 
1 hour later…
9:27 AM
@RobertGrant Goodness me no. You wouldn't catch me dead there
Many of my University colleagues ended up working for (or collaborating with) them
Quite a few still do
 
9:43 AM
I need to replicate this line
 for b in r.findall('.//{%(ns)s}color[@{%(ns)s}val="0000FF"]/../..//{%(ns)s}t' %{'ns':w})
with
for b in r.findall(".//{%(ns)s}color[@{%(ns)s}val={%(va)s}]/../..//{%(ns)s}t" %{'ns':w , 'va':blue_font})
 
I need a pony.
 
using {%(va)s}, blue_font is an str with value = 0000FF
actually its a question on using .format or its equivalent , ignore the xpath..
 
You should use .format rather than %
 
@IntrepidBrit why don't you like making them richer?
 
3 points away :(
 
9:49 AM
5
Q: How do I remove myself from a chat?

Alex KSo I've been Stack Overflow for about a month and a half, and have begun to explore more features of the site. When I came across the chats, I thought they'd be interesting to try out, so I went ahead and typed "Hello" in the Python chat. Turns out, there are other Alexs in this chat. And my na...

Poor guy D:
 
lol , @a brings up his name here
 
Hi all
 
lo.
 
i am a new bee to python
 
Welcome to the chat room. Please see sopython.com/pages/chatroom for the chat room rules.
 
9:54 AM
can some1 guide me what blogs or any other website to refer for python
ok
 
@Deepak what is your level of experience with programming in general?
 
2 years
 
That tells me nothing though. You could have spent 2 years doing nothing but programming, or 2 years doing it one hour a week.
 
Sorry got ur question wrong
moderate
 
10:00 AM
cbg
 
That's got several links to guides that are better suited for people who already know how to program.
 
guys, which editor you use?
 
ST3
 
Pycharm.
 
i use python Win, but i want to get something better
 
oh, thank you i missed that
 
What about the visual studio python thingy? Does it suck?
 
@RobertGrant Or I could do something more meaningful with my time. Like trying to make the world a better place/saving lives.
 
@Robert never tried it, and I don't think I know anyone that does (and admits it)
 
I need to add PyDev to that list at some point
 
10:19 AM
cbg
 
10:31 AM
@Ffisegydd it sounded cool, can step into the C code in CPython and stuff
Unless I misunderstood what I read about it
@IntrepidBrit are you doing that? :)
 
@RobertGrant Yep!
 
Fair enough :)
 
Not that I judge anyone for doing differently - I could be earning much more than I do now :)
 
Should've been a doctor, then you can do both :)
 
You know, I thought about that - but the way my school scheduled lessons for Standard Grades (think Scottish GCSEs), I couldn't take the full range of sciences needed
If memory serves me correctly, I could have picked 2 out of Physics, Biology, Chemistry & Computing
 
10:45 AM
Or worked for Google, and paid taxes in the UK to fund the rich doctors who save lives :)
 
HAHAHAHAHA, multinational organisations pay taxes in the UK. You're funny @RobertGrant
 
I'm pretty sure their employees pay taxes
 
Yep, they do :)
 
@IntrepidBrit if I had a company that size, I certainly wouldn't be paying my corporation tax in the UK if I can legally avoid it :0
 
I think there's a moral component to paying tax, especially if you're a multinational.
 
10:58 AM
Yeah, same here to be honest. I'm something of a capitalist at heart. And yes, I understand that can make me a bit of a bastcabbage.
 
My vote: if companies can't be trusted to pay tax on profit, they should be charged tax on revenue
Albeit, a much lower level of tax ;)
 
@IntrepidBrit tax law needs to be fixed. And definitely has to be based on profit, or craziness ensues
All low-margin business would cease to exist
 
I completely agree - it would also play havoc with any sort of "savings" business (as people's savings flow into the company - but will be taken out at some point. ergo, not technically profit...)
But, if they keep finding ways out to dodge...
 
I just don't blame the companies - it's "morally" hideous really, but commercially, well it makes perfect sense
 
11:04 AM
Yeah I agree with you really pup.
 
I have shares in quite a few companies, and I do that because I get dividends (sometimes) and I can sell those to make a few £ here and there...
 
Of course it does pup - in fact, they're legally bound to their shareholders to maximise profit
 
I have my companies books audited each year, and they pay the required corporation tax/whatever else...
one of them is in the middle of a "hostile" takeover... so auditing and having records correct is very important
 
cbg folks!
 
@GamesBrainiac Cabbage!
 
11:11 AM
@IntrepidBrit How ya been?
 
cbg @Games
 
@JonClements Yo! Whats up? How many cups of tea till now?
btw folks, just installed a nifty chrome extension called "tabbr", its like spotlight but for google chrome tabs
 
I'll say this about visual studio - the installer's cool
 
@RobertGrant Yea, the new ones rock.
 
@Games none so far... over did the chilli in my chilli, throat is still sore, and not trusting my stomach... so just water for now :(
 
11:13 AM
@JonClements Man, thats gotta suck.
 
@GamesBrainiac it downloads its dependencies and installs them in parallel
 
@RobertGrant Didn't know that.
 
Parallel to the next download, not parallel download and install of the same thing. That would be magic.
 
@Robert isn't that like saying "the trailer for the film was awesome, but I walked out after 10 minutes because the film was beep"?
 
@JonClements :) I haven't walked out yet
And I'm used to Eclipse, so really anything is better
 
11:14 AM
@RobertGrant Ahh, well I knew that :P
Man, eclipse is just a tad bit too slow for me.
 
/me eyes the shelf and dismisses all knowledge of having VS enterprise editions from 2005
 
Yeah it's slow, but also freaking amazing.
@JonClements :)
You really don't like VS? People who use it often rave about it
 
Haven't used it since Juno.
 
Because it DROVE THEM MAAAAAAAD. no.
 
11:16 AM
I honestly think ASP.NET is pretty good.
 
I actually don't mind it... for C# stuff it's awesome
 
Yea, C# is a pretty good language IMHO. I mean, its got all the sugar you'd expect in a modern language.
 
I just use whatever language/tool is appropriate for the task at hand
I just happen to really like Python is all :)
 
Hmm, the question is when is it. I haven't used ASP.NET for an actual job or anything, but I have played around with it. When do you say, "well I'm not using python or java, but C#"?
 
well, the nice thing about the ".NET" platform is that it doesn't matter what language you write the source in
 
11:21 AM
Oh yea, you got ironpython :P
facepalm
 
I'm going to install the python stuff for VS
See what it looks like
 
for some projects I've ended up with a Python, haskell and erlang hybrid thing
 
@JonClements that's cool
And scary for whoever has to maintain it :)
 
@Robert yeah.. guess who's still maintaining those :)
 
@Robert if you use it, could you add your thoughts to the wiki page?
Pros and Cons, etc.
 
11:25 AM
@Ffisegydd yeah, that page is actually what got me thinking about it :)
PyCharm is a bit slow
 
Wow... we've got 13 editors now @Ffisegydd! :)
rubs paws together... soon the world! muhahahhahaahhahahaha
 
@RobertGrant eh, it's not that slow. I mean it's not blazing quick but it's not so slow that it is detrimental to my flow.
 
Am I lucky number slirteen?
@Ffisegydd yeah I agree, but it's slow to start etc. I'll happily keep using it, but that thought just made me download VS to see what it's like
 
@Robert well you're not lucky number slevin :)
which reminds me, I might watch that tonight when I finish stuff
 
@MartijnPieters:
registry.registerAdapter(
   	String.class,
   	argtypes(String.class, Integer.class, Double.class, Exception.class),
    	Test::funnyAdapter
);

String s = registry.adapt(String.class, arguments("Foo", 1, 5.2, new Exception()));
multiadapters in java
I am officially sick now :D
 
11:33 AM
sighs... end of month, bills and invoices to pay, hard come easy go, oh online banking how I hate ye :(
 
@RobertGrant I've noticed that with the same specs, its slower on a windows machine than on linux/mac. I still haven't figured out why.
 
@Games I'm guessing the scheduler and resource management differences between the OS's :)
 
@GamesBrainiac it's all the NSA spyware on Windows. They log every CPU instruction. Which is bad, because they obviously use the CPU to do it.
 
@JonClements Probably.
@RobertGrant I think you you're right on the money XD
 
The finale begins… Dark Water: tomorrow at 8.15pm on @BBCOne http://bbc.in/1wk06mJ #DoctorWho #whoismissy http://twitter.com/bbcdoctorwho/status/528148260259495937/photo/1
 
11:38 AM
DW is coming to an end?
 
@GamesBrainiac the season is.
 
@GamesBrainiac Could be better - but alright considering! Yourself?
 
@AnttiHaapala You are indeed sick!
 
@IntrepidBrit A little sick, but getting better. Its winter here now, so its getting cold.
 
@RobertGrant I just buy better hardware to handle Eclipse's slowness ;)
 
11:45 AM
cbg
 
@GamesBrainiac How cold is cold?
 
Not that cold, its the change in the weather.
 
@AnttiHaapala would any strongly typed language have to do that?
 
while not all(i in s for i in l): or while all(i not in s for i in l): ?
-1
Q: Deep Packet Inspection (DPI) in Python

ShrirangI want to develop an opensource application in Python for Deep Packet Inspection (DPI). But, I could hardly find any resource which can explain the concept to a beginner like me. Please help me with some references which can help me in building such app in Python. Any code examples are appreciate...

 
bah - exchange rates... this is fun
 
11:53 AM
@JonClements okay tell me your exchange rate woes and I'll tell you mine :)
 
@GamesBrainiac xD. Mind you, I can't complain. It's wet but freakishly warm
 
@IntrepidBrit That's what she...no! Bad Fizzy! Bad!
 
a system I maintain had a flat rate of 1.5USD to 1GBP for the last two years (obliviously not the case), so now have to find close of exchange rates and re-calculate figures
 
@Ffisegydd I had an image of you slapping yourself around the head
 
Ah, okay. Mine are different. I came to South Africa in 2010 at R11 to the pound. Now it's R18 to the pound.
 
11:55 AM
so errr, just 900 million entries
 
@JonClements nice
Hope you didn't have another system that hardcoded VAT at 17.5 :)
 
funny you should mention that... but yeah, had those :)
recalculations are very expensive - both computer resource wise and business wise
 
Right, rhubarb for a bit. I've got a 3D print on
And going to do some networking until it finishes
 
ahhh.... things work when you restart nginx... who'd have thought facepalm
cbg @vaultah
 
Cbg
 
12:17 PM
cbg
 
might risk a cup of tea - bbias
 
I got up today and was feeling quite ready to be productive. But it's funny how a fifty minute traffic jam can sap one's optimism
 
I was due to work from home one day...
thought... screw it, I'll just go to the office (40 min drive)
left at 7am, got to the office at 4pm
 
Well I had to wake up an hour before I went to bed so I could work my 30 hour daily shift at the broken glass factory
 
presumably barefooted?
Manager: "Is this glass broken?"; You: "My feet are bleeding, so I guess so?"
 
12:32 PM
Yep, using both feet and hands for broken glass detection doubles my productivity.
 
Manager: you're damn right. And that's the only way we like to test that our glass is properly broken.
 
ummmmmmm.........
I'm "old school" in writing down "to-do's"
shouldn't have put my cup of tea on the notepad
decipher own paw writing... this is fun
 
yeah, doesn't help I write things quickly - so it's not really the way I write normally
use a notepad differently than if I just sat and wrote a formal letter with a proper pen kind of thing...
 
I guess you'll have to add 'use digital to-do list' to your to-do list.
 
12:43 PM
@JonClements doesn't use a digital todo list. He creates one, and then never uses it
 
93.9 unit robin
my deciphering is getting there
apparently, previous me enjoys leaving myself mysteries
 
Jon! Get your ass to Maaaars!
 
well... as soon as @Kevin completes the terraforming project!
 
My DotView case shows an awesome animated pumpkin and dancing skeletons, too bad I can't make a screenshot :c
 
I'm pleased to make the following announcement. The terraforming probe's sensors have indicated that it has landed, and fully converted the surface of the planet into an Earth-like biosphere.
Our terrestrial telescopes indicate that Mars is still a dead wasteland, so I'm not sure which planet has been terraformed...
But something definitely has been.
 
12:57 PM
@Kevin so errr... umm...
 
Jon! Start the reeaacctorrr
 
I guess that's the other thing, did we fully develop the fusion reactor yet @Kevin?
Or, just being boring and sticking with fission?
 
It's working, but it only operates well in an environment exceeding twenty seven million degrees.
(Fahrenheit)
 

« first day (1476 days earlier)      last day (3455 days later) »