<?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>SpiderTaffy Blog</title>
	<atom:link href="http://spidertaffy.com/blog/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://spidertaffy.com/blog</link>
	<description>Advice from a casual coder, and linux nerd</description>
	<lastBuildDate>Sun, 12 Apr 2009 00:50:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Are you sure you&#8217;re httpd?</title>
		<link>http://spidertaffy.com/blog/?p=14</link>
		<comments>http://spidertaffy.com/blog/?p=14#comments</comments>
		<pubDate>Sat, 11 Apr 2009 21:36:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<guid isPermaLink="false">http://spidertaffy.com/blog/?p=14</guid>
		<description><![CDATA[To find all apache processes and make sure they&#8217;re running httpd do the following:
You should see an ouput of &#8220;PID: 1234 is running /usr/sbin/httpd or something similar. If you see /usr/bin/perl you may have a compromise on your hands.
for i in `ps -U48 &#124; awk '/\d/ {print $1}'`; do lsof -p$i &#124; awk '/txt/ {print [...]]]></description>
			<content:encoded><![CDATA[<p>To find all apache processes and make sure they&#8217;re running httpd do the following:</p>
<p>You should see an ouput of &#8220;PID: 1234 is running /usr/sbin/httpd or something similar. If you see /usr/bin/perl you may have a compromise on your hands.</p>
<p><code>for i in `ps -U48 | awk '/\d/ {print $1}'`; do lsof -p$i | awk '/txt/ {print "PID: "$2 " is running " $9}' ; done</code></p>
]]></content:encoded>
			<wfw:commentRss>http://spidertaffy.com/blog/?feed=rss2&amp;p=14</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simpleviewer pro + shadowbox</title>
		<link>http://spidertaffy.com/blog/?p=9</link>
		<comments>http://spidertaffy.com/blog/?p=9#comments</comments>
		<pubDate>Fri, 03 Apr 2009 23:39:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<guid isPermaLink="false">http://spidertaffy.com/blog/?p=9</guid>
		<description><![CDATA[Add Shadowbox to Simpleviewer pro dynamically!]]></description>
			<content:encoded><![CDATA[<p><a title="Click here to see the final result!" href="code/svsb" target="_blank">Click here to see the final result!</a></p>
<p><strong>Requirements:</strong></p>
<ul>
<li>swfobject.js</li>
<li>jquery.js</li>
<li>shadowbox-query.js</li>
<li>shadowbox.js</li>
<li>a.css</li>
<li>shadowbox.css</li>
<li>Flash editing application</li>
</ul>
<p><strong>Lets get started:</strong></p>
<ul>
<li>Open the file &#8220;ImageArea.as&#8221;</li>
</ul>
<p>on line 100, add the following line:<br />
<code>mClip_mc.onRelease =<br />
Delegate.create(this,openImageLink);</code><span> </span></p>
<p>on line 281 in the function &#8220;openImageLink&#8221; comment out the original<br />
&#8220;geturl&#8221; statement, and add the second one. <em>note: putting &#8220;//&#8221; will comment in an actionscript file.</em></p>
<p><em></em><br />
<code>//getURL(mXMLManager.imagePath +<br />
mXMLManager.imageFileNames[mCurrentImageIndex],"_blank");<br />
<span> </span><span> </span>getURL("javascript:abrirSB('img', '"+mXMLManager.title+"',<br />
'"+mXMLManager.imagePath +<br />
mXMLManager.imageFileNames[mCurrentImageIndex]+"')", "_self");</code></p>
<p> </p>
<ul>
<li>Save that file, and republish your fla file.</li>
<li>All of the files in the &#8220;inc&#8221; and &#8220;images&#8221; folder should be in your<br />
document root, (you should have the viewer.swf file, images folder, inc<br />
folder, and all those other folders in there.)</li>
<li>Edit your index.html file</li>
</ul>
<p>add the following to the &#8220;head&#8221; area:<br />
<code>&lt;script src="inc/swfobject.js" type="text/javascript"&gt;&lt;/script&gt;&lt;script src="inc/jquery.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script src="inc/shadowbox-jquery.js" type="text/javascript"&gt;&lt;/script&gt;  &lt;script src="inc/shadowbox.js" type="text/javascript"&gt;&lt;/script&gt; &lt;script type="text/javascript"&gt;&lt;!-- 		$(document).ready(function(){ 		    var options = { 		        resizeLgImages:     true, loadingImage: "images/loading.gif", 		        displayNav:         true, handleUnsupported: 'remove', 		        keysClose:          ['c', 27], // c or esc 		        autoplayMovies:     false 		    }; 		    Shadowbox.init(options); 		});  		function abrirSB(type, title, url) 			 { 			     Shadowbox.init({skipSetup: true}); 			     Shadowbox.open({type: type, title: title, content: url}); 		}; // --&gt;&lt;/script&gt;</code></p>
<p> </p>
<p>That should be it!</p>
<p>I know there are some problems with this method, it will not allow you to<br />
use the right and left buttons to change images, but it&#8217;s very nice<br />
functionality to have.</p>
<p>Please please support this great product, I modified this code with very<br />
little actionscript 2 knowledge, and it is very well documented in the<br />
sourcecode.</p>
<p>Let me know if you have any questions!</p>
]]></content:encoded>
			<wfw:commentRss>http://spidertaffy.com/blog/?feed=rss2&amp;p=9</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

