Posts
 
Reputation
Joined
Last Seen
Ranked #4K
Strength to Increase Rep
+0
Strength to Decrease Rep
-0
100% Quality Score
Upvotes Received
2
Posts with Upvotes
2
Upvoting Members
2
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
1 Commented Post
0 Endorsements
Ranked #3K
~10.1K People Reached
Favorite Tags

10 Posted Topics

Member Avatar for neerajkumar_86

[CODE] import os base = 'f4761' Series = ['sk','se','pl','no','nl','ie','hu','gb','fi'] for series in Series: for xx in reversed(range(1,4)): file = base+series+str(xx).strip()+".py" os.system( file ) [/CODE] Python is always the right answer.

Member Avatar for Gribouillis
0
2K
Member Avatar for happygeek

I got an iPad app that lets me search for chordpro files, and presents two default options, Google and Bing. The Google search almost always returns nothing, and the Bing search returns what I wanted. People do repost chords/lyrics files verbatim on site after site, I wonder if this is …

Member Avatar for iamseo
7
3K
Member Avatar for LoveMyPadres

HELP MR. WIZARD!! I have been using PySNMP for a while, talking to devices and getting values very successfully. I now need to set a TRAP; this is where you tell the device to notify me when something happens, and then you wait for it to happen. I'm guessing that …

0
80
Member Avatar for LoveMyPadres

Greetings. I'm doing SNMP programming using PySNMP and Python. In my application, I'll be talking with several different devices that are all performing a similar function, but the internal SNMP implementations are very different from each other. In most of them, I'm retrieving tables of information and then parsing them …

Member Avatar for TrustyTony
0
193
Member Avatar for LoveMyPadres

Hi I posted this on another thread but messed up the title (called it y2exe) and I want to make sure this gets found if someone can help. I'm using py2exe and pysnmp, and they seem to be incompatible, at least on the oneliner form I'm using. Pysnmp claims to …

Member Avatar for LoveMyPadres
0
421
Member Avatar for Dane2259

I think you need to execute a loop from range(2,test_num/2), doing a modulus (%) operation with every number and the test_num value. Like this: [CODE] import math test_num = 2 prime_count = 0 while prime_count < 10: x = 2 while x <= ((test_num / 2)+ (test_num % 2)): if …

Member Avatar for richieking
0
122
Member Avatar for CharlieNewey

Only other way I know to debug this is to break it down. Check each variable that is part of the final calculation and make sure it makes sense. Mostly likely, there is a subtle bug in how you are doing one of the calculations. That's how I find my …

Member Avatar for CharlieNewey
0
687
Member Avatar for LoveMyPadres

Hi I'm using pysnmp 4.1.1.4a (yes, I know there's a newer version but it has the same behavior) and py2exe. When I execute a pysnmp oneliner, like this: [CODE] errorIndication, errorStatus, errorIndex, varBinds = cmdgen.CommandGenerator().nextCmd( cmdgen.CommunityData('my-agent', 'public', 0), cmdgen.UdpTransportTarget((self.IPaddress, self.Port)), self.keydict[ key ][0] [/CODE] I get this output: [CODE] File …

Member Avatar for LoveMyPadres
0
350
Member Avatar for novice20

Well, the __class__ helped me! Also, you can use .prettyPrint() on the object, store that into a string, then use normal string handling functions to search for your value.

Member Avatar for LoveMyPadres
0
2K
Member Avatar for LoveMyPadres

I am trying to implement virtual LEDs on a Python window. I turn the LED "on" by drawing a green oval. I then use root.after() to schedule another call that turns the LED "off" by drawing a dark green oval. I use a 250ms delay. There are 4 active LEDs …

Member Avatar for LoveMyPadres
0
2K

The End.