How to summarize a file of numbers
I can never remember how to do this with bc
% cat file-with-numbers-on-each-line | xargs echo | sed "s/ / + /g" | bc
I can never remember how to do this with bc
% cat file-with-numbers-on-each-line | xargs echo | sed "s/ / + /g" | bc
I’ve used the remote disc feature of OS X a few times. It’s pretty easy: you enable CD and DVD sharing on one Mac, and put the DVD in it. Then on the other Mac, you click on Remote Disc in the Finder sidebar, and you can attach the remote disc.
This is exactly what the online help from Apple says, and it works great, except when it doesn’t.
Sometimes, the Remote Disc item just isn’t there in the sidebar. And there’s no way to make it appear, in finder preferences or system preferences.
For example, I was able to do this from my Mac Mini; Remote Disc was there. But on my iMac, and most critically on the Macbook I was trying to set up that had a broken DVD drive, it was not there.
Here is the command line magic you need:
defaults write com.apple.NetworkBrowser EnableODiskBrowsing -bool true
defaults write com.apple.NetworkBrowser ODSSupported -bool true
Then you need to log out and log back in again (or maybe just kill Finder?).
I found this in Apple user forums:
If column A contains the names of the months and not actual date & time values that are formatted to show only the names of the months,
=SUMIF(A,”april”,C)
How awesome would this be?
http://www.forsyth.co.nz/index.html
“Totally awesome” is the correct answer.
Maybe in 10 years or so…
Note to self: http://www.manytricks.com/openwithmanager/
Might be useful.
visualvm --jdkhome /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/
via http://denverdev.blogspot.com/2008/09/setting-up-sun-visualvm-on-mac-osx.html
A nice summary of latency, what it means to your web business and how to attack it. Thanks Derek for the link.
http://highscalability.com/latency-everywhere-and-it-costs-you-sales-how-crush-it
iPhone:
Flight info
Hotel info
Boston Coach info
Fully charge
Computer:
presentation
verify keynote is installed on computer
verify VPN to home/work
verify iDisk sync
charge computer
Laptop bag:
Empty first
Full itinerary on a piece of paper, in outer pocket, and on fridge at home.
paper copy of conference agenda
Computer + charger
ipod + headphones
extra iphone headphones
extra ipod USB cable
ipod/iphone wall charger
camera?
2 books
medicine bag
toothbrush
mp3 cd of good music if renting a car
energy bar
pen
notebook/paper
business cards
eyeglasses case so I don’t leave them on the plane in the seatback again!
Duffle:
clothes + 1 day extra
swimsuit
dress shirt?
dress shoes?
Wear:
phone
travel watch
sports jacket
dress shirt
minimize wallet
Turn off leopard dock. Change background to solid color. Turn off Genie effect. Increase keyboard repeat speed to max.
Install developer tools (xcode), firefox, macports, mysql.
Macport installs: lynx, openvpn2, wget.
Firefox: install web developer, firebug, tamper data, foxmarks. Turn off auto update check for plugins, browser, search engines.
.mac: sync contacts, safari bookmarks, idisk.
home directory: copy .ssh, emacs files, cshrc and environments, bin directory.
Download Sprint Novatel U727 drivers.
Install IPSecuritas, configure ipsec for home, work.