Finally got round to publishing my log colorizing script 'ColorLogs'.
It's available here on GitHub: http://github.com/memorius/colorlogs
This is a perl script intended to have command output piped through it to a terminal, and allows easy creation of new highlighting configurations using simple text matches, globs or regular expressions. See the readme for instructions - very simple to use.
My version started as a fork of v1.1 from here, but I've made numerous improvements since then. It's become an essential tool for me when running ant, maven and various other programs in the terminal.
Please feel free to use it, modify it, etc. You can also send me your custom highlighting config files - I'll be happy to put them in my repository for others to use.
Showing posts with label My projects. Show all posts
Showing posts with label My projects. Show all posts
Wednesday, 5 May 2010
Friday, 16 October 2009
More iPredict My Portfolio tweaks - adding persistent Notes field
Following on from my previous hacks, I've made another addition to my Greasemonkey script to modify iPredict's My Portfolio page, this time inspired by a forum post by ORACLE.
He requested that iPredict should add an editable Notes column to the portfolio. I've wanted this feature myself, so I figured this would be a good time to experiment with DOM Storage, since this allows local persistence of data like this, without requiring support from the server.
My updated script now adds a 'Notes' column next to each line in the portfolio, which lets you enter freeform text which is stored permanently (in your Firefox local user profile) for when you come back to the page.
The DOM Storage API for globalStorage seems to work fine in Greasemonkey (in Firefox 3.0.14), providing you tunnel through the Greasemonkey wrapper using 'wrappedJSObject' to access the globalStorage object, like this:
As before, to get the script, download the current ipredict-portfolio.js from my repository on github here, and install in Greasemonkey - then just use iPredict as normal and enjoy the new stuff. See the previous post for more info.
He requested that iPredict should add an editable Notes column to the portfolio. I've wanted this feature myself, so I figured this would be a good time to experiment with DOM Storage, since this allows local persistence of data like this, without requiring support from the server.
My updated script now adds a 'Notes' column next to each line in the portfolio, which lets you enter freeform text which is stored permanently (in your Firefox local user profile) for when you come back to the page.
The DOM Storage API for globalStorage seems to work fine in Greasemonkey (in Firefox 3.0.14), providing you tunnel through the Greasemonkey wrapper using 'wrappedJSObject' to access the globalStorage object, like this:
window.wrappedJSObject.globalStorage[window.location.hostname].setItem(key, noteText)(I've used the older, non-standard globalStorage object, rather than the HTML5-standardized localStorage, because I'm still running FF3.0 which doesn't implement localStorage; when I eventually switch to 3.5 I may change it.)
As before, to get the script, download the current ipredict-portfolio.js from my repository on github here, and install in Greasemonkey - then just use iPredict as normal and enjoy the new stuff. See the previous post for more info.
Tags:
Greasemonkey,
iPredict,
My projects,
Programming
Saturday, 5 September 2009
iPredict My Portfolio customization
Following on from something I thought of yesterday and posted on the iPredict forums, I decided to have a go at customizing iPredict's My Portfolio page. I wanted to make it easier to see the information I'm interested in when placing limit orders to trade on stock movements.
To do this I've written a Greasemonkey script, which uses javascript to read some values from the tables on the page, and adds extra columns correlating the current stock holdings with the active orders and watchlist.
It works purely on the information already on the HTML page and visible in the page source - it doesn't make any requests to the server, so I think it should fall within iPredict's terms and conditions.
To get it, download the current ipredict-portfolio.js from my repository on github here.
To use it, see the comments at the top of the file. Basically:
This will probably break whenever iPredict change their site layout; I may provide an updated version at the above page if I am still using it myself.
To do this I've written a Greasemonkey script, which uses javascript to read some values from the tables on the page, and adds extra columns correlating the current stock holdings with the active orders and watchlist.
It works purely on the information already on the HTML page and visible in the page source - it doesn't make any requests to the server, so I think it should fall within iPredict's terms and conditions.
To get it, download the current ipredict-portfolio.js from my repository on github here.
To use it, see the comments at the top of the file. Basically:
- Use Firefox (tested on 3.0.13, will probably work on 3.5 if Greasemonkey does)
- Install the Greasemonkey firefox addon
- Install ipredict-portfolio.js as a userscript in Greasemonkey, for URLs matching the pattern https://www.ipredict.co.nz/Main.php?do=portfolio* (the iPredict My Portfolio page).
- The script will apply its changes whenever you view that page in iPredict.
This will probably break whenever iPredict change their site layout; I may provide an updated version at the above page if I am still using it myself.
Tags:
Greasemonkey,
iPredict,
My projects,
Programming
Subscribe to:
Posts (Atom)