New Media Fun

Having fun in an online world

If only I had a 3D Printer…

Posted by admin under 3D

In order for me to personally justify the future investment into a 3D printer. I need to give myself reasons that it will be worth while.

The other weekend, I decided to replace the auto lock mechanism in my Mazda. The replacement part was $55. Once I got into the door and removed the broken module I opened it up to inspect the guts of the unit. It is a fairly simple device that includes a small electric motor, gears, springs, a switch and a plastic piston that moved the lock.

The piston was connected to a gear and it had snapped in half. This piston was a simple cylinder with a pin that could have been modeled and then printed on a open source 3D printer like Cupcake CNC or Rep Rap.

Now I just need to get a better understanding of Arduino and 3D modeling before I can seriously justify the cost. But until then, I can keep dreaming.

Driving Through Tasmania

Posted by admin under Fun

Back in October 2008, as I was driving my wife held the camera on the cars dashboard. The end result with the video speed up and the music creates a pretty cool effect.

I have been working on a module for physics to visually explain Conics. I choose to use Papervision to construct this learning module in flash.

The first issue I discovered was rough edges when a plane intersected the double-napped cone model. This problem was very obvious when the intersections where at angles that cut into the vertices of the model. This was around the time when the QuadrantRenderEngine class became available with Papervision 2.

So when I finally got back on track with this project, I was pleased to get the new QuadrantRenderEngine to work with the conics module. The plane cut through the model just wonderfully and cleanly. Until I rotated the model and plane to discover the render engine only helped the top side of the plane, not the back side. There underneath the plane was breaking up just like before.

So what to do? I tried 2 separate one-sided planes (opposite facing) and animating them separately, but this result was awful because of the inconsistent animation paths. Tried a cube, but that didn’t seem to work.

Until I finally realized that I could group the two opposite facing planes into an 3D object and animate the object as 1 item. Using the DisplayObject3D class, I was able to group and animate the 2 planes together.

Papervision certainly has its learning curves. But I am starting to figure it out.

Wikis

Posted by admin under Internet

I am in the process of finishing up a new website for Alberta Network of Professional & Organizational Development (ANPOD.ca). One of the requirements for the site was to have wiki functionality.

The college isn’t set up to host our own wikis, so I needed to do some research to find a hosted Wiki solution. There were a couple of considerations I had to keep in mind when searching for a wiki solution:

  • It had to be FREE
  • The Wiki needed to be hosted
  • Ability to add custom design
  • Private viewing for registered members
  • Control on creating and editing the entries

There where a couple of viable options:

I ended up choosing Wikidot because it seemed straight forward and the ability to modify the design to compliment the ANPOD website design.

I won’t get into the particulars about using Wikidot; rather I will offer a handful of tips I have figured out while working with this website tool.

  • Design: Keeping in mind that the structure of the wikis is set, however there are a handful of templates already constructed. I recommend extending an existing template and just modifying the CSS. It is easier than building a template from scratch and it allows you to do simple modification to the layout and color scheme.
  • Modifying the Navigation: It wasn’t to clear how I could edit the navigation, the trick is to click on “edit this panel”. This will bring the navigation into the main content part of the page and then you can choose the edit button to modify the HTML for the navigation.
  • Google Analytics: Under 3rd party tools, you can add your Google Analytics profile key for tracking traffic on your Wiki.
  • Accessing Admin: To make changes to a Wiki, you need to go to the admin part of your site. You can access it by clicking on the “Site Manager” link. To get direct access to the site manager, you need to be logged in and add “admin:manage” to your wiki URL.

I am still getting used to this website. But it seems to hold a lot of promise, just not as straight forward as building a website with WordPress or DreamWeaver.

Interesting video showcasing new mouse prototypes created by Microsoft.

The Simple Re-Direct

Posted by admin under HTML, Internet

Not used very often these days, but every now and then you need to automatically re-direct visitors to a different URL as seamlessly as possible.

This can be achieved easily by inserting:

 <meta HTTP-EQUIV="REFRESH" content="0; url=http://www.yoursite.ca/newDirectory/">

Edmonton Fashion Week

Posted by admin under Fun, General

Tonight for the first time I am experiencing a fashion show. It is fashion week at Edmonton and my wife was really interested in going.

Having never attended a fashion show before, I thought what the hell. Why not. Fashion is a main stream media that adds billions to the world economy. There is an element of artistic skills, understanding of materials and the ability to translate a vision into something tangable.

When I started New Media Fun, my vision was to explore any type of media. And I suppose fashion fits in nicely.

Edmonton fashion week started today (sept. 18) and goes on until next weekend. If you are in the area you should check it out.

Edmonton fashion week

Attached are some photos I took from the iPhone. Some might be a bit shaky.

PNG Transparency Fix

Posted by admin under HTML, Internet

For those web developers who have the unfortunate task of designing with IE 6 in mind. Designs we encounter might make use of PNG files with transparency.

Internet Explorer 6 on its own doesn’t support PNG files with transparency. In order to make the transparencies work, you need to implement a fix that will allow the transparencies to work properly.

This is easily said than done.

A recent web design I was coding into HTML required the body of the content had to be transparent and allow the website background to show through. My challenges were that all the navigational images had to be transparent and the repeating background of the content box was semi-transparent and added a shadow around the content box.

I am a big fan of jQuery and naturally I try to find existing plug-ins that can be an effective solution to solve my problem. My search for jQuery PNG fix lead me to two possibilities:

  1. DD_belatedPNG
  2. PNG-Transparency for Windows IE 5.5 & 6

These plug-ins are great and work well for simple PNG fixes of individual images. However, I consistently encountered issues with repeating background images. This dilemma lead me to TwinHelix.

TwinHelix’s PNG solution is unique in that it uses the CSS to call an htc file. The file iepngfix.htc is referenced in the CSS:

.pngIMG{
 behavior: url(js/iepngfix.htc);
}

In my CSS, I reference to “pngIMG” class which will apply the fix to any image that requires the fix. Most importantly, this method allow me to have repeating background images displayed properly. Definitely, my first choice for fixing PNG issues.

NOTE: If you are repeating a background image, the smaller the image, the more intense the fix is on the browser. Thus a slower fix result. My solution to that is to have a broader background PNG to repeat a lot faster.

Today I started to play around with the idea of creating a box with a gradient in it. Of course I was using Adobe Livedocs to get the basic code for creating a box with a gradient fill:

1
2
3
4
5
6
7
8
9
10
11
import flash.geom.*
import flash.display.*
var fillType:String = GradientType.LINEAR;
var colors:Array = [0xFF0000, 0x0000FF];
var alphas:Array = [1, 1];
var ratios:Array = [0x00, 0xFF];
var matr:Matrix = new Matrix();
matr.createGradientBox(20, 20, 0, 0, 0);
var spreadMethod:String = SpreadMethod.PAD;
this.graphics.beginGradientFill(fillType, colors, alphas, ratios, matr, spreadMethod);  
this.graphics.drawRect(0,0,100,100);

The confusion I was experiencing was the createGradientBox(). It wasn’t clear to me how to adjust the matrix numbers to get a result I was looking for. Fortunately, I came across a great flash file found on Poly Geek.

Gradient Tool screen shot from Poly Geek

Gradient Tool screen shot from Poly Geek

Just Made Me Laugh

Posted by admin under Fun