Category: "Q&A"
Powershell running as a schedule task
That is possible to set as a schedule task.
You can use the following command line:
powershell -Set-Executionpolicy bypass - file test.ps1
Please remember to set Set-Executionpolicy bypass. It can avoid the confirm message.
How to make read only text field in xcode
I spent about half hour to find a read-only property for Text field in xcode. There is no such function. Should I modify text change event to reject any user typing? Actually, the most proper way is to uncheck user interaction enabled under the properties window for that text field.
If you need to do it programmatically, please following this example:
Code
self.text1.userInteractionEnabled |
Java Problem on OSX Yosemite
I tried to run my Android Studion in Mac after I upgarded to OSX to Yosemite. I got this error message: To open 'this Java application' you need to install the legacy Java SE 6 runtime." Even I installed java sdk, that is not working. To overcome this issue, I installed java for OSX, please follow this link,http://support.apple.com/kb/dl1572. That will works!
404 Error for 7z
If you upload a 7z file to an iis server and you try to load from web, then you got a 404 error. Even you checked the resource path is right. You are sure there is a file. Please check whether you have set the mime type for .7z file type. If not, please add "application/x-7z-compressed" for .7z. Then it should be work.
VPN Server Router - ASUS RT-N12
Sometime, I need to access my home network in Hong Kong. Moreover, in some cases, I need to make sure my clients' websites are accessible from oversea. So, I need a VPN connection in Hong Kong. Recently, I was in Hong Kong for more than a month. This times is a good time to improve my home network in Hong Kong. I bought a VPN Server Router , ASUS RT-N12. I love it. It has a Dynamic DNS service. I am using a cable service in Hong Kong, so I cannot have a fix ip. So, that is helpful to access the router from oversea. Also, it has PPPTP VPN, up to 5 users at the same time. That is good enough. I am in Australia. I have no problems to access my home network from desktop and phones via VPN! The most important things, it is only HKD$256!