What is the ACPI\PNP0A0A Device?

The Device

The device is a BIOS component found on Asus motherboards to allow Asus utilities and software to communicate with BIOS components. For example, Asus USB 3.0 UASP boosting software may need this device to be working.

Drivers and Software

This device is not installed by using the Intel Chipset Driver software or Intel Management Interface (MEI). To find the drivers for this device, visit the Asus product support page for your product and look for an ACPI Driver under “Utilities”.

Read More

DriverIdentifier doesn’t show anything after running the scan or it open Notepad

By default, after you clicking on “Scan” button, DriverIdentifier will scan and it will open your default browsers ( Internet Explorer or Firefox or Chrome..) to open the scan result. In some cases , this does not happen , it might open Notepad , or Microsoft Word … which you just see some text.

Here are the steps to fix it.

1. Click on your Start button

Click Start , then Run

2. Enter %temp%\driveridentifier\ and click OK



3. You  will see a file driver.html , right click on it , select Open With , then select Choose Program


4. Select your default Browsers

Read More

Too many connections in TIME_WAIT state when using netstat -na

Applications that handle a huge number of TCP connections, either as a server, or as a client, will often see a large number of sockets in TIME_WAIT state.
The sockets in TIME_WAIT can be seen with the “netstat -epn –tcp ” command.
If the number of TIME_WAIT sockets gets too large, your address space will be exhausted, causing a disruption of TCP traffic.
If you try a little Googling, you may be find tcp_fin_timeout option .
Do not be confused by the /proc/sys/net/ipv4/tcp_fin_timeout config item. The FIN TIMEOUT is not the same as the TIMEWAIT length.

You can force the kernel to reuse the TIME_WAIT buckets though, by setting the /proc/sys/net/ipv4/tcp_tw_recycle entry to 1. I have tested this, and it works: very few TIME_WAIT entries will be present when using this setting.

# echo 1 > /proc/sys/net/ipv4/tcp_tw_recycle
or
add net.ipv4.tcp_tw_recycle = 1 to /etc/sysctl.conf .

Read More

Linux: Move mysql data files to new location

Want to change the default mysql data_dir  (/var/lib/mysql) to new location (new partition, new disk ?)

Steps to do:
1. stop mysql ( /etc/init.d/mysql stop)
2. copy your mysql data directory to new location ( mv /var/lib/mysql/ /newlocation/mysql/)
3. chown -R mysql:mysql /newlocation/mysql
4. edit file /etc/mysql/my.inf ( change data_dir location)
5. edit file /etc/apparmod.d/usr.sbin.mysqld (change /var/lib/mysql to your new location)
6. start mysql (/etc/init.d/mysql start)

Read More

Accessing files from System32 directory using 32 bit application on 64 bit machine

Problem:

I am trying to access few files from C:\Windows\System32\Winevt on Windows 7 – 64 bit machine through .net application.

When I build my application in 32 bit , I am not able to access this Winevt directory. It complians about directory not found.
But If I build my application in 64 bit mode, I am able to access this directory without any problem.

Do I have to do anything special to access this directory using 32 bit application on 64 bit machine?

Reason:

a computer that is running a 64-bit version of Windows Server 2003 or of Windows XP, a 32-bit application cannot access the following folder: %WinDir%\System32

This behavior occurs because Windows on Windows 64-bit (WOW64) provides file system redirection.
In a 64-bit version of Windows Server 2003 or of Windows XP, the %WinDir%\System32 folder is reserved for 64-bit applications. When a 32-bit application tries to access the System32 folder, access is redirected to the following folder:
%WinDir%\SysWOW64
By default, file system redirection is enabled.

Solution:

As a walk-around solution, 32-bit applications can access the native system directory by substituting %windir%\Sysnative for %windir%\System32. WOW64 recognizes Sysnative as a special alias used to indicate that the file system should not redirect the access.
So, if we want to access C:\Windows\System32\Winevt folder from 32-bit application, we can use C:\Windows\Sysnative\Winevt instead.

Read More

How to disable email with cronjobs

By default cron jobs sends a email to the user account executing the cronjob. If this is not needed put the following command At the end of the cron job line .

>/dev/null 2>&1

For example:
* 1 * * * php /www/daily.php >dev/null 2>&1

Read More

How to export a query to csv format ?

Here is the simple sample

mysql -uusername -ppassword databasename -B -e “select * from mytable” | sed ‘s/\t/”,”/g;s/^/”/;s/$/”/;s/\n//g’ > filename.csv

Read More

apt-get on ubuntu

before running apt-get , you should update its repository

Update the Package Index: The APT package index is essentially a database of available packages from
the repositories defined in the /etc/apt/sources.list file. To update the local package index with the latest changes made in repositories, type the following:

sudo apt-get update

Read More

How to take a screenshot ?

Ever see something on your screen that you’d like to email or save for later? With Microsoft Windows , you can take a screen shot and capture an exact image of what’s on the screen.

Following the steps below to  take a screen shot and save it as a picture

1. Click the window you want to capture. Press Alt+Print Screen by holding down the Alt key and then pressing the Print Screen key. The Print Screen key is near the upper-right corner of your keyboard. (Depending on the type of keyboard you have, the exact key names on your keyboard may vary slightly.)

You can take a screen shot of your entire desktop rather than just a single window by pressing the Print Screen key without holding down the Alt key.

2. Click Start, click Accessories, and then click Paint.

3. In the Paint window, click Edit, and then click Paste.

4. When the image appears in the Paint window, click File, and then click Save As.

5. In the Save As dialog box, in the File name box, type a name for the screen shot, and then click Save.

You can now print or email the saved screen shot just like you would any other picture.

Read More

Lotus Notes: Look for a database when open mailbox

When you open a mailbox in lotus notes , it pop up a small windows saying that a <database> is not found and gives you a list of servers to look for.  Click on OK or Cancel is ok.

To avoid this annoying message , open your workspace and remove some database shortcut that is no longer valid.

Read More