/* attempt to deal with prototype, bootstrap, jquery conflicts */ /* for dropdown menus */

Jump to content

February 2017 »

S M T W T F S
   1234
567891011
12131415161718
19 20 2122232425
262728    

Recent Entries

Recent Comments

Recent Entries

Recent Comments

Satisfaction Guaranteed*

4: Adsense

middle of freaking nowhere

Ah thank god.

My family recently got a cabin in the middle of freaking nowhere of NY state. So I've been staying up here for a week as it's a much better environment to get work done. But the internet hasn't been hooked up until today. I was doing pretty well surviving for the first few days, but then I started going a little stir crazy. Everything's all...

check

Status check:

My dream of interactive programming continues to elude me. I've gotten it to work in special cases, but I want to be able to do it everywhere, without too much set-up work. BeanShell seems to have problems if you a) load a script, b) create an object with that script, then c) reload the script and try to use newly-defined code on that...

I have a logo!



Astute readers will notice that the test code I posted 2 entries ago is the same code that renders the yellow spikey things in a circle. Except that the final version used 300 steps instead of 70, and the other values were tweaked too.

And, by the way, since the rendering was script code, I was able to fiddle with those numbers *live* and see the changes...

wooo

Woooo, just finished evaluating BeanShell. It's great!

The BeanShell version of that last test ran at 8 fps (where the pure Java version runs at 12 fps and the JRuby version ran at 3 fps). So the slowdown isn't too bad, plus the clincher is that I can copy-paste any performance-critical BeanShell code into java.

(ps, the reason those FPS numbers are so...

scripting

Yeah I change my mind a lot.

After evaluating Rhino, I came to this conclusion: really no scripting language has a very fluid way of passing Java objects to a script.

So with that knowledge in hand, I went back to JRuby because a) I have a crush on that language, and b) I do know a roundabout way to pass a java object to a ruby script (just use the...

tool overload

Okay, I'm coming to terms with the fact that I am suffering from tool overdose.

Batik? Cool, but it doesn't really help me.

JRuby? The language looks fun, but the Java->JRuby interaction really has been a pain. I can't get it to work the way I want, plus there's something about the implementation that makes it really inefficient. Every time you pass...

My tv has gone crazy

They are showing South Park on WPIX and Family Guy on TBS. I don't know which way is up anymore.

java svg code

I figured someone might be interested, so here is my java code for getting a simple SVG-backed sprite up and running:


import org.apache.batik.gvt.renderer.StaticRenderer;
import org.w3c.dom.svg.SVGDocument;
import org.apache.batik.bridge.*;
import org.apache.batik.gvt.*;

import java.awt.geom.*;
import java.awt.*;

class SVGSprite
{
// svg data
...