Suramya's Blog : Welcome to my crazy life…

March 12, 2012

Voice Recognition on Samsung Galaxy Nexus using Swype

Filed under: My Thoughts,Tech Related — Suramya @ 11:59 PM

I like the voice recognition built into Swype keyboard a lot and have been using it quite often to type out SMS’s etc when I have net access and am feeling lazy (The service requires net access to work). For the most part the recognition works quite well and it looks like it learns the more you use it. So I decided to stress test it by using it to type out a complete blog post… Unfortunately that didn’t work out that well. The first para came out ok, but for the next few para’s it got 90% of the stuff wrong instead of the other way which was what I was expecting. I finally gave up typing the blog on the phone because it was taking too long.

It would have been cool if it worked the way I expected so that I could make notes/reminders for myself while driving which is when I get a lot my my project ideas. At present if I use this to make notes then I would spend the next 10 hours trying to figure out what the hell I was thinking about, so I think that for now I will stick to trying to remember stuff and then transcribing it at red lights and traffic jams.

But for just typing SMS’s it works great and is a lot faster than trying to type stuff out.

Final verdict? Cool implementation but requires a lot more work before it can be used as a keyboard replacement.

– Suramya

March 7, 2012

Yet another post on Ebooks

Filed under: Books Related / Reviews,My Thoughts — Suramya @ 4:18 PM

Long time readers of this blog will remember (or atleast I would like to think so) that I am an avid reader and have been posting a lot about ebooks on the blog. Today I saw this article(Ebooks on Tablets fight Digital distractions) on NY Times which made me laugh. The article starts off with the following heading:

Can you concentrate on Flaubert when Facebook is only a swipe away, or give your true devotion to Mr. Darcy while Twitter beckons?
People who read e-books on tablets like the iPad are realizing that while a book in print or on a black-and-white Kindle is straightforward and immersive, a tablet offers a menu of distractions that can fragment the reading experience, or stop it in its tracks.

Then gets more silly as it goes on, This excerpt was especially interesting:

“The tablet is like a temptress,” said James McQuivey, the Forrester Research analyst who led the survey. “It’s constantly saying, ‘You could be on YouTube now.’ Or it’s sending constant alerts that pop up, saying you just got an e-mail. Reading itself is trying to compete.”

Indeed, the basic menu for the Kindle Fire offers links to video, apps, the Web, music, newsstand and books, effectively making books (once Amazon’s stock in trade) just another menu option. So too with the multipurpose iPad, which Allison Kutz, a 21-year-old senior at Elon University in North Carolina, bought in 2010. She says her reading experience has not been the same since.

She is constantly fending off the urge to check other media, making it tough to finish books. For example, in late September 2010, she bought “Breaking Night,” a memoir about a homeless girl turned Harvard student. Ms. Kutz said the only time she was able to focus on it was on an airplane because there was no Internet access.

“I’ve tried to sit down and read it in Starbucks or the apartment, but I end up on Facebook or Googling something she said, and then the next thing you know I’ve been surfing for 25 minutes,” Ms. Kutz said.

Blaming tablets because you don’t have the self control to focus on one task at a time is a bit like blaming doughnuts or McDonalds for being fat because you don’t have the self control to stop eating. I read a lot on my tablet and I read a lot of paper books as well, and so far I don’t see a big difference in my reading experience or the time I need to finish a book on either platform.

I know some people have medical conditions that make it difficult for them to focus on one thing at a time (ADHD) but for most people the problem is a lack of discipline and self-control instead of an actual medical problem. The people who get distracted while reading an ebook will get distracted while reading a regular book as well. There is nothing that prevents a person reading a regular book from picking up the remote to watch a bit of TV or the phone to call someone or a laptop to surf the net. I don’t know Allison Kutz personally but I have a feeling that she would be hard pressed to finish a regular hardcopy book also without getting distracted in the middle.

These ‘studies’ seem very contrived and a conspiracy theorist could argue that the publishing houses are trying to scare people against buying ebooks and push them towards buying paper books. The following article in the Telegraph (Jonathan Franzen: e-books are damaging society) doesn’t do anything to convince me otherwise either. People made the same claims about TV, Radio’s, VCR’s etc etc and we are still here… You can’t stop technology/progress, all you can do is adapt and work with it.

Well this is all for now, I will get off my soap-box and go back to my corner to finish this book I was reading.

– Suramya

March 3, 2012

Configuring Dual monitors in Debian

Filed under: Knowledgebase,Linux/Unix Related,Tech Related,Tutorials — Suramya @ 12:01 AM

[Update 8th Aug 2012: This is an older method of setting up the monitor kept for historic reasons. In the newer version of KDE the process is a lot simpler, please refer to this post for the updated steps – Suramya.

Recently I went ahead and bought two new Dell 20″ monitors for my home system as I had gotten used to working with two monitors at work and wanted the same experience at home as well. The problem started because initially I tried installing another graphics card and hooking up the second monitor to that card using VGA. For some reason maybe because I was to tired and wasn’t thinking clearly, I couldn’t get both the cards to work at the same time. I would get one or the other but not both. To make things even more fun, the monitors are 16:9 aspect ratio and when I used the Opensource driver the only resolution with that aspect ratio I would get was 1600×900 which was too small and the fonts looked kind of jagged at that resolution.

Since I was going to be out of town and was planning on switching to DVI cables anyways I left the system like that (after spending a bit of time experimenting) and left. Once I got back I ordered DVI cables and finally managed to get the dual monitor setup working after spending about an hour one the issue. Below is the sequence I followed to get stuff to work (documenting this so that if I ever have to do this again I have a record of what I did):

  • Removed the second video card to reduce complexity. Might add it back later if required, or if I want to hook my old monitor as a third display.
  • Connected both monitors to the onboard ATI Radeon HD 4250 card, one over DVI and the second using VGA
  • Removed the Proprietary ATI and nVidia drivers (both installed in my previous attempts to get this working). Instructions here
  • Restarted X
  • Installed Catalyst (a.k.a fglrx) a proprietary “blob” (closed source binary) driver, using the following command:
  • apt-get install fglrx-atieventsd fglrx-control  fglrx-driver fglrx-glx fglrx-modules-dkms glx-alternative-fglrx libfglrx libgl1-fglrx-glx libxvbaw

Once the driver was installed I restarted X once again and got both monitors working, but the second monitor’s display was a clone of the first one which is not what I wanted so I had to do some more digging and finally managed to fix that using the following steps:

  • Open a terminal/Command Prompt
  • Disable access control so that clients can connect from any host by issuing the following command as a regular user
  • xhost +

    This is required so that we can start a GUI command from a root shell. If we don’t do this you will get an error similar to the following in the next step:

    No protocol specified
    No protocol specified
    amdcccle: cannot connect to X server :0
  • Run ‘Ati Catalyst Control Center’ as root
  • sudo amdcccle
  • Click on ‘Display Manager’ and configure your monitors (Resolution, location etc)
  • Click on ‘Display Options’ -> ‘Xinerama’ and enable ‘Xinerama’
  • There is a bug in the display manager that prevents it from saving any changes if the xorg.conf file exists, to fix:

  • Run the following command as root:
  • mv /etc/X11/xorg.conf /etc/X11/xorg.conf_original
  • Click ‘Apply’ in the Catalyst Control Center
  • Restart X

That’s it. Once I did all that, my dual monitor setup started working without issues. Well… mostly. For some reason my desktop effects have stopped working (Transparent/Translucent windows etc) but I am not going to worry about it for now. That’s a battle for another day, maybe over the weekend.

Please note, that setting up Dual monitors usually is not this complicated in Linux. When I hooked up my TV to this same system I didn’t have to make any changes to get it to work. In this case since I was fiddling around I had to fist fix the mess I made before I was able to get this to work properly.

For those of you who are interested, the final xorg.conf that the above steps created is listed below:

Section "ServerLayout"
        Identifier     "amdcccle Layout"
        Screen      0  "amdcccle-Screen[1]-0" 0 0
        Screen         "amdcccle-Screen[1]-1" 1440 0
EndSection

Section "ServerFlags"
        Option      "Xinerama" "on"
EndSection

Section "Monitor"
        Identifier   "0-CRT1"
        Option      "VendorName" "ATI Proprietary Driver"
        Option      "ModelName" "Generic Autodetecting Monitor"
        Option      "DPMS" "true"
        Option      "PreferredMode" "1440x900"
        Option      "TargetRefresh" "60"
        Option      "Position" "0 0"
        Option      "Rotate" "normal"
        Option      "Disable" "false"
EndSection

Section "Monitor"
        Identifier   "0-DFP1"
        Option      "VendorName" "ATI Proprietary Driver"
        Option      "ModelName" "Generic Autodetecting Monitor"
        Option      "DPMS" "true"
        Option      "PreferredMode" "1440x900"
        Option      "TargetRefresh" "60"
        Option      "Position" "0 0"
        Option      "Rotate" "normal"
        Option      "Disable" "false"
EndSection

Section "Device"
        Identifier  "amdcccle-Device[1]-0"
        Driver      "fglrx"
        Option      "Monitor-DFP1" "0-DFP1"
        BusID       "PCI:1:5:0"
EndSection

Section "Device"
        Identifier  "amdcccle-Device[1]-1"
        Driver      "fglrx"
        Option      "Monitor-CRT1" "0-CRT1"
        BusID       "PCI:1:5:0"
        Screen      1
EndSection

Section "Screen"
        Identifier "amdcccle-Screen[1]-0"
        Device     "amdcccle-Device[1]-0"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Section "Screen"
        Identifier "amdcccle-Screen[1]-1"
        Device     "amdcccle-Device[1]-1"
        DefaultDepth     24
        SubSection "Display"
                Viewport   0 0
                Depth     24
        EndSubSection
EndSection

Hope all this made sense and helps someone. If not feel free to ask questions.

– Suramya

March 2, 2012

Thoughts/Feedback on my Galaxy Nexus after about a month of use

Filed under: My Life,My Thoughts — Suramya @ 5:29 PM

As I mentioned earlier I purchased the Galaxy Nexus in Jan end and really like it so far. However there are some parts of it that are annoying and I just wanted to list them out for anyone who is thinking about buying it:

  • The screen gets scratched really easily. Mine already has two scratches, one from my keys and another from the Rivet near my jeans pocket. On the other hand my GalaxyTab has traveled all over the place and doesn’t have a single scratch (so far) and my Nokia was in use for more than 3 years with barely any scratches
  • The ring volume is really low. The max is lower than what I used to put on my phone for Office use in any of my previous phones. Its to the point that I now keep the phone on the desk in front of me so that if someone calls I can atleast see the screen come on and answer. At times I have missed calls with the phone in my pocket, forget about it being in another room.
  • The Battery gets heated really fast. It touches 35 deg C in about 10 mins of use and I have seen the bat temp go up to 42 deg C.

Now for some of the Pro’s of the phone:

  • Really good battery life. With Wifi, Bluetooth, and listening to music + calls I routinely get about 2 days plus of use on a single charge. Plus it recharges really fast.
  • Screen is very good and bright. Easy to see even outside in the sun
  • Face unlock is very cool and fast
  • The camera is pretty good and takes decent photos in low light as well. The Zero shutter lag is also a big plus.
  • The position lock is very fast and accurate.

Those were the major points I wanted to cover. Over all, do I regret buying the phone? Nope. Love it. Do I recommend others to get the phone? Yeah, I do.

Well, this is all for now. Will post more later.

– Suramya

PS: Yes, I know that I haven’t posted about my trip to Renukut for Richa’s wedding. But things have been a bit crazy with the traveling and then catching up at work.

February 13, 2012

Case of the missing translucent panels

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

A couple of days ago I decided to try hooking up my LCD TV to my computer to see if I could use it as an extra monitor (that didn’t work that well because the TV was too big to be comfortable but that is a different story). So while I was connecting the TV over HDMI I also installed the proprietary drivers for my RADEON HD 4250 card (and promptly forgot about doing this).

Didn’t like working with the TV (too big, too close) so put it back and then noticed that my panel was no longer translucent and none of the desktop effects were working. Ignored it for a couple of days and then decided to fix the issue.

Tried disabling and enabling the Desktop effects from the Settings -> Desktop Effects but I kept getting and error stating that the effects could not be activated and that I should check my Xorg.conf for errors. Tried searching for the Xorg.conf file but that file doesn’t exist on my system so was stumped.

Ignored the issue for another day or so but then got irritated enough today to try and fix it again. Searched online for a fix and found some tips, some bug reports but nothing that worked. Then I found a page where this person was asking if the Opensource driver is better than the propitiatory one. This tickled my brain cells and I had a hazy memory of installing the other version, so decided to take a chance and uninstall the propitiatory version and re-install the Opensource version.

Used the following commands to do this:

  apt-get remove --purge fglrx*
  apt-get remove --purge xserver-xorg-video-ati xserver-xorg-video-radeon 
  apt-get install xserver-xorg-video-ati
  apt-get install --reinstall libgl1-mesa-glx libgl1-mesa-dri xserver-xorg-core
  dpkg-reconfigure xserver-xorg

After doing this I restarted my system (had to do it anyways) and got my desktop effects back. Yay me!

Thanks to wiki.Unbuntu.org for the steps to purge the propitiatory driver.

Hope someone else also finds this useful sometime.

-Suramya

February 12, 2012

Google Wallet PIN cracked on Android devices

Filed under: Computer Related,Computer Security,My Thoughts,Tech Related — Suramya @ 8:53 PM

The past few days there has been a lot of press around the fact that the Google Wallet Pin was cracked on rooted android phones. Lots of people including computer programmers and technologists (who should frankly know better) have reacted to this by posting messages/comments equivalent to: “rooting is bad”, “rooting causes security holes” etc etc etc… Guess they have forgotten the simple rule of computer security: “physical access is total access”, basically it means that if I have physical access to a device I can get full access to it eventually.

This fact was demonstrated it quite nicely by the news that you don’t really need to root your phone to get your pin hacked, all you need to do is reset the application data.

The problem in both cases is caused by the fact that the Google Wallet’s pin is stored locally on the phone itself instead of online so if you can get access to it you can bruteforce it or if you clear the app data it removes the pin and lets you choose another.

One way of fixing the second issue would be to force the phone to link to the internet after the local cache is cleared to sync the pin with the online secure server instead of just letting a user choose a new one. The fix for the first case is a lot harder because you can’t have a wallet that requires the phone to be connected to the web everytime you use it, and if you store it locally then you are just asking for trouble.

Another way would be for the receiving side to validate the pin sort of line how we do it for credit cards but that doesn’t seem too feasible either. Or we could salt the pin with the user’s account info/do a dual encryption, first one requires the pin to unlock the second one requires the account password.

Now if I can come up with such solutions then I am sure the people at Google and the various banks working on this issue will come up with other more secure options. Its not the end of the world. yet. This is a new technology and like all new tech it has its teething issues and I am looking forward to the final fixed product.

– Suramya

February 11, 2012

Dr Who and Star Trek now to have an official Crossover

Filed under: Interesting Sites,Tech Related — Suramya @ 10:38 PM

Dr Who and Star Trek are my two favorite shows and even though there have been numerous fan fiction titles where the two cross over, there was no official cross over till now…. 🙂 In May IDW is going to publish a Doctor Who/Star Trek: The Next Generation crossover series. I am definitely going to go buy the books when they come out. I have read the Star Trek cross overs with X-Men and a couple of others but I believe this one is going to be the best.

Make it… geronimo!

Bleeding Cool has squirrelled out news of an upcoming crossover that might send certain minds reeling. That in May, IDW are to publish a Doctor Who/Star Trek: The Next Generation crossover series. Featuring The Doctor, Rory, Amy, Captain Picard, Worf, Data, Geordi LaForge, Deanna Troi, Will Riker and the rest. And that this art, featuring the Doctor, Rory and Amy on the bridge of the Enterprise is a cover that will be used in the series.

Doctor Who has never engaged in any such officially sanctioned crossover outside of the Doctor Who universe before. The closest was Dimensions In Time, a much derided charity telethon show which featured characters from the BBC soap opera Eastenders. Then there was Death’s Head who kinda popped in and out. Star Trek has also seen comic book crossovers with X-Men and the Legion Of Superheroes. But this is the first time that two such major competing TV sci-fi franchises have been allowed to merge in any way before.

Source: Bleedingcool.com

Maybe there is hope for an official Star Trek & Star Wars crossover?

– Suramya

February 10, 2012

Kodak discontinues its Camera business

Filed under: My Thoughts,News/Articles — Suramya @ 6:33 PM

Its been expected for a while now but its finally official; Kodak is shutting down its camera business by June to focus on its current brand licensing program, and seek licensees in these categories. Its sad that the company that was once a synonym for camera’s and photos is going to shut down. 🙁 I remember my first camera, it was a point and shoot Kodak camera that I spent loads of time and effort on to take some really cool and interesting photos with. I think I still have it at home sitting in one of the boxes of old stuff along with my Nintendo and other artifacts of my childhood. Future generations will have no idea what a kodak moment refers to and that just sucks.

From their press release:

Eastman Kodak Company (the “Company”) (OTB: EKDKQ.PK) announced today that, as a result of its ongoing strategic review process and commitment to drive sustainable profitability through its most valuable business lines, it plans to phase out its dedicated capture devices business – comprising digital cameras, pocket video cameras and digital picture frames – in the first half of 2012. Kodak will instead expand its current brand licensing program, and seek licensees in these categories. Following this decision, Kodak’s Consumer Business will include online and retail-based photo printing, as well as desktop inkjet printing.

Kodak has contacted its retail partners, and is working closely with them to ensure an orderly transition. Kodak will continue to honor all related product warranties, and provide technical support and service for its cameras, pocket video cameras and digital picture frames.

“For some time, Kodak’s strategy has been to improve margins in the capture device business by narrowing our participation in terms of product portfolio, geographies and retail outlets. Today’s announcement is the logical extension of that process, given our analysis of the industry trends,” said Pradeep Jotwani, President, Consumer Businesses, and Kodak Chief Marketing Officer.

A few months ago I remember reading about how Kodak went from being a leader in its field to a struggling company that is almost ready to shut down, can’t find the article right now but it was a really interesting read.

RIP Kodak.

Thanks to CNET for the initial story.

– Suramya

February 9, 2012

Biocomputer can retrieve images from DNA storage

Filed under: Interesting Sites,My Thoughts,News/Articles,Tech Related — Suramya @ 4:06 PM

Practical bio computers took a step closer to reality thanks to work by Sivan Shoshani1, Dr. Ron Piran1, Prof. Yoav Arava2& Prof. Ehud Keinan. They have managed to create a Biomolecular computer that is capable of decoding images stored in DNA. Biocomputers are something that I find really interesting and I try to keep an eye out for any new developments in the field. Even though this doesn’t sound like a big deal, its a huge step forward because till now we could only store a very limited amount of data in Biocomputers (stuff like a couple of 0’s & 1’s) but now that we can store an image we are closer to being able to store more complex data and the best part is that since this doesn’t require an interface it can work directly with organic flesh.

A biomolecular computer made in a test tube has proved capable of decoding images stored in DNA. The computer, built by scientists from The Scripps Research Institute and Technion–Israel Institute of Technology have created a mixture of DNA molecules, enzymes, and ATP (the substance that provides energy for our own cells) that successfully decrypts information from a DNA chip, in this case the images shown above. The images were first encrypted onto the chip, and then decrypted by the computer and stained in a way that displays only particular sequences. This means that several images can be overlapped on the same chip, then recovered separately by looking for separate genetic sequences.

The boffins have published their paper in Angewandte Chemie, a German journal of chemistry. Tried to read the paper but unfortunately its behind a pay wall and I am curious about the issue but not curious enough to pay for access.

Thanks to The Verge for the initial story.

– Suramya

February 7, 2012

Music for Programming?

Filed under: Interesting Sites — Suramya @ 3:41 PM

As some of you know, I love listening to music and am usually listening to music in the background when working/coding as the music serves to filter out the background noise and lets me focus. I got into the habit of doing this at work at my first company where I had a really loud co-worker who just wouldn’t stop talking. I usually put my playlist on shuffle and listen to all sorts of music when working (Kishore Kumar, Lady Gaga, Ke$ha, Boney M etc etc).

Apparently other folks do the same thing and think that listening to music while coding is good and helps you concentrate. Found this entire website called musicForProgramming(); which has hour long mix tapes intended for listening while programming to aid concentration and increase productivity. I tried the first tape for about 5 mins and then called it quits. Unfortunately the music annoyed me more than it helped me concentrate because it was just a bunch of strings, lutes etc and I prefer music with more rhythm & beats.

However plenty of other folks have recommended this site so you should check it out and see it helps you pretend to work more efficiently.

Regards,

Suramya

« Newer Posts — Older Posts »

Powered by WordPress