Explore >> Select a destination


You are here

www.stackchief.com
| | bruceeckel.com
7.0 parsecs away

Travel
| |
| | www.craigpardey.com
6.2 parsecs away

Travel
| | Spring 3.2 has some very nice features for scheduling tasks. The pure Java way of doing this looks something like private ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor(); class ScheduledTask implements Runnable { @Override public void run() { System.out.println("Running scheduled task"); } } // Schedule a task every 5 seconds executor.scheduleAtFixedRate(new ScheduledTask(), 1, 5, TimeUnit.SECONDS); // If you don't do this then the JVM won't exit cleanly executor.shutdown(); But now, with the snazzy new Spring scheduling annotations, it can be as simple as this
| | connorberry.com
7.1 parsecs away

Travel
| | Language Comparison Perl: while (<>) { print "$. : $_" } Perl: while (<>) { print "$. : $_" } CSharp: using System; using System.IO; class App { public static void Main(string[] args) { int line_number = 1; foreach (string arg in args) { foreach (string line in File.ReadLines(arg)) { Console.WriteLine(line_number + ":" + line);...
| | pmig96.wordpress.com
54.1 parsecs away

Travel
| When I heard of WebAssembly (WASM for short) a few years ago, I thought: take your C program, compile it to WASM and the browser will simply run it, right? Well, WASM is not (yet) a first-class citizen in the browser world. It does not have access to all APIs and resources that JavaScript has....