<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-13383744</id><updated>2007-01-19T12:12:36.529+01:00</updated><title type='text'>knowledgebase of all things</title><link rel='alternate' type='text/html' href='http://asdf.no/kbase/index.html'></link><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default'></link><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://asdf.no/kbase/atom.xml'></link><author><name>Willy</name></author><generator version='7.00' uri='http://www2.blogger.com'>Blogger</generator><openSearch:totalResults>14</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><entry><id>tag:blogger.com,1999:blog-13383744.post-2306224191413466790</id><published>2007-01-19T12:07:00.000+01:00</published><updated>2007-01-19T12:12:36.586+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='pdf php convert web programming'></category><title type='text'>Creating thumbnails from first page of a pdf</title><content type='html'>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;</content><link rel='alternate' type='text/html' href='http://asdf.no/kbase/2007/01/creating-thumbnails-from-first-page-of.html'></link><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/2306224191413466790'></link><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/2306224191413466790'></link><author><name>Willy</name></author></entry><entry><id>tag:blogger.com,1999:blog-13383744.post-116557382318409804</id><published>2006-12-08T11:27:00.000+01:00</published><updated>2006-12-08T11:30:23.193+01:00</updated><title type='text'>Amavisd Spamassassin status header on all messages</title><content type='html'>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" ] );</content><link rel='alternate' type='text/html' href='http://asdf.no/kbase/2006/12/amavisd-spamassassin-status-header-on.html'></link><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/116557382318409804'></link><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/116557382318409804'></link><author><name>Willy</name></author></entry><entry><id>tag:blogger.com,1999:blog-13383744.post-116367036325914244</id><published>2006-11-16T10:44:00.000+01:00</published><updated>2006-11-16T10:46:03.850+01:00</updated><title type='text'>MySQL backup</title><content type='html'>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.</content><link rel='alternate' type='text/html' href='http://asdf.no/kbase/2006/11/mysql-backup.html'></link><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/116367036325914244'></link><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/116367036325914244'></link><author><name>Willy</name></author></entry><entry><id>tag:blogger.com,1999:blog-13383744.post-115891273237149228</id><published>2006-09-22T10:06:00.000+02:00</published><updated>2006-09-22T10:12:12.383+02:00</updated><title type='text'>amavisd-release</title><content type='html'>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.</content><link rel='alternate' type='text/html' href='http://asdf.no/kbase/2006/09/amavisd-release.html'></link><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/115891273237149228'></link><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/115891273237149228'></link><author><name>Willy</name></author></entry><entry><id>tag:blogger.com,1999:blog-13383744.post-115874551877370562</id><published>2006-09-20T11:44:00.000+02:00</published><updated>2006-09-20T11:45:18.773+02:00</updated><title type='text'>Remove password from ssl server key</title><content type='html'># 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</content><link rel='alternate' type='text/html' href='http://asdf.no/kbase/2006/09/remove-password-from-ssl-server-key.html'></link><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/115874551877370562'></link><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/115874551877370562'></link><author><name>Willy</name></author></entry><entry><id>tag:blogger.com,1999:blog-13383744.post-114310704598637086</id><published>2006-03-23T10:42:00.000+01:00</published><updated>2006-09-20T11:44:19.546+02:00</updated><title type='text'>Delete all files older than 7 days</title><content type='html'>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 {} ';'</content><link rel='alternate' type='text/html' href='http://asdf.no/kbase/2006/03/delete-all-files-older-than-7-days.html'></link><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/114310704598637086'></link><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/114310704598637086'></link><author><name>Willy</name></author></entry><entry><id>tag:blogger.com,1999:blog-13383744.post-114845349548614218</id><published>2006-05-24T08:50:00.000+02:00</published><updated>2006-05-24T08:51:35.500+02:00</updated><title type='text'>Stuffit download page</title><content type='html'>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;</content><link rel='alternate' type='text/html' href='http://asdf.no/kbase/2006/05/stuffit-download-page.html'></link><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/114845349548614218'></link><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/114845349548614218'></link><author><name>Willy</name></author></entry><entry><id>tag:blogger.com,1999:blog-13383744.post-113896050196726642</id><published>2006-02-03T09:39:00.000+01:00</published><updated>2006-02-03T10:55:02.526+01:00</updated><title type='text'>ecto!</title><content type='html'>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/</content><link rel='alternate' type='text/html' href='http://asdf.no/kbase/2006/02/ecto.html'></link><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/113896050196726642'></link><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/113896050196726642'></link><author><name>Willy</name></author></entry><entry><id>tag:blogger.com,1999:blog-13383744.post-111935216001184504</id><published>2005-06-21T13:08:00.000+02:00</published><updated>2005-10-17T19:00:45.040+02:00</updated><title type='text'>Computer: Linux: Tool: Filesplit</title><content type='html'>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;</content><link rel='alternate' type='text/html' href='http://asdf.no/kbase/2005/06/computer-linux-tool-filesplit.html'></link><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/111935216001184504'></link><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/111935216001184504'></link><author><name>Willy</name></author></entry><entry><id>tag:blogger.com,1999:blog-13383744.post-112134541608150201</id><published>2005-07-14T14:48:00.000+02:00</published><updated>2005-07-14T14:50:16.093+02:00</updated><title type='text'>Computer:hardware:RAID</title><content type='html'>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;</content><link rel='alternate' type='text/html' href='http://asdf.no/kbase/2005/07/computerhardwareraid.html'></link><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/112134541608150201'></link><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/112134541608150201'></link><author><name>Willy</name></author></entry><entry><id>tag:blogger.com,1999:blog-13383744.post-111953693545088029</id><published>2005-06-23T16:24:00.000+02:00</published><updated>2005-06-23T16:28:55.453+02:00</updated><title type='text'>Computer: Convenient link</title><content type='html'>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;</content><link rel='alternate' type='text/html' href='http://asdf.no/kbase/2005/06/computer-convenient-link.html'></link><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/111953693545088029'></link><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/111953693545088029'></link><author><name>Willy</name></author></entry><entry><id>tag:blogger.com,1999:blog-13383744.post-111865642335785533</id><published>2005-06-13T11:51:00.000+02:00</published><updated>2005-06-21T13:07:47.956+02:00</updated><title type='text'>Computer: Mac: OS X: Compile</title><content type='html'>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;</content><link rel='alternate' type='text/html' href='http://asdf.no/kbase/2005/06/computer-mac-os-x-compile.html'></link><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/111865642335785533'></link><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/111865642335785533'></link><author><name>Willy</name></author></entry><entry><id>tag:blogger.com,1999:blog-13383744.post-111902031749519937</id><published>2005-06-17T16:45:00.000+02:00</published><updated>2005-06-17T16:58:37.496+02:00</updated><title type='text'>email to php script</title><content type='html'>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.</content><link rel='alternate' type='text/html' href='http://asdf.no/kbase/2005/06/email-to-php-script.html'></link><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/111902031749519937'></link><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/111902031749519937'></link><author><name>Willy</name></author></entry><entry><id>tag:blogger.com,1999:blog-13383744.post-111778786892712582</id><published>2005-06-03T10:36:00.000+02:00</published><updated>2005-06-03T10:37:48.930+02:00</updated><title type='text'>Welcome!</title><content type='html'>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.</content><link rel='alternate' type='text/html' href='http://asdf.no/kbase/2005/06/welcome.html'></link><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/111778786892712582'></link><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/13383744/posts/default/111778786892712582'></link><author><name>Willy</name></author></entry></feed>
