Friday, December 27, 2013

git flow release a new version

gitflow how to release a new version

steps can be found here. In particular,

  • create a release branch
  $ git checkout -b release-2.1 develop  
  • work on the release branch such as bumping up the version

  • merge to master and develop branch

  • create a tag

  $ git checkout master  $ git merge --no-ff release-2.1  $ git tag -a v2.1   
  • push the tag, see here
  $ git push origin v2.1 

Thursday, December 19, 2013

excel on mac using letters to indicate columns

https://kb.wisc.edu/page.php?id=781

excel -> preference -> general -> use r1c1 reference style (uncheck it) 

Wednesday, December 18, 2013

apple show file extensions

http://support.apple.com/kb/PH10845

finder->preference->advanced->show all

Thursday, October 31, 2013

7za on mac

7zip

To zip a file with password:
  - 7za a -tzip -pMY_SECRET -mem=AES256 secure.zip doc.pdf doc1.pdf

And unzip the file:
  - 7za e secure.zip

Sunday, September 22, 2013

Thursday, September 19, 2013

turn off mailapp automatic attachment preview on mac

http://www.cultofmac.com/218527/turn-off-mailapp-automatic-attachment-preview-os-x-tips/

$ defaults write com.apple.mail DisableInlineAttachmentViewing -bool yes


[note, do not use sudo]

Tuesday, July 16, 2013

disable mac keyboard

  sudo kextunload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext  
  sudo kextload /System/Library/Extensions/AppleUSBTopCase.kext/Contents/PlugIns/AppleUSBTCKeyboard.kext  

Tuesday, July 2, 2013

Wednesday, May 1, 2013

books to read


Algorithms on Strings, Trees and Sequences: Computer Science and Computational Biology
 by Dan Gusfield


The Elements of Graphing Data
 by William S. Cleveland


The Visual Display of Quantitative Information
 by Edward R. Tufte

Monday, March 11, 2013

delete photos on ipad

from http://ipadacademy.com/2011/09/another-way-to-quickly-delete-photos-from-your-ipad-mac-only


Another Way to Quickly Delete Photos from Your iPad (Mac Only)

Written by Andy Brovey

Topics: iPad Tips & Tutorials

A short time ago I replied to questions about removing or deleting photos from your iPad. See this post and the comments on this one. Here's another way to manage the photos on your iPad using a little known application on your Mac. The program is called Image Capture and you can find it in your Applications folder.

1. Start Image Capture
2. Connect you iPad to your Mac
3. Image Capture sees your iPad as a connected camera
4. Click on the first photo you want to delete
5. Select additional photos using Command-Click
6. Select a range (series) of photos by clicking on the first one, then Shift-Click the last one
7. To delete all the photos on your iPad, choose Edit > Select All
8. Look for the red circle with the line through it near the bottom of the window
9. Click the red circle icon and confirm the deletion

Friday, March 8, 2013

Thursday, February 21, 2013

create function documentation template in R

create function documentation template in R

 prompt(monitor, file = 'monitor.Rd', force.function = TRUE)

Thursday, January 31, 2013

sqldf on mac

On mac, this is needed, otherwise it would ask of x11

options(gsubfn.engine = "R")
library(sqldf)

not knowing why now.

Thursday, January 24, 2013

random seed in makefile

SEED := $(shell od -An -N2 -i /dev/random | tr -d ' ')

Monday, January 21, 2013

batch word to pdf

http://superuser.com/questions/17612/batch-convert-word-documents-to-pdfs-free

In particular, 

Save this to a file SaveAsPDF.js and run it from the command line using cscript.exe //nologo SaveAsPDF.js SomeFolder\MyDocToConvert.doc:

  var fso = new ActiveXObject("Scripting.FileSystemObject");  var docPath = WScript.Arguments(0);  docPath = fso.GetAbsolutePathName(docPath);    var pdfPath = docPath.replace(/\.doc[^.]*$/, ".pdf");  var objWord = null;    try  {      WScript.Echo("Saving '" + docPath + "' as '" + pdfPath + "'...");        objWord = new ActiveXObject("Word.Application");      objWord.Visible = false;        var objDoc = objWord.Documents.Open(docPath);        var wdFormatPdf = 17;      objDoc.SaveAs(pdfPath, wdFormatPdf);      objDoc.Close();        WScript.Echo("Done.");  }  finally  {      if (objWord != null)      {          objWord.Quit();      }  }