Johnrock Codefee
Thursday, November 12, 2015
How to Enable Win XP, Win 2003 ... to access NAS Network
To access the network shares Windows relies on one of the Windows Service "Network DDE DSDM" also known "Manages Dynamic Data Exchange (DDE)", If this service is stopped, DDE network shares will be unavailable.
To Start this Service:
Go to Windows Start Button-->Administrative Tools-->Services, locate "Network DDE DSDM" and to set it to "Automatic" then start up the service.
Friday, March 6, 2015
MySQL Settings
Configuration File Location:
for Windows 7: C:\ProgramData\MySQL\MySQL Server 5.6\my.ini
How to move database to different directory
- Stop the MySQL instance service.
- Copy the data directory to the location where the new data directory should be.
- Giving a full control privileges to user NetworkService on the new data directory, otherwise the service won't start.
Thursday, October 23, 2014
WMI Error 0x80041003 in Event Viwer while Windows Server 2008 startup
The error message in Event Viwer show as below:
Event filter with query "SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA "Win32_Processor" AND TargetInstance.LoadPercentage > 99" could not be reactivated in namespace "//./root/CIMV2" because of error 0x80041003. Events cannot be delivered through this filter until the problem is corrected.
Here a script can fix this problem.
To run this script require administrator permission. Copy the script code are shown below
into fixwin7.vbs file, Then open the Command Prompt window as a Administrator and run this script file.
''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\subscription")
Set obj1 = objWMIService.ExecQuery("select * from __eventfilter where name='BVTFilter' and query='SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA ""Win32_Processor"" AND TargetInstance.LoadPercentage > 99'")
For Each obj1elem in obj1
set obj2set = obj1elem.Associators_("__FilterToConsumerBinding")
set obj3set = obj1elem.References_("__FilterToConsumerBinding")
For each obj2 in obj2set
WScript.echo "Deleting the object"
WScript.echo obj2.GetObjectText_
obj2.Delete_
next
For each obj3 in obj3set
WScript.echo "Deleting the object"
WScript.echo obj3.GetObjectText_
obj3.Delete_
next
WScript.echo "Deleting the object"
WScript.echo obj1elem.GetObjectText_
obj1elem.Delete_
Next
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
Explorer crashes due MSVCR100.dll in Windows 7
Faulting application name: explorer.exe, version: 6.1.7601.17567, time stamp: 0x4d672ee4
Faulting module name: MSVCR100.dll, version: 10.0.40219.325, time stamp: 0x4df2bcac
Exception code: 0xc0000005
Fault offset: 0x000000000003c145
Faulting process id: 0x1be8
Faulting application start time: 0x01cf723c3fbeee54
Faulting application path: C:\Windows\explorer.exe
Faulting module path: C:\Windows\system32\MSVCR100.dll
Report Id: 825626cb-de2f-11e3-ab39-0026b904b93e
Faulting module name: MSVCR100.dll, version: 10.0.40219.325, time stamp: 0x4df2bcac
Exception code: 0xc0000005
Fault offset: 0x000000000003c145
Faulting process id: 0x1be8
Faulting application start time: 0x01cf723c3fbeee54
Faulting application path: C:\Windows\explorer.exe
Faulting module path: C:\Windows\system32\MSVCR100.dll
Report Id: 825626cb-de2f-11e3-ab39-0026b904b93e
The synwinxt.dll of Synergy caused this issue reported before:
Solution:
go to the C:\Program Files\Synergy folder and rename the synwinxt.dll to synwinxt.dll.bak
Saturday, January 18, 2014
The all Android supports measurements units
- px (pixels): Dots on the screen.
- in (inches): Size as measured by a ruler.
- mm (millimeters): Size as measured by a ruler.
- pt (points): 1/72 of an inch.
- dp (density-independent pixels): An abstract unit based on the density of the screen. On a display with 160 dots
- per inch, 1dp = 1px.
- dip: Synonym for dp, used more often in Google examples.
- sp (scale-independent pixels): Similar to dp but also scaled by the user’s font size preference.
dip unit for everything else
Sunday, December 15, 2013
How to remote debug android emulator for windows
For Remote Machin run with SDK and Android Emulator
1. Install freeSSHd on remote machin
2.1 start freeSSHd. don't run freeSSHd more than one time, It will
make the second freeSSHd instance show SSH Server start faile.
2.2 in the windows taskbar bottom right corner find out freeSSHd
icon and click setting menu item.
2.3 in the Server status tab make sure SSH server is running
2.4 In Users tab add new user for ssh login
2.5 In Tunneling tab checked 'Allow local port forwarding'
2. Install android SDK and run emulator in remote machin.
For Development Machin run with Eclipse and SDK
3. Setup putty SSH client
3.1 open putty go to 'Connection -> SSH -> Tunnel' add forward port as follow:
option: Local, Auto
L5554 Localhost:5554
L5555 Localhost:5555
5554 is the first running emulator in remote machin, if you wanna connect more emulators
you have to add addtional pairs of port as above.
3.2 go to 'Session' add remote machin IP with SSH 22 port, Then save it to session name, the tunnel
setting you do above will save into this session name.
4. connect to remote machin, type login name and password to login.
and just keept putty running here as a SSH tunnle connector.
5. stop adb server in develop machin, and restart it again or let step 6. do it automatically.
adb kill-server
6. relocate devices, remote emulator should be show.
adb devices
Sunday, July 7, 2013
Relocate All Folders Setting in Visual Studio
Change all location settings in the Registry below
Visual Studio 2010
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0
Visual Studio 2008
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0
HKEY_CURRENT_USER\Software\Microsoft\MSDN\9.0
Microsoft SQL Server Management Studio
HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server
HKEY_CURRENT_USER\Software\Microsoft\MSDN\8.0
Subscribe to:
Posts (Atom)