A simple animation in Unity.
[vimeo https://vimeo.com/106330339 w=640]
A simple animation in Unity.
[vimeo https://vimeo.com/106330339 w=640]
I made a very simple video game about a green circle avoiding red arrows for my “Art of Graphics Programming Class”. I was given the constraint to avoid using member and global variables, and to do everything in Cinder’s draw loop. As such, the game isn’t able to save the state of enemies or the player in a normal way. Instead I use sine functions to determine enemy positions, and the width of the application window to alter the player’s location. Also, as a consequence of everything being in the draw loop, the game just quits when you lose. You can check out a quick video of the game below, download it here (mac only) and browse the full code on GitHub.
[vimeo https://vimeo.com/106145700 w=640]
For my first circuit in Eagle, I made a 555 LED flasher:
I also examined some circuits under a microscope and made this short video. I found a bug.
[vimeo https://vimeo.com/105808009 w=640]
The New York times recently did an interactive piece on the militarization of the police, revealing what equipment police departments across the country receive from the Pentagon. I did a quick analysis of the raw files from the Times (which they kindly posted on GitHub) to see what items were most popular nationwide. The top 10 items police departments received, in total, are:
And of course there are plenty of tanks, aircraft, and body armor in there as well, ready to be deployed at a moment’s notice in suburban wherever.
The Pentagon however, supplies much more than military-grade nightmare gear. According to the list they are also distributing the following items:
As the Times notes, “this data does not represent all of the military-style gear that law enforcement agencies have. Agencies also purchase equipment with their own money or with federal grants.” It’s a distinct possibility that there’s more than one police department with a bouncy castle out there, inhabited, I hope, by a santasuit-wearing cop holding an assault rifle in one hand and a dental spatula in the other.
Videogrep is a python script that searches through dialog in videos and then cuts together a new video based on what it finds. Basically, it’s a command-line “supercut” generator. The code is here on github.
The script searches through a video’s associated subtitle file (which needs to be in the same folder as the video, in standard .srt format), identifies timestamps for the dialog, and then uses the wonderful moviepy library to generate the new final cut.
Here’s one of the results: every instance of a character saying the word “time” in the movie In Time (a film whose dialog appears to consist mostly of clock-related puns).
The script also works with multiple video files in the same directory. As an experiment, I mass downloaded press briefings from the Whitehouse youtube channel, then ran a word-level n-gram analysis on the subtitle tracks to find some commonly used phrases. I discovered that the phrase “what I can tell you” is occurs pretty frequently.
So, here is Jay Carney, the former Press Secretary, telling us what he can tell us. Note the necktie transitions.
You may have noticed some strange cuts in the above video. The accuracy of the edits is completely reliant on the accuracy of the subtitle tracks.
You can also use videogrep to find instances of people employing specific grammatical structures (I do this with the pattern library). For example, by running the following command
1 |
python videogrep.py --input terrible_ted_talks/ --search '^VBG DT JJ NN' --search_type pos |
I end up with a video of TED speakers saying “[gerund] [determiner] [adjective] [noun]”
As I final experiment, I wrote a complimentary script that finds dialog-free sections of videos. Here, for example, is “Total Silence”: all the one to two second silences in the movie Total Recall.
Feel free to mess around with the script on github, and let me know if you have any suggestions for source material to run through it.