<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:georss="http://www.georss.org/georss" xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-4091667087303293220</atom:id><lastBuildDate>Thu, 12 Apr 2012 00:05:08 +0000</lastBuildDate><category>regex</category><category>maven</category><category>eclipse</category><category>IDEA</category><category>GWT</category><category>SmartGWT</category><category>winamp</category><category>java</category><category>git</category><category>groovy</category><category>whs</category><category>cygwin</category><title>Code Inquisitor</title><description>joining up the code jigsaw</description><link>http://codeinquisitor.blogspot.com/</link><managingEditor>noreply@blogger.com (board tc)</managingEditor><generator>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/CodeInquisitor" /><feedburner:info uri="codeinquisitor" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:browserFriendly></feedburner:browserFriendly><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4091667087303293220.post-4784415034461653012</guid><pubDate>Sun, 27 Nov 2011 00:51:00 +0000</pubDate><atom:updated>2011-11-27T01:00:29.715Z</atom:updated><category domain="http://www.blogger.com/atom/ns#">whs</category><title>Upgrading squeezebox server on whs &amp; Visual C++ dependancy</title><description>I was upgrading my squeezebox server 7.6 on my windows home server via the whs console | Settings | Add-ins. To install v7.7 first I had to uninstall 7.6, no problem. When I tried to install v7.7, which has been renamed Logitech Server, it said it needed the Microsoft Visual C++ 2010 SP1 Redistributable Package (x86) and gave a download link from the Microsoft site. To install this I did the following.  &lt;ol&gt;&lt;li&gt;Downloaded vcredist_x86.exe to my machine. &lt;/li&gt;&lt;li&gt;I used &lt;a href="http://codeinquisitor.blogspot.com/2011/09/syncing-with-whs.html"&gt;robycopy&lt;/a&gt; from the command line to copy the file to a shared directory on whs. (I needed to create the directory in whs, as when created via remote desktops it did not have permission to write to it). &lt;/li&gt;&lt;li&gt;From the laptop I ran &lt;i&gt;remote desktops&lt;/i&gt;. I needed to login from remote desktops to my whs server as the administrator. I needed to launch the command line to run the installation file. &lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4091667087303293220-4784415034461653012?l=codeinquisitor.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://codeinquisitor.blogspot.com/2011/11/upgrading-squeezebox-server-on-whs.html</link><author>noreply@blogger.com (board tc)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4091667087303293220.post-8953016361422614546</guid><pubDate>Sat, 24 Sep 2011 23:14:00 +0000</pubDate><atom:updated>2011-10-04T00:36:35.047+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">whs</category><title>Syncing with WHS</title><description>I wanted to sync some directories on my machine to a shared folder on my server which runs Window Home Server. I used my backup s/w of choice, &lt;a href="http://www.cobiansoft.com/cobianbackup.htm"&gt;Cobian backup&lt;/a&gt;. A large percentage of files did not copy with errors like "The specified network name is no longer available" / "The network path was not found" / "The filename, directory name, or volume label syntax is incorrect".&lt;br /&gt;&lt;br /&gt;I also tried the free microsoft &lt;a href="http://www.microsoft.com/download/en/details.aspx?id=15155"&gt;synctoy&lt;/a&gt;. It did not copy any additional files on the same sync with some of the same errors.&lt;br /&gt;&lt;br /&gt;What worked for me in the end was surprisingly the free Microsoft, &lt;a href="http://en.wikipedia.org/wiki/Robocopy"&gt;Robocopy&lt;/a&gt;. It has a default feature to skip files that already appear in the destination folder with identical size and timestamp.&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;robocopy source destination /e /zb /r:5 /purge&lt;/blockquote&gt;&lt;br /&gt;e.g. robocopy "f:\my documents\my music" \\myserver\music /e /zb /r:5 /purge&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4091667087303293220-8953016361422614546?l=codeinquisitor.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://codeinquisitor.blogspot.com/2011/09/syncing-with-whs.html</link><author>noreply@blogger.com (board tc)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4091667087303293220.post-7992717843243474857</guid><pubDate>Thu, 24 Jun 2010 23:17:00 +0000</pubDate><atom:updated>2010-06-25T00:24:36.894+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">groovy</category><title>Groovy tip: initialise ArrayList</title><description>&lt;style type="text/css"&gt;.nobrtable br { display: none }&lt;/style&gt;&lt;br /&gt;&lt;div class="nobrtable"&gt;&lt;br /&gt;&lt;table&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="question"&gt;Q&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;I have an ArrayList of known length, each element containing a comma separated string, some list members may be empty, the list starts empty and is built up. But the list elements start null, is there a way to initialise them?&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="answer"&gt;A&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;def myArrayList = (0..99).collect { '' }&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Eclipse tip: switch/change tab&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4091667087303293220-7992717843243474857?l=codeinquisitor.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://codeinquisitor.blogspot.com/2010/06/groovy-tip-initialise-arraylist.html</link><author>noreply@blogger.com (board tc)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4091667087303293220.post-8537379080892435618</guid><pubDate>Tue, 30 Mar 2010 19:03:00 +0000</pubDate><atom:updated>2010-04-04T20:28:35.470+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">git</category><title>Git tip: add to comments</title><description>&lt;style type="text/css"&gt;.nobrtable br { display: none }&lt;/style&gt;&lt;br /&gt;&lt;div class="nobrtable"&gt;&lt;br /&gt;&lt;table&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="question"&gt;Q&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;I have done a git commit but want to append to the comments I have added.&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="answer"&gt;A&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;In the root of your repository directory you will find a .git folder. In there there is a file "COMMIT_EDITMSG" which contains the comments for the current commit. To bring up the default editor (VIM, unless you have your custom editor specified in the [core] section of .gitconfig - located in the &lt;a href="http://codeinquisitor.blogspot.com/2010/03/git-tip-windows-home-directory.html"&gt;home&lt;/a&gt; directory - e.g. "editor = e:\\JGSoft\\EditPadPro6\\Editpadpro.exe, you can do &lt;i&gt;git commit --amend&lt;/i&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Eclipse tip: switch/change tab&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4091667087303293220-8537379080892435618?l=codeinquisitor.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://codeinquisitor.blogspot.com/2010/03/git-tip-add-to-comments.html</link><author>noreply@blogger.com (board tc)</author><thr:total>1</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4091667087303293220.post-8091613298111152098</guid><pubDate>Wed, 24 Mar 2010 20:02:00 +0000</pubDate><atom:updated>2010-04-04T20:04:39.435+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">eclipse</category><title>Eclipse tip: switch/change tab</title><description>&lt;style type="text/css"&gt;.nobrtable br { display: none }&lt;/style&gt;&lt;br /&gt;&lt;div class="nobrtable"&gt;&lt;br /&gt;&lt;table&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="question"&gt;Q&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;I have looked at a lot of the Eclipse keyboard shortcut cheat sheet lists but I can't find a shortcut to change tab in the editor?&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="answer"&gt;A&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;Use ctrl+e to pop up a list of the open tabs which you can scroll though to change focus. Alternatively, you can use ctrl+page-up / ctrl+page-down to navigate to the right/left tabs respectively.&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4091667087303293220-8091613298111152098?l=codeinquisitor.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://codeinquisitor.blogspot.com/2010/03/eclipse-tab-switchchange-tab.html</link><author>noreply@blogger.com (board tc)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4091667087303293220.post-5319148921971862370</guid><pubDate>Tue, 23 Mar 2010 23:34:00 +0000</pubDate><atom:updated>2011-08-25T21:13:21.586+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">git</category><title>Git Tip: unstaging</title><description>&lt;style type="text/css"&gt;.nobrtable br { display: none }&lt;/style&gt;&lt;br /&gt;&lt;div class="nobrtable"&gt;&lt;br /&gt;&lt;table&gt;&lt;tr&gt; &lt;td class="Col1"&gt;&lt;span class="question"&gt;Q&lt;/span&gt;&lt;/td&gt; &lt;td class="Col2"&gt;In Git you have your working tree and your repository but the necessary in-between state is the staging area. Files get staged by doing a &lt;i&gt;git add&lt;/i&gt;. What's the opposite of a git add, i.e. how can I "unstage" a file?&lt;/td&gt; &lt;/tr&gt;
 &lt;tr&gt; &lt;td class="Col1"&gt;&lt;span class="answer"&gt;A&lt;/span&gt;&lt;/td&gt; &lt;td class="Col2"&gt;&lt;br /&gt;Updated 25 August 2011. &lt;br /&gt;&lt;ul&gt;&lt;/ul&gt;Embarrassingly, I just saw the comments now over a year later and it turns out I have a lot to learn with GIT, I have not used it enough and got this completely wrong as the comments testify. I leave my deleted answer for my own education. I have turned on comment notification now!&lt;br /&gt;&lt;ul&gt;&lt;/ul&gt;&lt;del&gt;As the handy command line help on a &lt;i&gt;git status&lt;/i&gt; shows, files can be unstaged with &lt;i&gt;git rm&lt;/i&gt;.&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;/ul&gt;To wipe any changes you have made since the last commit, do a &lt;i&gt;git reset HEAD &amp;lt;file name with complete path&amp;gt;&lt;/i&gt;&lt;/td&gt;&lt;/del&gt; &lt;/tr&gt;
 &lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4091667087303293220-5319148921971862370?l=codeinquisitor.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://codeinquisitor.blogspot.com/2010/03/git-tip-unstaging.html</link><author>noreply@blogger.com (board tc)</author><thr:total>6</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4091667087303293220.post-8549987368182919211</guid><pubDate>Mon, 22 Mar 2010 20:24:00 +0000</pubDate><atom:updated>2010-03-24T20:30:58.799Z</atom:updated><category domain="http://www.blogger.com/atom/ns#">cygwin</category><title>Cygwin tip: copying text</title><description>&lt;style type="text/css"&gt;.nobrtable br { display: none }&lt;/style&gt;&lt;br /&gt;&lt;div class="nobrtable"&gt;&lt;br /&gt;&lt;table&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="question"&gt;Q&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;How can I copy text in a cygwin window?&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="answer"&gt;A&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;In the system menu, select properties and then Options | Edit Options | QuickEdit mode. You can then highlight text in the window and press enter to copy it to the clipboard.&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4091667087303293220-8549987368182919211?l=codeinquisitor.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://codeinquisitor.blogspot.com/2010/03/cygwin-tip-copying-text.html</link><author>noreply@blogger.com (board tc)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4091667087303293220.post-2085043418274558020</guid><pubDate>Sun, 21 Mar 2010 20:32:00 +0000</pubDate><atom:updated>2010-03-24T20:43:57.358Z</atom:updated><category domain="http://www.blogger.com/atom/ns#">eclipse</category><title>Eclipse tip: code completion shortcut</title><description>&lt;style type="text/css"&gt;.nobrtable br { display: none }&lt;/style&gt;&lt;br /&gt;&lt;div class="nobrtable"&gt;&lt;br /&gt;&lt;table&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="question"&gt;Q&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;In Eclipse, ctrl+spacebar is not bringing up code completion?&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="answer"&gt;A&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;Check for any shortcut collisions. On my machine I discovered that &lt;a href="http://www.dexpot.de"&gt;Dexpot's&lt;/a&gt; task switcher default shortcut is the same, it can be changed in configuration. I use Dexpot for Virtual Desktopping and it is a vital component of my &lt;a href="http://reducekeystrokes.com/software"&gt;toolkit&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4091667087303293220-2085043418274558020?l=codeinquisitor.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://codeinquisitor.blogspot.com/2010/03/eclipse-tip-code-completion-shortcut.html</link><author>noreply@blogger.com (board tc)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4091667087303293220.post-2279767750222732432</guid><pubDate>Mon, 08 Mar 2010 17:21:00 +0000</pubDate><atom:updated>2010-04-07T00:00:25.356+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">eclipse</category><title>Eclipse tip: editing class header</title><description>&lt;style type="text/css"&gt;.nobrtable br { display: none }&lt;/style&gt;&lt;br /&gt;&lt;div class="nobrtable"&gt;&lt;br /&gt;&lt;table&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="question"&gt;Q&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;How can I change the class header in Eclipse to add a company copyright blurb?&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="answer"&gt;A&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;The menu option Window | Preferences | Java | Code Style | Code Templates | Code | New java file shows:&lt;br /&gt;&lt;ul&gt;&lt;/ul&gt;&lt;br /&gt;${filecomment}&lt;ul&gt;&lt;/ul&gt;&lt;br /&gt;${package_declaration}&lt;br /&gt;&lt;ul&gt;&lt;/ul&gt;&lt;br /&gt;${typecomment}&lt;ul&gt;&lt;/ul&gt;&lt;br /&gt;${type_declaration}&lt;br /&gt;&lt;ul&gt;&lt;/ul&gt;&lt;br /&gt;The text that gets substituted for ${filecomment} can be edited via Window | Preferences | Java | Code Style | Code Templates | Comments | Files. When editing the template you have the option in the GUI to insert variables and you can see which ones are available.&lt;br /&gt;&lt;ul&gt;&lt;/ul&gt;&lt;br /&gt;This header will only shows up in new classes after choosing "Generate comments" in the new Java class wizard.&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4091667087303293220-2279767750222732432?l=codeinquisitor.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://codeinquisitor.blogspot.com/2010/03/eclipse-tip-editing-class-header.html</link><author>noreply@blogger.com (board tc)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4091667087303293220.post-6142162809911126361</guid><pubDate>Sat, 06 Mar 2010 08:11:00 +0000</pubDate><atom:updated>2010-04-06T17:15:45.837+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">eclipse</category><category domain="http://www.blogger.com/atom/ns#">maven</category><title>Eclipse Tip: Loading Maven repository</title><description>&lt;style type="text/css"&gt;.nobrtable br { display: none }&lt;/style&gt;&lt;br /&gt;&lt;div class="nobrtable"&gt;&lt;br /&gt;&lt;table&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="question"&gt;Q&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;I cloned a Maven repository from github, How do I open this in Eclipse?&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="answer"&gt;A&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;Issue a &lt;i&gt;mvn eclipse:eclipse&lt;/i&gt; command in the cloned project root (where the pom.xml resides), which creates the default eclipses directories/files. This project can then be opened in Eclipse. Note, as the .pom file changes (by other developers) you may need to regenerate the Eclipse project using this command and refresh in Eclipse.&lt;br /&gt;&lt;ul&gt;&lt;/ul&gt;&lt;br /&gt;Alternatively, if you have the Maven plugin installed in Eclipse you can then do File | Import | Maven | Existing Maven Projects and point to the directory with the pom.xml.&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4091667087303293220-6142162809911126361?l=codeinquisitor.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://codeinquisitor.blogspot.com/2010/03/eclipse-tip-loading-maven-repository.html</link><author>noreply@blogger.com (board tc)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4091667087303293220.post-2698693300262948473</guid><pubDate>Fri, 05 Mar 2010 22:30:00 +0000</pubDate><atom:updated>2010-03-24T20:26:29.331Z</atom:updated><category domain="http://www.blogger.com/atom/ns#">git</category><category domain="http://www.blogger.com/atom/ns#">cygwin</category><title>Git tip: checkout from github via cygwin</title><description>&lt;style type="text/css"&gt;.nobrtable br { display: none }&lt;/style&gt;&lt;br /&gt;&lt;div class="nobrtable"&gt;&lt;br /&gt;&lt;table&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="question"&gt;Q&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;In trying to checkout a repository from github using cygwin (unix like command line interface for windows), according to the &lt;a href="http://github.com/guides/addressing-authentication-problems-with-ssh"&gt;github help&lt;/a&gt; is do a &lt;i&gt;ssh git@github.com&lt;/i&gt;. However, I got a "Permission denied (publickey)".&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="answer"&gt;A&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;The missing ingredient for me was that cygwin uses the &lt;a href="http://codeinquisitor.blogspot.com/2010/03/git-tip-windows-home-directory.html"&gt;HOME&lt;/a&gt; environment variable and this was not set on my machine. I was then able to do a &lt;ul&gt;&lt;/ul&gt;&lt;br /&gt;&lt;i&gt;git clone git@github.com:&amp;lt;github repository&amp;gt;&lt;/i&gt;.&lt;br /&gt;&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4091667087303293220-2698693300262948473?l=codeinquisitor.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://codeinquisitor.blogspot.com/2010/03/git-tip-checkout-from-github-via-cygwin.html</link><author>noreply@blogger.com (board tc)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4091667087303293220.post-7445277928990044710</guid><pubDate>Thu, 04 Mar 2010 23:27:00 +0000</pubDate><atom:updated>2010-03-24T20:26:05.591Z</atom:updated><category domain="http://www.blogger.com/atom/ns#">java</category><category domain="http://www.blogger.com/atom/ns#">eclipse</category><title>Eclipse tip:  creating getters and setters</title><description>&lt;style type="text/css"&gt;.nobrtable br { display: none }&lt;/style&gt;&lt;br /&gt;&lt;div class="nobrtable"&gt;&lt;br /&gt;&lt;table&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="question"&gt;Q&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;I have to create a standard Java bean class but don't fancy having to type all those nasty getters and setters. Is there any code generator I can use?&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="answer"&gt;A&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;Enter all the private properties in the class and then right click and select Source | Generate Getters and Setters...&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4091667087303293220-7445277928990044710?l=codeinquisitor.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://codeinquisitor.blogspot.com/2010/03/eclipse-tip-creating-getters-and.html</link><author>noreply@blogger.com (board tc)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4091667087303293220.post-2790167291046079569</guid><pubDate>Wed, 03 Mar 2010 22:09:00 +0000</pubDate><atom:updated>2010-04-04T20:15:26.128+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">git</category><title>Git tip: windows home directory</title><description>&lt;style type="text/css"&gt;.nobrtable br { display: none }&lt;/style&gt;&lt;br /&gt;&lt;div class="nobrtable"&gt;&lt;br /&gt;&lt;table&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="question"&gt;Q&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;Working with Git on Windows and wanting to connect to Github, one needs to install &lt;a href="http://code.google.com/p/msysgit/"&gt;msysgit&lt;/a&gt;. The &lt;a href="http://help.github.com/msysgit-key-setup/"&gt;github help&lt;/a&gt; for Generating SSH keys, says thar one needs to copy the keys to ~/.ssh. What do I do in windows?&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="answer"&gt;A&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;This look like notation relevant to Unix but I learned from this &lt;a href="http://www.iwebthereforeiam.com/iwebthereforeiam/2009/06/getting-github-working-in-windows.html"&gt;iwebthereforeiam post&lt;/a&gt; that the slash represents the home directory, which in Windows XP is the user directory under the "Documents and Settings" folder.&lt;/tr&gt;&lt;br /&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4091667087303293220-2790167291046079569?l=codeinquisitor.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://codeinquisitor.blogspot.com/2010/03/git-tip-windows-home-directory.html</link><author>noreply@blogger.com (board tc)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4091667087303293220.post-2927901689010970065</guid><pubDate>Tue, 02 Mar 2010 21:24:00 +0000</pubDate><atom:updated>2010-03-23T22:06:21.675Z</atom:updated><category domain="http://www.blogger.com/atom/ns#">eclipse</category><title>Eclipse tip - import xml code formatting rules</title><description>&lt;style type="text/css"&gt;.nobrtable br { display: none }&lt;/style&gt;&lt;br /&gt;&lt;div class="nobrtable"&gt;&lt;br /&gt;&lt;table&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="question"&gt;Q&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;I got sent eclipse code formatting rules by xml. How can I use this?&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;tr&gt;&lt;br /&gt;  &lt;td class="Col1"&gt;&lt;span class="answer"&gt;A&lt;/span&gt;&lt;/td&gt;&lt;br /&gt;  &lt;td class="Col2"&gt;In Eclipse (Galileo 3.5.1) open Windows | Preferences | Java | Code Style | Formatter &amp; do an import selecting the xml file&lt;/td&gt;&lt;br /&gt;&lt;/tr&gt;&lt;br /&gt;&lt;br /&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4091667087303293220-2927901689010970065?l=codeinquisitor.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://codeinquisitor.blogspot.com/2010/03/eclipse-tips.html</link><author>noreply@blogger.com (board tc)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4091667087303293220.post-8578332913827129758</guid><pubDate>Wed, 26 Aug 2009 13:15:00 +0000</pubDate><atom:updated>2009-08-26T14:50:02.168+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">java</category><title>Martin Fowler on the meaning of life</title><description>&lt;object width="425" height="344"&gt;&lt;param name="movie" value="http://swf.tubechop.com/tubechop.swf?vurl=-4fA_UciDaA&amp;start=1163&amp;end=1168&amp;cid=23513"&gt;&lt;/param&gt;&lt;embed src="http://swf.tubechop.com/tubechop.swf?vurl=-4fA_UciDaA&amp;start=1163&amp;end=1168&amp;cid=23513" type="application/x-shockwave-flash" allowfullscreen="true" width="425" height="344"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4091667087303293220-8578332913827129758?l=codeinquisitor.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://codeinquisitor.blogspot.com/2009/08/martin-fowler-on-meaning-of-life.html</link><author>noreply@blogger.com (board tc)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4091667087303293220.post-3783965252149409445</guid><pubDate>Tue, 25 Aug 2009 15:48:00 +0000</pubDate><atom:updated>2009-08-25T18:14:09.428+01:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">regex</category><title>Regular expression &amp; new lines</title><description>Windows line breaks are LF (\r) followed by a CR (\n), so to match a line break in windows use the regular expression \r\n. &lt;br /&gt;&lt;br /&gt;If you have a line break, $ will match before the line break, and ^ after it.&lt;br /&gt;&lt;br /&gt;You can match a CR (\r) not followed by LF (\n) with \r(?!\n).&lt;br /&gt;&lt;br /&gt;UNIX uses an LF character only. &lt;br /&gt;&lt;br /&gt;Apple uses a CR character only.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4091667087303293220-3783965252149409445?l=codeinquisitor.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://codeinquisitor.blogspot.com/2009/08/regular-expression-new-lines.html</link><author>noreply@blogger.com (board tc)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4091667087303293220.post-3226497645685752696</guid><pubDate>Thu, 04 Jun 2009 14:35:00 +0000</pubDate><atom:updated>2010-03-23T23:24:54.812Z</atom:updated><category domain="http://www.blogger.com/atom/ns#">winamp</category><title>Playing BBC streams in Winamp (Windows)</title><description>&lt;h5&gt;This post updated 23 March 2010&lt;/h5&gt;&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;Install &lt;a href="http://www.winamp.com/player"&gt;Winamp&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Install &lt;a href="http://www.free-codecs.com/download/Real_Audio_Input_Plugin_for_Winamp.htm"&gt;Tara&lt;/a&gt; plugin. Ensure "Process audio though Winamp" is unchecked in Preferences | Plug-ins | Input | Tara Audio Video Plugin. [Test: Is this still needed?]&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Install &lt;a href="http://www.free-codecs.com/download/real_Alternative.htm"&gt;Real Alternative&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;If your primary sound driver changes, e.g. you plug your laptop into and external sound card, I have found that you may need to reconfigure the driver in Preferences | Plug-ins | Output | Nullsoft DirectSound Output | Device &amp;amp; select the sound driver from the first drop down.&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Open the &lt;a href="http://www.bbc.co.uk/iplayer/radio"&gt;BBC Player&lt;/a&gt; and select the show you are interested in&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Hover over the show and right click to copy the link address, it is in the form&lt;ul&gt;&lt;/ul&gt;&lt;i&gt;http://www.bbc.co.uk/iplayer/episode/&amp;lt;Programme ID&amp;gt;/&amp;lt;stream name&amp;gt;&lt;/i&gt;&lt;ul&gt;&lt;/ul&gt;e.g. http://www.bbc.co.uk/iplayer/episode/b00rbtcd/Gilles_Peterson_Bonobo_live_in_the_studio&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Put the &amp;lt;Programme ID&amp;gt; into the superb &lt;a href="http://www.iplayerconverter.co.uk/convert.aspx"&gt;iPlayer PID Convertor&lt;/a&gt; to give you the BBC .ram&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;ul&gt; &lt;br /&gt;&lt;li&gt;Experimental show with &lt;a href="http://www.bbc.co.uk/iplayer/aod/playlists/82/vr/k0/0b/RadioBridge_intl_0100_bbc_radio_one.ram"&gt;Mary Ann Hobbs&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Worldwide show with &lt;a href="http://www.bbc.co.uk/iplayer/aod/playlists/f8/kr/k0/0b/RadioBridge_intl_0100_bbc_radio_one.ram"&gt;Giles Peterson&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Leftfield show with &lt;a href="http://www.bbc.co.uk/iplayer/aod/playlists/ly/q7/r0/0b/RadioBridge_intl_0500_bbc_radio_one.ram"&gt;Rob da bank&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Drum and Bass Show with &lt;a href="http://www.bbc.co.uk/iplayer/aod/playlists/bh/hr/k0/0b/RadioBridge_intl_0000_bbc_radio_one.ram"&gt;Fabio and Grooverider&lt;/a&gt;&lt;/li&gt;&lt;br /&gt;&lt;/ul&gt;&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;If you wish to organise your bookmarks, e.g. have the above under a BBC category, I recommend &lt;a href="http://nunzioweb.com/daz/releases.html"&gt;ML Bookmark Categoriser&lt;/a&gt;. &lt;/br&gt;&lt;br /&gt;&lt;br /&gt;Bookmarks that are shown in the Bookmarks view in the Media Library are stored in the %Appdata%\Winamp\winamp.bm file. You can open that file in Notepad and copy+paste the contents into another winamp.bm file.&lt;/li&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Listening to streams, especially the above 2 hour BBC shows, might not be convenient in one sitting. You can use the &lt;a href="http://www.winamp.com/plugin/amarok-plugin-v1-2/22630"&gt;Amarok plugin&lt;/a&gt; to bookmark the position in the stream - indeed multiple positions of desired.&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4091667087303293220-3226497645685752696?l=codeinquisitor.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://codeinquisitor.blogspot.com/2009/06/playing-bbc-streams-in-winamp-windows.html</link><author>noreply@blogger.com (board tc)</author><thr:total>0</thr:total></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-4091667087303293220.post-6436967715567994971</guid><pubDate>Tue, 03 Feb 2009 17:26:00 +0000</pubDate><atom:updated>2009-03-03T11:15:44.388Z</atom:updated><category domain="http://www.blogger.com/atom/ns#">GWT</category><category domain="http://www.blogger.com/atom/ns#">IDEA</category><category domain="http://www.blogger.com/atom/ns#">SmartGWT</category><title>IDEA GWT Sample Application &amp; SmartGWT</title><description>&lt;span style="font-style:italic;"&gt;Assumes&lt;/span&gt;: Have &lt;a href="http://www.jetbrains.com/idea/"&gt;IDEA&lt;/a&gt; v8 &amp; &lt;a href="http://code.google.com/webtoolkit/download.html"&gt;GWT&lt;/a&gt; installed&lt;br /&gt;&lt;br /&gt;v8 of IDEA  comes with a GWT Plugin. To check you installed the plugin have a look on the Web/Java EE Technologies Plugins page of the Plugin wizard (File|Configure plugins)&lt;br /&gt;&lt;br /&gt;Run the new project wizard and select to create a new project from scratch, 'GWT' The last page of the wizard allows you to select the desired technologies, choose GWT and point to your local GWT installation. This creates a new GWT facet, you can see this by opening File|Project structure &amp; selecting modules.&lt;br /&gt;&lt;br /&gt;Right click on the top level 'GWT' node in project tree, select New|Google Web Toolkit|GWT Sample application, give it a name of 'Sample'&lt;br /&gt;&lt;br /&gt;Open Run|Edit Configurations and select a GWT Configuration. Select the html file to open: sample.Sample/Sample.html. Set the VM parameters to -Xmx512M. otherwise you may have running out of memory issues. Run this new configuration and you see the sample GWT application:&lt;br /&gt;&lt;br /&gt;Note: In sample.html I had to change&lt;br /&gt;&amp;lt;script language="javascript" src="gwt.js"&gt;&amp;lt;/script&amp;gt;&lt;br /&gt;to&lt;br /&gt;&amp;lt;script language="javascript" src="sample.Sample.nocache.js"&amp;gt;&amp;lt;/script&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_AkbnS8OfHn4/SYjbEfL6jBI/AAAAAAAAAmI/VFxHsO314Nw/s1600-h/1.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 150px;" src="http://2.bp.blogspot.com/_AkbnS8OfHn4/SYjbEfL6jBI/AAAAAAAAAmI/VFxHsO314Nw/s400/1.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5298725831738821650" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;SmartGWT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Download SmartGWT (http://code.google.com/p/smartgwt/) and unzip to a convenient location. Create a lib directory under your GWT project and copy &lt;br /&gt;smartgwt.jar here. Open File|Project structure and select Libraries, select + to add new library 'smartgwt' and select attach classes and attach sources to point to this smartgwt.jar&lt;br /&gt;&lt;br /&gt;In Sample.gwt.xml, add     &lt;br /&gt; &amp;lt;inherits name='com.smartgwt.SmartGwt'/&amp;gt;&lt;br /&gt;&lt;br /&gt;Open {smartgwt}\samples\helloworld\src\com\mycompany\client\HelloWorld.java and append the onModuleLoad code to Sample.java. Rerun the application and you will see the sample SMARTGWT added.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_AkbnS8OfHn4/SYh-iz0latI/AAAAAAAAAl8/9hL66RbbC74/s1600-h/2.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 400px; height: 211px;" src="http://3.bp.blogspot.com/_AkbnS8OfHn4/SYh-iz0latI/AAAAAAAAAl8/9hL66RbbC74/s400/2.jpg" border="0" alt=""id="BLOGGER_PHOTO_ID_5298624098092804818" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/4091667087303293220-6436967715567994971?l=codeinquisitor.blogspot.com' alt='' /&gt;&lt;/div&gt;</description><link>http://codeinquisitor.blogspot.com/2009/02/idea-gwt-sample-application-smartgwt.html</link><author>noreply@blogger.com (board tc)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="http://2.bp.blogspot.com/_AkbnS8OfHn4/SYjbEfL6jBI/AAAAAAAAAmI/VFxHsO314Nw/s72-c/1.jpg" height="72" width="72" /><thr:total>0</thr:total></item></channel></rss>

