Personal computing discussed

Search found 8 matches

by Ouroboros
Mon Sep 24, 2012 10:42 pm
Forum: Developer's Den
Topic: Fortran will be the Death of me
Replies: 30
Views: 14825

Re: Fortran will be the Death of me

You can try using GFortran on Linux. Since it accepts F90, you will likely need to convert the line continuations. See this:

http://people.sc.fsu.edu/~jburkardt/f_s ... ixcon.html
by Ouroboros
Thu Nov 10, 2011 7:53 pm
Forum: The Back Porch
Topic: Writing min(a,b) without comparators
Replies: 6
Views: 1279

Re: Writing min(a,b) without comparators

I believe that you are trying to use only smooth functions, but a non-smooth function such as abs() or sgn() appears to be necessary. You can try using a smooth limit approximation such as abs(x) = lim(((2*x)/pi)*atan(k*x), k = inf), keeping in mind that this limit may not exist at x = 0.
by Ouroboros
Tue Oct 25, 2011 9:26 pm
Forum: Storage
Topic: Looks like HDD prices are affected after all...
Replies: 21
Views: 3638

Re: Looks like HDD prices are affected after all...

The Samsung Spinpoint F3 1TB (HD103SJ) has increased in price by $10-20 in the past week and is now out of stock almost everywhere.
by Ouroboros
Sat Jan 22, 2011 2:52 pm
Forum: Developer's Den
Topic: Bizarre While() Behavior in Java
Replies: 21
Views: 6735

Re: Bizarre While() Behavior in Java

MidiSystem.getSequencer() returns an instance of RealTimeSequencer, which implements isRunning essentially as follows: private boolean running; public boolean isRunning () { return running; }. You can try declaring RealTimeSequencer.running volatile, but the correct solution is to use Sequencer.addM...
by Ouroboros
Sat Jan 22, 2011 3:18 am
Forum: Developer's Den
Topic: Bizarre While() Behavior in Java
Replies: 21
Views: 6735

Re: Bizarre While() Behavior in Java

A simple but dirty solution is to sleep in the loop: while (sequencer.isRunning()) { Thread.sleep(10l) }. A cleaner solution is to add an event listener using Sequencer.addMetaEventListener() and communicate with your main thread using Object.wait() and Object.notify().
GZIP: On