How to install Preware on your HP Touchpad on Mac OS X

1) Enable developer mode on HP Touchpad, this can be done by typing webos20090606 in "Just type"

















2) A new card opens which says developer mode, slide the toggle to on, you can set the password if you want.

















3) Now get your cable ready, and put your TP on a side

4) Download the webOS Quick Install from here, this is a jar file

5) For Mac OS X, you may have to download the Novacom driver separately if you have any problem in above step, you can download it from here and install it

6) Now connect your TP to your Mac, on the TP, click Close/Cancel when USB drive prompt shows up

















7) Now your TP should show up in the webOS quick installer. Next click on the globe icon on the right.















8) Select Preware from the list and click install.

















That's it Preware will show up in the downloads tab on your HP Touchpad.


















Once again setup files:

webOS Quick Installer Click here

Novacom driver for mac Click here

Novacom driver for Windows Click here

This step by step process works for Windows as well.

Hope you enjoyed the post!!! Read more ...

Remove text between two patterns

This can be done in UNIX by using SED For example: I want to remove the text between foo and bar

 

file.txt contains:

white

green

blue

foo

red

black

bar

yellow


sed '/foo/,/bar/{d;}' file.txt


Output:

white

green

blue

red

black

yellow

Hope this helps!!!
Read more ...

Find and Replace from Command Line

I had a situation where I had to find and replace in files with out creating new files and renaming them back, so after some research on Google I came up with this:


find . type –f | xargs perl –pi –e 's/foo/bar/g'

Read more ...

Find text in files using find

How to list all files having particular text in UNIX, you can do it by using find and grep
For example, if we want to list all files in present working directory containing foo, the following command helps

find . -type f | xargs grep foo

Instead of period you can give the directory location.

find /usr/home/akt -type f | xargs grep -i foo
-i for ignore case
Read more ...

Number of AMP's in Teradata

How to get no. of AMP's in Teradata? It's smple, just run the below query:



SELECT HASHAMP ( );


As AMP's start from 0, you have to add 1

SELECT HASHAMP ( ) + 1;

Read more ...

How to Connect MacBook Pro to Sony Bravia TV

I have recently bought Sony Bravia KDL-40EX500, and my challenge was to connect my MacBook Pro and use it as an external monitor. Is it easy? Yep, all you need is:

- Mini DVI to HDMI adapter (I bought this on monoprice.com)
- HDMI cable
- 3.5 mm stero cable male to male

Now, look for PC/HDMI slot which is behind the LCD TV and audio in which is just above the HDMI slot, see picture (Click to enlarge)

Plugin the cables, and get your MacBook Pro and connect the cables, see pictures:


Now for the TV to work as external monitor, you have to make some changes in the settings, by default when you connect the TV it is considered as second monitor by MacBook Pro. So go to System Preferences > Click on Display and select mirror option, by doing this the display on your MacBook Pro and Sony TV will be same. Now if you close the lid of MacBook Pro, it will go to sleep, to avoid this you have to connect a mouse, key board and plug-in the power adapter. Close the lid and click any key on the keyboard or click the mouse, that's it you are done. Now you can enjoy watching movies from your MacBook Pro on Sony Bravia. Hope you liked the post.
Read more ...

How to Concatnate using AWK in UNIX

I was working on a editing a file using AWK, and I want to concat a string to the output in each line, so I came up with this


filename.out contains:
abc def ;
ghi jkl ;
asd fgh ;


awk '{print $2 "="}' < filename.out

Output:
def=
jkl=
fgh=


Don't forget to use the space.
Read more ...