ibrahim

 

We have a laptop running Windows XP and recently it started to go really slow.  I went through and looked at the processes that were running using Task Manager and got rid of the ones that were not needed.  That did not seem to solve the problem, so I downloaded ProcessExplorer.  It showed that Hardware Interrupts were using a high amount of the CPU.

Turns out ATA/IDE controllers will often revert back to PIO mode instead of Ultra-DMA.  (MS KB article on the problem here.)

To see if you have the problem, check the controller’s Primary and Secondary IDE settings: Device Manager -> IDE ATA/ATAPI controllers -> Primary or Secondary IDE Channel -> Properties -> Advanced Settings.  Look at the Current Transfer Mode field.  If it’s “PIO” then you have the wrong setting and you’ll need to uninstall the driver, reboot and let XP reinstall the driver.

After doing this, the problem went away.

 

I was working with a program which worked perfectly fine in Windows XP, but when I tried to run it in Windows 2003 Server, I got the following error:

The application failed to initialize properly (0XC0000005). Click OK to terminate the application.

This problem is generated by Microsoft’s Data execution prevention (DEP) . For more information, reference Microsoft Technet
Any application that is not registered with DEP will receive an exception with status code STATUS_ACCESS_VIOLATION (0xC0000005).

To get around the problem, follow this procedure:

The following procedure describes how to manually configure DEP on the computer:

  1. Click Start, click Control Panel, and then double-click System.
  2. Click the Advanced tab. Then, under Performance, click Settings.
  3. Click the Data Execution Prevention tab.
  4. Click Turn on DEP for essential Windows programs and services only to select the OptIn policy.
  5. Click Turn on DEP for all programs and services except those I select to select the OptOut policy.
  6. If you selected the OptOut policy, click Add and add the applications that you do not want to use DEP with.

After adding my application to the list that do not use DEP, it started working.



 

I upgraded my Fedora 9 Dell Precision 670 workstation to Fedora 10 using preupgrade.  When it rebooted, it got stuck with the following message:

cannot mount /dev/root onto /sysroot

So, after checking Google, I came across this thread, http://forums.fedoraforum.org/showthread.php?t=205115.  Since the boot partition is /dev/sda1 and the main partition (with /bin, /home, /etc and so on) is /dev/VolGroup00/LogVol01, I had to do the following to rebuild initrd:

** Boot up using the Fedora 10 LiveCD **

su
mkdir -p /mnt/sysroot
mount /dev/VolGroup00/LogVol01 /mnt/sysroot
mount /dev/sda1 /mnt/sysroot/boot
chroot /mnt/sysroot
/sbin/mkinitrd -f --with=scsi_wait_scan /boot/initrd-2.6.27.5-117.fc10.i686.img 2.6.27.5-117.fc10.i686

After rebooting, it worked!  It seems the problem was that initrd did not include the scsi_wait_scan option and therefore did not wait long enough for the SCSI drives to come online.

 

I use TrueCrypt to encrypt the contents of my USB memory stick in case I lose it somewhere.  Today, when I was trying to mount the drive under Fedora, I got the following error:

Failed to obtain administrator privileges: sudo: sorry, you must have a tty to run sudo

The solution was simple.  Do the following:

  1. sudo visudo
  2. Comment out #Default requiretty

It should work now.

 

Yesterday, I started getting this error when I tried to login into my machine at home:

ssh_exchange_identification: Connection closed by remote host

It seems there is a connection limit for the sshd server, so it would not let me log on. The problem was that I was not near the server, so I could not restart it. Fortunately, if you wait a while, the connections are released and you should be able to log back on to the machine.

 

I ran into the following error when I tried to install and run the Liferay+Tomcat 6 bundle on Fedora 9:

java.lang.ArrayIndexOutOfBoundsException: 0
	com.liferay.portal.util.PortalInstances._getDefaultCompanyId(PortalInstances.java:233)
	com.liferay.portal.util.PortalInstances._getCompanyId(PortalInstances.java:189)
	com.liferay.portal.util.PortalInstances.getCompanyId(PortalInstances.java:71)
	com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:110)
	com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:132)
	com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:74)
	org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)

Continue reading »

 

Last year, while I was at the Eid festival at the DC convention center, I saw a vendor showcasing PeaceTV.  PeaceTV is an Islamic channel run by Dr. Zakir Naik.  It has some good programming as an alternative to what is on regular TV.  The vendor said that I had to only pay a one time installation fee and no monthly fees, which sounded great.  As an added bonus, I would also get Aljazeera English (good alternative to CNN and Fox News) and SaudiTV (good for watching tarawih during Ramadan) for free.  The installation went fine, but on October 1, Peace TV switched from Galaxy 25 to Galaxy 18, so the dish I had gotten installed last Ramadan needs to be reconfigured to pick it up again. I checked with the original installer, and he wanted $100 to come out and do it.  I thought that was a little too much to just come and turn the dish in the right direction, so I decided now might be a good time to learn as much as I could about satellite TV.

Continue reading »

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
© 2012 Ibrahim Shafi Suffusion theme by Sayontan Sinha