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.26 | nombyte | stickster: 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.21 | stickster | nombyte: What kind of wireless? |
14:21.59 | stickster | What network utility? nm-applet? knetworkmanager? |
14:22.06 | stickster | Have you filed a bug? |
14:22.09 | nombyte | wep, NetworkManager |
14:22.14 | nombyte | and wpa_supplicant |
14:22.27 | nombyte | not yet it was 3am when i found all this out |
14:23.20 | nombyte | and when i stop NM and wpa_supplicant, and setup the wifi manually... wpa_supplicant still starts up |
14:23.40 | nombyte | cause i had it working that way for like 5 mintues. |
14:23.47 | nombyte | then wpa came up, and bam, lost connection |
14:25.02 | stickster | I don't understand why wpa_supplicant is coming up. That's for WPA and WPA2 only AIUI |
14:25.34 | nombyte | i read that the new NetworkManager doesn't handle any encryption anymore |
14:25.44 | nombyte | that wep is handled by wpa as well |
14:26.11 | nombyte | they talked about that in a "future release" but it was an old post so I assumed that was the case |
14:26.29 | stickster | You know what they say about "assume" ;-) |
14:26.39 | stickster | Have you tried backing up and removing your .gconf/system/networking/ store and restarting NetworkManager and nm-applet? |
14:26.43 | nombyte | ya, but given the evidence it fits |
14:26.49 | nombyte | nope |
14:26.52 | nombyte | i can tho |
14:27.05 | stickster | You probably want to logout and do that from a text terminal to avoid confusing gconfd-2 |
14:27.53 | nombyte | ill have to do that at home :D im on a wired connection here :D |
14:28.11 | nombyte | im using twisted to make my own backup suite :D |
14:40.30 | nombyte | stickster: can i ask u a python question which i just haven't been able to grasp? |
14:40.43 | stickster | Sure, if I can't answer it I'll tell you] |
14:40.48 | nombyte | u can this is easy |
14:41.36 | nombyte | u can refrence this: http://paste.turbogears.org/paste/2459 |
14:41.41 | nombyte | so i have the Echo class |
14:41.47 | nombyte | and made a def __init__ |
14:41.55 | nombyte | which has (port=33333) |
14:42.05 | nombyte | so u can either send in a port, or use 33333 as the default |
14:42.29 | nombyte | i tried making everything self.port |
14:42.49 | nombyte | but nothing allows me to get the reactor.listenTCP(port, factory) to see the variable |
14:42.59 | stickster | I don't understand line 17. |
14:43.07 | stickster | Shouldn't that be: |
14:43.11 | stickster | factory.protocol = Echo() |
14:43.23 | stickster | Or maybe what you mean is: |
14:43.41 | stickster | <PROTECTED> |
14:43.45 | nombyte | this was my original code |
14:43.46 | nombyte | http://paste.turbogears.org/paste/2460 |
14:43.50 | nombyte | and it worked |
14:43.54 | nombyte | with just Echo |
14:43.58 | stickster | <PROTECTED> |
14:44.04 | stickster | <PROTECTED> |
14:44.12 | stickster | <PROTECTED> |
14:44.20 | nombyte | most likely |
14:44.27 | nombyte | but that still wont solve my port error |
14:45.11 | nombyte | made that change |
14:45.16 | nombyte | and i still get NameError: name 'port' is not defined |
14:45.52 | stickster | I think you have a scope misunderstanding. |
14:46.04 | nombyte | i have a misunderstanding somewhere :D |
14:46.23 | nombyte | and its really slowing me down :D, cause i will get it working but not understand it |
14:46.29 | stickster | In the Echo class, the "port" variable is only understood in the scope of __init__ |
14:46.38 | stickster | To hold on to it in the class instance, you need to make sure you have: |
14:46.40 | stickster | <PROTECTED> |
14:46.52 | stickster | Then you can reference self.port in other functions in the class. |
14:47.16 | nombyte | i tried that |
14:47.18 | nombyte | let me try again |
14:47.21 | stickster | But your other commands are potentially a problem because they are not scoped in a function of the class. |
14:47.34 | stickster | They should either be in __init__ or some other function that you call from your main code. |
14:47.37 | stickster | now goes back to work |
14:48.01 | nombyte | I'm getting: |
14:48.02 | nombyte | def __init__(self, self.port=33333): |
14:48.02 | nombyte | <PROTECTED> |
14:48.02 | nombyte | SyntaxError: invalid syntax |
14:48.03 | *** join/#fredlug plarsen (n=plarsen@c-24-125-211-129.hsd1.va.comcast.net) |
14:48.17 | stickster | XXXX *buzzer |
14:48.20 | nombyte | hey peter, working from home today? |
14:48.20 | stickster | No. |
14:48.30 | stickster | There is no self being passed. |
14:48.39 | stickster | That declaration was right. |
14:48.46 | nombyte | oh |
14:48.48 | stickster | You have to reassign port to self.port in the __init__ function. |
14:48.51 | nombyte | and i just refer to it with self |
14:48.58 | nombyte | ah |
14:49.07 | stickster | nombyte: You should review some docs on simple classes. |
14:49.21 | nombyte | ya i have, and just wasn't getting it |
14:49.29 | nombyte | went through dive into python a few times :D |
14:49.34 | stickster | That's how I learned it. |
14:49.40 | stickster | Didn't understand a thing until I read that book. |
14:49.42 | stickster | Here: |
14:49.49 | stickster | class A: |
14:50.03 | stickster | <PROTECTED> |
14:50.08 | stickster | <PROTECTED> |
14:50.18 | stickster | <PROTECTED> |
14:50.28 | stickster | <PROTECTED> |
14:50.30 | stickster | <PROTECTED> |
14:50.46 | nombyte | i c |
14:50.49 | nombyte | so these lines |
14:50.51 | nombyte | def __init__(self, self.port=33333): |
14:50.51 | nombyte | <PROTECTED> |
14:50.51 | nombyte | SyntaxError: invalid syntax |
14:50.53 | stickster | if __name__ == '__main__': |
14:51.00 | nombyte | can't use it because there is now self |
14:51.06 | stickster | <PROTECTED> |
14:51.13 | nombyte | so they need to be in a def |
14:51.16 | stickster | <PROTECTED> |
14:51.43 | stickster | nombyte: No, don't think of it in terms of where things are |
14:51.54 | stickster | Think of it in terms of what you're doing, which is passing a reference |
14:52.02 | stickster | "port" is a place in memory. |
14:52.16 | stickster | You want to embed a reference to that place in an instance of an Echo object |
14:52.27 | stickster | So 'self.port = port' does that. |
14:52.28 | nombyte | right but just having reactor.listenTCP(port, factory) |
14:52.28 | nombyte | <PROTECTED> |
14:52.37 | nombyte | wasn't working because they didn't have access to self |
14:52.45 | stickster | They don't even *reference* self |
14:52.54 | nombyte | -_- :D |
14:53.18 | stickster | I'm not sure that having them in your Echo object even makes sense. |
14:53.44 | stickster | Is setting up a listener *inside* what's essentially a Protocol object the right way to go here? |
14:54.06 | stickster | now has to bail. Really. |
14:54.22 | nombyte | :D |
14:54.25 | nombyte | kk :P |
14:57.28 | forsaken | woot @ Google :) |
15:28.42 | nombyte | stickster: believe it or not, Echo() has to be Echo even tho it is a class...wierd |
15:28.49 | nombyte | forsaken: huh? |
15:30.27 | stickster | That doesn't sound right. |
15:31.37 | stickster | Maybe it's the __init__ returning "pass" that's a problem. |
15:32.29 | stickster | Nope, nvm that. |
15:33.07 | forsaken | the AppEngine stuff google just released makes me smile |
15:34.20 | nombyte | ah |
15:38.54 | forsaken | its 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.41 | plarsen | Does 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) |