Archive

Archive for the ‘Web Savvy’ Category

Google Chrome Lab

PoorFairGreat (1 votes, average: 5 out of 3)
Loading ... Loading ...
September 14th, 2008

14th Sept 2008, Sunday

Few days ago, I have been hearing about there was a new web browser , Google Chrome. I have then downloaded the application and install in my Vista terminal.
You might refer to here for more details on this web browser. Well, as my personal testing and findings, Google Chrome is simple and user friendly. However, as comparisons with Mozilla Firefox 3 , it appears Chrome use up more terminal CPU and memory resources than the firefox.


With just 1 Chrome application, having 2 tabs browsing to other websites, Chrome opened up 4 “images” of processes. As my observations, opening Chrome application itself will have 2 images of processes , while starting to browse the websites with several tabs will adding up the amount of images of the processes. As an example,

using Chrome to browse with 3 tabs, will have 2 images of chrome processes + 3 images of processes , used by each tab surfing sites, =5 images of processes

using Chrome to browse with 4 tabs, will have 2 images of chrome processes + 4 images of processes , used by each tab surfing sites, =6 images of processes

using Chrome to browse with 5 tabs, will have 2 images of chrome processes + 5 images of processes , used by each tab surfing sites, =7 images of processes

….. and so on.


If there are more than 1 Chrome applications are running, it will add up the memory and CPU consumptions of the 2 images of processes use by the Chrome application, not counting the resources used for the sites surf yet.

Above is not the vital part to be concerned from my end. Another important things are most of Facebook applications cannot be executed in Google Chrome . So far, the error found is “uncaught exception TypeError: Object DIV has no method ‘toLowerCase’.

“Error found when click on the links on right hand side”

“Error found when click on the links on right hand side”

“Error found as the page loading , loading and keep loading…” .

For the Facebook error , I have sent reported to the Chrome developers. Chrome comes with  “Task Manager”  (Shift + Esc) itself . You may terminate a “crash” tab and check on resources used by each “surfing” tabs .Clicking on the “Stats for needs” link will show a summary page for resources used by Chrome, including other Web browser(s) which running in the server as well.

Thats all from me. Wow, anyway , a good web browser from Google :) As beta version, this is a good one.

I vote Chrome as “Just Great!” . How do you rate and think of it ?

How do you rate on Google Chrome web browser ?

View Results

Loading ... Loading ...

~Finished

Web Savvy ,

Bash Lab I

PoorFairGreat (1 votes, average: 5 out of 3)
Loading ... Loading ...
July 21st, 2008

21st July 2008, Monday

With ls command , we may list out files in a directory. As example, may refer to below:

[root@melaka lab]# ls -al
total 8
drwxrwxr-x 2 jyredevi jyredevi 4096 Jul 29 01:58 .
drwxrwxr-x 4 jyredevi jyredevi 4096 Jul 29 01:58 ..
-rw-rw-r– 1      123      123    0 Jul 29 01:58 file1
-rw-rw-r– 1      123      123    0 Jul 29 01:58 file2
-rw-rw-r– 1      456      456    0 Jul 29 01:58 file3

How if we would only like to display the file with the same files ownership ? Taken above as example, if we would only like to display or list out files with ownership and group as ‘123′, then may issue bash command as below:

[root@melaka lab]# ls -al |  grep 123
-rw-rw-r– 1      123      123    0 Jul 29 01:58 file1
-rw-rw-r– 1      123      123    0 Jul 29 01:58 file2

Let say, we would like to change all files with ownership and group of ‘123′ to ‘456′ , then we would just issue bash command ‘chown 456:456 file1 file2′ . Think of situation where if there are plenty of files with ownership and group of ‘123′ which would like to be changed to ‘456′ , then it will be troublesome to have command ‘chown 456:456 file1 file2 file3 file4 file5 …. file(n)’ , right ?

As for above situation, you might actually list out the files with the ownership and group of ‘123′ as below:

[root@melaka lab]# ls -al | grep 123 | awk {’print $9′}
file1
file2

Why awk {’print $9′} ? This is because this will print out only column 9 from results ‘ls -al | grep 123′ , which will only displays the file names.

To add actions those would like to perform on the files, as in this scenario , chown, then may add command as below:

[root@melaka lab]# ls -al | grep 123 | awk {’print $9′} | xargs chown 456:456
[root@melaka lab]# ls -al
total 8
drwxrwxr-x 2 jyredevi jyredevi 4096 Jul 29 01:58 .
drwxrwxr-x 4 jyredevi jyredevi 4096 Jul 29 01:58 ..
-rw-rw-r– 1      456      456    0 Jul 29 01:58 file1
-rw-rw-r– 1      456      456    0 Jul 29 01:58 file2
-rw-rw-r– 1      456      456    0 Jul 29 01:58 file3

As you can see from the latest ls -al result, file1 and file2 ownerships have been updated to 456. You could perform other actions as well with the xargs , such as removing file by command such as ‘ls -al | grep 123 | awk {’print $9′} | xargs rm -rf’

Yeah, lets enjoy around the bash commands . ;)

~ Finished

Web Savvy , ,