- Find your computer's MAC address
- Airport utility
- Advanced section
- Logging & statistics tab
- Click on "Logs & statistics" button
- DHCP clients section
- Ensure that DHCP IP address stays the same.
- Airport utility
- Internet section
- DHCP
- Add a DHCP reservation
- Description: e.g., Norple@10.0.1.2
- Reserve by MAC (not client—it's not working for me)
- I used 10.0.1.2, a fine IP address indeed
- Set up port services
- Airport utility
- Advanced
- Port Mapping
- Add:
- SSH (choose nonstandard public port, like 2319, private can be 22)
- Person web sharing
- Others...?
- Update Airport so that it shuts down and restarts
- Set up web and file sharing on your computer
- System preferences
- Sharing
- Check remote login, web sharing, whatever you want.
A repository of notes; by noto, for noto. Made public so noto can read it from anywhere. It won't make any sense to you.
Friday, January 13, 2012
Setting up ssh/http port mapping on a Mac using Airport (Extreme)
Thursday, December 15, 2011
Combining Multiple PDF files into one
gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=out.pdf source1.pdf source2.pdf source3.pdf
Source:http://hints.macworld.com/article.php?story=2003083122212228.
Friday, September 30, 2011
Back-up DVDs from a MacOS command line
How to backup DVDs (this approach will not overcome copy protection--because of the ripping process).
Prereq:
Install dvdbackup
from http://dvdbackup.sourceforge.net
. Note that this requires libraries (i) libdvdread
and (possibly, ii) libdvdcss
. Download and install the libraries, then dvdbackup
(all are ./configure,make,sudo make install). Additional note: I installed libdvdread via mac ports, but dvdbackup
failed to configure because it required a different version. I then downloaded and installed version 0.9.7 separately, then ./configure worked (I also downloaded and installed libdvdcss--not sure if that matters.)
To backup a DVD:
-
dvdbackup -v -i /dev/disk1 -n NAME -M
where /dev/disk1 should be replaced with the device currently associated with the inserted disc, and NAME is whatever name you want to assign to the project. It turns out, the -n option is necessary. Without more options,dvdbackup
creates a similarly-named directory and writes the files there (the-v
option is just for verbosity--usedvdbackup --help
) -
hdiutil makehybrid -udf -o NAME.iso path-to-FOLDER
where NAME is again up to you, but path-to-FOLDER must contain the VIDEO_TS directory created by dvdbackup (it must not be the VIDEO_TS directory itself). Typically, this will be the directory created bydvdbackup
. - Burn the image with
hdiutil burn NAME.iso
This, apparently, finds your DVD device, writes and ejects it.
Thursday, August 4, 2011
auto-indent an entire source code file in VI (vim, gvim)
gg=G
=
, the indent command can take motions. So, gg
to get the start of the file, =
to indent, G
to the end of the file, gg=G
.http://stackoverflow.com/questions/506075/how-do-i-fix-the-indentation-of-an-entire-file-in-vi
Saturday, April 9, 2011
Open PDF files in Preview instead of Chrome
Open chrome://plugins/ in the browser and disable the PDF Viewer plugin.
Source: http://superuser.com/questions/107700/how-to-disable-automatic-opening-of-pdf-files-in-chrome
Source: http://superuser.com/questions/107700/how-to-disable-automatic-opening-of-pdf-files-in-chrome
Thursday, February 24, 2011
How to Capture and Save a Flash Video
- Open and play the video in Safari.
- Copy the video file from its saved location in /private/var/folders/ and give it a
.flv
extension. The file will be in location with randomly chosen directory names, e.g.,/private/var/folders/Lb/Lbis5JtsGb0VIR-vYYdZ4E+++TI/TemporaryItems/FlashTmp0
.$ sudo find /private/var/folders -name 'FlashTmp*'
/private/var/folders/Lb/Lbis5JtsGb0VIR-vYYdZ4E+++TI/TemporaryItems/FlashTmp0
$ sudo cp /private/var/folders/Lb/Lbis5JtsGb0VIR-vYYdZ4E+++TI/TemporaryItems/FlashTmp0 ~/Desktop/movie.flv
$ sudo chmod 644 ~/Desktop/movie.flv - Open the movie with your favorite player (I've used VLC and had it work).
Wednesday, January 19, 2011
Features of the UCI chess data sets

1 | bkblk | the BK is not in the way |
2 | bknwy | the BK is not in the BR's way |
3 | bkon8 | the BK is on rank 8 in a position to aid the BR |
4 | bkona | the BK is on file A in a position to aid the BR |
5 | bkspr | the BK can support the BR |
6 | bkxbq | the BK is not attacked in some way by the pro- moted WP |
7 | bkxcr | the BK can attack the critical square (b7) |
8 | bkxwp | the BK can attack the WP |
9 | blxwp | B attacks the WP (BR in direction x = -1 only) |
10 | bxqsq | one or more Black pieces control the queening square |
11 | cntxt | the WK is on an edge and not on a8 |
12 | dsopp | the kings are in normal opposition |
13 | dwipd | the WK distance to intersect point is too great |
14 | hdchk | there is a good delay because there is a hidden check |
15 | katri | the BK controls the intersect point |
16 | mulch | B can renew the check to good advantage |
17 | qxmsq | the mating square is attacked in some way by the promoted WP |
18 | r2ar8 | the BR does not have safe access to file A or rank 8 |
19 | reskd | the WK can be reskewered via a delayed skewer |
20 | reskr | the BR alone can renew the skewer threat |
21 | rimmx | the BR can be captured safely |
22 | rkxwp | the BR bears on the WP (direction x = -1 only) |
23 | rxmsq | the BR attacks a mating square safely |
24 | simpl | a very simple pattern applies |
25 | skach | the WK can be skewered after one or more checks |
26 | skewr | there is a potential skewer as opposed to fork |
27 | skrxp | the BR can achieve a skewer or the BK attacks the WP |
28 | spcop | there is a special opposition pattern present |
29 | stlmt | the WK is in stalemate |
30 | thrsk | there is a skewer threat lurking |
31 | wkcti | the WK cannot control the intersect point |
32 | wkna8 | the WK is on square a8 |
33 | wknck | the WK is in check |
34 | wkovl | the WK is overloaded |
35 | wkpos | the WK is in a potential skewer position |
36 | wtoeg | the WK is one away from the relevant edge |
References:
Subscribe to:
Posts (Atom)