Suramya's Blog : Welcome to my crazy life…

January 13, 2010

Sleeping Skills

Filed under: Humor — Suramya @ 11:17 PM

While surfing the intrawebs I found the image below that allows you to quantify and classify your sleeping skills.

According to the chart I have achieved a catlike transcendence 🙂 Which proves that I do sleep a lot. Although I also stay awake a lot but once I go off to sleep I need something like this to make me functional again:

Source: Sleeping Skills

– Suramya

January 12, 2010

TinyOgg: Convert flash videos to ogg for viewing and download

Filed under: Interesting Sites,Linux/Unix Related — Suramya @ 11:37 PM

The site TinyOgg.com which was launched recently allows you watch, listen and download Flash-based videos without the need to use Flash technology. What this means is that you can use the site to convert videos from sites like YouTube to .ogg files and download them to your local computer.

Now you might be asking what the problem is using Flash to view the video directly, instead of converting it to ogg. Here’s what the site FAQ has to say about this:

What’s the advantages of choosing Ogg over Flash?
Choosing Ogg over Flash is both an ethical and technical question. We all want our computers to do better, so here is how our computers are better with Free Formats:

1. You will be able to enjoy the media “natively”; there is no need to install any plug-in or add-on to your standard-friendly browser.
2. You will not need to load heavy and possibly unsafe scripts, which helps with speed and stability.
3. You will support a free, open Web where no corporation monopolizes an important technology, such as video.
4. You will enjoy more control over your digital life with Free Formats and Open Standards because no corporation decides what you can and cannot do with the files you have.

Personally I think that flash is a very resource intensive way to view videos. I tried it on a couple of videos and it worked great. Plus using this site lets me download the video to my local system without hassle. One of the other things I liked is that you can have the script download the highest available quality of the video automatically. So if a HD version of the video is available it will download it instead of the regular version.

The whole site is built on top of Free Software. Currently the site only supports YouTube but support for other service is under development.

Check it out. You might like it 😉

– Suramya

– Suramya

January 11, 2010

What to do and what not to do to prevent copying/hotlinking on sites

Filed under: My Thoughts — Suramya @ 9:31 PM

Some of the sites out there seem to think that all their visitors want to do is copy their stuff and they come up with some really irritating idea’s to try to prevent the text/images from being copied.

One such method that I hit today is used by The CartoonistGroup.com site. They have put a javascript mouse over that changes the cartoon to another image that says “CopyNo.com” in a crossed circle.

It took me literally 5 seconds to copy the cartoon to my system inspite of the ‘protections’. (Select the pic, Right-click, choose view selection source, and copy the url, open in a new window) All it did was annoy me. If you think thats technical, just turn off java-script in your browser and the protection is off…

A lot of people like moving their mouse over what they are reading and its quite irritating to have the pic change to another when you are scrolling down…

If you treat all your visitors like criminals who are barely held in check from ripping you off then they are infact going to go out of their way to do it. If you treat them like normal people maybe one in a 1000 will copy the cartoon and post it on their site. And you know what. It doesn’t matter. Its free publicity for the artist and site.

I do agree that hotlinking is not that great. In that case they are using your bandwidth and you are not getting any benefit out of it. However then also you have other options, myconfinedspace.com/ for example allows you to hotlink to images on their server but puts a watermark on them. If you visit the site directly then you don’t see any watermarks on the images .

Putting a watermark on a image when its copied is ok, putting silly java-script/other useless technologies is not ok. Worse comes to worse I can always take a screenshot of the page and then cut paste the image from that and use it. Think about it.

You are not preventing people from copying your stuff. All you are doing is annoying your customers.

– Suramya

January 10, 2010

Installed New UPS at home then recovered System from crash

Filed under: My Life — Suramya @ 10:32 PM

The past few days have been interesting, as they were spent rewiring the house so that the new UPS that we installed for the house would work and not have too much load on it. In addition we redistributed the load so that each of the three phases coming into the house from the electricity board have an equal amount of load on them. This involved cutting a lot of wires, some drilling and a lot of splicing and adding of new fuses etc.

We finally got the delivery for the new UPS 3 days ago but the batteries that were supposed to be delivered at the same time were only delivered yesterday as they took longer than expected to charge (That’s what the dealer told us). When the UPS arrived we had to remove the old Inverter ’cause of the deal we had made with the company (we got a discount if we gave them our old inverter) so we didn’t have any power backup for the house till yesterday night when all the work was finally done.

Thanks to all of this, my desktop was off for most of the past three days. I didn’t want to chance the power going off and my UPS (for the computer) running out of juice before it came back.

Once everything was installed and tested I booted up my system and got a Grub Rescue prompt instead of my normal boot screen. Normally the solution to this is booting up with a live CD and reinstalling Grub. But first I had to figure out what happened and why I was getting this error. I still don’t know what happened but I ‘think’ that the drive developed a bad sector/block and that sort of destroyed the bootloader.

The problem I faced then was that my DVD drive seemed to be having a lot of trouble reading any of the Live CD’s I have lying around. I first tried the Debian Testing Installation cd, followed by RHEL 5.1, Slackware, Kanotix, Kanoppix. None of them would work. Finally managed to boot using the Debian Test and convinced it to read from the CD. Once that was done told it to restore the Bootloader and was good to go.

But since I didn’t know what caused the crash I wanted to make sure that my Main drive was working ok (Its a 1 TB Segate) so I booted into single user and told the system to scan the 1st 500GB partition for badblocks and mark them as such. This scan took about 14 hours. Now I have another 500GB partition plus a 200GB drive and another 15 GB drive. Which by my guess will take the most of the next few days to scan. The 20 GB shouldn’t be an issue as I can scan it while booted in the GUI (Its a backup drive) but the rest have data on them that is used when I boot into Linux so I will have to do it from a single user mode.

I think I will copy most of my work/entertainment files to a thumb drive and work off that till this is done.

Well this is all for now. I am off to copy data to my thumb drive and then will start the scan on the other partitions. Will post more later.

– Suramya

January 9, 2010

Colorful Facebook status updates

Filed under: My Thoughts — Suramya @ 6:47 AM

Today when I logged in to FaceBook (FB) after a long time I saw status messages from most of the girls in my friends list stating something like “black”, “pink” etc. So obviously I was a bit confused and did a little search and found a link to a story that explained it. Apparently this is a way to promote awareness of Breast cancer by posting the color of the bra the poster is wearing at that time.

While I agree that Breast Cancer is an important issue and people need to spread awareness about it, I don’t think this is the right way to go about it. Why? You must be asking (or maybe not, but I am going to tell you anyway)

Facebook has evolved beyond a platform where only people on your friend list are your friend list are your friends. Now you have people who work with you on your friend’s list. In my case, I have co-workers, (both seniors and juniors) in my friend list in addition to author’s whose books I like.

Now I really don’t want to or need to know what color bra my boss or a developer in my team is wearing today. Yes, its fun to read when you are talking amongst friends but I don’t think it looks very professional when a co-worker or worse a client reads such status updates.

What do you think?

– Suramya

January 8, 2010

10 Awesome Images That Are Actually Paintings

Filed under: Interesting Sites,My Thoughts — Suramya @ 1:24 AM

As some of you know, I am not a big fan of modern art. To me most Modern art looks like a five year old’s experiment with paints. To me that’s not art. Painting a blue line on a white canvas and calling it art is just plain silly in my opinion. A lot of people have tried to convince me otherwise but I stand by my statement.

The painting below on the other hand is art. It takes skill to paint like this and this is what I consider art not some random squiggles on canvas. Yes, you read it correctly the image below is actually a painting. Cool right? The artist’s name is Alyssa Monks, check out her site for more paintings by her.


Shower Scene

Visit TheToyZone.com for more images that are actually paintings .

– Suramya

January 6, 2010

Problem with gnome Applications looking ugly in KDE4 continues

Filed under: Linux/Unix Related — Suramya @ 10:43 PM

A few days ago I had posted that I figured out a way to stop Gnome Applications from looking ugly in KDE4. Turns out that my statement was not 100% accurate.

Running of gnome-settings-daemon does make the applications look normal but for some reason it only seems to do so for applications already running. If I start a new application that uses GTK then the interface still looks ugly as hell. So till I find a permanent fix, I start all the gnome applications that I need then run the gnome-settings-daemon.

I think that this could be a setting that I can change to fix the problem, but I will have to research/test the solutions before I fix the problem once and for all.

– Suramya

January 5, 2010

Having a Translucent cursor in KDE4 on Debian Testing (Squeeze)

Filed under: Knowledgebase,Linux/Unix Related — Suramya @ 11:03 PM

One of the things I liked about KDE3.5 and KDE4 on Ubuntu was that the mouse cursor was this translucent arrow which looked a lot better than the default one on Windows. When I switched to Debian for some reason I didn’t have that theme installed by default. So I tried searching for it but couldn’t find the theme as its kind of hard to search for translucent cursor in kde and get sensible results.

Today I decided to search again and found this forum post about customizing Ubuntu. Over there he mentioned the names of the the cursor themes installed on Ubuntu. Using that as a base I did some more digging/searching and finally found the name of the package I had to install to get my translucent cursor back.

The package you have to install is called ‘xcursor-themes’ and the theme I needed is called ‘whiteglass’. On Debian you can install it by issuing the following command: apt-get install xcursor-themes

Hope this helps.

– Suramya

January 1, 2010

Happy New Year everyone!

Filed under: My Life — Suramya @ 8:34 PM

Wishing all my readers a very Happy New Year, where ever you are located and whatever you do I hope you have a blast in the coming year. 🙂

The day (31st ) started off at 11 am for me, ’cause I had to drop off Sid and Ritika to Gurgoan(GG). They had stayed back at our place after they came over to watch Avatar with Vinit and Surabhi. We left home at about 1:30 so that we could have lunch before they left.

We had lunch at Sancho’s where I had Taco’s with grilled vegetables. Now I know that I should never order Taco’s with vegetables. Plain Beans and Rice are good enough for me. The rest of the group enjoyed the food and while mine wasn’t too bad, it wasn’t as good as I had expected.

After Lunch we left Surabhi and Vinit at South-Ex and the rest of us drove to GG. I dropped them at their place and drove to Aditya’s place. Since we had time to kill and had to get dinner we drove to the Mall road and walked around in a couple of malls. Did some shopping at Spencers for some of the stuff that I used to use in the US and missed over here in India.

Then Sakhi also joined us and we went to dinner at Punjabi by Nature. The food was decent and the portions were pretty big. After dinner we went back home and watched TV. Basically we saw the dance performances of a few dance troupes till midnight while making fun of everyone. After midnight we started watching B4U which was doing a marathon song session on various Actors and Actresses. We had so much fun commenting on everything and anything in the dance/lyrics etc. I have not laughed so much in a long time. We were up till about 4:30 am and I had a blast.

My new years resolution:

1. Finish updating suramya.com content and push the new interface out. Its way beyond time to finish this.

What are your resolutions?

– Suramya

December 30, 2009

Getting my HP-Deskjet F380 scanner/printer/copier working on Debian Squeeze

Filed under: Knowledgebase,Linux/Unix Related — Suramya @ 11:20 PM

I have a HP Deskjet F380 All-in-One scanner/printer/copier systems and it is a great machine. I plugged it into my system and started GIMP to scan an image from it. Within about 20 seconds of me powering on the printer I got a popup message in Gimp telling me that my HP printer is ready for use. I printed a test page and it came out fine.

Then I tried to scan an image and I got a message back from SANE that it didn’t find any devices. Checked the system log in /var/log/system and noticed the following error message in the log:

Dec 28 13:36:04 Wyrm python: io/hpmud/musb.c 136: unable get_string_descriptor -1: Operation not permitted
Dec 28 13:36:04 Wyrm python: io/hpmud/musb.c 603: invalid product id string ret=-1

Did a search on the net about the error message and in one of the forums it suggested that I run hp-check to see if I was missing any of the required files. The program gave me a list of missing dependencies that I installed. But the problem still wasn’t solved.

While searching for a solution I found a post on a forum that stated that this person was able to scan an image when running as root but not as a regular user. So I decided to try running xsane as root. When I did that the program ran successfully and detected my scanner. I was also able to scan an image without any issues.

However since its not a good idea to run programs as root, I needed a permanent fix. The same forum gave me a not so elegant but permanent solution to try.

To fix the problem run lsusb and locate the line containing your printer information. On my system the output of the command is:

Bus 002 Device 002: ID 046e:556a Behavior Tech. Computer Corp.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 009: ID 03f0:5511 Hewlett-Packard DeskJet F300 series
Bus 001 Device 004: ID 0a12:0001 Cambridge Silicon Radio, Ltd Bluetooth Dongle (HCI mode)
Bus 001 Device 003: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

As you can see the third line gives the the information for my Printer. Now we need to get the vendor and product ID for the printer. The first set of alphanumeric after the ID is the Vendor ID and the numbers after the ‘:’ denote the Product ID. In my case the ‘Vendor ID’ = 03f0 and the ‘Product ID’ = 5511.

Once we have that information we need to create a new file as root at ‘/etc/udev/rules.d/99-custom.rules‘ with the following content:

ATTR{idVendor}==”VendorID”, ATTR{idProduct}==”ProductID”, MODE=”0666″, GROUP=”lp”

where the ProductID and VendorID are the values we got earlier. Once you make the changes, save the file. Then you can disconnect the printer and reconnect it for the new changes to take effect and your scanner will be ready for use.

Another approach which could have worked was to add the user scanning the image to the group ‘lp’ and ‘scanner’ to give them access to the printer. Keep in mind that I haven’t really tried this approach yet

Thanks to Meson at LinuxQuestions.org for the steps to make the printer accessible to all users.

Hope this helps.

– Suramya

« Newer Posts — Older Posts »

Powered by WordPress