topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Friday April 26, 2024, 5:11 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - jpprater [ switch to compact view ]

Pages: [1]
1
Looks like this problem has been around for a while, based on previous forum posts, and it's still around in the latest version.  Turning off "Keep LaunchBars On Top" seems to fix it.  Is that the only solution, or is there something else that can be done?

2
General Software Discussion / The Humble Bundle Returns! \o/
« on: April 12, 2011, 02:57 PM »
The Humble FrozenByte Bundle includes Trine, Shadowgrounds, and Shadowgrounds: Survivor, plus a preorder for another FrozenByte game and an OSS prototype of yet another!  :Thmbsup: 8)
Get yours here!

3
Developer's Corner / Regex help, please?
« on: February 02, 2010, 11:14 AM »
I'm trying to parse information in the audit log of a bunch of work tickets, which I've exported to a .CSV file.  I've pulled the data into Powershell and am doing my parsing using .NET's regular expression class.

What I want is to detect when a ticket's assigned group was changed.  That shows up in the ticket's audit log as "The assigned group was changed to Group_Name", where Group_Name is always some combination of upper/lowercase letters and underscores.
This being the case, the following regex should do it...
The assigned group changed to ([a-zA-Z]+(?:_[a-zA-Z]+)*)

Yet, when I run these tickets' audit logs through that regex, I get nothing.  Am I missing something?  Is there an option I should be setting someplace?  I already tried multiline vs singleline...

4
Find And Run Robot / Freezing on search :(
« on: January 11, 2010, 08:25 AM »
FARR seems to freeze during search.  The FARR window pops up normally when I hit my hotkey, but after the first character, FARR freezes for about 5 seconds.  It does this on every search.
If this were my web browser, I'd clear the temp files...is there something like this that I should be doing every so often in FARR?  What else should I try to speed things up?  Everything else on my machine seems to be running normally.  I'm using FARR 2.80.02.

Jon

5
N.A.N.Y. 2010 / NANY 2010 Final Release: Library Management System
« on: December 25, 2009, 07:26 PM »
NANY 2010 Release

Application Name Library Management System
Version 0.7.1
Short Description A browser-based application for library management.
Supported OSes Anything that runs Python
Web Page
Download Link Download page
System Requirements
  • Minimum:  Python 2.6, Web2Py 1.74.3, a database engine of your choice, and the Python adapter for that engine.
  • Optional:  A webserver with WSGI and SSL capabilities (such as Apache with mod_wsgi and mod_ssl) and lxml and python-amazon-product-api packages for Amazon support.
Version HistorySee here
Author Jon Prater


Description
What it is:  A tool for keeping track of your book collection and who you've loaned copies of your books to.
What it isn't:  A full-blown system for keeping track of the collection of a public library.  ;) I wrote this to keep track of my personal library at home.  It would take some modifying for it to be ready for use with a really HUGE collection in a public environment.
Why I wrote it:  Other tools didn't really seem to offer me the functionality my wife and I wanted for keeping track of our books.  We wanted something nice and simple that could do certain things, and we didn't want a lot of fluff.  So it's fairly minimalist.  The features we need, and none of the ones we don't. :Thmbsup: If you want a feature that's not there, feel free to email me about it via the discussion group.

Features (Current and Planned)
  • Adding new books to the database
  • Searching for books by keywords
  • Updating/deleting existing books in the database
  • Authentication and user management (disabled by default)
  • Adding/updating/deleting information on who has been loaned a book
  • Pull author/title by ISBN

Also See project page.

Screenshots
The main page of the application...
LMS1.png

The add book page...
LMS2.png

The keyword search...
LMS3.png

With results...
LMS4.png

Usage
Installation
Detailed installation instructions are here.

Using the Application
See Getting Started.

Uninstallation
If you're not using web2py other than for this, you can simply delete the web2py folder from your disk.  Otherwise, the site admin page has an uninstall link to remove applications.

Known Issues
The lxml and python-amazon-product-api packages must be installed in Python to use the Amazon lookup features.  Links to download them will be added to the project site.

6
What it is:  A tool for keeping track of your book collection and who you've loaned copies of your books to.
What it isn't:  A full-blown system for keeping track of the collection of a public library. ;) I wrote this to keep track of my personal library at home.  It would take some modifying for it to be ready for use with a really HUGE collection in a public environment.
Why I wrote it:  Other tools didn't really seem to offer me the functionality my wife and I wanted for keeping track of our books.  We wanted something nice and simple that could do certain things, and we didn't want a lot of fluff.  So it's fairly minimalist.  The features we need, and none of the ones we don't.  :Thmbsup:  If you want a feature that's not there, feel free to email me about it via the discussion group (see below).

Current features include:
  • View/Edit/Delete existing books
  • Add new books
  • Search Amazon for book information when adding
  • Track copies of books loaned to people
  • Comment on each book or loan
  • Works with almost any popular database engine
  • Runs on Python using the web2py framework

Where to get it:  Download it from the project website.  Installation instructions are on the site.  It's open-source hosted on GoogleCode. :)  There's also a project discussion group hosted on Google Groups, so please send any comments, suggestions, or issues there.

7
Developer's Corner / Crazy Autohotkey issue
« on: December 14, 2009, 09:58 AM »
I've already posted about this over at the Autohotkey forum, but maybe someone here has seen this issue before.
I'm having a post-compile issue with one of my scripts.
I have the following two files:
ld.ahk
Code: AutoIt [Select]
  1. #include LockDetect.ahk
  2. #NoTrayIcon
  3. IfNotExist, LD_Settings.ini
  4.         IniWrite, ., LD_Settings.ini, logsettings, logpath
  5. IniRead, LogPath, LD_Settings.ini, logsettings, logpath
  6. FormatTime, StartTime,, MM-dd-yyyy_HH-mm-ss
  7. FormatTime, StartTime1,, MM-dd-yyyy HH-mm-ss
  8. PID := DllCall("GetCurrentProcessId")
  9. LogFileName := A_ComputerName . "_" . StartTime . "_" . PID . ".txt"
  10. LogFile := LogPath . "\\" . LogFileName
  11. IfNotExist, %LogPath%
  12.         FileCreateDir, %LogPath%
  13. FileAppend, Process %PID% started at %StartTime1% `n, %LogFile%
  14. notify_lock_unlock()
  15.  
  16. on_lock()
  17. {
  18.         Global LogFile
  19.         FormatTime, TimeString,, MM-dd-yyyy HH-mm-ss
  20.         FileAppend, Locked at %TimeString% `n, %LogFile%
  21. }
  22.  
  23. on_unlock()
  24. {
  25.         Global LogFile
  26.         FormatTime, TimeString,, MM-dd-yyyy HH-mm-ss
  27.         FileAppend, Unlocked at %TimeString% `n, %LogFile%
  28. }
And LockDetect.ahk, copied from notifylockunlock.ahk in http://www.autohotke...forum/topic5359.html.
Code: AutoIt [Select]
  1. ;---------------------------------------------------------------
  2. ;Notify Lock\Unlock
  3. ;   This script monitors LockWorkstation calls
  4. ;
  5. ;   If a change is detected it 'notifies' the calling script
  6. ;      On Lock
  7. ;         This script will call function "on_lock()"
  8. ;      On Unlock
  9. ;         This script will call fucntion "on_unlock()"
  10. ;IMPORTANT: The functions "on_lock()" and "on_unlock()" DO NOT
  11. ;exist in this script, they are to be created in the script that
  12. ;calls notify_lock_unlock() (presumably your main script)
  13. ;---------------------------------------------------------------
  14. ;Re-purposed by WTO605
  15. ;Last edited 2009-08-18 16:34 UTC
  16. ;---------------------------------------------------------------
  17. ;Based on Winamp_Lock_Pause by MrInferno
  18. ;Posted: Fri Apr 21, 2006 4:49 am
  19. ;Source: http://www.autohotkey.com/forum/topic9384.html
  20. ;---------------------------------------------------------------
  21. ;Winamp_Lock_Pause was/is based on script codes from "shimanov"
  22. ;Posted: Thu Sep 15, 2005 12:26 am  
  23. ;Source: http://www.autohotkey.com/forum/viewtopic.php?t=5359
  24. ;Posted: Tue Dec 06, 2005 9:14 pm
  25. ;Source: http://www.autohotkey.com/forum/viewtopic.php?t=6755
  26. ;---------------------------------------------------------------
  27.  
  28. ;Initialize global constants
  29. WTS_SESSION_LOCK      :=   0x7
  30. WTS_SESSION_UNLOCK      :=   0x8
  31. NOTIFY_FOR_ALL_SESSIONS   :=   1
  32. NOTIFY_FOR_THIS_SESSION   :=   0
  33. WM_WTSSESSION_CHANGE   :=   0x02B1
  34.  
  35. notify_lock_unlock()
  36. {
  37.    Global WM_WTSSESSION_CHANGE
  38.    Global NOTIFY_FOR_ALL_SESSION
  39.  
  40.    hw_ahk := FindWindowEx( 0, 0, "AutoHotkey", a_ScriptFullPath " - AutoHotkey v" a_AhkVersion )
  41.  
  42.    OnMessage( WM_WTSSESSION_CHANGE, "Handle_WTSSESSION_CHANGE" )
  43.  
  44.    success := DllCall( "wtsapi32.dll\WTSRegisterSessionNotification", "uint", hw_ahk, "uint", NOTIFY_FOR_ALL_SESSIONS )
  45.  
  46.    if( ErrorLevel OR ! success )
  47.    {
  48.       success := DllCall( "wtsapi32.dll\WTSUnRegisterSessionNotification", "uint", hw_ahk )
  49.       ;If DLL registration fails, wait 20 seconds and try again
  50.       Sleep, 20000
  51.       notify_lock_unlock()
  52.       ;MsgBox, [WTSRegisterSessionNotification] failed: EL = %ErrorLevel%
  53.    }
  54.    return
  55. }
  56.  
  57. Handle_WTSSESSION_CHANGE( p_w, p_l, p_m, p_hw )
  58. ; p_w  = wParam   ;Session state change event
  59. ; p_l  = lParam   ;Session ID
  60. ; p_m  = Msg   ;WM_WTSSESSION_CHANGE
  61. ; p_hw = hWnd   ;Handle to Window
  62. {
  63.    Global WTS_SESSION_LOCK
  64.    Global WTS_SESSION_UNLOCK
  65.  
  66.    If ( p_w = WTS_SESSION_LOCK )
  67.    {
  68.       on_lock()
  69.    }
  70.    Else If ( p_w = WTS_SESSION_UNLOCK )
  71.    {
  72.       on_unlock()
  73.    }
  74. }
  75.  
  76. FindWindowEx( p_hw_parent, p_hw_child, p_class, p_title )
  77. {
  78.    return, DllCall( "FindWindowEx", "uint", p_hw_parent, "uint", p_hw_child, "str", p_class, "str", p_title )
  79. }
If I run the above ld.ahk, which has #include lockdetect.ahk at the very top, everything runs perfectly.  I get exactly the behavior I expect.
However, if I compile ld.ahk, which operation should build the code in the included lockdetect.ahk into the resulting .exe file, when I run the .exe, I get the behavior expected up until the script should try to run code included from LockDetect.ahk.  This also happens if I copy the code manually from LockDetect.ahk to the top of ld.ahk.
I am using the very latest version of autohotkey, 1.0.48.05.

8
N.A.N.Y. 2010 / NANY 2010 Final Release: FARR Plugin ProcessInfo
« on: December 11, 2009, 08:23 PM »
NANY 2010 Entry Information

Application Name FARR Plugin ProcessInfo
Version 1.1.0
Short Description A FindAndRunRobot plugin to display information about running processes
Supported OSes Windows
System Requirements
  • FARR 2.80.02 recommended (for use with latest FScript)
Version History
  • 1.1.0:  Bug fixes by mouser, including showing all processes and adding icons for many processes that didn't show them
  • 1.0.1:  Bug fix
  • 1.0.0:  Release!
  • 0.9.0:  pre-release
  • 0.0.5:  alpha testing
Website:
Author Jonathan Prater
Screencast


Description
I'm a sysadmin by trade, and I frequently need to get quick information about processes running on a machine (either my own or a remote PC).  I also frequently need to know what files the process is actually using at any given moment.  And I don't necessarily want to have to access the machine directly to get that information.
While there are tools already available that give me that information, none of them are particularly fast about giving it to me, and none of the are as intutive as a FARR alias/plugin could be. :) So I wrote this to be the fast, simple tool that I as an admin need to get information quickly.

Current Features
- It queries processes matching a specified partial name, then lists them out by name and ID.
- Upon selection of a specific process, it returns more detailed information, including memory used, count of handles open, and paths to actual files.

Planned Features
- Access to processes on remote computers.

Screencast


Screenshots
Initially, the user types in pinfo...
ProcessInfo1.png
As the user enters more characters, ProcessInfo tightens down on the processes that match what was entered.  The results list looks like this:
ProcessInfo2.png
Upon selecting the desired target process, the user gets something like this:
ProcessInfo3.png

Installing this application:
Make sure you've got FARR installed ;), then download the plugin file (attached below) and unpack it to a subdirectory of $FARR_Install\Plugins.
Toggle FARR and type rplugins, then click OK.  One of the plugins in your list should be ProcessInfo, with an alias of pinfo.

Usage:
pinfo processname.  Hit enter on a process you want to see details for.  To see all processes, just type pinfo followed by a space.
To query remote computers: pinfo c=computername processname.

Uninstalling:
Toggle FARR and type rplugins.  Before clicking OK, delete the directory $FARR_Install\Plugins\$ProcessInfo, where $ProcessInfo is the directory you originally unpacked the plugin to.[/list]

9
Thanks to mouser's help and reinforcement from late last night  :Thmbsup:, I'm off to a great start on my plugin.  I'm hitting a snag now where I can't get my plugin to respond to triggers.  Is there something I'm supposed to set in FARR.emitResult that tells FARR what to do when I hit enter on the selected result?

10
FARR Plugins and Aliases / Question about FScript (1.19)
« on: December 10, 2009, 09:47 PM »
I'm trying to write a FARR plugin using FScript.  Other plugins I've seen have used aliases to trigger the action of the plugin itself, but I'm having issues wrapping my head around what these plugins are actually doing. The documentation isn't telling me very much about how to interpret that, unfortunately. :(
For instance, in my plugin, the user can type in 'pinfo explore'.  The only result my plugin returns for that is "Search for $$1".  Upon pressing enter, the plugin should run a query using the specified parameter.  I can't even figure out how to make my plugin accept a parameter, let alone trigger anything with it!  Any help, please?

12
Developer's Corner / Annoyance of Windows Start Menu
« on: December 27, 2008, 10:51 AM »
Overall, I have no real problem with the Windows XP Start Menu.  It's perfectly fine.  However, there is one thing about the start menu that seriously annoys me:  the fact that I can't scroll it with my mouse wheel.  I've been racking my brain for how to enable this with a simple AHK script, but I'm not having any luck.  The Windows messages that go flying around when I make the menu scroll don't tell me anything about what messages I should send to make it scroll up or down.  Help, please?

Jon

13
Developer's Corner / XULRunner question
« on: November 04, 2008, 01:31 PM »
After looking at the link I saw on XULRunner in the last newsletter, I decided to try it out and see what it was about.  I'm having issues running anything with it.  If I download an XULRunner package (.xulapp or .xpi extension), XULRunner should start that package with XULRunner.exe <packagename>.  All I ever get running this is "Error:  App:Name not specified in application.ini".  If I unzip the xulapp or xpi file (change the extension to .zip and extract) and then look in the application.ini file, I can see Name= defined under the [App] section.  If I then run XULRunner.exe application.ini, it works perfectly.  Any thoughts as to why XULRunner won't take a .xulapp or .xpi file? :(

14
I have Screenshot Captor and FARR installed on my computer here, and DCUpdater shows the current versions of those apps to be 2.42.01 and 2.30.01, respectively.  A manual version check doesn't update the list.  If I manually force an installation of the "currently detected version", DCUpdater does pull down the newest versions of both apps, but DCUpdater never shows the newer version as what's available for installation.

15
Living Room / Hey, here's a cool website... Dragon Cave
« on: September 30, 2008, 02:36 PM »
The Dragon Cave! Click here
Cute idea, but may just be an ad-revenue generator, considering the number of clicks that people may have to try and get.

edit by jgpaiva: edited the topic subject to something more specific

16
FARR Plugins and Aliases / Delicious plugin no longer working?
« on: July 14, 2008, 01:33 PM »
I just installed the latest FARR version (2.22.01), and now the Delicious plugin no longer works.  The aliases all match up, but the plugin never connects to delicious to pull down my bookmarks.  I have my correct username and password in the configuration.  What gives?

Jon

17
FARR Plugins and Aliases / FARR Plugin with fscript
« on: April 22, 2008, 01:46 PM »
I'm working on a farr plugin using the fscript javascript SDK.
There's a website that I use with one of my favorite forums.  I'd like to be able to duplicate that site's functionality with FARR.
The site takes as input a URL and several optional arguments.  It returns the URL as base64-encoded with a warning message of some sort based on the selected options.  It acts as a redirector to the site and displays a warning about content.
For instance, if I feed the site the URL "https://www.donationcoder.com" and ask it to display the warning "lots of cool software"... 8) :-*
What I get back is this URL that can redisplay the warning anytime...
http://uftoolbox.inf...ots+of+cool+software
I can assemble the URL easily enough, and I can get initial URL encoded with a library I found, but how would I accept the other arguments?  There are 9 all total.
If I use an alias like "makeredirect", the regex that I match to might look like this...
^makeredirect .* .* .* .* .* .* .* .* .*
And then the result would have to do something like "makeredirect $$1 $$2 $$3 $$4 $$5 $$6 $$7 $$8 $$9", where $$9 would preferably match to a quoted string of some kind.  How would I construct that in FARR using the Javascript SDK?

18
General Software Discussion / Organizational question
« on: February 15, 2008, 04:15 PM »
I would really like to be able to tag certain files that I have in Windows XP, mostly to make it easier to search for those files.  Does anyone know of any WinXP software that would let me do that?

Jon P.

Pages: [1]