27 July 2013
Making a résumé in Microsoft Word felt really generic and boring to me. I tried LaTeX with mixed results, and then I realized that I already know a markup language: HTML. An example of an HTML/CSS résumé that we will cover in this post can be seen here, as a shameless plug for my own résumé. Setting up your page You may be thinking at this point, html isn’t for making documents. If you have seen my previous post, Dynamically...
13 June 2013
I had to study for a midterm a few weeks ago, and thought to myself — I should really make myself some flashcards to memorize all of these acronyms. So, I got on the computer, opened up a word processor, immediately got bored and decided to make myself a program that does it for me. Why PHP? So I can share it! It also searches wikipedia if you don’t specify a definition. Check it out here: http://www.mvartan.com/doc/ My first concern...
02 April 2013
The other week a professor gave me ”Omega multidimensional effect” Christmas lights and challenged me to figure them out to control them. Under the impression that each LED was individually controllable, I took up the challenge looking to convert them into an LED matrix/display. Unfortunately, the lights aren’t as complex as I’d hoped. But in reverse engineering the lights, I came up with a very useful serial pin controller that I have used a few times since, and want to...
11 March 2013
A little known fact about LEDs (Light Emitting Diodes) is that when hooked up backwards, they act as photodiodes. I have manipulated this property to make a few fun and cheap Arduino projects, including a musical instrument I call a photo-theremin. I am going to begin with my understanding of physically how this works. Bear with me -- my 4th grade teacher once told my mother that she was certain I’d never be an artist, and it shows in my drawings. If you’re not interested in exactly how it works, feel free to scroll past my crude diagrams. If you’re just interested in the photo-theremin, you will find it at the bottom of this post. Physics Hooked up 'correctly' This my very simplified way of thinking of diodes, if you want a better and accurate explanation, I suggest looking at this article on HowStuffWorks. My understanding is that particles there...
08 March 2013
I began by taking a power supply and running 10mA across each possible combination of the twelve pins. Since they are diodes, it mattered which direction the current flows, so there is, I believe, 12^2*2=288 possible combinations. Anyways, I eventually found what pin combinations light up what LEDs, and the trend was, each row corresponds to a pin connected to ground, and each column corresponds to a pin connected to the power source. I lost the original document, but this is the new one I sketched up that (each pin corresponds to a number on a breadboard) The first thing I did was display a static image on the matrix, which I unfortunately didn’t take a photo of. I learned that you must draw one column or row at a time, if you do not want to draw an image that is mirrored around the center LED. After I promptly...
13 February 2013
I just remembered a small project I had in 2011 that I wanted to share with you guys. I had just bought a webcam, and also gotten a cat, and decided to combine the two with programming to make this, a webcam viewer. This way, I could see what my cat was doing while I wasn't home, by checking the website on my phone.
Things you'll need:
VideoCapture Plugin (Link) and its dependency, PIL (Link)
A Webserver equipped with PHP.
PHP code: (index.php)
exec('python capture.py'); //if you get any errors, check your environment variables
$fp = fopen("log.log", "a");
fwrite($fp, date("F j, Y, g:i a")."\r\n");
<html><body><img src="image.jpg" /></body></html>
Python Code: (capture.py)
from VideoCapture import Device
Device().saveSnapshot('image.jpg', timestamp=3, boldfont=1, quality=70)
10 February 2013
A headless raspberry pi is a raspberry pi that is not hooked up to a monitor, a keyboard, or a mouse. It is pretty easy to set a raspberry pi up and then remove the peripherals, but this guide is for those who do not want to take their setups apart to set up their raspberry pi. Things you will need A Raspberry Pi. They should sell as low as $35 on some websites, but if you need it quickly, it will be in stock at amazon. Make sure to have a Micro-USB cable and USB power adapter handy as well. An SD Card. I recommend getting a Class 10 SD Card for the fastest speeds. The small ones go for as little as 5 dollars. SSH. If you are using Windows, I recommend using PuTTy. You can also SSH using apps on your smartphone or tablet. A VNC viewer/client....