Monday 28 December 2015

Surface Pro 3 KeyBoard Function Key Toggle


Fn + CapsLock

source: http://answers.microsoft.com/en-us/surface/forum/surfpro3-surfhardware/surface-pro-3-keyboard-function-keys-not-working/3a16eadc-b698-4845-be26-54f6530ab7da

Missing Disk Options When Installing OS X

diagnosis: hard drive crash, and removed partition.

Select the hard drive in Disk Utility on the left; on the right, select the Partiton tab; under Partition Layout, if the box is all gray (meaning there is no partition), then press the + button at the bottom; then hit Apply.

source: http://www.mac-forums.com/os-x-operating-system/283624-disk-options-installing-os.html

Saturday 31 October 2015

Check Device Serial Port on Mac

You can find your Arduino via Terminal with
 ls /dev/tty.*
then you can read that serial port using the screen command, like this
screen /dev/tty.[yourSerialPortName] [yourBaudRate]
for example:
screen /dev/tty.usbserial-A6004byf 9600


source: http://stackoverflow.com/questions/12254378/how-to-find-the-serial-port-number-on-mac-os-x

Free a Busy TTY Device

From terminal, run:

lsof | grep usbserial

If the port is in use, you will get a response like this (otherwise it will return nothing):

screen    27127 Sefi    5u     CHR               18,0        0t0       605 /dev/tty.usbserial

Note the session number. In my case, it's 27127. Then run:

screen -x 27127 (obviously use your session number from the grep)

It will return you to your previous screen session. Then use ctr-A ctr-\ to close it properly (will ask you to confirm).


source: https://discussions.apple.com/thread/6078814?tstart=0

Sunday 18 October 2015

Removing Gaps from TIKZ in LaTeX

Removing gaps from TIKZ in LaTeX:

the anchor=north causes that. Try node[coordinate](z){} instead should fill the gap


source: http://tex.stackexchange.com/questions/175969/block-diagrams-using-tikz

Thursday 24 September 2015

Disable Leap Motion App on Startup

You will find a line item

com.leapmotion.Leap-Motion.plist

Library/LaunchAgents

Just rename from .plist to .bak - incase you would like to auto startup again.

I believe Leap Motion chose to use LaunchAgent rather than 'Login Items' is because they couldn't get it to startup all the time.

source: https://discussions.apple.com/thread/5295534

Stalled Spotlight Search on Mac

You can try to temporarily disable Spotlight, removing its files and then reenabling it.

See source for in-depth explanation.

source: http://apple.stackexchange.com/a/1082

Google Chrome Helper Process

The quick story is that Google Chrome Helper isn’t really the problem. It tends to go on the rampage when there’s a rogue extension or when Google Chrome’s plug-in settings are configured to run everything by default. There’s a long list of the plug-ins supported by Chrome here, but most users in the Help Center forums seem to run into trouble when it’s working with Flash content.

Disabling Helper’s auto-helping is easy, and it won’t prevent you from using plug-ins. You’ll just have to opt in to view plug-in content on a case-by-case basis. Deactivating it isn’t entirely intuitive, though—there’s no mention of the Helper outside of your Activity Monitor and forum complaints. You’ll have to dig a couple of levels deep into your Chrome settings. First, shut down all your Chrome windows without quitting the program. In the Chrome menu, go to “Preferences,” scroll all the way down in the menu, and click on “Show advanced settings…” The first item in the expanded advanced settings list will be “Privacy,” and click on the “Content Settings” button right under that. About halfway down the content settings list is a “Plug-ins” entry, which will likely be set to “Run automatically.” Instead, select “Click to play.” This is essentially the same thing as configuring email to load images only when you click a “load images” link. Any embedded Flash, Java, Quicktime, DivX, or Silverlight content on a webpage will appear as a grayed-out space until you click on it to load the player and the content.

source: http://www.wired.com/2014/10/google-chrome-helper/

Friday 11 September 2015

Surface Pro 3 Hotkeys

Screen brightness:
Fn+Backspace = dimmer.
Fn+Backspace = brighter.

source: http://www.lovemysurface.net/surface-pro-3-screen-brightness/

Closing a window:
Fn+Alt+F4

source: https://pricklytech.wordpress.com/2014/08/05/surface-pro-3-quick-tip-alt-f4-does-not-work/

Monday 7 September 2015

Fantastic Tutorial on Setting Up Github Pages and Jekyll Layouts

Really good tutorial on setting up a github.io website, using Jekyll for templates/layouts (built into Github webpages already, so no additional installation), and markdown.

source: http://jmcglone.com/guides/github-pages/

Git: deleting remote file but not local

git rm --cached [file]

Friday 4 September 2015

Modifying Pixel Dimensions in Mac Preview

While using selection, the pixel size highlighted is shown, so before cropping you can check if you have the right size.

Thursday 20 August 2015

Redirecting Web Pages

HTML:

<meta http-equiv="refresh" content="0; URL='http://new-website.com'" />

source & other methods: https://css-tricks.com/redirect-web-page/

Wednesday 22 July 2015

View PDF Side-By-Side in TexMaker

In preferences, select "Built-In Viewer".


source: http://tex.stackexchange.com/questions/36100/texmaker-source-editor-and-embedded-pdf-viewer-on-same-window

Tuesday 21 July 2015

Minimize/Maximize Window Keyboard Shortcut in Ubuntu


ctrl super up
ctrl super down

super is the Windows button.




source: http://superuser.com/questions/607637/minimize-maximize-current-window-keyboard-shortcut

Latex Text Gets Cut Off By Page

Modify value here to match your margins:

\setlength{\textheight}{10.25in}

Friday 3 July 2015

Quarter Increment Volume on Mac

option + shift + increase/decrease

source: http://hints.macworld.com/article.php?story=20130309231013323

Friday 19 June 2015

Obama in SF


Git: Rename Branch for Both Local and Remote Repositories

git branch -m old_branch new_branch         # Rename branch locally
git push origin :old_branch                 # Delete the old branch
git push --set-upstream origin new_branch   # Push the new branch, set local branch to track the new remote

source:  http://stackoverflow.com/questions/1526794/rename-master-branch-for-both-local-and-remote-git-repositories?answertab=votes#tab-top

Git: Completely Undo Previous Commit

git reset --hard HEAD~1
 
 
    (F)
A-B-C
    ↑
  master
 
becomes:

 (F)
A-B
  ↑
master
 

source: http://stackoverflow.com/questions/927358/how-to-undo-the-last-commit

Git: Deleting Local/Remote Branch

To delete a local branch
git branch -d the_local_branch
 
To remove a remote branch
git push origin :the_remote_branch



source: http://makandracards.com/makandra/621-git-delete-a-branch-local-or-remote

Friday 22 May 2015

/sys/device/bone_capemgr* doesn't exist on fresh image

Purpose: bone_capemgr* is needed for Device Tree Overlays.

Solution:
Down grade to v3.8.x:

sudo apt-get update
sudo apt-get install linux-image-3.8.13-bone68
sudo reboot 



source: https://groups.google.com/forum/#!topic/beagleboard/IpZuVHS3aEs

Recursively look for files with a specific extension in Linux



find $directory -type f -name \*.[file extension]


source: http://stackoverflow.com/questions/5927369/recursively-look-for-files-with-a-specific-extension

Thursday 21 May 2015

Tuesday 19 May 2015

PARISOMA hackerspace @ SF


Running pipe commands as super user in bash

sudo sh - c '[command]'

sh -c is needed here to execute that command in a root subshell. This is because sudo echo out > direction would execute echo as root, but the redirection (> direction) would be done by your current (non-root) shell. You could also just do this su root.

 source: https://groups.google.com/forum/#!topic/beagleboard/KanwoGOy2bY

Thursday 23 April 2015

4/23 Harmonic resonators - History of Science Museum, Cambridge University

Physical manifestation (and possible inspiration, depending on the timeline) for Fourier Series+Transform (but hard to quantity magnitude/coefficients in this setup).