<?xml version='1.0' encoding='UTF-8'?><rss xmlns:atom='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' version='2.0'><channel><atom:id>tag:blogger.com,1999:blog-13383744</atom:id><lastBuildDate>Fri, 19 Jan 2007 11:12:36 +0000</lastBuildDate><title>knowledgebase of all things</title><description></description><link>http://asdf.no/kbase/index.html</link><managingEditor>Willy</managingEditor><generator>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-13383744.post-2306224191413466790</guid><pubDate>Fri, 19 Jan 2007 11:07:00 +0000</pubDate><atom:updated>2007-01-19T12:12:36.586+01:00</atom:updated><category domain='http://www.blogger.com/atom/ns#'>pdf php convert web programming</category><title>Creating thumbnails from first page of a pdf</title><description>Using imagemagick - convert:&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;convert "document.pdf[0]" -thumbnail 150x150 "firstpageofpdf.png"&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;Since&lt;span style="font-style: italic;"&gt; convert&lt;/span&gt; uses&lt;span style="font-style: italic;"&gt; gs &lt;/span&gt;(ghostscript) to process the pdf, remember that gs also needs to be in the php PATH. And of course, that the apache www-user has the correct folder permissions.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;</description><link>http://asdf.no/kbase/2007/01/creating-thumbnails-from-first-page-of.html</link><author>Willy</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-13383744.post-116557382318409804</guid><pubDate>Fri, 08 Dec 2006 10:27:00 +0000</pubDate><atom:updated>2006-12-08T11:30:23.193+01:00</atom:updated><title>Amavisd Spamassassin status header on all messages</title><description>Remember, the recipient domain has to be in &lt;span style="font-style:italic;"&gt;local_domain_maps&lt;/span&gt; in amavisd.conf for the status header to appear.&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;@local_domains_maps = ( [ ".$mydomain", ".domain.no", "domain.no" ] );</description><link>http://asdf.no/kbase/2006/12/amavisd-spamassassin-status-header-on.html</link><author>Willy</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-13383744.post-116367036325914244</guid><pubDate>Thu, 16 Nov 2006 09:44:00 +0000</pubDate><atom:updated>2006-11-16T10:46:03.850+01:00</atom:updated><title>MySQL backup</title><description>mysqldump --all-databases --quick --single-transaction -u backup -p| gzip &gt; mybackup.sql.gz&lt;br /&gt;&lt;br /&gt;Change &lt;span style="font-weight:bold;"&gt;backup&lt;/span&gt; with user of your choice and type password at prompt. Or create a localhost-only backup user with read-all privileges.</description><link>http://asdf.no/kbase/2006/11/mysql-backup.html</link><author>Willy</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-13383744.post-115891273237149228</guid><pubDate>Fri, 22 Sep 2006 08:06:00 +0000</pubDate><atom:updated>2006-09-22T10:12:12.383+02:00</atom:updated><title>amavisd-release</title><description>To release a file from quarantine, use the amavisd-release program. I could not find this on my ubuntu machine where I installed amavisd-new with apt-get. So I copied the amavisd-release program from the original amavis package and put it in /usr/sbin/&lt;br /&gt;&lt;br /&gt;Then I added to the 50-user file: (The newest ubuntu uses a conf.d/ for the amavisd-new settings files. Most others distros use amavisd.conf&lt;br /&gt;&lt;br /&gt;$interface_policy{'SOCK'} = 'AM.PDP';&lt;br /&gt;$policy_bank{'AM.PDP'} = {protocol=&gt;'AM.PDP'};&lt;br /&gt;$unix_socketname='/var/amavis/amavisd.sock';&lt;br /&gt;&lt;br /&gt;I restarted amavis, and typed the following:&lt;br /&gt;&lt;br /&gt;amavisd-release mail_id secret_id&lt;br /&gt;&lt;br /&gt;and it WORKED!&lt;br /&gt;&lt;br /&gt;I use mysql for quarantine storage, but this should work with regular file quarantine too.&lt;br /&gt;&lt;br /&gt;Amazing.</description><link>http://asdf.no/kbase/2006/09/amavisd-release.html</link><author>Willy</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-13383744.post-115874551877370562</guid><pubDate>Wed, 20 Sep 2006 09:44:00 +0000</pubDate><atom:updated>2006-09-20T11:45:18.773+02:00</atom:updated><title>Remove password from ssl server key</title><description># openssl rsa -in server.key.pass -out server.key&lt;br /&gt;Enter pass phrase for server.key.pass:&lt;br /&gt;writing RSA key</description><link>http://asdf.no/kbase/2006/09/remove-password-from-ssl-server-key.html</link><author>Willy</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-13383744.post-114310704598637086</guid><pubDate>Thu, 23 Mar 2006 09:42:00 +0000</pubDate><atom:updated>2006-09-20T11:44:19.546+02:00</atom:updated><title>Delete all files older than 7 days</title><description>This works in the Terminal app on Mac OS X Tiger 10.4.4:&lt;br /&gt;&lt;br /&gt;find /path -mtime +7 -exec rm -rf {} ';'</description><link>http://asdf.no/kbase/2006/03/delete-all-files-older-than-7-days.html</link><author>Willy</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-13383744.post-114845349548614218</guid><pubDate>Wed, 24 May 2006 06:50:00 +0000</pubDate><atom:updated>2006-05-24T08:51:35.500+02:00</atom:updated><title>Stuffit download page</title><description>For easy access, so you don't need to fill in email address.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://simsub.digitalriver.com/cgi-bin/stuffit-download"&gt;http://simsub.digitalriver.com/cgi-bin/stuffit-download&lt;/a&gt;</description><link>http://asdf.no/kbase/2006/05/stuffit-download-page.html</link><author>Willy</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-13383744.post-113896050196726642</guid><pubDate>Fri, 03 Feb 2006 08:39:00 +0000</pubDate><atom:updated>2006-02-03T10:55:02.526+01:00</atom:updated><title>ecto!</title><description>I've finally tried a blogger app for Mac. My choice fell on ecto, which seems to be so superior to the alternatives that it's worth to pay for. I haven't yet, have to check it out first, of course, but it looks highly promising. http://ecto.kung-foo.tv/</description><link>http://asdf.no/kbase/2006/02/ecto.html</link><author>Willy</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-13383744.post-111935216001184504</guid><pubDate>Tue, 21 Jun 2005 11:08:00 +0000</pubDate><atom:updated>2005-10-17T19:00:45.040+02:00</atom:updated><title>Computer: Linux: Tool: Filesplit</title><description>Excellent tool for splitting large files.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.drydeadfish.co.uk/junk/filesplit/index.php"&gt;Filesplit&lt;/a&gt;</description><link>http://asdf.no/kbase/2005/06/computer-linux-tool-filesplit.html</link><author>Willy</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-13383744.post-112134541608150201</guid><pubDate>Thu, 14 Jul 2005 12:48:00 +0000</pubDate><atom:updated>2005-07-14T14:50:16.093+02:00</atom:updated><title>Computer:hardware:RAID</title><description>Here's a link to a good description with examples of the different RAID levels.&lt;br /&gt;&lt;a href="http://www.lacie.com/download/manuals/biggestf800_en.pdf"&gt;LaCie F800 Biggest disk&lt;/a&gt;</description><link>http://asdf.no/kbase/2005/07/computerhardwareraid.html</link><author>Willy</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-13383744.post-111953693545088029</guid><pubDate>Thu, 23 Jun 2005 14:24:00 +0000</pubDate><atom:updated>2005-06-23T16:28:55.453+02:00</atom:updated><title>Computer: Convenient link</title><description>If you do have to install the Real Player, here's a direct link that bypasses all the registration and hard-to-find download links:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.real.com/freeplayer/?rppr=downloadcom1"&gt;http://www.real.com/freeplayer/?rppr=downloadcom1&lt;/a&gt;</description><link>http://asdf.no/kbase/2005/06/computer-convenient-link.html</link><author>Willy</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-13383744.post-111865642335785533</guid><pubDate>Mon, 13 Jun 2005 09:51:00 +0000</pubDate><atom:updated>2005-06-21T13:07:47.956+02:00</atom:updated><title>Computer: Mac: OS X: Compile</title><description>Found this to install &lt;a href="http://www.remotesensing.org/libtiff/"&gt;libtiff&lt;/a&gt; on OS X. It's written for OS X Tiger 10.4.1 but also worked on 10.3.8.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.eogeo.org/Members/adoyle/ad-snippets/ad-libtiff"&gt;Install libtiff on OS X&lt;/a&gt;</description><link>http://asdf.no/kbase/2005/06/computer-mac-os-x-compile.html</link><author>Willy</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-13383744.post-111902031749519937</guid><pubDate>Fri, 17 Jun 2005 14:45:00 +0000</pubDate><atom:updated>2005-06-17T16:58:37.496+02:00</atom:updated><title>email to php script</title><description>Want incoming mail to be sent to a php script for further parsing? Here's how, with postfix. This script shows you how to write the email to file, save to mySQL db, and also an auto-reply email.&lt;br /&gt;&lt;br /&gt;1. Create an alias in /etc/postfix/aliases:&lt;br /&gt;   &lt;span style="font-weight:bold;"&gt;php: |/www/script.php&lt;/span&gt;&lt;br /&gt;   &lt;br /&gt;   OR use a .forward file:&lt;br /&gt;   &lt;span style="font-weight:bold;"&gt;|/www/script.php&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2. Create the file /www/script.php and make it executable with e.g. chmod 755&lt;br /&gt;&lt;br /&gt;3. My &lt;a href="http://asdf.no/kbase/script.php.txt"&gt;source&lt;/a&gt; code for script.php&lt;br /&gt;   &lt;br /&gt;4. Try to send an email to the newly created user, in this case php.</description><link>http://asdf.no/kbase/2005/06/email-to-php-script.html</link><author>Willy</author></item><item><guid isPermaLink='false'>tag:blogger.com,1999:blog-13383744.post-111778786892712582</guid><pubDate>Fri, 03 Jun 2005 08:36:00 +0000</pubDate><atom:updated>2005-06-03T10:37:48.930+02:00</atom:updated><title>Welcome!</title><description>This is a place where I post tidbits of stuff that I've learned and researched, so I don't forget. There will be mostly compute-related stuff, but also other hints that pertains to activities outside the computer realm.</description><link>http://asdf.no/kbase/2005/06/welcome.html</link><author>Willy</author></item></channel></rss>
