« first day (1069 days earlier)      last day (3879 days later) » 

3:57 AM
heelloooooooooo
 
hi
 
hey @Haidro
recommend me a IDE will ya
 
I use Sublime Text 2, idk why
 
@Haidro `import urllib2
response = urllib2.urlopen('http://python.org/')
html = response.read()`
 
hmm?
 
4:02 AM
if I type response the IDE should show the read() method automatically
 
So, I'll try rephrase your question
You want to find an IDE that knows what function a specific object has?
 
@Haidro yep
 
I have no idea, but if you find that, do tell me ;)
 
4:16 AM
Hai guys! :D How goes mudkip hunting season?
 
What
 
@KDawG Use NinjaIDE
@Haidro There, shoot the mudkip! :P
 
It's Jon season!
 
bam boom ththththahhsdhskdhsht
 
not mudkip season
 
4:18 AM
@GamesBrainiac does NINJAIDE know what function a specific object has?
 
Nah, Jons avatar is too cute
@KDawG Yes.
 
duck season! wabbit season! duck season FIRE!
 
@GamesBrainiac are you serious??????
 
@KDawG Yea.
 
Uh oh
I think @KDawG I got my words mixed up
Actually... no it's fine
 
4:19 AM
@Haidro Man, I remember those stupid looney tunes.
 
Could be improved though. I'm not a pythonista.
 
It seems so long ago.
 
@GamesBrainiac DAMN, k downloading....
 
@GamesBrainiac Stupid? STUPID? I LOVED looney tunes. And still do
 
@Haidro ikr
 
4:20 AM
@Haidro Yes you are. You just happen to be a mudkip too.
@Haidro Ofcourse they're stupid! :P
 
cabbbbbbage!
 
JERRY HIDE
 
/me hides
 
I must be the lowest reputated person in this room :D
 
that doesn't and shouldn't matter.
 
4:30 AM
@Jerry I feel a lot better now Thanks for not being a reputist :P
 
@KDawG You probably know more python than me though :p
 
and definitely more than me
I know like... |<-->| (this much)
 
naww
 
yes yes I do
 
Dude, like, what's a metaclass
 
4:32 AM
I learned .append the day before yesterday, the for loop a week ago... and print was a bit before that
 
okay, I think I know more than mudkip v2
 
@Jerry Shoot that Mudkippppp!!!!
 
I love you @GamesBrainiac
 
Thats what all mudkips say! :P
Its mudkip hunting season btw
 
I didn't know you knew so many mudkips o.o
 
4:34 AM
@KDawG Tell me how ninja is working out for you
 
I'll just leave you with them then pout
 
@Jerry There are already 2 here.
What's next on your agenda you mudkips?
World domination?
 
@GamesBrainiac just installed it but it seems to be dark....
 
review a work from a colleague
 
NEVERRRRRRRRRRRRRRRRRRRRRR
You know.
No room is as happy as our room
I think thats because Python makes you happy
 
4:35 AM
as long as you're happy ^^
 
@GamesBrainiac I think Its not what I was looking for :(
 
@KDawG NinjaIDE?
You should be getting autocomplete
 
I'm you're not happy :(
 
I mean, I do.
 
@GamesBrainiac I don't why??
 
4:38 AM
@KDawG Dunno. I don't know what other advice to give you. You can try PyCharm, but you have to pay for it.
 
oh ok n_n
 
@GamesBrainiac at least when I type import m it doesn't suggest math and so on
 
@KDawG Arrite, then somethng has to be wrong.
 
@KDawG Oh! Hold on...
 
You even get that kind of suggestion in IDLE
 
4:40 AM
@KDawG iPython does that
It has examples on the left
 
@KDawG press CTRL+SPACE
See if that works
 
@GamesBrainiac when I press space it prints `````` and the CTRL+SPACE does the same too
 
See, this even works in IDLE, probably you don't have some settings on or something
@KDawG Well, I dunno then. The best option then is to use Aptana Studio
It has ready made settings so that you get auto-complete
I forgot how you set up Ninja
 
@GamesBrainiac I normally use pyscripter works well but it doesn't know what function a specific object has
and this can be annoying sometimes
 
@KDawG Hmm. Try using Pydev or Aptana then. Thats your best bet.
 
 
1 hour later…
5:51 AM
Meeep! :D
 
6:06 AM
Mareep!
 
Why is one of my comments starred
 
6:57 AM
wow, ios7 looks really different
 
Mhm
 
 
1 hour later…
8:10 AM
poops
 
yea me alive
@KDawG did you get an ide that you liked in the end?
 
@GamesBrainiac I thought I would continue to live with pyscripter :D
 
@KDawG You don't have you know. Just download PyDev
 
Those other IDE's either didn't work for me or were expensive :(
@GamesBrainiac PyDev?
 
download this
this has the pydev plugin
 
8:14 AM
never tried but now will
 
Its really quite good for free software
the best python ide however is pycharm
hands down
but you need to pay for it
 
@GamesBrainiac which version should I download, stand-alone or Eclipse Plug-in Version
????????
 
Stand-alone right?
 
8:17 AM
@GamesBrainiac woops thats 150mb....
 
@KDawG yea
good ides are usually around the 200 mark
 
@GamesBrainiac I'm already downloading The Unit Seasons 1-4.....
Guess I'll have to add it to my queue......
 
@KDawG u idiot.
ide is more important :P
 
@GamesBrainiac What about ENTERTAINMENT
 
@KDawG python will give you happiness
much more important
 
8:20 AM
@GamesBrainiac I'll consider it, but stupid verizon is cracking up on me.....
There are slowing me down :(
DAMN EM
YAM 'EM
anyway by the end of the day I'll test and let ya know @GamesBrainiac
hope its gooooooood!!
anyway any idea on how to mimic a browser???
 
8:52 AM
mimic a browser?
 
9:10 AM
@GamesBrainiac yeah using mechanize or so
 
Use mechanize ;)
 
@Haidro I would if I knew what I were doing _
These geeky shit gonna drive me crazy one of these days :P
 
Yea, mechanize doesn't have very good documentation
It only has examples, last time I checked
 
whaaaaa?
0
Q: how to skip blank line while reading CSV file using python

ketanThis is my code i am able to print each line but when blank line appears it prints ; because of CSV file format, so i want to skip when blank line appears import csv import time ifile = open ("C:\Users\BKA4ABT\Desktop\Test_Specification\RDBI.csv", "rb") data = list(csv.reader(ifile, delimiter...

 
morning
 
9:18 AM
evening! @PaoloCasciello
 
no afternoon around? :D
 
afternoon here
1:21 pm
 
7:22pm here :3
 
:D :D
ok the team is complete!
 
@Jerry you live in dubai??
 
9:23 AM
nope :3
I'm surrounded by water
 
dat moment when you realise you're capped
 
@Jerry guess what, I'm CIA and traced ya :P
 
awesome! You can save me from here and this slow internet!?
 
ah now i get why you complain a lot about your internet speed... mauritius.. :/
 
wait
you're 3159.14 miles off
 
9:25 AM
WTF????
ya traced me too????
 
uh.. I shouldn't have said that :x
 
Your about to deal with highly trained american security forces so back off :D
 
You're*
 
What I meant was: Dubai is 5067.62 km off where I am
I don't work in miles, it was just a wrong google search
 
@Jerry we located ya using edward snowdens Pypeep-locator v42.0
 
9:28 AM
it's wrongly calibrated or something :(
You need to find me and save me!
 
@Jerry It says your 5067.62 km off dubai :P
we sending recon units your way, its just a matter of time till they reach your address... :P
 
Hi guys
 
That makes a distance of 31824.6536 km to check @KDawG
hi @wanmohdpayed
 
@Jerry found the bug, using NSA logs to determine your location......
 
awesome!
 
9:32 AM
I need somehelp
 
wait, you need the nasa logs to track my location?
I thought for a second I was disconnected
 
I'm scrapping this page "http://www.downloadcrew.com/article/27337-makemkv" using python 2.7 beautifulsoup. I need to get the download link but the download link is javascript. I do not have any idea about the javascript.
 
@Jerry We contacted them and now running a all out thermographic scan on the world to determine your physical location cross-references with DEA,NSA,Hospital records :P
@wanmohdpayed use phantomjs
 
@KDawG Then how to put into the python script?
 
@wanmohdpayed That you'll have to learn :(
 
9:36 AM
@KDawG Thats mean I still need to use beautifulsoup rite?
 
@wanmohdpayed depends........
 
@KDawG It sounds highly inefficient and time consuming :(
just take my timezone and distance from Dubai, that gives you only two coordinates
 
@KDawG Thanks.. I will try..
 
one's about in the north pole
and the other in the indian ocean
 
@Jerry why????? anyway obama-care provides all those unnecessary funds....
 
9:38 AM
ok, instead of wasting them, save them for me
I'll need them
for reasons I cannot disclose of course
 
We have been tought wit the you only live once principle so waste em all money YEAH!!!!
 
;((((((
^ all the sads
 
@Jerry anyway you live in sri lanka by any chance??
 
nope, it's too close to Dubai
and not in same time zone I think
yea, it's 2 hours ahead
 
@Jerry Back2python, what should I do learn mechanize or move to an alternative?
 
9:44 AM
me? I don't know mechanize or any alternative
 
@Jerry great person I asked :P
 
I'm utterly confused now x_x
/me hurts myself in confusion
hello @user2794767
 
What the hell is it with everyone hating on bieber
 
@Haidro he trying to play big when he's a young kid thats what
 
He's like, what, 17 now?
You're just acting all jealous
 
9:51 AM
@Haidro naw, I like Lil Wayne, The Game, Austin Mahone , /Do I look Like I'm jealous
 
Yes, you do. You're hating on a person who has a great future and is actually bothering to "play big when he's a young kid"
 
@Haidro naw, he's weed smoking habits make young people think COOL, JB smokes pot so should we
 
You think he's the first?
 
and he's the chaotic role model for young kids with bright futures
 
'great future'? :D
 
9:55 AM
and Miley Cyrus is the next piece of shithead
 
Okay, I think that's enough swearing from you
 
10:13 AM
Hello everyone! I went through some blogs, came to be known that, youtube uses python for encoding various file formats into .flv format. can anyone give tutorial here? how to work on video file formats?
 
10:30 AM
Cabbage y'all
 
cbg!
mechanize tuts anyone???????????
 
I don't have any offhand unfortunately
 
@IntrepidBrit ??????????
 
mechanize tutorials?
I presume for web scraping and all that malarky?
 
yup
 
10:50 AM
Yeah, I don't know any good ones unfortunately
 
 
1 hour later…
12:17 PM
cabbage folks
@IntrepidBrit did you ask your brother about compilers?
heya @JonClements
 
Yo @JonClements
@Pet
argh! @PeterVaro : Longer reply later, I'm preparing for a call in 40 min.

But, yes, you can, PyPy does JIT compilation of Python.
http://pypy.org/

Static compilation is harder, but may be possible (in the worst case you statically compile a JIT into your binary!).

The biggest problem is the dynamic nature of Python, i.e. no typing, objects can arbitrarily have new properties added, etc. This is why JIT works better, if something changes then you throw away the compiled version of what changed and recompile the new version. This is exactly the same for Javascript, and that is why Javas
That is what he sent to me
 
Heya guys
 
@IntrepidBrit Oh thanks, will read that in a mo
 
@JonClements is it a Python leak, if you do this:
for i in range(1):
    pass
print(i)
and this^ is working...
why the i variable name is still alive after the for scope is ended?
I mean I did not do this:
i = 0
for i in range(1):
    pass
print(i)
because in this^ case, I know, I created the i outside the for-scope
 
12:25 PM
Because i is bound to th scope the for exists in
for doesn't introduce its own scope
 
so this is completely normal?
@JonClements really?
 
Yes...
 
while neither?
 
nope
 
but if/elif/else does... doesn't it?
 
12:26 PM
no... remember that assignments aren't allowed in it anyway...
 
@JonClements you mean this:
for i in range(10):
    a = 10
print(a)
because this^ is still working
 
Yeah, if the loop never runs then a will thrown a name error as the assignment never executes, but otherwise the scope of a is in the same scope as the for
 
omg... that is really confusing..
I mean I never done this silly thing before, and I never will, but during the design of Pyoneer
I have to think about scopes and the variables/references they are holding..
so we can say, that Python is flat?
 
Not having a special scope for if blocks is useful in the following example:
if foo:
    bar = 23
else:
    bar = 42
Here, I can create bar within an if block, and use it later, after the if has ended.
(Yes, I recognize that writing bar = 23 if foo else 42 would obviate the need for such scoping rules. I could come up with a more complex example.)
 
OK, I understand this:) But this means the only scopes we have are class and def scopes, right?
or class and def are not scopes either?
 
12:32 PM
Modules have got scope as well, yes?
 
I think they have..
 
This ties in with yesterday's conversation. Module a can't see the variables declared in module b.
 
but I'm not sure anymore.. ;)
@Kevin even if I pass the same custom_global dictionary to it, and all the imported ones as well (within a modified, custom __import__)
^which is strange in my opinion;)
anyway, cabbage @Kevin
:):)
 
@PeterVaro classes, functions, list/dict/set-comps, gen-exps and lambdas
 
another question: if I want to implement a an if-statement how would I do that -- I mean, I have a special example for this:
for i in (1, 0, 1, 0):
    if i:
        a = 3
    a + 9
 
12:38 PM
Huh?
 
this is a really stupid example
wait a minute
 
You'll get a as 3 at the end of it
 
I know
but wait -- I'm typing;)
so in this stupid example, what is the expected behaviour? Because in the first run of the for-loop, the a will be created as a = 3, but in the next run a should be overloaded or has to be deleted -- in my opinion -- although in Python it is not, it is still there, a is 3
OUPS! the last line should be a += 9
rbrb in 30
~
 
Umm, how does it know a should be deleted :)
anyway... see ya in a bit
 
Today is new project day. Sort of. I'm supposed to port a million year old DOS-only application, into a more modern form.
They included screenshots in all their 256-color ASCII glory.
 
12:45 PM
Ooooooo
 
God bless the client for apparently including all business requirements in the task description. I may not even need to look at the source of the old version.
 
Why does anyone need more than 8 or possibly 16 colours?
 
Most of my usual tasks are like, in their entirety, "fix the problem on the Search page"
I don't think it's even 8 colors. Let's see. dark cyan, cyan, dark magenta, dark blue, dark yellow, black, white.
I wonder, should I mimic the existing interface so the existing customers feel comfortable?
 
Yes. Overloading their sensory input could have catastrophic consequences...
OMG - SOMETHING'S WRONG... IT'S NEVER HAD THAT COLOUR THERE BEFORE.... PANIC!!!
 
Certainly, it would be useful to them if their familiar workflow is unchanged.
 
12:52 PM
You need to keep the same font as well
 
For example, perhaps they do data entry not even looking at the screen. You could blindfold them and they'd say "press N for new record, type 16 digit id, press tab, type price in cents, press tab, type weight in grams with two digits after the decimal point..."
In which case the keyboard shortcuts are far more important than the layout of data on the screen.
 
^this is the font I require.
 
Ahh yes.... that's errrr
The name of it is on the tip of my tongue
 
Looks like the same font my command prompt uses, which it unhelpfully labels as "Raster Fonts"
 
12:59 PM
show your tongue in front of a mirror! hurry!
 

« first day (1069 days earlier)      last day (3879 days later) »