Category Archives: Uncategorized

research: fixing titanium glasses =__=

wtf
i just got these glasses
i swear i didn’t step on them. maybe i was eating them in my sleep or something -__-;

anyway, i have contacts but dislike them, i can’t deal with having a regular sleep schedule and everything always feels a bit surreal / blurry

so here’s some research on eyeglass fixing / making:
http://www.flickr.com/photos/a_square/5848806205/
Front frame lasercut out of cellulose acetate, with the intention to heat the sides and bend them back. Wonder if he/she ended up completing it

http://boingboing.net/2010/09/16/dainty-laser-cut-gla.html
Well, some lasercut frames, not so interesting to me

http://www.thingiverse.com/thing:16694
lasercut sunglasses

http://www.thefabricator.com/article/arcwelding/adventures-in-titanium-3-questions-about-repairing-titanium-eyeglasses-by-welding
!! all the things about welding titanium frames

Okay, hopefully I will do things like apply to jobs this weekend and Monday go in with a clear plan for fixing these. I want to try spot-welding them, it actually broke in this really convenient way that I can try welding it and if it fails I can still try to make my own leg.

Inkscape 42”x36” Scientific Poster w/ SVG source (Caffeine’s Impact on Sleep)

This is a followup post to Caffeine’s Impact on Sleep, Inkscape A0 Scientific Poster draft

Finished my 42”x36” poster today (turns out 2.671, my Measurement and Instrumentation class, didn’t want A0). I saw some awesome horizontal and vertical designs Tuesday, and now I have this super-cluttered and not very aesthetically pleasing poster *sigh* Oh well. I liked my draft version better for its simplicity and think I have too much text on this final version.

Larger size PNG image available on dropbox,

!! PDF version available (large file, ~10Mb), as well as SVG source!!

 
Again, thanks to Alexander Erlich for the Inkscape template
Also, thanks to netalloy for the coffee cup vector
And thanks to OnlyPositive for the picture of the sleepy cat.
Google Docs
Spreadsheet here. I calculated averages and stddevs with =AVERAGE( ) and =STDEV( ) respectively, and turned formatted time (e.g. 07:30:00) into decimal hours (e.g. 7.50) (also applied Format > Number > Two decimals) using the formula =INT(F4)*24+HOUR(F4)+MINUTE(F4)/60

Matlab
Here is the matlab code I used. It’s very messy and I don’t actually understand what it means. In fact, I had to do post-processing of the Matlab > Export Setup > Rendering, Resolution = 300 > Export > figureN.png in the GIMP prior to dropping it in Inkscape to get the images I wanted.

figure 
caffeine4=[0 0 0 0 0 0 0 0];
sleep4=[6.95 10.87 9.75 7.52 10.95 9.43 8.75 10.23];
day=[25 26 27 28 29 30 31 32];
[AX,H1,H2] = plotyy(day,sleep4,day,caffeine4,'plot');

title('Phase 4: Daily Hours Slept and Caffeine Intake');
xlabel('Date (in April)');
%xlim([26 13]);
set(gca,'XTick',25:1:32);
%set(gca,'box','off');

set(get(AX(1),'Ylabel'),'String','Amount Slept Daily (hrs)'); 
set(get(AX(2),'Ylabel'),'String','Daily Caffeine Intake (mg)') ;
axis(AX(1),[25 32 0 11]);
axis(AX(2),[25 32 0 700]);
set(AX(1),'YLim',[0 11], 'YTick',0:1:11, 'box','off');
set(AX(2),'YLim',[0 700],'YTick',0:100:700,'box','off', 'box','off');

set(H1,'LineWidth',3,...
                'MarkerSize',7,...
    'LineStyle','-',...
    'Marker', 'o',...
    'MarkerEdgeColor', 'none',...
    'MarkerFaceColor', 'b');
set(H2,'LineWidth',3,...
                'MarkerSize',7,...
    'LineStyle','-',...
    'Marker', 'o',...
    'MarkerEdgeColor', 'none',...
    'MarkerFaceColor', 'g');

Above code resulted in this graph:

This data was actually 25 April to 2 May, but instead of learning about timeseries in MATLAB, I just cheated and stuck “April / May” in the xlabel and used 31 and 32 to not break my code. I planned to post-process in gimp to turn “31 32” into “1 2” but forgot to do so.

For phase 3, I couldn’t figure how to get rid of the 20.5 and 21.5 tick marks when I expanded to graphs to reasonable size, so I did post-processing in GIMP. Here are the two images I smushed together into the third:
+=

Misc. other tricks too lazy to document fully:
Using “shift-J” in Vim to turn newlines (ctrl-click-drag to get a column of values from google doc separated by newlines) into spaces, which Matlab uses to delimit vector data.

Making Instagram-like effect with kitten in top-left corner via kitten > right-click Add layer mask > (1) Gradient tool white-to-back, radial, click-drag from center to slightly past edges of images. This transparency-ed a large part of the cat face so (2) Ellipse select most of cat face, Gradient tool white-to-light-gray, radial, click-drag from center to edge of ellipse.

Inkscape, Filter effect > Make arrowheads match color to the lines. (If you decide to change the color of the arrowheads).

New Projects Blog

orange narwhals are awesome! I’ll post my CSS modifications to the Blogger template in a bit, and would like to attribute the orange narwhals I used for my background to the Ubuntu Natty Narwhal backgrounds. I’m in the process of moving worthy posts over from nouyang.blogspot.com, which I’m converting into a documentation blog.