Tuesday, 23 December 2014

General Dictionary File on Any Unix System

/usr/share/dict/words


source: http://stackoverflow.com/questions/4456446/dictionary-text-file

Thursday, 11 December 2014

SolidWorks - Patterning Bodies using 'Linear Pattern' Command

After selecting Linear Pattern:
"You just need to expand the box under "bodies to pattern" and select the body (from your solid bodies folder) in its selection box. You were trying to pattern a feature, which SW will not allow to create multiple bodies."

source: http://www.cadforums.net/showthread.php/9084-Linear-Pattern-Problem

SolidWorks - Make a Drawing from Assembly

"In a part or assembly document, click Make Drawing from Part/Assembly on the Standard toolbar"


source: http://config.boxxtech.com/Downloads/partners/solidworks/drawings.v4.pdf

Windows Change Keyboard Layout

intl.cpl in the Start Search box

source: http://support.microsoft.com/kb/258824

Mac Changing Video Playback Speeds in QuickTime


Option-clicking the forward button increases playback speed by 0.1. Clicking the backward button plays videos in reverse though. You can set the rate between 0 and 1 by running this in AppleScript Editor:
tell application "QuickTime Player" to set rate of document 1 to 0.8

source: http://apple.stackexchange.com/questions/10464/how-can-i-repeat-a-video-at-slow-playback-speed

Monday, 8 December 2014

Windows 7, 8 step recorder software

"LPT: Windows 7 and 8 has a hidden steps recorder software that you can use to record what you do on the screen and it turns it into step-by-step instructions next to screen captures."


source: http://www.reddit.com/r/LifeProTips/comments/2olncr/lpt_windows_7_and_8_has_a_hidden_steps_recorder/

Friday, 5 December 2014

Prevent Fonts From Changing in PowerPoint by Embedding in File

In PowerPoint 2007
  1. Click the Office button.
  2. Click the PowerPoint Options button.
  3. Select Save in the Options list.
  4. Check the box for Embed Fonts in File and make one of the following choices
    • By default the selection is "Embed only the characters used in the presentation (best for reducing file size)".
    • Second option - "Embed all characters (best for editing by other people)".

source: http://presentationsoft.about.com/od/powerpointtipsandfaqs/f/change_fonts.htm

Thursday, 27 November 2014

Solidworks: Rotate Objects

[alt+arrow keys] to rotate objects in SolidWorks.

source: Manan

Friday, 14 November 2014

Check Wifi Login Information on OSX

If you've elected to store network passwords in Keychain:
1. /Applications/Utilities/Keychain Access.app
2. At the top, search for the name of your network
3. That should locate the network password entry stored in Keychain
4. Double-click that entry and click the "Show password" box
5. Enter your Mac's admin password
6. Your network password should appear

source: http://forums.macrumors.com/showthread.php?t=1300026

Monday, 10 November 2014

Install Fish Shell on Mac OS X

Fish is an alternative shell for Unix environments.

"What is Fish and why would someone use it instead of another shell?

Fish has a number of advantages over other shells: Fish suggests commands as you type based on history and completions, just like a web browser’s search bar
Fish generates completions automatically by parsing your installed man pages
Fish has a more intuitive syntax
Fish has less historical baggage and technical debt"

source: http://hackercodex.com/guide/install-fish-shell-mac-ubuntu/

Sunday, 2 November 2014

Enabling snap-to-grid in EagleCAD


"Hold down the CTL key as you select the part and its origin will snap to the displayed grid"

source: http://www.eaglecentral.ca/forums/index.php/m/142983/7ea249c7c9f68d49483d417435ab45d3/

Twitter privacy settings

"Twitter folks- why can i only retweet tweets from some people & not everyone?"

"You can only retweet people who do not have private accounts. So if you see their tweet and they have a little lock by their name, they have a protected account. You can't retweet their tweets with that button. BUT you can still retweet it simply by typing "RT @(username)" and copy & paste their tweet-- old school :)"

source: https://answers.yahoo.com/question/index?qid=20100310225648AA2TTAn

Thursday, 23 October 2014

Sunday, 5 October 2014

Latex: file ended while scanning use of @writefile.

Latex: file ended while scanning use of @writefile

"This can be eliminated by deleting all .aux files and recompiling the latex code."

source: http://ergodicthoughts.blogspot.ch/2009/10/latex-file-ended-while-scanning-use-of.html

Saturday, 27 September 2014

Access the User Library folder on Mac and make it show permanently

In terminal:

chflags nohidden ~/Library/

source: http://osxdaily.com/2011/07/22/access-user-library-folder-in-os-x-lion/

Overheating Arduino Nano

Depending on the current draw of the circuit's load, can result in a large heat dissipation for a voltage regulator if its surface area and heat sink are insufficient.

For my use, dropping from 12V to 5V with microcontroller + air compressors + solenoids(~55mA each) is causing significant overheating on the Arduino board.

source: http://forum.arduino.cc/index.php?topic=180819.0

Friday, 26 September 2014

Bring up the Force Quit menu on Mac

Command + Option + Escape

source: http://www.ehow.com/how_6924064_reset-frozen-macbook-air.html

Friday, 19 September 2014

Edit Chrome browser properties

Type into Chrome:



source: http://macforums.com/34-os-x-applications/2895-how-do-i-remove-chrome-notifications-icon-menu-bar.html

Remove startup applications from OSX

Click on [System Preferences].
Find the accounts or user tab.
Click on the user for whom you want to change the settings.
Edit the list of login applications.

source: http://www.ehow.com/how_4501754_remove-start_up-applications-os-leopard.html

Thursday, 18 September 2014

Code block in Blogger post.

<textarea cols="60" name="textarea" rows="8" wrap="VIRTUAL">
CODE HERE
</textarea>


Add this in the HTML view. Change cols to make it wider, rows to make it taller.

source: http://ilook12.blogspot.ch/2009/10/putting-code-box-on-blogger-posts.html

Using Arduino Uno to read Sparkfun Razor IMU (9DOF) output via Serial.

I had a lot of trouble with interpreting the output of the Sparkfun Razor IMU (9DOF) using Arduino Uno. Scouring the internet for previous solutions, I came to believe that the proper way to handle the output from the IMU required massaging the bytes obtained via Serial.read(). However, it turns out that the solution is as simple as interpreting each byte as an ASCII character (type: char). Here's what worked for me:

Hardware:
Connect the following pins.
Arduino --- IMU
RX --- TX
TX --- RX
3.3V --- 3.3V
GND --- GND

On the IMU board, CTS (Clear To Send) and DTR (Data Terminal Ready) do not require a connection for Serial. They are used for the FTDI Serial to USB connection.


Software:

On the Arduino Uno - Below is the simplest, baseline code you need to read the output from the IMU using another Arduino (I say another because the IMU contains its own ATMega chip):

When writing new sketches to the Arduino, you'll need to unplug the RX/TX 

On the Sparkfun Razor IMU - load the code found on here: https://github.com/ptrbrtz/razor-9dof-ahrs/wiki/Tutorial If you want to change the Serial output of the IMU, modify Output.ino within the Razor_AHRS folder in this conditional:




Arduino: Convert String to int.

Serial.println(inString.toInt());

source: http://stackoverflow.com/questions/18200035/how-do-you-convert-a-string-to-a-float-or-int

Arduino: Convert String to float.

char floatbuf[32]; // make this at least big enough for the whole string
curLongitude.toCharArray(floatbuf, sizeof(floatbuf));
float f = atof(floatbuf);

source:
http://stackoverflow.com/questions/18200035/how-do-you-convert-a-string-to-a-float-or-int

Tuesday, 16 September 2014

Arduino FTDI Programming Problems

For errors relating to:

avrdude: stk500_getsync(): not in sync: resp=0x00

or

avrdude: usbdev_open(): did not find any USB device "usb"

---

If you are using a board version that contains an FTDI chip, you'll need to install the appropriate driver for your operating system. This software can be found at (http://www.ftdichip.com/Drivers/VCP.htm)


sources:
http://arduino.cc/en/Guide/MacOSX


Wednesday, 27 August 2014

Long-Type Division

An exercise in typecasting:

double freq = 3;
long period = 1000/freq;

period will hold the value 333.

Interrupts for Arduino

Interrupts for Arduino:
http://arduino.cc/en/Reference/AttachInterrupt

Extension that allows other pins to be used as interrupts (by default, only select pins can be used). See the previous link for the pins that are enabled by default.
http://playground.arduino.cc/Main/PcInt

Friday, 8 August 2014

Arduino (AVR) error - avrdude: stk500_getsync(): not in sync: resp=0x00

In the context of Arduino, this error occurs when there are issues writing your program to the microcontroller.

Although there seem to be multiple potential sources to this problem, the mistake that I often find myself making is interfering with the RX/TX connections.

Therefore, try uploading your sketch after disconnecting any wires from digital i/o pins 0 and 1 (or whatever corresponds to RX/TX).


source: http://www.instructables.com/answers/avrdude-stk500getsync-not-in-sync-resp0x00-/

Wednesday, 6 August 2014

Scanning physical documents using the Xerox Workcentre 5755


@EPFL, 2014. Actual instructions may vary.
  • Next to the touchscreen, press the round, engraved home button.
  • On the touchscreen, press the 'email' button.
  • Type in the email address you want to send the documents to.
  • Scan each document by placing the paper inside the machine and pressing the green scan button.
  • If the machine is shared, remove your email address for others' future use by holding down on the touchscreen and pressing remove.
Source: Merve

Tuesday, 5 August 2014

Change Language in SolidWorks to English

Where you looking to change the language. SW will use the language you specified during installation. If you looking to use English (thought you have installed a differnt language), then go to Tools > Options > General and select the following two options:

1. Use English language menus. (Available  if you specified another language during installation and the regional options  in the Windows Control Panel are set to  that language).
You must exit and re-start SolidWorks for this change to take place.


2. Use  English language feature and file names. (Displays feature names in the  FeatureManager design tree and automatically created file names in English.  Existing feature and file names in a foreign language do not update when you  select this option).

This option is available when Use English  language menus is cleared, you are running the SolidWorks software on a  foreign language operating system, and you installed SolidWorks for that foreign  language.


source: https://forum.solidworks.com/thread/38613

Sunday, 27 July 2014

SD card memory issue

My camera's SD card insisted that it was out of memory despite not having any pictures on it.

Solved by reformatting the card (can be done on the camera).

Tuesday, 8 July 2014

Samsung S3 Screenshot

Press home button, then power button immediately after, and hold for a short period of time. A screenshot animation will occur.

source: http://droidlessons.com/how-to-take-a-screenshot-on-the-samsung-galaxy-s3-free-no-app-required/

Wednesday, 7 May 2014

Photography

Photographers get to see a lot of cool things throughout their career.

8/14 edit: They have more reason to actively seek out cool things to see, but that doesn't mean a non-photographer can't. So don't let that stop you.

Monday, 17 February 2014

Experimental vs. Theory Research

Experimental work is based off of educated guesses. Especially for labs like chemistry/biology, educated guess -> check is a common procedure.

Theory has much more variance in progress. Unsolved tasks can take days or minutes, success vs. failure is black and white.

Either way, experience is progress. You learn what not to do for the future. "Mistakes are meant to be learnt from".

Monday, 20 January 2014

OSX: Merging images and pdfs

http://www.simpopdf.com/resource/how-to-combine-pdf-files-on-mac.html

Essentially, convert everything to a PDF and then use the thumbnail view in Mac's Preview application to merge everything. The reason I want to do this is so I can save problems that I have worked on by hand alongside their original documentation.

Saturday, 18 January 2014

Avocado variations

Pollock

  • The "Pollock" avocado is a West Indian variety grown in Florida. These avocados can weigh18 to 40 oz. It is pear shaped with smooth skin and available in July until late September. Pollock avocados usually are not grown for commercial use because of their size. Pollock avocado trees also tend to produce a small harvest.

Russell

  • The "Russell" avocado is a large fruit with a distinctive shape. Looking more like a gourd than an avocado, this West Indian variety can weigh 16 to 24 ounces. Primarily grown in Florida, the Russell avocado is a suitable tree for home gardens because of its typically low fruit production.

Lamb Hass

  • The "Lamb Hass" avocado is a hybrid Guatemalan avocado from California. These high-quality avocados are similar in taste and appearance to the original "Hass" avocado. One major difference is the size of the Lamb Hass, which can weigh 11 to 19 oz. Lamb Hass avocados are oval and extremely symmetrical in shape. The texture of the skin is green and pebbly, turning almost black when ripe.

Pinkerton

  • "Pinkerton" avocados were developed in California is the 1970s. This long, pear-shaped fruit has a thick green skin that is smoother than the Hass avocado's and a green color that darkens as it becomes ripe. A hybrid Guatemalan variety, the Pinkerton avocado can weigh 8 to 18 oz.

Gwen

  • The "Gwen" avocado is a Guatemalan variety similar to the Hass avocado, but larger. This oval-shaped fruit can weigh between 6 and 15 oz. Gwen avocados have a thick, pebbly skin and small seeds. The skin's green color will becomes dull once it is ripe. Due to its similarities to the Hass, Gwen avocados have been referred to as the "grandchild" of the Hass avocado. These fruits are available beginning in April until late October.


source: http://www.ehow.com/info_8368052_largest-avocado-varieties.html#ixzz2qmxJbiSj