Software

Kyocera Hydro Elite on its way to Verizon -
Kyocera Hydro Elite on its way to Verizon -
13 minutes ago
SMS message icon
SMS message icon
27 minutes ago
25 Free Vintage Style Fonts
25 Free Vintage Style Fonts
about 1 hour ago
RT @jmspool: How the FiftyThree team rethought zoom in their Paper app:
RT @jmspool: How the FiftyThree team rethought zoom in their Paper app:
about 1 hour ago
SEO
The post The Full First Day of CM Summit, In One Place appeared first on John Battelle's Search Blog.Thanks to our sponsor Google, we got the full first day of last week’s CM Summit, featuring Fred Wilson fresh from the Tumblr...
The post The Full First Day of CM Summit, In One Place appeared first on John Battelle's Search Blog.Thanks to our sponsor Google, we got the full first day of last week’s CM Summit, featuring Fred Wilson fresh from the Tumblr deal, Pinterest CEO Ben Silbermann, and about 20 speakers in between for your viewing pleasure. Enjoy! The post The Full First Day of CM Summit, In One Place appeared first on John Battelle's Search Blog.
about 1 hour ago
This is a simple tutorial that shows how easily (and without depending on third party APIs) you can write a simple scheduler in Java. Java comes with build in capability for scheduling using java.util.Timer class and java.util.TimerTask ...
This is a simple tutorial that shows how easily (and without depending on third party APIs) you can write a simple scheduler in Java. Java comes with build in capability for scheduling using java.util.Timer class and java.util.TimerTask class. package com.kushal.tools; /** * @Author Kushal Paudyal * Scheduling a task using Java in-house scheduler * Created : 2011/04/28 * Last Modified: 2011/04/28 */ import java.util.Timer; import java.util.TimerTask; import java.util.Calendar; import java.util.GregorianCalendar; import java.util.Date; public final class SchedulerUsingJavaUtil extends TimerTask { private final static long FREQUENCY_ONE_DAY = 1000 * 60 * 60 * 24; private final static int ONE_DAY = 0; private final static int HOUR_AM = 10; private final static int MINUTES = 52; /** * Construct and use a TimerTask and Timer. */ public static void main(String[] arguments) { TimerTask scheduledTask = new SchedulerUsingJavaUtil(); Timer timer = new Timer(); /** * Schedules the specified task for repeated fixed-rate execution, * beginning at the specified time. Subsequent executions take place at * approximately regular intervals, separated by the specified period. * In fixed-rate execution, each execution is scheduled relative to the * scheduled execution time of the initial execution. If an execution is * delayed for any reason (such as garbage collection or other * background activity), two or more executions will occur in rapid * succession to "catch up." In the long run, the frequency of execution * will be exactly the reciprocal of the specified period (assuming the * system clock underlying Object.wait(long) is accurate). * * Fixed-rate execution is appropriate for recurring activities that are * sensitive to absolute time, such as ringing a chime every hour on the * hour, or running scheduled maintenance every day at a particular * time. It is also appropriate for recurring activities where the total * time to perform a fixed number of executions is important, such as a * countdown timer that ticks once every second for ten seconds. * Finally, fixed-rate execution is appropriate for scheduling multiple * repeating timer tasks that must remain synchronized with respect to * one another. * * * Parameters: * task - task to be scheduled. * firstTime - First time at which task is to be executed. * period - time in milliseconds between successive task executions. * Throws: IllegalArgumentException - if * time.getTime() is negative. IllegalStateException - if task was * already scheduled or cancelled, timer was cancelled, or timer thread * terminated. */ timer.scheduleAtFixedRate(scheduledTask, getFirstRunTime(),FREQUENCY_ONE_DAY); } /** * Implements TimerTask's abstract run() method. */ public void run() { System.out.println("Doing some task..."+new Date()); } /** * Create a time when scheduler needs to run first */ private static Date getFirstRunTime() { /** * Get Today's Calendar */ Calendar tomorrow = new GregorianCalendar(); /** * Add one day to get tomorrow's calendar */ tomorrow.add(Calendar.DATE, ONE_DAY); /** * Set the scheduled time for tomorrow. */ Calendar firstRunTime = new GregorianCalendar( tomorrow.get(Calendar.YEAR), tomorrow.get(Calendar.MONTH), tomorrow.get(Calendar.DATE), HOUR_AM, MINUTES); return firstRunTime.getTime(); } } Originally posted 2011-05-17 20:53:56.
about 1 hour ago
Hi Fredrik, I have posted an answer to this problem. Check it out when you get a chance, and it should resolve your problem. -Michael
Hi Fredrik, I have posted an answer to this problem. Check it out when you get a chance, and it should resolve your problem. -Michael
about 2 hours ago
I contacted Google, and they looked into the issue. There were a combination of issues. First, they said that the switch to the new Developer Console played a part because the old developer console was more lenient. They said that my ...
I contacted Google, and they looked into the issue. There were a combination of issues. First, they said that the switch to the new Developer Console played a part because the old developer console was more lenient. They said that my old manifest file worked in the old Devloper Console, but technically the old manifest file didn't actually specify
about 2 hours ago
It’s time for our best news of this week. We have a lot of graphic and web design, a bit of architecture, ads, tech news, awesome reads and other crazy stuff! So take a look at the links we’ve selected for your inspiration an...
It’s time for our best news of this week. We have a lot of graphic and web design, a bit of architecture, ads, tech news, awesome reads and other crazy stuff! So take a look at the links we’ve selected for your inspiration and to keep you updated about what’s going on out there! We want to give a big thanks to our sponsors: Shutterstock , W3-Markup , Site24x7 and P2H
about 2 hours ago
40+ Rousing Branding & Identity Design Projects
40+ Rousing Branding & Identity Design Projects
about 2 hours ago