Showing posts with label ubuntu. Show all posts
Showing posts with label ubuntu. Show all posts

Monday, February 25, 2008

Can you do this in Windows?

Today i happened to use the ubuntu calculator application to do some minor calculation.
I was trying to calculate the size of a file in megabytes.(which i intended to download)

This is what i wanted to calculate:
496890302/(1024*1024)

Normally, in windows, I use to do something like this:

1. Type 496890302


2. Type/press "/"

3. Type 1024



4. Type/press "/"



5. Type 1024

6. Type/press "="



Ooohhh...

6 steps for a simple operation....!!

And how about this...?

Step 1:



Step 2: Type/press "="



Unknowingly, I've been doing this many times so far in windows. What a waste of time..?

NOTE:
And one more thing..
When you take a screenshot in windows (by pressing alt+printscreen), it's just copied to clipboard. Then you need to open an application like "Paint" or "IrfanView" to save the screenshot to a file. And the default format used by "Paint" (in my case) is "bmp". Because of that, the size of the 4 windows calculator screenshots i posted above is about 2.9 MB.

When you take a screenshot in ubuntu (by pressing alt+printscreen), it prompts you to save the screenshot to a file. And it uses the "png" format to save the screenshots. As a result, the 2 ubuntu-calculator screenshots i posted above are about 45 KB only.

(Yes, it's true that if I save using "png" format in windows by using some good tools like IrfanView, then i can get reduced file size. But in this post, i tried to explain the default behaviour of both operating systems)

Friday, February 22, 2008

Sharing Windows XP folder with Ubuntu

Since i'm new to ubuntu, all my files were basically residing in windows xp.
As i was working with ubuntu, i thought of relaxing a bit by viewing some photos taken recently. But all of them were sitting inside my xp and i need some way to access it.

Transferring them via usb is an option, but i wanted an even elegant solution. Then i came to know that VirtualBox supports "sharing" folders between "host" and "guest" operating systems.

I read in the VirtualBox manual, that "sharing" folders between "windows" host and "windows" guest is more or less seamless. But "sharing" between "windows" host and "linux" guest need some additional work.

But it's not very tough.

First i needed to configure the shared folder in my VirtualBox. I clicked the menu "Devices->Shared Folders" to configure the sharing. And I choose a folder in my xp machine and gave a share name to that.

Then i opened the terminal in ubuntu and created a directory called share under "mnt" so it looks as "/mnt/share". This required "admin" privileges.

Then i executed the command: sudo mount -t vboxsf myphotos /mnt/share
in the terminal. That's it.

And this how it looked after that in the FileBrowser: