topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Tuesday March 19, 2024, 3:58 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

Author Topic: NANY 2015 Entry: SedTester  (Read 18051 times)

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,610
    • View Profile
    • Donate to Member
NANY 2015 Entry: SedTester
« on: December 07, 2014, 08:45 AM »
    NANY 2015 Entry Information

    Application Name SedTester
    Version 1.0.1.0
    Short Description Paste some text, type a sed statement, and see the to be expected output
    Supported OSes Windows XP+, Linux
    Web Page SedTester
    Download Link Download from the SedTester DC Member page
    System Requirements
    • Windows Operating System (XP or newer)
    • .NET 4.0 Client profile (or better/newer)
    or:
    • Linux (recent versions)
    • MONO (recent edition)
    Version History
    • 1.0.1.0: 2015-01-03
      • Changes for MONO compatibility (verified using MoMA and by testing on Linux)
        • Improved P/Invoke declarations (int -> uint)
        • Disabled single-instance feature on MONO for now as it doesn't like it much
        • Tested with latest MONO on Linux Mint 17.1 Cinnamon, not all is well:
          • Checkbox RightToLeft feature doesn't seem to work (Could be a Cinnamon issue)
          • Application- and Window-icon don't show (MONO known issue)
      • Sizing issues fixed on all systems (Windows 100%, Windows 125%, Linux)
      • Fixed errorhandling when sed(.exe) can not be found
      • Remove ending newlines from resultText after taking output from sed
      • Remove \r from sourceText before sending as input to sed
      • Added 2015 to Copyright statement
    • 1.0.0.1: 2014-12-31
      • Fixed some layout issues (WinForms obviously doesn't really like switching normal/large font settings)
    • 1.0.0.0: 2014-12-31
      • Added 'Explained' panel, giving a description of the entire expression/script
      • Added 'SED script' panel (toggled)
      • Changed input and panels font to Lucida Console for more 'terminal-like' look with better readability
      • Changed to create a temporary file and use -f option for multi-line script
      • Improved visibility of split-sizers
      • Added link to home-page
      • Changed initial window startup location to screen-center
      • Improved Save/Restore settings
      • Many small improvements
    Pre-releases
    • 0.9.1.0: 2014-12-07
      • Fixed some display issues on Large Fonts systems (laptops with Full-HD screens...)
      • Handling of multiple-line input text improved
      • Minor display issue improved
    • 0.9.0.0: 2014-12-07
      • Initial pre-release for NANY 2015

    Author Ath


    Description
    This application is written after a request from steeladept in the 'Ideas wanted' thread for NANY 2015.
    The request was to have a simple tester for sed expressions on a piece of text supplied to it.

    Features
    Show the result of a sed expression on a piece of text
    Show the explanation of a sed expression
    Optional SED script panel
    Auto-updates the result, unless the Autocheck option is turned off
    Saves options on exit
    Store/remove sed expressions

    Planned Features
    • Compatibility with MONO so it can be run on Linux (GUI) (Since v1.0.1.0)
    • Multi-expression mode (Available since v1.0.0.0)
    • Color the differences between input text and result text
    • Expression Explanation panel (Available since v1.0.0.0)


    Screenshots
    SED expression mode:
    Screenshot - 03-01-2015 , 15_20_49.pngNANY 2015 Entry: SedTester

    SED script mode:
    Screenshot - 03-01-2015 , 15_20_28.pngNANY 2015 Entry: SedTester

    SED script mode (Linux Mint 17.1 Cinnamon):
    Linux Screenshot - 2015-01-03, 14_13_49.pngNANY 2015 Entry: SedTester

    Usage
    Installation
    Unzip the downloaded zip-file in a directory.
    The zip-file contains both SedTester.exe and a Windows-compiled version of GNU sed.exe that is spawned by SedTester for getting the result. It needs to be in the current directory or in the Windows path.
    On Linux sed.exe can be removed or not extracted, as it won't be usable/used anyway.

    Using the Application
    Start SedTester.exe (On Linux: run using MONO)
    Type or paste some input text
    Type a sed expression (or select from the combobox if some are added already)
    or Switch to SED script mode using the checkbox and write or paste a script to be executed (most examples from the sed online manual are tested)
    Wait a second and it is auto-checked into the result text (when Autocheck is enabled)

    Uninstallation
    Remove the 2 .exe files, and optionally the auto-created settings.xml, from the directory

    Known Issues
    On Linux/MONO (tested using the Cinnamon desktop) 2 CheckBoxes don't adhere to the RightToLeft setting...
    On Linux/MONO the Application- and Window-icon don't show (MONO known issue)

    [/list]
    « Last Edit: November 04, 2018, 08:05 AM by Ath, Reason: Updated links »

    MilesAhead

    • Supporting Member
    • Joined in 2009
    • **
    • Posts: 7,736
      • View Profile
      • Donate to Member
    Re: NANY 2015 Entry: SedTester
    « Reply #1 on: December 07, 2014, 09:40 AM »
    Thanks.  Now I have to relearn sed to use it.  :)

    Ath

    • Supporting Member
    • Joined in 2006
    • **
    • Posts: 3,610
      • View Profile
      • Donate to Member
    Re: NANY 2015 Entry: SedTester
    « Reply #2 on: December 07, 2014, 12:10 PM »
    I've uploaded an improved version 0.9.1.0, fixing mostly issues with multi-line input text and some display-anomalies when used on a Large-Font setting with Windows (default 125% for laptops with Full-HD displays)

    ewemoa

    • Honorary Member
    • Joined in 2008
    • **
    • Posts: 2,922
      • View Profile
      • Donate to Member
    Re: NANY 2015 Entry: SedTester
    « Reply #3 on: December 07, 2014, 07:19 PM »
    Compatibility with MONO so it can be run on Linux (GUI)

    Interested in trying this out if it comes to pass :)

    On a side note, do you already have plans for displaying some sed docs or links to docs?

    Ath

    • Supporting Member
    • Joined in 2006
    • **
    • Posts: 3,610
      • View Profile
      • Donate to Member
    Re: NANY 2015 Entry: SedTester
    « Reply #4 on: December 08, 2014, 02:01 AM »
    There is a link to the GNU sed-docs on the bottom of the screen, displaying an expression-breakdown is something quite ambitious that I didn't dare to put it in the Planned features list yet :-[

    ewemoa

    • Honorary Member
    • Joined in 2008
    • **
    • Posts: 2,922
      • View Profile
      • Donate to Member
    Re: NANY 2015 Entry: SedTester
    « Reply #5 on: December 08, 2014, 07:26 AM »
    Ah, I see the link in the screenshot.

    Good luck in any case :)

    Ath

    • Supporting Member
    • Joined in 2006
    • **
    • Posts: 3,610
      • View Profile
      • Donate to Member
    Re: NANY 2015 Entry: SedTester
    « Reply #6 on: December 31, 2014, 08:41 AM »
    Released: SedTester 1.0.0.0

    On the last day of 2014, just before N.A.N.Y. 2015 starts, the first official release of SedTester.
    Details in the OP

    Please place comments, or any mishaps you find, in this thread.

    Ath

    • Supporting Member
    • Joined in 2006
    • **
    • Posts: 3,610
      • View Profile
      • Donate to Member
    Re: NANY 2015 Entry: SedTester
    « Reply #7 on: December 31, 2014, 12:42 PM »
    Released: SedTester 1.0.0.1

    Minor fixes to some layout issues, fighting with WinForms when switching normal/large font settings :(

    Please place comments, or any mishaps you find, in this thread.

    cranioscopical

    • Friend of the Site
    • Supporting Member
    • Joined in 2006
    • **
    • Posts: 4,776
      • View Profile
      • Donate to Member
    Re: NANY 2015 Entry: SedTester
    « Reply #8 on: December 31, 2014, 03:15 PM »
     :up: Nice work, as always!
    I always sed it'd be useful to have something like this.

    MilesAhead

    • Supporting Member
    • Joined in 2009
    • **
    • Posts: 7,736
      • View Profile
      • Donate to Member
    Re: NANY 2015 Entry: SedTester
    « Reply #9 on: December 31, 2014, 04:30 PM »
    :up: Nice work, as always!
    I always sed it'd be useful to have something like this.
    -cranioscopical (December 31, 2014, 03:15 PM)

    I appreciate your standard input.  There's just no substitute for it.

    Ath

    • Supporting Member
    • Joined in 2006
    • **
    • Posts: 3,610
      • View Profile
      • Donate to Member
    Re: NANY 2015 Entry: SedTester
    « Reply #10 on: January 03, 2015, 09:35 AM »
    Released: SedTester 1.0.1.0

    Made SedTester usable on Linux with MONO (Mono is not really .NET Compatible...)
    Several other improvements
    Details in the OP

    Jibz

    • Developer
    • Joined in 2005
    • ***
    • Posts: 1,187
      • View Profile
      • Donate to Member
    Re: NANY 2015 Entry: SedTester
    « Reply #11 on: January 04, 2015, 02:28 AM »
    Very nice :Thmbsup:.