Intensive Purposes

Archive for May, 2005



Evenly Spaced on Ellipse 

Ok, this one goes beyond what i remember from geometry classes (appologies to Mrs. Gay, my high school geo. teacher)

I’m trying to evenly space a bunch of items (we’ll use dots for this example) around an ellipse. I can do it for a circle, but when transform it to an ellipse, it gets distored. I might be using the wrong equations to generate an ellipse, or maybe its more complicated. Here’s what i get, and notice how the points on the extremes of the x-axis are pushed closer together:

ellipse

Update: Actually, it would be better to calculate a polygon of n sides that fits in the elipse. The sides must all be equal length, but the shape doesn’t need to be regular (all angles the same). That way, i’ll have n items on an ellipse, with equal space between each item (instead of equal distance on the circumference, which could make them closer together in linear space)

Sorry if you’re not a geek, but many of you are, and some of you even have prestigious geek friends who handle this sort of stuff in their sleep, whilst dreaming of mirrors curved in just such a way to calculate all sorts of intense math by reflecting light properly. Here’s my code:


// X radius
var XR:Number = 200;

// Y radius
var YR:Number = 50;

// number of points to plot
var n:Number = 45;

// an object to paint on
var mc:MovieClip = _root.createEmptyMovieClip("canvas", 1);

for (var r=0; r<2*Math.PI; r=r+(2*Math.PI/n)) {
// calculate x and y
var x = XR * Math.sin(r) + XR;
var y = YR * Math.cos(r) + YR;

// draw a 2x2 'point'
canvas.moveTo(x, y);
canvas.beginFill(0x000000, 100);
canvas.lineTo(x+2, y);
canvas.lineTo(x+2, y+2);
canvas.lineTo(x, y+2);
canvas.lineTo(x, y);
canvas.endFill();
}



bizarro jeremy 

This story comes from bizarro world which, if you watched super friends, you know is a parallel universe where several key features of our universe have been reversed while other remain. For instance, bizarro superman is immune to kryptonite, and uses his powers to steal, but he can still fly, and maintains many of the real superman’s abilities. It appears that bizarro Jeremy has finally revealed himself.

Our story begins with bizarro Jeremy’s wrists hurting him. As we know, the real Jeremy broke his wrist’s roller blading and we’ll leave the bizarro equivalent of this accident as an exercise for the readers. Like the real Jeremy, bizarro Jeremy edits his code in emacs, but unlike the real Jeremy, a Mac user, bizarro uses Windows. With a wounded wrist, the horribly placed and oft used ctrl key is not your friend. Bizarro Jeremy discovers the the Kinesis keyboard which allows you to do all this handy ctrl keying with your thumbs, removing considerable strain on your wrist. Real Jeremy also made this discovery and using his powers of persuasion, gets his employer to buy him a Kenisis keyboard (a $239 value). Bizarro Jeremy however has a far more sinister plan.

Using their common love of K’nex pieces, bizarro Jeremy constructs a super ghetto contraption. The device’s six Kinex poles (of pseudo-randomly chosen colors) launch out from a common spot below the space bar where they are bound by double-sided tape. Five of the six ends contain a poorly cut piece of double-sided tape which is used to affix the Kinex pole to the key of interest. This creates a set of spines which, if carefully pressed and upon which one never rests their wrist, can be used to allow bizarro Jeremy to hit the control, alt, and shift keys with his thumbs — “just like” a Kinesis keyboard. All this for a mere $30! The sticky residue that this would leave on the keyboard after use is curiously unnoticed by bizarro Jeremy.

Then using his comparable powers of persuasions, this time to help the spread of all things ghetto, bizarro Jeremy gets a “story” about his malfeasance posted to slashdot. Fortunately, bizarro Jeremy lives in bizarro-America (also known as Canada) and we’ll be safe as long as real Jeremy and his super friends keep up their fight for truth, justice, and the non-ghetto way.



Apple and Intil 

Everyone with a website is talking about the latest Apple using Intel processors rumor. I’ve been a mac user for years, and an Apple ][ user before that. I think this is the standard cycle of rehashing old Apple rumors. The revival of the newton rumor is too similar to the iPhone rumor that was spread last month, so lets go back to an old favorite: Apple using Intel.

My guess is that this won’t happen any time soon, and Apple is merely trying to put some heat on IBM, who have failed to deliver a 3Ghz processor to date.

Thoughts?



Red Flag of the Month 

I’m going to start posting tidbids i see in the news that, in my opinion, encourage further investigation into the situations they refer too.

From Haaretz discussing the settlements in Palestine land.

The suburban-style settler houses with red roofs, white walls and neat gardens contrast with the close-packed cinderblock buildings that are home to most of the 1.3 million Palestinians on the other side of the Strip’s barbed wire.

Here is the entire article.



Lebel Pizza 

Lebel Pizza
(215) 473-0900
5601 W Girard Ave
Philadelphia, 19131

if your in west philly, call 528-5200

Hmm its been a while since i ordered here, so i forget what it was like specifically. however, it was ok, in the west philly sense. certainly worth a retry with more people around to eat it… look for a second review.



Worst Hosting Ever 

A plus is the worst host ever! A plus Sucks

there, i’m done ranting.



The Original Bobby’s II Pizza 

The Original Bobby’s II Pizza
601 South 60th Street
Philadelphia, PA
215-748-6096

Well going even farther west didn’t help. Bobby’s had potential but the crust was shit and thats pretty important.

fresh it was maybe 1 point
cooked again the next day (to crisp the crust) maybe 3