Showing posts with label tech. Show all posts
Showing posts with label tech. Show all posts

Saturday, July 12, 2008

Of Yahoo Mail Annoyances

Yahoo mail as it is right now is really annoying. It tries to pretend its a desktop application (Outlook) but runs on the web. Half the time right clicking doesnt work. It wont let you make as many filters as you want. The new version is way too slow, and on occasion, crashes Firefox. And the classic version, takes its name way too seriously.

Even moving away from Yahoo mail isnt easy - in a moment of prescience, the Yahoo people have realized that providing free forwarding will make them lose people to GMail faster. So they ask you to pay for it.

I feel one of two things are the best one can do in this situation:

Option A: Move away from Yahoo mail.
  1. Tell everyone that your mail address has changed and use FreePOPs, YPOPs or Mr Postman to check for the occasional mail that still comes to your Yahoo account
  2. If you are using Thunderbird, you can use the WebMail extension
  3. If you feel annoyed enough, you can use the method described here to automatically migrate all your Yahoo mails to Google
Option B: Pay For Yahoo mail profession

Nothing to say here - simply pay for Yahoo professional and you get access to POP and Forwarding, thus doing away with most annoyances (by letting you use Gmail or Outlook)

Option C: Pray for a Yahoo mail AIR App

An AIR app using Yahoo's mail and address book APIs would add a lot of value to users, and save us from the bad interface design decisions. This has been discussed in detail before, and it seem and app was also constructed, but it has now been taken offline. Yahoo may be blocking the construction of this app for business reasons - less annoyances with the free version means less users for the paid one. (You have to get permission from Yahoo before you build an application with their API). Lets hope they change their mind and allow it sometime in the future... In the meantime, a Silverlight one is more likely if M$ buys Yahoo...

On a side note, here's how you can register a @live.com ID if you are interested :)

Thursday, July 10, 2008

Why you need paid software

After my recent run-in with Ubuntu, I feel a lot like this guy. A lot of times when you look at open source software, you wonder why they seem so asinine.
  1. There are god knows how many office suites and not one decent one between them - KOffice, OpenOffice, what not. Why not work together and make a decent software that everyone can use?
  2. The graphics drivers never work properly - I didnt have much of a good experience with Ubuntu graphics on my home computer's NVidia cards either. I finally got things working only after downloading "restricted" drivers (supplied by NVidia themselved), and even then Ubuntu whined like a propaganda machine
  3. Recently Pidgin developers removed the option to set the number of input lines shown in the chat window by default. Users were angry enough to fork Pidgin, finally the option was returned: instead of dragging the divider to increase the input size, you had to counterintuitively enter it as a setting in a text field
  4. Again, recently Pidgin people decided that the icons in the chat window to insert an emoticon and format text were "a waste(?)" and "improved" the UI by putting ALL the icons into a single dropdown... After users howled, it was returned as an option in the next release.
  5. KDE 4 - Gods... I cant even begin to describe what a nightmare that is...
In many of these cases, the responsible open source devs (particularly the Pidgin people and some of the KDE people too) simply said one of two things:
  1. They developed the software for their own use/as a hobby and they didnt give a damn if there were 10 users for their software or 10,000
  2. Most of the people complaining were those who just used software and had never contributed back any code to the open source community
These are very disturbing statements. I am a developer also, and often we find ourselves fixing bugs in releases 3 releases before the current one. Even besides that, removal of a feature, particularly a popular one in the commercial world is a definite no-no. A product manager with an attitude like the one above will soon find himself looking for a job. And radical, unnecessary UI changes lead to costly user retraining in a corporate environment. If I was a person working in IS who had stuck his neck out to deploy Pidgin in a company, I would certainly learn a hard lesson the moment someone made a statement like the ones above. And its not as if people in corporate environments cannot innovate - look at MS Office 2007's ribbon...

In the end caveat emptor applies - you get what you pay for. If you ask for free stuff, dont expect to be treated like a customer either. The best open source projects are ones which are run by forprofit companies - consider JBoss, MySQL, Alfresco to name a few. The presence of customers and by extension, a profit motive keeps stability and customer satisfaction high on the list of priorities, which is important for any user - whether technical or non-technical.

There are real good points about open source projects - usually their ability to decide which features to develop based purey on merit (coolness/utility) rather than profit leads to the existence of cool stuff (like Pidgin :)) which would never have been available otherwise. Its only when things turn ugly and devs start ignoring users that you get to see the ugly side of things. Fortunately, that doesnt happen very often :) but still, human nature being human nature, (and egos being egos) I dont see an end to paid software any time soon!

Friday, July 4, 2008

Annoying Open File Security Warning in Windows

So I grabbed some files off the net (using Firefox 3) and immediately found a new annoyance:
Open File - Security Warning
(No I am NOT using Vista. This is VTP in action)

On EVERY single file I grabbed, the system will keep showing this annoying "Open File - Security Warning" until I remove that checkbox and open it once (Cancelling will not work). Quite obviously, this is unacceptable. At first, I thought it was because "My Computer" had somehow gotten put into the "Internet" zone. I open up security options, and sure enough - "My Computer" was gone... I soon found that this had happened in Windows XP Service Pack 2. You can bring it back using the method outlined here, but that is NOT the solution to the problem.

A little more exploring led to this interesting finding: Windows XP contains an Attachment Manager. This largely controls the behavior of Explorer in relation to double clicking on files downloaded off the net. If you have access to gpedit.msc (Group Policy Editor), present in Windows XP Professional, you can tweak the settings to make it stop showing this warning for a particular file or entiely for the system.

Attachment Manager can be accessed from Start > Run > gpedit.msc > Local Computer Policy > User Configuration > Administrative Templates > Windows Components > Attachment Manager. Enabling the "Do not preserve zone information in file attachments" will make new downloads stop showing the message, but old ones will still show it until the chckbox is removed. Adding a file type to the list of low risk file types will stop that file type from showing the message, period.

But how does the Attachment manager know about whether a file has been created on your system, or if it has been downloaded? Well this information, along with other meta-data is stored in the NTFS file system (you can see some of it by clicking the summary tab on a file's properties) The information is ONLY stored on NTFS. So one solution to older downloads showing the error is to copy them to a Flash drive (usually Fat32) and then copy them back to remove this information.

Thsi information in Windows parlance is called "Streams." These streams can be used in many interesting ways. For e.g. to store one file inside another. Lets say you have two EXE files, Fresh.exe and Stream.exe. Then you can store Stream.exe inside of Fresh.exe using the following command (in the cmd window):
type Stream.exe > Fresh.exe:Stream.exe
Fresh.exe size will remain the same (it will use more space on the hard disk, but Windows wont tell you that) If you double click Fresh.exe, it will show whatever it used to show before. The only way to access the hidden file is using:
start Fresh.exe:Stream.exe

Massive potential for abuse you say? Well, remember this information is only available on NTFS files. Downloaded files, files from an archive, from a thumb drive etc will normally not have this information. Still the potential for abuse does exist...

You can view the streams inside of a file using this utility. One last point - why did this only start happening to me now? Well I never use IE for downloads, (I always use Firefox) and Firefox I believe did not store zone information into the file system, until Firefox 3. Ergo my annoyance :)

Saturday, June 28, 2008

Intel Graphics and Ubuntu : Warning! Do NOT mix

So I had a little time my hands at office. We use 32-bit Windows XP for development,but the boxes are all 64-bit dual cores. So naturally I got the crazy idea in my head to install and run my programs (J2EE based) on 64-bit Linux (Kubuntu 8.04 - [KDE not KDE4] in this case).

Now I consider myself a fairly advanced Linux user, so the amount of difficulty I had in doing this was quite frankly, shocking. Lets go over what all happened:
  1. I didn't want to partition my drive so I installed Wubi. I don't really like Gnome, so I went in for Kubuntu. Wubi detected I had a 64-bit processor and started downloading the right ISO. So far so good!
  2. The system reboots in Linux and ... crashes. Time to boot in safe graphics mode
  3. Linux installs but my monitor resolution is all wrong. Checked the graphics card drivers and found the installer had permanently put my system in safe graphics mode... Reset graphics configuration to activate the normal driver
  4. Seems to work fine, KDE works, install compiz, works, restart... Damn! The screens gone blank, none of the keys work Restart... Again stuck. Restart in repair mode, uninstall compiz, the problem seems to be in starting KDE
  5. Decided to switch to Ubuntu from Kubuntu... Simple enough: just call sudo apt-get install ubtuntu-desktop
  6. OK! Gnome ... Sux .... Install KDE4 (sudo apt-get install kde4), remove the horrible new launcher, replace with old one, play around with the icons a bit and... Damn! The panel has disappeared
  7. Whew... After that fix, I am back... to square one... KDE4 Sux
  8. Restart (I don't even remember why... or maybe logged out) and... Damn! Its BSOD (BLACK Screen of Death) again
  9. Getting pissed... Check Google - oh wow! there's a bug (in Xorg - Ubuntu's Graphics Subsystem's - Intel 965 implementation). This is mirrored in Ubuntu. Ok... Get the latest experimental Xorg from here, uninstall the old version (sudo apt-get remove xserver-xorg-video-intel xserver-xorg-video-i810) and install the new one (sudo dpkg -i xserver-xorg-video-intel_2.3.1-1ubuntu1~bwh3_amd64.deb)
  10. Wow! Now Xorg works ONCE per restart - I can work fine if I log into the system, but if I log out, system hang... Sux... But still... manageable
  11. Ok now to work... Eclipse... check... Pidgin (2.4.2 to fix an annoying bug with sharing profiles with Windows XP)... check... JDK... Yikes comes with JDK6...
  12. OK... sudo apt-get install jdk5 ... Fail! ... Damn! ... search packages for JDK5 ... Fail!
  13. Now what? packages.ubuntu.com -> libraries -> hardy. Ok got it: ia32-sun-java5-bin for JDK5 32-bit and sun-java5-bin for autodetect (in my case, 64-bit). Now that I know the name, apt-get will work.
  14. Yippee! Everything works! Now I can run my stuff, (that btw, runs flawlessly from the start - WORA in action!) play around a bit... Damn! I logged out... Sux
  15. Back to Windows... I have had enough for a few weeks
Its amazing how difficult it is to get Linux set up... Ubuntu is tons better that anything else, but still miles off... Why is it that I can go on the net, download one version of a exe and it will blindly work on Windows, but if I try to do the SAME thing on the linux side, I have to worry about 10s of things - kernel versions, distributions, this and that... JDK 5 for Windows I can get off Sun's website. For Ubuntu? Good Luck. And considering the number of bugs in Xorg integration with Intel video cards, I almost feel Micro$oft is paying Intel to make this happen!

By the way, Wine is amazing. I got most of my favorite Windows utilites (Editplus, Baretail) working with Linux, which made me feel right at home. I even got IE working, Windows Media Player wouldn't work for some reason though and I didn't have the heart to debug more installation issues. This meant Launchcast wouldn't work either, though an enterprising person has come up with a perl based solution :) I still couldnt listen to my personal station though... just the pre-existing ones, but without ads...

Oh wait... I forgot... One last catastrophe... See Wubi creates a single file in the Windows NTFS filesystem for Linux. In the middle of all the crashes, this folder got corrupted and Scandisk ended up moving all the files out... I had a lot of fun moving everything back to the right location from File0001.chk! No data loss though...

Overall, looks like I wont be shifting full time to Linux for development anytime soon. Exchange integration is still not perfect, though Evolution has come a long way. On the flip side, once set up, Ubuntu actually works faster and stabler in 64-bit than Windows in 32-bit (besides the aforementioned Intel issues) JBoss and any J2EE or even Java programs run without any issues. And Compiz Fusion is truly fantastic of course. Its just that getting the base system setup was so annoying that I got really frustrated... Its just my luck to have to deal with Intel issues...

Well, in truth I might switch, if IS tries to force McAfee AV down my throat again :) ... And if I have to work in 64-bit for some reason, Linux is pretty much the only reasonable option...

Sunday, June 22, 2008

Firefox 3 Released

Well I guess just about everyone has upgraded to Firefox 3 by now, considering they have over 15 million downloads. India has over 200,000; I think a lot of Indian ISPs install a transparent proxy... Mine certainly does :) That must be lowering the number quite a bit. Also I guess we Indians use computers mostly for work, there are relatively fewer people who use computers and have a passion for it, or are in a environment where all the software installed is not locked down :) Even at office, a lot of my developer friends stick with IE (some with IE6!)

For those who actually participated in the world record attempts you can get a certificate here. By the way, Firefox RC 3 was silently re-released/rebranded as Firefox 3 final. So amazingly, just checking for update with Firefox RC 3 installed will lead to it starting to call itself Firefox 3.

As for add ons, most are now working with Firefox 3. Google Toolbar was updated in the nick of time - a few hours before Firefox 3 final. Still not toolbar 5 for Firefox users so, the button gallery is useless... If you still have something not working, you can use this tip.

One critical add on I found missing is Tab Mix plus. I combine it with the information given here to convert my Firefox to Widefox. A developmental but stable build of Tab Mix Plus that is FF3 compatible can be gotten here. (Direct link). Unfortunately, Widefox does not work with Firefox 3 and Tab Mix Plus. One solution is to use the experimental Tab Kit addon (You have to log in, and its not compatible with TMP). Alternately, you can follow the instruction here.
  1. Navigate to your Firefox profile - %USERPROFILE%\Application Data\Mozilla\Firefox\Profiles.
  2. Inside this there will be a folder ????????.default (the ??? will be random characters). In the extensions folder inside this, there is a folder - possibly {dc572301-7619-498c-a57d-39143191b318} - having a tabmixplus.jar inside of it.
  3. Open the jar file in WinRAR. Navigate to content\tabmixplus\tab\ inside it
  4. Open the file tabmix_3.xml in a editor.
  5. Change the line saying
    <xul:scrollbox class="tabs-frame" anonid="scroll-tabs-frame" orient="horizontal" flex="1">
    to say
    <xul:scrollbox class="tabs-frame" anonid="scroll-tabs-frame" orient="vertical" flex="1">
  6. Replace the file back in the jar, restart Firefox and presto - Widefox is back...
FF3 has its own nifty new skin :) Actually the skin is different for each OS. If you want the Vista skin on Windows XP, you can download it here. If anyone is using Opera, then I am sure you have seen its new skin also; I had to download the classic skin and reinstall it as my parents use Opera and they are used to that one.

Sunday, April 6, 2008

DVD/CD/Hard Drive Mirroring and Data Recovery using Linux (Kubuntu/Ubuntu)

So one of the Y-Cables in my computer failed. This caused (I think) random voltages to pass into my hard disk, which too started failing. Soon I found myself minus a hard disk and a lot of data. I had another hard disk of the exact same model, so I decided to use a Kubuntu/Ubuntu live disk to restore my failing hard disk to the other one.

My first attempt was to use dd.

dd if =/dev/hdX of=/dev/hdY

Now this would work but only because both hard disks were the exact same model. If they weren't I would have had to create a hard disk image and then copy data from that manually... not very useful. Unfortunately, the above doesn't work - dd stops at the first error. So a little research on the net showed the way:

dd bs=4k if=/dev/hdX of=/dev/hdY conv=noerror,sync

to mirror, or for an image

dd bs=4k if=/dev/hdX of=/path/to/image conv=noerror,sync

What do each of these options do? bs=4k makes dd copy in blocks of 4KB to ensure that it doesnt miss any good sectors, noerror means dont stop for errors, and sync means in case of an error output empty bytes so that the output image is not corrupted.

This unfortunately has a problem: bs=4k is miniscule. Telling dd to work like this will take days to recover data. Ideally we need something that moves extremely fast over a hard disk, scanning and copying good sectors with a large block size and then going back to reattempt the erroneous sectors with a smaller block size. There used to be a convoluted way to do this, using a program called dd_rescue and a batch file called dd_rhelp. However, this is not very efficient - the use of a batch file by definition slows things down. So the guys at GNU have come up with a very efficient program which does this automatically, called (guess?) ddrescue.

First you need to install ddrescue to your Live CD.

sudo apt-get install gddrescue

Note you need the gddrescue package not ddrescue. If you are unable to access the internet from your Live CD, you can download gddrescue*.deb (for your version of (K)Ubuntu) from here, copy it to a flash drive and then install it inside of the Live CD using

sudo dpkg -i gddrescue_1.2-1_i386.deb

There's a lot of advanced stuff you can do with ddrescue (see the man page, or the information here, here and here) However, in most normal use cases, you can jest get the data out using this command:

ddrescue /dev/hdX /dev/hdY /path/to/save/recovery.log

or, for an image

ddrescue /dev/hdX /path/to/image /path/to/save/recovery.log

The third option is non-compulsory. What it does is read and save a recovery log, so that if you have to shut down your machine or it crashes in the middle or recovery (recovery can take a LONG time for hard disks), ddrescue can resume seamlessly from where it left off (aint it cool)

Once you have the data out, if you mirrored your hard disk, you can just start using the new hard disk as normal (first making it a master etc). If you made an image, you can get the data from it out using

mkdir imagemout
sudo mount -o loop /path/to/image imagemount

For CD/DVDs, the output of dd/ddrescue is an ISO, which can be read or burned using any standard tool. Note that for DVD/CDs all the above applies, just for dd you have to use bs=2k not bs=4k

Of course, none of the above was useful for me... just putting in a new Y-Cable stopped any errors from showing up... I actually tossed a hard disk into the trash can, realized it wasnt the hard disk which was faulty and pulled it out. (And now it is running my Windows XP)

Sunday, February 10, 2008

On Firefox 3 Beta 2

I have been trying out Firefox 3 Beta 2. The first issue I came up against was that most of my extensions simply stopped working. So lets go over the first steps when you want to switch to Firefox 3 Beta 2.
  1. Step 1: Look for updates to your extensions that work with Firefox 3 Beta 2. Visiting the developer's site or support forums can be incredibly useful.
    • Get Mouse Gestures here
    • Get Tab Mix Plus here
  2. Step 2: If no update is available, try adding a boolean field "extensions.checkCompatibility" to about:config. (More info here)
  3. Step 3: Your skin will mostly stop working on installing FX3, so switch to another skin, but hey you can still get Personas for Firefox
  4. Step 4: Install Weave, create an account, setup an encryption password.
  5. Step 5: If you are concerned about <a ping> (I certainly am), know that it is on by default in all Firefox 3 builds before Feb 1 (which includes Beta 2). There are no visual cues or warnings on a ping link being clicked. You can disable it from about:config by the following method:
This whole ping controversy reminds me of the furor when it came out that the default eBay search plugin for Firefox 1.0 (German Version) sent the search first to a "monitoring" site then to eBay itself. This was soon fixed, and the "monitoring" URL for the search was provided by eBay itself, but that did not stop many people (including yours truly) from accusing Firefox of being spyware. See the related article on mozillazine here(via the Wayback Machine). And a translated version of the discussion in the German Firefox forums here.

As for the current ping issue, as per send_pings page, this is disabled by default as of all builds of Firefox post 1st February 2008. (Which means Firefox 3 Beta 2 users still have to turn it off manually, current builds are Beta 4)

Addendum: I looked up the post I made on the German Firefox topic at the time on my (now defunct) Yahoo 360 blog and suddenly came upon this nugget of information: I am a Facts Curator. (Whatever that means).

More interesting stuff: Yahoo 360 will soon be gone forever.