<?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>snipeworld.com &#187; All &amp; nothing</title>
	<atom:link href="http://snipeworld.com/category/all_nothing/feed/" rel="self" type="application/rss+xml" />
	<link>http://snipeworld.com</link>
	<description>The right man in the right place</description>
	<lastBuildDate>Mon, 28 Jun 2010 05:51:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Basic Authentication in Pylons</title>
		<link>http://snipeworld.com/2009/02/27/basic-auth-in-pylons/</link>
		<comments>http://snipeworld.com/2009/02/27/basic-auth-in-pylons/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 07:19:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[All & nothing]]></category>

		<guid isPermaLink="false">http://snipeworld.com/?p=51</guid>
		<description><![CDATA[I had to create basic authentication in my project(based on Pylons), and this is simple solution to do it.
First, you have to open your config/middleware.py. It&#8217;s necessary to import AuthBasicHandler: from paste.auth.basic import AuthBasicHandler.
Next step is find &#8216;app = PylonsApp()&#8216;. Change this line to: ap = PylonsApp() and add after: app = AuthBasicHandler(ap, &#8220;My realm&#8221;, [...]]]></description>
			<content:encoded><![CDATA[<p>I had to create <a href="http://en.wikipedia.org/wiki/Basic_access_authentication"><em>basic authentication</em></a> in my project(based on <a href="http://pylonshq.com">Pylons</a>), and this is simple solution to do it.</p>
<p>First, you have to open your <strong>config/middleware.py</strong>. It&#8217;s necessary to import AuthBasicHandler: <strong>from paste.auth.basic import AuthBasicHandler</strong>.</p>
<p>Next step is find &#8216;<strong>app = PylonsApp()</strong>&#8216;. Change this line to: <strong>ap = PylonsApp()</strong> and add after: <strong>app = AuthBasicHandler(ap, &#8220;My realm&#8221;, authfunc)</strong>. Of course you need to create <em>auth function</em>, for example:</p>
<pre>
def authfunc(environ, username, password):
    if username == 'myusername' and password == 'mypassword':
        return True
    else:
        return False
</pre>
<p>Restart your application environment.</p>
<p>That&#8217;s it <img src='http://snipeworld.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://snipeworld.com/2009/02/27/basic-auth-in-pylons/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to add logo to Lightbox v2.0</title>
		<link>http://snipeworld.com/2009/01/19/how-to-add-logo-lightbox/</link>
		<comments>http://snipeworld.com/2009/01/19/how-to-add-logo-lightbox/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 22:36:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[All & nothing]]></category>

		<guid isPermaLink="false">http://snipeworld.com/?p=3</guid>
		<description><![CDATA[Open lightbox.js in your editor:

Find line:

objOuterImageContainer.appendChild(objImageContainer); 

and after add:

objLogoImageContainer = document.createElement("div");  
objLogoImageContainer.setAttribute('id','imageLogo');  
objImageContainer.appendChild(objLogoImageContainer);

Next create file called lightbox.css - responsible for showing logo:

#imageLogo {  
position: absolute;  
background: url(../images/some_image.png) no-repeat;  
width: 100px;  
height: 35px;  
border: 0px;
}

Path in the "background: url" is image's place on server. Parameters width and height are size of logo.

On the main page our website we have to add link to css file:

<link rel="stylesheet" href="css/lightbox_logo.css" type="text/css" />

And that's all. Everything should work fine. If you have some problems, just leave a comment :)]]></description>
			<content:encoded><![CDATA[<p>Several days ago I have found a commision about adding logo to Lightbox v2.0. I am not a CSS and JS/DOM specialist, but solution, which I will introduce is really simple to implement. I omit the process of installation Lightbox, because everybody can find this information on internet. Now it&#8217;s time to install our logo in Ligtbox application.</p>
<p><span><span><br />
</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://snipeworld.com/2009/01/19/how-to-add-logo-lightbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
