<?xml version="1.0" encoding="utf-8"?>
<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Synapseal Arclights</title>
		<description>Random neuronal meanderings</description>
                <link>http://blog.novarata.net/</link>
                <atom:link href="http://blog.novarata.net/index.rss" rel="self" type="application/rss+xml" />
	
	<item>
		<title>Slow down spam with ZB Block</title>
		<link>http://blog.novarata.net/Slow_down_spam_with_ZB_Block.php</link>
		<guid isPermaLink="true">http://blog.novarata.net/Slow_down_spam_with_ZB_Block.php</guid>
                <pubDate>Sun, 9 Sep 2012 03:01:17 GMT</pubDate>
		<description>&lt;span style=&quot;float: right; clear: left;&quot;&gt;
&lt;IMG src=&quot;http://www.novarata.net/images/r/robot-looking-in-sm.jpg&quot; width=&quot;250&quot; height=&quot;188&quot; title=&quot;Robot looking in&quot;&gt;&lt;/span&gt;
How would you like a big burly mean bouncer to help keep spam off your forum, blog or website?
&lt;br&gt;
&lt;br&gt;
I&#39;ve been trialing a PHP program called &lt;a href=&quot;http://www.spambotsecurity.com/zbblock.php&quot; target=_blank&quot; title=&quot;ZB Block Home Page&quot;&gt;ZB Block&lt;/a&gt; before I install it on some of the commercial websites I maintain, or recommend it to the folks I consult with regarding their web presence.
&lt;br&gt;
&lt;br&gt;
I am pleased to report that it has reduced the spammer registrations on my forum to zero, and vastly reduced the number of unnecessary bots scouring the whole website (less bots means less page loads, reducing server load and making the site more responsive for the human visitors) 
&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.spambotsecurity.com/zbblock.php&quot; target=_blank&quot; title=&quot;ZB Block Home Page&quot;&gt;ZB Block&lt;/a&gt; is written in PHP, and requires you to edit your key php files for the site(s) you want it to protect.  For instance, with phpBB forum software, there&#39;s one file that&#39;s loaded every time any page is loaded.  It&#39;s called (not surprisingly) common.php.  You would add a line to the top of this file calling &lt;a href=&quot;http://www.spambotsecurity.com/zbblock.php&quot; target=_blank&quot; title=&quot;ZB Block Home Page&quot;&gt;ZB Block&lt;/a&gt;.
&lt;br&gt;
&lt;br&gt;
So, when a forum page is loaded, ZB Block springs into action.  Some of the things it checks:
&lt;br&gt;
&lt;UL&gt;
&lt;LI&gt; Checks the IP address against known spammer&#39;s IP addresses.  IP on the list?  The visitor is blocked.
&lt;LI&gt; Checks for proper browser identification strings.  If these strings don&#39;t exist, or don&#39;t match known strings, the visitor is blocked.
&lt;LI&gt; Checks IP address range (&lt;a href=&quot;http://www.spambotsecurity.com/zbblock.php&quot; target=_blank&quot; title=&quot;ZB Block Home Page&quot;&gt;ZB Block&lt;/a&gt; can be configured to block whole countries).  North Korean visitor?  Sorry, blocked (if an NK block is enabled)
&lt;LI&gt; Checks URL visitor is trying to access.  If it contains &quot;funny business&quot; (such as an encoded attack string), the visitor is blocked.
&lt;LI&gt; Malicious robot?  Bots such as &quot;website scourers&quot; are blocked.  These types of bots can really run up one&#39;s server load.
&lt;LI&gt; . . . and many other checks.
&lt;/UL&gt;
The neat thing about &lt;a href=&quot;http://www.spambotsecurity.com/zbblock.php&quot; target=_blank&quot; title=&quot;ZB Block Home Page&quot;&gt;ZB Block&lt;/a&gt; is that when it blocks the same unwanted visitor 3 times, it starts sending 503 error codes, and a few visits after that, it sets up a permanent redirect for that visitor back to their point of origin (all of these actions require minimal server load).
&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.spambotsecurity.com/zbblock.php&quot; target=_blank&quot; title=&quot;ZB Block Home Page&quot;&gt;ZB Block&lt;/a&gt; also keeps logs of blocked visitation attempts, so you can see who got blocked and why (it might be your dear old computer-illiterate Grandma, who just happens to surf the internet like a robot).  You can whitelist your IP, and use the test sequence to see if &lt;a href=&quot;http://www.spambotsecurity.com/zbblock.php&quot; target=_blank&quot; title=&quot;ZB Block Home Page&quot;&gt;ZB Block&lt;/a&gt; is working.  You can whitelist other IPs, too , if you wish (like dear old Granny).
&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.spambotsecurity.com/zbblock.php&quot; target=_blank&quot; title=&quot;ZB Block Home Page&quot;&gt;ZB Block&lt;/a&gt; isn&#39;t for html novices, but there&#39;s a really active forum over there, with installation instructions for most popular PHP software offerings that are attractive to spammers.
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://www.spambotsecurity.com/zbblock.php&quot; target=_blank&quot; title=&quot;ZB Block Home Page&quot;&gt;ZB Block&lt;/a&gt; - highly recommended to any webmaster running PHP-based content. Sadly, &lt;a href=&quot;http://www.spambotsecurity.com/zbblock.php&quot; target=_blank&quot; title=&quot;ZB Block Home Page&quot;&gt;ZB Block&lt;/a&gt; only works for PHP-based content, so if your application isn&#39;t written in PHP, maybe you can get someone to port &lt;a href=&quot;http://www.spambotsecurity.com/zbblock.php&quot; target=_blank&quot; title=&quot;ZB Block Home Page&quot;&gt;ZB Block&lt;/a&gt; to whatever language it is written in.
&lt;!-- end content --&gt;
&lt;br&gt;
&lt;Br&gt;
&lt;br&gt;
&lt;span style=&quot;font-size:12px;&quot;&gt;Thoroughly confuzzled?  Want to discuss this?  Have a comment for the author?  Mosey on over to the &lt;a href=&quot;http://forum.novarata.net&quot;&gt;Novarata Forums&lt;/a&gt; and let us know what you think.&lt;/span&gt;
&lt;br&gt;
&lt;hr&gt;&lt;/hr&gt;
&lt;br&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;&lt;SCRIPT Src=&quot;http://www.novarata.net/cgi-bin/aws/apf4_banner.cgi?Operation=ItemSearch&amp;SearchIndex=Books&amp;Keywords=spammer&amp;input_output=javascript&quot;&gt;&lt;/script&gt;&lt;/td&gt;
&lt;td valign=&quot;middle&quot;&gt;&lt;script type=&#39;text/javascript&#39;&gt;
&lt;!--
clickochet_client = &#39;VC-9420392794190&#39;
clickochet_width = &#39;120&#39;
clickochet_height = &#39;90&#39;
clickochet_categories = &#39;3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25&#39;
clickochet_bg_color = &#39;FFFFFF&#39;
clickochet_border_color = &#39;AAAAFF&#39;
//--&gt;
&lt;/script&gt;
&lt;script type=&#39;text/javascript&#39; src=&#39;http://ad1.clickochet.com/getad.js&#39;&gt;&lt;/script&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
</description>
	</item>
	
	<item>
		<title>How do you keep a spambot busy?</title>
		<link>http://blog.novarata.net/How_do_you_keep_a_spambot_busy_.php</link>
		<guid isPermaLink="true">http://blog.novarata.net/How_do_you_keep_a_spambot_busy_.php</guid>
                <pubDate>Fri, 7 Sep 2012 03:49:23 GMT</pubDate>
		<description>&lt;span style=&quot;float: right; clear: left;&quot;&gt;
&lt;IMG src=&quot;http://www.novarata.net/images/p/pharma-spam-sm.jpg&quot; width=&quot;250&quot; height=&quot;207&quot; title=&quot;Spambots suck&quot;&gt;&lt;/span&gt;
Everybody&#39;s heard the one about &quot;&lt;a href=&quot;http://www.novarata.net/idiocy.php&quot; target=&quot;_blank&quot;&gt;How do you keep an idiot busy?&lt;/a&gt;&quot;, but I thought it&#39;d be better to keep a spambot busy.
&lt;br&gt;
&lt;br&gt;
I recently wrote a web page that will keep both types of spambot busy for a long, long time.  It will provide hours of ecstasy for any email harvester or comment spambot.
&lt;br&gt;
&lt;br&gt;
This web page is portable, and doesn&#39;t require any coding knowledge to employ.  All you need is access to a web server that runs PHP code.  You can find the web page here: &lt;a href=&quot;http://novarata.net/spamsink-example.php_&quot; target=&quot;_blank&quot;&gt;Plain Text Spamsink Example&lt;/a&gt;.
&lt;br&gt;
To use it, just copy the code linked above and paste it into a new text file with the suffix of &quot;.php&quot;.  You can name it anything you like (and you should), so long as the suffix is &quot;.php&quot;.  Don&#39;t use Microsoft Word or OpenOffice/LibreOffice Write for this, just a regular text editor like Notepad, GEdit or Kate.  You could also use an HTML editor like Arachnophilia, Mozilla Composer or Bluefish.
&lt;br&gt;
Here&#39;s what it looks like in action: &lt;a href=&quot;http://novarata.net/spamsink-example.php&quot; target=&quot;_blank&quot;&gt;Spamsink&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
Let&#39;s go over how it works . .
&lt;br&gt;
The top section contains your standard HTML header code.  You can change the title (where it says &quot;RENAME THIS&quot;) if you like.
&lt;br&gt;
Right below that is a line with the word &quot;robots&quot; and &quot;NO INDEX, NO FOLLOW&quot;.  This tells good robots (like Google&#39;s little helper) to stay away from this page.  Spambots routinely ignore robot directives.
&lt;br&gt;
Right under that is the copyright and license statement.  It&#39;s licensed under the &lt;a href=&quot;http://opensource.org/licenses/mit-license.php&quot; target=&quot;_blank&quot;&gt;MIT License&lt;/a&gt;, so have fun with it.  If you do something with it, I&#39;d be happy to hear about it.
&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Section 1:&lt;/strong&gt;
&lt;Br&gt;
• This section of the code is for the comment spammers.  It contains hidden form fields with standard names that all filthy spambots love to fill out.  The questions may seem crazy, but the robots won&#39;t read them - they only read the form names, which are part of the code.  Want to know the funny part?  Since the form s hidden from humans, any data entered into any of the fields causes the form to reload the page.
&lt;br&gt;
• To prevent blind users from getting caught up in this spambot tarpit, there&#39;s a warning included before it all begins (screen readers used by the blind don&#39;t render CSS, which means they&#39;ll see everything - just like a bot)
&lt;br&gt;
• Here&#39;s what it looks like to robots and those with screen readers: &lt;a href=&quot;http://novarata.net/spamsink-visible-example.php&quot; target=_blank&quot;&gt;Robot view&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Section 2:&lt;/strong&gt;
&lt;br&gt;
• This section starts out with a command to &quot;sleep&quot; for 10 seconds (maybe you were wondering why the example above took so long to load? Now you know).  This 10 second delay seems like a couple of lifetimes to a spambot, and it keeps the little bastards from hammering your server with their voractious requests.
&lt;br&gt;
• After the 10 second delay, the script grinds out one hundred fake email addresses.  Since they&#39;re fake, they&#39;ll pollute the spambot&#39;s database, and may contribute to having that whole run thrown out.  In any event, this page will hold the spambot&#39;s attentions and keep it from ravaging someone else&#39;s site.
&lt;br&gt;
• The two links at the bottom are written to always reflect whatever you&#39;ve named the file, so no matter what links the bot follows, it gets to wait another 10 seconds and another load of fake email addresses.
&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Section 3:&lt;/strong&gt;
&lt;br&gt;
• All of the above works great, but it only works for your site (or whoever you give the link to).  Section 3 is for your own links to external honey pots.  Maybe you know a honeypot or another tar pit you want to introduce the bots to.  Don&#39;t know any honey pots?  You can visit &lt;a href=&quot;http://www.projecthoneypot.org&quot; target=&quot;_blank&quot;&gt;Project Honeypot&lt;/a&gt; and get a link to one (free signup required).  Project Honeypot maintains a database that forum and blog owners cna query when they get a new registration attempt to find out if the prospective member is a spambot or not (this is where this page helps others, if these links are enabled)
&lt;br&gt;
• As they are now, these hidden links just go back to the same page (yes, Mr. Bot gets to wait another 10 seconds), so you don&#39;t have to do anything with them.
&lt;br&gt;
• If you do want to put them to use, just change the &quot;#&quot; to your target URL (leave the quote marks, please) and the &quot;Blah blah blah&quot; stuff to something generic.
&lt;br&gt;
&lt;br&gt;
&lt;strong&gt;Enabling the trap&lt;/strong&gt;
&lt;br&gt;
• You should include some hidden links to your new tarpit (the webpage under discussion here).  This should be included in your footer element of your forum or blog software right before the &amp;lt;/body&amp;gt; tag, so it loads with every page.  It can be included in any wab page, however.
&lt;br&gt;
• It should be included like so, so humans can&#39;t see it:
&lt;blockquote&gt;
&amp;lt;a href=&quot;http://www.YOURSITE.url/path/to/spamsink.php&quot; style=&quot;display:none;&quot;&amp;gt;random random&amp;lt;/a&amp;gt;
&lt;/blockquote&gt; 
&lt;br&gt;
• If you don&#39;t want to include it in your site&#39;s code, you can always add it to your &lt;a href=&quot;http://en.wikipedia.org/wiki/Robots.txt&quot; target=&quot;_blank&quot;&gt;robots.txt&lt;/a&gt;, which will ensure the bad robots visit it (Malicious bots tend to use the robots.txt as a signpost for &quot;where to go&quot;)
&lt;br&gt;
&lt;br&gt;
Good luck with your tar pit!  I thoroughly enjoy looking at my website&#39;s access logs and seeing my tarpit pages having &quot;more than an hour&quot; of visitation by dozens of entities, as I know that I&#39;m saving some other schlob from the attentions of a spambot, and/or filling a harvester&#39;s database with 100% &lt;img src=&quot;http://forum.novarata.net/images/smilies/bull.gif&quot; alt=&quot;bull cookies&quot;&gt;
&lt;br&gt;
&lt;Br&gt;
&lt;br&gt;
&lt;span style=&quot;font-size:12px;&quot;&gt;Thoroughly confuzzled?  Want to discuss this?  Have a comment for the author?  Mosey on over to the &lt;a href=&quot;http://forum.novarata.net&quot;&gt;Novarata Forums&lt;/a&gt; and let us know what you think.&lt;/span&gt;
&lt;br&gt;
&lt;hr&gt;&lt;/hr&gt;
&lt;br&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;&lt;SCRIPT Src=&quot;http://www.novarata.net/cgi-bin/aws/apf4_banner.cgi?Operation=ItemSearch&amp;SearchIndex=All&amp;Keywords=Tru+spec&amp;input_output=javascript&quot;&gt;&lt;/script&gt;&lt;/td&gt;
&lt;td valign=&quot;middle&quot;&gt;&lt;script type=&#39;text/javascript&#39;&gt;
&lt;!--
clickochet_client = &#39;VC-9420392794190&#39;
clickochet_width = &#39;120&#39;
clickochet_height = &#39;90&#39;
clickochet_categories = &#39;3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25&#39;
clickochet_bg_color = &#39;FFFFFF&#39;
clickochet_border_color = &#39;AAAAFF&#39;
//--&gt;
&lt;/script&gt;
&lt;script type=&#39;text/javascript&#39; src=&#39;http://ad1.clickochet.com/getad.js&#39;&gt;&lt;/script&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
</description>
	</item>
	
	<item>
		<title>Quick-n-dirty Linux Slideshow</title>
		<link>http://blog.novarata.net/Quick_n_dirty_Linux_Slideshow.php</link>
		<guid isPermaLink="true">http://blog.novarata.net/Quick_n_dirty_Linux_Slideshow.php</guid>
                <pubDate>Thu, 9 Aug 2012 04:00:57 GMT</pubDate>
		<description>&lt;span style=&quot;float: right; clear: left;&quot;&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;br&gt;&lt;IMG src=&quot;http://www.novarata.net/images/b/blog-slideshow.gif&quot; height=&quot;250&quot; width=&quot;250&quot; title=&quot;Make your own slideshows in linux.&quot;&gt;&lt;/span&gt;
Here&#39;s a quick-n-dirty script for a slideshow on your linux box. Since it runs from the console, it&#39;s suitable for any linux box, on any hardware, as long as there&#39;s an X server.  This includes those cheap digital photo frames that run linux.
&lt;br&gt;
&lt;br&gt;
Open your favorite text editor and copy &amp; paste the following into it:
&lt;blockquote&gt;
#!/bin/bash&lt;br&gt;
find -type d | \&lt;br&gt;
while read I; do&lt;br&gt;
   feh -qrzFD5 --geometry 1680x1050 --hide-pointer --scale-down $1&lt;br&gt;
killall slideshow&lt;br&gt;
done
&lt;/blockquote&gt;
&lt;Br&gt;
Now, name it whatever you want (mine&#39;s called &#39;slideshow&#39;) and chmod +x it (make it executable).  After you finish reading the rest of this post and modifying the script to your desires, move it to your binary path (usually this&#39;d be /usr/local/bin).  At this point, you can call it in a console from any directory.
&lt;br&gt;
&lt;br&gt;
In a nutshell, this leverages the linux &quot;find&quot; command to search out all files in the directories specified on the command line (yes, it&#39;s a console proggy).
&lt;br&gt;
It then passes that list on to the feh program, which is a very small (but very versatile) image viewer.
&lt;br&gt;
&lt;br&gt;
To break down what we&#39;re asking feh to do, I&#39;ll go over the command modifiers:
&lt;br&gt;
&quot;feh&quot; calls the program
&lt;br&gt;
-q = &quot;quiet&quot; or &quot;suppress errors&quot;
&lt;br&gt;
-r = &quot;recursive&quot; or &quot;go through all directories under the one the program was started in
&lt;br&gt;
-z = &quot;randomize&quot;
&lt;br&gt;
-F = &quot;fullscreen&quot;
&lt;br&gt;
-D5 = &quot;slideshow delay [number]&quot; - here is where we tell feh to show each image for 5 seconds.  This number is always seconds, so 2 minutes would be entered as 120 (seconds).
&lt;br&gt;
--geometry 1680x1050 = tells feh the size of your display, so it knows what size to reduce oversized images to.  You should change this to your screen resolution.
&lt;br&gt;
--hide-pointer = &quot;hides mouse pointer&quot;
&lt;br&gt;
--scale-down = resizes large images to fit your screen size
&lt;br&gt;
$1 = scripter&#39;s code to tell the program to &#39;use the input it was given when it was started&#39;.  In this case, this&#39;ll be the list of pictures the &#39;find&#39; command dug up
&lt;br&gt;
&lt;br&gt;
&quot;killall_slideshow&quot; makes sure this script dies when you ctrl-c or ESC (quit) it.
&lt;br&gt;
&quot;done&quot; tells the script it&#39;s finished
&lt;br&gt;
&lt;br&gt;
To use this script, just call it like this:
&lt;blockquote&gt;
slideshow (or whatever you named it) /path/to/images &amp;#60;ENTER&amp;#62;
&lt;/blockquote&gt;
&lt;Br&gt;
This script doesn&#39;t use many resources, and can be tuned to your desires.  It can be easily installed by your package manager.  I don&#39;t do it, but if you don&#39;t want a slideshow, feh can also be used to change your desktop wallpaper (that&#39;s for another post, or you can find out how via Google)
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;font-size:12px;&quot;&gt;Thoroughly confuzzled?  Want to discuss this?  Have a comment for the author?  Mosey on over to the &lt;a href=&quot;http://forum.novarata.net&quot;&gt;Novarata Forums&lt;/a&gt; and let us know what you think.&lt;/span&gt;
&lt;br&gt;
&lt;hr&gt;&lt;/hr&gt;
&lt;br&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;&lt;SCRIPT Src=&quot;http://www.novarata.net/cgi-bin/aws/apf4_banner.cgi?Operation=ItemSearch&amp;SearchIndex=Books&amp;Keywords=programming&amp;input_output=javascript&quot;&gt;&lt;/script&gt;&lt;/td&gt;
&lt;td valign=&quot;middle&quot;&gt;&lt;script type=&#39;text/javascript&#39;&gt;
&lt;!--
clickochet_client = &#39;VC-9420392794190&#39;
clickochet_width = &#39;120&#39;
clickochet_height = &#39;90&#39;
clickochet_categories = &#39;3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25&#39;
clickochet_bg_color = &#39;FFFFFF&#39;
clickochet_border_color = &#39;AAAAFF&#39;
//--&gt;
&lt;/script&gt;
&lt;script type=&#39;text/javascript&#39; src=&#39;http://ad1.clickochet.com/getad.js&#39;&gt;&lt;/script&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
</description>
	</item>
	
	<item>
		<title>Karma Consultant</title>
		<link>http://blog.novarata.net/Karma_Consultant.php</link>
		<guid isPermaLink="true">http://blog.novarata.net/Karma_Consultant.php</guid>
                <pubDate>Sun, 15 Apr 2012 04:00:18 GMT</pubDate>
		<description>&lt;span style=&quot;float: right; clear: left;&quot;&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;br&gt;&lt;IMG src=&quot;http://www.novarata.net/images/q/question-mark-box.jpg&quot; height=&quot;250&quot; width=&quot;250&quot; title=&quot;Who is Nalioth?&quot;&gt;&lt;/span&gt;
I&#39;m not usually one to beat my own drum, but times are getting tough.
&lt;br&gt;
&lt;br&gt;
I am a veteran who&#39;s turned to webmastering because it&#39;s difficult for me to hold a &quot;regular&quot; job.  I have trouble moving around a lot and doing jobs where I don&#39;t have to move around much seems the thing to do.
&lt;br&gt;
That being said, I&#39;ve never been good at selling my services. so I figured I&#39;d just blog about some things I&#39;ve learned over the years that some of you may never have considered, but can save or make you money.  I figured that if you make or save money with the information in these blog posts, you could pretend you hired me for a consultation (where I usually tell folks about these things).
&lt;br&gt;
&lt;br&gt;
You can help me out with a donation via PayPal gift (send to &lt;?php echo hide_email(&#39;donate.to.the.rat@gmail.com&#39;); ?&gt;) or by helping me out with something from my &lt;a href=&quot;http://amzn.com/w/1ES68GRJVP8S2&quot; target=&quot;_blank&quot;&gt;Amazon wishlist&lt;/a&gt;
&lt;br&gt;
Blog posts that can save or make you money will contain &lt;img src=&quot;http://www.novarata.net/images/g/gift-strip-24.gif&quot;&gt; or &lt;img src=&quot;http://www.novarata.net/images/g/gift-ani-64.gif&quot;&gt;
&lt;br&gt;
&lt;br&gt;
Of course, if you need help with getting a new website up, setting up anything you read about here on an existing website, or just any general question, you can drop me a line at &lt;?php echo hide_email(&#39;nalioth+blog@gmail.com&#39;); ?&gt;&amp;nbsp;&amp;nbsp;You may also be interested in this blog post: &lt;a href=&quot;http://blog.novarata.net/Webmaster_services.php&quot;&gt;Webmaster Services&lt;/a&gt; which offers a very general overview of what I can do for you.
&lt;br&gt;
&lt;br&gt;
For those who take advantage of these tips and show your appreciation, I thank you.  If you are a leech on society - and take without giving - karma is a wheel.
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;font-size:12px;&quot;&gt;Want to discuss this?  Have a comment for the author?  Mosey on over to the &lt;a href=&quot;http://forum.novarata.net&quot;&gt;Novarata Forums&lt;/a&gt; and let us know what you think.&lt;/span&gt;
&lt;br&gt;
&lt;hr&gt;&lt;/hr&gt;
&lt;br&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;&lt;SCRIPT Src=&quot;http://www.novarata.net/cgi-bin/aws/apf4_banner.cgi?Operation=ItemSearch&amp;SearchIndex=Blended&amp;Keywords=a&amp;input_output=javascript&quot;&gt;&lt;/script&gt;&lt;/td&gt;
&lt;td valign=&quot;middle&quot;&gt;&lt;script type=&#39;text/javascript&#39;&gt;
&lt;!--
clickochet_client = &#39;VC-9420392794190&#39;
clickochet_width = &#39;120&#39;
clickochet_height = &#39;90&#39;
clickochet_categories = &#39;3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25&#39;
clickochet_bg_color = &#39;FFFFFF&#39;
clickochet_border_color = &#39;AAAAFF&#39;
//--&gt;
&lt;/script&gt;
&lt;script type=&#39;text/javascript&#39; src=&#39;http://ad1.clickochet.com/getad.js&#39;&gt;&lt;/script&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
</description>
	</item>
	
	<item>
		<title>Warming the footsies</title>
		<link>http://blog.novarata.net/Warming_the_footsies.php</link>
		<guid isPermaLink="true">http://blog.novarata.net/Warming_the_footsies.php</guid>
                <pubDate>Mon, 26 Dec 2011 03:58:00 GMT</pubDate>
		<description>&lt;span style=&quot;float: right; clear: left;&quot;&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;&lt;br&gt;&lt;IMG src=&quot;http://www.novarata.net/images/0/2l-bottle.jpg&quot; height=&quot;122&quot; width=&quot;250&quot; title=&quot;MMM-MMMMM Garlic&quot;&gt;&lt;/span&gt;It&#39;s cold out thar!
&lt;br&gt;
&lt;br&gt;
The economy is in the crapper, so if you&#39;ve turned the heat down to save some money, but have trouble sleeping due to the cold, this hint may be of help.
&lt;br&gt;
&lt;br&gt;
Just take an empty 2 liter soda bottle and fill it with boiling water (be careful, the boiling water can burn you).
&lt;br&gt;
Make sure to fill it to the absolute top, and tighten the cap on it.  If you don&#39;t fill it up to the top, as the water cools, the bottle will contract.  Don&#39;t worry about the bottle melting, it&#39;s not going to melt except under direct flame (thousands of degrees).
&lt;br&gt;
&lt;br&gt;
Wrap the hot bottle in a bath towel or old sweatshirt (direct contact with the plastic can cause burns) and stick it down by your footsies (or wherever warmth is needed).
&lt;br
2 liters of water will stay above body temperature for hours . .
&lt;br&gt;
&lt;br&gt;
Stay warm!
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style=&quot;font-size:12px;&quot;&gt;Want to discuss this?  Have a comment for the author?  Mosey on over to the &lt;a href=&quot;http://forum.novarata.net&quot;&gt;Novarata Forums&lt;/a&gt; and let us know what you think.&lt;/span&gt;
&lt;br&gt;
&lt;hr&gt;&lt;/hr&gt;
&lt;br&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-7323415481446548&quot;;
/* 468x60, novarata-blog 11/6/09 */
google_ad_slot = &quot;0468646851&quot;;
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;
&lt;/td&gt;
&lt;td valign=&quot;middle&quot;&gt;&lt;script type=&#39;text/javascript&#39;&gt;
&lt;!--
clickochet_client = &#39;VC-9420392794190&#39;
clickochet_width = &#39;120&#39;
clickochet_height = &#39;90&#39;
clickochet_categories = &#39;3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25&#39;
clickochet_bg_color = &#39;FFFFFF&#39;
clickochet_border_color = &#39;AAAAFF&#39;
//--&gt;
&lt;/script&gt;
&lt;script type=&#39;text/javascript&#39; src=&#39;http://ad1.clickochet.com/getad.js&#39;&gt;&lt;/script&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
</description>
	</item>
	
	<item>
		<title>On watermarking images</title>
		<link>http://blog.novarata.net/On_watermarking_images.php</link>
		<guid isPermaLink="true">http://blog.novarata.net/On_watermarking_images.php</guid>
                <pubDate>Tue, 14 Jun 2011 03:58:48 GMT</pubDate>
		<description>&lt;div style=&quot;float: right; clear: left;&quot;&gt;&lt;IMG src=&quot;http://www.novarata.net/images/t/terminal.png&quot; height=&quot;250&quot; width=&quot;250&quot; title=&quot;MMM-MMMMM Garlic&quot;&gt;&lt;/div&gt;There are several ways to watermark images, and several reasons why you should.
&lt;br&gt;
&lt;br&gt;
We&#39;re not going to discuss the &quot;why&quot;, but one method of the &quot;how&quot;.
&lt;br&gt;
&lt;br&gt;
There are two common ways to add a watermark: a semi-transparent image and a text string.  Most folks think of the semi-transparent image when they think &quot;watermark&quot;, as this is the most common.  Here is an example of semi-transparent watermark: &lt;a href=&quot;http://www.novarata.net/images/d/draco-rear-block.png&quot; target=&quot;_blank&quot;&gt;Draco rear block&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
Working with a semi-transparent image can be a pain, so IMHO, using a text string is easier (everyone has fonts on their system, but not everyone can make a semi-transparent image).  You can see examples of a text string watermark at &lt;a href=&quot;http://www.novarata.net/vz58-pictorial.php&quot; target=&quot;_blank&quot;&gt;my Vz58 pictorial&lt;/a&gt;.
&lt;br&gt;
&lt;br&gt;
I&#39;ve wrangled some scripts together that run on linux, may run on OS X and probably won&#39;t run on Windows.  Two of these are batch scripts and will add a text string to all images in a directory with the press of the &quot;Enter&quot; key.
&lt;br&gt;
Two of them are &quot;single file&quot; use scripts that are preset to use 32 pixel and 16 pixel sized fonts.
&lt;br&gt;
&lt;br&gt;
All scripts are set to use Times New Roman.  Since they&#39;re all open source, you can change the settings as you like.
&lt;br&gt;
&lt;br&gt;
You can find these scripts at &lt;a href=&quot;http://wiki.novarata.net/Forumwatermarks&quot; target=&quot;_blank&quot;&gt;the Novarata wiki&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
Enjoy!
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;h8&gt;Want to discuss this?  Have a comment for the author?  Mosey on over to the &lt;a href=&quot;http://forum.novarata.net&quot;&gt;Novarata Forums&lt;/a&gt; and let us know what you think.&lt;/h8&gt;
&lt;br&gt;
&lt;hr&gt;&lt;/hr&gt;
&lt;br&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;&lt;SCRIPT Src=&quot;http://www.novarata.net/cgi-bin/aws/apf4_banner.cgi?Operation=ItemSearch&amp;SearchIndex=All&amp;Keywords=modern+art&amp;input_output=javascript&quot;&gt;&lt;/script&gt;&lt;/td&gt;
&lt;td valign=&quot;middle&quot;&gt;&lt;script type=&#39;text/javascript&#39;&gt;
&lt;!--
clickochet_client = &#39;VC-9420392794190&#39;
clickochet_width = &#39;120&#39;
clickochet_height = &#39;90&#39;
clickochet_categories = &#39;3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25&#39;
clickochet_bg_color = &#39;FFFFFF&#39;
clickochet_border_color = &#39;AAAAFF&#39;
//--&gt;
&lt;/script&gt;
&lt;script type=&#39;text/javascript&#39; src=&#39;http://ad1.clickochet.com/getad.js&#39;&gt;&lt;/script&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
</description>
	</item>
	
	<item>
		<title>Vampire solvent</title>
		<link>http://blog.novarata.net/Vampire_solvent.php</link>
		<guid isPermaLink="true">http://blog.novarata.net/Vampire_solvent.php</guid>
                <pubDate>Fri, 10 Jun 2011 04:06:03 GMT</pubDate>
		<description>&lt;div style=&quot;float: right; clear: left;&quot;&gt;&lt;IMG src=&quot;http://www.novarata.net/images/g/garlic-bulb.jpg&quot; height=&quot;250&quot; width=&quot;250&quot; title=&quot;MMM-MMMMM Garlic&quot;&gt;&lt;br&gt;&lt;div align=&quot;center&quot; style=&quot;font-size:12px&quot;&gt;This is a bulb of garlic&lt;/div&gt;&lt;/div&gt;What do you get when you stuff 4 bulbs of garlic and 8 habanero peppers in a mason jar with apple cider vinegar?
&lt;br&gt;
&lt;br&gt;
Vampire solvent.
&lt;br&gt;
&lt;img src=&quot;http://www.novarata.net/images/v/vampire-solvent_1946.JPG&quot; width=&quot;500&quot; title=&quot;Vampire solvent&quot;&gt;
&lt;br&gt;
&lt;br&gt;
This stuff is &lt;strong&gt;SOOO&lt;/strong&gt; garlicky, it&#39;s gonna need to be cut with regular cider vinegar before you can use it on your salad.
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
OTOH, just opening the lid will instantly cause any vampire within 300m to explode. . .
&lt;br&gt;
&lt;br&gt;
The habanero content makes this unsuitable for &lt;a href=&quot;http://idioms.thefreedictionary.com/weak+sister&quot; target=&quot;_blank&quot;&gt;weak sisters&lt;/a&gt; or unsuspecting children.
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;h8&gt;Want to discuss this?  Have a comment for the author?  Mosey on over to the &lt;a href=&quot;http://forum.novarata.net&quot;&gt;Novarata Forums&lt;/a&gt; and let us know what you think.&lt;/h8&gt;
&lt;br&gt;
&lt;hr&gt;&lt;/hr&gt;
&lt;br&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;&lt;SCRIPT Src=&quot;http://www.novarata.net/cgi-bin/aws/apf4_banner.cgi?Operation=ItemSearch&amp;SearchIndex=Grocery&amp;Keywords=garlic+hot+sauce&amp;input_output=javascript&quot;&gt;&lt;/script&gt;&lt;/td&gt;
&lt;td valign=&quot;middle&quot;&gt;&lt;script type=&#39;text/javascript&#39;&gt;
&lt;!--
clickochet_client = &#39;VC-9420392794190&#39;
clickochet_width = &#39;120&#39;
clickochet_height = &#39;90&#39;
clickochet_categories = &#39;3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25&#39;
clickochet_bg_color = &#39;FFFFFF&#39;
clickochet_border_color = &#39;AAAAFF&#39;
//--&gt;
&lt;/script&gt;
&lt;script type=&#39;text/javascript&#39; src=&#39;http://ad1.clickochet.com/getad.js&#39;&gt;&lt;/script&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
</description>
	</item>
	
	<item>
		<title>Convert html page to a PDF document (with images)</title>
		<link>http://blog.novarata.net/Convert_html_page_to_a_PDF_document__with_images_.php</link>
		<guid isPermaLink="true">http://blog.novarata.net/Convert_html_page_to_a_PDF_document__with_images_.php</guid>
                <pubDate>Thu, 9 Jun 2011 03:58:24 GMT</pubDate>
		<description>&lt;div style=&quot;float: right; clear: left;&quot;&gt;&lt;IMG src=&quot;http://www.novarata.net/images/t/terminal.png&quot; height=&quot;256&quot; width=&quot;256&quot; title=&quot;Convert JPG images to a PDF&quot;&gt;&gt;&lt;/div&gt;
Today we&#39;ll be going over how to convert a html page to a PDF document.  Pictures linked the html page are will be included&lt;sup&gt;1&lt;/sup&gt;.
&lt;br&gt;
Yes, you &lt;i&gt;can&lt;/i&gt; &quot;print to PDF&quot; from a lot of programs, but that method can include artifacts you didn&#39;t want.  The following procedure will produce a PDF that is virtually identical in content to the HTML page it was spawned from.
&lt;br&gt;
This exercise requires &lt;a href=&quot;http://pages.cs.wisc.edu/~ghost/&quot; title=&quot;GhostScript - an interpreter for the PostScript language and for PDF&quot; target=&quot;_blank&quot;&gt;GhostScript&lt;/a&gt; and &lt;a href=&quot;http://packages.ubuntu.com/natty/html2ps&quot; title=&quot;html2ps - convert html docs to postscript&quot; target=&quot;_blank&quot;&gt;html2ps&lt;/a&gt;&lt;sup&gt;2&lt;/sup&gt;.  Windows users will also need &lt;a href=&quot;http://www.cygwin.com/&quot; title=&quot;Get that Linux feeling - on Windows!&quot; target=&quot;_blank&quot;&gt;CYGWIN&lt;/a&gt; for the bash shell and &lt;a href=&quot;http://www.perl.org/&quot; title=&quot;Perl programming language&quot; target=&quot;_blank&quot;&gt;Perl&lt;/a&gt; if they want the &quot;rename&quot; command to work.
&lt;br&gt;
GhostScript is pretty standard in linux, and is available for OS X and Windows.  html2ps will probably need to be installed via your linux package manager if you run Debian or Ubuntu (or use Debian/Ubuntu repos), or compiled from the source code OS X and Windows (Windows users&#39;ll need cygwin installed to do this).
&lt;br&gt;
&lt;br&gt;
This script is really simple.  It takes a single html document&lt;sup&gt;3&lt;/sup&gt; as input, and turns it into a postscript document, then turns the postscript document into a PDF.  If you want to turn a bunch of html pages into one PDF, you can modify &lt;a href=&quot;http://blog.novarata.net/Convert_jpg_images_to_a_PDF_document.php&quot; title=&quot;Convert jpg images to a PDF document - Novarata Blog&quot; target=&quot;_blank&quot;&gt;this script&lt;/a&gt; from t&#39;other day.
&lt;br&gt;
&lt;br&gt;
Here&#39;s the really quick-n-dirty script.  Copy and paste it into a text document (but don&#39;t use .txt on the end):
&lt;blockquote&gt;
#!/bin/bash&lt;br&gt;
html2ps &quot;$1&quot; &gt; &quot;$1&quot;.ps &amp;&amp;&lt;br&gt;
ps2pdf *.ps &amp;&amp;&lt;br&gt;
rename -v &#39;s/\.html\.pdf/\.pdf/&#39; *.pdf &amp;&amp;&lt;br&gt;
rename -v &#39;s/\.htm\.pdf/\.pdf/&#39; *.pdf&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
You&#39;ll need to tell the system (linux and OS X) that the script is an executable.  To do so, in a terminal run
&lt;blockquote&gt;
chmod +x scriptname
&lt;/blockquote&gt;
&lt;br&gt;
&lt;br&gt;
Line 1 tells the system it&#39;s a bash shell script&lt;br&gt;
Line 2 tells bash to run the html2ps command on whatever html file you pointed it at and name it whatever-its-name-is.ps&lt;br&gt;
Line 3 tells bash to call ps2pdf and convert any files ending in .ps to a PDF&lt;br&gt;
Lines 4 and 5 tells bash to call the rename command and change the converted PDF filename from 01-blahblah.html.pdf to 01-blahblah.pdf (this step is aesthetic, and won&#39;t affect how the PDF actually works.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
I wrote this script because I think the resulting PDF is much more professional in appearance (no &quot;page numbers&quot; or &quot;file:///blah/blah/blah.html&quot; appearing mysteriously).
&lt;br&gt;
&lt;br
Enjoy! 
&lt;br&gt;
[1] If you want images in your PDF, they&#39;ll need to be linked properly.  That is a howto for another day.&lt;br&gt;
[2] I&#39;m not sure where the home page is, but you can also download the source from &lt;a href=&quot;http://packages.debian.org/sid/html2ps&quot; title=&quot;Debian&quot; target=&quot;_blank&quot;&gt;Debian&lt;/a&gt;&lt;br&gt;
[3] If your original HTML document is not within specifications, either html2ps or ps2pdf can take a dump on you.  Please validate your html for best results.
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;h8&gt;Want to discuss this?  Have a comment for the author?  Mosey on over to the &lt;a href=&quot;http://forum.novarata.net&quot;&gt;Novarata Forums&lt;/a&gt; and let us know what you think.&lt;/h8&gt;
&lt;br&gt;
&lt;hr&gt;&lt;/hr&gt;
&lt;br&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;SCRIPT Src=&quot;http://www.novarata.net/cgi-bin/aws/apf4_banner.cgi?Operation=ItemSearch&amp;SearchIndex=All&amp;Keywords=bash+scripting&amp;input_output=javascript&quot;&gt;&lt;/script&gt;
&lt;/td&gt;
&lt;td valign=&quot;middle&quot;&gt;&lt;script type=&#39;text/javascript&#39;&gt;
&lt;!--
clickochet_client = &#39;VC-9420392794190&#39;
clickochet_width = &#39;120&#39;
clickochet_height = &#39;90&#39;
clickochet_categories = &#39;3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25&#39;
clickochet_bg_color = &#39;FFFFFF&#39;
clickochet_border_color = &#39;AAAAFF&#39;
//--&gt;
&lt;/script&gt;
&lt;script type=&#39;text/javascript&#39; src=&#39;http://ad1.clickochet.com/getad.js&#39;&gt;&lt;/script&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
</description>
	</item>
	
	<item>
		<title>Convert jpg images to a PDF document</title>
		<link>http://blog.novarata.net/Convert_jpg_images_to_a_PDF_document.php</link>
		<guid isPermaLink="true">http://blog.novarata.net/Convert_jpg_images_to_a_PDF_document.php</guid>
                <pubDate>Sun, 5 Jun 2011 03:59:29 GMT</pubDate>
		<description>&lt;div style=&quot;float: right; clear: left;&quot;&gt;&lt;IMG src=&quot;http://www.novarata.net/images/t/terminal.png&quot; height=&quot;256&quot; width=&quot;256&quot; title=&quot;Convert JPG images to a PDF&quot;&gt;&lt;/div&gt;
Today we&#39;ll be going over how to convert a directory full of jpg images to a PDF document.
&lt;br&gt;
This exercise requires &lt;a href=&quot;http://www.imagemagick.org/script/index.php&quot; title=&quot;ImageMagick command-line image manipulation&quot; target=&quot;_blank&quot;&gt;ImageMagick&lt;/a&gt;&lt;sup&gt;1&lt;/sup&gt; and &lt;a href=&quot;http://www.pdflabs.com/tools/pdftk-the-pdf-toolkit/&quot; title=&quot;PDFTK - The PDF Toolkit&quot; target=&quot;_blank&quot;&gt;PDFTK&lt;/a&gt;.  Windows users will also need &lt;a href=&quot;http://www.cygwin.com/&quot; title=&quot;Get that Linux feeling - on Windows!&quot; target=&quot;_blank&quot;&gt;CYGWIN&lt;/a&gt; for the bash shell and &lt;a href=&quot;http://www.perl.org/&quot; title=&quot;Perl programming language&quot; target=&quot;_blank&quot;&gt;Perl&lt;/a&gt; if they want the &quot;rename&quot; command to work.
&lt;br&gt;
Imagemagick is pretty standard in linux, and is available for OS X and Windows.  PDFTK will need to be installed via your linux package manager, and binaries can be downloaded for OS X and Windows.

&lt;br&gt;
&lt;br&gt;
The most common response when asking Google &quot;convert jpgs to pdf&quot; is:
&lt;blockquote&gt;
convert *.jpg output-name.pdf
&lt;/blockquote&gt;
and this is okay if you only have a few jpegs, and they&#39;re not very big.
&lt;br&gt;
The reason for this is that when doing this operation, the system has to cache each and every JPG in memory AND also it has to cache a temporary PDF while it converts and adds each JPG.  If you&#39;ve got 100 JPGs or a couple dozen huge JPGs, you can crash your system doing it this way.
&lt;br&gt;
&lt;br&gt;
I found part of this script on one of the helpful linux forums and it&#39;s much easier on the system, as it converts each JPG individually to a PDF and then concatenates all the PDFs into one big one at the end of the operaton.
&lt;br&gt;
&lt;br&gt;
To get the ball rolling, you&#39;ll need to get all your JPGs in one directory.
&lt;br&gt;
You&#39;ll then need to make sure they&#39;re named with number prefixes.  If you have fewer than 99 JPGs, you can name them 01-blahblah.jpg through 99-blahblah-jpg.  If you have several hundred, use 001-blahblah.jpg through 999-blahblah.jpg.  &lt;i&gt;&lt;strong&gt;These numbers are the order in which your JPGs will be made into pages&lt;/strong&gt;&lt;/i&gt;.  It&#39;s very important to have a leading zero for single-digit numbers, as in linux and OS X, &quot;10&quot; comes before &quot;1&quot;, but not before &quot;01&quot;.
&lt;br&gt;
&lt;br&gt;
Now here&#39;s the script that does it:
&lt;blockquote&gt;
#!/bin/bash&lt;br&gt;
for i in *.jpg ;&lt;br&gt;
do convert $i $i.pdf ;&lt;br&gt;
rename -v &#39;s/\.jpg\.pdf/\.pdf/&#39; *.pdf;&lt;br&gt;
done&lt;br&gt;
pdftk *.pdf cat output book.pdf&lt;br&gt;
&lt;/blockquote&gt;
&lt;br&gt;
You&#39;ll need to tell the system (linux and OS X) that the script is executable.  To do so run
&lt;blockquote&gt;
chmod +x scriptname
&lt;/blockquote&gt;
&lt;br&gt;
Line 1 tells the system it&#39;s a bash shell script&lt;br&gt;
Line 2 tells bash to look for all files ending in &quot;jpg&quot;&lt;br&gt;
Line 3 tells bash to call the ImageMagick &#39;convert&#39; command and convert each JPG to a PDF&lt;br&gt;
Line 4 tells bash to call the rename command and change the converted PDF filename from 01-blahblah.jpg.pdf to 01-blahblah.pdf (this step is aesthetic&lt;sup&gt;2&lt;/sup&gt;, and isn&#39;t necessary for the production of the final ebook - I&#39;m just finicky about file names)&lt;br&gt;
Line 5 tells bash &quot;You&#39;re done! Miller time!&quot;&lt;br&gt;
Line 6 tells bash to call pdftk and concatenate all the pdfs it finds in the directory to one file named &#39;book.pdf&#39; (you can change this after the script is done)
&lt;br&gt;
&lt;br&gt;
So there ya go, a method to make PDFs out of a bunch of JPGs without stressing your system.
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
[1] This script can be modified so that it works on any image type that ImageMagick recognizes (which is a bunch).&lt;br&gt;
[2] If you don&#39;t want the rename part, just put a # in the front of that line (like line 1) before you run the script.
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;h8&gt;Want to discuss this?  Have a comment for the author?  Mosey on over to the &lt;a href=&quot;http://forum.novarata.net&quot;&gt;Novarata Forums&lt;/a&gt; and let us know what you think.&lt;/h8&gt;
&lt;br&gt;
&lt;hr&gt;&lt;/hr&gt;
&lt;br&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;script type=&quot;text/javascript&quot;&gt;&lt;!--
google_ad_client = &quot;ca-pub-7323415481446548&quot;;
/* 468x60, novarata-blog 11/6/09 */
google_ad_slot = &quot;0468646851&quot;;
google_ad_width = 468;
google_ad_height = 60;
//--&gt;
&lt;/script&gt;
&lt;script type=&quot;text/javascript&quot;
src=&quot;http://pagead2.googlesyndication.com/pagead/show_ads.js&quot;&gt;
&lt;/script&gt;
&lt;/td&gt;
&lt;td valign=&quot;middle&quot;&gt;&lt;script type=&#39;text/javascript&#39;&gt;
&lt;!--
clickochet_client = &#39;VC-9420392794190&#39;
clickochet_width = &#39;120&#39;
clickochet_height = &#39;90&#39;
clickochet_categories = &#39;3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25&#39;
clickochet_bg_color = &#39;FFFFFF&#39;
clickochet_border_color = &#39;AAAAFF&#39;
//--&gt;
&lt;/script&gt;
&lt;script type=&#39;text/javascript&#39; src=&#39;http://ad1.clickochet.com/getad.js&#39;&gt;&lt;/script&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
</description>
	</item>
	
	<item>
		<title>GNOME3 Hybrid DVD</title>
		<link>http://blog.novarata.net/GNOME3_Hybrid_DVD.php</link>
		<guid isPermaLink="true">http://blog.novarata.net/GNOME3_Hybrid_DVD.php</guid>
                <pubDate>Tue, 24 May 2011 03:56:58 GMT</pubDate>
		<description>&lt;div style=&quot;float: right; clear: left;&quot;&gt;&lt;IMG src=&quot;http://www.novarata.net/images/g/gnome3-dvd.jpg&quot; height=&quot;180&quot; width=&quot;240&quot; title=&quot;GNOME 3 Hybrid DVD&quot;&gt;&lt;/div&gt;
GNOME is a desktop environment / graphical user interface that runs on top of a computer operating system. It is composed entirely of free and open source software and was created by two Mexican programmers, Miguel de Icaza and Federico Mena. It is an international project that includes creating software development frameworks, selecting application software for the desktop, and working on the programs that manage application launching, file handling, and window and task management.
&lt;br&gt;
&lt;br&gt;
GNOME is part of the GNU Project and can be used with various Unix-like operating systems, most notably Linux and as part of the Java Desktop System in Solaris.
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
This is a live demonstrator of GNOME 3, and contains some freely licensed demo files, some of which are:
&lt;br&gt;
&lt;br&gt;
&lt;ul&gt;
&lt;li&gt;Movies: Sintel, Big Buck Bunny and the GNOME 3 videos from www.gnome3.org.&lt;/li&gt;
&lt;li&gt;Music: Out of it (by Brad Sucks), Breadcrumbs (by Josh Woodward), Orphan Songs (by Orphan Songs) and Accords et &amp;Acirc;mes (by ZAM&#39;S)&lt;/li&gt;
&lt;li&gt;Book: Producing Open Source Software.&lt;/li&gt;
&lt;li&gt;Pictures: several pictures from Flickr.&lt;/li&gt;
&lt;/ul&gt;
&lt;br&gt;
&lt;br&gt;
I couldn&#39;t find a torrent for this, so I made one: &lt;a href=&quot;http://www.novarata.net/files/files/GNOME_3-Hybrid-DVD.iso.torrent&quot; title=&quot;GNOME_3-Hybrid-DVD.iso.torrent&quot;&gt;GNOME_3-Hybrid-DVD.iso.torrent&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
&lt;a href=&quot;http://live.gnome.org/ThreePointZero/PromoDVD&quot; title=GNOME 3.0 Promo DVD&quot; target=&quot;_blank&quot;&gt;More info&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Spread the love, y&#39;all.
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;h8&gt;Want to discuss this?  Have a comment for the author?  Mosey on over to the &lt;a href=&quot;http://forum.novarata.net&quot;&gt;Novarata Forums&lt;/a&gt; and let us know what you think.&lt;/h8&gt;
&lt;br&gt;
&lt;hr&gt;&lt;/hr&gt;
&lt;br&gt;
&lt;div align=&quot;center&quot;&gt;
&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;&lt;SCRIPT Src=&quot;http://www.novarata.net/cgi-bin/aws/apf4_banner.cgi?Operation=ItemSearch&amp;SearchIndex=All&amp;Keywords=open+source+software&amp;input_output=javascript&quot;&gt;&lt;/script&gt;&lt;/td&gt;
&lt;td valign=&quot;middle&quot;&gt;&lt;script type=&#39;text/javascript&#39;&gt;
&lt;!--
clickochet_client = &#39;VC-9420392794190&#39;
clickochet_width = &#39;120&#39;
clickochet_height = &#39;90&#39;
clickochet_categories = &#39;3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,22,23,24,25&#39;
clickochet_bg_color = &#39;FFFFFF&#39;
clickochet_border_color = &#39;AAAAFF&#39;
//--&gt;
&lt;/script&gt;
&lt;script type=&#39;text/javascript&#39; src=&#39;http://ad1.clickochet.com/getad.js&#39;&gt;&lt;/script&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;
&lt;/div&gt;
</description>
	</item>
	
        </channel>
</rss>
