Suramya's Blog : Welcome to my crazy life…

December 11, 2009

Google Calendar Notifications/Issues

Filed under: Computer Software,Tech Related — Suramya @ 4:12 AM

Google recently made a change to its Calender service that I had been waiting for a long time. Actually they might have launched it a while ago but I only noticed it recently.

You now have the ability to send the reminder for an event to a mobile phone as a SMS. The best part is that it even works with my cell phone in India. So now I get reminders even when I don’t have access to my email (which I admit is pretty rare).

The only issue I have found so far is that the reminder via SMS is set about a day before the event no matter what setting I put in the interface. I have set the system so that I get a reminder 15 mins before any appointment set in my calender but I keep getting the reminder a day before, i.e. if the event is on the 8th I get the reminder on my cell phone on the 7th. Hopefully they will fix it soon.

The other issue I hit on the calender is that it seems to be impossible to change the date for an existing event. I wanted to change the date and time for a reminder but it refused to let me change the date. It did change the time to the new time but kept the event on the old date. I finally had to delete the old event and create a new event.

Now if I can get it to sync with my Phone it would be great. I got the phone to sync with my system but still need to get Google to sync to evolution. (The connection keeps timing out for some reason).

Other than these minor issues I really like the Google Calender.

– Suramya

September 15, 2009

How to crash Windows 7

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

I found an easy way to crash Windows 7 RC 2 when working on Gaurang’s computer. He has VMWare installed on his computer that is currently running Ubuntu so that he can learn Linux. We were playing around with it by trying to see if we could connect to it over the network using VNC.

First we ran the VNC server on the Linux instance and then connected to it from Windows using the VNC client and it worked great. Then we enabled Remote Desktop on Windows 7 and tried to connect to it from the virtual linux computer on the same system. Basically we were remote desktoping to the the same computer. As soon as I ran the command from the Linux system the entire windows OS crashed and I got the Blue Screen Of Death!

This is not good. There is no way that a remote desktop look like this one should crash the OS, at the worst it should have crashed that process (VMWare)…

Found it interesting that a small thing like this can crash the entire OS.

– Suramya

September 3, 2009

Sort a file list by Date in Linux (Including Subdirectories)

Filed under: Computer Tips,Linux/Unix Related,Tech Related — Suramya @ 7:35 PM

I use Amarok to play music and I really like it, however my Playlist was created in Winamp/XMMS which I initially thought that Amarok couldn’t read. So all the new music I got since I switched to Amarok was no longer being added to a playlist, I just added the new songs manually then used the select 50 random songs option to play music.

Yesterday I figured out that Amarok does indeed read .m3u files (Winamp Play lists) so I wanted to add all the new music I have to the top of the old playlist. So basically I needed a list of all music in my system sorted by date. If you have been using Linux and are reasonably familiar with it then I think the first thing that came to your mind must have been: “Why can’t we just use ls -lRrt”? That’s pretty much what I thought. But unfortunately this command doesn’t work very well for what I wanted to do.

After playing around for a while I finally managed to get the system to show me a list of all music files in my system sorted in reverse chronological order. The command I used for this is:

find -name "*.mp3" -print0 | xargs -0 stat --format '%Y %n'|sort -r

Now the explanation:

  • find -name “*.mp3” : returns a list of all mp3 files in the current directory and any subdirectory under it.
  • -print0: This tells find to use the ASCII NUL character instead of space to separate the filenames. If we don’t use this then xargs chokes on the spaces in file names.
  • xargs -0: This tells xargs to use the ASCII NUL character instead of space to separate the filenames.
  • stat –format ‘%Y %n’: This runs the stat command on every file returned by find. This command returns the Time of last modification as seconds since Epoch followed by the name of the file.

    e.g.

    suramya@Wyrm:~$ stat --format '%Y %n' unison.log
    1251802152 unison.log

  • sort -r: sorts the list using the first column (the creation time) and displays the result.

——-

Example execution result in my Scripts directory:

suramya@Wyrm:~/bin$ ls -l
total 2648
-rwx------ 1 suramya suramya      77 2009-01-10 04:30 bookfixer.sh
-rwx------ 1 suramya suramya      76 2009-01-10 04:30 cardDesigner.sh
-rwx------ 1 suramya suramya     548 2009-01-10 04:30 change_wan.sh
-rwx------ 1 suramya suramya     478 2009-01-10 04:30 compare_entire_dir.sh
-rwx------ 1 suramya suramya    3462 2009-01-10 04:30 delay.pl
-rwx------ 1 suramya suramya      66 2009-01-10 04:30 EditPlus
-rwx------ 1 suramya suramya      88 2009-01-10 04:30 export_xterm
-rwx------ 1 suramya suramya     203 2009-01-30 04:29 extract.sh
-rwx------ 1 suramya suramya   82558 2009-01-10 04:30 lit2html
-rwx------ 1 suramya suramya     320 2009-01-10 04:30 makedir.sh
-rwx------ 1 suramya suramya      49 2009-01-10 04:30 mapsql
-rwx------ 1 suramya suramya     369 2009-01-15 02:11 MuteUnmute.sh
-rwx------ 1 suramya suramya 2350194 2009-01-10 04:30 pdftohtml
drwx------ 2 suramya suramya    4096 2009-01-10 04:30 Poet
drwx------ 2 suramya suramya    4096 2009-01-10 04:30 Remote
-rwx------ 1 suramya suramya     109 2009-02-08 19:47 resize.sh
-rwx------ 1 suramya suramya      48 2009-01-10 04:30 rootscan
-rwx------ 1 suramya suramya     397 2009-01-10 04:30 S41firewall
-rwx------ 1 suramya suramya     111 2009-02-21 20:15 sync_website.sh
-rwx------ 1 suramya suramya     116 2009-01-10 04:30 text2img
-rwx------ 1 suramya suramya     122 2009-01-10 04:30 uncompress.sh
-rwx------ 1 suramya suramya  180580 2009-01-10 04:30 vcdgear


suramya@Wyrm:~/bin$ find -name "*" -print0 | xargs -0 stat --format '%Y %n'|sort -r
1235227520 ./sync_website.sh
1235227520 .
1234102660 ./resize.sh
1233269990 ./extract.sh
1231965676 ./MuteUnmute.sh
1231542033 ./vcdgear
1231542033 ./uncompress.sh
1231542033 ./text2img
1231542033 ./S41firewall
1231542033 ./rootscan
1231542033 ./Remote/StarFlight
1231542033 ./Remote/Firestorm
1231542033 ./Remote/CyberNibble
1231542033 ./Remote
1231542033 ./Poet/poet.tar.gz
1231542033 ./Poet
1231542033 ./pdftohtml
1231542033 ./mapsql
1231542033 ./makedir.sh
1231542033 ./lit2html
1231542033 ./export_xterm
1231542033 ./EditPlus
1231542033 ./delay.pl
1231542033 ./compare_entire_dir.sh
1231542033 ./change_wan.sh
1231542033 ./cardDesigner.sh
1231542033 ./bookfixer.sh

As you can see, the ‘sync_website.sh’ script is the latest script in that directory.

Hope you find it useful.

– Suramya

August 15, 2009

Posting to WordPress Blogs from Lifeblog on Nokia Phones

Filed under: Computer Software,Software Releases,Tech Related — Suramya @ 4:45 AM

I have been wanting to have the option to make blog posts directly from lifeblog on my N95 for a while now but so far was unsuccessful because no plugin existed that worked with the latest version of WordPress.

So I downloaded the latest available copy of the plugin from this blog post and modified it to work with the latest version of WordPress.

You can download the latest version of the plugin from the Scripts Directory. This version works with WordPress 2.8.x (I tested it with 2.8.2 and 2.8.4).

Changelog :
Ver 3.5: (15th Aug 2009):

* Plugin is now compatible with WordPress 2.8.x (Tested upto 2.8.4)
* Replaced the SQL queries for categories creation/check with WordPress Functions
* Replaced the SQL queries for user checks with WordPress functions
* Added ability to Enable/Disable Debug Logging by changing one variable

Let me know if you have any questions/issues.

– Suramya

July 24, 2009

A tool to make online personal data vanish

Filed under: Interesting Sites,My Thoughts,Tech Related — Suramya @ 9:13 PM

As most of you know, once anything is posted on the web its literally impossible to get rid of. Lets say you post a picture on your blog, it will get archived by any number of sites like the Way Back machine, Google Cache etc etc or anyone can copy it to their system and repost it. So even if you remove it from the blog someone with time and patience can find it again.

To counteract this University of Washington has developed a system called Vanish, which will (according to them) will allow users to create a self-destruct system for information posted online. According to the site:

The Vanish prototype washes away data using the natural turnover, called “churn,” on large file-sharing systems known as peer-to-peer networks. For each message that it sends, Vanish creates a secret key, which it never reveals to the user, and then encrypts the message with that key. It then divides the key into dozens of pieces and sprinkles those pieces on random computers that belong to worldwide file-sharing networks, the same ones often used to share music or movie files. The file-sharing system constantly changes as computers join or leave the network, meaning that over time parts of the key become permanently inaccessible. Once enough key parts are lost, the original message can no longer be deciphered.

Ok, so according to them the data at the original source will get deleted. What I don’t get is how they are planning on getting rid of data copies that were made by caching services (Google etc) and archive sites (Wayback machine etc).

Lets say I have encrypted the data and a little later the archive spider runs and creates an image of the post. Now if I access the site image I will see the encrypted data which should expire correct? Nope. These spiders usually function like a normal webbrowser i.e. they will do a normal http call to get the information. So if the creator of the spider adds the code to decrypt the data using whatever logic Vanish uses (keep in mind that this info will be available so as to allow people to create plugin’s etc for regular browsers) they will have a snapshot of the clear text message/image/whatever as long as the spider runs before the message degrades to much.

In all its a pretty cool concept but I wouldn’t be using it for any really secure communications.

Source: A tool to make online personal data vanish
Vanish Details and Paper: http://vanish.cs.washington.edu

– Suramya

June 23, 2009

Firefox 3.5 RC2 and my experience with it

Filed under: Computer Software,My Thoughts,Tech Related — Suramya @ 11:21 PM

I have been using the latest version of Firefox(FF) 3.5 for the past few days and I am pretty happy with it so far. I first started using FF when it was version 0.5 (or was it 0.6). Since then I have used every alpha and beta version that Mozilla released for any of its new versions.

This is the first release for which I never tried out the alpha/beta versions. The first time I downloaded it was the pre-RC version Beta 99 that was released just before RC1.

Some of the things have changes. One major change that I have noticed is that it is using a lot less memory than any of the previous versions. Previously it would routinely take up 200-300 MB of RAM, currently it is using 100MB after about a day of surfing.

The privacy mode is also nice but I haven’t really tried it out yet. I haven’t really noticed a lot of speed difference while surfing yet but it does start up faster.

I am eagerly waiting for the final version to come out so that I can play with it.

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

– Suramya

November 28, 2008

Recharge Batteries using wind power

Filed under: Tech Related — Suramya @ 11:55 PM

I want one… This is such a cool idea. One way to recharge would be to put the battery in the charger and stick it on the windshield of a car when you are driving somewhere so that by the time you reach your destination your batteries are all charged and ready to use.

Check it out: Febot Recharges Batteries

September 23, 2008

SugarCRM Silent upgrade issues and fixes

Filed under: Computer Software,Knowledgebase,Tech Related — Suramya @ 5:59 PM

The past few weeks I have been working on the SugarCRM Silent upgrade script that upgrades the CRM from ver 4.5.1 to Version 5.0 and I hit some issues that took ages to fix. So I am sharing the fixes/solutions here for others who might have hit these issues and are looking for a solution:

1. The upgrade fails suddenly with the following error message in the upgradeWizard.log file:

Wed, 24 Sep 2008 08:28:20 -0500 [UpgradeWizard] - *** ERROR: could not copy file: /home/suramya/public_html/CRM/include/SugarFields/Fields/Address/DetailView.tpl

To fix this issue you need to extract the upgrade zip file that you downloaded and then copy the SugarFields folder from the includes directory into the include folder of your CRM. Once you do that the CRM upgrade will continue normally.

2. Upgrade fails with the following error message:


Fatal error: Call to a member function on a non-object in /home/suramya/public_html/CRM/include/dir_inc.php on line 135

This one was an interesting one to fix. I had already migrated a couple of test installs on that server so I knew the server supported the upgrade script and I was migrating the same install again so I knew that the install could be upgraded.

Finally figured out that if you rename the upgrade zip file to another name it will fail with that error message. Which is kind of silly because we give the installer the name of the upgrade zip file when running it…

Hope this helps someone else out there.

– Sur

September 4, 2008

Hard drive death.

Filed under: Computer Hardware,My Life,Tech Related — Suramya @ 12:10 AM

Three days ago one of my hard-drives decided it was time to stop working. The irony of the situation is that I was in the middle of backing up data off that drive when it stopped working. I was happily copying data from the disk to another system when I noticed that a couple of files weren’t copied because of read errors. At first I let the copy continue, then I thought let me run a disk check on the drive first and then I can copy data off. Bad Move.

Once I unmounted the drive none of the tools would recognize it and I couldn’t access any of the data on it anymore. I tried to make a disk image of the drive but even after letting the process run for 2 days it had only imaged 16 MB (The drive was 80 GB) so I cancelled it. If I had let the copy process run I guess I could have copied most of the data off it before it failed.

Now I can’t even get the system to identify the drive. I have a backup of most of the data so its not critical that I get access to the drive but its a good learning experience. So I am going to try freezing the drive and see if that will let me get the data off.

I will document my attempts and will share it over here over the next few days.

– Sur

April 21, 2008

Getting my wireless card working in Debian

Filed under: Computer Tips,Knowledgebase,Linux/Unix Related,Tech Related — Suramya @ 2:03 AM

As promised here are the steps that I followed to get my wireless card working on my Comaq Presario V3000 in Debian:

1. Install ndiswrapper

In my case I allready had the ndis wrapper installed. If thats not the case with your system run the following command as root to install it:

apt-get install ndiswrapper-common ndiswrapper-utils ndisgtk

2. Disable the “bcm43xx” driver on your system

Run the following command at a command prompt as root :

echo 'blacklist bcm43xx' | sudo tee -a /etc/modprobe.d/blacklist

3. Download the Windows driver for your card

My system uses the Broadcom Corporation BCM4310 card and I had to download the Windows driver for it from the Dell site. For some reason the driver I found at the Compaq site refused to work. You can download it from here.

Save this in the /tmp directory cd into the /tmp directory, and unzip the Windows driver package:

cd /tmp
unzip R123456.EXE (or whatever the name of the download is)

4. Install the Windows driver with ndiswrapper

To load the driver you need to run the following command as root:

ndiswrapper -i /tmp/DRIVER/bcmwl5.inf

The you should verify that the driver has been successfully loaded

ndiswrapper -l

The output of this command should look like the following if it is loaded correctly

Installed ndis drivers:
{name of driver} driver present, hardware present

or

{name of driver} : driver installed
device ({Chipset ID}) present

5. Load the ndiswrapper module

You now need to load the ndiswrapper module. Run the following steps at a command prompt as root:

depmod -a
modprobe ndiswrapper

if the above commands don’t give any errors then the drivers have been successfully installed.

6. Configure the wireless card

I have found the ‘netcardconfig’ command the easiest to use when configuring a new card. Run it as root and answer the questions it asks and it will configure the card for you.

7. Set the ndiswrapper module to automatically load at boot

ndiswrapper is not started by default when the system starts up so you must configure your system to load the ndiswrapper module at system startup. To do this, edit /etc/modules file as root to add an entry for ndiswrapper at the end of the file.

vi /etc/modules

Add ‘ndiswrapper’ (without the quotes) to the end of the file in a new line. Save and exit.

Now the module will be loaded when the system next starts up.
—-

A special thanks to JamesGu from the UbuntuForums for figuring out the solution and posting it there.

Hope you find this useful. I certainly did. 😉

Will post about my sound card next.

– Suramya

« Newer PostsOlder Posts »

Powered by WordPress