Showing posts with label apple. Show all posts
Showing posts with label apple. Show all posts

Monday, March 17, 2014

Fwd: Mac print to PDF without margin

We need to create a customized page size of say letter with margins being of zero inch. 


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

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  

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

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.

Wednesday, December 12, 2012

apple extra menu bar

/System/Library/CoreServices/Menu Extras

command + drag to move or delete 

Thursday, October 11, 2012

macvim font setting

:set guifont=*
This brought up my native font selector

and I got back the value of "guifont=Menlo Regular:h14″. 
To set this style in my .gvimrc file:

set guifont=Menlo\ Regular:h14"

Saturday, September 15, 2012

a couple tips for mac

terminal color

http://osxdaily.com/2012/02/21/add-color-to-the-terminal-in-mac-os-x/

export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced

install wget

./configure --with-ssl=openssl 
make 
sudo make install 

short cuts

in particular: ctrl E and ctrl A might be helpful sometimes

Wednesday, August 8, 2012

Stop Mac from sleeping

pmset noidle

Wednesday, January 12, 2011

cd 2 iso on mac

mac, cd to iso 

hdiutil makehybrid -iso -joliet -o Master.is XXXX

XXXX is the folder that might show on the desktop

Sunday, April 11, 2010

snow leopard slow connect ssh

/etc/sshd_config

# add the following line seems working
UseDNS no

mac rm ssh kerberose

I am not sure what I am doing?

sudo sso_util remove -k -a username -p password -r NAME. OF.KERBEROSREALM

Saturday, January 9, 2010

bash PS1

export PS1='\h:\w \u\$ '

Saturday, December 12, 2009

mac terminal color highlighting

Enabling directory and file color highlighting requires that the file ~/.bachrc, ~/.profile, or ~/.bash_profile to be changed:

export CLICOLOR=1
export LSCOLORS=ExFxCxDxBxegedabagacad