Monday, September 29, 2008
Wednesday, September 24, 2008
Tuesday, September 23, 2008
- meter - This gives us a measurement for length.
- gram - This gives us a measurement for weight.
- liter - This gives us a measurement for volume.
Sunday, September 21, 2008
- I only care about my home directory. When the system's hard disk shits the bed, I buy a new one and then do a reinstall from scratch. I restore my home directory and then install the software packages I have in my home directory. I find this to be easier than backing up the entire system.
- I don't want to wait to backup the entire system, which is currently 138GB and like a kid on Flintstone vitamins...growing.
- The --root option to packagemaker is a bit picky. You have a add a trailing slash on the path you specify, otherwise your staging root directory will end up on the target system. For example:
The resulting package will install /pkg-root to your system (dumb!). You have to run it this way:
# put stuff in ./pkg-root for the package
packagemaker --root ./pkg-root [options]
And then pkg-root is treated like a staging root.
packagemaker --root ./pkg-root/
- To show all installed packages on the system:
However, this only shows packages that pkgutil can see. It won't show you any installed packages recorded in /Library/Receipts. It only shows packages with an entry in /Library/Receipts/boms. The locations appear to be mutually exclusive. Why?
It is possible to remove an entry from the installed packages database. All you have to do is:
pkgutil --forget PACKAGE
This removes the entry from the database, but not what is actually on the system. Why is this even possible? Also note that this will again only work for what packages pkgutil can see. If you want to forget something in /Library/Receipts, just
rm -rfthe directory.
Want to completely hork your system? pkgutil does offer a way to forget a package and remove the files it owns. You can do this:
pkgutil --unlink PACKAGE
pkgutil --forget PACKAGE
No dependency checking is done, pkgutil just deletes whatever is owned by that package. You do this on the BSD package, for instance, and totally hose the system. Great work, Apple.
If you pass the --target option to packagemaker, the resulting flat package it generates won't contain anything from --resources. It just ignores Resources. Great!
The different package formats created by packagemaker appear to be recorded differently in /Library/Receipts. A flat package gets a bom file in the /Library/Receipts/boms subdirectory. A package bundle with metadata gets a receipt bundle as /Library/Receipts/NAME.pkg with the bom file in the bundle as Archive.bom.
So that's what I've discovered trying to package software on MacOS X. It's frustrating and annoying. Packaging is a solved problem. And uninteresting. Why can't OS X just use any of the dozens of packaging systems out there that are open source?
Tuesday, September 16, 2008
Thursday, September 11, 2008
Monday, September 8, 2008
Saturday, September 6, 2008
- The company no longer has the apartment in Brno, so got to stay in two different hotels in Brno. Coming from the US, hotels here are very different. Things you take for granted in a US hotel just aren't present here. For example, a TV, a phone, or even a comfortable bed. Beds are the size of coffee tables and have a rock hard mattress. You get one towel per bed, but the towel is like the size of a large dish towel. Most of the Europeans who came here from other countries brought their own towel. Noted for future trips.
- Bathrooms are strange here. A lot of places will have a single door in to a WC and inside there is a sink or two and then two different doors for men and women facilities. So, they share a sink setup, but have different toilets.
- Bathrooms in the hotel are different. The toilet has its own room. The sink and shower has a different room. Both have doors that lock.
- Hotel rooms have actual real keys instead of plastic magstripe keycards. There's also one key per room, so if you are sharing with someone, you need to work out the key protocol.
- You don't take the key with you when you leave the hotel. It's the same in Austria. You give your key to the front desk and when you come back, you just tell them your room and get your key. They don't want to lose the keys, which I guess are expensive or they don't want to force you to carry them around.
- As I discovered on my London and Brussels trip, light switches are backwards and doors open the wrong way. Hot and cold are swapped in some places.