24 February 2013

After A long time...!!

I dont know why i can not keep continue writing the things i have started, whether it be a blog or diary or anything... I just cant figure it out.. anyways past few days have been very hectic as there is a huge pressure to finish off the project for my final year of engineering..

Urmm.. i am not so sure about what should i write given that i havent wrote in here in a long long time.. so i suppose i would just write about some of the little problems i faced during the project which seem to be a little but still it took quite a bit of work to get around those problems...

1. $.fancybox.close() not working, Firfox giving "wrap is undefined" problem..

                         This problem, most probably occur when you are including the Fancybox.js and jquery.js twice, first in the parent window and then again in the fancybox popup window.. If you are using the fancybox type as "iframe" parent.$.fancybox.close() should work fine but if you are using it as 'AJAX' make sure to not include those two jquery files twice... !!!

So if you are facing this error, simple remove the fancybox.js and jquery,js from fancybox popup window... ! and you are good to go..!

2. Ckeditor + fancybox + javascript...
                       

                       Suppose you are having quite a few anchor tags in your parent window and each one is supposed to be applied fancybox(), which in turn opens up an popup window with each link creating a unique instance of Ckeditor in your modal fancy popup... the scenario which i faced was that when you click on the first link the fancybox and ckeditor works fine.. however once you close it and try to open up a second fancybox popup through a different anchor tag, firefox will serve you with an error saying "Editor1 already exists.." 
                      
                   The solution to this error is that you have to destroy the CKeditor instance before closing the first popup to prevent naming conflict with Ckeditor instance....it goes like this...

    $(".popup").fancybox({      
        
         type : 'ajax',
            
        'onClosed'  : function() {
            if(CKEDITOR.instances.ckeditor) {
                CKEDITOR.instances.ckeditor.destroy(); }
      }
 });

I am running out of time, will write more once i come back..!!!
Happy Coding..!
                       

27 February 2012

Gujarat Riots : 10 year later

10 years ago, at this time me and my family was terrified by the sounds of gun shootings and mobs shouting religious slogans... We could hear rioting people were somewhat close to our society and we were almost prepared that they would come and kill us. Luckily we were saved. But lot of people were not fortunate enough like us. Thousands were killed during that bloody time span in '02. Today i wanted to note down some of my thoughts about those riots. Since i was just 10 during riots i didn't even know what Riot was like until it started on 27th February, '02.. I always thought Gujarat is one of the most peaceful place on the face of earth but i was not aware that there are exceptions when even the most established facts end up as a hoax. I do not want to write about what and how things happened.. I want to write about what exactly changed after 2002...

- First major change i think is the general perception of Muslims about Gujarat Government and Police. Most of the Muslims do not trust Government and the police system anymore..

( Some might think I am exaggerating things, for those i want to tell one thing.. I myself have seen police coming to poor muslim areas where people would store some water in big tanks in case their houses are set to fire. Police used to go there and spill the water so that they can ease the work of mobs of destroying houses. I am not saying Police worked against muslims all i am saying is that police worked against a particular group of people and by my knowledge i understand it was so because the Government ordered them to do so. The police did same in 1984 during Anti sikh riots and when the government was of the other political party. Riots are sad and should strongly be condemned and prevented by all means. )

- The way people buy houses. Not a single Muslim here, wants to live or have a business in an area where Hindus are majority and vice-versa.. Its not because of the hatred, instead they fear of an another 2002 happening in the future.
( major proof : In and major city of Gujarat, if you know where a person lives you can be sure about the community he belongs to. )

- the most disappointing : Education of Muslim children was negatively affected by the riots. considering 90% of them including me, were not able to go to school for like 6 months. and my observation says during that time almost all the GOOD SCHOOLs where in Hindu majority areas, atleast in my city. Therefore Muslim parents chose to admit their children in nearest schools possible even if they were not really up to the standards. vice-versa is also true for Hindu children going to Muslim Schools. but that number stands far less. However now things have started to change... !!
(i used to go in a school in a Hindu majority area, there were almost 20 muslim classmates before riots, after 6 months when i again went to class there were only two of us.)

- Media the ugly truth.. 60% of the state print media pretended to be Neutral and truthful on the cover page but inside they used to present things in a way which motivated the rioters.. not all of them did it but majority of them did.

======================================================================

I could go on for long. but this list is an implication how exactly things were POLARIZED after 2002, however they are slowly improving.

But we have still far to go for the unbiased, peaceful society. Muslim areas are still not provided with the basic infrastructure. There are very less Banks, ATMs, quality roads etc in these areas. I am highly hopeful that one day this wont be true, any longer.

(We do not have Gas Pipelines in our area which are much cheaper and safer then the gas cylinders we use , the main pipe line of gas is just 1 km away from where i live. still they deny to give a connection saying "We are not ordered to service in that area, thank you")

07 February 2012

"there are no categorized items" issue while Installing ADT plugin for eclipse

As one of my friend faced it and told me that while installing ADT for eclipse the software list contained this : "There are no categorized items", solution to this is
Untick the "Group items by category check box" 

31 January 2012

A poem

I am bad when it comes to poems that too specially in english.. but here is a small poem i came up with today...

they say, life is this and life is that
i think it is what you give and get...

they say, life is there in Gandhi's deed
i see, life is also there in Hitler's greed...

they say, Life is there in God's idol, made of clay..
but I saw life in poor child's foodless day..

they say life is simple, just sitback and relax..
i now know its all about you and your Acts.

they say life is in what you are and what you got, too
but, Finally I realized life is actually what i am going through..

: )

24 January 2012

A problem is preventing Windows from accurately checking the license for this computer. Error code: 0x8007000 : Solved

Recently i was fixing somebody's pc. which was giving the above error whenever i tried to boot normally.. However i was able to boot in safe mode with command prompt. This error actually drove me nuts. But finally as always i found the solution.

This usually occurs when these three files are missing or corrupted...

C:\Windows\System32\secupd.dat
C:\Windows\System32\oembios.dat
C:\Windows\System32\oembios.bin

So what you need to do is..

Copy this files from some other Computer having XP installed. or you can also copy them from Windows installation disk. To copy from windows disk you need to do following

1. Boot in safe mode with command prompt : to do that press F8 after the display of your bios.

2. Once you are done. insert windows installation disk and browse to the I386 folder copy the file with extension XXXXX.XX_ where XXXX.XX is the file name with first 2 letters of the extension. Rename it to a .cab file and extract the file to system32.

that means rename the file oembios.DA_ by oembios.cab...

3. reboot and you are done..

If this doesn't work.. let me know...!!

09 January 2012

Honesty

I came across a weird incident today. It was weird because it was like excitement, joy, disappointment, and guilt everything mixed in one pack..

So one of my friend who knows that i am quite good at computers told me that his old neighbor was having some problem with his PC. i told him i could help him but i would take 100 bucks, market rate is 300 bucks by the way..!! now lemme clarify that i told him about the money just because i didn't want to be available all the time... I mean there are a lot of people who call me when they need technical assistance in this sort of things but i don't want to be doing it for free always, considering my relations with people i just get things done with the fees of one "thank you" but sometimes its to much... Right now i have three CPU boxes at my place which i am suppose to repair with no fees whatsoever.. So coming back to the point, for the first time i went to this person's home with intention of making money, which was "exciting"..I took a look at  PC, and the only solution according to my knowledge was reinstalling the entire operating system which would take almost an hour, and furthermore i would have required to install all the softwares again. I tried to figure out an alternate and appropriate solution with no luck which was "disappointing". meanwhile another person whom Mr.Rana(the person with Problem PC) had called two days before for the same problem, came. He didn't come for two days therefore Mr. Rana had called me... this late lateef person is a professional hardware engineer, he didn't really have any degree, but his father taught me everything related to PC..he is distant relative of Mr. Rana so he gets things done for free, the only problem is that he is never not time...anyways he told me the solution is just a small trick... I just let him do it and he did it in no time... here came the "guilt" of not being able to do it... afterwards when i was leaving the house Mr. Rana handed me 100 bucks, i resisted realizing that i wasn't the one who solved the Error but he still put it in my pocket saying it was for my efforts... Here comes the "joy" you get when people appreciate you no matter you succeeded or not.....


Thank you Mr. rana, it was pleasure meeting you!! I am gonna save this 100 bucks always..

07 January 2012

Issue : intex speakers doesn't play songs from USB...Solved..!!!

So just now one of my cousin called me and said his Intex speaker has stopped playing Music from his USB pen drive... He told me that his speaker's USB port might have stopped working.  So i tried to figure out the solution.. and found it...This problem might occur if you are trying to play your media files from the Pen drive which is formatted as NTFS... the reason is that these Intex speakers are not able to access files in NTFS format, you need to change the format of your pendrive to more simple formats such as FAT or FAT32... So Follow these steps and you will be enjoying your Songs again...

1. Determine the format of your pen drive if it is NTFS or FAT...to do that insert pen drive to PC and right click the drive of USB.. select properties from there.. you will see something like this...


2. If it is NTFS than you need to change it to FAT.. for that Right click again and select format.. and format as FAT... it will look something like this... Remember to take backup before formatting..

3. again copy songs to your pen drive and Enjoy... its working again..