[Solved] Disqus causing admin panel issues in wordpress

Disqus comment system was causing javascript errors, which in chrome console looked something like this:

Uncaught Syntax error, unrecognized expression: [href=edit-comments.php?page=disqus]

It caused unmovable widgets, screen-options didn’t open and other related javascript issues in admin panel.

After some researching it turns out, there’s a simple fix.

In /wp-content/plugins/disqus-comment-system/disqus.php, find:

href=edit-comments.php?page=disqus

and replace it with:

href=”edit-comments.php?page=disqus”

Cheers

[HowTo] Open thumbs.db and extract thumbnails from it

Thumbs.db is a file used to store thumbnail data of a folder in Windows. It makes loading of thumbnails significantly faster, however it has some privacy issues. Like if you delete an image, its thumbnail might still be there in thumbs.db file which would allow you to view it.

There’s an open source python script called Vinetto available to extract all the thumbnails in open.db to a folder. It works on Linux, Windows and Mac OS. You can download the script from here.

On Ubuntu, you can use apt-get to install vinetto:

sudo apt-get install vinetto

To extract thumbnails:

vinetto -o ./thumbnails ./thumbs.db

This will extract all the thumbnails inside thumbs.db to thumbnails folder.

Cheers!

[SOLVED] UNMOUNTABLE_BOOT_VOLUME upon booting in Windows 7

I was fixing my friend’s computer hard drive whose partition structure had gone corrupt. I restored the partition structure using testdisk. However, on booting through this hard drive, BSOD appeared. It said UNMOUNTABLE_BOOT_VOLUME. The hard drive was perfectly healthy, so the error looked a bit out of place. I looked into google and found that most of the people who had this error had 2 SATA drives. My friend had 2 SATA drives too.

So, I switched the cables (connected HDD1 with HDD2’s cable and vice versa) and voila! It worked!

If that doesn’t work for you, you can remove the other drive completely and see if the problem is really with having 2 drives. You can also try replacing the cables with new one.

Cheers!

[HOW-TO] Restore recovery partition on Asus 1005HA

A friend of mine who has Asus 1005HA deleted his recovery partition to free up disk-space. He didn’t knew what the consequences could be. He felt the need of recovery just few days after it and he realised that he couldn’t use the recovery mode anymore. He gave me his netbook. It took me a while to figure out how to restore the partition.

What you require:

Another computer with DVD drive
USB flash drive (minimum 1GB) and another USB flash/hard drive(minimum 4.5GB)
PEtoUSB
ISO extraction software (winrar/7zip)
Any linux distro

Once you are setup with the requirements, follow these steps to restore:

    • Extract WINPE.iso to any folder on harddrive on second computer. Suppose this folder is D:\WINPE
    • Edit D:\WINPE\I386\SYSTEM32\WINPESHL.INI:

Change:
AppPath=x:\EPCRecover.exe
To:
AppPath=x:\GHOST32.EXE

    • Insert pendrive in the computer, and use PEtoUSB to make pendrive bootable. In Vista and Win7 please use admin mode.

Check ‘USB Removable’, and select the pen-drive.
Check ‘Enable Disk Format’.
Source Path To Built BartPE/WinPE Files: D:\WINPE
Check ‘Enable File Copy’ and select ‘Overwrite Always

    • Copy \Recovery\envir.GHO and \RECOVERY\envir.cmd from DVD to the root of your pen drive.
    • Convert your Pen-drive filesystem from FAT32 to NTFS by executing the following command in command-line:

convert x: /fs:ntfs
//change x to your pen-drive letter.

    • Disable the boot-booster on your 1005HA by pressing F2 two times as soon as you switch it on and disable it in BIOS.
    • Insert the pen-drive on 1005HA and press Esc repeatedly on bootup and select the flash drive to boot from. You’ll get into WINPE environment and Norton Ghost will start. Select to disk, from image and select envir.gho. This will repartition your complete hard-drive as it was when you purchased. Please note that this will destroy any data on your hard-drive. Make sure you back-up your data before doing this.
    • Download a linux distribution which recognises NTFS partitions. Use unetbootin to make the distribution USB bootable. Boot into live mode. I recommend Uubntu NBR for the purpose. Mount the partition labeled ‘PE’, this is your recovery partition.
    • On second computer copy \Recovery from the DVD to a larger pen-drive/hard-drive. Connect this drive to 1005HA and copy all the contents in \Recovery from your pen-drive to root of PE.
    • You can also edit the WINPESHL.INI to look like this:

AppPath = x:\minint\system32\recover.exe

This is it. Restart your computer.

Cheers!!

[How-To] Change default application installation location on windows xp

So, you just want to keep a partition for Windows XP and another partition for all your applications that you install. You can change it in all the installations manually but changing the default location is a much better idea. And there are also some applications which don’t let you change the default path.

XP uses the C:\Program Files directory as the default base directory into which new programs are installed. However, you can change the default installation drive and/ or directory by using a Registry hack.

Run the Registry Editor (regedit)and go to

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

Look for the value named ProgramFilesDir. by default,this value will be C:\Program Files. Edit the value to any valid drive or folder and XP will use that new location as the default installation directory for new programs.

Note: This post was written originally for www.techmindz.com by me. You can find the post here