Monday, December 21, 2009

Convert bin/cue files to .iso on OS X

This is documented a couple places in much detail.
I just needed a CD image convert to ISO format (that's ISO9660)
so I could mount it in VMware Fusion.
Warning: command lines follow.
  1. Get BinChunker (bchunk) to convert bin/cue to iso. If you don't have a compiler, you can get it prebuilt here: BinChunker for OS X. I was trusting.. it works.
    (If you have macports installed, then you can just do 'sudo port install bchunk').
  2. run bchunk. I will assume you specify full path here or have it on your path:
    bchunk -v image.bin image.cue isoFileName
  3. Done. Mount it in vmware, Virtualbox, or just open the iso file if you want to look at the files (double-click in Finder).
Above is all I need to remember.
Credit to these posts, which go into more depth and alternatives.
Along the way I found some other things.
  • 'drutil burn' says it can burn bin/cue files; see the man page.
  • Burn can also burn bin/cue files, ISO's, mp3's or audios with CD-Text, and more.
    Selectable compression for conversion of videos to DVD format (mp2)--this might let me get more video on a disc?


Wednesday, December 16, 2009

Mercurial error-- hg ... "abort: cannot follow nonexistent file: "

There is a simple solution near the end..

I don't know much about Mercurial, except that it's a free revision control system and included with NetBeans. I was playing with the GUI builder and didn't want to pollute a subversion-controlled project, but did want to be able to revert back if necessary, and somewhere saw that Mercurial didn't need a server.

Anyway, it was working fine, then I went away from my work for a week or so,
had some more stuff that needed to be checked in before I could test moving part of a module to another project.

.. but on trying to commit my changes in NetBeans, I got an error dialog with instructions to see the output window, which contained the arguments to hg plus the message
abort: cannot follow nonexistent file: src/com/foo/frop/ickyGui.java
followed by one of the project files I was trying to check in.

I knew hg put its stuff in a tree somewhere, found it in NetBeansProjects/MyProject/.hg.
There is a file here for every src file in my project (filenames minorly encoded), plus a couple metadata files per directory. When I looked for the file hg complained about, it wasn't there.
Yet hg though it was checked in. How to convince it otherwise?

I didn't see any commands in the menus that looked promising,
google's first page of results were just statements that 'Mercurial is unfriendly'.
I really didn't want to spend a lot of time on this. Worst case I could create a new project and check it all in again. But I know how to mess with things which is generally the first step in reverse-engineering, so..

SOLUTION

I moved the files out of the way,
and then Mercurial said they were gone.
I committed this change.
I moved the files back,
Mercurial said they were new.
I added them.

And I remembered something I might have done--I restored a MacBook from TimeMachine backup as a way to migrate to another machine. Possibly that Mercurial file was one of the last, or somehow that file feel in the cracks one of the times I aborted backups.

Ideally, hg or netbeans would provide some graceful recovery.

Wednesday, November 25, 2009

Microsoft Genius: An error occurred while Windows was synchronizing with time.windows.com


.. or time.nist.gov, etc.


To see the error, double the clock in the systray, select the third tab which is labeled 'Internet Time', and try the 'Update Now' tab.
You will get the "An error occurred while Windows was synchronizing with time.windows.com" message. Try a different server, then 'update now'. Still get the error?

I did a little research, and found this long forum post about how this is broken everywhere --

We simply instruct them "to click on the time icon on the desktop,
then click the Internet Time tab,
and then copy the following blue text only - tick.usno.navy.mil -
and next paste it in the Server: Field,
then click on Apply,
then Update Now
and finally OK. Done, no more error messages.
Ok, isn't that what I did? No. (blogger fonts are whack when you paste text in from a webkit browser... I'm going with it).

What's missing? What did I do differently?
APPLY.
This is genius!
After you change the value, you have to click apply to tell microsoft windows you changed it. What should be a obvious intuitive interface is subtly subverted. You change the value to X, and click update now. Doesn't it use that value? It says, "error connecting to X" but it doesn't use that value? Not til you click Apply!
Why don't that have another button that says "ok, I clicked that button" ?

This is a cash cow for microsoft! How many people have called and been charged $59 for this? Whoever thought it up surely got a lot of stock options and probably a promotion to VP, or a special position where they can apply this feature to other parts of the system (send in your examples). An MBA student could do a thesis on this...


Well, I tested on 3 2003 Servers which had this problem,
but the XP system actually worked [but that was probably a bug].
I couldn't test on Vista, because the police took that computer.

... I guess I only read about a third of that post -- it looks like there could be multiple issues, or there are different types of voodoo that can cure it...
I only read about halfway, but I'm tired.
Good thing I have a Mac now.

Friday, November 20, 2009

Mount filesystems over ssh, ftp, etc on OSX with MacFUSE, Macfusion, and a fix for snow leopard

OS X can already mount folders shared by windows machines with smbfs (Finder - Connect to server), or WebDAV natively. With a little more software, you can mount any (*nix) filesystem over ssh or ftp, with macFuse/Fusion.

'FUSE' is something like Filesystem in User SpacE.. that means it doesn't have to be part of the OS directly, most importantly making easy for developers to try something, test it, fix it, and try again really quick, instead of maybe having to compile a whole OS, rebooting, etc. This has been around for a long time on Linux, and a while for Macs too. Just a whole lot easier on a Mac because there's some nice interfaces.

  1. MacFUSE allows you to extend Mac OS X’s native file handling capabilities via 3rd-party file systems. Visit the MacFUSE website for more information.
  2. install, you will need to reboot.
  3. Get Macfusion from http://www.macfusionapp.org/ and install it.
  4. Run it and mount some drives. After it's mounted, you can exit Macfusion.
One problem, it didn't work for me.. because I have the newer 10.6 (snow leopard). The error I got (see the macfusion log viewer) was:

(macfusionAgent, SSHServerFS, norad, 11/20/09 7:35 PM) dyld: could not load inserted library: /Applications/Utilities/Macfusion.app/Contents/PlugIns/sshfs.mfplugin/Contents/Resources/sshnodelay.so

I put mine in Utilities, but you might also see the path
/Applications/Macfusion.app/Contents/PlugIns/sshfs.mfplugin/Contents/Resources/sshnodelay.so

tell it to look for beta versions, check for update, remove an old module, and then it works..


I see my password in the macfusion log viewer -- how to I get rid of that?

Friday, November 13, 2009

This PTF WP_PTF_6102 can not be installed/uninstalled because PortalAdminPwd, W asPassword have not been entered in wkplc.properties.

Full message:


E:\IBM\WebSphere\PortalServer\update>UpdatePortal -fixpack -installDir "E:\
IBM\WebSphere\PortalServer" -fixpackDir "E:\IBM\WebSphere\PortalServer\updat
e\fixpacks" -install -fixpackID WP_PTF_6102 -fixpackDetails
Start of [ UpdatePortal ]
Build 20090714_0130

Verifying installer jar:
[ PortalUpdateInstaller.jar ]

Setting permissions on E:\IBM\WEBSPH~1\PORTAL~1\version
Set encoding: console
Fix pack update specified
Fix pack directory: E:\IBM\WebSphere\PortalServer\update\fixpacks
Installation specified
Fix pack: WP_PTF_6102
Target product directory: E:\IBM\WebSphere\PortalServer
Copyright IBM Corporation 2002, 2008; All rights reserved.
WebSphere Portal Version 6.1
Update Installer Version 1.6.1, Dated 5/1/08

UpdateInstallerArgs.isThisUninstall 0
UpdateInstallerArgs.isThisUninstallforFixpack 1
UpdateInstallerArgs.thisIsFixpackID WP_PTF_6102
WPConfig:findWkplcProperties
what is profileDirectory? e:/IBM/WebSphere/wp_profile
wp_install_root is e:/IBM/WebSphere
WP_PTF_6102Checking for Passwords ...

PortalAdminPwd has not been entered
WasPassword has not been entered


This PTF WP_PTF_6102 can not be installed/uninstalled because PortalAdminPwd, W
asPassword have not been entered in wkplc.properties.
UpdateInstaller.puiReturnCode is 8

End of [ UpdatePortal ]
----------------------------------------
Well, I set the passwords... got a little farther:

UpdateInstallerArgs.isThisUninstall 0
UpdateInstallerArgs.isThisUninstallforFixpack 1
UpdateInstallerArgs.thisIsFixpackID WP_PTF_6102
WPConfig:findWkplcProperties
what is profileDirectory? e:/IBM/WebSphere/wp_profile
wp_install_root is e:/IBM/WebSphere
WP_PTF_6102Checking for Passwords ...




log file in configtrace checking e:/IBM/WebSphere/wp_profile\ConfigEngine\log\Co
nfigTrace.log
Checking the status of all Application Servers
Checking status of server server1
Checking status of server WebSphere_Portal
Checking product features:

[No fix pack detail]

The specified fix pack does not exist
WP_PTF_6102

UpdateInstaller.puiReturnCode is 9

End of [ UpdatePortal ]
.............................................................
okay, maybe i didn't have the file(s) in fixpacks, but a subdirectory
There seemed to be a problem before, so I moved them..

start at 8:50pm ...