Posts

Auctioneer/FAQ - Norganna's AddOns

Auctioneer/FAQ - Norganna's AddOns : "If you do want to start fresh, you can now do this from in-game. Simply type '/auc cleardata ALL' to clear all data from all servers and factions. Replace 'ALL' with 'server' or 'faction' to clear data only for the current server or faction, instead. - Sent using Google Toolbar"

Cuberick: Merge Bazaar Repositories With No Common Ancestor

Cuberick: Merge Bazaar Repositories With No Common Ancestor : "But what about merging branches with no common ancestor? Turns out this is pretty easy... In bazaar you can simply do the following: Change directory to the destination working copy. Execute the following command bzr merge /path/to/source-working-copy -r0..-1 Note the -r0..-1 part of the command. This tells bazaar to merge a range of revisions from the first revision to the most current. Now review and commit the changes. Notice that bazaar gives you an indication that all history is preserved by displaying a list of checkin comments. Nice. - Sent using Google Toolbar"

Renaming a network connection with netsh - Mike Wilbur's Blog - Site Home - MSDN Blogs

Renaming a network connection with netsh - Mike Wilbur's Blog - Site Home - MSDN Blogs : "netsh interface set interface name='Local Area Connection' newname='ExampleLan' - Sent using Google Toolbar"

PyMOTW: hmac - O'Reilly ONLamp Blog

PyMOTW: hmac - O'Reilly ONLamp Blog : "import hmac import hashlib digest_maker = hmac.new('secret-shared-key-goes-here', '', hashlib.sha1) f = open('hmac_sha.py', 'rb') try: while True: block = f.read(1024) if not block: break digest_maker.update(block) finally: f.close() digest = digest_maker.hexdigest() print digest - Sent using Google Toolbar"

WorkingWithTime - PythonInfo Wiki

WorkingWithTime - PythonInfo Wiki : "Working with Time Notably missing from this page are the capabilities of the Python datetime module, which was introduced in 2.3 and is very powerful. This page gives some basics of working with time in Python. More detail can be found in the time Module Documentation. Formats There are several ways to work with time: format Python seconds since the 'Epoch' time.time() tuple time.gmtime() string time.ctime() The Epoch is January 1st, 1970, midnight, on UNIX systems. On other systems, look at the results of time.gmtime(0) to discover the date of the Epoch. Measuring time in seconds since the Epoch is convenient for storage and comparing dates, because you only have a single number to consider. The tuple contains several values, arranged the following way: year, month 1-12, day 1-31, hour 0-23, minutes 0-59, seconds 0-61, day 0-6 (Mon-Sun), day 1-366, and DST -1,0,+1. 'DST' means 'daylight savings time.' For more infor...

1.2 Installing ZenPacks - Open Source Network Monitoring and Systems Management

1.2 Installing ZenPacks - Open Source Network Monitoring and Systems Management : "#2. Installing ZenPacks ZenPacks are distributed as .egg files. Zenoss also supports .zip files. You can install ZenPacks from the command line on the Zenoss server, or from the Zenoss user interface. #2.1. Installing from the Command Line The following ZenPack command can be used from the command line to install ZenPack files. After installing or updating ZenPacks you need to restart Zenoss: zenpack --install zenoss restart If you have the source code for the ZenPack you can install directly from that rather than from a .egg or .zip file. The command is the same, you just specify the directory containing the source code. This copies the source code into either $ZENHOME/ZenPacks (for newer egg ZenPacks) or $ZENHOME/Products (for older style ZenPacks.) zenpack --install zenoss restart If you are developing a ZenPack you usually will want to maintain your source code outside of $ZENHOME/ZenPacks or $Z...

TurboGears "offline" processes (crons, command-line commands, etc) - Plumbing Life's Depths

TurboGears "offline" processes (crons, command-line commands, etc) - Plumbing Life's Depths : "TurboGears 'offline' processes (crons, command-line commands, etc) TurboGears uses the Paste commands system to create command-line entry points that, for example, set up your database or start your server. When you get to larger projects, however, you will often have other things you need to do 'in the context of your application' from the command line, such as periodic imports of data, or cron'd database management tasks. Paste's command system is well documented, but it can take quite a bit of poking around to find out how to get SQLAlchemy, and TurboGears configured so that code that looks in tg.config gets the right values, and SQLAlchemy has access to your models. This little module (tgcommand.py) is my hacked-together attempt to make it easier to create new TG command-line commands. The idea is that for each application you will create a Bas...