Subscribe to DSC Newsletter

All Blog Posts Tagged 'samples' (3)

Running Calculations on Separate Threads

In order to prevent my programs from freezing up while running long calculations, I generally run the calculations on separate threads.  In Java, this process can be accomplished by separating the GUI from processing.  In the code below, a thread for an instance of MyProcessing would be invoked using start(): e.g. “(new MyProcessing()).start();” would run indefinitely until T is made null.  T can be made null by calling stop() or by directly making T null.  Often when the GUI is closing, I…

Continue

Added by Don Philip Faithful on March 25, 2017 at 9:42am — No Comments

Common Coding Situations in Java

 This blog contains some snippets of code that I tend to use in Java.  I acknowledge that somebody else writing this blog might include different code.  Except for a short course at Sun Educational Services, most of my Java programming skills are self-taught.  I’m unsure if people with formal backgrounds in computer science might have different styles and conventions.  Mine have been shaped primarily by my needs.

 

Creating a Graphical User Interface…

Continue

Added by Don Philip Faithful on November 6, 2016 at 8:00am — No Comments

Mass Data Simulations

I have been using the term "mass data assignment" in my blogs. I thought I should offer the community some simulated examples. These are simple simulations: all the data is in one place in an agreeable format. The file contents are meant to be easy to peruse. When I was younger, there was a television series called "Stargate SG-1." I have a number of seasons on DVD. In this series, a special branch of the U.S. Air Force visits offworld sites using stable wormholes: teams enter the wormholes…

Continue

Added by Don Philip Faithful on November 14, 2015 at 6:41am — No Comments

Monthly Archives

2019

2018

2017

2016

2015

2014

2013

2012

2011

1999

Videos

  • Add Videos
  • View All

© 2019   Data Science Central ®   Powered by

Badges  |  Report an Issue  |  Privacy Policy  |  Terms of Service