<?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/"
	>

<channel>
	<title>-= many (dlyr) stuff =-</title>
	<atom:link href="http://www.dlyr.fr/stuff/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dlyr.fr/stuff</link>
	<description></description>
	<lastBuildDate>Mon, 26 Mar 2012 09:02:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Title Capitalization</title>
		<link>http://www.dlyr.fr/stuff/2012/03/title-capitalization/</link>
		<comments>http://www.dlyr.fr/stuff/2012/03/title-capitalization/#comments</comments>
		<pubDate>Mon, 26 Mar 2012 09:02:02 +0000</pubDate>
		<dc:creator>dlyr</dc:creator>
				<category><![CDATA[LaTeX]]></category>

		<guid isPermaLink="false">http://www.dlyr.fr/stuff/?p=106</guid>
		<description><![CDATA[Not to myself : how to capitalize an English paper title : Rule 8 Always capitalize the first and last words of titles of publications regardless of their parts of speech. Capitalize other words within titles, including the short verb &#8230; <a href="http://www.dlyr.fr/stuff/2012/03/title-capitalization/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Not to myself : how to capitalize an English paper title :<br />
Rule 8<br />
Always capitalize the first and last words of titles of publications regardless of their parts of speech. Capitalize other words within titles, including the short verb forms Is, Are, and Be.<br />
Exception:<br />
Do not capitalize little words within titles such as a, an, the, but, as, if, and, or, nor, or prepositions, regardless of their length.</p>
<p>Examples:<br />
The Day of the Jackal<br />
What Color Is Your Parachute?<br />
A Tale of Two Cities<br />
From :<br />
<a href="http://www.grammarbook.com/punctuation/capital.asp" title="Capitalization">http://www.grammarbook.com/punctuation/capital.asp</a><br />
and referenced by  <a href="http://www.siggraph.org/publications/instructions" title="Siggraph publications instructions">Siggraph publications instructions</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dlyr.fr/stuff/2012/03/title-capitalization/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Release and Debug with Cmake and QtCreator</title>
		<link>http://www.dlyr.fr/stuff/2012/03/release-and-debug-with-cmake-and-qtcreator/</link>
		<comments>http://www.dlyr.fr/stuff/2012/03/release-and-debug-with-cmake-and-qtcreator/#comments</comments>
		<pubDate>Thu, 08 Mar 2012 12:53:37 +0000</pubDate>
		<dc:creator>dlyr</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[cmake]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[qt]]></category>

		<guid isPermaLink="false">http://www.dlyr.fr/stuff/?p=89</guid>
		<description><![CDATA[I have used qmake for a while and the debug_and_release facilities to have both debug and release version of my code (with different executable, different build tress &#8230;) Now I use cmake and qtcreator on a regular basis, to obtain &#8230; <a href="http://www.dlyr.fr/stuff/2012/03/release-and-debug-with-cmake-and-qtcreator/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have used qmake for a while and the debug_and_release facilities to have both debug and release version of my code (with different executable, different build tress &#8230;)<br />
Now I use cmake and qtcreator on a regular basis, to obtain the same behavior I have found the following approach :</p>
<p>in my CMakeLists.txtm something like<br />
<code><br />
if(CMAKE_BUILD_TYPE STREQUAL "Debug")<br />
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib-debug)<br />
set(LIB_INSTALL_DIR ${CMAKE_SOURCE_DIR}/lib-debug)<br />
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin-dbg)<br />
else()<br />
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)<br />
set(LIB_INSTALL_DIR ${CMAKE_SOURCE_DIR}/lib)<br />
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin)<br />
endif()</code><br />
in QtCreator :<br />
First time you open a CMakeLists.txt, simply choose a build dir (some thing like XXX/qtcreator-build) and run cmake,<br />
then go to Tab projects->edit build configuration -> add -> clone selected<br />
Chage build dir (something like XXX/qtcreator-build-dbg) and click &#8220;Run cmake&#8221;<br />
In the Arguments edit line enter <code>-DCMAKE_BUILD_TYPE=Debug</code><br />
You can check that in run settings, working directory has changed to the new bin-dbg directory &#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dlyr.fr/stuff/2012/03/release-and-debug-with-cmake-and-qtcreator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install (and develop in) cuda under ubuntu 11.10</title>
		<link>http://www.dlyr.fr/stuff/2012/02/install-and-develop-in-cuda-under-ubuntu-11-10/</link>
		<comments>http://www.dlyr.fr/stuff/2012/02/install-and-develop-in-cuda-under-ubuntu-11-10/#comments</comments>
		<pubDate>Sat, 25 Feb 2012 13:28:08 +0000</pubDate>
		<dc:creator>dlyr</dc:creator>
				<category><![CDATA[Computer Graphics]]></category>
		<category><![CDATA[OpenGL]]></category>
		<category><![CDATA[cuda]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.dlyr.fr/stuff/?p=74</guid>
		<description><![CDATA[What you need for cuda with ubuntu 11.10 : Download and install cudatoolkit (4.1.28) and gpucomputingsdk nvidia download page You also need last driver (either with a ppa package or direct from nvidia). chmod +x cudatoolkit_4.1.28_linux_64_ubuntu11.04.run ./cudatoolkit_4.1.28_linux_64_ubuntu11.04.run #-> /home/XXX/cuda for &#8230; <a href="http://www.dlyr.fr/stuff/2012/02/install-and-develop-in-cuda-under-ubuntu-11-10/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>What you need for cuda with ubuntu 11.10 :</p>
<p>Download and install cudatoolkit (4.1.28) and gpucomputingsdk <a href="http://developer.nvidia.com/cuda-toolkit-41" title="nvidia download page" target="_blank">nvidia download page</a><br />
You also need last driver (either with a ppa package or direct from nvidia).<br />
<code><br />
chmod +x cudatoolkit_4.1.28_linux_64_ubuntu11.04.run<br />
./cudatoolkit_4.1.28_linux_64_ubuntu11.04.run<br />
#-> /home/XXX/cuda for instance<br />
chmod +x gpucomputingsdk_4.1.28_linux.run<br />
./gpucomputingsdk_4.1.28_linux.run<br />
#-> /home/XXX/NVIDIA_GPU_Computing_SDK<br />
# indicate cuda install dir<br />
</code><br />
I choose to install both in my home dir. Cuda need gcc 4.4 (not 4.6 which is default in ubuntu 11.10) if not installed<br />
<code>sudo apt-get install gcc-4.4 g++-4.4</code><br />
then the simplest solution i&#8217;ve found is<br />
<code><br />
ln -s /usr/bin/gcc-4.4 ~/cuda/bin/gcc<br />
ln -s /usr/bin/g++-4.4 ~/cuda/bin/g++<br />
</code><br />
Add lib and bin dir to path<br />
<code>export LD_LIBRARY_PATH=$LD_LIBRARY_PATH/XXX/cuda/lib64; export PATH=$PATH:XXX/cuda/bin</code></p>
<p>cuda sdk needs also Xi Xmu and glut<br />
<code>sudo apt-get install libxi-dev libxmu-dev freeglut3-dev</code><br />
and I don&#8217;t know why, but libcuda.so wasn&#8217;t linked from /usr/lib/nvidia-current to /usr/lib/ so you need to add the symlink<br />
<code>sudo ln -s nvidia-current/libcuda.so .<br />
</code></p>
<p>And to compile NVIDIA_GPU_Computing,<br />
one need also to modify common.mk to use g++-4.4/gcc-4.4 in place of g++/gcc<br />
in ~/NVIDIA_GPU_Computing_SDK/C/common/common.mk<br />
~/NVIDIA_GPU_Computing_SDK/CUDALibraries/common/common_cudalib.mk common_npplib.mk<br />
~/NVIDIA_GPU_Computing_SDK/CUDALibraries/common/UtilNPP/defines.mk<br />
change<br />
<code>CXX := g++ -fPIC<br />
CC := gcc -fPIC<br />
LINK := g++ -fPIC</code><br />
into<br />
<code>CXX := g++-4.4 -fPIC<br />
CC := gcc-4.4 -fPIC<br />
LINK := g++-4.4 -fPIC<br />
</code></p>
<p>A last thing is cuda sdk provides GL/* headers which are not compatible with some of my code, so I need to remove the directory found here ~/NVIDIA_GPU_Computing_SDK/CUDALibraries/common/inc/GL</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dlyr.fr/stuff/2012/02/install-and-develop-in-cuda-under-ubuntu-11-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SIGGRAPH deadline</title>
		<link>http://www.dlyr.fr/stuff/2012/01/siggraph-deadline/</link>
		<comments>http://www.dlyr.fr/stuff/2012/01/siggraph-deadline/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 09:26:22 +0000</pubDate>
		<dc:creator>dlyr</dc:creator>
				<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://www.dlyr.fr/stuff/?p=60</guid>
		<description><![CDATA[A SIGGRAPH deadline can be tough, here is my desk in &#8220;normal time&#8221; and &#8220;right after the deadline&#8221; (pass your mouse on the image).]]></description>
			<content:encoded><![CDATA[<p>A SIGGRAPH deadline can be tough, here is my desk in &#8220;normal time&#8221; and &#8220;right after the deadline&#8221; (pass your mouse on the image).</p>
<style>
.himage
{
	-webkit-transition: opacity .4s ease-in-out 0s;
	-moz-transition: opacity .4s ease-in-out 0s;
	-o-transition: opacity .4s ease-in-out 0s;
	transition: opacity .4s ease-in-out 0s;
}
</style><div style="position:relative;"><img src="http://www.dlyr.fr/data/gfx/pix/deadlineOn.jpg" width="409" height="306" /><img class="himage" src="http://www.dlyr.fr/data/gfx/pix/deadlineOff.jpg" width="409" height="306" onmouseover="this.style.opacity=0;" onmouseout="this.style.opacity=1;" style="position:absolute; top:0; left:0;" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.dlyr.fr/stuff/2012/01/siggraph-deadline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install non-free latex fonts</title>
		<link>http://www.dlyr.fr/stuff/2011/06/install-non-free-latex-fonts/</link>
		<comments>http://www.dlyr.fr/stuff/2011/06/install-non-free-latex-fonts/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 08:11:31 +0000</pubDate>
		<dc:creator>dlyr</dc:creator>
				<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[latex]]></category>

		<guid isPermaLink="false">http://www.dlyr.fr/stuff/?p=39</guid>
		<description><![CDATA[sudo getnonfreefonts-sys --all It includes luximono (and luximono.sty) for latex, a nice fixedwidth font with all typeface included (blod, italics) I use this one for listings (lstlistings, algorithmic etc &#8230;) And now for something completly different : Install ms font &#8230; <a href="http://www.dlyr.fr/stuff/2011/06/install-non-free-latex-fonts/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><code>sudo getnonfreefonts-sys --all</code><br />
It includes luximono (and luximono.sty) for latex, a nice fixedwidth font with all typeface included (blod, italics) I use this one for listings (lstlistings, algorithmic etc &#8230;)</p>
<p>And now for something completly different :<br />
Install ms font in linux :<br />
<code><br />
sudo apt-get install msttcorefonts ttf-ms-fonts<br />
sudo fc-cache -f -v<br />
<code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dlyr.fr/stuff/2011/06/install-non-free-latex-fonts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Blogs I follow</title>
		<link>http://www.dlyr.fr/stuff/2011/05/blogs-i-follow/</link>
		<comments>http://www.dlyr.fr/stuff/2011/05/blogs-i-follow/#comments</comments>
		<pubDate>Sat, 14 May 2011 06:51:08 +0000</pubDate>
		<dc:creator>dlyr</dc:creator>
				<category><![CDATA[Computer Graphics]]></category>
		<category><![CDATA[Life]]></category>

		<guid isPermaLink="false">http://www.dlyr.fr/stuff/?p=33</guid>
		<description><![CDATA[Here is a list of blog I follow on a regular basis (by rss syndication) Some are very active (several post a day) some less (one post a year) but worse it Beautiful Pixels [RSS] Beyond3D News [RSS] c0de517e [RSS] &#8230; <a href="http://www.dlyr.fr/stuff/2011/05/blogs-i-follow/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is a list of blog I follow on a regular basis (by rss syndication)</p>
<p>Some are very active (several post a day) some less (one post a year) but worse it <img src='http://www.dlyr.fr/stuff/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
<a href="http://beautifulpixels.blogspot.com/"> Beautiful Pixels</a> <a href="http://feeds.feedburner.com/BeautifulPixels">[RSS]</a></p>
<p><a href="http://www.beyond3d.com/"> Beyond3D News</a>  <a href="http://www.beyond3d.com/rss">[RSS]</a></p>
<p><a href="http://c0de517e.blogspot.com/"> c0de517e</a>  <a href="http://c0de517e.blogspot.com/feeds/posts/default">[RSS]</a></p>
<p><a href="http://chrishecker.com/Special:WikiFeeds/rss/recentarticlechanges"> Chris Hecker&#8217;s Website &#8211; Recently Changed Articles</a>  <a href="http://www.chrishecker.com/Special:WikiFeeds/rss/recentarticlechanges">[RSS]</a></p>
<p><a href="http://www.confettispecialfx.com"> Confetti Special FX</a>  <a href="http://www.confettispecialfx.com/feed/rss">[RSS]</a></p>
<p><a href="http://blog.deanoc.com"> Deano&#8217;s Home From Home</a>  <a href="http://blog.deanoc.com/?feed=rss2">[RSS]</a></p>
<p><a href="http://diaryofagraphicsprogrammer.blogspot.com/"> Diary of a Graphics Programmer</a>  <a href="http://diaryofagraphicsprogrammer.blogspot.com/feeds/posts/default">[RSS]</a></p>
<p><a href="http://blogs.msdn.com/b/directx/"> DirectX Developer Blog</a>  <a href="http://blogs.msdn.com/DirectX/atom.xml">[RSS]</a></p>
<p><a href="http://www.gamasutra.com/features"> Gamasutra Feature Articles</a>  <a href="http://feeds.feedburner.com/GamasutraFeatureArticles">[RSS]</a></p>
<p><a href="http://www.gamedev.net/"> GameDev.net &#8211; Latest Articles and Columns</a>  <a href="http://www.gamedev.net/latestarticles.rss">[RSS]</a></p>
<p><a href="http://www.gamedevkicks.com/"> GameDevKicks.com</a>  <a href="http://feeds.feedburner.com/gamedevkicks">[RSS]</a></p>
<p><a href="http://gates381.blogspot.com/"> Gates 381</a>  <a href="http://gates381.blogspot.com/feeds/posts/default">[RSS]</a></p>
<p><a href="http://www.geeks3d.com"> Geeks3D.com</a>  <a href="http://feeds.feedburner.com/TheGeeksOf3d">[RSS]</a></p>
<p><a href="http://gtrendu.blogspot.com/"> GT Rendu</a>  <a href="http://gtrendu.blogspot.com/feeds/posts/default">[RSS]</a></p>
<p><a href="http://www.guru3d.com"> Guru3d Latest Headlines</a>  <a href="http://www.guru3d.com/news_rss.php">[RSS]</a></p>
<p><a href="http://www.guru3d.com"> Guru3d.com Latest Articles</a>  <a href="http://www.guru3d.com/articles_rss.php">[RSS]</a></p>
<p><a href="http://www.humus.name"> Humus</a>  <a href="http://www.humus.name/rss.xml">[RSS]</a></p>
<p><a href="http://igetyourfail.blogspot.com/"> I Get Your Fail</a>  <a href="http://feeds.feedburner.com/IGetYourFail">[RSS]</a></p>
<p><a href="http://blog.icare3d.org/"> Icare3D Blog</a>  <a href="http://blog.icare3d.org/feeds/posts/default?alt=rss">[RSS]</a></p>
<p><a href="http://industrialarithmetic.blogspot.com/"> Industrial Arithmetic</a>  <a href="http://industrialarithmetic.blogspot.com/feeds/posts/default">[RSS]</a></p>
<p><a href="http://codesuppository.blogspot.com/"> John Ratcliff&#8217;s Code Suppository</a>  <a href="http://codesuppository.blogspot.com/feeds/posts/default">[RSS]</a></p>
<p><a href="http://kesen.realtimerendering.com/ke-senhuang%27shomepagechangelog.html"> Ke-Sen Huang&#8217;s Conference Paper List</a>  <a href="http://www.feed43.com/kesenpapers.xml">[RSS]</a></p>
<p><a href="http://legalizeadulthood.wordpress.com"> Legalize Adulthood!</a>  <a href="http://legalizeadulthood.wordpress.com/feed/">[RSS]</a></p>
<p><a href="http://www.jshopf.com/blog"> level of detail</a>  <a href="http://www.jshopf.com/blog/?feed=rss2">[RSS]</a></p>
<p><a href="http://aras-p.info/blog"> Lost in the Triangles</a>  <a href="http://feeds.feedburner.com/LostInTheTriangles">[RSS]</a></p>
<p><a href="http://meshlabstuff.blogspot.com/"> MeshLab Stuff</a>  <a href="http://meshlabstuff.blogspot.com/feeds/posts/default">[RSS]</a></p>
<p><a href="http://news.developer.nvidia.com/"> NVIDIA Developer News</a>  <a href="http://news.developer.nvidia.com/rss.xml">[RSS]</a></p>
<p><a href="http://www.gamedev.net/community/forums/mod/journal/journal.asp?jn=316777"> On the path with a ramblin&#8217; man, by jollyjeffers</a>  <a href="http://www.gamedev.net/community/forums/lib/rss.asp?mode=journal&amp;jn=316777">[RSS]</a></p>
<p><a href="http://bittermanandy.wordpress.com">Pandemonium</a>  <a href="http://bittermanandy.wordpress.com/feed/">[RSS]</a></p>
<p><a href="http://www.pcper.com"> PC Perspective  Articles Feed</a>  <a href="http://www.pcper.com/rss/articles.rss">[RSS]</a></p>
<p><a href="http://www.pcper.com"> PC Perspective  News Feed</a><a href="http://www.pcper.com/rss/news.rss">[RSS]</a></p>
<p><a href="http://psgraphics.blogspot.com/"> Pete Shirley&#8217;s Graphics Blog</a><a href="http://psgraphics.blogspot.com/feeds/posts/default">[RSS]</a></p>
<p><a href="http://pixelstoomany.wordpress.com"> Pixels, Too Many..</a><a href="http://pixelstoomany.wordpress.com/feed/">[RSS]</a></p>
<p><a href="http://tog.acm.org/resources/RTNews/html/"> Ray Tracing News</a>  <a href="http://www.feed43.com/raytracingnews.xml">[RSS]</a></p>
<p><a href="http://www.realtimerendering.com/blog"> Real-Time Rendering</a>  <a href="http://www.realtimerendering.com/blog/feed/">[RSS]</a></p>
<p><a href="http://realtimecollisiondetection.net/blog"> realtimecollisiondetection.net &#8211; the blog</a>  <a href="http://realtimecollisiondetection.net/blog/?feed=atom">[RSS]</a></p>
<p><a href="http://www.enseignementsup-recherche.gouv.fr"> Recherche : Evénements et manifestations</a>  <a href="http://www.enseignementsup-recherche.gouv.fr/rss/?pid=20020&amp;sid=6&amp;lid=1?xtdate=20101021">[RSS]</a></p>
<p><a href="http://www.enseignementsup-recherche.gouv.fr"> Recherche : Tous les communiqués</a>  <a href="http://www.enseignementsup-recherche.gouv.fr/rss/?pid=20083&amp;sid=6&amp;lid=1?xtdate=20100910">[RSS]</a></p>
<p><a href="http://www.enseignementsup-recherche.gouv.fr"> Recherche : Tous les discours</a>  <a href="http://www.enseignementsup-recherche.gouv.fr/rss/?pid=20092&amp;sid=6&amp;lid=1?xtdate=20101021">[RSS]</a></p>
<p><a href="http://www.eelpi.gotdns.org/blog.wiki.html"> TomF&#8217;s Tech Blog</a>  <a href="http://home.comcast.net/~tom_forsyth/blog.wiki.xml">[RSS]</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dlyr.fr/stuff/2011/05/blogs-i-follow/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bash prompt</title>
		<link>http://www.dlyr.fr/stuff/2011/05/bash-prompt/</link>
		<comments>http://www.dlyr.fr/stuff/2011/05/bash-prompt/#comments</comments>
		<pubDate>Mon, 02 May 2011 08:22:22 +0000</pubDate>
		<dc:creator>dlyr</dc:creator>
				<category><![CDATA[bash]]></category>

		<guid isPermaLink="false">http://dlyr.fr/stuff/?p=29</guid>
		<description><![CDATA[my current simple prompt was PPWD=&#8221;pwd &#124; awk &#8216;{print \&#8221;&#8230;\&#8221; substr(\$0,length()-25,26)}&#8217;&#8221; PS1=&#8221;::[\033[01;34m]\$($PPWD)[\033[00m]\$ &#8221; in .bashrc but I found another more complicated one here which gives nicer results (do not cut a directory name in the middle https://wiki.archlinux.org/index.php/Color_Bash_Prompt ################################################## # Fancy &#8230; <a href="http://www.dlyr.fr/stuff/2011/05/bash-prompt/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>my current simple prompt was</p>
<p>PPWD=&#8221;pwd | awk &#8216;{print \&#8221;&#8230;\&#8221; substr(\$0,length()-25,26)}&#8217;&#8221;<br />
PS1=&#8221;::[\033[01;34m]\$($PPWD)[\033[00m]\$ &#8221;<br />
in .bashrc</p>
<p>but I found another more complicated <img src='http://www.dlyr.fr/stuff/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  one here which gives nicer results (do not cut a directory name in the middle<br />
<a href="https://wiki.archlinux.org/index.php/Color_Bash_Prompt">https://wiki.archlinux.org/index.php/Color_Bash_Prompt</a></p>
<p><code>##################################################<br />
# Fancy PWD display function<br />
##################################################<br />
# The home directory (HOME) is replaced with a ~<br />
# The last pwdmaxlen characters of the PWD are displayed<br />
# Leading partial directory names are striped off<br />
# /home/me/stuff          -> ~/stuff               if USER=me<br />
# /usr/share/big_dir_name -> ../share/big_dir_name if pwdmaxlen=20<br />
##################################################<br />
bash_prompt_command() {<br />
    # How many characters of the $PWD should be kept<br />
    local pwdmaxlen=32<br />
    # Indicate that there has been dir truncation<br />
    local trunc_symbol="..."<br />
    local dir=${PWD##*/}<br />
    pwdmaxlen=$(( ( pwdmaxlen < ${#dir} ) ? ${#dir} : pwdmaxlen ))<br />
    NEW_PWD=${PWD/#$HOME/\~}<br />
    local pwdoffset=$(( ${#NEW_PWD} - pwdmaxlen ))<br />
    if [ ${pwdoffset} -gt "0" ]<br />
    then<br />
        NEW_PWD=${NEW_PWD:$pwdoffset:$pwdmaxlen}<br />
        NEW_PWD=${trunc_symbol}/${NEW_PWD#*/}<br />
    fi<br />
}<br />
bash_prompt() {<br />
    case $TERM in<br />
     xterm*|rxvt*)<br />
         local TITLEBAR='\[\033]0;\u:${NEW_PWD}\007\]'<br />
          ;;<br />
     *)<br />
         local TITLEBAR=""<br />
          ;;<br />
    esac<br />
    local NONE="\[\033[0m\]"    # unsets color to term's fg color</p>
<p>    # regular colors<br />
    local K="\[\033[0;30m\]"    # black<br />
    local R="\[\033[0;31m\]"    # red<br />
    local G="\[\033[0;32m\]"    # green<br />
    local Y="\[\033[0;33m\]"    # yellow<br />
    local B="\[\033[0;34m\]"    # blue<br />
    local M="\[\033[0;35m\]"    # magenta<br />
    local C="\[\033[0;36m\]"    # cyan<br />
    local W="\[\033[0;37m\]"    # white</p>
<p>    # emphasized (bolded) colors<br />
    local EMK="\[\033[1;30m\]"<br />
    local EMR="\[\033[1;31m\]"<br />
    local EMG="\[\033[1;32m\]"<br />
    local EMY="\[\033[1;33m\]"<br />
    local EMB="\[\033[1;34m\]"<br />
    local EMM="\[\033[1;35m\]"<br />
    local EMC="\[\033[1;36m\]"<br />
    local EMW="\[\033[1;37m\]"</p>
<p>    # background colors<br />
    local BGK="\[\033[40m\]"<br />
    local BGR="\[\033[41m\]"<br />
    local BGG="\[\033[42m\]"<br />
    local BGY="\[\033[43m\]"<br />
    local BGB="\[\033[44m\]"<br />
    local BGM="\[\033[45m\]"<br />
    local BGC="\[\033[46m\]"<br />
    local BGW="\[\033[47m\]"</p>
<p>    local UC=$W                 # user's color<br />
    [ $UID -eq "0" ] &#038;&#038; UC=$R   # root's color</p>
<p>    PS1="$TITLEBAR${EMY}::${EMB}\${NEW_PWD}${EMY}]${UC}\\$ ${NONE}"<br />
    # without colors: PS1="[\u@\h \${NEW_PWD}]\\$ "<br />
    # extra backslash in front of \$ to make bash colorize the prompt<br />
}</code></p>
<p>PROMPT_COMMAND=bash_prompt_command<br />
bash_prompt<br />
unset bash_prompt</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dlyr.fr/stuff/2011/05/bash-prompt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>bash wildcard</title>
		<link>http://www.dlyr.fr/stuff/2011/05/bash-wildcard/</link>
		<comments>http://www.dlyr.fr/stuff/2011/05/bash-wildcard/#comments</comments>
		<pubDate>Mon, 02 May 2011 08:21:26 +0000</pubDate>
		<dc:creator>dlyr</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://dlyr.fr/stuff/?p=26</guid>
		<description><![CDATA[note to me : ls *.{h,cpp} more complete ref http://www.tuxfiles.org/linuxhelp/wildcards.html]]></description>
			<content:encoded><![CDATA[<p>note to me : ls *.{h,cpp} more complete ref<a href="http://http://www.tuxfiles.org/linuxhelp/wildcards.html"> http://www.tuxfiles.org/linuxhelp/wildcards.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dlyr.fr/stuff/2011/05/bash-wildcard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cubemaps</title>
		<link>http://www.dlyr.fr/stuff/2011/05/cubemaps/</link>
		<comments>http://www.dlyr.fr/stuff/2011/05/cubemaps/#comments</comments>
		<pubDate>Mon, 02 May 2011 08:20:44 +0000</pubDate>
		<dc:creator>dlyr</dc:creator>
				<category><![CDATA[OpenGL]]></category>

		<guid isPermaLink="false">http://dlyr.fr/stuff/?p=22</guid>
		<description><![CDATA[After finding a bug in our render engine, I figure out that cubemaps texture coordinate generation is quite unusual. Note on cubemap format : texcoord(0,0) is in upper right corner of POSITIVE_X i.e. texCoords3f(1,1,1) maps on pixel(0,0) of image POSITIVE_X, &#8230; <a href="http://www.dlyr.fr/stuff/2011/05/cubemaps/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After finding a bug in our render engine, I figure out that cubemaps texture coordinate generation is quite unusual.<br />
Note on cubemap format : texcoord(0,0) is in upper right corner of POSITIVE_X i.e. texCoords3f(1,1,1) maps on pixel(0,0) of image POSITIVE_X, texCoords(1,1,-1) maps on (1, 0) and (1, -1, -1) maps on (0,1)<br />
Cube map layout is hence :</p>
<p><img class="alignnone" src="http://www.informit.com/content/images/chap9_9780321498823/elementLinks/09fig10.jpg" alt="" width="350" height="263" /></p>
<p>from<br />
Wolfgang Draxinger<br />
:&#8221;Cube maps use a top bottom scanline ordering<br />
instead of the bottom up scanline ordering of the normal<br />
textures. But this also implies, that cube maps internally<br />
use a left handed coordinate system&#8221;</p>
<p>See <a href="http://www.informit.com/articles/article.aspx?p=770639&amp;seqNum=4">http://www.informit.com/articles/article.aspx?p=770639&amp;seqNum=4</a> and <a href="http://www.groupsrv.com/computers/about353964.html">http://www.groupsrv.com/computers/about353964.html</a><br />
<a href="http://developer.nvidia.com/cube-map-ogl-tutorial">http://developer.nvidia.com/cube-map-ogl-tutorial</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dlyr.fr/stuff/2011/05/cubemaps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a pdf preview (for paper page)</title>
		<link>http://www.dlyr.fr/stuff/2011/05/create-a-pdf-preview-for-paper-page/</link>
		<comments>http://www.dlyr.fr/stuff/2011/05/create-a-pdf-preview-for-paper-page/#comments</comments>
		<pubDate>Mon, 02 May 2011 07:29:22 +0000</pubDate>
		<dc:creator>dlyr</dc:creator>
				<category><![CDATA[gfx]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://dlyr.fr/stuff/?p=15</guid>
		<description><![CDATA[Here is how I create a nice png paper preview from pdf, with ImageMagick 6.6.2  In a small shell script file convert -density 300 $1 -geometry 64 output.png for file in `ls output*.png`; do convert $file \( +clone -background none &#8230; <a href="http://www.dlyr.fr/stuff/2011/05/create-a-pdf-preview-for-paper-page/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Here is how I create a nice png paper preview from pdf, with <a href=" http://www.imagemagick.org/script/index.php">ImageMagick</a> 6.6.2  In a small shell script file</p>
<pre>convert -density 300 $1 -geometry 64 output.png
for file in `ls output*.png`; do
convert $file \( +clone -background none -shadow 90x2+2+2 \) \
+swap -background none -layers merge +repage s$file
done
montage soutput-* -background none -tile 8 -geometry +0+0 $2
rm output-*
rm soutput*</pre>
<p>And here is the result :</p>
<p><a href="http://dlyr.fr/stuff/wp-content/uploads/2011/05/Vergne2011.png"></a><a href="http://dlyr.fr/stuff/wp-content/uploads/2011/05/Vergne2011.png"><img class="aligncenter size-full wp-image-18" title="Vergne2011" src="http://dlyr.fr/stuff/wp-content/uploads/2011/05/Vergne2011.png" alt="" width="576" height="198" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dlyr.fr/stuff/2011/05/create-a-pdf-preview-for-paper-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

