<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Aca-Bubbles</title>
	<atom:link href="http://thinkingfish.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://thinkingfish.wordpress.com</link>
	<description>The Geeky Side of ThinkingFish</description>
	<lastBuildDate>Wed, 28 Jul 2010 18:54:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='thinkingfish.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Aca-Bubbles</title>
		<link>http://thinkingfish.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://thinkingfish.wordpress.com/osd.xml" title="Aca-Bubbles" />
	<atom:link rel='hub' href='http://thinkingfish.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Programming Python with bpython &#8211; now THAT is neat!</title>
		<link>http://thinkingfish.wordpress.com/2010/07/28/programming-python-with-bpython-now-that-is-neat/</link>
		<comments>http://thinkingfish.wordpress.com/2010/07/28/programming-python-with-bpython-now-that-is-neat/#comments</comments>
		<pubDate>Wed, 28 Jul 2010 18:54:24 +0000</pubDate>
		<dc:creator>thinkingfish</dc:creator>
				<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://thinkingfish.wordpress.com/?p=65</guid>
		<description><![CDATA[The About page of bpython made the point clear: put what you normally get in a cumbersome IDE into a tiny package and use it in terminal. Here&#8217;s the &#8220;official&#8221; list of features: In-line syntax highlighting. Readline-like autocomplete with suggestions displayed as you type. Expected parameter list. Rewind. Pastebin code/write to file. Flush curses screen to stdout. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=65&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://bpython-interpreter.org/about/">About</a> page of <a href="http://bpython-interpreter.org/">bpython</a> made the point clear: put what you normally get in a cumbersome IDE into a tiny package and use it in terminal. Here&#8217;s the &#8220;official&#8221; list of features:</p>
<ul>
<blockquote>
<li><strong>In-line syntax highlighting.</strong></li>
<li><strong></strong><strong>Readline-like autocomplete with suggestions displayed as you type.</strong></li>
<li><strong>Expected parameter list.</strong></li>
<li><strong>Rewind.</strong></li>
<li><strong>Pastebin code/write to file.</strong></li>
<li><strong>Flush curses screen to stdout.</strong></li>
</blockquote>
</ul>
<p>Python has always been a neat language encouraging high productivity. This tool, simple as it is, has pushed the ease of use of Python to a new level. You should definitely try it out and kudos to Bob Farrell!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thinkingfish.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thinkingfish.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thinkingfish.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thinkingfish.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thinkingfish.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thinkingfish.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thinkingfish.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thinkingfish.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thinkingfish.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thinkingfish.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thinkingfish.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thinkingfish.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thinkingfish.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thinkingfish.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=65&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thinkingfish.wordpress.com/2010/07/28/programming-python-with-bpython-now-that-is-neat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b0edf8b9950fe173d711258b7d72d84?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thinkingfish</media:title>
		</media:content>
	</item>
		<item>
		<title>Doskey: creating aliases under Windows command prompt</title>
		<link>http://thinkingfish.wordpress.com/2010/06/30/doskey-creating-aliases-under-windows-command-prompt/</link>
		<comments>http://thinkingfish.wordpress.com/2010/06/30/doskey-creating-aliases-under-windows-command-prompt/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 22:02:20 +0000</pubDate>
		<dc:creator>thinkingfish</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://thinkingfish.wordpress.com/?p=54</guid>
		<description><![CDATA[I&#8217;m tired of typing &#8220;ls&#8221; on an Windows command prompt and getting bounced back with an error. Aliases are truly a necessity. To simulate the behavior of &#8220;alias&#8221; on Windows, do the following: 1. Create a shortcut for cmd.exe, right-click on the shortcut and choose &#8220;properties&#8221; and proceed as follows. 2. Change the &#8220;start in&#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=54&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<p>I&#8217;m tired of typing &#8220;ls&#8221; on an Windows command prompt and getting bounced back with an error. Aliases are truly a necessity. To simulate the behavior of &#8220;alias&#8221; on Windows, do the following:</p>
<p>1. Create a shortcut for cmd.exe, right-click on the shortcut and choose &#8220;properties&#8221; and proceed as follows.</p>
<p>2. Change the &#8220;start in&#8221; directory to your personal choice, such as &#8220;%HOMEDRIVE%%HOMEPATH%&#8221;</p>
<p>3. Create a batch file, such as &#8220;set_alias.bat&#8221;, in the &#8220;start in&#8221; directory. The file should contain the <em>doskey</em> command that loads the alias definitions. A sample file would contain this line:</p>
<blockquote><p>doskey /MACROFILE=aliases.txt</p></blockquote>
<p>4. Edit all your aliases.txt file, or other files that contain the Macros. For example, aliases.txt could look like this:</p>
<blockquote><p>ls=dir $*<br />
cp=copy $*<br />
python2=C:\Python26\python26.exe $*<br />
python3=C:\Python31\python31.exe $*</p></blockquote>
<p>$* allows you to take an arbitrary number of arguments and pass that to the program (up to 9?)</p>
<p>5. At the end of &#8220;Target&#8221; line in the shortcut properties, add your batch script with &#8220;/K&#8221; option to run upon launching. The Target line should look similar to this:</p>
<blockquote><p>C:\Windows\System32\cmd.exe /K set_alias.bat</p></blockquote>
<p>Done! Now cruise along <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thinkingfish.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thinkingfish.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thinkingfish.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thinkingfish.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thinkingfish.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thinkingfish.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thinkingfish.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thinkingfish.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thinkingfish.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thinkingfish.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thinkingfish.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thinkingfish.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thinkingfish.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thinkingfish.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=54&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thinkingfish.wordpress.com/2010/06/30/doskey-creating-aliases-under-windows-command-prompt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b0edf8b9950fe173d711258b7d72d84?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thinkingfish</media:title>
		</media:content>
	</item>
		<item>
		<title>CUDA new features (well, kinda new)</title>
		<link>http://thinkingfish.wordpress.com/2009/04/21/cuda-new-features-well-kinda-new/</link>
		<comments>http://thinkingfish.wordpress.com/2009/04/21/cuda-new-features-well-kinda-new/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 23:12:08 +0000</pubDate>
		<dc:creator>thinkingfish</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[notes]]></category>

		<guid isPermaLink="false">http://thinkingfish.wordpress.com/?p=41</guid>
		<description><![CDATA[Support of broadcast in shared memory (working on half a warp each time, one to 1-16 threads). A memo of Compute capability updates 1.0 &#8230;(PRE 8800 GTS) 1.1 atomic functions on 32-bit words in global memory &#8230;(PRE GT200) 1.2 Atomic functions operating in shared memory, atomic functions operating on 64-bit words in global memory 1.2 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=41&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Support of broadcast in shared memory (working on half a warp each time, one to 1-16 threads).</p>
<p>A memo of Compute capability updates<br />
1.0<br />
&#8230;(PRE 8800 GTS)<br />
1.1 atomic functions on 32-bit words in global memory<br />
&#8230;(PRE GT200)<br />
1.2 Atomic functions operating in shared memory, atomic functions operating on 64-bit words in global memory<br />
1.2 Warp vote functions<br />
1.2 16K local memory<br />
1.2 32 active warps per SM, 1024 active threads per SM<br />
1.3 Double precision floating-point numbers<br />
&#8230;(Current Frontier)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thinkingfish.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thinkingfish.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thinkingfish.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thinkingfish.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thinkingfish.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thinkingfish.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thinkingfish.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thinkingfish.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thinkingfish.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thinkingfish.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thinkingfish.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thinkingfish.wordpress.com/41/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thinkingfish.wordpress.com/41/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thinkingfish.wordpress.com/41/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=41&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thinkingfish.wordpress.com/2009/04/21/cuda-new-features-well-kinda-new/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b0edf8b9950fe173d711258b7d72d84?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thinkingfish</media:title>
		</media:content>
	</item>
		<item>
		<title>LaTeX Tips from Practice (3)</title>
		<link>http://thinkingfish.wordpress.com/2009/04/15/latex-tips-from-practice-3/</link>
		<comments>http://thinkingfish.wordpress.com/2009/04/15/latex-tips-from-practice-3/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 03:39:42 +0000</pubDate>
		<dc:creator>thinkingfish</dc:creator>
				<category><![CDATA[All]]></category>

		<guid isPermaLink="false">http://thinkingfish.wordpress.com/?p=33</guid>
		<description><![CDATA[How to display source code with keyword highlighting and proper comment color Originally posted at here Include the package needed with the following line: \usepackage{listings} A template of quoting source code with syntax highlighting is as follows: \usepackage{color} \usepackage{listings} \definecolor{Brown}{cmyk}{0,0.81,1,0.60} \definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40} \definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0} \begin{document} \lstset{language=VBScript,frame=ltrb,framesep=5pt,basicstyle=\normalsize, keywordstyle=\ttfamily\color{OliveGreen}, morekeywords={one,two,three}, commentstyle=\color{Brown}, stringstyle=\ttfamily, showstringspaces=ture} \begin{lstlisting} &#8230; \end{lstlisting} Adjust accordingly to your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=33&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>How to display source code with keyword highlighting and proper comment color</h3>
<p>Originally posted at <a href="http://www3.ntu.edu.sg/home5/pg04878518/LatexTips.html#q1">here</a></p>
<p>Include the package needed with the following line:</p>
<blockquote><p>\usepackage{listings}</p></blockquote>
<p>A template of quoting source code with syntax highlighting is as follows:</p>
<blockquote><p>\usepackage{color}<br />
\usepackage{listings}<br />
\definecolor{Brown}{cmyk}{0,0.81,1,0.60}<br />
\definecolor{OliveGreen}{cmyk}{0.64,0,0.95,0.40}<br />
\definecolor{CadetBlue}{cmyk}{0.62,0.57,0.23,0}<br />
\begin{document}</p>
<p>\lstset{language=<span style="color:#800000;"><em>VBScript</em></span>,frame=ltrb,framesep=5pt,basicstyle=\normalsize,<br />
keywordstyle=\ttfamily\color{OliveGreen},<br />
morekeywords={<em>one,two,three</em>},<br />
commentstyle=\color{Brown},<br />
stringstyle=\ttfamily,<br />
showstringspaces=ture}</p>
<p>\begin{lstlisting}<br />
&#8230;<br />
\end{lstlisting}</p></blockquote>
<p>Adjust accordingly to your preferred language, style and color.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thinkingfish.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thinkingfish.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thinkingfish.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thinkingfish.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thinkingfish.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thinkingfish.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thinkingfish.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thinkingfish.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thinkingfish.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thinkingfish.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thinkingfish.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thinkingfish.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thinkingfish.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thinkingfish.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=33&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thinkingfish.wordpress.com/2009/04/15/latex-tips-from-practice-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b0edf8b9950fe173d711258b7d72d84?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thinkingfish</media:title>
		</media:content>
	</item>
		<item>
		<title>Customize syntax highlighting for CUDA in Kate/KDevelop</title>
		<link>http://thinkingfish.wordpress.com/2008/06/06/customize-syntax-highlighting-for-cuda-in-katekdevelop/</link>
		<comments>http://thinkingfish.wordpress.com/2008/06/06/customize-syntax-highlighting-for-cuda-in-katekdevelop/#comments</comments>
		<pubDate>Fri, 06 Jun 2008 15:41:49 +0000</pubDate>
		<dc:creator>thinkingfish</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://thinkingfish.wordpress.com/?p=31</guid>
		<description><![CDATA[CUDA is a minimal extension of C/C++ to support programming on newer NVIDIA GPUs. It introduces dozens of new keywords that are frequently used in CUDA programs. Adding syntax highlighting in KDevelop (Kate) only requires several simple steps: 1. Get keywords from &#8220;usertype.dat&#8221; provided by any Windows version of CUDA SDK, this is a text file. It should be found under $(NVIDIA_CUDA_SDK)\doc\syntax_highlighting. 2. Under [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=31&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a title="CUDA" href="http://www.nvidia.com/object/cuda_home.html" target="_blank">CUDA</a> is a minimal extension of C/C++ to support programming on newer NVIDIA GPUs. It introduces dozens of new keywords that are frequently used in CUDA programs. Adding syntax highlighting in KDevelop (Kate) only requires several simple steps:</p>
<p>1. Get keywords from &#8220;<span style="color:#0000ff;">usertype.dat</span>&#8221; provided by any Windows version of CUDA SDK, this is a text file. It should be found under <span style="color:#0000ff;">$(NVIDIA_CUDA_SDK)\doc\syntax_highlighting</span>.</p>
<p>2. Under your Linux account, cd ~/.kde/share/apps/katepart/syntax/, there should be two xml files regarding C/C++, <span style="color:#0000ff;">cpp.xml</span> and<span style="color:#0000ff;"> c.xml</span>. Make a copy of both and name them properly, e.g. <span style="color:#0000ff;">cpp_cuda.xml</span> &amp; <span style="color:#0000ff;">c_cuda.xml</span>.</p>
<p>3. Perform a replace operation on each keyword in &#8220;usertype.dat&#8221; so they match the keyword format in target xml files, and then copy them into the keyword lists of target files.</p>
<p>4. Modify xml header, which includes language description, file extensions and other information. You probably want to add &#8220;<span style="color:#0000ff;">*.cu</span>&#8221; to the file extension list. Remember to distinguish them from the original C/C++ language tag. Save the xml files after you are done.</p>
<p>5. Open Kate/KDevelop, under <span style="color:#0000ff;">Tools-&gt;Highlighting-&gt;Sources</span> you should see two new entries below C++ and C, respectively.</p>
<p>Enjoy.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thinkingfish.wordpress.com/31/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thinkingfish.wordpress.com/31/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thinkingfish.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thinkingfish.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thinkingfish.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thinkingfish.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thinkingfish.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thinkingfish.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thinkingfish.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thinkingfish.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thinkingfish.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thinkingfish.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thinkingfish.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thinkingfish.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thinkingfish.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thinkingfish.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=31&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thinkingfish.wordpress.com/2008/06/06/customize-syntax-highlighting-for-cuda-in-katekdevelop/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b0edf8b9950fe173d711258b7d72d84?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thinkingfish</media:title>
		</media:content>
	</item>
		<item>
		<title>Starting a subprocess from Python</title>
		<link>http://thinkingfish.wordpress.com/2008/05/05/starting-a-subprocess-from-python/</link>
		<comments>http://thinkingfish.wordpress.com/2008/05/05/starting-a-subprocess-from-python/#comments</comments>
		<pubDate>Mon, 05 May 2008 18:35:02 +0000</pubDate>
		<dc:creator>thinkingfish</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[notes]]></category>

		<guid isPermaLink="false">http://thinkingfish.wordpress.com/?p=30</guid>
		<description><![CDATA[subprocess is a convenient way to fork a new process on Windows/Unix/etc. It obsoletes previous methods such as commands (which does not support Windows) and os.system()/os.popen*/os.spawn* Here is an example: import subprocess cmd_lst = ['exec_file', 'arg1', 'arg2', ...] subprocess.call(cmd_lst) #return the value returned by the callee subprocess.check_call(cmd_lst) #return if the callee exits with 0, otherwise [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=30&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>subprocess is a convenient way to fork a new process on Windows/Unix/etc. It obsoletes previous methods such as commands (which does not support Windows) and os.system()/os.popen*/os.spawn*</p>
<p>Here is an example:<br />
<code>import subprocess<br />
cmd_lst = ['<em>exec_file</em>', '<em>arg1</em>', '<em>arg2</em>', ...]<br />
subprocess.call(cmd_lst) #return the value returned by the callee<br />
subprocess.check_call(cmd_lst) #return if the callee exits with 0, otherwise raise an error<br />
</code></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thinkingfish.wordpress.com/30/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thinkingfish.wordpress.com/30/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thinkingfish.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thinkingfish.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thinkingfish.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thinkingfish.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thinkingfish.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thinkingfish.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thinkingfish.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thinkingfish.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thinkingfish.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thinkingfish.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thinkingfish.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thinkingfish.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thinkingfish.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thinkingfish.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=30&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thinkingfish.wordpress.com/2008/05/05/starting-a-subprocess-from-python/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b0edf8b9950fe173d711258b7d72d84?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thinkingfish</media:title>
		</media:content>
	</item>
		<item>
		<title>Surface by Microsoft</title>
		<link>http://thinkingfish.wordpress.com/2008/04/02/surface-by-microsoft/</link>
		<comments>http://thinkingfish.wordpress.com/2008/04/02/surface-by-microsoft/#comments</comments>
		<pubDate>Wed, 02 Apr 2008 05:48:20 +0000</pubDate>
		<dc:creator>thinkingfish</dc:creator>
				<category><![CDATA[notes]]></category>

		<guid isPermaLink="false">http://thinkingfish.wordpress.com/2008/04/02/surface-by-microsoft/</guid>
		<description><![CDATA[Happened to run into the link http://www.microsoft.com/surface, this is a product that&#8217;s been announced for over a year. Very impressive. This somewhat proves, again, that computer science is neither about computer nor science, it is math and art.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=29&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Happened to run into the link <a href="http://www.microsoft.com/surface">http://www.microsoft.com/surface</a>, this is a product that&#8217;s been announced for over a year. Very impressive.</p>
<p>This somewhat proves, again, that computer science is neither about computer nor science, it is math and art.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thinkingfish.wordpress.com/29/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thinkingfish.wordpress.com/29/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thinkingfish.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thinkingfish.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thinkingfish.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thinkingfish.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thinkingfish.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thinkingfish.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thinkingfish.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thinkingfish.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thinkingfish.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thinkingfish.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thinkingfish.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thinkingfish.wordpress.com/29/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thinkingfish.wordpress.com/29/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thinkingfish.wordpress.com/29/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=29&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thinkingfish.wordpress.com/2008/04/02/surface-by-microsoft/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b0edf8b9950fe173d711258b7d72d84?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thinkingfish</media:title>
		</media:content>
	</item>
		<item>
		<title>Shot their own feet</title>
		<link>http://thinkingfish.wordpress.com/2008/03/04/shot-their-own-feet/</link>
		<comments>http://thinkingfish.wordpress.com/2008/03/04/shot-their-own-feet/#comments</comments>
		<pubDate>Wed, 05 Mar 2008 01:28:17 +0000</pubDate>
		<dc:creator>thinkingfish</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Comments]]></category>

		<guid isPermaLink="false">http://thinkingfish.wordpress.com/2008/03/04/shot-their-own-feet/</guid>
		<description><![CDATA[Live Mail filtered Microsoft Survey invitation as junk. I lost a teeny-tiny chance to win in a sweepstakes. Oh well&#8230; Do we have to take training courses in &#8220;how to compose emails in a junk-unlikely style&#8221; someday in the future?<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=28&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Live Mail filtered Microsoft Survey invitation as junk. I lost a teeny-tiny chance to win in a sweepstakes. Oh well&#8230; Do we have to take training courses in &#8220;how to compose emails in a junk-unlikely style&#8221; someday in the future?</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thinkingfish.wordpress.com/28/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thinkingfish.wordpress.com/28/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thinkingfish.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thinkingfish.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thinkingfish.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thinkingfish.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thinkingfish.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thinkingfish.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thinkingfish.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thinkingfish.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thinkingfish.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thinkingfish.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thinkingfish.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thinkingfish.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thinkingfish.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thinkingfish.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=28&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thinkingfish.wordpress.com/2008/03/04/shot-their-own-feet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b0edf8b9950fe173d711258b7d72d84?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thinkingfish</media:title>
		</media:content>
	</item>
		<item>
		<title>Cygwin group/passwd setting</title>
		<link>http://thinkingfish.wordpress.com/2008/02/17/cygwin-grouppasswd-setting/</link>
		<comments>http://thinkingfish.wordpress.com/2008/02/17/cygwin-grouppasswd-setting/#comments</comments>
		<pubDate>Mon, 18 Feb 2008 00:20:58 +0000</pubDate>
		<dc:creator>thinkingfish</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://thinkingfish.wordpress.com/?p=26</guid>
		<description><![CDATA[In case anything goes wrong with user accounts, carry on the following steps: mkpasswd -l -c &#62; /etc/passwd mkgroup -l -c &#62; /etc/group mkpasswd -d -u &#60;username&#62; /etc/passwd (optional) mkgroup -d &#124; grep &#60;username&#62; /etc/group (optional)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=26&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In case anything goes wrong with user accounts, carry on the following steps:</p>
<p><em>mkpasswd -l -c &gt; /etc/passwd</em></p>
<p><em>mkgroup -l -c &gt; /etc/group</em></p>
<p><em>mkpasswd -d -u &lt;username&gt; /etc/passwd</em> (optional)</p>
<p><em>mkgroup -d | grep &lt;username&gt; /etc/group</em> (optional)</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thinkingfish.wordpress.com/26/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thinkingfish.wordpress.com/26/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thinkingfish.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thinkingfish.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thinkingfish.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thinkingfish.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thinkingfish.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thinkingfish.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thinkingfish.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thinkingfish.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thinkingfish.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thinkingfish.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thinkingfish.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thinkingfish.wordpress.com/26/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thinkingfish.wordpress.com/26/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thinkingfish.wordpress.com/26/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=26&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thinkingfish.wordpress.com/2008/02/17/cygwin-grouppasswd-setting/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b0edf8b9950fe173d711258b7d72d84?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thinkingfish</media:title>
		</media:content>
	</item>
		<item>
		<title>How to- Tunnel Traffic through Firewall and Remote Desktop</title>
		<link>http://thinkingfish.wordpress.com/2007/09/25/howto-tunnel-traffic-through-firewall-and-remote-desktop/</link>
		<comments>http://thinkingfish.wordpress.com/2007/09/25/howto-tunnel-traffic-through-firewall-and-remote-desktop/#comments</comments>
		<pubDate>Tue, 25 Sep 2007 21:18:23 +0000</pubDate>
		<dc:creator>thinkingfish</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[notes]]></category>

		<guid isPermaLink="false">http://thinkingfish.wordpress.com/2007/09/25/howto-tunnel-traffic-through-firewall-and-remote-desktop/</guid>
		<description><![CDATA[My department has rigid access rules, which prevail in today&#8217;s internet jungle. Sadly enough, connecting to one&#8217;s working environment is not as easy as it used to be. It took more than a breath of time and understanding to configure all the access methods I need. Though all stated here are trivial, I feel keeping a memo quite necessary, especially when all the department guidelines themselves are within [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=23&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My department has rigid access rules, which prevail in today&#8217;s internet jungle. Sadly enough, connecting to one&#8217;s working environment is not as easy as it used to be. It took more than a breath of time and understanding to configure all the access methods I need. Though all stated here are trivial, I feel keeping a memo quite necessary, especially when all the department guidelines themselves are within the firewall.</p>
<p><strong>Scenario</strong><br />
a) IP address space protected by a filewall<br />
b) Access server sitting just on border of the firewall, only tunneling allowed<br />
c) Well-known department servers inside the filewall<br />
d) Office computer, with domain/username account and domain-affiliated NFS (OS: Windows XP SP2)<br />
e) Home computer, OS: Windows Vista (yes, I know Linux will make remote access easier, but what about drivers of all the cool new hardware I paid big money for?)</p>
<p>Software on client side: OpenSSH (on Cygwin) or PuTTY or SSH Secure Shell, WinSCP</p>
<p><strong>Goal 1: Set up tunnels through a border server</strong><br />
Edit the configuration file for OpenSSH (or do similar stuff to other clients), open the file <code>~/.ssh/config</code> and put the following lines in:<br />
<code>host <em>name_it_yourself</em><br />
hostname <em>hostname_domainname</em><br />
user <em>username</em><br />
ForwardAgent yes<br />
LocalForward <em>custom_port1 hostname1</em>:<em>port1 </em>#list as many as u wish<br />
LocalForward <em>custom_port2 hostname2</em>:<em>port2<br />
</em>IdentityFile ~/.ssh/<em>key_for_host</em>/id_dsa #where to store private key if pubkey is used</code></p>
<p>kick-start everything else with <code>ssh <em>name_it_yourself</em></code> and leave it running in the background. From now on, all remote access appear as reaching for some local customized port. All the ugly things (almost all) are taken care of by the tunneling mechanism.</p>
<p><strong>Goal 2: Connect to well know server inside firewall</strong><br />
Specify a portforwarding rule in 1, and then create a new profile (i.e. adding a new paragraph in OpenSSH <code>config</code> file) looking like this:<br />
<code>host <em>name_it_yourself</em><br />
hostname <em>localhost</em> # since we have already tunneled it<br />
user <em>username</em><br />
ForwardX11 yes<br />
port <em>custom_port1</em><br />
IdentityFile ~/.ssh/<em>id_file</em></code><br />
Login by running <code>ssh <em>name_it_yourself</em></code></p>
<p><strong>Goal 3: SSH to office computer</strong><br />
A SSH server is required on the remote end, OpenSSH on Cygwin is one of the easiest way to do this. Set OpenSSH to service mode so that <code>sshd.exe</code> is lauched at booting.<br />
On the client side, add another profile for office computer similar to 2. Remember to set up a tunnel in 1. With better control of the server end, public key authentication can be used to save password typing. Use <code>ssh-keygen</code> under Cygwin for a pair of keys:<br />
<code>ssh-keygen -f ~/.ssh/<em>key_file</em> -t rsa #specify where to put keys and which authentication protocol to use</code><br />
Keep the private key safe and sound, probably protecting it by a password.<br />
Distribute the pub key file on office computer by concatenate it to the SSH authorized key file (change path of the pub key accordingly):<br />
<code>cat ~/<em>key_file</em>.pub &gt;&gt; ~/.ssh/authorized_keys</code><strong> </strong></p>
<p>Note: If you are using PuTTY for tunneling, remember that pub key pairs generated by PuTTY is not 100% compatible with OpenSSH. Minor modification required, or simply stick to ssh-keygen and import it in PuTTY.</p>
<p><strong>Goal 4: FTP-like file access</strong><br />
WinSCP is a good candidate, supporting SCP and SFTP. Create a new profile in WinSCP, if pubkey is used, private key file should be loaded. WinSCP uses PuTTY style private key, and OpenSSH keys are alien to it. Therefore, a private key generated in a UNIX environment should be imported using <code>PuTTYgen.exe</code> and saved in PuTTY style (<code>.ppk</code>) before using.</p>
<p><strong>Goal 5: Remote desktop to office computer</strong><br />
Add a tunnel to the remote RDP port by adding a line to profile in 1:<br />
<code>LocalForward <em>local_port</em> office_computer_domain:<em>RDP_port</em></code><br />
Make sure remote desktop is allowed on remote OS and the user is granted access. Run remote desktop on local machine and access <em>localhost:local_port</em>.<br />
<em><strong>Note</strong></em> On Windows XP SP2, access to <code>127.0.0.1:</code> is not allowed (loopback), use <code>127.0.0.2</code> instead. On Windows XP/2003, RDP listens on port <code>3389</code>, while Windows Vista listens on <code>3390</code>. Therefore, one cannot map these port as the <code><em>local_port</em></code>.</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thinkingfish.wordpress.com/23/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thinkingfish.wordpress.com/23/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thinkingfish.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thinkingfish.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thinkingfish.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thinkingfish.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/thinkingfish.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/thinkingfish.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/thinkingfish.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/thinkingfish.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thinkingfish.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thinkingfish.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thinkingfish.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thinkingfish.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thinkingfish.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thinkingfish.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thinkingfish.wordpress.com&amp;blog=98103&amp;post=23&amp;subd=thinkingfish&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://thinkingfish.wordpress.com/2007/09/25/howto-tunnel-traffic-through-firewall-and-remote-desktop/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/5b0edf8b9950fe173d711258b7d72d84?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">thinkingfish</media:title>
		</media:content>
	</item>
	</channel>
</rss>
