topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Friday November 21, 2025, 9:06 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

Recent Posts

Pages: prev1 ... 38 39 40 41 42 [43] 44 45 46 47 48 ... 113next
1051
Living Room / Re: Gadget WEEKENDS
« Last post by ewemoa on December 15, 2012, 09:58 PM »
Anti-slip material:

antislipmaterial.jpg

The blue material in the image has been much handier than I expected.

Use it to open jars, stabilize tablet / pc stands, support make-shift arrangements for standing tablets, etc.

IIRC, obtained some at a Daiso store.
1052
N.A.N.Y. 2013 / Re: N.A.N.Y 2013 Submission - CommandPromptHere for FARR
« Last post by ewemoa on December 12, 2012, 07:45 AM »
Added support for msysGit's Bash.

See the first post for a link to an archive.

To install:

1. Unzip the archive's content (2 files) to the plugin's lib subfolder.

2. Create an appropriate FARR User Variable like:


[CommandPromptHere]
msysGit = C:\apps\msysgit

Note that the path is to where msysGit is installed -- not the path of Bash.

3. Restart FARR (or use either of the rplugins or goreload FARR commands).


Update: Comes bundled now.
1053
N.A.N.Y. 2013 / Re: N.A.N.Y 2013 Submission - CommandPromptHere for FARR
« Last post by ewemoa on December 12, 2012, 02:02 AM »
New version uploaded as the only current release -- initial post updated to reflect changes.

In addition to changes mentioned before, there is now support for Cygwin's Zsh (if installed) and NYAOS3.
1054
Official Announcements / Re: SSL Certificate Temporarily Expired | Fix In Progress.
« Last post by ewemoa on December 11, 2012, 06:22 PM »
Seems like things are working better now.

Does that seem like a reasonable interpretation?

If so, thanks -- if not, good luck with further efforts  ;D
1055
N.A.N.Y. 2013 / Re: N.A.N.Y 2013 Submission - CommandPromptHere for FARR
« Last post by ewemoa on December 11, 2012, 12:34 AM »
In the pipeline:

  • PowerShell support
  • Option to display menu items in submenu if there are two or more menu items
  • Move the non-cmd.exe code to external files

I think the last change should make it easier (and safer) to support additional command prompts.

To add support for another command prompt, one would create an appropriate .js file in the lib subdirectory.  The .js files in lib should get loaded when the plugin is initialized.  The last thing each .js file needs to do is evaluate to an appropriate function value.  The function should take one argument (representing the full-path of the currently selected item in FARR) and build an appropriate menu item string.

Update: What is below is obsolete -- the current mechanism is a bit different.  See source or please ask for details :)

Below is what I currently have for lib\PowerShell.js:

Code: Javascript [Select]
  1. (function () {
  2.   return function (path) {
  3.     var launchstr, menuitemstr,
  4.         cpname, psmodulepath, psexepath;
  5.     cpname = "PowerShell";
  6.     //
  7.     menuitemstr = "";
  8.     psmodulepath = FARR.getStrValue("resolve:%PSModulePath%");
  9.     if (psmodulepath !== "") {
  10.       psexepath = psmodulepath.replace("Modules\\", "powershell.exe");
  11.       if (!pu.fso.FileExists(psexepath)) {
  12.         return "";
  13.       }
  14.       /*
  15.          thanks to:
  16.            http://brianreiter.org/2010/08/11/ \
  17.              command-prompt-and-powershell-here-with-console-exe/
  18.        */
  19.       launchstr = psexepath +
  20.                   " -NoExit" +
  21.                   " -Command Set-Location" +
  22.                   " -LiteralPath " +
  23.                   "'" + path + "\\" + "'"; // extra backslash for drive
  24.       menuitemstr =
  25.         buildMenuItemString({caption: prepareCaptionText(cpname),
  26.                              hint: prepareHintText(cpname, path),
  27.                              icon: psexepath,
  28.                              launch: launchstr});
  29.     }
  30.     return menuitemstr;
  31.   };
  32. } ());
1056
N.A.N.Y. 2013 / Re: N.A.N.Y 2013 Submission - CommandPromptHere for FARR
« Last post by ewemoa on December 10, 2012, 09:26 PM »
Thanks for the kind words, testing, and reporting back :)
1057
N.A.N.Y. 2013 / Re: N.A.N.Y 2013 Submission - CommandPromptHere for FARR
« Last post by ewemoa on December 10, 2012, 04:29 AM »
Uploaded a new experimental version (see first post for link).

This version has support for:

  • cmd.exe
  • Cygwin's bash
  • ConEmu
  • TCC (or TCC/LE)

VariousPromptHeres.png

     To enable support for ConEmu, specify a path to ConEmu.exe (or
     ConEmu64.exe if appropriate) via FARR's User Variable options.
     The following is a typical examples:

       [CommandPromptHere]
       ConEmuExe = C:\apps\ConEmu\ConEmu.exe

     To enable support for TCC (or TCC/LE), specify a path to tcc.exe via
     FARR's User Variable options. The following is a typical example:

       [CommandPromptHere]
       TCCExe = C:\apps\TCC\tcc.exe
-from README.txt

Thanks to cranioscopical and mouser for discussion and testing :)
1058
General Software Discussion / Re: Keyboard shortcut of the day
« Last post by ewemoa on December 10, 2012, 12:25 AM »
https://wiki.ubuntu....XorgCtrlAltBackspace

So it looks like there's a DontZap xorg.conf option...thanks  :up:

A good shortcut for Linux is Ctrl-Alt-Fn where n=1-6.
-Switches to one of six terminal interfaces.

Definitely found these helpful (actually depending on one's setup, I believe n can have a different value :) ).

I've found Shift+PageUp / Shift+PageDown (for the scrollback buffer) helpful sometimes -- though often enough, the lines I'm interested in are gone for good...some quick searching suggests that there are tweaks available so may be I'll try them some time.

Never had to use the magic sysrq key and I hope I never will. :P

I hope so too -- but if you do get to a point of needing it, you might find the sufficient pausing between letters to be of some help.
1059
General Software Discussion / Re: Keyboard shortcut of the day
« Last post by ewemoa on December 09, 2012, 08:35 PM »
In some applications, Shift+Del removes the selected entry from a combo box -- nice for cleaning things up where it works.

Speaking of Shift, have found the Shift+Arrow sequences for extending / shrinking the current selection helpful when the initial attempt at selecting didn't quite satisfy.

1060
Living Room / Re: Gadget WEEKENDS
« Last post by ewemoa on December 09, 2012, 07:19 PM »
Perhaps some may not consider the following a gadget...

vertical-brush.jpg

Very handy for cleaning certain hard-to-reach areas.

This particular one was obtained at a Daiso store.
1061
N.A.N.Y. 2013 / Re: N.A.N.Y 2013 Submission - CommandPromptHere for FARR
« Last post by ewemoa on December 08, 2012, 10:18 PM »
I've uploaded an experimental version (see first post for link to archive) that contains support for Cygwin's bash:

CygwinPromptHereToo.png

If Cygwin is installed in its default location of C:\cygwin, the plugin should detect Cygwin and the "Cygwin Prompt Here" should work without configuration.

If Cygwin is installed in a different location, this can be specified to the plugin by setting an appropriate FARR User Variable.

To specify a non-default installation location for Cygwin, in FARR's User Variable options, ensure there is something analogous to:

  [CommandPromptHere]
  Cygwin = C:\apps\cygwin

Where the value represents the directory Cygwin is installed in.

Relative paths ought to work as well.  The following worked in one environment:

  [CommandPromptHere]
  Cygwin = ..\cygwin

Note that the path is relative to the directory that the FindAndRunRobot.exe executable lives in.


Update: Autodetection is not done any more.  See the README.txt for updated configuration instructions.
1062
General Software Discussion / Re: Keyboard shortcut of the day
« Last post by ewemoa on December 08, 2012, 09:07 PM »
Windows+D or Windows+M turns all the open windows into icons in the taskbar.

Convenient!

Of the two, I prefer Windows+D (Desktop?) because if entered again the windows are restored to their previous states.  In contrast, Windows+M seems to be one-way.
1063
General Software Discussion / Re: Keyboard shortcut of the day
« Last post by ewemoa on December 08, 2012, 06:23 PM »
On Linux, Ctrl-Alt-Backspace would kill X and drop you to terminal mode.  Real handy when it hung or something graphical was eating memory and the mouse pointer went AWOL.

Indeed.

Ubuntu did away with that when they first rolled out "bulletproof X" so it just restarted X.  Not the same function, but still handy especially if you were using a session manager, because it forced a re-login.  
Now it does nothing, even in Debian, and I haven't been inspired enough to go digging for reasons.  :(

Had missed these changes...

I have found the following helpful with a non-responsive GNU/Linux (or even non-GNU?) system:

Hold down the Alt and SysRq (Print Screen) keys.
While holding those down, type the following keys in order, several seconds apart: REISUB
Computer should reboot.

Text from Wikipedia Magic SysRq key article.
1064
General Software Discussion / Re: Keyboard shortcut of the day
« Last post by ewemoa on December 08, 2012, 05:01 AM »
Don't forget with tab you can also use wildcards, eg. s* <tab> to scroll through items starting with s.

F7 to bring up your command history.

Wow -- those are nice too!  Thanks  :up:
1065
N.A.N.Y. 2013 / Re: N.A.N.Y 2013 Submission - CommandPromptHere for FARR
« Last post by ewemoa on December 08, 2012, 04:47 AM »
There's what appears to be support for a Cygwin bash prompt in the local version now :)

Willing to investigate other analogous things.
1066
N.A.N.Y. 2013 / Re: N.A.N.Y 2013 Submission - CommandPromptHere for FARR
« Last post by ewemoa on December 08, 2012, 02:55 AM »
Thanks for testing!
1067
N.A.N.Y. 2013 / Re: N.A.N.Y 2013 Submission - CommandPromptHere for FARR
« Last post by ewemoa on December 07, 2012, 05:45 PM »
Thanks for the testing :)
1068
N.A.N.Y. 2013 / N.A.N.Y 2013 Submission - CommandPromptHere for FARR
« Last post by ewemoa on December 07, 2012, 05:45 AM »
A FARR plugin to provide "Command Prompt Here"-like behavior for FARR file / folder results.



Screenshot

cph-no-submenu.png

cph-with-statusbar-icon-menu.png



Description

Command prompt access from FARR results -- for files, the containing directory is used as the working directory.

A variety of "command prompts" are supported (though see README.txt for configuration info):

  • cmd.exe
  • ConEmu
  • Cygwin Bash
  • Cygwin Zsh
  • MSYS Bash
  • msysGit Bash
  • NYAOS3
  • PowerShell
  • TCC (or TCC/LE)



Installation / Uninstallation / Requirements

It's a FARR plugin so installation and uninstallation are as usual.  Tested under Windows 7 64-bit with FARR 2.206.01.  Brief testing done on Windows XP Pro SP3.  May work for other versions of Windows.



Upgrading

If upgrading from an earlier version (0.0.0.2 or below), it may be easiest to start over.  The settings are likely compatible, but the arrangement of files in the plugin's directory differ.  I recommend copying the old plugin directory somewhere safe first before trying a newer version.



Downloads

Plugin

md5:526e1c4312173d8bc37cf992464d774c
sha1:6d1b55ab42a136e3a7179db2c217c9234066118a



README.txt
CommandPromptHere

Purpose:

  Convenient access to a command prompt with the current directory set
  to match a FARR result:

    - for a folder result, the current directory corresponds to the
      folder

    - for a file result, the current directory corresponds to the
      containing folder

Requirements:

  Tested with:

    - Windows 7 - may work for other versions of Windows (some XP
      testing has been done too)

    - FindAndRunRobot 2.206.01 - some portion may not work with
      earlier versions of FARR

Basic Usage:

  1. Bring up a context-sensitive menu for a file or folder in FARR's
     result view.

  2. Choose "Command Prompt Here".

  A command prompt window with an appropriate working directory should
  appear.

Other Command Prompts:

  It's possible to configure the plugin to work with other "command
  prompts" (see the Notes section for details).

  Once configured appropriately:

  1. Bring up a context-sensitive menu for a file or folder in FARR's
     result view.

  2. With appropriate configuration, at least one of the following
     should appear.  Choose one.

       - ConEmu Prompt Here
       - Cygwin Bash Prompt Here
       - Cygwin Zsh Prompt Here
       - MSYS Bash Prompt Here
       - msysGit Bash Prompt Here
       - NYAOS3 Prompt Here
       - PowerShell Prompt Here
       - TCC Prompt Here

  A command prompt window of the corresponding program with an
  appropriate working directory should appear.

Statusbar Icon Menu:

  The plugin provides a statusbar icon in FARR's main window.  Clicking
  this should bring up a menu that may contain some of the following
  items:

    Command Prompt at...
    Set Preferred to...
    Configure
    Help

  "Command Prompt at..." allows one to open a command prompt at
  a directory which the plugin previously worked with.  (This menu
  item may not appear if there are no such directories.)

  "Set Preferred to..." allows one to choose the specific command
  prompt type (e.g. ConEmu) to use for "Command Prompt at...".
  (This menu item may not appear if there is only one command prompt
  available for use.)

  "Configure" displays a list of FARR results, each of which may be
  invoked to configure some functionality of the plugin.

  "Help" displays this file.

Notes:

  1. To bring up a context-sensitive menu for a FARR result, do one of
     the following:

      - Right-click on the result

      - After selecting the result, type one of the following:

          - Control+R
          - Shift+F10
          - Menu / Application key

  2. To enable support for a particular command prompt:

     Method 1: Via a FARR Result

       - Locate the executable using FARR (e.g. c:\cygwin\bin\bash.exe),

       - Bring up the context-sensitive menu via the result
         corresponding to the executable and choose the appropriate
         menu item beginning with "Set as" (e.g. Set as Cygwin Bash).

     Method 2: Via the Plugin's Statusbar Icon

       There should be a statusbar icon for the plugin on the statusbar
       of FARR's main window.

       - Click the plugin's statusbar icon.

       A menu should appear.

       - Choose "Configure".

       A list of FARR results should appear.  Each one corresponds to
       configuring the plugin in some way.  An example result might be
       labeled: "Configure msysGit Bash Path".

       - Select an appropriate result and launch it.

       FARR should switch to a web view with a form for appropriately
       configuring the selected choice.  An example label might be:
       "CommandPromptHere.msysGitBashExe".  An appropriate value might
       be: c:\apps\msysgit\bin\bash.exe

       - Enter an appropriate value in the form field and click the
         button labeled "update".

       - Dismiss FARR or go back to using it as usual.

     Method 3: Via FARR User Variables

     Alternatively, manually create an appropriate FARR User Variable
     with an appropriate value.  For example, for Cygwin Bash, one
     configuration might be:

       [CommandPromptHere]
       CygwinBashExe = c:\cygwin\bin\bash.exe

     The following lists names of FARR User Variables for specifying
     "command prompt" executables:

       ConEmuExe
       CygwinBashExe
       CygwinZshExe
       MSYSBashExe
       msysGitBashExe
       NYAOS3Exe
       PowerShellExe
       TCCExe

  3. It's possible to configure the plugin to use a submenu to display
     menu items for each command prompt if there are two or more
     usable command prompts.  The following is an example
     configuration:

       [CommandPromptHere]
       UseSubmenu = 1

     Note: if the submenu mode is used, the names of some of the menu
     items may differ from the earlier descriptions.

  4. Adding support for other command prompts may be possible.

     Apart from a few exceptions, support for each command prompt is
     provided via a corresponding .js file in the plugins subdirectory
     of the CommandPromptHere plugin directory and an appropriate
     addition to the CommandPromptHere.alias file.

Credits:

  Find And Run Robot

    mouser

  FScript

    ecaradec

  Discussion and Testing

    cranioscopical
    mouser
    oumu

  Icons

    https://www.fatcow.com/free-icons

1069
General Software Discussion / Re: Keyboard shortcut of the day
« Last post by ewemoa on December 06, 2012, 11:07 PM »
I wonder if I can make an Autohotkey macro to do it. Then I wouldn't have to remember it with my brain.

How's this?  Control+Alt+Shift+S to invoke...

Code: Autohotkey [Select]
  1.  
  2. ^!+s::
  3. {
  4.   Send !{Space}
  5.   Send M
  6.   Send {Up}
  7.   MouseMove, 1, 1
  8. }
1070
General Software Discussion / Re: Keyboard shortcut of the day
« Last post by ewemoa on December 06, 2012, 08:50 PM »
Tab at a command prompt to scroll through the items in the current directory.

Nice!
1071
Living Room / Re: Gadget WEEKENDS
« Last post by ewemoa on December 02, 2012, 05:23 AM »
Got an object that allegedly helps to reduce the chances of dropping a gadget:

br.jpg

So far it seems to work pretty well -- at least on a mobile phone.

It's supposed to be reattachable -- and this has worked here at least once :)
1072
General Software Discussion / Re: Separating features into Basic and Advanced
« Last post by ewemoa on November 30, 2012, 03:37 AM »
I think limiting the number of options makes and application more accessible and more attractive especially to new users of your SW.

I am reminded of The Magical Number Seven, Plus or Minus Two.
1073
General Software Discussion / Re: Keyboard shortcut of the day
« Last post by ewemoa on November 29, 2012, 08:06 AM »
Just found that the Paste, Copy, and Cut ones appear to be via:

  https://en.wikipedia.org/wiki/IBM_Common_User_Access#Description

May be there are some other things worth knowing there too...
1074
Living Room / Re: The Free Videos Thread
« Last post by ewemoa on November 28, 2012, 01:07 AM »
Here's a very fun YouTube channel:

http://www.youtube.com/user/Vihart

Indeed!

Had fun watching Doodling in Math Class: Connecting Dots
1075
Living Room / Re: Oh Canada, your flu deaths are a farce
« Last post by ewemoa on November 27, 2012, 07:47 PM »
It seems we're lucky that the following sort of situation is not extremely common (yet?):

  https://en.wikipedia.org/wiki/Griffith%27s_experiment

do you mean along the lines of -
a vaccination (non-virulent) coming in contact with a mild virus producing a killer flu?
that would be hard ...

What I was referring to was:

In this experiment, bacteria from the III-S strain were killed by heat, and their remains were added to II-R strain bacteria. While neither alone harmed the mice, the combination was able to kill its host.
Pages: prev1 ... 38 39 40 41 42 [43] 44 45 46 47 48 ... 113next