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

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