<?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>Karl Heinz Kremer&#039;s Ramblings &#187; Uncategorized</title>
	<atom:link href="http://www.khk.net/wordpress/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.khk.net/wordpress</link>
	<description>Stuff, stuff and more stuff</description>
	<lastBuildDate>Mon, 07 Jun 2010 13:25:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Developing Acrobat JavaScript on a MacBook</title>
		<link>http://www.khk.net/wordpress/2010/03/23/javascript-console/</link>
		<comments>http://www.khk.net/wordpress/2010/03/23/javascript-console/#comments</comments>
		<pubDate>Tue, 23 Mar 2010 17:58:20 +0000</pubDate>
		<dc:creator>khk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Acrobat]]></category>
		<category><![CDATA[adobe pdf]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[mac]]></category>

		<guid isPermaLink="false">http://www.khk.net/wordpress/?p=624</guid>
		<description><![CDATA[
			
				
			
		
Acrobat&#8217;s JavaScript is a great tool to extend the application, or to automate reoccurring tasks. There are several ways a JavaScript can be added to the application or a document (e.g. folder level scripts, validation scripts, event handling scripts, &#8230;), but regardless of how a script is written, chances are that the developer wants to [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.khk.net%2Fwordpress%2F2010%2F03%2F23%2Fjavascript-console%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.khk.net%2Fwordpress%2F2010%2F03%2F23%2Fjavascript-console%2F&amp;source=khkremer&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>Acrobat&#8217;s JavaScript is a great tool to extend the application, or to automate reoccurring tasks. There are several ways a JavaScript can be added to the application or a document (e.g. folder level scripts, validation scripts, event handling scripts, &#8230;), but regardless of how a script is written, chances are that the developer wants to test parts of the script in Acrobat&#8217;s Javascript console. This console window can be shown by either using the &#8220;Advanced>Document Processing>JavaScript Debugger&#8230;&#8221; menu item or Ctrl-J on Windows or Cmd-J on a Mac:</p>
<div style="text-align:center;"><img src="http://www.khk.net/wordpress/wp-content/uploads/2010/03/BlogPicsJS_Menu.png" alt="JS_Menu.png" border="0" width="400" /></div>
<p>After the console or debugger window comes up, the user can then enter Javascript and execute it&#8230; </p>
<div style="text-align:center;"><img src="http://www.khk.net/wordpress/wp-content/uploads/2010/03/BlogPicsJS_Debugger.png" alt="JS_Debugger.png" border="0" width="500" /></div>
<p>&#8230; that is, as long as a full keyboard with a numeric keypad is used. In Adobe&#8217;s documentation, we find the following <a href="http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_Dev_Tools.72.4.html">instructions to execute Javascript typed into the console window</a>:</p>
<p>
The JavaScript console allows you to evaluate single or multiple lines of code. There are three ways to evaluate JavaScript code while using the interactive console:</p>
<ul>
<li>To evaluate a portion of a line of code, highlight the portion and press either the Enter key on the numeric keypad or press Ctrl + Enter.</li>
<li>To evaluate a single line of code, make sure the cursor is positioned on that line and press either the Enter key on the numeric keypad or press Ctrl + Enter.</li>
<li>To evaluate multiple lines of code, highlight those lines and press either the Enter key on the numeric keypad or press Ctrl + Enter.</li>
</ul>
<p>That works fine as long as you have access to the numeric keypad, but on a MacBook or a MacBook Pro without that keypad. No key combination involving fn, ctrl, cmd or option with the Return or Enter key will result in the Javascript getting executed. </p>
<p>The virtual keyboard to the rescue: Mac OS comes with a handy keyboard viewer that allows us to send the correct key code to the application. To bring up the keyboard viewer, bring up the Mac OS System Preferences first and select the &#8220;Keyboard&#8221; category:</p>
<div style="text-align:center;"><img src="http://www.khk.net/wordpress/wp-content/uploads/2010/03/BlogPicsKeyboardViewer_1.png" alt="KeyboardViewer_1.png" border="0" width="500" /></div>
<p>Make sure that the option &#8220;Show Keyboard &#038; Character Viewer in menu bar&#8221; is selected. Once this is done, you can access the keyboard viewer from the menu bar:</p>
<div style="text-align:center;"><img src="http://www.khk.net/wordpress/wp-content/uploads/2010/03/BlogPicsKeyboardViewer_2.png" alt="KeyboardViewer_2.png" border="0" width="244" height="118" /></div>
<p>Now comes the tricky part: Write some Javascript in the console window and place the cursor on the line you want to execute or select the snippet of the Javascript that should be executed. In the following example I&#8217;m using code from <a href="http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.151.html">Adobe&#8217;s Javascript API documentation</a>:</p>
<p><pre><pre>
&nbsp;&nbsp;var menuItems = app.listMenuItems()
&nbsp;&nbsp;for( var i in menuItems)
&nbsp;&nbsp;&nbsp;&nbsp;console.println(menuItems[i] + &quot;\n&quot;)
</pre></pre></p>
<p>With the console prepped, bring up the keyboard viewer and start pushing keys &#8211; real keys that is: Hold down the &#8220;fn&#8221; and the &#8220;control&#8221; key, then move the mouse pointer to the &#8220;Enter&#8221; key on the keyboard viewer and click it&#8230;</p>
<div style="text-align:center;"><img src="http://www.khk.net/wordpress/wp-content/uploads/2010/03/BlogPicsJS_Debugger_6.png" alt="JS_Debugger_6.png" border="0" width="500" /></div>
<p>&#8230; and voila, the script gets executed:</p>
<div style="text-align:center;"><img src="http://www.khk.net/wordpress/wp-content/uploads/2010/03/BlogPicsJS_Debugger_7.png" alt="JS_Debugger_7.png" border="0" width="500"/></div>
<p>This is not the most straight forward method, but at least it&#8217;s possible to use the Javascript console to execute code when using a MacBook. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.khk.net/wordpress/2010/03/23/javascript-console/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My Review of Celestron Astro Solar Film Filter for C5&#8242;S &amp; Nextstar 5 Telescopes.</title>
		<link>http://www.khk.net/wordpress/2008/09/04/my-review-of-celestron-astro-solar-film-filter-for-c5s-nextstar-5-telescopes/</link>
		<comments>http://www.khk.net/wordpress/2008/09/04/my-review-of-celestron-astro-solar-film-filter-for-c5s-nextstar-5-telescopes/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 15:20:29 +0000</pubDate>
		<dc:creator>khk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://khk.net/wordpress/2008/09/04/my-review-of-celestron-astro-solar-film-filter-for-c5s-nextstar-5-telescopes/</guid>
		<description><![CDATA[
			
				
			
		
This is a review that I submitted to Adorama about a solar filter that I bought from them. As is pretty obvious, I&#8217;m not too happy with that product. It is actually pretty simple to make a filter (direct link to PDF file). Next time, I&#8217;ll go that route and not risk my only good [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.khk.net%2Fwordpress%2F2008%2F09%2F04%2Fmy-review-of-celestron-astro-solar-film-filter-for-c5s-nextstar-5-telescopes%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.khk.net%2Fwordpress%2F2008%2F09%2F04%2Fmy-review-of-celestron-astro-solar-film-filter-for-c5s-nextstar-5-telescopes%2F&amp;source=khkremer&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>This is a review that I submitted to Adorama about a solar filter that I bought from them. As is pretty obvious, I&#8217;m not too happy with that product. It is actually <a href="http://www.astro-physics.com/index.htm?products/accessories/solar_acc/astrosolar">pretty simple to make a filter</a> (<A HREF="http://www.astro-physics.com/products/accessories/solar_acc/make_sol.pdf">direct link to PDF file</A>). Next time, I&#8217;ll go that route and not risk my only good eye&#8230; </p>
<p>Oh, and the formatting is horrible, it&#8217;s what Adorama&#8217;s system came up with. </p>
<div class="hreview">
<div class="item">
<p><a href="http://www.adorama.com/CNSFC5.html">Originally submitted at Adorama</a></p>
<div><img class="photo" style="margin: 0 0.5em 0 0" src="http://images.powerreviews.com/images_products/02/05/166474_100.jpg" alt="" align="left" /></p>
<p style="margin-top:0">Celestron Astro Solar Film Filter for C5&#8242;S &amp; Nextstar 5 Telescopes.</p>
</div>
<p><a class="url fn" style="display: none;" href="http://www.adorama.com/CNSFC5.html"><span class="fn">Celestron Astro Solar Film Filter for C5&#8242;S &amp; Nextstar 5 Telescopes.</span></a></p>
</div>
<p>Â </p>
<p><strong>Could be Dangerous!</strong></p>
<div>By <strong>khkremer</strong> from <strong>Rochester, NY</strong> on <strong><abbr class="dtreviewed" style="border: none; text-decoration: none;" title="200894T1200-0800">9/4/2008</abbr></strong></div>
<p>Â </p>
<div class="prStars prStarsSmall" style="margin: 0.5em 0; height: 15px; width: 83px; background-image: url(http://images.powerreviews.com/images/stars_small.gif); background-position: 0px -72px;">Â </div>
<p>Â </p>
<div style="display: none"><span class="rating">2</span>out of 5</div>
<p><strong>Pros: </strong>It works</p>
<p><strong>Cons: </strong>Dangerous</p>
<p><strong>Best Uses: </strong>Astronomy</p>
<p><strong>Describe Yourself: </strong>Casual/ Recreational</p>
<p class="description" style="margin-top:1em">The filter works, no question about that. When the filter is on the scope, aimed at the sun, the filter gets of course warm. This will soften the glue that holds the foil to the ring. There is no reinforcement on the back of the ring to hold the filter in place. Once the glue lets go of the foil, it will flap in the wind and can potentially expose the eye to direct sunlight. This is very dangerous, and I have a hard time recommending this filter to anybody.</p>
<p>Once the foil is pressed on the ring again, the glue will stick again. The question is just for how long.</p>
<p>Celestron either has to use a different adhesive, or reinforce the foil on the back so that the filter stays in place even if some of the glue comes off.</p>
<p style="margin-top:0.5em">(<a rel="license" href="http://www.powerreviews.com/legal/terms_of_use.html">legalese</a>)</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.khk.net/wordpress/2008/09/04/my-review-of-celestron-astro-solar-film-filter-for-c5s-nextstar-5-telescopes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Are Spammers Getting Lazy?</title>
		<link>http://www.khk.net/wordpress/2008/07/18/are-spammers-getting-lazy/</link>
		<comments>http://www.khk.net/wordpress/2008/07/18/are-spammers-getting-lazy/#comments</comments>
		<pubDate>Fri, 18 Jul 2008 12:37:52 +0000</pubDate>
		<dc:creator>khk</dc:creator>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://khk.net/wordpress/?p=157</guid>
		<description><![CDATA[
			
				
			
		
A Spam email without the message body? How am I supposed to buy stuff from them &#8211; or claim the price I won?

]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.khk.net%2Fwordpress%2F2008%2F07%2F18%2Fare-spammers-getting-lazy%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.khk.net%2Fwordpress%2F2008%2F07%2F18%2Fare-spammers-getting-lazy%2F&amp;source=khkremer&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>A Spam email without the message body? How am I supposed to buy stuff from them &#8211; or claim the price I won?</p>
<p><a href="http://khk.net/wordpress/wp-content/uploads/2008/07/lazyspam_800px.png"><img class="aligncenter size-medium wp-image-159" title="lazyspam_800px" src="http://khk.net/wordpress/wp-content/uploads/2008/07/lazyspam_800px.png" alt="Lazy Spammer" class="flickr" width="500" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.khk.net/wordpress/2008/07/18/are-spammers-getting-lazy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Lilac Festival</title>
		<link>http://www.khk.net/wordpress/2008/05/10/lilac-festival/</link>
		<comments>http://www.khk.net/wordpress/2008/05/10/lilac-festival/#comments</comments>
		<pubDate>Sun, 11 May 2008 02:15:44 +0000</pubDate>
		<dc:creator>khk</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://khk.net/wordpress/?p=135</guid>
		<description><![CDATA[
			
				
			
		
I did not know they eat lilacs&#8230;

This groundhog was climbing up a lilac bush to reach to good parts&#8230; Does that make it a treehog?
(From my trip to the Lilac Festival 2008 in Rochester, NY)
]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: left; margin-right: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.khk.net%2Fwordpress%2F2008%2F05%2F10%2Flilac-festival%2F"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.khk.net%2Fwordpress%2F2008%2F05%2F10%2Flilac-festival%2F&amp;source=khkremer&amp;style=normal" height="61" width="50" /><br />
			</a>
		</div>
<p>I did not know they eat lilacs&#8230;</p>
<p><a title="View 'Lilac Festival' on Flickr.com" href="http://www.flickr.com/photos/68335338@N00/2481344443"><img src="http://static.flickr.com/2192/2481344443_e7e97dd3fc.jpg" class="flickr" alt="Lilac Festival" /></a></p>
<p>This groundhog was climbing up a lilac bush to reach to good parts&#8230; Does that make it a treehog?</p>
<p>(From my trip to the <a href="http://www.lilacfestival.com/">Lilac Festival 2008 in Rochester, NY</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.khk.net/wordpress/2008/05/10/lilac-festival/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
