IRC log for #fredlug on 20080408

00:58.49*** join/#fredlug plarsen (n=plarsen@c-24-125-211-129.hsd1.va.comcast.net)
02:17.03*** join/#fredlug forsaken (n=eric@c-71-62-234-185.hsd1.va.comcast.net)
03:44.37*** join/#fredlug nombyte (n=nmcbride@c-76-27-172-185.hsd1.va.comcast.net)
14:18.51*** join/#fredlug nombyte (n=nmcbride@208.176.91.226.ptr.us.xo.net)
14:20.26nombytestickster: so doing some looking, my wifi disconnects when wpa scans supposedly.  This was a bug in FC7 for the 32bit version and I guess its still in the 64bit version.  When I was running the 32bit F8 I didn't have this problem. :D
14:21.21sticksternombyte: What kind of wireless?
14:21.59sticksterWhat network utility? nm-applet? knetworkmanager?
14:22.06sticksterHave you filed a bug?
14:22.09nombytewep, NetworkManager
14:22.14nombyteand wpa_supplicant
14:22.27nombytenot yet it was 3am when i found all this out
14:23.20nombyteand when i stop NM and wpa_supplicant, and setup the wifi manually... wpa_supplicant still starts up
14:23.40nombytecause i had it working that way for like 5 mintues.
14:23.47nombytethen wpa came up, and bam, lost connection
14:25.02sticksterI don't understand why wpa_supplicant is coming up. That's for WPA and WPA2 only AIUI
14:25.34nombytei read that the new NetworkManager doesn't handle any encryption anymore
14:25.44nombytethat wep is handled by wpa as well
14:26.11nombytethey talked about that in a "future release" but it was an old post so I assumed that was the case
14:26.29sticksterYou know what they say about "assume" ;-)
14:26.39sticksterHave you tried backing up and removing your .gconf/system/networking/ store and restarting NetworkManager and nm-applet?
14:26.43nombyteya, but given the evidence it fits
14:26.49nombytenope
14:26.52nombytei can tho
14:27.05sticksterYou probably want to logout and do that from a text terminal to avoid confusing gconfd-2
14:27.53nombyteill have to do that at home :D im on a wired connection here :D
14:28.11nombyteim using twisted to make my own backup suite :D
14:40.30nombytestickster: can i ask u a python question which i just haven't been able to grasp?
14:40.43sticksterSure, if I can't answer it I'll tell you]
14:40.48nombyteu can this is easy
14:41.36nombyteu can refrence this: http://paste.turbogears.org/paste/2459
14:41.41nombyteso i have the Echo class
14:41.47nombyteand made a def __init__
14:41.55nombytewhich has (port=33333)
14:42.05nombyteso u can either send in a port, or use 33333 as the default
14:42.29nombytei tried making everything self.port
14:42.49nombytebut nothing allows me to get the reactor.listenTCP(port, factory) to see the variable
14:42.59sticksterI don't understand line 17.
14:43.07sticksterShouldn't that be:
14:43.11sticksterfactory.protocol = Echo()
14:43.23sticksterOr maybe what you mean is:
14:43.41stickster<PROTECTED>
14:43.45nombytethis was my original code
14:43.46nombytehttp://paste.turbogears.org/paste/2460
14:43.50nombyteand it worked
14:43.54nombytewith just Echo
14:43.58stickster<PROTECTED>
14:44.04stickster<PROTECTED>
14:44.12stickster<PROTECTED>
14:44.20nombytemost likely
14:44.27nombytebut that still wont solve my port error
14:45.11nombytemade that change
14:45.16nombyteand i still get NameError: name 'port' is not defined
14:45.52sticksterI think you have a scope misunderstanding.
14:46.04nombytei have a misunderstanding somewhere :D
14:46.23nombyteand its really slowing me down :D, cause i will get it working but not understand it
14:46.29sticksterIn the Echo class, the "port" variable is only understood in the scope of __init__
14:46.38sticksterTo hold on to it in the class instance, you need to make sure you have:
14:46.40stickster<PROTECTED>
14:46.52sticksterThen you can reference self.port in other functions in the class.
14:47.16nombytei tried that
14:47.18nombytelet me try again
14:47.21sticksterBut your other commands are potentially a problem because they are not scoped in a function of the class.
14:47.34sticksterThey should either be in __init__ or some other function that you call from your main code.
14:47.37sticksternow goes back to work
14:48.01nombyteI'm getting:
14:48.02nombytedef __init__(self, self.port=33333):
14:48.02nombyte<PROTECTED>
14:48.02nombyteSyntaxError: invalid syntax
14:48.03*** join/#fredlug plarsen (n=plarsen@c-24-125-211-129.hsd1.va.comcast.net)
14:48.17sticksterXXXX  *buzzer
14:48.20nombytehey peter, working from home today?
14:48.20sticksterNo.
14:48.30sticksterThere is no self being passed.
14:48.39sticksterThat declaration was right.
14:48.46nombyteoh
14:48.48sticksterYou have to reassign port to self.port in the __init__ function.
14:48.51nombyteand i just refer to it with self
14:48.58nombyteah
14:49.07sticksternombyte: You should review some docs on simple classes.
14:49.21nombyteya i have, and just wasn't getting it
14:49.29nombytewent through dive into python a few times :D
14:49.34sticksterThat's how I learned it.
14:49.40sticksterDidn't understand a thing until I read that book.
14:49.42sticksterHere:
14:49.49sticksterclass A:
14:50.03stickster<PROTECTED>
14:50.08stickster<PROTECTED>
14:50.18stickster<PROTECTED>
14:50.28stickster<PROTECTED>
14:50.30stickster<PROTECTED>
14:50.46nombytei c
14:50.49nombyteso these lines
14:50.51nombytedef __init__(self, self.port=33333):
14:50.51nombyte<PROTECTED>
14:50.51nombyteSyntaxError: invalid syntax
14:50.53sticksterif __name__ == '__main__':
14:51.00nombytecan't use it because there is now self
14:51.06stickster<PROTECTED>
14:51.13nombyteso they need to be in a def
14:51.16stickster<PROTECTED>
14:51.43sticksternombyte: No, don't think of it in terms of where things are
14:51.54sticksterThink of it in terms of what you're doing, which is passing a reference
14:52.02stickster"port" is a place in memory.
14:52.16sticksterYou want to embed a reference to that place in an instance of an Echo object
14:52.27sticksterSo 'self.port = port' does that.
14:52.28nombyteright but just having reactor.listenTCP(port, factory)
14:52.28nombyte<PROTECTED>
14:52.37nombytewasn't working because they didn't have access to self
14:52.45sticksterThey don't even *reference* self
14:52.54nombyte-_- :D
14:53.18sticksterI'm not sure that having them in your Echo object even makes sense.
14:53.44sticksterIs setting up a listener *inside* what's essentially a Protocol object the right way to go here?
14:54.06sticksternow has to bail. Really.
14:54.22nombyte:D
14:54.25nombytekk :P
14:57.28forsakenwoot @ Google :)
15:28.42nombytestickster: believe it or not, Echo() has to be Echo even tho it is a class...wierd
15:28.49nombyteforsaken: huh?
15:30.27sticksterThat doesn't sound right.
15:31.37sticksterMaybe it's the __init__ returning "pass" that's a problem.
15:32.29sticksterNope, nvm that.
15:33.07forsakenthe AppEngine stuff google just released makes me smile
15:34.20nombyteah
15:38.54forsakenits a good fit for the stuff i've been doing lately
17:06.49*** join/#fredlug forsaken (n=eric@c-71-62-234-185.hsd1.va.comcast.net)
17:57.41plarsenDoes anyone here know how to turn on "smtp" debugging in thunderbird?
21:15.05*** join/#fredlug forsaken (n=eric@192.65.245.35)
23:47.49*** join/#fredlug forsaken (n=eric@192.65.245.35)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.