<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Robson Dantas Lab</title>
	<atom:link href="http://rlabs.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rlabs.wordpress.com</link>
	<description>Everything related to project management, programming languages, computers and gadgets</description>
	<lastBuildDate>Tue, 22 Feb 2011 12:44:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='rlabs.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Robson Dantas Lab</title>
		<link>http://rlabs.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://rlabs.wordpress.com/osd.xml" title="Robson Dantas Lab" />
	<atom:link rel='hub' href='http://rlabs.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Where does Google AppEngine store cookie files to authenticate users ?</title>
		<link>http://rlabs.wordpress.com/2009/04/14/where-does-google-appengine-store-cookie-files-to-authenticate-users/</link>
		<comments>http://rlabs.wordpress.com/2009/04/14/where-does-google-appengine-store-cookie-files-to-authenticate-users/#comments</comments>
		<pubDate>Tue, 14 Apr 2009 14:48:28 +0000</pubDate>
		<dc:creator>robson83</dc:creator>
				<category><![CDATA[Google AppEngine]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[appengine]]></category>
		<category><![CDATA[appengine cookie file]]></category>
		<category><![CDATA[appengine cookie_jar]]></category>
		<category><![CDATA[appengine error 403]]></category>
		<category><![CDATA[cookie]]></category>

		<guid isPermaLink="false">http://rlabs.wordpress.com/?p=24</guid>
		<description><![CDATA[I have some appengine accounts and when was trying to update an application, typed a wrong e-mail/password. The error message I was getting, obviously, was related to permissions to modify the app, something like: File &#8220;C:\Python25\lib\urllib2.py&#8221;, line 360, in _call_chain result = func(*args) File &#8220;C:\Python25\lib\urllib2.py&#8221;, line 506, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rlabs.wordpress.com&amp;blog=7142944&amp;post=24&amp;subd=rlabs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I have some appengine accounts and when was trying to update an application, typed a wrong e-mail/password. The error message I was getting, obviously, was related to permissions to modify the app, something like:</p>
<p><em> File &#8220;C:\Python25\lib\urllib2.py&#8221;, line 360, in _call_chain<br />
result = func(*args)<br />
File &#8220;C:\Python25\lib\urllib2.py&#8221;, line 506, in http_error_default<br />
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)<br />
HTTPError: HTTP Error 403: Forbidden<br />
Error 403: &#8212; begin server output &#8212;<br />
You do not have permission to modify this app (app_id=u&#8217;myapp&#8217;).<br />
&#8212; end server output &#8212;</em></p>
<p>Ok&#8230; If you faced this problem, it´s easy to solve. Just change your command line argument to skip cookies, and then, pass your right e-mail address. Example:</p>
<p><em>prompt&gt; appcfg.py &#8211;email=myemail@server.com.br &#8211;no_cookies update .</em></p>
<p>This line will make appcfg.py ask you the password for the user myemail@server.com.br.</p>
<p>But it was annoying me, everytime doing this thing. As always I do, I want to figure out where the cookie file was saved, to see how it works, of course, and then kill the file. After browsing appengine_rpc.py, I realized that Google is using cookie_jar lib and on line 365 they´re setting the filename variable:</p>
<pre>if self.save_cookies:
      self.cookie_jar.filename = os.path.expanduser(
          HttpRpcServer.DEFAULT_COOKIE_FILE_PATH)</pre>
<p>I just pointed a print and found where it is! It´s located under your <em>home profile/.appcfg_cookies</em> file. On my windows box, located on<em> c:\documents and settings\robson\.appcfg_cookies</em> and on my linux bok located on<em> /home/robson/.appcfg_cookies</em>.</p>
<p>Hope someone from Google implement a better mechanism to improve it.</p>
<p>-Robson Dantas<br />
Now with Java Appengine account!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rlabs.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rlabs.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rlabs.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rlabs.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rlabs.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rlabs.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rlabs.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rlabs.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rlabs.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rlabs.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rlabs.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rlabs.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rlabs.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rlabs.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rlabs.wordpress.com&amp;blog=7142944&amp;post=24&amp;subd=rlabs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rlabs.wordpress.com/2009/04/14/where-does-google-appengine-store-cookie-files-to-authenticate-users/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca2240e4b378cd937fb52712f54cc718?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robson83</media:title>
		</media:content>
	</item>
		<item>
		<title>Python: closing logging file (logging.getLogger)</title>
		<link>http://rlabs.wordpress.com/2009/04/09/python-closing-logging-file-getlogger/</link>
		<comments>http://rlabs.wordpress.com/2009/04/09/python-closing-logging-file-getlogger/#comments</comments>
		<pubDate>Thu, 09 Apr 2009 19:46:20 +0000</pubDate>
		<dc:creator>robson83</dc:creator>
				<category><![CDATA[Programming languages]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[close python logfile]]></category>
		<category><![CDATA[closing logging.getLogger]]></category>
		<category><![CDATA[logging.getlogger close]]></category>

		<guid isPermaLink="false">http://rlabs.wordpress.com/?p=22</guid>
		<description><![CDATA[This one was a bit hard to figure out. I´m doing some spiders and using logging.getLogger interface to make a good log file. I´m calling on wrapper to generate a log file, and calling this wrapper twice, makes the logger generate duplicated lines. Just to make the things a bit clear, take a look at [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rlabs.wordpress.com&amp;blog=7142944&amp;post=22&amp;subd=rlabs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This one was a bit hard to figure out. I´m doing some spiders and using logging.getLogger interface to make a good log file.</p>
<p>I´m calling on wrapper to generate a log file, and calling this wrapper twice, makes the logger generate duplicated lines.</p>
<p>Just to make the things a bit clear, take a look at this routine:</p>
<pre>import logging
import logging.handlers
def makelog(filepath):

	logger = logging.getLogger('applog')

	# remove diretorio
	dir = os.path.split(filepath)
	dir = diretorio[0]

	# cria dir tree
	if not os.path.exists(dir):
		os.makedirs( dir )

	# rotate 2mb de log, in 5 files
	hdl = logging.handlers.RotatingFileHandler(
              filepath, maxBytes=2097152, backupCount=5)

	formatter = logging.Formatter('%(asctime)s %(module)s, line %(lineno)d %(levelname)s %(message)s')
	hdl.setFormatter(formatter)

	logger.addHandler(hdl)
	logger.setLevel(logging.DEBUG)

	return logger</pre>
<p>Now, make two different classes and call this function. Even though destroying the class and calling the other one, the records will be duplicated during your second call.</p>
<p>To make it work, it´s a bit complicated to find, and here is the solution:</p>
<p>Inside your __del__(self) function, include:</p>
<pre>x = logging._handlers.copy()
for i in x:
	log.removeHandler(i)
	i.flush()
	i.close()</pre>
<p>PS: I´m supposing that &#8220;log&#8221; is your return for the function, your in other words, the result of logging.getLogger(..) .</p>
<p>I hope it saves some hours of your work <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>-Robson</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rlabs.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rlabs.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rlabs.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rlabs.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rlabs.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rlabs.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rlabs.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rlabs.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rlabs.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rlabs.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rlabs.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rlabs.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rlabs.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rlabs.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rlabs.wordpress.com&amp;blog=7142944&amp;post=22&amp;subd=rlabs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rlabs.wordpress.com/2009/04/09/python-closing-logging-file-getlogger/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca2240e4b378cd937fb52712f54cc718?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robson83</media:title>
		</media:content>
	</item>
		<item>
		<title>Writing a python proxy to make ajax call on other domain (cross domain ajax request)</title>
		<link>http://rlabs.wordpress.com/2009/04/01/writing-a-python-proxy-to-make-ajax-call-on-other-domain-cross-domain-ajax-request/</link>
		<comments>http://rlabs.wordpress.com/2009/04/01/writing-a-python-proxy-to-make-ajax-call-on-other-domain-cross-domain-ajax-request/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 18:03:42 +0000</pubDate>
		<dc:creator>robson83</dc:creator>
				<category><![CDATA[Google AppEngine]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[appengine crossdomain]]></category>
		<category><![CDATA[crossdomain ajax appengine]]></category>
		<category><![CDATA[json query other domain]]></category>
		<category><![CDATA[python crossdomain ajax]]></category>

		<guid isPermaLink="false">http://rlabs.wordpress.com/?p=17</guid>
		<description><![CDATA[Have you had problems to make ajax calls from one domain to other ? Maybe yes. Since browsers do not allow to make ajax call from other domains (you´ll get some errors related to security issues), you can make a workaround to enable cross domain ajax queries. I wrote a small piece of code using [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rlabs.wordpress.com&amp;blog=7142944&amp;post=17&amp;subd=rlabs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Have you had problems to make ajax calls from one domain to other ? Maybe yes.</p>
<p>Since browsers do not allow to make ajax call from other domains (you´ll get some errors related to security issues), you can make a workaround to enable cross domain ajax queries.</p>
<p>I wrote a small piece of code using python and google appengine to show how to do that. It´s quite simple, take a look&#8230;</p>
<pre>
<ol>
<li>-*- coding: utf-8 -*-</li>
</ol>

import cgi
import urllib
import httplib
from google.appengine.ext import webapp
from google.appengine.api import urlfetch
from google.appengine.ext.webapp.util import run_wsgi_app

class ProxyController(webapp.RequestHandler):

	def doProxy(self, p, urlmethod)

		location=''
		page = self.response.out

		if p.get('a','') == '':
			page.write("page not found on query string")
		else:

			""" just a simple concatenation, just to make sure the file is a .php """
			location = p['a'] + '.php'
			p['a']=''

			""" encode params received from url """
			params=urllib.urlencode(p)

			""" concatenate params with the destination """
			location+='?'+params

			"""fetch data using urlfech. I´ve hard coded the other domain, just to prevent url injection
			you can change something here"""
			result = urlfetch.fetch(url = "http://www.otherdomain.com/" + location, method = urlmethod) 

			""" print out the response. I usually dump json, so i can parse it easily """
			self.response.out.write(result.content)

	""" handles get requisitions """
	def get(self):
		self.doProxy(self.request.str_GET,urlfetch.GET)

	""" handles post requisitions"""
	def post(self):
		self.doProxy(self.request.str_POST,urlfetch.POST)

"""
Some explanation:
To make it work, just point to the address http://www.mydomain.com/jsonProxy?a=somepage&amp;param=1&amp;param2=something

 ProxyController will call http://www.otherdomain.com/somepage.php and pass the other parameters on the query string using urlfetch.
After fetching, it will print the string and then you can use on your javascript.
application = webapp.WSGIApplication([('/jsonProxy', ProxyController)],debug=True)
"""
def main():
	run_wsgi_app(application)

if __name__ == "__main__":
	main()
</pre>
<p>Now you just have to edit a bit the code and make it work for you. It´s simple, as I said above, but it states how to solve the crossdomain problem, using a proxy which will make the work for you. Just remember that you need to put this wrapper on the same domain which you are using your javascripts, or whatever.</p>
<p>-Robson</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rlabs.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rlabs.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rlabs.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rlabs.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rlabs.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rlabs.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rlabs.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rlabs.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rlabs.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rlabs.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rlabs.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rlabs.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rlabs.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rlabs.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rlabs.wordpress.com&amp;blog=7142944&amp;post=17&amp;subd=rlabs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rlabs.wordpress.com/2009/04/01/writing-a-python-proxy-to-make-ajax-call-on-other-domain-cross-domain-ajax-request/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca2240e4b378cd937fb52712f54cc718?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robson83</media:title>
		</media:content>
	</item>
		<item>
		<title>Fixing appengine error: no matching index found. This query needs this index</title>
		<link>http://rlabs.wordpress.com/2009/04/01/fixing-appengine-error-no-matching-index-found-this-query-needs-this-index/</link>
		<comments>http://rlabs.wordpress.com/2009/04/01/fixing-appengine-error-no-matching-index-found-this-query-needs-this-index/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 01:33:17 +0000</pubDate>
		<dc:creator>robson83</dc:creator>
				<category><![CDATA[Google AppEngine]]></category>
		<category><![CDATA[Programming languages]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[appengine]]></category>
		<category><![CDATA[appengine no matching index]]></category>
		<category><![CDATA[error appengine]]></category>
		<category><![CDATA[update index appengine]]></category>

		<guid isPermaLink="false">http://rlabs.wordpress.com/?p=14</guid>
		<description><![CDATA[Google AppEngine is really cool. You can host your app in few steps,  easy to setup, free, and allows you to develop web applications using Python, Django and Google Datastore. I&#8217;ve played a while with AppEngine, helping another projects, setting up my stuff there and got lots of tricks to help another users. Today (March [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rlabs.wordpress.com&amp;blog=7142944&amp;post=14&amp;subd=rlabs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Google AppEngine is really cool. You can host your app in few steps,  easy to setup, free, and allows you to develop web applications using Python, Django and Google Datastore.</p>
<p>I&#8217;ve played a while with AppEngine, helping another projects, setting up my stuff there and got lots of tricks to help another users. Today (March 31, 2009) I faced a small problem, related to index.</p>
<p>I was executing a query on my website, and got an error:  <em>no matching index found. This query needs this index - kind: Comments properties: &#8211; name: page &#8211; name: data_issued direction: desc.</em></p>
<p>What went wrong ? Appengine tries to make everything for you, but depending on the way you execute the Gql, you need to edit index.yaml adding some information to make it work. The query which I was executing is something like: <em>db.GqlQuery(&#8220;SELECT * from Comments where page=:1 order by date_issued&#8221;). </em>Since I don&#8217;t have any index which matches with the filter page=something, order by date, it gives me an error.</p>
<p>To fix, just edit index.yaml, adding:</p>
<p>- kind: Comments<br />
properties:<br />
- name: page<br />
- name: data_issued<br />
direction: desc</p>
<p>After that, resync the index, using: <em>appcfg.py update_indexes .</em></p>
<p>Now you&#8217;ll be able to run your query <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Have any questions ? ask here.</p>
<p>-Robson</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rlabs.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rlabs.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rlabs.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rlabs.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rlabs.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rlabs.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rlabs.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rlabs.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rlabs.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rlabs.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rlabs.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rlabs.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rlabs.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rlabs.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rlabs.wordpress.com&amp;blog=7142944&amp;post=14&amp;subd=rlabs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rlabs.wordpress.com/2009/04/01/fixing-appengine-error-no-matching-index-found-this-query-needs-this-index/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca2240e4b378cd937fb52712f54cc718?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robson83</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting up OSDE on Windows with Eclipse 3.4.2 and Java 1.6</title>
		<link>http://rlabs.wordpress.com/2009/03/30/setting-up-osde-on-windows-with-eclipse-342-and-java-16/</link>
		<comments>http://rlabs.wordpress.com/2009/03/30/setting-up-osde-on-windows-with-eclipse-342-and-java-16/#comments</comments>
		<pubDate>Mon, 30 Mar 2009 17:52:23 +0000</pubDate>
		<dc:creator>robson83</dc:creator>
				<category><![CDATA[Opensocial]]></category>
		<category><![CDATA[Opensocial plugins]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[fixing osde exceptions]]></category>
		<category><![CDATA[how to setup osde]]></category>
		<category><![CDATA[osde eclipse 3.4.2]]></category>
		<category><![CDATA[setup osde windows]]></category>

		<guid isPermaLink="false">http://rlabs.wordpress.com/?p=7</guid>
		<description><![CDATA[As I´ve mentioned on my &#8220;about&#8221; page, I´m a Opensocial Guru, as described on Google Page.To support some projects, helping to test and so on, I decided to setup the OSDE (Opensocial Development Environment) project, a brilliant project developed by Yoichiro &#8211; another opensocial guru from Japan. The steps to setup this plugin is really [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rlabs.wordpress.com&amp;blog=7142944&amp;post=7&amp;subd=rlabs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>As I´ve mentioned on my &#8220;about&#8221; page, I´m a Opensocial Guru, <a href="http://groups.google.com/group/opensocial?pli=1" target="_blank">as described on Google Page</a>.To support some projects, helping to test and so on, I decided to setup the <a href="http://code.google.com/p/opensocial-development-environment/" target="_blank">OSDE (Opensocial Development Environment) project</a>, a brilliant project developed by Yoichiro &#8211; another opensocial guru from Japan.</p>
<p>The steps to setup this plugin is really easy, but make it work under my windows box was really hard. After adjusting things and asking Yoichiro to help, I finally could make it work.</p>
<p>My environment:</p>
<ul>
<li>Windows Xp Pro &#8211; SP 3;</li>
<li>Java SDK version 1.6.0_12;</li>
<li>Eclipse 3.4.2</li>
</ul>
<p>Setup steps:</p>
<ul>
<li>After installing the required software, open Eclipse and point to Help-&gt;Software Updates;<a title="Software update" href="http://lh5.ggpht.com/_fs_Ln-StO8E/SdEDxUeuPSI/AAAAAAAABPs/g3A2I3A46tY/s800/1.jpg" target="_blank"><img title="Software updates" src="http://lh5.ggpht.com/_fs_Ln-StO8E/SdEDxUeuPSI/AAAAAAAABPs/g3A2I3A46tY/s512/1.jpg?imgmax=512" alt="Software updates" /><br />
</a></li>
<li>Select &#8220;Available Software&#8221; tab and click on &#8220;Add site&#8221; on your right;<a title="Adding OSDE plugin to eclipse" href="http://lh3.ggpht.com/_fs_Ln-StO8E/SdEDzI4ZOwI/AAAAAAAABQE/6f3M9SjpnI4/s800/2.jpg" target="_blank"><img title="Installing OSDE" src="http://lh3.ggpht.com/_fs_Ln-StO8E/SdEDzI4ZOwI/AAAAAAAABQE/6f3M9SjpnI4/s512/2.jpg?imgmax=512" alt="Installing OSDE" /></a></li>
<li>Type <img src="/DOCUME~1/Q10/LOCALS~1/Temp/moz-screenshot.jpg" alt="" /><em>http://opensocial-development-environment.googlecode.com/svn/update-site/site.xml</em> on location field and click Ok;</li>
<li>Mark OSDE checkbox and click &#8220;Install&#8221; on your right. Just wait it finish and Eclipse will restart. It took about 5 minutes on a 3Mbps connection;</li>
</ul>
<p>Here goes the tricks:</p>
<ul>
<li>Make sure you have installed at least the version 0.2.5 of OSDE. Yoichiro fixed one problem when I asked for help;</li>
<li>Create a new OSDE project, and switch your workspace to a directory which doesn&#8217;t contain any spaces on its name. On windows box, it assumes c:\documents and settings\user\local settings\temp and makes OSDE fail. I changed my workspace to c:\temp;</li>
<li>Point to windows-&gt;preferences and choose OSDE on your left. Change &#8220;<em>Jetty context directory</em>&#8221; and &#8220;<em>Shindig Database directory</em>&#8221; to anywhere on c:\temp or other dir without spaces;<a title="Windows Preferences" href="http://lh3.ggpht.com/_fs_Ln-StO8E/SdEDt6nS0kI/AAAAAAAABPE/tfaUPzfOf6k/s800/3.jpg" target="_blank"><img title="Changing OSDE directory" src="http://lh3.ggpht.com/_fs_Ln-StO8E/SdEDt6nS0kI/AAAAAAAABPE/tfaUPzfOf6k/s512/3.jpg?imgmax=512" alt="Changing OSDE directory" /></a><a title="OSDE preferences" href="http://lh4.ggpht.com/_fs_Ln-StO8E/SdEDukKkS8I/AAAAAAAABPM/5o81cMD5Cg4/s800/4.jpg" target="_blank"><img title="Chaning Jetty and H2 path" src="http://lh4.ggpht.com/_fs_Ln-StO8E/SdEDukKkS8I/AAAAAAAABPM/5o81cMD5Cg4/s512/4.jpg?imgmax=512" alt="Chaning Jetty and H2 path" /></a></li>
<li>Right click on gadgets.xml, choose &#8220;Run as-&gt;Run configuration&#8221;.  Click on &#8220;Apache Shindig&#8221; and after the &#8220;Arguments&#8221; tab. Change the last few words to point to the temp directory. Repeat the same step for &#8220;Shindig Database&#8221;, just below &#8220;Apache Shindig&#8221;;<a title="OSDE shindig configurations" href="http://lh6.ggpht.com/_fs_Ln-StO8E/SdEDvcXHU7I/AAAAAAAABPU/a0p3B6y529g/s800/5.jpg" target="_blank"><img title="Editing running configuration" src="http://lh6.ggpht.com/_fs_Ln-StO8E/SdEDvcXHU7I/AAAAAAAABPU/a0p3B6y529g/s512/5.jpg?imgmax=512" alt="Editing running configuration" /></a><a title="Apache shindig arguments on OSDE" href="http://lh3.ggpht.com/_fs_Ln-StO8E/SdEDwGFVXHI/AAAAAAAABPc/P--bppt1S0I/s800/6.jpg" target="_blank"><img title="Changing arguments for apache shindig" src="http://lh3.ggpht.com/_fs_Ln-StO8E/SdEDwGFVXHI/AAAAAAAABPc/P--bppt1S0I/s512/6.jpg?imgmax=512" alt="Changing arguments for apache shindig" /></a><a title="Apache shindig database arguments" href="http://lh4.ggpht.com/_fs_Ln-StO8E/SdEDwoDo4tI/AAAAAAAABPk/Z33IOjDhj68/s800/7.jpg" target="_blank"><img title="Changing arguments for shindig database" src="http://lh4.ggpht.com/_fs_Ln-StO8E/SdEDwoDo4tI/AAAAAAAABPk/Z33IOjDhj68/s512/7.jpg?imgmax=512" alt="Changing arguments for shindig database" /></a></li>
<li>Start the apache shindig server, clicking on the green button on the toolbar;<a title="Starting shindig on OSDE" href="http://lh5.ggpht.com/_fs_Ln-StO8E/SdEDyfCWnPI/AAAAAAAABP8/QrF0RRSdRlk/s800/9.jpg" target="_blank"><img title="Starting shindig on OSDE" src="http://lh5.ggpht.com/_fs_Ln-StO8E/SdEDyfCWnPI/AAAAAAAABP8/QrF0RRSdRlk/s512/9.jpg" alt="Starting shindig on OSDE" /></a></li>
<li>Add some sample data;<a title="Creating sample data" href="http://lh6.ggpht.com/_fs_Ln-StO8E/SdEDx_zZQQI/AAAAAAAABP0/vWVvxoXSnwo/s800/8.jpg" target="_blank"><img title="Adding sample data" src="http://lh6.ggpht.com/_fs_Ln-StO8E/SdEDx_zZQQI/AAAAAAAABP0/vWVvxoXSnwo/s512/8.jpg?imgmax=512" alt="Adding sample data" /></a></li>
</ul>
<p>If everything has worked fine, you will not see any exceptions on console screen.</p>
<p>Hope it helps.</p>
<p>Have any comment or doubt ? Just fill out the comments form.</p>
<p>-Robson Dantas<br />
Opensocial Guru</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rlabs.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rlabs.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rlabs.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rlabs.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rlabs.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rlabs.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rlabs.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rlabs.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rlabs.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rlabs.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rlabs.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rlabs.wordpress.com/7/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rlabs.wordpress.com/7/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rlabs.wordpress.com/7/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rlabs.wordpress.com&amp;blog=7142944&amp;post=7&amp;subd=rlabs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rlabs.wordpress.com/2009/03/30/setting-up-osde-on-windows-with-eclipse-342-and-java-16/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca2240e4b378cd937fb52712f54cc718?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robson83</media:title>
		</media:content>

		<media:content url="http://lh5.ggpht.com/_fs_Ln-StO8E/SdEDxUeuPSI/AAAAAAAABPs/g3A2I3A46tY/s512/1.jpg?imgmax=512" medium="image">
			<media:title type="html">Software updates</media:title>
		</media:content>

		<media:content url="http://lh3.ggpht.com/_fs_Ln-StO8E/SdEDzI4ZOwI/AAAAAAAABQE/6f3M9SjpnI4/s512/2.jpg?imgmax=512" medium="image">
			<media:title type="html">Installing OSDE</media:title>
		</media:content>

		<media:content url="http://lh3.ggpht.com/_fs_Ln-StO8E/SdEDt6nS0kI/AAAAAAAABPE/tfaUPzfOf6k/s512/3.jpg?imgmax=512" medium="image">
			<media:title type="html">Changing OSDE directory</media:title>
		</media:content>

		<media:content url="http://lh4.ggpht.com/_fs_Ln-StO8E/SdEDukKkS8I/AAAAAAAABPM/5o81cMD5Cg4/s512/4.jpg?imgmax=512" medium="image">
			<media:title type="html">Chaning Jetty and H2 path</media:title>
		</media:content>

		<media:content url="http://lh6.ggpht.com/_fs_Ln-StO8E/SdEDvcXHU7I/AAAAAAAABPU/a0p3B6y529g/s512/5.jpg?imgmax=512" medium="image">
			<media:title type="html">Editing running configuration</media:title>
		</media:content>

		<media:content url="http://lh3.ggpht.com/_fs_Ln-StO8E/SdEDwGFVXHI/AAAAAAAABPc/P--bppt1S0I/s512/6.jpg?imgmax=512" medium="image">
			<media:title type="html">Changing arguments for apache shindig</media:title>
		</media:content>

		<media:content url="http://lh4.ggpht.com/_fs_Ln-StO8E/SdEDwoDo4tI/AAAAAAAABPk/Z33IOjDhj68/s512/7.jpg?imgmax=512" medium="image">
			<media:title type="html">Changing arguments for shindig database</media:title>
		</media:content>

		<media:content url="http://lh5.ggpht.com/_fs_Ln-StO8E/SdEDyfCWnPI/AAAAAAAABP8/QrF0RRSdRlk/s512/9.jpg" medium="image">
			<media:title type="html">Starting shindig on OSDE</media:title>
		</media:content>

		<media:content url="http://lh6.ggpht.com/_fs_Ln-StO8E/SdEDx_zZQQI/AAAAAAAABP0/vWVvxoXSnwo/s512/8.jpg?imgmax=512" medium="image">
			<media:title type="html">Adding sample data</media:title>
		</media:content>
	</item>
		<item>
		<title>Unable to find the socket transport &#8216;ssl&#8217;</title>
		<link>http://rlabs.wordpress.com/2009/03/28/unable-to-find-the-socket-transport-ssl/</link>
		<comments>http://rlabs.wordpress.com/2009/03/28/unable-to-find-the-socket-transport-ssl/#comments</comments>
		<pubDate>Sat, 28 Mar 2009 19:14:23 +0000</pubDate>
		<dc:creator>robson83</dc:creator>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming languages]]></category>
		<category><![CDATA[php error ssl]]></category>
		<category><![CDATA[php fopen ssl]]></category>
		<category><![CDATA[unable to find socket ssl]]></category>

		<guid isPermaLink="false">http://rlabs.wordpress.com/?p=3</guid>
		<description><![CDATA[This is my first post on wordpress! I keep my own weblog in Brazilian Portuguese, writing sometimes something in english. To make all information available just in english, I decided to setup this new blog. Hope you enjoy! I&#8217;m playing a bit with Zend GData Library to integrate some pictures from my own website with [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rlabs.wordpress.com&amp;blog=7142944&amp;post=3&amp;subd=rlabs&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is my first post on wordpress! I keep my own weblog in Brazilian Portuguese, writing sometimes something in english.</p>
<p>To make all information available just in english, I decided to setup this new blog. Hope you enjoy!</p>
<p>I&#8217;m playing a bit with Zend GData Library to integrate some pictures from my own website with Picasa. Before trying to test my app on Firefox, I was coding and calling php-cgi from the prompt.</p>
<p>I have my wamp stack installed, since I&#8217;m using windows for coding. I dont why I started to get some weird errors:</p>
<p><em>Fatal error: Uncaught exception &#8216;Zend_Gdata_App_HttpException&#8217; with message &#8216;Unable to Connect to ssl://www.google.com:443. Error #26464712: Unable to find the socket transport &#8220;ssl&#8221; &#8211; did you forget to enable it when you configured PHP?&#8217; in C:\wamp\www\picasa\zend\library\Zend\Gdata\ClientLogin.php:140</em></p>
<p>This is a common error when you don&#8217;t have php_openssl.dll installed, but checking on wamp, the line was uncommented: <em>extension=php_openssl.dll.</em></p>
<p>So what went wrong ? Easy.. wamp was pointing the config file to another place. So i went to php.ini file and uncommented that line again.</p>
<p>Now it&#8217;s working. Easy and quick.</p>
<p>Next post i&#8217;ll start to write something about php and picasa integration.</p>
<p>If you have any doubt, leave a message!</p>
<p>-Robson</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/rlabs.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/rlabs.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/rlabs.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/rlabs.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/rlabs.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/rlabs.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/rlabs.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/rlabs.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/rlabs.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/rlabs.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/rlabs.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/rlabs.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/rlabs.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/rlabs.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=rlabs.wordpress.com&amp;blog=7142944&amp;post=3&amp;subd=rlabs&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://rlabs.wordpress.com/2009/03/28/unable-to-find-the-socket-transport-ssl/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ca2240e4b378cd937fb52712f54cc718?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">robson83</media:title>
		</media:content>
	</item>
	</channel>
</rss>
