Saturday 28 February 2015

Colors in LaTeX

Default: red, green, blue, cyan, magenta, yellow, black. Green, yellow are really bright. Magenta can sometimes be hard to distinguish from black. Alternatively, can specify the colorspace and values. Other options are available with the dvipsnames option.

source: https://www.sharelatex.com/learn/Using_colours_in_LaTeX

Friday 27 February 2015

Widening Gaps in Living Standards

"Today 99 percent of Americans living below the poverty line have electricity, water, flushing toilets, and a refrigerator; 95 percent have a television; 88 percent have a telephone; 71 percent have a car; and 70 percent even have air-conditioning. This may not seem like much, but one hundred years ago men like Henry Ford and Cornelius Vanderbilt were among the richest on the planet, but they enjoyed few of these luxuries."

-Abundance: The Future Is Better Than You Think, Peter Diamandis

Ordering Citations in LaTeX by Appearance

Change
\bibliographystyle{plain}
to
\bibliographystyle{ieeetr}
Then rebuild it a few times to replace the .aux and .bbl files that were made when you used the plain style.
If you use MiKTeX you shouldn't need to download anything extra.

Note: 'plain' style uses alphabetical order.


source: http://stackoverflow.com/questions/144639/how-do-i-order-citations-by-appearance-using-bibtex

Wednesday 25 February 2015

Disabling Verizon Backup Assistant

First, go into your Verizon account and make sure it's not on your feature list for the paid version. Second, go into your Settings->More->Applications. Find the Backup Assistant app and clear cache and data. Third, in that same app list, find Sync Service. Clear its data and cache, then disable. Fourth, reboot your phone.

purpose: save some battery.

source: http://forums.androidcentral.com/verizon-samsung-galaxy-s4/285795-backup-assistant-plus-issues.html

Changing Blogger Published-Post URLs

Revert to draft -> post settings -> change the permalink.


source: http://blogtimenow.com/blogging/changing-blogger-post-url-permalink-published/

Chablais Alps, France

Tuesday 24 February 2015

Cropping Images using Mac's Preview

After the image is opened, hit edit, select an area (dotted-line box will appear), and then crop. The crop option isn't available until a region is selected.


source: http://osxdaily.com/2014/06/16/crop-image-mac-preview/

Saturday 21 February 2015

Arduino as USB to Serial Converter

Ground the reset pin in order to bypass the Atmel chip.

Upload Arduino code that denotes RX and TX pins as INPUTs, so that the Atmel chip does not interfere with the onboard FTDI chip. Example:

void setup()
{
  pinMode(0,INPUT);
  pinMode(1,INPUT);
}
void loop()
{

}

source: https://web.archive.org/web/20110207183541/http://students.sabanciuniv.edu/kehribar/?p=19

Monday 16 February 2015

XBee Tutorials

Misc:
Parallax - datasheets.
Digikey - international distributor, has the parallax products.
XCTU software - windows only. Alternatively, can interface with Arduino to handle data acquisition.

source:
https://www.youtube.com/watch?v=odekkumB3WQ (~50min total, tunnelsup's channel, great introductory+configuration+advanced info).
https://www.youtube.com/watch?v=RYQpZWij2-M (~6min, comparison of xbee breakout boards, description of power/freq/range capabilities)

Digital Signatures on Mac

Use Edit functions in Preview.

source: http://smallbusiness.chron.com/create-electronic-signature-mac-56332.html

Wednesday 11 February 2015

Salaried Exempt Vs. Salaried Nonexempt

Although several criteria separate salaried exempt workers from salaried nonexempt workers, the one key difference between salaried exempt status and salaried nonexempt status is overtime pay. Exempt employees don't receive overtime pay; nonexempt employees do. The classification criteria for exempt and nonexempt workers are part of the Fair Labor Standards Act, or the FLSA, which is the federal law that governs minimum wage, overtime pay and working hours.

source: http://smallbusiness.chron.com/salaried-exempt-vs-salaried-nonexempt-24213.html

"Undefined References" in Latex

1. Run LaTeX
2. Run BibTeX
3. Run LaTeX
4. Run LaTeX

So, after every change in your .bib file, you have to run BibTeX again, followed by running LaTeX two times afterward. Of course, if you're using pdflatex (or xelatex), the same applies for it: pdflatex > BibTeX > pdflatex > pdflatex.


source: http://www.latex-community.org/forum/viewtopic.php?f=50&t=9280

Location of Gazebo demo world files on Mac, installation via Homebrew

ls /usr/local/share/gazebo-5.0/worlds

source: http://gazebosim.org/tutorials?tut=quick_start&cat=get_started

Tuesday 10 February 2015

Restricting Command+tab options to only apps that are in the current space on Mac

In Mavericks, ^F4 switches through windows in the current space but you may have to upgrade to Yosemite to map this behavior to ^~.

The problem can still be alleviated like so:

System Preferences > Mission Control > Uncheck "When switching to an application, switch to a Space with open windows for the application"


In Yosemite, this behavior can now be mapped to your desired key combination:
System Preferences > Keyboard > Shortcuts > Keyboard > Move focus to active or next window

source: http://apple.stackexchange.com/questions/5668/restricting-commandtab-options-to-only-apps-that-are-in-the-current-space/128718#128718


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