Archive for the 'Others' category

Process log file with Notepad++

Feb 01 2013 Published by admin under Others

This Notepad++ has got some serious power. My requirement was to process the log files and had to remove the duplicate lines + some other unwanted calls (css, js, images etc). I goggled some sites and here is the output.
I sorted the file first (you can opt for removing the unwanted lines first).

Sort file:
TextFX -> TextFXTools -> mark sort and sort output only UNIQUE (can also try other sorting options given).

Select lines to be removed:
Ctrl + F (search) -> Select Mark Tab
Now here select “Bookmark line” select box and fill the “Find what” box and click “Mark All” button. You can also use Regular expression to make some advanced marking. For example I had .jsp and .js as the end of many of the lines. I just wanted to remove .js from the file, so I used regular expression .js$ and it did the trick.

Remove selected lines:
Now that you have selected the lines that you want to remove, it is time to remove them. And most simplest of them Search -> Bookmark -> Remove bookmarked lines. That’s it, all the selected lines are gone.

I like Notepad++ as it is packed with many powerful utilities.

No responses yet

Check compression of web items using Firebug.

Dec 13 2011 Published by admin under Others

To test the compression of items in a web page we can use firebug to test individual items. Open firebug and go to Net tab. There you’ll find all the elements of the page. Expand any element and check “Response Header”. There will be so many entries as below:
Continue Reading »

No responses yet

Add social bookmarks – Social bookmarking the other way

Aug 02 2011 Published by admin under Others

Social bookmarking tools can be found in shape of plugins but there is a direct way to integrate them using the script found at the respective social network site.

For example if you want to add facebook like button then you can get the code at the url below:

http://developers.facebook.com/docs/reference/plugins/like/

Continue Reading »

No responses yet