« first day (1163 days earlier)      last day (3800 days later) » 

8:41 AM
I love how 5 starred posts all relate to @MartijnPieters
 
cabbage
 
Damn you!
How did you get a gold badge
 
9:11 AM
lol, I had one before you showed me your hat
I got one from 1k regex
 
9:35 AM
@JonClements has two posts which have more than 5, one is 9 and the other one is 19 :)
 
9:59 AM
ha ha ha... Single Rocks... A music video, about a guy who went from being in a relationship to single :p
 
10:48 AM
cbg
 
@JonClements Cabbage Jon :)
 
cbg mate - how goes it ?
 
Good... :) How is your Sunday?
 
up since 3am
otherwise, okay
 
:O
Why so?
 
10:52 AM
support agreements
nuff said
 
Oh... Did you get good sleep?
 
I feel like giving a bounty to someone
 
Me me me me
 
No ø_ø
 
58 more votes till i get my gold python badge :D
 
11:04 AM
New year has to come about some changes :(
 
:'( :'( :'(
 
@Volatility So slow
 
not sure I'll get it during winterbash though :/
 
@JonClements Do you like my new hat
 
I'll be reconsidering the RO positions
@Haidro yep - it's fantastic.. :)
 
11:07 AM
RO positions?
 
maybe @Vol and @Haidro will let you know what they think about that
 
about what?
 
Yea, about what
 
@Volatility @Haidro What are RO positions?
 
No idea
 
11:09 AM
err, routine operations...
round orange, perhaps
rag overflow
 
put it simply
 
am I close? :D
 
@vol you're great man
never turn up until recently
not happy there
 
sorry, been pre-occupied
OH
 
then talk to me ffs?
 
11:12 AM
Room Owner
 
@Haidro same with you mate
 
well we both got it for a birthday present ;)
 
@JonClements We are just puppies, we hang around much... They must have got life... :p
 
hehe
 
I understand that.. but you should have said before just f*ing off
that's what annoying me
 
11:15 AM
sawry
 
Vol pls
 
11:39 AM
What just happened?!?
 
Everything
 
What?
Why is Jon Sw**ring ?
 
Aah... I thought I understood Python a little bit, but I havnt yet it seems.. :( Still a looooooooooooooooooooooooooong way to go
 
11:55 AM
'@InbarRose disappointed with other RO's show ups
 
in?
@JonClements Happens.
Revoke their rights?
:P
 
if only with a concensus :)
 
Who is part of this consensus?
 
Let's ban @Volatility
5 starred posts all relate to Martijn. oh my
 
:/
Why would we ban Vol ?
 
I'll chat to him why later
 
any disagreement @InbarRose ?
 
Cbg all. Whats going on?
 
Firing... :p
 
12:15 PM
be being an arse it would appear :)
 
Alas, my name will not be displayed in italics any more!
 
oh wow, that was not something I was expecting to see...
 
sure that's gonna be controversial but we want people here that are active...
might need you backing me up on that this up @inbar :)
 
12:29 PM
well I'm off to bed now, rhubarb
 
rbrb
 
12:43 PM
cbg
I'm definitely not active enough.
 
@MartijnPieters Cabbage Marty :) Hows your Sunday?
@MartijnPieters define active... :P
 
Surprised I wasn't removed earlier, actually.
Busy Sunday, so close to Xmas. The house needs tidying!
 
You gave away Explicit write access as well?
 
@JonClements wuf wuf
 
12:51 PM
@MartijnPieters on skype - would't mind a quick chat
 
Hehe, the "let's delay high-rep users so I can learn before they show me how to answer the question properly" proposal on Meta is heading for the bottom 10 list of all time rather fast!
@Jon: not now, I am afraid. On mobile ATM in any case.
 
no hard feelings I hope
 
@MartijnPieters Which question is that?
 
I don't entirely agree with your criteria but am not caring enough to argue right now.
 
@MartijnPieters fair enough... nor do I completely agree either... but we'll see
 
12:58 PM
mmm. I would say, when no answers got any upvotes, the answers should be sorted on the order in which they are posted. That should be fair, right?
 
No, random order is fairer. As it is now.
 
Good answers, irrespective of the time they are posted, will bubble up always. So, if we sort it based on the posted time (only when there are no votes), that would give visibility to the answers posted faster.
But the problem is, people tend to put dummy entries the moment they see the question, like I do sometimes :(
 
Exactly. You should judge posts by their merits, not by how fast they were posted.
says they guy who types 90 words a minute
 
lol.
 
Anywho, gotta dash again. Merry Xmas all, if I don't see ya'll before then again.
 
1:06 PM
Anyway, at the end of the day, I take a lot of learning from good answers. So, I can't complain at all. :)
@MartijnPieters Enjoy Marty :) Merry Christmas :)
 
1:39 PM
cbg folks!
 
Maybe I'm a total noob, but what means "cbg". Everyone says it on this chat... :o
(And Urban Dictionnary doesn't help me on this one.)
 
cbg @KDawG
@MaximeLorant sopython.com/Salad
 
@AbhishekGahlot hey :)
 
Oooh, interesting :p Thanks.
 
@JonClements Sorry, I went down this road before, better restore Martijn :)
 
1:42 PM
@InbarRose what's up with Jon firing at everyone?
 
"firing" its called a lateral movement, right out the door, to make room for more people. :P
Or whatever.
 
I get it :)
BTW whats the best way to remove a item from a dict?
del dict["element"]
or dict.pop('element')?
 
@KDawG i guess del if you only want to remove item.
 
del is the preferred way, yes. Both will "remove" the item, but del will instantly remove the memory alocation for the object, while .pop() will remove it from the dict, and then try to assign it, if there is no variable to assign it to, it will then be added to the garbage collector, which will then remove the allocation later.
 
del it is!!!!
 
1:55 PM
+1 Inbar Rose. dict.pop('foo') will returns the value on the stack even if you doesn't use it after. A little operation useless for you. Use del statement instead :)
 
@thefourtheye Is it just me or there's a stray hat to the left of that line? (the one I'm replying to)
 
@Jerry I see a stray hat indeed, but 2 messages below for me...
 
hmm
 
@Jerry @MaximeLorant What stray hat?
 
(3 in fact, next to the K DawG message)
@thefourtheye this: i.imgur.com/VcmOfv9.png
 
2:06 PM
 
You guys might want to refresh your pages... I don't see that one... @InbarRose Is that your hat lingering around?
 
The bug disappear by refreshing the page, indeed... A bit weird though.
 
@thefourtheye You found my hat! Thank you, I had been looking everywhere for it!
 
@InbarRose Keep it safe till 4th Jan :p
otherwise Jeff would be at your doorstep to collect it
 
I will wear my Conspiracy hat then.
 
2:13 PM
How to get that? and that Robo Cop hat?
 
5 reviews in 5 queues?
sounds explicit enough to me; as in 5 suggested edits, 5 first posts, 5 close votes, etc
well, 5 in any 5 category
 
I did that already, still I hvnt gotten that yet :(
 
Then maybe - you need to do it again!
 
you perhaps have to wait a little
hats don't always come immediately
 
Should we do all those reviews in winterbash period only?
 
2:18 PM
yeap
5 is a bit too few otherwise, and it'd be an auto hat?
 
Oh... That wasn't mentioned explicitly :(
@Jerry Oh yeah... It would have been an auto hat then :p
 
wow
I just got the "Chuck Yeager" hat.
No idea how.
 
it's believed to be obtained if you answer a question within a certain period of time since it's been asked and gets accepted (and maybe a minimum upvotes)
 
But I didn't get accepted.
 
might be votes only then
 
2:25 PM
I think I got it for editing a comment on my own answer multiple times in a minute.
And now I got accepted.
 
huh, I got mine on another SE without any comment
 
Then It has nothing to do with them
Maybe if the OP accepts, and then un-accepts your answer.
 
Guys, any good Python book recommendation?
 
I would say mine on Django, but it's in French and not on Python itself, sorry :-)
Otherwise, there's a good list here: wiki.python.org/moin/PythonBooks
 
Ya I saw that, but which one to select
 
2:33 PM
Beginner, Intermediate of Advanced level?
 
Obviously, beginner only :(
 
The only book I have (and I have read) on Python is the Reference Language Manual, not very pedagogic :-) ( amazon.com/Python-Language-Reference-Manual/dp/0954161785 ), I think someone else should give a better answer.
 
What are you hoping to learn?
@thefourtheye Check this out:
661
Q: Python progression path - From apprentice to guru

MorlockI've been learning, working, and playing with Python for a year and a half now. As a biologist slowly making the turn to bio-informatics, this language has been at the very core of all the major contributions I have made in the lab. I more or less fell in love with the way Python permits me to ex...

 
As per the accepted answer, we should leave away from OOP, which I am more than happy to do, but most of the real world Python programs still have OOP :(
 
That is just an opinion.
You have to remember, not only are there many ways to do something, there are also many reasons.
 
2:48 PM
mmmm... I find the Haskell option very interesting...
 
For instance, although list-comprehension is by far more efficient than regular looping (in most cases) I am mostly using regular loops because I need to be able to log, and catch exceptions (etc) for production code. So you often do what is more maintainable/easy to understand and change.
 
Yup... BTW, you use Python at work?
 
I am at work right now writing Python.
 
Cool :) I wish I could work in Python
 
If you make that desire forefront in your mind while searching for jobs - why not?
 
3:22 PM
I should get a medal for understanding this question: stackoverflow.com/q/20730845/1561176
 
3:42 PM
@InbarRose You sure deserve one... Should we CV that? Question is not clear!?!
 
4:03 PM
This is a cool question with some cool answers: stackoverflow.com/q/434287/1561176
 
4:42 PM
@user3127489 and what's the "next level" ?
howdy @poke
 
Cabbage!
I want some snow for Christmas…!
 
awwww
 
4:58 PM
I think my internet is dying…
 
too many rabbits
 
Is this page working for you?
 
nope
 
<html><head></head><body></body></html>
The pages html
 
Good… I guess…
What happened to your hat, Jon?
 
5:00 PM
oh, I'm very "scroogey"
might have have "sacked" a lot of people
 
uhh?
 
I'm just a very if you're not going to turn up, beg for badges, or otherwise, take the provibial...
@InbarRose has every right to disagree though so...
 
Grr… I hate this. Typing an answer, nearly ready to click the post button and then the “This question has been deleted” message pops up…
Can’t people think about their question before posting it? :/
@JonClements tbh. I don’t really get what you are saying, but okay :P
 
@poke look a the RO list
 
RO?
 
5:08 PM
perhaps it wasn't worthy of an answer in the first place?
 
Maybe it’s because I’m still tired, but I don’t get what you are saying today xD
 
@poke "scroll up!
 
@poke room owners
 
Oh! What happened there :o
Or rather, when happened it, so I’ll look it up ^^
 
not entirely sure myself
should show on a single load of older messages
 
5:19 PM
@inbar orignally spent time on getting this room going
I've spent too much time trying to do so...
therefore, I've re-arranged the RO positions
 
Okay, read everything that was said about that now.. I’m just wondering: Did something happened, that made it happen now?
 
@poke what's your skype?
heya @Basj - wb
 
hey @JonClements how are you
 
See my last mail to you, you never added me ;(
 
@Basj "good" ty
@Basj what about yourself?
RH disagrees with GR's comment
 
5:28 PM
@JonClements yes fine too
@JonClements do you remember about my project ?
 
sadly my brain is too over remembering... remind me
 
oh
that one
lol
 
a text editor like an infinite blackboard with infinite zooming in/out feature
lol
yes "that" one ;) the guy who wanted to hire somebody in this place NOT made for hiring... and who finally did it himself lolll
I am rather happy to have coded this, I have learnt lots of things...
 
good
 
5:41 PM
now I have added lots of features, and I have something that fits my needs... BUT... I would like to share it with other people (some friends are interested to code on it, etc.)
 
awesome - as soon as you can sort out something that means I can mend an ankle and a knee joint, I'm listening :)
 
I have quite no experience of coding with some other people... That's why my code is probably readable by me only ;)
If you have 2 seconds to have a look at the code, what do I need to do, in your opinion, in order to have a "cleaner" code, so that I can collaborate with other people?
What are the requirements in the writing of the code in order to be able to work with other people ? What do I need to rewrite ?
Sorry my english is not good enough to understand "I can mend an ankle and a knee joint" ;)
 
working with other people is always a tricky one
 
@Basj From what I have seen in the version I tried, you have a lot functions rather randomly spread throughout the file, making it a bit difficult to navigate.
 
@poke true
 
5:45 PM
If you can clean that up to have related code actually be located locally near (maybe in additional classes etc.), or maybe even split it up into multiple files, than you can make maintaining it a lot easier. And that also allows others to “jump in”
 
@poke in the new version, it may be a little bit better, but only a little...

How would organize things in the code ?
@poke : I have added things like Find / Find next features, etc. :)
 
@Jon Did you find my skype? ^^
 
I would be interested to have your advice ...
 
@poke yup -added ya mate
 
@Basj That sounds cool; did you ever find anything out about that flickering when dragging?
@Jon Odd, didn’t get any notice :o
 
5:48 PM
@poke yes, solved. Because I used event.x /event.y and it is VERY different if event.widget = the canvas or event.widget= the text widget itself.
 
Ah, I see :)
 
there are still some small unwanted artefacts like this , but it fits my needs now. I have a screen full of sticky notes / long texts that I can see by zooming...
 
bbias
 
A year of thoughts, dozains of todo lists, or hundreds of .txtfiles are now summarized in a big "mind map" with this BigPicture tool :)
The tool is not optimal yet, but it works :)
 
6:03 PM
@JonClements @poke seeyou
 
Bye :)
 
@poke tell me if you have feature requests / ideas for the tool!
 
6:30 PM
hey
how can i define a 2d array in python ?
and Iterate over it
just did it , thx
 
6:51 PM
Cabbage!
 
cabbage
 
Howdy @Jerry
 
found a regex game thing regex.alf.nu
 
7:19 PM
@Jerry Those tasks are pretty random…
 
mhm
 
7:30 PM
-1
A: how to make some things impervious to time.sleep() python

joshYou could use the threading library to do this. For instance you can see a nice example using the time.sleep() method here: http://www.tutorialspoint.com/python/python_multithreading.htm #!/usr/bin/python import thread import time # Define a function for the thread def print_time( threadName, ...

how the hell does this code even work? that while 1: pass loop should prevent the GIL from being released and thus completely block the other threads
 
7:50 PM
I’d guess that there’s actually some scheduling, no?
But I have no idea how the GIL works.
 
8:12 PM
cabbage all :)
 
cabbage
 
@Basj First up how are you using version control for this project? How are you documenting things? How are you breaking down the program into separate pieces of functionality? Are you using unit tests?
 
hello
 
hi
 
is there some one good at opengl shaders ?
 
8:16 PM
unfortunately that's been on my TODO list to learn for quite some time
 
ok thank you anyway
 
@Basj: Let me know if you want some help refactoring the code you have wrote to improve the engineering of it. I might be able to help, it would be good practice for me to do some refactoring as my new job has an old project I'm going to be cleaning up.
 
@shuttle87 sure I would be interested for all these things : refactoring, etc.
now all the app is done in one single 300-lines long .py file, but it could be interesting to rewrite it !
have you found my github page?
 
8:33 PM
I was reading your code just before
A few things stood out to me when reading it
 
8:44 PM
@Basj let me know if you want some feedback
 
9:03 PM
@shuttle87 yes for sure ! let me know if you have some ideas
 
Firstly I think that your code could most definitely do with some docstrings.
Especially in any part of the code where you are doing something non-obvious. When I say "non-obvious" I mean from the perspective of someone who is about to read it.
Always remember that if you are working with a group of people on a codebase it's especially important that people are able to read your code, some well placed docstrings can save a lot of problems.
 
are docstrings just comments ?
 
They are a specific type of comment
 
9:52 PM
So the other things that I think are worth mentioning: the structure of the program could be improved, just having everything in the one file is not a good idea.
Run something like pylint, sometimes you have variables that are never used.
Write some unit tests so you can verify program correctness better.
 
10:08 PM
I have never tried tools like pylint, have you?
I don't know anything about unit tests (except the definition from wikipedia)
what do you mean ?
@shuttle87 have you already done such tests ?
 
The current project I am working on requires every module to have unit tests.
 
what are unit tests exactly ? what would they be in the example of my tool ?
 
Basically unit tests will test that certain functions are producing the expected output.
So for example say we had a function that takes a number as input and returns the square of that number
def square_this(num):
    return num*num
 
Unit tests don’t really work for most UI specific stuff
 
then you might write a test that's essentially something like this:
assert square_this(2) == 4
 
10:19 PM
Is this a unit test ?
 
Essentially, yes
A unit test is an automated procedure to test a single unit (a function/method) of your application. The smaller the unit the better it is because then you won’t have tests fail because something somewhere else is actually wrong.
 
Imagine we have a program with your def square_this
 
Ideally, you can exactly tell what is wrong when you see which tests failed
 
Would the "unit test" assert square_this(2) ==4 be in the REAL code ? or only a test I keep for myself ?
 
And the overall idea is that you—when you once created the test and added a correct implementation for the uni—can easily detect if you ever introduce a bug for that specific unit in the future.
Yes, that would be the real code of the test_square_this unit test method.
 
10:21 PM
how can you know where does a bug come from ?
Do you have an example of programme with a unit test with assert ?
So that I can understand where in real life in real programmes we put unit tests?
 
Well, if every single of your methods is unit tested (with a good code coverage that will eventually test every possible outcome your function may take), then if you ever have a failing test, you know that that exact method the test was for does no longer work as you expected it to work.
These are Django’s unit tests: github.com/django/django/tree/master/tests
Most unit tests are utterly simple, which is exactly the point of it. If the tests were actually difficult to implement, they could likely carry bugs as well, so you would have to test them too. But if they are just some stupid tests, then you likely have no bugs in it, and also you can be sure that they don’t test much code (i.e. the units are small).
 
Hum... I would need more in-depth study of computer programming / maybe a programming course in order to know how to use them practically in my text editor...
 
Testing GUI stuff is quite hard. But there's going to be more to your application than just the GUI code.
Adding unit tests isn't the highest priority though most likely, adding in some docstrings and breaking the code into modules I would imagine should be the number 1 priority right now.
While it might not seem like the most important thing now, separating out your code into modules will pay big dividends later.
Having one file with everything in it is an anti-pattern because it makes maintenance harder in the future.
 
thanks @poke @shuttle87. In which parts would you separate the code for example ?
 
Well for starters I would place related functionality into modules
 
10:33 PM
for example?
 
does anyone know what the naming conventions are for reverse foreign key lookups are in the django orm? For example, let's say I have a models Blog(models.Model): ... and CommentsToBlogPost(models.Model): blogPost = models.ForeignKey(Blog) and I want to implement a function in Blog get_comments(): return self.commentstoblogpost_set.all()
 
Well you want to move away from having only the one file so a good place to start is by defining a consistent entry point for the program. Writing a main function where you set up things like Tk and similar is important.
 
but I think there is a slightly different convention, and I do not know where the documentation is for that
 
@shuttle87 do you mean like line 260 github.com/basjo/bigpicture/blob/master/bigpicture5.py ?
 
yes that's the file I am currently looking at
 
10:38 PM
@poke @shuttle87 do you use an IDE (I'm on Win) ?
 
For python development I mostly just use vim usually
 
arghh ;) i won't be able to ...
 
why?
 
Too many new things to learn in order to use such tools!
 
If you are planning on doing a lot of software development it's well worth your time to learn an editor well.
Doesn't have to be vim, but just make sure you know how to use your development environment very effectively because you will save a lot of time that way.
 
10:43 PM
yes...
 
@Basj I don’t.
A lot people on here apparently use PyCharms though
 
for another project I have, I will have to do realtime audio .wav mixing and MIDI, have you already worked on such things ?
 
not with python
 
have you ever heard about a sampler made in python?
 
11:49 PM
wb @Jon
 
ty @poke
catching up on an old album I forgot I had
well, didn't realise I had here would be more realistic, since I have very single album, ep, lp, cd, digital download etc... etc... this guy ever did it's hardly surprising I have this album, but anyway
 

« first day (1163 days earlier)      last day (3800 days later) »