Please remember to use "System.Timers.Timer" in Windows Service
I am implementing a Windows Service. I did a foolish mistake. I opened the design view of windows service and drag-and-drop the Timer from toolbar. Because I need the windows service to execute some code periodically. I found the timer won't triggered at all. I found that is Timer in Windows.Forms. It never works in Windows Service. You need to create a timer of System.Timers. Like the example following:
Code
System.Timers.Timer timer2 = new System.Timers.Timer(); | |
timer2.Interval = 10000; | |
timer2.Enabled = true; | |
timer2.Elapsed += new System.Timers.ElapsedEventHandler(timer2_Elapsed); |
Custom Error Message for jQuery validation
I found the jQuery validation is very good! Moreover, that is very easy to customize the error message. You just need to put the message in the "title" attribute.
e.g.
Code
<input title="Please enter your name" class="required" id="name" name="name" type="text" > |
Adv Network Info - What is my IP in Android
We built a tool to check network information in your Android. It will find out all internal IP addresses and the external address. That is very useful for your developer and to do security audit.
By the way, I found even I am using 3G to connect internet. It only has a private network address!
Please click here to download
or
Scan this QRCode
Javascript Errors in core.js - Joomla Administration Component
I am building a Joomla Component. I found there are some Javascript errors in core.js when I click the actions. I have found out these two variables are required.
Code
<input type="hidden" name="boxchecked"/> | |
<input type="hidden" name="task"/> |
Moreover, the form needs to be named as adminForm. That is because core.js has some javascript to do the validations. It will access your form.
Installation error - Could not create directory plug-in
When I install a new plug-in, I got this error:
"JFolder::create: Could not create directory plug-in"
Later, I found out the cause. The parameters in configuration.php are not configured correctly.
Please make these two lines in configuration.php pointed to the correct directory.
Code
var $log_path = '/home/user/public_html/logs'; | |
var $tmp_path = '/home/user/public_html/tmp'; |