<?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>Physics Hacker</title>
	<atom:link href="http://phacker.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://phacker.org</link>
	<description>Hacking Physics using Python, C++ and wrestling the Grid</description>
	<lastBuildDate>Thu, 14 Apr 2011 20:11:25 +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>VPN Problems with Mac OS X</title>
		<link>http://phacker.org/2011/04/14/vpn-problems-with-mac-os-x/</link>
		<comments>http://phacker.org/2011/04/14/vpn-problems-with-mac-os-x/#comments</comments>
		<pubDate>Thu, 14 Apr 2011 20:11:25 +0000</pubDate>
		<dc:creator>Florian Feldhaus</dc:creator>
				<category><![CDATA[random rants]]></category>

		<guid isPermaLink="false">http://phacker.org/?p=429</guid>
		<description><![CDATA[From time to time the VPN client integrated in Mac OS X keeps on failing to connect to our university VPN server. I searched for a long time and today I found the solution to restart the service without restarting my Mac (origin of the solution is here): Open a Terminal and search for the [...]]]></description>
			<content:encoded><![CDATA[<p>From time to time the VPN client integrated in Mac OS X keeps on failing to connect to our university VPN server. I searched for a long time and today I found the solution to restart the service without restarting my Mac (<a href="http://superuser.com/questions/194961/os-x-10-6-4-system-vpn-failing-to-connect-ike-packet-transmit-failed" target="_blank">origin of the solution is here</a>):</p>
<ol>
<li>Open a Terminal and search for the racoon process
<pre>Florian-Feldhauss-MacBook-Pro:~ ffeldhaus$ ps aux | grep racoon
root     10495   0,0  0,0  2447088    672   ??  Ss   So11am    0:02.27 /usr/sbin/racoon</pre>
</li>
<li>Now kill the racoon process
<pre>Florian-Feldhauss-MacBook-Pro:~ ffeldhaus$ sudo kill 10495</pre>
</li>
<li>At last, restart racoon
<pre>Florian-Feldhauss-MacBook-Pro:~ ffeldhaus$ sudo /usr/sbin/racoon</pre>
</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://phacker.org/2011/04/14/vpn-problems-with-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Retrieve (personal) certificates from Firefox profile</title>
		<link>http://phacker.org/2010/10/12/retrieve-personal-certificates-from-firefox-profile/</link>
		<comments>http://phacker.org/2010/10/12/retrieve-personal-certificates-from-firefox-profile/#comments</comments>
		<pubDate>Tue, 12 Oct 2010 08:45:19 +0000</pubDate>
		<dc:creator>Florian Feldhaus</dc:creator>
				<category><![CDATA[admin]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[certificates]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://phacker.org/?p=418</guid>
		<description><![CDATA[Recently my harddisk crashed and I used this opportunity to reinstall my system. Everything went fine, but getting my user certificates back turned out to be a bit tricky. For Grid Computing and administrating a Grid Site I need my certificates to be stored in the browser. As I recently renewed them, I haven&#8217;t done [...]]]></description>
			<content:encoded><![CDATA[<p>Recently my harddisk crashed and I used this opportunity to reinstall my system. Everything went fine, but getting my user certificates back turned out to be a bit tricky. For Grid Computing and administrating a Grid Site I need my certificates to be stored in the browser. As I recently renewed them, I haven&#8217;t done a backup of them (shame on me) so I couldn&#8217;t just reimport them in my newly installed Firefox 4 (beta). Here is what I did to get the certificates back from my old Firefox profile:</p>
<ol>
<li>Find out where your profile folder is located. <a href="http://kb.mozillazine.org/Profile_folder_-_Firefox">This Mozillazine Page might help.</a></li>
<li>Quit Firefox if it is still running</li>
<li>Go to the profile folder of your new Firefox installation and backup the files cert8.db and key3.db</li>
<li>Copy key3.db from your old profile folder to your new one if you want to restore your private/user certificates</li>
<li>Copy cert8.db from your old profile folder to your new one if you want to restore all other certificates you had installed in Firefox (e.g. root certificates and host certificates)</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://phacker.org/2010/10/12/retrieve-personal-certificates-from-firefox-profile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find out number of cores / CPUs for a linux system</title>
		<link>http://phacker.org/2010/09/07/find-out-number-of-cores-cpus-for-a-linux-system/</link>
		<comments>http://phacker.org/2010/09/07/find-out-number-of-cores-cpus-for-a-linux-system/#comments</comments>
		<pubDate>Tue, 07 Sep 2010 21:42:34 +0000</pubDate>
		<dc:creator>Florian Feldhaus</dc:creator>
				<category><![CDATA[admin]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[proc]]></category>

		<guid isPermaLink="false">http://phacker.org/?p=411</guid>
		<description><![CDATA[If you need to find out the number of CPUs or CPU cores or cores per CPU of your system, you could look it up in /proc/cpuinfo but it&#8217;s quite hard to figure out the right parameters. A good overview on the parameters for different system configurations can be found here. If you want to [...]]]></description>
			<content:encoded><![CDATA[<p>If you need to find out the number of CPUs or CPU cores or cores per CPU of your system, you could look it up in /proc/cpuinfo but it&#8217;s quite hard to figure out the right parameters. <a href="http://www.richweb.com/cpu_info" target="_blank">A good overview on the parameters for different system configurations can be found here.</a> If you want to put the actual numbers in variables, here is a nice way to do it:</p>
<pre>export CORES_PER_CPU=`grep -c "physical id.*: 0" /proc/cpuinfo`
export CPU_TOTAL=`grep -c "core id.*: 0" /proc/cpuinfo`
export CORE_TOTAL=`grep -c processor /proc/cpuinfo`</pre>
<p>/proc/cpuinfo shows an entry for each CPU core. The <em>physical id</em> is incremented for each physical CPU. If the entry has the same <em>physical id</em> as another core, the core belongs to the same CPU. Therefore counting the number of entries with physical id set to 0 results in the number of cores per CPU. The <em>core id</em> is incremented for each core on a physical CPU. Therefore counting the number of entries with <em>core id</em> set to 0 results in the number of physical CPUs. The total number of cores can be retrieved quite easily by counting the number of <em>processor</em> entries.</p>
<p>Unfortunately the above method does not work on all systems. I noticed on some systems with single core processors, that the values <em>core id</em> and <em>physical</em> id are not present.</p>
<p>I searched for official documentation on the proc filesystem, but only found the following document which doesn&#8217;t describe the cpuinfo values:</p>
<ul>
<li><a href="http://www.kernel.org/doc/Documentation/filesystems/proc.txt" target="_blank">http://www.kernel.org/doc/Documentation/filesystems/proc.txt</a></li>
</ul>
<p>If someone happens to know a better documentation I would be glad if he/she would share it with me!</p>
]]></content:encoded>
			<wfw:commentRss>http://phacker.org/2010/09/07/find-out-number-of-cores-cpus-for-a-linux-system/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Apple moved &#8220;Create MP3 Version&#8221; to Advanced in iTunes 9.1 (Edited 11:30pm)</title>
		<link>http://phacker.org/2010/04/03/apple-removed-convert-to-mp3-in-itunes-9-1/</link>
		<comments>http://phacker.org/2010/04/03/apple-removed-convert-to-mp3-in-itunes-9-1/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 10:35:17 +0000</pubDate>
		<dc:creator>snies</dc:creator>
				<category><![CDATA[random rants]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[apple sucks]]></category>
		<category><![CDATA[convert]]></category>
		<category><![CDATA[gone]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://phacker.org/?p=399</guid>
		<description><![CDATA[EDIT: As reader Wes points out, it is still possible, but hidden under &#8220;Advanced&#8221; So i apologize for being too harsh and too fast with my critic of Apple. wrong statement but left for documentation: Apple starts to seriously suck. When You update iTunes to 9.1 you will loose the ability to convert your purchased [...]]]></description>
			<content:encoded><![CDATA[<p><strong>EDIT: As reader Wes points out, it is still possible, but hidden under &#8220;Advanced&#8221;</strong><br />
So i apologize for being too harsh and too fast with my critic of Apple.</p>
<p><strong>wrong statement but left for documentation:</strong><br />
Apple starts to seriously suck. When You update iTunes to 9.1 you will loose the ability to convert your purchased songs (aka the ones you paid for) into mp3s. Just one more of Apples secret feature removes (like search for iMixes).<br />
For everybody pissed like i am i suggest: </p>
<p>Using <a href="http://www.tune4mac.com/">Tune4Mac</a> &#8211; Burn any iTunes audio content to virtual cd and rip it as mp3.</p>
<p>Downloading Music from <a href="http://www.amazon.com/MP3-Music-Download/b?ie=UTF8&amp;node=163856011"> Amazon </a>, where you get mp3s.</a></p>
<p>Start using <a href="http://www.getsongbird.com/">Songbird</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://phacker.org/2010/04/03/apple-removed-convert-to-mp3-in-itunes-9-1/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Fix wireless at Edwards Dortmund</title>
		<link>http://phacker.org/2010/03/30/howto-configure-wireless-at-edwards-dortmund-2/</link>
		<comments>http://phacker.org/2010/03/30/howto-configure-wireless-at-edwards-dortmund-2/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 18:04:12 +0000</pubDate>
		<dc:creator>snies</dc:creator>
				<category><![CDATA[random rants]]></category>
		<category><![CDATA[coffee]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[dortmund]]></category>
		<category><![CDATA[edwards]]></category>
		<category><![CDATA[german]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[router]]></category>

		<guid isPermaLink="false">http://phacker.org/?p=394</guid>
		<description><![CDATA[The Edwards coffeehouse in Dortmund is a nice place to work with some friends, while having a beer or a coffee due to it&#8217;s huge tables, free wireless and central location. Unfortunately their wireless network router is quite old and apparently gets confused by something in the OSX network stack (probably some bonjour packets). Whatever [...]]]></description>
			<content:encoded><![CDATA[<p>The Edwards coffeehouse in Dortmund is a nice place to work with some friends, while having a beer or a coffee due to it&#8217;s huge tables, free wireless and central location.</p>
<p>Unfortunately their wireless network router is quite old and apparently gets confused by something in the OSX network stack (probably some bonjour packets). Whatever the reason is, the net effect is that you can connect to the network &#8220;edwardsnet&#8221; but you don&#8217;t get an IP address from it&#8217;s router. So the only way to solve this is to assign yourself a valid ip and configure the gateway and DNS by hand. </p>
<pre>
IPv6 Adress: 192.168.2.XXX  (best guess XXX in the range from 50 to 100)
Subnet Mask: 255.255.0.0
Router:      192.168.2.1
DNS:         8.8.8.8        (one of Googles public DNS servers)
</pre>
<p><strong>Please note</strong> that you kind of have to guess a <strong>free</strong> ip. So please try to be polite and change your address if strange network behaviour occurs. Maybe best thing is to guess an ip use that one to scan the network using some pings and than use one of the ips that seem to be free.</p>
]]></content:encoded>
			<wfw:commentRss>http://phacker.org/2010/03/30/howto-configure-wireless-at-edwards-dortmund-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LHC first physics webcast</title>
		<link>http://phacker.org/2010/03/26/lhc-first-physics-webcast/</link>
		<comments>http://phacker.org/2010/03/26/lhc-first-physics-webcast/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 13:34:56 +0000</pubDate>
		<dc:creator>Florian Feldhaus</dc:creator>
				<category><![CDATA[cern]]></category>
		<category><![CDATA[lhc]]></category>
		<category><![CDATA[webcast]]></category>

		<guid isPermaLink="false">http://phacker.org/?p=374</guid>
		<description><![CDATA[After the successfull restart of the LHC, the first collisions with two 3.5 TeV beams colliding at 7 TeV will take place on march 30th. From 8:30 till 18:00 (UTC+01) there will be a live webcast at http://webcast.cern.ch/lhcfirstphysics/ The first collisions will probably take place between 9:00 and 11:00. The tentative schedule can be found [...]]]></description>
			<content:encoded><![CDATA[<p>After the successfull restart of the LHC, the first collisions with two 3.5 TeV beams colliding at 7 TeV will take place on march 30th. From 8:30 till 18:00 (UTC+01) there will be a live webcast at</p>
<p><a href="http://webcast.cern.ch/lhcfirstphysics/">http://webcast.cern.ch/lhcfirstphysics/</a></p>
<p>The first collisions will probably take place between 9:00 and 11:00. <a href="http://press.web.cern.ch/press/lhc-first-physics/webcast/" target="_blank">The tentative schedule can be found here.</a></p>
<p>Update: An interesting page to watch the beam is the <a href="http://op-webtools.web.cern.ch/op-webtools/vistar/vistars.php?usr=LHC1">LHC Operations beam status page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://phacker.org/2010/03/26/lhc-first-physics-webcast/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automate pdf preview when using vi to edit latex on OSX.</title>
		<link>http://phacker.org/2010/03/26/automate-pdf-preview-when-using-vi-to-edit-latex-on-osx/</link>
		<comments>http://phacker.org/2010/03/26/automate-pdf-preview-when-using-vi-to-edit-latex-on-osx/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 13:26:23 +0000</pubDate>
		<dc:creator>snies</dc:creator>
				<category><![CDATA[random rants]]></category>
		<category><![CDATA[LaTex]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[pdf]]></category>
		<category><![CDATA[preview]]></category>
		<category><![CDATA[tex]]></category>
		<category><![CDATA[vi]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://phacker.org/?p=363</guid>
		<description><![CDATA[You can add the following to your .vimrc in order to have vi automaticly update and show the pdf version of the LaTex .tex file you are currently editing. The CursorHold part triggers updating after a set amount of inactivity, while the BufWritePost part triggers an update before each save (when you type :w ). [...]]]></description>
			<content:encoded><![CDATA[<p>You can add the following to your .vimrc in order to have vi automaticly update and show the pdf version of the LaTex .tex file you are currently editing. The CursorHold part triggers updating after a set amount of inactivity, while the BufWritePost part triggers an update before each save (when you type :w ). This is based on a post doing the same for <a href="http://ubuntuforums.org/showthread.php?t=615157">ubunu</a>.  </p>
<p><strong>Note (deprecated now due to the edit below):</strong> the &#8221; !open -a Terminal&#8221; is just a work-around since i didn&#8217;t find a way to make Preview.app update in the background (aka not steal the focus).</p>
<p><strong>EDIT 2010-03-29:</strong> Since Guillermo pointed out how to do the update properly i changed my .vimrc entry. But i left the old line in as a comment.</p>
<pre>
""""""""""""""""""""""""""""""""""""""""""""""""""
" for LaTeX files
""""""""""""""""""""""""""""""""""""""""""""""""""
au BufEnter *.tex set autowrite "save before making PDF"
au BufEnter *.tex set updatetime=500 "wait ms"
au BufEnter *.tex set makeprg=pdflatex\ -halt-on-error\ %\ &gt;&amp;\ /dev/null

"make the file after specified time of not moving and after every save"
au CursorHold *.tex call UpdateFile()
au BufWritePost *.tex call UpdateFile()

function! UpdateFile()
  silent make
    !open -g %&lt;.pdf  &quot;update view in preview&quot;
    &quot; following comment line was needed before i learned about the -g option &quot;
    &quot; !open -a Terminal   switch back to vi assuming you run it in Termial&quot;
    redraw! &quot;remove artifacts during save&quot;
    endfunction

au BufRead *.tex silent !open -g -a preview %&lt;.pdf
</pre>
]]></content:encoded>
			<wfw:commentRss>http://phacker.org/2010/03/26/automate-pdf-preview-when-using-vi-to-edit-latex-on-osx/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Debugging an SSL connection</title>
		<link>http://phacker.org/2010/03/22/debugging-the-ssl-handshake/</link>
		<comments>http://phacker.org/2010/03/22/debugging-the-ssl-handshake/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 11:22:09 +0000</pubDate>
		<dc:creator>Florian Feldhaus</dc:creator>
				<category><![CDATA[admin]]></category>
		<category><![CDATA[random rants]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://phacker.org/?p=359</guid>
		<description><![CDATA[Debugging the SSL handshake can be lots of pain, especially if the SSL commands are done by components not under your control. Fortunately there is a tool called ssldump which lets you monitor the complete SSL handshake. The following command prints out detailed information about the SSL handshake (on interface eth0): ssldump -a -A -H [...]]]></description>
			<content:encoded><![CDATA[<p>Debugging the SSL handshake can be lots of pain, especially if the SSL commands are done by components not under your control. Fortunately there is a tool called <a href="http://www.rtfm.com/ssldump/" target="_blank">ssldump</a> which lets you monitor the complete SSL handshake. The following command prints out detailed information about the SSL handshake (on interface eth0):</p>
<pre>ssldump -a -A -H -i eth0
</pre>
<p>If you want to sneak at the encrypted traffic you need to tell ssldump where to find the hostkey (e.g. hostkey.pem or similar) of the machine</p>
<pre>ssldump -N -d -k $PATH_TO_HOSTKEY/hostkey.pem -A -H -i eth0
</pre>
<p>Replace $PATH_TO_HOSTKEY and hostkey.pem accordingly.</p>
<p><a href="http://prefetch.net/articles/debuggingssl.html" target="_blank">More information can be found here</a> or in the manpage of ssldump.</p>
]]></content:encoded>
			<wfw:commentRss>http://phacker.org/2010/03/22/debugging-the-ssl-handshake/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building GTK on OSX and Problems with libiconv</title>
		<link>http://phacker.org/2010/03/21/building-gtk-on-osx-and-problems-with-libiconv/</link>
		<comments>http://phacker.org/2010/03/21/building-gtk-on-osx-and-problems-with-libiconv/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 19:14:40 +0000</pubDate>
		<dc:creator>Jesko Merkel</dc:creator>
				<category><![CDATA[random rants]]></category>
		<category><![CDATA[build]]></category>
		<category><![CDATA[GTK]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[software]]></category>

		<guid isPermaLink="false">http://phacker.org/?p=351</guid>
		<description><![CDATA[Ok, this i maybe a bit special, but maybe it helps someone out there. I am on the way to build GTK+ on OSX using &#8220;jhbuild&#8221;, following a good instruction: http://live.gnome.org/GTK%2B/OSX/BuildInstructions Coming to the point where to build glib, the process exits with following error message: gconvert.c:55:2: error: #error GNU libiconv not in use but [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, this i maybe a bit special, but maybe it helps someone out there. I am on the way to build GTK+ on OSX using &#8220;jhbuild&#8221;, following a good instruction:</p>
<p><a title="http://live.gnome.org/GTK%2B/OSX/BuildInstructions" href="http://live.gnome.org/GTK%2B/OSX/BuildInstructions">http://live.gnome.org/GTK%2B/OSX/BuildInstructions</a></p>
<p>Coming to the point where to build glib, the process exits with  following error message:</p>
<pre>gconvert.c:55:2: error: #error GNU libiconv not in use but included iconv.h is from libiconv</pre>
<p>First the library is on the system; we can find it easily with</p>
<pre>$ locate libiconv</pre>
<p>Trying to link the system library to the one found provided by xcode failed into strange error messages. So i decided to re-build the libiconv by hand as &#8220;root&#8221; from source:</p>
<pre>$ cd /usr/local/src/</pre>
<p>Getting from <a href="http://www.gnu.org/software/libiconv/">http://www.gnu.org/software/libiconv/</a> the latest version (currently 1.13.1) with</p>
<pre>$ wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.13.1.tar.gz</pre>
<pre>$ tar zxvf libiconv-1.13.1.tar.gz</pre>
<p>Now the configuring, make and install phase:</p>
<pre>$ ./configure</pre>
<pre>$ make</pre>
<pre>$ make install</pre>
<p>This builds the latest version of libiconv for me. Final step was to replace the current version in</p>
<pre>/usr/lib</pre>
<p>and to go on with the GTK+ process.</p>
]]></content:encoded>
			<wfw:commentRss>http://phacker.org/2010/03/21/building-gtk-on-osx-and-problems-with-libiconv/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>How to use gdb inside LHCb environment</title>
		<link>http://phacker.org/2010/03/16/how-to-use-gdb-inside-lhcb-environment/</link>
		<comments>http://phacker.org/2010/03/16/how-to-use-gdb-inside-lhcb-environment/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 15:40:38 +0000</pubDate>
		<dc:creator>snies</dc:creator>
				<category><![CDATA[C++]]></category>
		<category><![CDATA[cern]]></category>
		<category><![CDATA[lhcb]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[random rants]]></category>
		<category><![CDATA[csh]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[env]]></category>
		<category><![CDATA[environment]]></category>
		<category><![CDATA[gdb]]></category>
		<category><![CDATA[LD_LIBRARY_PATH]]></category>
		<category><![CDATA[PATH]]></category>
		<category><![CDATA[tcsh]]></category>

		<guid isPermaLink="false">http://phacker.org/?p=337</guid>
		<description><![CDATA[If you run a python script that imports GaudiPython (or any LHCb modules for that matter) inside gdb on any lxplus node, you will run into an error like this: [lxplus223] ~ &#62; gdb python GNU gdb Red Hat Linux (6.3.0.0-1.162.el4rh) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU [...]]]></description>
			<content:encoded><![CDATA[<p>If  you run a python script that imports GaudiPython (or any LHCb modules for that matter) inside gdb on any lxplus node, you will run into an error like this:</p>
<pre>

[lxplus223] ~ &gt; gdb python
GNU gdb Red Hat Linux (6.3.0.0-1.162.el4rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu"
   ...Using host libthread_db library "/lib64/tls/libthread_db.so.1".

(gdb) set args test.py
(gdb) run
Starting program:
   /afs/cern.ch/sw/lcg/external/Python/2.5.4p2/slc4_amd64_gcc34/bin/python test.py
[Thread debugging using libthread_db enabled]
[New Thread 182894205120 (LWP 11117)]
Traceback (most recent call last):
  File "test.py", line 1, in
    import GaudiPython
ImportError: No module named GaudiPython

Program exited with code 01.
(gdb)
</pre>
<p>This is due to our group-login script (including the &#8220;rc&#8221; one)<br />
using LbLogin and that reshuffles the paths. When gdb starts<br />
the process to be debugged and if a SHELL variable is present,<br />
it is started with &#8220;$SHELL -c&#8221;.<br />
When it is perfectly legal for bash (it only starts a new shell),<br />
with (t)csh it starts a new *login* shell corrupting the already<br />
setup paths (PATH, LD_LIBRARY_PATH, PYTHONPATH etc).</p>
<p>So in order to solve this you have to unset SHELL inside<br />
gdb (maybe best to place that in .gdbinit):</p>
<pre>
unset environment SHELL
</pre>
]]></content:encoded>
			<wfw:commentRss>http://phacker.org/2010/03/16/how-to-use-gdb-inside-lhcb-environment/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

