<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.4" -->
<rss version="0.92">
<channel>
	<title>Barnoid's Knowledge Base</title>
	<link>http://kb.barnoid.com</link>
	<description>Bits of Collected Wisdom</description>
	<lastBuildDate>Mon, 18 Jan 2010 03:02:26 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>Gentoo: Installing Fonts</title>
		<description>Lots of howtos are out there, here's mine:
Install the fonts somewhere in the /usr/share/fonts/ directory. For Type1 fonts (only .pfb and .pfm files are present, but no .afm files), you need to run the type1afm command first to generate the necessary .afm files (otherwise the fonts won't show up in ...</description>
		<link>http://kb.barnoid.com/?p=29</link>
			</item>
	<item>
		<title>1001 reasons why C/C++ is evil</title>
		<description>Consider the following C++ code:
class A
{
int do(string key, bool b)         { cout  </description>
		<link>http://kb.barnoid.com/?p=27</link>
			</item>
	<item>
		<title>Ebuild for nslookup / dig?</title>
		<description>Can't find the ebuild containing nslookup or digg? Install the bind-tools:
# emerge -avD net-dns/bind-tools
and you're all set:
# nslookup 127.0.0.1

Server:        xxx.yyy.zzz.1
Address:    xxx.yyy.zzz.1#53

1.0.0.127.in-addr.arpa    name = localhost. </description>
		<link>http://kb.barnoid.com/?p=26</link>
			</item>
	<item>
		<title>Thunderbird + Lightning: Layout Messed Up?</title>
		<description>If Thunderbird's Lightning calendar extension messes with your Thunderbird layout and doesn't work as expected, make sure to install libstdc++5 and then re-install Lightning.

# emerge -av libstdc++

[ebuild  N    ] virtual/libstdc++-3.3 </description>
		<link>http://kb.barnoid.com/?p=25</link>
			</item>
	<item>
		<title>VIM: Search for selection</title>
		<description>After yanking a piece of text into the buffer, you can search for it by pressing &#60;ctrl&#62;-&#60;r&#62; " (that is: control-r double quotes) in search mode ("/"). </description>
		<link>http://kb.barnoid.com/?p=24</link>
			</item>
	<item>
		<title>VIM  X11 middle-mouse copy/paste</title>
		<description>That one is easy: just enable the "vim-with-x" USE flag and recompile vim:
# echo "app-editors/vim vim-with-x" >> /etc/portage/packages.use

# emerge -av vim

[ebuild   R   ] app-editors/vim-7.2  USE="acl gpm nls perl python vim-with-x -bash-completion -cscope -minimal -ruby -vim-pager" </description>
		<link>http://kb.barnoid.com/?p=23</link>
			</item>
	<item>
		<title>Generating a Self-Signed, Unencrypted SSL Certificate</title>
		<description>Generate an RSA private key:
# openssl genrsa -des3 -out server.key.encrypted 1024
Create a self-signed certificate (make sure to enter the FQDN for the 'Common Name')
# openssl req -new -x509 -nodes -sha1 -days 365 -key server.key.encrypted -out server.crt
Remove the password from the encrypted key
# openssl rsa -in server.key.encrypted -out server.key
# chmod 400 ...</description>
		<link>http://kb.barnoid.com/?p=22</link>
			</item>
	<item>
		<title>ALSA Sound Problems (e.g. in Firefox when watching Videos)</title>
		<description>Recent sound problems (for example no sound when watching Youtube videos in Firefox or Thunderbird crashes whenever it pops up a calendar alarm) are probably caused by missing plugins. ALSA_PCM_PLUGINS controls which plugins are built; by default, it should build all of them, but apparently a recent update does not ...</description>
		<link>http://kb.barnoid.com/?p=21</link>
			</item>
	<item>
		<title>Concatenate PDF Files</title>
		<description>To concatenate two or more PDF files together into one, try
# gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=concatenated.pdf file1.pdf file2.pdf [file3.pdf [...]]
With the -dBATCH -dNOPAUSE option, ghostscript won't show a prompt and you won't have to press  return after each page. Comes in handy if the PDFs are long. </description>
		<link>http://kb.barnoid.com/?p=20</link>
			</item>
	<item>
		<title>CPUFreq Daemon Fails to Stop</title>
		<description>On my Gentoo notebook, stopping cpufreqd fails:
# /etc/init.d/cpufreqd stop
* Stopping CPU Frequency Daemon ...           [ !! ]
It seems that start-stop-daemon fails to terminate the cpufreqd processes, so let's help it a bit. Simply add the following bold line to the ...</description>
		<link>http://kb.barnoid.com/?p=19</link>
			</item>
</channel>
</rss>
