Cannot connect to existing RDP session
Posted by KiDiLLuSioN in Windows on June 17th, 2011
Problem: Unable to connect to an existing RDP session on Windows box.
Solution:
- Open command prompt and login with administer arg: >mstsc /admin
- Once you logged in you can open task manager and select the Users tab
- Right click on the existing session user and select Connect
- You are now connect to the existing session and go back into task manager > Users and disconnect the administer user session
Cannot attach Asus Transformer tablet to dock
Posted by KiDiLLuSioN in Bad Days on June 15th, 2011
If you got the Skinomi TechSkin full carbon fiber skin you will experience the difficulty of locking the tablet to the transformer dock. If you have the dock already or planning on getting a dock then I don’t recommend you getting the Skinomi full skin and just get the screen protector. You will need to rip off the back skin to fit the tablet perfectly into the dock.
Input Type Button VS Submit
Posted by KiDiLLuSioN in Web Development on January 14th, 2011
<input type=”button” /> : This is not a form submission, but you can use as an event trigger for JavaScript. If no event listener is set to the button it will just be a dead button. Use this method if you want to use AJAX without refresh the page.
<input type=”submit”> : This will submit the form once it is clicked and you can also use JavsScript to control the button events. However, this will refresh the page and you will lose all the client script values in the previous page before the form submission.
Faulting application httpd.exe, version 2.2.15.0, faulting module php5ts.dll, version 5.2.14.14, fault address 0x000f36ec.
Posted by KiDiLLuSioN in Apache, PHP, Windows on November 11th, 2010
Environment: Windows XP, Apache 2.2, PHP 5.2
Problem: Faulting application httpd.exe, version 2.2.15.0, faulting module php5ts.dll, version 5.2.14.14, fault address 0x000f36ec.
Cause: Your extensions are missing dependencies.
Solution:
- First comment out the PHPIniDir line from your httpd.conf and see if your Apache starts. If yes, you can be sure that your Apache is working and something is fishy in your PHP.
- Visit this page http://php.net/manual/en/install.windows.extensions.php and see the dependencies for your extensions.
- Find the dependencies and put them into your C:\Windows\System32
- Restart your Apache and pray that it can start.
Today (12/29/2010) this happened to me again on php_curl.dll. I followed my previous solution and copied libeay32.dll and ssleay32.dll and no luck so I pulled out my ninja sword (Process Monitor). I checked and scrolled and looking for httpd.exe …. Oh yeah! It looks like httpd.exe cannot find zlib.dll (I guess they have renamed this file to zlib1.dll). So I just copied the same file zlib1.dll from the apache bin folder and renamed the copied file to zlib.dll. Problem Solved!!!!
Blue Screen of Death (BSOD) on Foxconn Netbox
Posted by KiDiLLuSioN in Hardware, Windows on November 6th, 2010
Problem: Random BSOD on Windows with Foxconn Netbox
Cause: BIOS does not support more than 6 USB devices
Solution: update your BIOS to version 943F1P06
How do you specify a different port number in SQL Management Studio?
Posted by KiDiLLuSioN in SQL Server on October 25th, 2010
Problem:
Connect to a Microsoft SQL 2005 server which is not on port 1433. How do I indicate a different port number when connecting to the server using SQL management Studio?
Solution:
127.0.0.1,6283 add a comma between the ip and port
WinSCP showing error > set mode: Operation not permitted
Posted by KiDiLLuSioN in Networking, Windows on October 25th, 2010
Problem:
Every time I upload a file to remote server I get xx/xxxx/xxxx set mode: Operation not permitted
Solution:
From WinSCP go to Options > Preferences > Transfer and uncheck the checkbox for “Preserve timestamp”
How to get the name (not label) of an Enum Value in AX3
Posted by Matt in Dynamic AX on October 15th, 2010
Sometimes you may want to get the actual name(symbol) of an Enum value, not the value/index or the label. AX2009 has a super simple function
for doing this, AX3 on the other hand doesn’t.
You will have to essentially query for it using index2Symbol method of the SysDictEnum class.
Lets say you have an Enum named YourBaseEnum and it has an enumeration value named EnumValue, which has a label Enum Value.
First, create the SysDictEnum passing in the enum number of your enum(It needs the enum number to be able to put the value you pass in
context):
SysDictEnum sysDictEnum = new SysDictEnum(enumNum( YourBaseEnum ));
Now use the index2Symbol function to retrieve the name/symbol of the enum value:
Info( SysDictEnum.index2Symbol( YourBaseEnum::EnumValue ) );
This would output the following in the info window:
EnumValue
Why linux web server consume all the physical memory?
Posted by KiDiLLuSioN in Linux, Memory on October 8th, 2010
The linux kernel is overly generous with memory. It assumes that most programs will ask for more memory than they truly need. It will honor their requests, over-committing memory up to a certain point. When resident memory and swap utilization get too high, the kernel will start looking for processes to kill (the “oom_killer”).
An attempt was made to access a socket in a way forbidden by its access permissions. : make_sock: could not bind to address 0.0.0.0:80
Posted by KiDiLLuSioN in Apache, Windows on October 5th, 2010
Environment: Windows Server 2008 Standard with MSQL, MySQL, and IIS installed
Story: Tried to install Apache HTTP Server 2.216 with default configuration on a Windows Server 2008 and got the below error message during start up.
Error Message: The Apache service named reported the following error:
>>> (OS 10013)An attempt was made to access a socket in a way forbidden by its access permissions. : make_sock: could not bind to address 0.0.0.0:80
Solution:
- Stop or disable IIS (World Wide Web Publishing Service)
- Run >netstat -ao from the command prompt and you will see PID(4) is accessing 0.0.0.0:80
- Open task manager and add the process id to the process tab. You will see that the process with pid(4) has the name “System”
- (“System” ~ Microsoft) Therefore, you can try to stop Microsoft related web apps such as SQL server reporting services
- Once you have disabled SSRS, you can go ahead and start up your Apache web server.


