Wednesday, November 16, 2011

mac bite 2 -- tamil fonts to mac 10.6

Steps to make mac support tamil fonts.

1. System Preferences -> Language and Text -> Input Sources
    Select Tamil Input Method, Anjal and Tamil99

2.  Now you can see on the system tray Tami99 and Anjal icons(dropdown) along with American Flag Icon(should be next to your volume control).

3. Download tamil font and install. You can find one from kamban.com. Couple of clicks should get the fonts installed under user fonts.

4. Restart your browser, now you can read all the tamil websites.

5. You can find more resources on typing in tamil format here



Thursday, October 13, 2011

CMUSphinx - Head Start

This article is just a head start to get CMPSphinx(voice recognition) working on ubuntu(should work on most of the stable linux flavours).

The download link in the CMUSphinx might sometimes lead you to sphinx2, click here to get the latest version.  Download both the bin and src zip files.

Install jar

>apt-get install openjdk-6-jdk

Then use

/Applications# jar xvf sphinx4-1.0beta6-bin.zip

--comment: it will inflate the folder

/Applications# jar xvf sphinx4-1.0beta6-src.zip

--comment: it will inflate the folder

/Applications# cd sphinx4-1.0beta6

Get a latest version of ant and untar it.

Set up the environment variables
/Applications# export ANT_HOME=/home/itsme/Downloads/Applications/apache-ant-1.8.2/

--note: I have my ant in this dir, your location may change based where you downloaded and untarred.

/Applications# export JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk/

 --note: I have my java in this dir, your location may change based where you downloaded and untarred.

/Applications# export PATH=/home/itsme/Downloads/Applications/apache-ant-1.8.2/bin/:/usr/lib/jvm/java-1.6.0-openjdk/bin/:$PATH


now its time to execute ant... you can see some stuffs setting up

/Applications/sphinx4-1.0beta6# ant

--note: if you see that build.xml file is missing, do not panic, make sure you are in the right directory(here its sphinx4-1.0beta6) do an -ls you should notice a bulid.xml file, if not make sure that you downloaded the right file. Any other errors like unable to find the ant or jar make sure that the path  you set on the ENVIRONMENT VARIABLE is right

once this is done try execute

Applications/sphinx4-1.0beta6# java -mx312m -jar bin/HelloWorld.jar



You should see something like

Say: (Good morning | Hello) ( Bhiksha | Evandro | Paul | Philip | Rita | Will )
Start speaking. Press Ctrl-C to quit.

enjoy............






Wednesday, October 5, 2011

mac bite

mac Beginners

Fix backspace/delete when ssh'ing into Linux machines:
 
Go to Terminal preferences, select the Advanced tab and tick 'Delete sends Ctrl-H'. And that's it! Backspace should work as usual in ssh/screen.


Saturday, July 23, 2011

Useful Windows command line tool, handle.exe

Handle v3.46

Introduction


Ever wondered which program has a particular file or directory open? Now you can find out. Handle is a utility that displays information about open handles for any process in the system. You can use it to see the programs that have a file open, or to see the object types and names of all the handles of a program.

You can also get a GUI-based version of this program, Process Explorer, here at Sysinternals.
Installation

You run Handle by typing "handle". You must have administrative privilege to run Handle.
Usage

Handle is targetted at searching for open file references, so if you do not specify any command-line parameters it will list the values of all the handles in the system that refer to open files and the names of the files. It also takes several parameters that modify this behavior.

usage: handle [[-a] [-u] | [-c [-l] [-y]] | [-s]] [-p |> [name]
-a Dump information about all types of handles, not just those that refer to files. Other types include ports, Registry keys, synchronization primitives, threads, and processes.
-c Closes the specified handle (interpreted as a hexadecimal number). You must specify the process by its PID.
WARNING: Closing handles can cause application or system instability.
-l Dump the sizes of pagefile-backed sections.
-y Don't prompt for close handle confirmation.
-s Print count of each type of handle open.
-u Show the owning user name when searching for handles.
-p Instead of examining all the handles in the system, this parameter narrows Handle's scan to those processes that begin with the name process. Thus:

handle -p exp

would dump the open files for all processes that start with "exp", which would include Explorer.
name

This parameter is present so that you can direct Handle to search for references to an object with a particular name.
For example, if you wanted to know which process (if any) has "c:\windows\system32" open you could type:

handle windows\system


The name match is case-insensitive and the fragment specified can be anywhere in the paths you are interested in.
Handle Output

When not in search mode (enabled by specifying a name fragment as a parameter), Handle divides its output into sections for each process it is printing handle information for. Dashed lines are used as a separator, immediately below which you will see the process name and its process id (PID). Beneath the process name are listed handle values (in hexadecimal), the type of object the handle is associated with, and the name of the object if it has one.

When in search mode, Handle prints the process names and id's are listed on the left side and the names of the objects that had a match are on the right.

More Information

You can find more information on the Object Manager in Windows Internals, 4th Edition or by browsing the Object Manager name-space with WinObj.

Microsoft Handle KB Articles

The following Microsoft KB articles reference Handle for diagnosing or troubleshooting various problems:

245068: Err Msg: Access is Denied. You Don't Have Permissions or the File is in Use
276525: Your Computer May Stop Responding When You Monitor Open Handles


Download Link:


By Mark Russinovich

Thursday, July 21, 2011

Firefox -- Disable process plugincontainer

Most of the times I notice that the process plugincontainer eats up my CPU, found that this process is initiated by firefox :( to as a crash protection. I want to disable it...

>>> about:config on firefox location bar

>>> search for dom.ipc.plugins.enabled.* and set the preference to false(right click you will get the option to toggle the value).

That is it you are done.

Sunday, May 22, 2011

Fixing firefox location bar search issues

Most of the time malware's(recently questscan) change firefox location bar search value, by default when you enter any contents which doesn't match a web link will be used as a search keyword by google search engine. Example: You type 'blah blah' on your location bar it will take you to google.com with the results for search keyword 'blah blah'.

The problem happens when your computer is affected by some malware or installation of some tool-bar's(ex: ask.com this will take you to ask search instead of google.com, though you remove the plug-in or the toolbar still you will be directed to ask.com.) Removing the tool-bar or fixing the malware will not always fix the problem.

You have to do little more work to resolve it.

Steps to restore the default search on location bar:


1. Open firefox and type about:config (Do it with extreme caution).

2. On the search tab, type keyword.URL

3. Change the status to default, type to string and the value to http://www.google.com/search?ie=UTF-8&oe=UTF-8&sourceid=navclient&gfns=1&q=

4. Restart firefox.

That is it, you are done.

Tips: If you need to remove any unwanted entries in the firefox config, you can change the value to default and restart firefox, the entry will be removed.

Saturday, April 9, 2011

Ubuntu: Move your window buttons from left to right

Press Alt+F2 to get the RunApplication Window, type gconf-editor and press Enter, Move to Apps > Metacity > General.

Change the button_layout option to 'menu:minimize,maximize,close'(no spaces between commans) and hit enter, enjoy the change

Cheers!