12.11.10

Calendar Validation

Posted in Sites, tools at 11:26 am by Toby

I’ve been doing some stuff importing an ics file of our cookery courses into a company wide google calendar. A calender file validator is essential

http://severinghaus.org/projects/icv/

01.27.10

Running Command Line tools in EditpadPro

Posted in EditPadPro, tools at 7:14 am by Toby

Following on from my previous post about setting Editpadpro up to run your php script, I wondered whether I could get it to run any command line command.  It was wonderfully easy.

  • Create a new Tool called ‘Command Line’

Setting up Command Line Tool

  • Set the Command Line to ‘cmd’

Providing Settings

  • On The Standard I/O tab, set the Selected text to be sent to the standard input .
  • Set the tools output to be sent to the message pane (or a new document if you wish).
  • Save the tool

Type your command and select then click on Tools|Command Line to run the command and you get your output in the message window.

01.19.10

Setting up PHP to run your scripts inside EditpadPro

Posted in EditPadPro, Programming, tools at 1:39 pm by Toby

As mentioned in  a previous post I am a fan of Editpadpro, it is now my text tool of choice,  I find it very powerful, quick and easy to use.  I have recently made an addition which is a nice little improvement.  I set up an Editpadpro tool to run the current file as a php script and dump the output to a new file in Editpadpro.  No more need to jump to your webbrowser and keep refreshing windows.

Follow the steps below to get this up and running.

  1. Create  a new tool by going to Tools – Configure Tools – New
  2. Give it a name (I’ve called mine PHP File)

Set the options on the first screen

  1. Command line – path to php.exe and the %FILE% placeholder (places the current filename on command line).
  2. We must set the Working folder or any included files in your script wont be found.  – use %Path% to set to the currently selected files path.
  3. Select any file type this should apply to probably just php.

If you wish ask Editpadpro to Save your current file to take advantage of any changes you might have made.

Now comes the fun bit,

  1. In the ‘How to capture the tool’s standard output’ select Into new tab to give us the output of our phpscript.
  2. Dump any error into the message pane.

This works a treat and for many text processing tasks I no longer need to go near a browser which makes me happy.

10.31.08

Editpadpro

Posted in tools at 3:54 pm by Toby

I’ve recently been enjoying the thrill of finding some really good bits of software.  I’ve been around for quite a while – prehistoric by some standards – my first real programming job was in my Summer holidays in my third year in university back in 1996.  I worked for a software company that wrote stock market analysis software from a small house in hove with a great little language that had just been released – Delphi.

Anyway over the years I’ve picked up a few tools that I have come to find indespensible.  One of the very first of these was Textpad.  A great text-editing tool that loaded super fast and opened any file that you wanted, even binary files.  This was about 2000 and Textpad 4.0 served the niche I needed it for very well.  I bought a licence and have been using it happily and installing it on every machine I’ve owned or worked at every since.

They recently released a version 5, but I never really liked it.  They changed the interface; It took a bit longer to load and worst of all they removed it from the top level of the context menu in windows explorer.  I think they put it on the sendto menu, but that might as well have been a million miles away.

The windows explorer context menu is one of the most important menus in the whole system.  As a developer I am constantly drilling about different directories, opening up files of all types and sometimes you dont want to start up you IDE to take a look at that function in the file, a quick right click and select textpad and you had it open.  I do it on other peoples machine and come to an abrupt halt when I find they don’t have it installed.  We all have a particular favorite;  mine was textpad.

So I kept using 4.5 which was still wonderful, but I began to want to do things and found it all becoming a bit cumbersome.  At one point I even started writing my own texteditor that had some of the features I was looking for like automatic saving of temp files, regular expression matching of selected text to allow

context sensitive actions such as open a folder when you selected text that was a path.  It seemed a bit much to try to reproduce the other stuff though.

I happily trundled on using textpad whenever I needed to, but recently started looking around again.  One of the things I’ve been wanting to do recently is get some kind of tool that will format xml inplace in an editor.  Sure there are xml editors like xmlnotepad, but I wanted something that was part of my text tool rather than a seperate product.  I work with log files that have XML embedded in them so I sometimes have to copy and paste them out to look at the data and it is generally is formatted plainly so being able to quickly and easily format is really useful.  I eventually found a way of doing this in Textpad via a plugin that someone had written but it wasnt ideal.

Eventually I downloaded editpadpro.  At first I was a bit unsure, but I’m a big fan of JG Software and think Regexbuddy is a fabulous piece of software so I stuck with it.  Then the WOW’s began to arrive.

WOW 1: While exploring add in tools I found that I could do exactly what I wanted with my XML formatting.  I wrote a quick app in Delphi to format an input XML string  and spit it out.  Editpadpro passes the current selection to the tool via standard input and replaces it inline. Brilliant.

WOW 2: It allows you to change the type of a file (for syntax hilighting) at any time and even if you havent saved the file, which means you can paste in a bit of text: XML, Code, HTML and set the filetype and get highlighing and code folding on the fragment.

WOW 3: When a file you are looking at is changed on disk, rather than just reloading (which most editors do) it gives you the option of do a quick compare.

WOW 4 (and there’ll be more): It has a seriously cool search feature – Fold by Searchterm.  You can search for words in a document and then click the fold  button.  This then does a code fold on each line that contains your search text.  Need to list all the Create Table statements in a sql metadata file – search and fold.

When paying my small licence fee to get a full version of editpadpro I suddenly realised that I need to look around a bit more at whats out there.  I’ve been using a tool that has pretty much remained unchanged since 2000 and it has served me well, but now its time to look around and find out what else is out there. I’m glad some software companies are looking at the way people really like to use software and catering to it.