In other words, graphing time of day versus date in python.
This morning I logged on to medhelp.org only to see that it had gone from somewhat usable for my purposes:
|from my previous post, http://www.orangenarwhals.com/?p=129|
where I can at least type in the times to some extent, even if there is no batch input (e.g. uploading a text file), to
|wtf is this? i am clearly not in their target demographic…|
So I decided to get up off my lazy butt and do some python plotting.
This is the end result:
(it’s flipped, so time increases going upward like you would expect a graph to do but opposite of how you would read the medhelp graph, where time increases going downwards, which I feel makes more intuitive sense).
The code is here:
I keep track of my sleep in a google doc that I just downloaded as a csv file. See the github repo.
brain/linkdump as i was working out how to do this
can set line width but the plot does not adjust to this (how to pad the dates out so the lines won’t ever overlap?)
now just need to adjust so not height, but also have start time
x = ‘3/18/2013’
x = 1365739200
# datetime.datetime(2013, 4, 12, 0, 0)
dates.DateFormatter(‘%B %d, %Y’) # January 16, 1970
okay, this solves the y-axis problem! excellent.
In particular,genfromtxt is able to take missing data into account, when other faster and simpler functions like loadtxt cannot
does not deal well with quotation marks in data
“Line #31 (got 8 columns instead of 7)”
24:00 –> 0:00:00 else
: time data '3/18/2013 24:00:00' does not match format '%m/%d/%Y %H:%M:%S'
also does not like 0 instead of 0:00:00
I woke up early one day and tested this instructables before class:
I was tempted to skip class and lasercut things, but I did not! (It’s an music theory 101 class, 21M.301, that I’m listening in on and am completely lost in at this point).
The first one I cut was about 8.5” x 2” and I made it in coreldraw. I wanted to put a hexapod in the middle but couldn’t find a png at the time.
Here are the lasercutter settings I used for a epilog 120w lasercutter to cut/engrave 3mm acrylic:
600 dpi, vector
cut: 25 speed 100 power
engrave (the words): 70 speed 30 power
The narwhal refused to cut as a vector so it’s not in the bracelet (I selected bracelet only).
I didn’t know what to put so here is a cheery message:
Ignore the black spraypaint, I was stenciling.
red bull competition
Hexapod conference funded by deFlorez humor fund! Been doing a lot of work refining the vision of the conference/convention and how to make it humorous and yet useful to attend at the same time.
It will be like academic conference – hexapod dance off – giant hexapods – poster session and the humor will come out of the contrast.
- servo arm drawbot for starttroll project / graduation cap
Delta robot face drawing:
The lifecycle goes like this:
– Pick a picture from the Android photo album
– Run a Canny edge-finder on it to get to a black bitmap with white lines on the edges of the original picture. I used a splendid implementation by Tom Gibara– Run a vectoriser on that, to generate vectors along those lines. I couldn’t find one I liked, so I write one, which was easier that I expected.
– Simplify the vectors – discard very short vectors, and replace straightish bits with straight lines. The Arduino can only store 300 points, so we have a strong incentive to optimise the vectors to within an inch of their lives.
– Package the vectors up and send them over Bluetooth to the Arduino
– Wait for the drawing !
For speed, I’m working with very low-resolution bitmaps – 128 pixels square by default.
vectorizing linked to in SketchysrccomjarkmansketchyVectoriser.java
Actual vectoriser code used in sketchy is in VectorWalker.java. TODO: read over and understand this code.
canny edge detection implementation in processing
- scooter: CAD and order parts. have: shady chinese ebay controller, melon motor, brakes. need: battery pack, trigger, front lights
- POV yoyo:
- 3d print prototype, etch out circuitboard and populate, begin programming anew
- CAD and masterCAM the injection-molded yoyo files
- spec out parts list cost for 50
- EL wire choreography arts proposal: only missing a budget
- MITERS door open trigger: awaiting parts from atw
- post MITERS flyers in pappalardo!
- go to blick’s in central, 9am to 8pm – earring materials
- acrylic bracelets
- perhaps visit pika for dinner
give it an new body, make it dance, …
hexarideablepod is on permanent hiatus (how to dispose of it? I need to fix it up a bit before disposing of it, I feel)
document hall sensor with circuit picture
intro to arduino pdf (where to find resources)
As MIT college students we can get a $5 college card for the boston symphony and get into concerts for no additional cost.
- go to copytech in building 11, show them student ID, pay $5 for college card
- go to boston symphony orchestra ticket office, right down mass ave @ 301 mass ave, show them college card and student id and get ticket
- go to concert
according to a professor on the airplane from ATL to BOS, things to do for free or close to free:
Hatched eggshell concerts, Wednesdays
Boston Harbor Hotel movies, Thursdays (buy a drink something to sit there)
North End will close streets and have festival Fridays in August
Museum of Fine Arts is free on Wednesdays
less free –v
Harbor Island Beach recommended (to see Boston from another view)
go to wonderland, get fried clams and people watch
fly kites at reviere beach
go to concord, ma via commuter rail and visit walden pond
boston public library at lunchtime — there are sometimes famous poets/musicians in the courtyard
food trucks at south station are the best after a bike ride there