Saturday, September 22, 2012

r profile.site change options permanently

It seems the following link points to an approach, however, it does not work well. 


So at least this file can be changed for this purpose, 

library/base/R/Rprofile 

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

Friday, August 24, 2012

configure windows 7 to support dnsmasq

Configure Windows 7 to resolve hostnames (source)

  1. Go into Network Connections (I just typed "Network Connections" om the start icon -> run box)
  2. Right click on your Network Adapter and go into Properties
  3. Select "Internet Protocol Version 4 (TCP/IPv4)"
  4. Under the General Tab click Advanced
  5. Under the DNS Tab select the radio button that says "Append these DNS suffixes (in order)"
  6. Click "Add…"
  7. Enter a single period in the text box and click "Add."
  8. Click OK in the "Advanced TCP/IP Settings" Dialog
  9. Click OK in the "Local Area Connection Properties" Dialog

And there you go.


copied from http://blog.edwards-research.com/2009/09/lan-dns-resolution-with-wrt54g-dd-wrts-dsnmasq-linux-and-windows-7/

Wednesday, August 8, 2012

Stop Mac from sleeping

pmset noidle

Friday, August 3, 2012

convolution theorem

convolution theorem:

For any two vectors a and b of length n, w here n is a power of 2, 

where the vectors a and b are padded with 0s to length 2n and  \cdot denotes the com-
ponentwise product of two 2n-element vectors.

copied from introduction to algorithm