Tuesday, 18 October 2011
Who reads manuals?
Instead of trying the man command to find out how to get the ssh fingerprint, I googled first.
I found this post, and copy/pasted into my command line and it did the trick: one ssh fingerprint in all it's glory. Then I thought a little, and typed in:
man ssh-keygen
Guess what? It gave me the options I needed. Isn't that a welcome surprise? Of course I do know how about the unix online manual options, I have no idea why I Googled first.
Who reads manuals, after all?
Monday, 17 October 2011
Backups and upgrades
Out of paranoia (and because I had a problem with the filesystem recently), I decided to do a full backup of my home directory first.
Two days later the backup was complete. Not surprisingly, I had done some work on the machine and needed to do a backup again, but this time I just backed up the files that have changed.
Today is the big day: starting the upgrade process. I found it amusing that it might take some time to download the updates. Only might?
Currently using my MacBook, and (as always) it is taking me a while to get used to the different key layout.
It takes a little while to reprogram my muscle memory into finding the ~, | and # keys again. I am never sure if Apple actually looked at a UK keyboard before setting up their keyboards, but it is most certainly not following the standard.
For those slightly less trusting than me, how do you know if a backup is successful? The only way I know is to do a restore. Comparing the backup to the original only says the files have the same contents, after all. It does not mean that the backup will be able to be restored to your machine.
My usual method for upgrades is to buy a new hard disk for the laptop, do a clean install then copy my files over onto the new install. This time I have bitten the bullet and went for a direct upgrade.
Monday, 30 May 2011
A working setup
- Add new build targets OSXDebug and OSXRelease based on the default Debug and Release setups.
- Change the compiler and linker to include the -arch i386
- In the post-build steps add the following
- Having the compiler automatically generate an install routine for the windows (mainly to put the dll's into the windows system folder)
- Getting the Linux build to cross-compile for the OSX platform
- Writing an application that works across all three platforms
Further frustrations and a brief moment of joy
I had set up my code in a dropbox folder so I could access the same codebase across all my machines, and booted my laptop running Ubuntu 11.04.
Sunday, 29 May 2011
Back to making progress
mkdir -p $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).app/Contents/MacOS/
/Developer/Tools/SetFile -t APPL $(TARGET_OUTPUT_FILE)
/Developer/Tools/Rez -d __DARWIN__ -t APPL Carbon.r -o $(TARGET_OUTPUT_FILE)
cp $(TARGET_OUTPUT_FILE) $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).app/Contents/MacOS/$(TARGET_OUTPUT_BASENAME)
/usr/local/bin/dylibbundler -od -b -x $(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).app/Contents/MacOS/$(TARGET_OUTPUT_BASENAME) -d ./$(TARGET_OUTPUT_DIR)$(TARGET_OUTPUT_BASENAME).app/Contents/libs/
The only thing that is (mildly) irritating is getting the cocoa application to execute when the ide is trying to run the code.
Next step: get the basic code to compile and execute on the Linux box, and following that cross-compiling for windows (not sure if there will be different variants for XP, Vista and 7 though). And after that? Creating a useful (or otherwise) application.
>About to switch machines. After tea (gammon with honey glaze mmmmm)>
Famous Last Words
Friday, 15 April 2011
Getting Closer
Update: a step I missed out was to set the Output filename for the build targets to point to the modfied file name. For my app I had to set it to bin/osx/Debug/Sim65.app/Contents/MacOS/Sim65.