Monday, September 28, 2009

Driving Torque?

Q. Is torque a function of speed?
Q. How do you calculate the torque of a ball screw assembly?

A.

Tuesday, June 23, 2009

Q: Matlab - How do you get numbers to format with zeros?

i.e. I have a bunch of file names that look like 0001, 0002 .... 0237 and so on. To create strings in order to load the files, I have to do something like

Filenumber = 1:237;
for x = Filenumber
Name = num2str(x)
eval('load(' Name ')')
end

but that doesn't work because I need the Filenumber to be '0001' not just '1'. :(

A. Use num2str(20,'%04i')

Wednesday, May 27, 2009

Q. How do you make Spotlight search for system files by default?

A. The published solution below will require you to use Command+F in finder to activate, but its nice because now you have the choice. Normal spotlight will act.. normally. Command+f will include all system files.

Q. What does ~/ mean when describing folders on a mac?

A. The tilda refers to the users home directory.

i.e. ~'/Library' = 'jlross/Library' for me