June 3, 2013

Vectors: What is a Vector?

This first tutorial on vectors will explain what vectors are in contrast to scalars in physics

May 23, 2013

GagsDev Update


I decided to program something new, and something involving servers. I ended up designing a simple console framework made for text-based programs and games. To make it more interesting, I left in the full capability of HTML in the output window. This means that instead of plain text, individual lines can be colored, styled, hyperlinked, etc. Additionally, images and other multimedia content can be embedded, making this platform a hybrid of classic text-based programs with the full graphical capabilities of HTML5.

On my website, I have posted two demos so far, with more to come soon!

May 17, 2013

One Big Rotation Problem - Part 1


This problem is part of a larger rotation problem I made up to help my friends study physics.

A solid metal wheel with a radius of 3.0 cm and a mass of 2.0 kg is released from rest from the top of a frictionless ramp, 4.0 m from the ground.  It takes 3.0 sec to roll to the bottom of the ramp without slipping. Determine (a) The wheel’s moment of inertia, (b) the final linear velocity, (c) the final angular velocity, (d) the linear acceleration of the wheel, (e) the angular acceleration of the wheel (f) the number of revolutions the wheel turns through, (g) the net torque on the wheel, (h) the distance along the ramp that the wheel travels, and (i) the angle of incline of the ramp in degrees.

A complete walkthrough of the problem can be seen in the full post. 

April 21, 2013

Circuit: LED Flasher

This circuit is a LED flasher circuit I found on the Internet and decided to try it out.


Here's a video of it in action:



April 6, 2013

Circuit: Light Fader

I decided to try using a capacitor in a circuit for the first time. This circuit lights up the LED as it charges the capacitor, and then if you remove the battery, the LED does not immediately go out, it fades out as the capacitor discharges. Luckily I hooked it up the right way, or it could have exploded.

Schematic:


Video:

Circuit: Hello World 2

Here is another circuit, very similar to the first one, except it is two LEDs connected in parallel. In theory, one should be brighter than the other based on the resistors I used, but there was not much of a difference when I tried it out. I originally used 2 green LEDs, but I decided to use one green and one red LED in the end.

Schematic:



Picture:

Circuit: Hello World

I finally decided to start a hobby of making electronic circuits just for fun. Here's the basic "Hello World" of electronics, a simple circuit that lights up one LED:

Schematic:
Picture:

April 4, 2013

Code Snippet: getById

In a simple JavaScript project that does not use JQuery or other third-party libraries, I find this to be a nice shortcut for document.getElementById():

function getById(id) {
    return document.getElementById(id);
}