tag:blogger.com,1999:blog-15574033315848511912024-03-05T23:37:11.337-08:00How did I do that?This is me capturing various things so I remember how I did them. If anyone else finds them useful, great.Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.comBlogger29125tag:blogger.com,1999:blog-1557403331584851191.post-87091971026500535022014-02-16T17:27:00.000-08:002014-02-16T17:27:48.745-08:00The path to Apple Mail templates...In case you want to edit them directly.<br />
<br />
<blockquote class="tr_bq">
~/Library/Containers/com.apple.mail/Data/Library/Application Support/Mail/Stationery/Apple/Contents/Resources/Custom/Contents/Resources</blockquote>
<br />Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-90969036852538685062014-02-06T05:16:00.001-08:002014-02-06T05:16:13.601-08:00Fixing Gmail/IMAP with Apple Mail on MaverickEmail from my GMail account was showing up slowly and sporadically in Apple Mail under Maverick. Fix kudos to <a href="https://discussions.apple.com/message/23720125#23720125">this post by TPIRMan</a>:<br />
<blockquote class="tr_bq">
<span style="background-color: white; color: #333333; font-family: 'Lucida Grande', 'Lucida Sans Unicode', Helvetica, Arial, Verdana, sans-serif; font-size: 13px;">I fixed this problem by going to my Gmail Settings > Labels and unchecking the "Show in IMAP" checkbox next to "All Mail."</span></blockquote>
Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-87511558928152835652012-08-18T16:08:00.000-07:002012-08-18T16:08:27.666-07:00Media Button Router to the rescue...After upgrading my SamSung Galaxy SII to Android 4, the play/stereo button on my car stereo quit having the desired effect while streaming audio from Listen over bluetooth.<br />
<br />
Thanks to <a href="http://forum.xda-developers.com/showpost.php?s=9f32cddc606e0b4ec68c8ef7820e9c39&p=25583816&postcount=7">this post</a>, I found <a href="https://play.google.com/store/apps/details?id=com.harleensahni.android.mbr&feature=search_result#?t=W251bGwsMSwyLDEsImNvbS5oYXJsZWVuc2FobmkuYW5kcm9pZC5tYnIiXQ..">Media Button Router</a>. Installed it, configured it to send all media controls to Listen, and it just works. Even seems more reliable than before.Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-82043491221840561772011-06-11T03:40:00.000-07:002011-06-11T03:40:47.587-07:00"setup.py test" throwing "ValueError: Empty module name"Running 'setup.py test' suddenly started throwing a ValueError:<br />
<br />
<blockquote>$ /usr/bin/python ./setup.py test<br />
running test<br />
running egg_info<br />
writing pyVBox.egg-info/PKG-INFO<br />
writing top-level names to pyVBox.egg-info/top_level.txt<br />
writing dependency_links to pyVBox.egg-info/dependency_links.txt<br />
reading manifest file 'pyVBox.egg-info/SOURCES.txt'<br />
writing manifest file 'pyVBox.egg-info/SOURCES.txt'<br />
running build_ext<br />
Traceback (most recent call last):<br />
File "./setup.py", line 17, in <module><br />
url = "http://github.com/von/pyVBox"<br />
...snip...<br />
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py", line 576, in loadTestsFromName<br />
module = __import__('.'.join(parts_copy))<br />
ValueError: Empty module name</module></blockquote>Poking around with pdb, it turns out it was because the name argument to loadTestsFromName():<br />
<br />
<blockquote>(Pdb) print parts_copy<br />
['test', '', '#VirtualMachineTests']<br />
(Pdb) print name<br />
test..#VirtualMachineTests</blockquote><br />
Which turns out to be caused by a Emacs autosave file. I had unsaved changes in my Emacs buffer. Once I saved them, the autosave file went away and 'setup.py test' ran fine.<br />
<br />
Obviously some deeper problem here with setup.py tripping over these files.Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-75607988144369825752011-04-06T07:00:00.000-07:002011-04-06T07:15:09.320-07:00Apple Mail losing all stateSeen this scenario a couple of times:<br />
<ol><li>Mac crashes</li>
<li>Reboot and when Mail starts up, it's lost all of it's state and wants me to re-enter all my accounts information.</li>
</ol>Fortunately, all my email is in IMap, so it's just a matter of restoring Mail's state about my IMap accounts. This is done by shutting down Mail, replacing ~/Library/Preferences/com.apple.mail.plist with a good copy from a backup.Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-79822671040880348242011-03-12T20:00:00.000-08:002011-03-15T18:13:42.753-07:00Adding a Tomato router as a Wifi extenderI recently moved into a house with a finished basement, which really puts a crimp into my ability to run cat5 ethernet where I want it. So, I needed some wifi extension and the ability to support some devices without wifi capability.<br />
<br />
Since I'm using a <a href="http://www.polarcloud.com/tomato">Tomato router</a> which supports <a href="http://en.wikipedia.org/wiki/Wireless_Distribution_System">WDS</a>, I decided to add a second router and use WDS to turn it into an extender and a wired-to-wireless bridge.<br />
<br />
I bought another <a href="http://www.amazon.com/Cisco-Linksys-WRT54GL-Wireless-G-Broadband-Compatible/dp/B000BTL0OA/ref=pd_ybh_3?pf_rd_p=280800601&pf_rd_s=center-2&pf_rd_t=1501&pf_rd_i=ybh&pf_rd_m=ATVPDKIKX0DER&pf_rd_r=1TJJD3HNYAPHG533X497">Cisco/Linksys WRT54GL</a> and installed Tomato 1.28. I basically did <a href="http://v2kblog.blogspot.com/2009/01/installing-tomato-router.html">what I did last time</a>, with a couple tweaks:<br />
<br />
<ol><li>I downloaded and unpacked the Tomato firmware.</li>
<li>Since my home LAN is not the default network (192.168.1.0) I was able to connect my laptop to the new router via an ethernet cable and communicate with it directly without having it connected to the rest of my LAN. If you are using 192.168.1.0 for your LAN, you can do the same but you'll probably need to swap back and forth by turning your airport interface on and off, and disconnecting the ethernet cable.</li>
<li>I skipped the factory reset and just did the upgrade. All went smoothly.</li>
<li>After changing the password, under Basic/Identification I changed the router name and under Administration I changed the color scheme.</li>
<li>I then followed t<a href="http://www.polarcloud.com/tomatofaq#how_do_i_use_wds">he directions in the Tomato FAQ to set up WDS</a> on both routers. The only hitch I had here is initially tried to use "WPA/WPA2 Personal" and "TKIP/AES" instead of "WPA Personal" and "AES" as the FAQ suggests and I couldn't get that to work. Following the directions exactly and things worked fine.</li>
</ol><br />
That's it - pretty darn easy. I've ordered a third WRT54GL to add a third repeater which I'll chain to the second to add another wired-to-wireless bridge. I expect that to go smoothly and will post when I've finished that.<br />
<br />
<b>Update 3/15</b>: Added a third router, chained to the second and all is working well.Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-72868923450184467562010-10-25T05:34:00.000-07:002010-10-25T05:34:09.202-07:00Fix stuck install on AndroidApplication updated and got stuck on "Installing..." - I couldn't cancel, reinstall, etc.<br />
<br />
What worked for me was to follow the advice on <a href="http://downloadandroid.info/2010/10/fix-for-market-apps-hanging-on-downloading-or-installing/">this page</a> and Uninstall Updates for the Market app (#1 on the page).Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-87743622352830003962010-10-23T07:11:00.000-07:002010-10-23T07:11:36.836-07:00Migrating from hg to gitSo I had some stuff hosted by Google code using mercurial, but I mainly use git and I found going back and forth distracting, so I decided to move over to git. To do this I basically followed the guidance from <a href="http://hedonismbot.wordpress.com/2008/10/16/hg-fast-export-convert-mercurial-repositories-to-git-repositories/">this post</a> and used the <a href="https://git.wiki.kernel.org/index.php/InterfacesFrontendsAndTools#hg-fast-export">fast-export</a> utility.Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-24501530891620706362010-08-19T19:24:00.001-07:002010-08-19T19:24:12.345-07:00git: Pushing a new branch back to an origin<p>OK, I know this is straight forward git stuff, but I just couldn't find a clear example anywhere. I cloned a remote git repository, created a new local branch and then wanted to push that branch back to the original remote repository (without merging it first).</p><p>First, I cloned a remote repository, e.g.:</p><blockquote><p>git clone git@github.com:von/sandbox.git</p></blockquote><p>Then I created a new branch locally and make changes in that branch:</p><blockquote><p>cd sandbox</p><p>git checkout -b new-branch</p><p>edit && commit</p></blockquote><p>Now I pushed the new branch back to the remote repository (i.e. origin) without merging it into the main branch (i.e. master). To do this, while on new-branch, just do a git push origin HEAD, i.e.:</p><blockquote><p>git checkout new-branch</p><p>git push origin HEAD</p></blockquote><p>Basically you are saying push to origin the current HEAD.</p>Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-53354368773380989292010-03-13T12:14:00.000-08:002010-03-13T12:15:58.090-08:00Managing my websites with gitI use git following <a href="http://dmiessler.com/blog/using-git-to-maintain-your-website">these directions from Daniel Miessler</a>.<div><br /></div>Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-58326421659952374312010-02-18T21:28:00.000-08:002010-02-19T05:38:41.467-08:00Mapping control-click to right click in Windows VM on a Mac host<div><div>Problem: emulating a right click/control click in a Windows VM on a Mac host with Mac's one-button trackpad.</div><div><br /></div><div>Quick work around: You can put two fingers on trackpad and click to simulate right click.</div><div><br /></div><div>Cleaner solution as <a href="http://muffinresearch.co.uk/archives/2006/10/08/emulating-right-click-in-windows-under-parallels-desktop/">suggested by Muffin Research Labs</a> is to use AutoHotKey to enable use of control-click to emulate right-click:</div><div><ol><li>Download and install <a href="http://www.autohotkey.com/">AutoHotKey</a>.</li><li>Right click on <a href="http://github.com/von/sandbox/raw/master/autohotkey/cntrol-left-remap.ahk">contrl-left-remap.ahk</a> and save to Windows VM.</li><li>Double click on contrl-left-remap.ahk, while it will appear nothing happens you should now be able to control-click on things and Windows should behave like you right-clicked (e.g. you'll get the context menu if you click on a file).</li><li>To have this persist past a reboot, copy contrl-left-remap.ahk to <i>C:/Program Files/All Users/Start Menu/Programs/Startup</i></li></ol></div><br /></div>Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com3tag:blogger.com,1999:blog-1557403331584851191.post-715238886434258592010-02-05T18:01:00.000-08:002010-02-05T18:05:23.381-08:00How to change title of Google site pageIf you create a page in a Google site and then decide you need to change the title of the page (i.e. the <i><title></i> element), there doesn't seem to be a straight forward way to do it. Here's what I found:<div><ol><li>Click on <i>More Actions</i>/<i>Page Settings</i></li><li>Select <i>Show Page Title</i> and <i>Save</i></li><li>Now select <i>Edit Page</i></li><li>The title of the page should be at the very top, simply edit it to what you want it to be.</li><li>Save the page.</li><li>The title should now be changed.</li><li>Disable <i>Show Page Title</i> under <i>More Actions</i>/<i>Page Settings</i>.</li></ol></div>Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-167799841937502522010-01-23T09:36:00.000-08:002010-01-23T09:43:56.082-08:00Backing up my Delicious bookmarksI use <a href="http://delicious.com/">Delicious</a> for all <a href="http://delicious.com/vwelch">my</a> web bookmarks. I like it because it lets me tag bookmarks, write notes about them, and also access them easily from all my browsers and computers. Bookmarking pages to Delicious is easy thanks to an <a href="https://addons.mozilla.org/en-US/firefox/addon/3615">add-on for Firefox</a> and a <a href="http://delicious.com/help/bookmarklets">bookmarklet</a> for other browsers.<div><br /></div><div>While I've never had a problem with Delicious, like all services in the cloud, I do like to make a personal backup of my data. Deilcious makes this easy with a nice <a href="http://delicious.com/help/api">HTTP API</a>. So I wrote a <a href="http://code.google.com/p/vons-scripts/source/browse/utils/delicious-backup.py">python script</a> to pull down all my bookmarks as a xml file. I just run it as a cron job every night and it makes copy of all my bookmarks. This way if Delicious ever drops off the face of the earth, it may take some work, but I know I can reconstruct all my data.</div>Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-49116903554784559462009-11-29T15:25:00.000-08:002009-11-29T15:28:15.994-08:00VirtualBox Harmony remote programming disconnectsTrying to program my Harmony remote from WinXP inside of VirtualBox, I kept getting disconnect errors. Poking around, I found <a href="http://www.arsgeek.com/2007/10/24/get-usb-devices-mounted-on-your-virtualbox-xp-machine-in-gutsy-ubuntu-710/">these directions</a> (last four paragraphs of the post) for setting up a filter in the virtual machine configuration so that it automatically connects the USB device (the problem apparently is the remote disconnects when rebooting and without the filter, the virtual machine can't find it then).<br /><br /><div id="ui-datepicker-div" style="display: none;"></div>Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-40891600329871289392009-11-08T08:19:00.000-08:002010-03-13T11:55:37.924-08:00Roku N1000 and Linksys EZXS55W equals network woes<div><b>Updated 3/13/2010:</b> I've become convince the Linksys in question was just flakey and this was nothing specific to the Roku.</div><div><br /></div>I recently moved my Roku N1000 Netflix streamer from one room to another. On hooking it up I found it performed horribly. Took minutes to start streaming a movie and then it would frequently "hiccup" and have to re-buffer.<br /><br />Long story short, looks like it just didn't get along with the Linksys EZXS55W 5-port switch I had there. Switch seems to work fine with everything else, so I just swapped it with another switch (different Linksys) and all was good.<br /><div id="ui-datepicker-div" style="display: none;"></div>Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-73634633454764492492009-10-31T07:24:00.000-07:002009-11-29T09:33:29.478-08:00Using git with a cvs repository<span style="font-weight: bold;">Edited 11/29/2009</span>: Even better than the below, use <a href="http://github.com/wu-lee/git-cvs">git-cvs</a>.<br /><br />My situation: Developing for a software project that uses a CVS repository, but I really want to use <a href="http://git-scm.com/">git</a> because I do a lot of development off-line and hate waiting until I get back online to commit (it's a pain to separate different commits and I forget what I did and why).<br /><br />Poking around the web I found a couple of good blog posts (linked to at points in this post where I found them useful) on how to use git locally for a cvs repository. I weaved them together and here's what worked for me.<br /><br /><span style="font-weight: bold;">Prerequisite Software</span><br /><br />First you need to <a href="http://maymay.net/blog/2008/04/15/how-to-import-cvs-code-repositories-into-git-using-git-cvsimport/">have the appropriate software installed</a>:<br /><br />Make sure you have git-core package with cvsimport functionality:<br /><pre class="source-code"><code>% git help -a | grep cvsimport<br />cvsimport merge-recursive status<br /></code></pre><br />Make sure cvsps is installed, which it wasn't in my case:<br /><pre class="source-code"><code>% cvsps<br />cvsps: Command not found.</code></pre>I installed on my Mac using port:<br /><code><br />% sudo port install cvsps</code><br /><br />And then I found it:<br /><pre class="source-code"><code>% rehash<br />% cvsps<br />Can't open CVS/Repository: No such file or directory<br /></code></pre><br /><span style="font-weight: bold;">Overview</span><br /><a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz9QVYg8BoQqVkMgxu4JNZ_xrdxEb1411xNSNb5iNVw4Hbn15ZFUIM8dYUt-pvm6PomVpKsrmetcUrGVO7Berd5wdUF0V7IDdGsRMH6to4MMiRjBVl8KXNpEqjbN7D3c9Cu4lWZWNQSSU/s1600-h/git-cvs.jpg"><img style="margin: 0pt 0pt 10px 10px; float: right; cursor: pointer; width: 320px; height: 301px;" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgz9QVYg8BoQqVkMgxu4JNZ_xrdxEb1411xNSNb5iNVw4Hbn15ZFUIM8dYUt-pvm6PomVpKsrmetcUrGVO7Berd5wdUF0V7IDdGsRMH6to4MMiRjBVl8KXNpEqjbN7D3c9Cu4lWZWNQSSU/s320/git-cvs.jpg" alt="" id="BLOGGER_PHOTO_ID_5398810054574365698" border="0" /></a><br />The image at right shows how the structure works. You start with your main cvs repository. You import this into a git staging repository. You don't do any work in the staging repository, it exists solely for importing from git.<br /><br />You will then clone the staging repository into a working git repository where you will do all your development.<br /><br />Then you'll have another cvs checkout of the main cvs repository. This is were you will integrate your changes made in your git repository back into cvs.<br /><br />Kudos to <a href="http://issaris.blogspot.com/2005/11/cvs-to-git-and-back.html">Takis Blog</a> for much of the mechanisms here, but note that this blog post is somewhat dated and the command syntax has changed (e.g. 'git-cvs-import' is now 'git cvs-import').<br /><br /><span style="font-weight: bold;">Set up</span><br /><br />Make the git staging repository ("staging.git") and import the CVS repository (which for the sake of this post I'll call 'repo'):<br /><pre class="source-code"><code><br />% mkdir staging.git<br />% cd staging.git<br />% git cvsimport -p -x -v -d $CVSROOT repo<br /></code></pre>Add a tag to indicate current synch point with CVS:<br /><pre class="source-code"><code><br />% git tag CVS-LAST-EXPORT</code></pre>Make your git working directory ("repo.git"):<br /><pre class="source-code"><code>% cd ..<br />% git clone -l staging.git repo.git<br /></code></pre>And check out your cvs staging area:<br /><pre class="source-code"><code>% cd ..<br />% cvs checkout -d staging.cvs repo<span style="font-family:Georgia,serif;"><br /></span></code></pre><span style="font-weight: bold;">Pulling changes from cvs into git</span><br /><br />If changes are checked into CVS, pull them into your git staging area by doing the following (the same command you used to create it in the first place).<br /><pre class="source-code"><code>% cd staging.git<br />% git cvsimport -a -p -x -v -d $CVSROOT foo</code></pre>Then go to your working git directory and pull them in:<br /><pre class="source-code"><code>% cd ../repo.git<br />% git pull</code></pre>Resolve any conflicts and commit them:<br /><pre class="source-code"><code># edit files<br />% git commit -a<br /></code></pre><span style="font-weight: bold;">Pushing changes from git to cvs</span><br /><br />Start by making sure your cvs staging repository is up to date:<br /><pre class="source-code"><code>% cd ../staging.cvs<br />% cvs update</code></pre>Now examine the list of commits back to last CVS-LAST-EXPORT tag and commit all that you want to commit:<br /><pre class="source-code"><code>% setenv GIT_DIR ../repo.git/.git<br />% git log CVS-LAST-EXPORT..<br /># For each git commit id, execute the following<br />% git cvsexportcommit 547f3018a8f951dcc4187e5f171b337bfbad1883<br /># The last line of the above comment, will be a 'cvs commit' which you will execute:<br />% cvs commit -F .msg 'README'</code><br /></pre>Optionally you can add '-c' after "cvsexportcommit" and it will automatically commit for you if the change looks good.<br /><br />When you are done, mark the last commit you exported with a tag:<br /><pre class="source-code"><code><br />% git tag CVS-LAST-EXPORT</code></pre><br />Don't forget to unset the GITDIR environment variable when you are done:<br /><pre class="source-code"><code>% unsetenv GIT_DIR</code></pre>After committing to cvs, go back and import the changes into your git staging and working repositories.<br /><br />That should do it. I'm sure I'll update this post as I refine the process.<br /><br /><span style="font-weight: bold;">Update</span> 11/1: Fixed typo with 'setenv GITDIR' command. Added CVS-LAST-EXPORT tag. Fixed '-p x' to '-p -x' options with 'git cvsimport'.<br /><span style="font-weight: bold;">Update 11/3</span>: Added '-a' to 'git cvsimport' and note about '-c' to cvsexportcommit.<br /><div id="ui-datepicker-div" style="display: none;"></div><div id="ui-datepicker-div" style="display: none;"></div><div id="ui-datepicker-div" style="display: none;"></div><div id="ui-datepicker-div" style="display: none;"></div><div id="ui-datepicker-div" style="display: none;"></div><div id="ui-datepicker-div" style="display: none;"></div><div id="ui-datepicker-div" style="display: none;"></div>Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-60011000334319588812009-10-31T07:22:00.000-07:002009-10-31T13:12:53.817-07:00Tuning in Digital Cable (QAM) channels on TivoHDJust got a TivoHD. I know that Comcast in my area puts out digital channels (using what is called <a href="http://en.wikipedia.org/wiki/QAM">QAM</a>) and the Tivo supposedly could tune them in, but it wasn't at all clear to me how to get the Tivo to do that. Here's how.<br /><br /><ul><li>Go to TiVo Central, Messages and Settings, Settings, Channels, Channel Scan.</li><li>Select "Scan for channels" and settle in for 10-15 minutes. In my case it was half way through before it even found any channels, but it ended up finding 200+!</li><li>After it was done, I went back to Live TV and looked for my new channels, but couldn't find any but the ones I had before. Hmmm...</li><li>Ah, select "Guide" and then press Enter to bring up the Guide Options. (<span style="font-weight: bold;">Update</span>: see end of post for what is probably a better approach than this.<br /></li><li>For "Channels" select "All"</li><li>Now you should see a bunch of new digital channels (they'll look like "12-1") in the Guide as well as when you surf through the channels.</li></ul>Having figured that out, I still have to say I'm a little disappointed:<br /><ul><li>There is no show information for any of the digital channels.</li><li>Most (90%+!) of the digital channels seem to have no actual content, I just see a grey screen.</li></ul>Now I suspect neither of those is Tivo's fault, I suspect it's Comcast's.<br /><br />I'm not sure if there is anyway to have Tivo ignore the channels with no content. Plan to keep poking around with that.<br /><br /><span style="font-weight: bold;">Update</span>: If you go toTiVo Central, Messages and Settings, Settings, Channels, Channel List you can mark which digital channels you receive. Once you have done that, under the Guide Options, leave Channel at "Chans You Receive" and then you will just see the channels you get.<br /><br /><br /><div id="ui-datepicker-div" style="display: none;"></div><div id="ui-datepicker-div" style="display: none;"></div><div id="ui-datepicker-div" style="display: none;"></div>Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-29285481552748632002009-10-27T03:15:00.000-07:002009-10-27T03:17:26.817-07:00Adding source code formatting to BloggerI used this <a href="http://userscripts.org/scripts/show/39190">greasemonkey script</a>. Definitely a little clumsy as you need to edit your Blogger template and install <a href="https://addons.mozilla.org/en-US/firefox/addon/748">greasemonkey</a>.<br /><div id="ui-datepicker-div" style="display: none;"></div>Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-71509246848667985752009-10-27T03:00:00.000-07:002009-11-24T04:41:50.160-08:00TweetDeck install and 3003 error<span style="font-weight: bold;">Update</span> 11/23: Trying again with the 0.31.3 TweetDeck release, it installs fine. Shrug...<br /><br />I'm trying to install TweekDeck on my Mac and I keep getting a 3003 error.<br /><br />I turned on <a href="http://kb2.adobe.com/cps/403/kb403123.html">logging of the application install</a>:<br /><br />% touch ~/.airappinstall.log<br /><br />And the full log follows.<br /><br /><pre class="source-code"><code>% cat .airappinstall.log<br />waiting to receive open event<br />UI SWF load is complete<br />UI initialized<br />enter waitingForOpen<br />Unpackaging to /private/var/folders/t6/t6puj+oYFsmrOCU8+6+IHU+++TM/TemporaryItems/FlashTmp1<br />unpackaging is complete<br />application is bound to side-by-side version 1.0<br />application is bound to this version of the runtime<br />app id TweetDeckFast<br />pub id FFF259DC0CE2657847BBB4AFF0E62062EFC56543.1<br />Application not located<br />Waiting for user confirmation<br />User confirmed action: install<br />creating native installer in: /private/var/folders/t6/t6puj+oYFsmrOCU8+6+IHU+++TM/TemporaryItems/FlashTmp2<br />native installer creation complete<br />Starting install<br />Destination for installed application is /Applications<br />stateInstalling: [ErrorEvent type="error" bubbles=false cancelable=false eventPhase=2 text="Unhandled exception Error: Directory can't be written to" errorID=5006]<br />stateInstallingWithElevation: enter install<br />stateInstallingWithElevation: /Library/Frameworks/Adobe AIR.framework/Versions/1.0/Adobe AIR Application Installer -runtime /Library/Frameworks -silent -logToStdout -url -location /Applications -desktopShortcut -programMenu file:///private/tmp/TweetDeck_0_30.0.air<br />subinstaller: Starting silent app install of file:///private/tmp/TweetDeck_0_30.0.air<br />subinstaller: UI SWF load is complete<br />subinstaller: UI initialized<br />subinstaller: Unpackaging to /private/var/folders/zz/zzzivhrRnAmviuee+++++++++++/TemporaryItems/FlashTmp0<br />subinstaller: unpackaging is complete<br />subinstaller: application is bound to side-by-side version 1.0<br />subinstaller: application is bound to this version of the runtime<br />subinstaller: app id TweetDeckFast<br />subinstaller: pub id FFF259DC0CE2657847BBB4AFF0E62062EFC56543.1<br />subinstaller: Application not located<br />subinstaller: creating native installer in: /private/var/folders/zz/zzzivhrRnAmviuee+++++++++++/TemporaryItems/FlashTmp1<br />subinstaller: native installer creation complete<br />subinstaller: Starting install<br />subinstaller: Destination for installed application is /Applications<br />subinstaller: Beginning install<br />subinstaller: Copying /private/var/folders/zz/zzzivhrRnAmviuee+++++++++++/TemporaryItems/FlashTmp1/Template to /Applications/TweetDeck.app<br />subinstaller: chown of /Applications/TweetDeck.app completed with status 0<br />subinstaller: Execution complete; beginning commit phase<br />subinstaller: Commit complete<br />subinstaller: starting cleanup of temporary files<br />subinstaller: application installer exiting<br />received unknown message type from subinstaller: done<br />Failed during elevated install: 3003<br />starting cleanup of temporary files<br />application installer exiting</code></pre><br /><br />The obvious line is the exception about "Directory can't be written to" - but what directory? /Applications? Well, it is actually writing /Applications/Tweekdeck.app but that applications isn't executable:<br /><br /><pre class="source-code"><code><br />% open /Applications/TweetDeck.app/<br />LSOpenFromURLSpec() failed with error -10661 for the file /Applications/TweetDeck.app.<br /></code></pre>Anyone have any suggestions?<br /><br />[Updated 10/27 to include link to Adobe KB article on logging.]<br /><br /><div id="ui-datepicker-div" style="display: none;"></div><div id="ui-datepicker-div" style="display: none;"></div><div id="ui-datepicker-div" style="display: none;"></div>Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-22201930552610626972009-10-18T08:53:00.000-07:002009-10-18T09:06:40.505-07:00Google Docs folder sharing and my iPhoneOne of the the things that has constantly annoyed me about my iPhone is that Safari is lousy at remembering my passwords. And I tend to use long, random passwords, which means they are (1) hard to enter on the iPhone pseudo keyboard and (2) hard for me to remember. Most of the time on my laptop, I keep my passwords in <a href="http://keepass.info/">KeePass</a> and cut'n'paste them into whatever application needs them (and yes, I think this is more secure than trying to memorize all the hundred+ passwords I have, but that's another post).<br /><br />And yes, there are similar applications to KeePass for the iPhone, but I don't know any good way to sync my KeePass database with them.<br /><br />One of the things I really like to do on my iPhone is access a set of recipes I have in Google docs. But inevitably my login session has timed out, so I have to go back to my laptop, get my Google password and type it in. By the time I do all that, it's easier just to have used my laptop in the first place.<br /><br />However, when Google added the feature of <a href="http://docs.google.com/support/bin/answer.py?hl=en&answer=158074">sharing whole folders</a>, a solution popped into my head: <a href="https://www.google.com/accounts/NewAccount">create a Google account</a> just to use on my iPhone, give it a password I can actually remember, and then share my recipes with that account.<br /><br />Why not just give my main Google account a password I can remember? Well, because I actually have stuff accessible by that account I care about, so I want a strong password on it. But since my new iPhone Google account only has access to stuff I share with it, and most of that is read-only, if that password is guessed, the ramifications are much less.<br /><br /><br /><br /><div id="ui-datepicker-div" style="display: none;"></div>Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-38564234361940637262009-06-09T20:57:00.000-07:002009-06-09T21:01:03.433-07:00Installing Eclipse on my mac - ~/.eclipse write errorsInstalling <a href="http://www.eclipse.org/">Eclipse</a> 3.4.2, I did my usual download the tarball and, as root, untar it into /Applications. It would run fine, but after I installed packages, I kept getting all sorts of random errors with regards to writing to ~/.eclipse after installing packages.<br /><br />The trick seems to be not to install it as root, but instead untar it as myself. Then it doesn't seem to create a ~/.eclipse and runs without errors.Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-67679338264463329242009-05-31T10:29:00.000-07:002009-05-31T18:58:28.555-07:00Booting a VirtualBox VM from removable drive without the GUII recently installed <a href="http://www.virtualbox.org/">VirtualBox</a> on one of <a href="http://v2kblog.blogspot.com/2009/05/installing-virtual-box.html">my Ubuntu systems</a>. I was intrigued by the VBoxManage command line client and was wondering if it would be possible to boot a VirtualBox VM from a removal drive entirely with a script (i.e. without the GUI).<br /><br />The answer is yes. You can see the script in <a href="http://code.google.com/p/vons-scripts/source/browse/virtualbox/vbox-add-vm.py">my google code repository</a> (Updated to HG path).<br /><br />In short, you create the VM as usual using the GUI (in theory you should be able to do that from the command line as well, but I need to work out details with the networking). Then remove the harddrive from the VM and copy the .xml and .vdi file to the removable drive. Then go ahead and remove the VM and harddrive from the GUI.<br /><br />At this point you can boot the VM using something like the following:<br /><blockquote>$ <span style="color: rgb(255, 102, 102);">vbox-add-vm.py -v -H /media/truecrypt1/VM.vdi /media/truecrypt1/VM.xml</span></blockquote>The script will automatically register the VM and hard drive, add the hard drive to the VM, boot the VM, wait for it to shut down and then unregister everything.<br /><br />The only hiccup at this point is if you have the GUI running, it seems to keep the VM open in some way that prevents you from ejecting the device.<br /><br />Since I finished this script I discovered the <a href="http://blogs.sun.com/nike/entry/python_api_to_the_virtualbox">VirtualBox SDK with Python bindings</a>. For v2 of the script, then would be a natural thing to leverage.Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-19456423327413949992009-05-09T15:43:00.000-07:002009-05-09T15:45:21.772-07:00Label Cloud on blogI added a label cloud to the blog following <a href="http://widget-based.blogspot.com/2006/11/blogger-label-cloud.html">these directions</a>. My only change was to set minFontSize to 10.<br /><br />Don't forget so save your template before you begin in case you screw up.<br /><pre class="code"><br /></pre>Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-7304414313176088802009-05-02T04:21:00.000-07:002009-05-31T10:41:35.124-07:00Getting my Wii Fit to talk to my Tomato RouterThe situation: a Wii Fit and a <a href="http://v2kblog.blogspot.com/2009/01/installing-tomato-router.html">Linksys-Cisco WRT54GL</a><a href="http://v2kblog.blogspot.com/2009/01/installing-tomato-router.html"> running Tomato 1.23</a>. Every time I tried to connect the Wii Fit to my WPA2 network, I kept getting the following error:<br /><blockquote></blockquote><blockquote>Error Code: 51330 Unable to connect to the Internet</blockquote><blockquote></blockquote>A quick google turned by <a href="http://wiihacks.blogspot.com/2006/11/fix-for-wii-error-codes-51330-52030.html">this page</a> which led me to start playing with by wireless and security settings. Long story short, here are the settings (under the "Basic" setup menu) I ended up with that worked for me. I'm not sure all are important, but I'm pretty sure the last two (Encryption and Security) are.<br /><br /><blockquote>Channel 1<br />B/G Mode: Mixed<br />Encryption: TKIP/AES<br />Security: WPA/WPA2 Personal<br /></blockquote>Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0tag:blogger.com,1999:blog-1557403331584851191.post-63609986218717331262009-04-27T20:30:00.000-07:002009-04-27T20:30:00.334-07:00Wrangling Twitter, Facebook and Blog updatesI've got a number of blogs (<a href="http://blog.vwelch.com/2009/01/why-blog.html">why?</a>) and I wanted to hook them up such that new posts got fed automatically to my Twitter account and Facebook status. Here a few tools I've found useful to do this:<br /><ul><li>The <a href="http://apps.new.facebook.com/twitter/">Twitter app</a> in Facebook updates your Facebook status from Twitter.</li><li>Even better, <a href="http://apps.facebook.com/selectivetwitter/?_fb_fromhash=4cb98608a550a08dedc8a4b30d420e38">Selective Twitter Status</a>, lets you feed your tweets selectively to your Facebook status by ending them with #FB (kudos to <a href="http://venturebeat.com/2009/04/15/stop-the-tweet-spam-two-ways-to-filter-twitter-into-facebook/">this post</a> for the tip).<br /></li><li><a href="http://pipes.yahoo.com/pipes/">Yahoo Pipes</a> allows you to combine multiple RSS feeds into a single feed, which is usefule if you are using something like the next item. </li><li>To feed a single RSS feed into Facebook, under your Profile page click on Settings, then select Blog/RSS and give it the RSS url. This is nice because it will posts things as Noteson your Wall instead of in your status, but it's limited to a single feed (hence Yahoo Pipes is useful to use with this).<br /></li><li><a href="http://twitterfeed.com/">TwitterFeed</a> can post any number of RSS feeds to Twitter. It even supports <a href="http://oauth.net/">OAuth</a>, meaning you don't have to share your twitter username and password (plus you authenticate to TwitterFeed with <a href="http://openid.net/">OpenId</a>, which is cool).</li></ul>So, what I actually do? The following:<br /><ol><li>I used Selective Twitter Status to update my Facebook status via selective feeds.<br /></li><li>I used TwitterFeed to feed my blogs posts into Twitter. Since they don't have the "#fb" tage, Selective Twitter Status won't carry them over into Facebook. </li><li>I used Yahoo Pipes to combine by blogs RSS feeds and then the Facebook RSS function (under Profile/Settings) to display the blog postings on my Facebook Wall.</li><li>To update my Twitter status I the <a href="http://labs.mozilla.com/projects/ubiquity/">Ubiquity</a> built in Twitter command in FireFox (<a href="http://www.kimwoodbridge.com/how-to-twitter-with-the-ubiquity-firefox-extension/">nice post on using this</a>).</li><li>I also have <a href="http://vwelch.blogspot.com/2009/04/installing-tweetdeck-on-my-mac-and.html">started using TweetDeck</a> to monitor Twitter and may start using it to update Twitter.</li><li>I also use Bookmarklets for <a href="http://www.facebook.com/share_options.php">Sharing in Facebook</a> and <a href="http://googlesystem.blogspot.com/2008/01/share-almost-any-blog-post-in-google.html">Noting in Google Reader</a> for sharing random stuff I run into on the net. I'm finding the Sharing in Facebook to be better since the result looks nicer with a thumbnail and quoted text.</li></ol>Von Welchhttp://www.blogger.com/profile/05687325630634707896noreply@blogger.com0