Skip to content

Commit

Permalink
2011-02-10_03-35-42
Browse files Browse the repository at this point in the history
  • Loading branch information
camerb committed Feb 10, 2011
1 parent 0157da9 commit d481b21
Show file tree
Hide file tree
Showing 17 changed files with 227 additions and 12 deletions.
23 changes: 23 additions & 0 deletions DbicQueryTool.ahk
@@ -0,0 +1,23 @@
#include FcnLib.ahk
#include thirdParty/CmdRet.ahk

;a spiffy little DBIC query tool
;by camerb

filename =C:\code\epms\script\epms_workbench2.pl
filename_tpl=C:\code\epms\script\epms_workbench_tpl.pl

code := prompt("Input your DBIC query")
if NOT code
ExitApp

FileCopy(filename_tpl, filename, "overwrite")
;FileAppendLine("warn 'joe';", filename)
;FileAppendLine("Dwarn $schema->resultset('Survey')->search({ campaign_id => 11 })->count", filename)
FileAppendLine(code, filename)

;TODO maybe we could have this output to a csv file and then use openoffice to view it
; OR we could output to CSV and make an AHK CSV viewer

results := CmdRet_RunReturn("perl " . filename)
debug(results)
20 changes: 13 additions & 7 deletions DebugAgain.ahk
Expand Up @@ -16,6 +16,7 @@ Loop, read, DebuggerCommands.txt
;{{{ Set some variables depending upon what mode we are in (project, refresh server, live/not)
;find out if we are in the mode to refresh the server
refreshServerMode:=GetKeyState("ScrollLock", "T")=="D"
refreshServerMode:=true

;find out if we're in live site mode
FileRead, filecontents, C:\code\bench\fl_bench.json
Expand Down Expand Up @@ -189,17 +190,22 @@ Run, RefreshIfProblemLoadingPage.ahk
;{{{ Refresh if we're using firefox
if ForceWinFocusIfExist("Ellis Partners in Mystery Shopping: Customer Interface - Mozilla Firefox", "Exact")
{
;This section is for testing out EPMS Customer Interface (Survey Graphing)
Click(13,13)
if ClickIfImageSearch("images\firebug\phosphorusAddress.bmp", "Control") || ClickIfImageSearch("images\firebug\phosphorusAddressHighlighted.bmp", "Control")
;This section is for testing out EPMS Customer Interface (Initially for Survey Graphing / Reporting)
Sleep, 500
Click(50,13)
SysGet, MonitorCount, MonitorCount
if (MonitorCount = 1)
ClickIfImageSearch("images\firebug\reloadButton.bmp")
SleepSeconds(8)
if (MonitorCount = 2)
if ClickIfImageSearch("images\firebug\phosphorusAddress.bmp", "Control") || ClickIfImageSearch("images\firebug\phosphorusAddressHighlighted.bmp", "Control")
ClickIfImageSearch("images\firebug\reloadButton.bmp")
SleepSeconds(7)
Click(173, 352, "Control")
Sleep, 500
Sleep, 700
Click(173, 376, "Control")
Sleep, 500
Sleep, 700
Click(173, 385, "Control")
Sleep, 500
Sleep, 700
Click(260, 280, "Control")
ExitApp
}
Expand Down
3 changes: 3 additions & 0 deletions FcnLib.ahk
Expand Up @@ -1323,3 +1323,6 @@ getXmlElementContents(xmlPage, nameOfXmlElement)

;WRITEME make jira workmorrow post to dropbox public url, not an email


;WRITEME hotkey that moves windows to 10, 10 so that I can see them while VPNed (some are trapped on the other screen)

3 changes: 2 additions & 1 deletion ForceReloadAll.ahk
Expand Up @@ -34,4 +34,5 @@ while true
;}

;debug("about to run main ahk files again")
RunAhk("StartIdleAhks.ahk")
;RunAhk("""C:\My Dropbox\AHKs\StartIdleAhks.ahk""", )
Run, C:\My Dropbox\AHKs\StartIdleAhks.ahk, C:\My Dropbox\AHKs
Binary file modified ForceReloadAll.exe
Binary file not shown.
3 changes: 2 additions & 1 deletion MorningStatus-GatherData.ahk
Expand Up @@ -15,7 +15,8 @@ if (A_ComputerName = "PHOSPHORUS")
message=Dropbox: %dropboxSize% of 3 GB used
FileAppendLine(message, filename)

message=The screen width on Phos is %A_ScreenWidth%. If less than 2000, the compy is probably locked from a recent VPN access.
SysGet, MonitorCount, MonitorCount
message=The monitor count on Phos is %MonitorCount%
FileAppendLine(message, filename)
}

2 changes: 1 addition & 1 deletion SelfDestruct.ahk
@@ -1,2 +1,2 @@
Sleep 100
FileDelete, C:\My Dropbox\AHKs\Scheduled-20110203073629.ahk
FileDelete, C:\My Dropbox\AHKs\Scheduled-20110209164803.ahk
1 change: 1 addition & 0 deletions StartIdleAhks.ahk
@@ -1,4 +1,5 @@
#include FcnLib.ahk
;msgbox, %A_WorkingDir%

;if it isn't a VM, we'll run these ahks
; but wait, do we really want to run these on Toshimi?
Expand Down
2 changes: 1 addition & 1 deletion ahkvariables.ahk
@@ -1 +1 @@
Run, http://www.autohotkey.com/docs/Variables.htm
Run, http://www.autohotkey.com/docs/Variables.htm#BuiltIn
3 changes: 2 additions & 1 deletion temporary9.ahk
@@ -1,3 +1,4 @@
#include FcnLib.ahk


Run, thirdParty/SnapDB/SnapDB.exe "C:\import_files\survey\Concord Resident Data_2011-02.txt"
Run, thirdParty/SnapDB/SnapDB.exe "C:\import_files\survey\Concord Resident Data_2011-02.txt"
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions thirdParty/SnapDB/SnapDB.dcupdate
@@ -0,0 +1,24 @@
<?xml version="1.0" ?>

<Local>

<!-- basic info to display in updater-->
<Label>Snap DB</Label>
<IconFile>SnapDB.exe</IconFile>


<!-- version info of locally installed current version, and simple remote version file -->
<Version>1.1.8.1</Version>
<VersionFileRemote>http://skwire.dcmembers.com/apps/snap_db/versioninfo.xml</VersionFileRemote>


<!-- where to get more info about the app remotely, only queried once an update is discovered -->
<InfoFileRemote></InfoFileRemote>
<WebPage>http://skwire.dcmembers.com/wb/pages/software/snap-db.php</WebPage>

<!-- ok how to conduct updates; could be: "Run" (download and run program), or "Visit" (visit website), or "Unzip" (download zip and unpack over files) -->
<UpdateMethod>unzip</UpdateMethod>
<CloseForUpdate>SnapDB.exe</CloseForUpdate>
<UpdateFile>http://skwire.dcmembers.com/apps/snap_db/SnapDB.zip</UpdateFile>

</Local>
Binary file added thirdParty/SnapDB/SnapDB.exe
Binary file not shown.
Binary file added thirdParty/SnapDB/SnapDB_ANSI.exe
Binary file not shown.
155 changes: 155 additions & 0 deletions thirdParty/SnapDB/changelog.txt
@@ -0,0 +1,155 @@
+ added
* changed
- deleted
! bug fixed

v1.1.8 - 2011-02-09
+ Passing in a CSV or TSV/TXT file via the commandline is now supported.
(Thanks, camerb)

v1.1.7 - 2011-02-09
! Fixed a small graphical glitch with the enable filter checkbox.

v1.1.6 - 2011-02-04
* Changed how the clipboard-copy delimiter information is entered. Please
use the help button to see how the tokens work. If you had spaces or tabs
in your string, you will have to change it.

v1.1.5 - 2011-02-02
+ Snap DB is now Unicode capable. Notes:
# This version is supported by WinXP and up. Older operating systems
will need to use the SnapDB_ANSI.exe file instead.
# Database files are read and written in UTF-8 format.
+ Added Ctrl-Shift-O hotkey for opening the Options dialog.
* Changed the clipboard-copy delimiter to allow more than just one
character. (Thanks, Winkie)
! Fixed GUI glitches with Add/Update/Insert and Options dialogs. (Thanks,
Winkie)

v1.1.4 - 2011-02-01
* Improved the matching logic when using the 'Run' buttons. (Thanks,
Winkie)

v1.1.3 - 2011-02-01
+ Added 'Run' and 'Clipboard' buttons to the Add/Update/Insert dialog. The
'Run' feature will attempt to execute data that meet the following
criteria:
# A file or folder e.g.: c:\path\to\my.exe, c:\path\to\image.png
# A URI/URL with "://" in it e.g. http://www.site.com
# 'mailto:' links e.g. mailto:skwire@dcmembers.com
+ Added row-copying capabilities. You can set a custom delimiter to use
under Options. There are three ways to invoke this feature:
# Edit menu.
# Ctrl-C hotkey.
# Toolbar button.
+ Added Ctrl-V hotkey to paste in a tab-delimited block. This will allow
you to copy rows with Ctrl-C and paste them in directly so long as you
have 'Tab' set for the delimiter to use when copying rows (under Options).
+ Added 'Duplicate record' toolbar button. (Thanks, Winkie)
+ Added "Sum columns" feature and toolbar button. This feature will attempt
to sum any columns containing numbers. It will ADD two extra
lines/records at the end of the list with the totals. YOU are
responsilble for deleting these lines or keeping them by saving. If
present, these new lines/records are considered in the next invocation of
the 'Sum columns' feature. In other words, Snap DB has no idea if those
records are totals or regular data. (Thanks, Beth UK)
* Add/Update/Insert fields will now appear in the same order as the columns.
(Thanks, Winkie)
* Changed 'Options' toolbar icon.
! Duplicating a record now sets modified state to true.
! If you closed out of an Update window, you could no longer insert records.
! Stale data was kept after closing out of an Add/Update/Insert window.
(Thanks, Winkie)
! Filter drop-down list no longer resets when updating records, only when
adding or deleting a column. (Thanks, alexsan01)

v1.1.2 - 2011-01-28
+ Column orders are now saved per database.
+ "Convert row data to header names" added to the Edit menu. This is useful
after importing a CSV file.
+ Added custom CSV delimiter option under the Options dialog. (Thanks,
DeVamp)
+ Added "Import" toolbar button.
+ Added "Options" toolbar button.
+ CSV exports should be more adherent to the CSV standard with regards to
double-quotes and commas within the data bits.
+ The column order for CSV exports didn't match up with the listview column
order. (Thanks, bob99)
+ Closing and saving a Snap DB database while in filter mode, and with a
modified database, would result in Snap DB erroneously saving the filtered
data view instead of the full, changed database. (Thanks, TalksToPCs)

v1.1.1 - 2011-01-14
+ Added an "Edit record" menu item. Also, the F2 hotkey will invoke this.
(Thanks, Nikita)
+ Added a "Duplicate record" menu item. Also, the F5 hotkey will invoke
this. (Thanks, TalksToPCs)

v1.0.9 - 2011-01-12
+ Added "Append column" toolbar button.
* Due to some screwy listview bugs, I changed the "Insert column
before/after" menu items to a single "Append column" item. This will add
a column to the end of your current columns. Once added, simply drag the
column to the position you want.

v1.0.8 - 2011-01-12
+ Dropping CSV & TSV/TXT files on the list now works. (Thanks, Stoic Joker)
+ Double-clicking a "non-row" area in the listview will trigger the "Add
Record" dialog. This is the area below the last record in the list.
(Thanks, Beth UK)
+ Added a "Sum column" option to the listview header menu. This will
attempt to sum any numbers found in the column, display the total and
offer to copy the total to the user's clipboard. (Thanks, Beth UK)
* Improved the CSV/TSV/TXT import to automatically add new columns if
needed. This applies to the pasting in of tab-delimited data as well.

v1.0.7 - 2011-01-12
+ Made the add/update/insert button default when adding a record so you can
press Enter instead of having to click it. (Thanks, Nikita)

v1.0.6 - 2011-01-11
+ The listview font face, style and color are now configurable under the
'View > Options' dialog.
+ Made the "Load last database" feature an option under View > Options.
+ Option to keep a .bak backup after saving a database. (Thanks, mouser)

v1.0.5 - 2011-01-10
* Made Snap DB's save routine more robust and fault-tolerant. (Thanks,
mouser)
* You can now pass .snp files to the SnapDB.exe and it will load them.
* Snap DB now allows multiple instances of the viewer to run.
+ If the Last_File value is invalid, SnapDB will still automatically load
the first .snp file found in the the SnapDB.exe folder. (Thanks
alexsan01)

v1.0.4 - 2011-01-10
+ Added an extra choice in the Filter dropdown called "Any column." This
will allow you filter using a string that matches any column.
+ Added ability to save chosen filter per-database. This means, to make use
of this feature, you will need to set the filter and then save the
database file on each database you wish to use this on. (Thanks,
alexsan01)
+ Added ctrl-f hotkey to toggle Filter mode. (Thanks, mouser)
+ Added View > Filter mode menu option.

v1.0.3 - 2011-01-07
+ Added tab-delimited text file import.
+ Added CSV file import.
+ Added ability to paste in tab-delimited data directly from the "Edit"
menu.
! Last saved file didn't work from the "Recent" menu.

v1.0.2 - 2010-12-28
+ Last loaded database is automatically loaded after application startup.
+ Snap DB will automatically load an .snp file if both of the following are
true:
1) No config.ini file is present.
2) There is a .snp file in the same folder as the SnapDB.exe file.
+ This allows you to bundle the SnapDB.exe file and a .snp database file
together for easy viewing. (Thanks, mouser)

v1.0.1 - 2010-12-28
! Fixed toolbar glyph issue under Windows 7. (Thanks, mouser)

v1.0.0 - 2010-12-26
+ First release.
Binary file added thirdParty/SnapDB/config.ini
Binary file not shown.

0 comments on commit d481b21

Please sign in to comment.