« first day (1147 days earlier)      last day (4025 days later) » 

04:00
hai all :)
04:26
Yo.
Hello!
Ok, let me check what I was doing exactly
Yeah, seems your answer is perfectly okay as long as you do +=
Oham razor says I'm wrong, but let me check
but breaks if you do +
*ockham
04:27
occam :)
@Amadan Exactly
so just for consistency's sake, I'd stick with ((0,0),) - guaranteed to work everywhere equally
+= and +.. Behaves differently for a tuple.. Quite nice to know that.
it's the priority
thanks Amadan :)
04:28
+= has the low priority of an assignment operator
thus everything to its right gets grouped together
Yep. ((0,0),) works with both + and +=
but + is higher than ,
oooh
Oh, didn't know that!
That's really nice to know @Amadan
Thanks
Yes, thanks a lot!
04:30
It has to be, because if , was higher, (1 + 2, 3 + 4) would be (1 + (2, 3) + 4), an error
Gotta love the "AHA!!!" moments in life :)
lol
@mgilson Lol
for the clueless bystanders, stackoverflow.com/a/20415848/240443
@mgilson You suddenly popped out hahaha
04:31
I have the chat window open pretty often...
I'll update my answer, should I?
Go on.
>>> (1,2,3) + (1,1),1
((1, 2, 3, 1, 1), 1)
yup, priority :)
this is also an different behavior
04:33
Gotta get your priorities straight
it is perfectly explained by + binding more strongly than ,
@Anto were you following the discussion? scroll up a bit :)
Amadan and aIKid I'm almost finished editing, woould you review my edit then?
@Roberto I've got to go, but @Amadan should be able to do it. X)
Rhubarb!
ok thank you a lot!!!
done editing!
so ((1, 2), (3, 4)) + (5, 6),
is equal to ((1, 2), (3, 4)) + (5, 6) + (),
3 am, going to sleep :) worth losing some sleep though, thanks a bunch!! :)
05:23
Lol I actually came back because I noticed that I did the same mistake twice. I wrote
"is equal to ((1, 2), (3, 4)) + (5, 6) + (), "
but that's only falling again in the same mistake. I realized then that the final comma is just parsed last, on the intermediary tuple ((1, 2), (3, 4), 5, 6),
This however means that if you take any tuple and do " + (), " you're making it one level deeper, lol.
like, making the whole tuple the first and only element of a bigger tuple
 
2 hours later…
07:08
has anyone in here installed Django onto a ubuntu box before?
07:26
@shuttle87 Yes.
Use pip and virtualenv.
I'm just trying to figure out if I need to set up a virtualenv
ok
 
3 hours later…
10:23
Mornin'!
hai
how ya been man?
I'm good thanks mate. Joined an expensive gym so my wallet is angry
Yourself?
@IntrepidBrit That's my secret, Captain, my wallet is always angry..
10:45
@IntrepidBrit arrite i guess, I've got myself hooked on a good book
and can't seem to do anything other than read
this sucks, because I'd really prefer me writing some code right about now.
11:05
@GamesBrainiac Sometimes taking the time off to read is good though. Will improve your coding if it's a coding book when you do code again ;)
@PeterVaro - Small green wallet leaps out of his pocket and smashes a nearby Aston Martin
11:54
Hello!
Twython regulars here? Can you check this out? stackoverflow.com/questions/20394640/…
What the heck is a twython?!
googles
aha! Interesting :)
Hahahah
Blue bird crossbred with green snake? :-D
That is twython.
Argh!
That's annoying
StackOverflow isn't indulging the grammar gremlins sitting on my shoulder
"A change must be 6 characters or more"
twitches
12:01
goodies :)
Hahaha
Just get to 2k already, man. It'll be easy for you.
Weeerrrrrrrrrl that would involve me fighting with Python ninjas
I'd rather deal with people who I can interact (and help with) in Real Time
Hahaha
Whoa, i'm only two upvotes left to get a silver python badge!!
/soon
O_O
Goodness!
aIKid was born in Java
but he does Python
logic? :P
12:04
Is ashwini here?
Oh nope.
@MauricioAbreu Lol
lol sorry
XD
That was my thought all the time.
And i don't even speak javanese.
XD
lol
I am reading blog posts about Amazon authentication/authorization
And I am stuck at finding a good way to do exactly what they do
They have some services that you can create a user (via web interface)
You can create a user?
And use these user to handle the services that you are paying for
12:07
Ohh
Yes. I have a Django application
I work for a CDN company
And they have services like Purge API and ProFTP
It would be good to create a user that can authenticate and some rule (authorization) to handle some permissions
So in what way are you stuck?
I don't know what I need to do at all.
:)
Any thoughts?
I think I could use Tastypie to do this
So you want to create a user from the (django driven) web interface that generates some sort of user access (with file system permissions)?
Just trying to get a clear image of what you're trying to accomplish
One more damn vote!!
12:15
link?
Nepotism for the win
Hahahah
Yes IntrepidBrit
but it is not just about filesystem
Amazon uses Secret Key and Access Key
@MauricioAbreu RSA?
#oh. of course.
Do you have a quick digest link for what they do so I can bring myself up to speed to what they're exactly doing
I can help you with the crypto stuff (crypto is easy, it's the stuff around the crypto you need to worry about it.)
This is the BEST link I have so far
and it is official
12:20
@IntrepidBrit Agree
@MauricioAbreu Right. Cheers that should do the trick
Right, let's break it down into smaller subproblems
Let's the first problem that you want to tackle
I think there is some sort of apps designed to Django that make it easier.
OH YEAH!
GOT THE VOTE!
Just wait until tomorrow, i guess.
See ya later!
@aIKid ciao
I am not lazy, just do not wanna reinvent the whell :P
12:23
Nono, I can appreciate that
(I'm also concurrently looking at tasty as we speak)
yes, of course (Bane's voice)
After speed scanning everything
it looks like tastypie should be able to do the stuff you need
You can do permissionised authorisation
yes
I think it will do the job
Ah man. Tastypie looks pretty swell
I might have to use it in the future for myself. I'm currently developing a web system that should be all rights have an API already
I got you
Gonna install and study it right now
12:31
The big question is: why did I put parentheses in my previous message?
Aha! Still had enough time to edit it. Win
edit is a win
in every website that you can text everything
12:46
It's glorious - allowing you to hide your idiocy/bad typing from posterity
your comment
is
OP
13:21
bah, i hate windows. pyserial blocking on readline() as it should... but unlike on linux i can't kill it using ctrl+c on windows
ooh, I hate when ctrl-c doesn't work
Usually happens to me when I'm writing a quick and dirty threaded application
Funny, only yesterday I learned about nested string format specifiers, and today I have reason to use one.
img.save("img_{:0{padding}}.png".format(i, padding=num_digits))
13:39
Wow - that's two of you that learned that yesterday then - very weird
Oooo.... 13 congrats now....
Hi
@Kevin I found a solution for the problem of last night
@Kevin plpython boolean query
@Andromida, glad to hear it :-)
@Kevin thanks :) here is my solution stackoverflow.com/a/20421726/2194671
17 hours ago, by Jon Clements
OR select (1 < 2) as blah and then result[0]['blah']
Just thought I'd mention it
@JonClements I didn't see it last night :(
@JonClements good job, thank you
13:49
You're welcome I guess LOL
There, I've upvoted one of @Jon's answers as compensation
return any(i) and not any(i) is so nutty
Awww thanks Kevin.... that one day will get to 100
Keep that dream alive
/me puts Journey - Don't Stop Believing on...
My own #2 answer jumped into the 60s this week. I wonder where the attention came from.
13:54
It's got pictures - that's an upvote straight off
AND AN ANIMATION.... WOO HOOO
I'm pretty proud of those last two gifs :-)
To me, the sphere one is creepily biological. Looks like it's breathing
Greetings all~
@inspectorG4dget howdy to you
Welcome
Arrived at India - visiting the family over Christmas break... or is it halloween? I always get the two mixed up
13:57
oct 31 and dec 25? :)
indeed @JonClements ;]
@inspectorG4dget Which part of india, yaar?
an oldie but a goodie :)
I'm always astounded at all of the coincidences that had to occur, to make that joke work
@thefourtheye: Chennai (mylapore). Just checked your profile and found out you're here too. Where are you?
14:00
@inspectorG4dget near Sholinganallur, OMR. You speak Tamil? ;)
@thefourtheye: tamil nattil irundhu tamil pesalenna? ;]
@Kevin quick - the east is invading - you do something big and Americany - I'll put the kettle on
@inspectorG4dget Nee nadatthu maama ;)
How long you are gonna be here?
@JonClements: we're too lazy to invade. Perhaps we'll make some dosa - mmm, moru moru saravana style dosa
@thefourtheye: Headed back in January for class
Big and American. Ok, we're going to nuke the Moon
@inspectorG4dget Oh okay.... because I believe the Low Orbit Tea Cannon is still out of order.... I think @Kevin said it might aline in "a little while"
@inspectorG4dget Cool. We ll meet sometime, if possible... :)
@thefourtheye: yeah, that would be pretty cool
@Kevin nuking the moon - yup.... that's definitely big and americany
@JonClements: My dad just walked into the dining room, where I'm sitting and is laughing his ass off, reading this
14:05
Just came back from Hunger Games 2 :)
@thefourtheye you won then
@JonClements There are no winners.... Only survivors.... ;)
@thefourtheye: how was it? ("neruppu pudi"?)
I haven't seen it yet... but I would I be right in thinking "Battle Royale" ?
@Kevin we're being teamed up on in foreign languages.... let's confuse them and talk English
@JonClements: Battle Royale was a /good/ movie. I heard they made a Battle Royale 2 - never watched it, though
14:07
@inspectorG4dget lol... It was okay. Nothing much happens in this part. There is going to be a third part :)
Can I overwrite __hash__ from the outside of an object?
@Benjamin nope
I havnt watched Battle Royale @JonClements
(As in, pass set a "hasher")
@JonClements workaround? Anything other than creating my own set class that wraps objects, or using an external decorator?\
I have to put elements from a class I have no control of in a set
@Benjamin special methods are looked up on the class not the instance....
Umm... "you have to"? Really... For what purpose?
14:08
Due to my egocentric culture, I assume that anyone not speaking English is talking about me disapprovingly
@JonClements Exercise.
@JonClements I don't see how that's relevant to wrapping it in a decorator (not a @ decorator, the pattern as in having an instance and also inheriting from it)
@JonClements: why not? Why can't I create a myHash__(x) outside a class and do MyClass.__hash__ = myHash? Or posibly swap the code objects?
@thefourtheye you should watch it - great film
Other than monkey patching __hash__ (which sadly I admit I did consider)
What are my options?
@JonClements Wow. 7.8 in imdb.... Will watch it for sure :)
14:11
@inspectorG4dget you can - I was just saying you can't do it on instances :)
What's the exact purpose of this excercise?
@JonClements: oh, phew! and here I thought I was dreaming le crazy!
@JonClements to use the class without __hash__ in some way. This is no an xy case.
(Build AI for something)
Okay... well - is there an attribute on the object that uniquely identifies it ?
Yes. It has a name property for example and I can hash on that
__eq__ is implemented using it
I might be talking crazy here, but if overwriting MyClass.__hash__ is impossible, then why not a myHash(obj:MyClass)?
14:16
Why not use a dict and the key being the attribute and the value being the object instead?
or what @JonClements said
@JonClements I'm using a lot of set methods in my code all the time. & <= ^ ...
then use .viewkeys() on the dicts
@JonClements that might work, thanks
Hey! Since we're on the subject, can someone please explain to me what py3 is doing with views and dict keys? I understand that it's an iterator over the keys of some sort, but I don't seem to be able to wrap my head around the difference
14:21
In Python 2.x .keys() returned a list of the keys, similar to list(the_dict)... Since keys can inherently be viewed as a set, dict.viewkeys() provides access to a "set-like" object, than can be iterated as normal, or be used in set like operations
@inspectorG4dget .viewkeys() acts like a set object, you can perform set operations on it.
yeah, but what's py3k's the_dict.keys()?
Use list(dict) to get a list of keys in Py3.
Py3's the_dict.keys() is the same as Py2's, the_dict.viewkeys()
And you just use list(the_dict) in both to get a list of keys
14:23
>>> d = dict.fromkeys(range(5))
>>> d
{0: None, 1: None, 2: None, 3: None, 4: None}
>>> d.viewkeys() & [1, 3]
set([1, 3])
>>> d.viewkeys() ^ [1, 3]
set([0, 2, 4])
alright, dinner time. See you around, everyone :)
@inspectorG4dget bring food back - we're hungry in the west!
I want to be able to order food online, download it, and print it at home with my 3d printer
14:25
I don't believe as a species we've quite got to Star Trek replicators yet...
Tea, Earl Grey, Hot
@Kevin Why is that nutty btw?
At a glance, you might think that any(i) and not any(i) would always return false
of course, this is not the case, due to the side effect caused by any on the iterator
Ahh... yes... the source of many comments on it
14:50
@Kevin Hidden Gibbons is a cool card
You've got the better of me there... For once I have to look up a card
That and Hidden spider
Oh yeah, I've got Hidden Spider
When these apes want something, it's a matter of gibbon take
:-I
They remind me of the Licid cycle, a similar collection of cards that are sometimes creatures and sometimes enchantments
Ahh....
A bit of a rules nightmare at the time. Theros' Bestow creatures do nearly the same thing, but with less headaches
15:08
I thought headaches were part of the game...
Endless Wurm is weird card... not sure if I like it or not
got any good fantasy books you guys like?
@GamesBrainiac cbg :)
@aseeon howdy
@JonClements How ya been, I've been lurking here the whole time, but I guess I've been too busy with my book
@Games one of my favourites: sfbook.com/jon-shannow.htm
Graphic audio is quite entertaining
interesting, will look into it
15:17
I loved all of those books - first one Wolf in Shadow is especially awesome
@JonClements You can largely eliminate the drawback by playing Rancor, Aspect of Mongoose, or a number of other auras that return to your hand when they die
I like The Hobbit and Discworld
@Kevin yeah... the deck that comes with them (in the game anyway) only gives you one rancor
Pretty much all Neil Gaiman, if modern-day fantasy is allowed
And a rather neat web-based series, whose name I forget. A magician in Manhattan? Something like that. It's on Everything2 somewhere.
It also has a bunch of "Yavimaya Enchantress".... so having a full load of rancors would be ideal
Drawing cards is the best.
Earlier this week, I had a Serra Avatar, and a Zegana in hand. So I could have drawn cards equal to my life total plus one. But coincidentally, that's exactly how many cards I had left in my library, so I would have lost the turn afterwards.
15:23
Ouch
I lost a game because I misread the use of Shackles
For some reason, I had it in my head that it was basically "Pacify" but retrievable
So you put it on an untapped guy?
Just an "It That Betrays"
D-:
It didn't attack again, but it didn't really matter, cos my entire game was gone then
Interesting. Earlier this week, there was an SO question about using with instead of try+catch, and the consensus was, it's impossible. this profanity-laced library seems to be exactly what the OP wanted.
> F---It.py uses a combination of dynamic compilation, Abstract Syntax Tree rewriting, live call stack modification, and love to get rid of all those pesky errors that make programming so hard.
15:33
Indeed... I like the Still getting errors? Chain fuckit calls. This module is like violence: if it doesn't work, you just need more of it.
Yeah :-)
Glowing reviews:
> I just wrapped all my testcase's in fuckit and all my tests are now passing. I'm ready to ship!
Wonder if they ran that licence agreement through legal
15:49
Yeah, but they suppressed all the warnings they got back ;-)
boom boom! :)
@Kevin Bequethal is quite nice to put on something to boost the enchantresses, then your partner can demon blade the creature afterwards
bbias
The whole python3 python 2 thing is stupid ^^
16:11
@Kevin That's got to be one of the scariest things I've seen all week
"This module is like violence: if it doesn't work, you just need more of it." ... fuckit(fuckit('some_shitty_module')) # This is definitely going run now. < just lol
Oh ... I completely missed Jon's comment :p
Cabbage
cabbage
@BenjaminGruenbaum ?
@JonClements that was general frustration - ignore it
Is it at all possible to access what is on the Django development server from another machine?
Depends in the dev server is listening on a global port accessible over the network
If you make it listen on 0.0.0.0 instead of localhost or similar it should be accessible
16:17
For example, if the dev server is listening on port 80 over a public ip, would that work?
it should
Thanks guys
hiya @MObject
Actually, thanks @JonClements
Hi all :)
16:22
That's not a freaky picture at all @Lord_DeathMatch
@Kevin I think this one should be good for CommonQuestions? stackoverflow.com/questions/20428636/…
16:37
cbg @all!
@AshishNitinPatil cbg!
@JonClements dunno, that's the first time I've seen it
heya @gnibbler
Started enjoying my office work. Is that good or bad?
:)
The answer to that is: "yes" ?
16:41
hi @Jon
@JonClements Hope so :D
DSM
DSM
I've been wondering about something for a very long time: cabbage? Huh?
@JonClements How's SO python's development going?
@JonClements ha! glad you like it :P
16:44
@DSM howdy
@GamesBrainiac it's not at the moment... I'm going to be putting something on github soon though for people to play with
@JonClements awesome. Will it be private? I have a couple of private repos to spare if you'd like 'em.
Mostly because other people might be able to use it if they want to use it as a basis for SE chat bots
So, figured I might just release a command line chat client :)
DSM
DSM
@AshishNitinPatil: ah, thanks. My google-fu failed me entirely.
@DSM Watermelon! :-P
@DSM we've got sopython.com - I think we should possibly add your last answer about dict(default_dict_instance) to sopython.com/CommonQuestions which we're trying to build up
16:47
is there any meaningful jobs out there? I mean with real meanings!
So what is a defaultdict?
DSM
DSM
@JonClements: huh! There's this entire SO Python world I'm unfamiliar with, it seems.
@DSM we started it in February as an attempt to consolidate common Python stuff, and to assist finding dupes etc...
@JonClements Hmm, well surprisingly, I have a lot of free time now, so we should have a convo about it sometime. Dunno about the command line app, how would you do that?
16:50
@DSM I'm also doing some stuff in regards to live analytics of Python questions...
@JonClements The examples are helpful... melons to you! :)
I really want to do something to help others.. but then.. I start thinking about what helping really means. I like programming, I like hacking and tinkering -- I do believe that anyone can a learn a lot from programming. I also like drawing and designing graphics and products -- which are also really helpful stuffs. BUT it is helping for whom? And what does these things really helping on?
most of the companies (startups and big companies) are creating new needs, and then filling them with their own solutions -- which also creates some other new needs, and then they fill that too.. and it is an infinite loop
@DSM when I finally get a bit of time I plan to complete the FGITW analysis... I've got massive dataset of questions/answers/comments/revisions and votes (even those within the edit grace period) that occur.... so hoping to prove what we all know about voting/quick answer/editing it as you go kind of stuff that occurs
@JonClements What are you using to grab/crawl the feeds?
@Ashish nothing fancy... just a web socket client for the most part
16:54
what is that we really want? a new iPhone? One Laptop Per Child? a Raspberry Pi? Linux?
facebook or twitter? or prezi?
are these really helping?
is the world going to be a better place with these things?
@PeterVaro Time will tell... it always does.
@AshishNitinPatil I don't think so. Look, even if we have all the technologies in the world for almost free (PCs are very cheap, software is free, internet is also very cheap) but we did not changed
nothing is really changed for over 5000 years
we have the same problems
but we can find our problems faster, and find others who have the same problems faster
Things have changed drastically!
that's all.. everything is faster, and everything is more.. but nothing really changed.
this error is going to drive me crazy
16:59
@AshishNitinPatil like what?
Medical facilities are much much better than what they were.

« first day (1147 days earlier)      last day (4025 days later) »