Water

I mentioned that I was 1. making a gif and 2. working on the particle-based fluids for my CS5643 class. Well, here it is.

cube
Only incompressibility
cube_scorr
With tensile instability
cube_neigh
With XSPH and tensile instability.
cube_scorr_xsph
Same as above, except different neighbor finding scheme.
dam
Dam-break example.

Wine IE

  • Installs Wine to play Hearthstone.
  • Made a gif for a project.
  • Double clicked gif to see how it turned out.
  • gif opened in IE under Wine.

Life’s Update

I’ve been working on a few things:

  1. Position-based fluids for my CS5643 class, which is a pain to debug. Normally, I have tons of intuition on what numbers are suppose to be but my intuition is nil here. I’m unsure as we’re guessing the correct parameters or even the right formulas and procedure.It’s a great class, just the project are incredibly tedious. For example, my particles right now just seem to float of into the x direction and stay there. Why would it do that?

    Hopefully, what ends up happening is something like the following, except less pretty.

  2. I finally installed Hearthstone for my Elementary OS Linux box. It was incredibly easy following this tutorial.
  3. In terms of research, I’ve been reading up on different ways to generate the Krylov basis for GMRES as described in this paper. I’ll probably write up and refined the old  “idiot’s guide” again for this paper information (and fix the bad latex in there).
  4. This soundtrack (not allowed to embed).
  5. My card handeling has suffered :(.

WISDOM

MY WISDOM TOOTH IS COMING OUT AND IT IS SO ANNOYING. COMBINE THAT WITH CANKER SORES AND A SLIGHT SORE THROAT, MY DAMN MOUTH IS SILLY.

Three Ways to Create Instances

I had a small interview with CRA this morning, and did terribly on the Java section. That’s probably because I didn’t know it was going to be on Java, a language I haven’t programmed in for 2 years. I thought one question was pretty interesting though:

Name three ways to create an instance of a class.

The first way is easy, using the new keyword with the constructor. The other two are trickier.
Using the clone keyword in the Object class was the second answer, which was kind of obvious once you think about it. It basically creates a new class by copying an old one…
The last one is one that he didn’t expect people to know, which was to use the forname function in the Object class. From his explanation, what it allows one to do is to probe an unknown class.