tedesco.net.au

  • Full Screen
  • Wide Screen
  • Narrow Screen
  • Increase font size
  • Default font size
  • Decrease font size

Remove ^M using VI

E-mail Print

Have you ever opened a file in VI(M) and you are completely overwhelmed by the number of ^M characters in the file. I find it extremely distracting and have to get rid of them.

Well in VI(M) there is an easy way to do this.

 

:%s/^M//g

To get the ^M character all you need to do is the following key combination: <ctrl>+v, <ctrl>+m

Now all the ^Ms are gone and you can concentrate on the real content of the file instead of those ^M characters.

 

Last Updated on Monday, 31 May 2010 12:50

Finding large files in GNU/Linux using the command line

E-mail Print

Sometimes I need to locate large files to clean up a hard drive before it fills up and kills your system. This can be handy to use on a windows machine when you can't be bothered right clicking on each file and selecting properties to see the file sizes.

Download a live linux CD from one of the many vendors - my favourites are Knoppix and Ubuntu.

Load up linux from the CD - this will not overwrite your windows install.

On the desktop you will see all your windows partitions and drives, you will need to mount the partitions you want to search by double clicking them.

Now open a terminal and change to the mount point of your partition you want to search and run the following command:

find . -size +nM -print0 |xargs -0 ls -sSh

You will see a listing of all the files that are over the value n. Replace n with the size you want to search for - ie for 10MB type

find . -size +10M -print0 |xargs -0 ls -sSh

and this will find all files larger than 10MB.

Last Updated on Monday, 13 April 2009 14:40

J!Analytics - Making Google Analytics Easy

E-mail Print

Update

2010-11-06 Version 2.0.0 released features include latest Google Analytics asynchronous code, single, sub-domain and multiple domain support, and _anonymize_ip support included. Updated documentation coming soon. 

2008-11-08 Version 1.3.0 released with German, Portuguese and Brazilian translations available thanks to João Martins and Tom. Replaced _gat is not defined fix with official Google fix.

2008-11-08 Version 1.2.1 released with Spanish translation available thanks to Francisco José Vela Roncero.

2008-10-27 Version 1.2.0 released with fix for "_gat is not defined" Javascript error.

2008-07-21 New version 1.1.0 released with subdomain tracking support within the same Google Analytics account.

Introduction

J!Analytics is a new Joomla 1.5 only module which inserts Google Analytics code into your web site pages.

Google Analytics allows you to track visitors to your web site and much more. For more information and to get your Analytics ID visit Google Analytics.

J!Analytics uses the latest ga.js script from Google as default and also allows you to use the legacy urchin.js script as well.

Last Updated on Saturday, 06 November 2010 19:50 Read more...
You are here: Home