My Experiments with Life

August 17, 2011

Vista, Trojan and File Association issues

Filed under: Tech — alanabraham @ 4:16 am
Tags: , , ,

2:00 AM

Cellphone ring cracked into my sleep.  “ahh..aww Hello…!”

“Da, it’s me Nayana.”

“Ha.. What’s the matter?”

“Nothing, my Laptop got a virus infection”


“Some Program called Vista Antivirus tells it detected viruses on my Laptop. No I can’t access web”

“It’s a fake application, a trojan”

“What shall I do?”

“Go to Symantec site and Get norton trial”, I told the easy way.

“I can’t access internet.”

“Okay. Then can you bring it next day.”

“Yeah, sure.”

Two days later. She called again,”I removed the trojan with AVG.”

“Good , fine.”

“But I can’t open any programs by double clicking.”

“What happens when you do that?”

“It shows some error.”

“What error?”

“File Type….blah blah.”

I tried explaining methods to remove them, but as she said the trojan was already removed by AV. I assumed some left over piece of worm or any OS problems caused by the trojan.“OK. Bring it next day.”



Next Day.

She told me that she installed AVG followed by Malwarebytes’ Anti-malware. Now I have to diagnose it considering the modification done by the AVs also. After a brief analysis, I found it was some problem with file association and began to check the regular file association Tools->Options as in Windows XP. Sadly, Vista abstracted that features(Win 7 also). Now I need to sail through the registry. I guessed it should be somewhere near the shell\open option for exe and my memory on some earlier reg tests points to somewhere in HKEY_CLASSES_ROOT. Normal .exe option was seen to be inappropriate. But searching through, I got to the key HKEY_CLASSES_ROOT\exefile

All other options except ‘open’ in the right click menu were working like ‘run as administrator’ etc. Observing the key I found HKEY_CLASSES_ROOT\exefile\shell\open has no ‘command’ key inside whereas HKEY_CLASSES_ROOT\exefile\shell\runas and HKEY_CLASSES_ROOT\exefile\shell\runasuser. I created a command key inside open key with values as below.


@="\"%1\" %*"

which is same as in runas\command and runasuser\command.

Hurray, it worked.


May 31, 2011

Questions India ask to Google

Filed under: Tech — alanabraham @ 1:22 pm
Tags: , ,

Its quite interesting to know what other people are  thinking. Even more interesting to know their doubts. Google stands as the Wise Old Man who answers our doubts. We know what all kinds of questions we ask to Google. So what will be others asking? Google Zeitgeist is a feature tells what people were asking google in a year. They have all weird graph stuff to show what are the rising trends in search. But to know the top 10, you just need to look at the search autocomplete (or search suggestion) feature. Here are a few wh questions that Indians ask Google


1. Who




2. What



3. Where


4. Why


5. Which


6. When 


7. How




Check out the first among top 10 how searches- ‘how to get pregnant’ LOL, its funny. That’s what is Indian women searching. Hmm, interesting, really interesting…. Smile

February 26, 2011

Fixing Volume Control Unit of Creative Inspire M2600 2.1 Speaker System

Filed under: Tech — alanabraham @ 11:29 am
Tags: , , , , , , ,


I have a creative inspire m2600 2.1 speaker system with desktop computer. Though the sub-woofer quality declined after an year after I bought it, the speakers are cool. Its volume control unit wasn’t working for 1-2 years. But I was adjusting by tightening the volume control knob. Whenever someone touch the knob, I need to go through the herculean task or re-adjusting.


Six months back, I went to a local electronic shop to repair the volume control unit. They said me that the resistor inside the chip went wrong and I need to get the chip or the unit to be replaced. You can see the chip here


I know that would cost me so much for something that I’m not using frequently. So I left it as it is.

Today when I need to watch a movie, I found that knob is not at all working. So I just googled to know whether I can buy the chip from Creative or from Ebay. A lot of other people also had the same problem. Carefully reading through the forums, I got the solution.


Some people solved their knob problem with a little lubricating oil or WD-40 or petrol (I don’t recommend petrol, cause their may be heat and petrol can ignite the knob… LOL)Since I can’t get any petrol or other similar lubricants, I used a lubricant made by mixing coconut oil and kerosene which was there in my store room and it worked like a charm.

Apply 2-3 drops of your lubricant on the knob after disconnecting it (as in figure) from the wires. Keep it open for 2 –3 minutes and then wipe off any lubricant spread over other parts of the chip. Connect the pins to the connector and check your sound system.

December 27, 2010

libwinmm in mingw using C-Free IDE

Filed under: Tech — alanabraham @ 6:12 am

It was Joe who started using C-Free IDE first in our friend circle. We were so much depended on the Turbo C++ for console programming earlier. When we migrated to Windows Vista and later, to Windows 7, we looked for some pretty Editor + Compiler for small programs in C/C++. We dont need Visual Studio because that is so big. All others werr also rejected due to some reason or another. So Joe came with C-Free with an old mingw inside it. But we were ok with it unless someone is using a conio.h which was there in our Turbo C++ library.

C-Free also facilitated using windows API to create some GUI Forms. This day, i started to play some WAV file from a form using PlaySound() function in the API ending up in lots of errors like

error : PlaysoundA@12

Then i added


#pragma comment(lib,"winmm.lib")

But error remains. I saw that in mingw of c-free, instead of winmm.lib,  libwinmm.a is used in Code::Blocks, DevC++ etc. When checked, i saw the same is true as mingw\lib had a libwinmm.a file. So changed to

#pragma comment(lib,”libwinmm.a”)

The error remains the same.

After taking a whole night, i found the real cause of all evil as a linker option


If you need only for that Project go


or for all C-Free programs

Build->Build Options->Linker

After reaching to this point

Linker->Linker Options

Add -lwinmm

The code main.cpp is as follows

#pragma comment(lib,"libwinmm.a")
const char g_szClassName[] = "myWindowClass";

// Step 4: the Window Procedure
        case WM_CLOSE:
        case WM_DESTROY:
            return DefWindowProc(hwnd, msg, wParam, lParam);
    return 0;

int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
    LPSTR lpCmdLine, int nCmdShow)
    HWND hwnd;
    MSG Msg;

    //Step 1: Registering the Window Class
    wc.cbSize        = sizeof(WNDCLASSEX);         = 0;
    wc.lpfnWndProc   = WndProc;
    wc.cbClsExtra    = 0;
    wc.cbWndExtra    = 0;
    wc.hInstance     = hInstance;
    wc.hIcon         = LoadIcon(NULL, IDI_APPLICATION);
    wc.hCursor       = LoadCursor(NULL, IDC_ARROW);
    wc.hbrBackground = (HBRUSH)(COLOR_WINDOW+1);
    wc.lpszMenuName  = NULL;
    wc.lpszClassName = g_szClassName;
    wc.hIconSm       = LoadIcon(NULL, IDI_APPLICATION);

        MessageBox(NULL, "Window Registration Failed!", "Error!",
        return 0;

    // Step 2: Creating the Window
    hwnd = CreateWindowEx(
        "The title of my window",
        NULL, NULL, hInstance, NULL);

    if(hwnd == NULL)
        MessageBox(NULL, "Window Creation Failed!", "Error!",
        return 0;

    ShowWindow(hwnd, nCmdShow);

    // Step 3: The Message Loop
    while(GetMessage(&Msg, NULL, 0, 0) > 0)
    return Msg.wParam;

This doesnt really qualify for a post in a blog, but done this is the first step in another experiment. Wait for more.

May 13, 2010

Resume Rapidshare, Megaupload, Mediafire, Hotfile free downloads

Filed under: Tech — alanabraham @ 2:20 am

The major file hosting sites like Rapidshare, Megaupload, mediafire etc. dont allow the resuming of paused downloads.
This following trick will be working on any file that you stopped downloading (especially large size) in midway.



Mozilla Firefox

The Background Info

1. Firefox (im talking abt 3.5+) usually downloads a file when u click save button in two files

* the original file with size 0
* the .part file named as “FILENAME.EXTENSION.part” , where FILENAME.EXTENSION is the real file

2. When you download something from sites like Rapidshare, Megaupload etc or any other sites, the .part file keeps increasing its size. After the whole download completes, the original file is stored with the data in .part file and .part file is removed.


1. Restart download after saving the previous broken-downloaded .part file to another location
2. Pause download after few seconds (dont take more than 10 seconds for the following processes).
3. Delete the new part file and replace it with old .part file with the same name of new file
4. Resume download



This tip will help you to resume a download (especially large size) in the following cases:

* Accidentally removed transfer from the transfers tab.
* Closed Opera with an intention to resume download next day but transfer is missing when Opera is started.
* Resuming download with an another high speed mirror.

The following will work when web server allows resuming of broken downloads.

1. Start download again and save with another name.
2. Stop transfer after few seconds.
3. Delete new download file.
4. Rename old download file with new name.
5. Resume transfer.

Note : If you leech from here, pay the credits….LOL

Also check my post at  here and here

Create a free website or blog at