Openclipart.org is down
Openclipart.org is a good source of public domain vector images. But I found it is down for more than a week. Fortunately, download.openclipart.org is still up! That is the only way to get the images from them!
Android Layout XML File is case-sensitive!
In the most situation, XML file is case-insensitive. I thought that is the same case as Android Layout XML. There is no different between
Google Analytics - Real Time Stats
I found there is a new feature in the new version of Google Analytics. You can see the Real Time Stats. You can see the number of visitors at your site. Moreover, You can see where they came from, what is the traffic sources and the name of page they are reading. That is so cool!
The Easiest Form Validation - JQuery Validation

I tried to use JQuery Validation. That is the easiest form validation library!!!!!
I just need to include the jquery library and its js file. Then I add these code in $(document).ready
Code
$([form element]).validate({rules: { | |
[field name]: { | |
[built-in Validation methods] | |
... | |
} | |
} | |
}); |
This is the validation rule.
I think that is easier to explain in an example.
I got a form like this:
Code
<form id="frm" method="POST"> | |
Name : <input type="text" id="name" name="name" /> <br/> | |
Email: <input type="text" id="email" name="email" /> | |
<input type="submit" id="submit" value="Submit"/> | |
</form> |
Then I just need add those code in $(document).ready
Code
$("#frm").validate({rules: { | |
email: { | |
required: true, | |
email: true | |
}, | |
name: "required" | |
} | |
}); |
Then the form will be validated when the user submits the data.
ERROR: Unknown option '--no-crunch' in Eclipse
I got an error in Eclipse, ERROR: Unknown option '--no-crunch' in Eclipse. I cannot start the emulator. The reason is I updated ADT plug-in in Eclipse. But I have not update the SDK at the same time.The new ADT Plug-in used the new option in SDK.
The solution is simple, please click SDK Manager in Eclipse, it will update itself. Remember the option,"Help->Check for updates", won't update your SDK. It will only update the ADT plug-in.
