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, 7:47 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 ... 98 99 100 101 102 [103] 104 105 106 107 108 ... 113next
2551
Living Room / Re: Jan 13, 2009 - Important Windows Update Patch - Apply ASAP
« Last post by ewemoa on January 14, 2009, 08:11 PM »
I have applied it on a few machines (virtual included) without problems too -- thanks mouser for braving it first ;)
2552
FARR Plugins and Aliases / Re: FARR plugin: Akete
« Last post by ewemoa on January 14, 2009, 07:59 AM »
Thank you phitsc, for also taking the time and making the effort to read the draft and comment on it :)

The idea you suggested sounds interesting.  As you pointed out, there does seem to be a potential issue with keyword collision and I am mulling over what might be done about that.  Perhaps allowing a configurable prefix (which defaults to something) for the keyword and reusing the definitions from file extensions as you suggested might work out.

My impression at the moment is that having a particular prefix helps in picking out an appropriate keyword from the query.  Supposing that there is no particular prefix string for the keywords this plugin should handle, if a query contains multiple keywords, I am not sure how to decide which keyword (possibly multiple?) should be selected by the plugin.

Regarding a default keyword prefix, "open" or "with" seem like possibilities to me.

What do folks think?
2553
Developer's Corner / Re: Excellent Javascript Reference
« Last post by ewemoa on January 14, 2009, 07:00 AM »
Thanks a lot for your comments about "Eloquent JavaScript".  I've made it through chapter 2 and my feeling so far is that the author seems to understand JavaScript pretty well and seems technically competent, but I am left wondering whether this is a good reference for my purposes. 

So far I feel like he is covering things too much (even things perhaps it might be better not to bother with -- e.g. the use of == <- why not always just use === ?).  May be I am saying this because I have become brainwashed by Crockford's line of using just particular portions of JavaScript :)  However, I'm thinking of continuing for a while longer before deciding whether to stop.

The Jon Resig book you mentioned was one I was curious about -- but I am actually more curious about his upcoming book "Secrets of the JavaScript Ninja". 

Incidentally, I am in the middle of watching a talk by him titled "Advancing JavaScript with Libraries" (MDC link, Ajaxian link).  Are you familiar with this one?
2554
FARR Plugins and Aliases / Re: FARR plugin: Akete
« Last post by ewemoa on January 14, 2009, 06:38 AM »
Thanks for taking the time and making the effort to read the draft -- I really appreciate it!

As to the keywords that begin with "openwith", I chose this based on phitsc's example and am not particularly attached to it -- except that if it's changed, I guess trying to maintain backward compatibility might be something to consider.

Oh no, don't say we should be able to configure what the keyword starts with via FARR User Variables! ;)
2555
FARR Plugins and Aliases / Re: FARR plugin: Akete
« Last post by ewemoa on January 13, 2009, 09:34 AM »
I am drafting some documentation for a newer version and thinking that it may act as a specification.  This post should contain my first attempt.  Feedback is welcome ;)

Draft
  Introduction
  ------------

  The main point of this plugin is to be able to customize how files
  with particular file extensions are opened.  To achieve this end,
  the user is expected to provide a configuration which specifies
  associations between file extensions and corresponding methods of
  opening files with those extensions.

  The plugin provides additional functionality including support for:

    * multiple possible methods of opening files via context menu items

    * default context menu items (i.e. always appear in context menu)

    * overriding of method to open files via an appropriate keyword

  Configuration
  -------------

  The Akete plugin may be configured by using FARR User Variables.

  FARR User Variables are accessible via "Program Options" ->
  "Lists" -> "User Variables" in FARR's Options dialog box.  The section
  for Akete (may not exist unless manually created) begins with the
  string [Akete].  (For more information regarding FARR User Variables,
  in FARR's .chm Help File, see the section titled "User Variables -
  Advanced Use" under "Advanced Use".  The rest of the text assumes
  familiarity with the FARR documentation content.)

  Configuration details will be demonstrated through a series of examples.
  After each example a general rule will be stated possibly followed by
  some related notes.

  Example 1

  A configuration to get files with the extension 'txt' to be opened using
  Wordpad might be:

    [Akete]
    txt=%PROGRAMFILES%\Windows NT\Accessories\wordpad.exe

  Rule 1: <file-extension>=<path-to-executable>

  Notes: The path to the executable may contain FARR Virtual Folder
  names (see the FARR help file).  Also, file extensions do NOT contain
  the period character.

  Example 2

  A configuration to get files with the extension 'txt' to be opened by
  (possibly additional instances of) Notepad++ might be:

    [Akete]
    txt=%PROGRAMFILES%\Notepad++\Notepad++ -multiInst "$$1"

  Rule 2: <file-extension>=<launch-template-string>

  Notes: The launch template string allows specification of command line
  arguments.  The plugin replaces the string $$1 by the path to the file to
  be opened.  Do NOT use the vertical bar character in a launch template
  string -- the reason for this should become clear below.

  Example 3

  A configuration to get files with the extension 'doc' to be opened using
  whatever is configured for 'txt' might be:

    [Akete]
    txt=%PROGRAMFILES%\Windows NT\Accessories\wordpad.exe
    doc=txt

  Rule 3: <file-extension>=<file-extension>

  Notes: For simplicity of configuration and implementation, if a file
  extension appears on the right hand side of an equals sign, it may not
  appear on the left hand side of the equals sign.  Another way to phrase
  this is that only one level of indirection is supported.

  Example 4

  A configuration to get the context menu of a file with extension 'txt'
  to show context menu items for opening via Wordpad and Notepad++ might be:

    [Akete]
    txt=%PROGRAMFILES%\Windows NT\Accessories\wordpad.exe|%PROGRAMFILES%\Notepad++\Notepad++ -multiInst "$$1"

  Rule 4: <file-extension>=<vertical-bar-separated-list-of-paths-or-templates>

  Notes: The items in the list may be paths or launch string templates. 
  The vertical bar character is reserved for separating the items so it may
  not be used in a path (doesn't tend to work in Windows anyway?) or a
  launch template string.  Opening of files via FARR's text edit field will
  be handled using the first item in the list.

  A configuration to get the context menu of a file with extension 'txt'
  to show context menu items for opening via Wordpad and Notepad, but leaves
  handling of opening of such files untouched if done via FARR's text edit
  field might be:

    [Akete]
    txt=|%PROGRAMFILES%\Windows NT\Accessories\wordpad.exe|C:\Windows\System32\notepad.exe

  Notes: One can think of the list as having an empty first item.

  Example 5

  A configuration to get the context menu of any file to show context menu
  items for opening via Wordpad, Notepad, and Emacs might be:

    [Akete]
    *=%PROGRAMFILES%\Windows NT\Accessories\wordpad.exe|C:\Windows\System32\notepad.exe|%PROGRAMFILES%\Emacs\bin\runemacs.exe

  Rule 5: *=<vertical-bar-separated-list-of-paths-or-templates>

  Notes: One can think of the asterisk character as similar to a wildcard
  pattern character.

  Example 6

  A configuration to get the plugin to recognize a keyword to override
  opening behavior for opening a particular file via FARR's text edit
  field might be:

    [Akete]
    openwithnpp=%PROGRAMFILES%\Notepad++\Notepad++.exe

  Subsequently, specifying a file along with the 'openwithnpp' keyword in
  FARR's text edit field (and "launching" for example, by pressing the
  Enter key) should lead to an attempt to open the specified file using
  Notepad++.exe.  The contents of the text edit field might look like:

   C:\boot.ini +openwithnpp

  Rule 6: openwith<string>=<path-or-launch-template-string>

  In summary, there are three types of user variable names (strings to the
  left of the equals sign) that may be specified:

    1) file extension
    2) string of the form openwith<some-string>
    3) *

  and two types of user variable values (strings to the right of the equals
  sign) that may be specified:

    1) list of paths and/or launch templates
    2) file extension



Edit: Updated draft
2556
Developer's Corner / Re: "Code Reading" by Diomidis Spinellis
« Last post by ewemoa on January 12, 2009, 08:02 PM »
Thanks for the comments :)  Happy to see mixed reviews at Amazon -- if I decide to go through w/ it, it may be interesting to compare impressions.

I noticed that pieces of the book and a related article were available online:

  Excerpt of Chapter 1 (html)
  Chapter 2 (pdf)
  Article (html) (pdf)

I found these via the book's home page.
2557
Living Room / Re: Show us the View Outside Your Window
« Last post by ewemoa on January 12, 2009, 12:20 AM »
Looking out a nearby window today, I saw something like:

WindowSmaller2.png
2558
Developer's Corner / "Code Reading" by Diomidis Spinellis
« Last post by ewemoa on January 11, 2009, 02:47 AM »
Has anyone read "Code Reading" by Diomidis Spinellis [1]?

I am considering whether to obtain this book and am interested in DC folks' opinions regarding it.

If there are any other relevant resources concerning the improvement of one's ability to go from "no understanding" to "good understanding" of a piece of software that has at least source code available [2], I would be happy to hear about these too.

Any feedback and comments welcome :)


[1] The author seems to have written Chapter 17 of "Beautiful Code" according to:

https://www.donation...87.msg71057#msg71057

[2] Of course we can learn from documentation, diagrams, and other things too, but I'd like to consider the situation where I at least have access to some (preferably all) source code.
2559
Living Room / Re: Tech News Weekly: Edition 02-09
« Last post by ewemoa on January 11, 2009, 02:35 AM »
2560
General Software Discussion / Re: HashTab - Great little tool ...
« Last post by ewemoa on January 10, 2009, 09:08 PM »
Wow, also nice!  I like the checksumming of folder-content feature.

Mmm, source code :)
2561
General Software Discussion / Re: HashTab - Great little tool ...
« Last post by ewemoa on January 10, 2009, 05:47 AM »
Nice!

Love the license text ;)
2562
FARR Plugins and Aliases / Re: FARR plugin: Akete
« Last post by ewemoa on January 10, 2009, 05:42 AM »
First, I'd like to see a simple way to turn it on and off, so when I wanted to use my own machine's associations, I could.

I have an idea or two about this -- I intend to figure out whether they are practical.

Two other nice features would help out, a lot. One would be a chance to specify two options, by keyword, such as Open and Edit. I think the point there should be pretty clear.

If it doesn't have to be by keyword, there is already a way to specify multiple paths for each file extension -- this information is used in augmenting the context menu for a search result by a context menu item per path (you end up seeing something like "Open with myapp.exe" for each path).  I think I documented this feature in the README.txt of the plugin, but I don't recall at the moment.

The other one is a workaround for a particular program I use, Liquid Story Binder XE. It is a great writing program, but it has one quirk. All files are arranged in a "library" by "book" - each book is a folder under one user-specified folder for the library. Each book actually contains a whole set of files. So, to open a "book" in LSB, you have to run LSB with the book's folder specified in the command line or shortcut. Is there any way to let the user specify such behaviour? (Open X app with the path of the selected file specified, but strip away the filename...)

Currently, this is not supported.  mouser made a similar suggestion and we have discussed the possibility of support for something like what one can specify for an alias string.  So for example, you might be able to express something like:

  %PROGRAMFILES%\Something\Another.exe /p /e "$$1"

and $$1 would get filled in with the file identified via FARR and %PROGRAMFILES% would get resolved to the relevant path.

I intend to investigate this further too.
2563
Find And Run Robot / Re: Idea for Incredibly Helpful Feature
« Last post by ewemoa on January 10, 2009, 05:16 AM »
Thanks for your comments, czb.

I tried to take a look at the links you posted, but somehow I didn't manage to get through -- may be I will try again later.
2564
Find And Run Robot / Re: Idea for Incredibly Helpful Feature
« Last post by ewemoa on January 10, 2009, 02:26 AM »
2) I can certainly easily add a replacemnt that will expand to the drive that farr is running on.. like have it automatically change every $:\ to the drive letter that FARR is running on.
This type of functionality sounds pretty interesting to me :)
2565
Find And Run Robot / Re: Idea for Incredibly Helpful Feature
« Last post by ewemoa on January 10, 2009, 12:17 AM »
FWIW, I think there are a number of portable file association apps in the works elsewhere (sorry I don't have a list handy, but FWIW, last time I checked none seemed ready enough for my own use) -- I've been waiting for this kind of functionality too.

As for the drive letter issue, I can relate, but I don't have a really good solution worked out for that.  The closest thing I have working w/ FARR at the moment is the use of FARR's user variables to factor out the drive letter from my portable app paths.  I only need to change one variable instead of many, but that can be still a pain.
2566
FARR Plugins and Aliases / Re: FARR plugin: PuTTY (preliminary discussion)
« Last post by ewemoa on January 09, 2009, 08:56 AM »
Thanks for the comments.

I considered trying something like the combined approach you described, but I wasn't sure I could come up with something consistent.  I think if all of the different forks used mutually exclusive locations it would be straight-forward, but they don't seem to (i.e. there is some overlap).  May be there is some way to make sense of this that I am not seeing :)
2567
FARR Plugins and Aliases / FARR plugin: PuTTY (preliminary discussion)
« Last post by ewemoa on January 09, 2009, 08:35 AM »
I'm considering a PuTTY plugin.  I have some code that seems to work for various definitions of "PuTTY".

I don't understand why there are so many flavors of PuTTY.  Below is a summary of what I've learned so far about the various flavors.  If you happen to notice any of it is incorrect or something relevant is omitted, I would appreciate being informed.

   PuTTY (the original)
     http://www.chiark.greenend.org.uk/~sgtatham/putty/
     * registry-based sessions
       * putty.exe -load "session name"
       * HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions

   KiTTY
     http://kitty.9bis.com/
     * registry-based sessions
       * kitty.exe -load "session name"
       * HKEY_CURRENT_USER\Software\9bis.com\KiTTY\Sessions

   KiTTY Portable
     http://kitty.9bis.com/
     * file-based sessions
       * kitty_portable.exe -load "session name"
       * <exe-folder>/Sessions/<encodeURIComponent(session-name)>

   PuTTY Portable
     http://portableapps.com/apps/internet/putty_portable
     * registry-based sessions
       * putty.exe -load "session name"
       * HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions

   portaPuTTY
     http://code.google.com/p/portaputty/
     * file-based sessions
       * putty.exe -load "session name"
       * <exe-folder>/.putty/sessions/<encodeURIComponent(session-name)>

   PuTTY Tray
     http://www.xs4all.nl/~whaa/putty/
     * file-based sessions
       * putty.exe -loadfile "session name"
       * putty.exe -file "session name"
       * <exe-folder>/sessions/<encodeURIComponent(session-name)>
     * registry-based sessions
       * putty.exe -load "session name"
       * HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\Sessions
2568
FARR Plugins and Aliases / Re: FSubScript Feature Requests
« Last post by ewemoa on January 09, 2009, 07:48 AM »
Thanks for the explanation.

I wonder if someone provided a sort of tool for plugins that is run right before compressing for distribution, whether creation of a manifest file (possibly optional) might be a feature it could have.  Plugin writers might appreciate having dcupdate files created/updated in a more automated fashion as well.  Perhaps there are other sorts of things that could be built into such a tool.

May be it would be worth considering a tool such as this at some point in the future and around then the issue of manifest files might be revisited.
2569
Living Room / BBS: The Documentary
« Last post by ewemoa on January 09, 2009, 07:26 AM »
I imagine some folks here have already seen BBS: The Documentary, but may be there are some folks who missed it and would be interested ;)

https://secure.wikim...wiki/BBS_Documentary

bbsdoc.jpg

(On a tangential note, I noticed the creator is working on another interesting-sounding documentary about text adventures a.k.a. interactive fiction: http://getlamp.com/)
2570
FARR Plugins and Aliases / Re: FSubScript Feature Requests
« Last post by ewemoa on January 08, 2009, 09:00 AM »
I don't think I understand very well the motivation for wanting manifests for FSubScript plugins.  Would you mind elaborating on this?

I looked briefly at the Chromium-related page.  Does it look to you like their example only uses literal values (e.g. no variables nor functions)?
2571
I'm not sure what the deal is w/ the registry storage locations for PuTTY (i.e. HKEY_CURRENT_USER vs HKEY_USERS and SID) -- perhaps it's just my poor understanding of Windows :)

At any rate, I've got a preliminary version of a PuTTY plugin which seems to be working with the standard PuTTY.  I tested a modified version w/ KiTTY's registry-based sessions (the only relevant difference I noticed seemed to be the location in the registry) with some success.

If there is interest, I might put together a preliminary release for testing.

I'm considering the file-based stores too -- it seems like it may be straight-forward.
2572
FWIW, sadly, there's at least one country where so many of the sites use ActiveX-based things that FF-only use isn't really practical.
2573
Living Room / Re: eBook readers
« Last post by ewemoa on January 08, 2009, 07:55 AM »
Still have an original Sony Librie, but haven't used it much lately.
2574
Living Room / Re: Tech News Weekly: Edition 01-09
« Last post by ewemoa on January 03, 2009, 05:30 PM »
Thanks again for this week's edition  :Thmbsup:
2575
Developer's Corner / Re: Excellent Javascript Reference
« Last post by ewemoa on January 03, 2009, 08:46 AM »
Today I came across Eloquent JavaScript: An opinionated guide to programming by Marijn Haverbeke.  I haven't gotten very far in it, but I noticed that allen appears to have mentioned it earlier.

allen, did you end up going through the whole thing and do you have anything more to add regarding it?
Pages: prev1 ... 98 99 100 101 102 [103] 104 105 106 107 108 ... 113next