Enums are lists of constants. When you need a predefined list of values which do represent some kind of numeric or textual data, you should use an enum.
You could enter number or string to get the specific value
...
Wednesday, 22 February 2017
Javascript Example To Call an Ajax
Example code in javascript to call an ajax
function changeDeliveryTime() {
var deliveryMethod = $('#deliveryMethod').val();
var delAddress = $('#delAddress').val();
var schedule = $('#scheduleko').val();
$.ajax({
type : "GET",
url : "/ajaxchangedeliveryschedule.do?deliveryMethod=" + deliveryMethod + "&address=" + delAddress + "&scheduleId=" + schedule,
success...
Miscellaneous useful sites
JSON FORMATTER
Online Date Formatter for Java
Angular
Maven Repository
Some Angular Tutorials
Regex Tester
Another Good Regex Tester
Cron Tab Maker
Cron Tab Maker Based on Quartz (java)...
JQuery set maximum date on date input.
This entry will set the max date to 13yrs and below
normally use for registration for above 13yrs old only
http://stackoverflow.com/questions/16232594/datepicker-set-date-during-page-load
![CDATA[
$(document).ready(function() {
$('#date-input').datepicker({
}).datepicker( "option", {
setDate:"0",
maxDate:'-13y -1d'
}...
Setting and Getting Session Storage Sample Code
Alternative to hidden input type,
var isWeekly = sessionStorage.getItem("weeklyOrder");
sessionStorage.setItem("weeklyOrder", true);...
Some Interview Question
What was your bigger achievement?
"I have several notable accomplishments in my career. Probably the most notable accomplishment was the delivery of the most recent version update to one of our core products for customer payments. This was a 12-month project and I was one of 8 team members. What made it notable for me was that my role expanded from being one of the tech team members to taking the...
Different Ways To Read A Text File in Java
There's a lot of way to read a text file in java and listed below are some methods I used....
How to declare a new exception in Java
Sample java code to declare a new exception.
public class MyNewException extends Exception {
private static final long serialVersionUID = -7994546786269588726L;
public MyNewException() {
super();
}
public MyNewException(String msg) {
super(msg);
}
...
Display and Change Date in Ubuntu Terminal
I have this requirements before to run a batch job every day and check the generated records.
Of course you don't wait for tomorrows outcome so sometimes we need to age the pc or system date.
...