Obama is RESTful » Idol Hands: Days in the Life of an Alpha Geek
I'm sorry to include just a link, but it's not my posting so I'm just passing the link along.
Wednesday, September 10, 2008
Monday, August 11, 2008
Thursday, July 31, 2008
Firebug Lite
Firebug Lite
From the makers of Firebug for Firefox, now comes Firebug Lite. Firebug Lite is available for all browsers that have javascript enabled.
Firebug Lite can run as a bookmarklet or as an include file in any page for your project and all you have to do is hit F12 to access it once it is on your page (only available for includes).
Since it is a lite version, it does not include all of the functions available to the normal Firebug plugin. It will come in handy though. You can inspect the css, the js, or the DOM.
From the makers of Firebug for Firefox, now comes Firebug Lite. Firebug Lite is available for all browsers that have javascript enabled.
Firebug Lite can run as a bookmarklet or as an include file in any page for your project and all you have to do is hit F12 to access it once it is on your page (only available for includes).
Since it is a lite version, it does not include all of the functions available to the normal Firebug plugin. It will come in handy though. You can inspect the css, the js, or the DOM.
Wednesday, June 04, 2008
Friday, January 25, 2008
Like grep, but not
This code is like using grep. However, grep only returns the lines that contain the actual text you are searching for. This code allows you to return x number of lines before and after the text you are searching for along with the line itself. This command came in handy searching for information in the uds log files.
nawk 'c-->0;$0~s{if(b)for(c=b+1;c>1;c--)print r[(NR-c+1)%b];print;c=a}b{r[NR%b]=$0}' b=2 a=4 s="fetchHotel" file
b is the number of lines to print before the line encountered and a is the number of lines to print after the line is encountered.
s=”string” string you are looking for (in this case fetchHotel)
and file is the file you are looking in.
By Kris Chappell
nawk 'c-->0;$0~s{if(b)for(c=b+1;c>1;c--)print r[(NR-c+1)%b];print;c=a}b{r[NR%b]=$0}' b=2 a=4 s="fetchHotel" file
b is the number of lines to print before the line encountered and a is the number of lines to print after the line is encountered.
s=”string” string you are looking for (in this case fetchHotel)
and file is the file you are looking in.
By Kris Chappell
Subscribe to:
Posts (Atom)