<?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>Bagonca &#187; PEZ</title>
	<atom:link href="http://www.bagonca.com/blog/author/pez/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bagonca.com/blog</link>
	<description>Yet another developer blog</description>
	<lastBuildDate>Fri, 18 Jun 2010 09:28:59 +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>A search on search widget</title>
		<link>http://www.bagonca.com/blog/2010/01/14/search-on-search-widget/</link>
		<comments>http://www.bagonca.com/blog/2010/01/14/search-on-search-widget/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 13:15:03 +0000</pubDate>
		<dc:creator>PEZ</dc:creator>
				<category><![CDATA[Developer]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[Widget]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.bagonca.com/blog/?p=749</guid>
		<description><![CDATA[A search on search widget. Please use on your own Wordpress blog.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been <a href="http://en.forums.wordpress.com/topic/widget-search-on-search?replies=6">wishing for</a> a Wordpress widget that would help visitors find more blog content relevant to the search engine terms that got them to the blog in the first place. Maybe I&#8217;m just bad at googling or something, because I haven&#8217;t found one.</p>
<p>Now I&#8217;m writing my own widget, called &#8220;Search on search&#8221;. If you arrive at this blog from a search engine link you might see a section for it in the sidebar. If, not, and you&#8217;re curious you could force it by trying this search:</p>
<ul>
<li><a href="http://www.google.com/search?q=hire+the+best+and+set+them+free">http://www.google.com/search?q=hire+the+best+and+set+them+free</a></li>
</ul>
<p>And then in the Google results find a link going to this site. (The widget doesn&#8217;t appear if it can&#8217;t figure out the search engine terms.)</p>
<p>You can find the widget code as a gist on Github, namely here:</p>
<ul>
<li><a href="http://gist.github.com/275734">http://gist.github.com/275734</a></li>
</ul>
<p>It&#8217;s not rocket surgery. The main job is about figuring out what search engine terms, if any, that the user used to find the blog. But I  didn&#8217;t need to solve that one either. <a href="http://www.istanto.net/phpcatching-keyword-from-search-engine.html">Istanto had already solved it</a> for me. =)</p>
<p>I still have a bug to iron out: The links presented doesn&#8217;t get styled like the other lists. I can&#8217;t figure out why&#8230; Feel invited to help me!</p>
<p><em>Update 17 January</em>: The plugin is now available in the Wordpress.org plugin directory:</p>
<ul>
<li><a href="http://wordpress.org/extend/plugins/search-on-search/">http://wordpress.org/extend/plugins/search-on-search/</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.bagonca.com/blog/2010/01/14/search-on-search-widget/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Public Wave Invites?</title>
		<link>http://www.bagonca.com/blog/2009/11/12/public-wave-invites/</link>
		<comments>http://www.bagonca.com/blog/2009/11/12/public-wave-invites/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 19:22:22 +0000</pubDate>
		<dc:creator>PEZ</dc:creator>
				<category><![CDATA[Innovation]]></category>
		<category><![CDATA[Values]]></category>
		<category><![CDATA[experiment]]></category>
		<category><![CDATA[invites]]></category>
		<category><![CDATA[public]]></category>
		<category><![CDATA[public invites]]></category>
		<category><![CDATA[trust]]></category>
		<category><![CDATA[wave]]></category>

		<guid isPermaLink="false">http://www.bagonca.com/blog/?p=746</guid>
		<description><![CDATA[I just experimented with an interesting thing on Google Wave. I made my "Invite others" wave public. Now anyone on Wave can invite people using my invites. Pretty cool. Just a minute after I made the wave public the first person entered and used two invites. It feels quite awesome. Can people handle it all the way? Will someone come in and just use up all the invites? We will soon know. =)]]></description>
			<content:encoded><![CDATA[<p>I just experimented with an interesting thing on Google Wave. I made my &#8220;Invite others&#8221; wave public. Now anyone on Wave can invite people using my invites. Pretty cool. Just a minute after I made the wave public the first person entered and used two invites. It feels quite awesome. Can people handle it all the way? Will someone come in and just use up all the invites? We will soon know. =)</p>
<p>Has anyone else done this? Are there lots of public invite waves out there?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bagonca.com/blog/2009/11/12/public-wave-invites/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Flickr Searches in 3D</title>
		<link>http://www.bagonca.com/blog/2009/11/03/flickr-searches-in-3d/</link>
		<comments>http://www.bagonca.com/blog/2009/11/03/flickr-searches-in-3d/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 20:56:13 +0000</pubDate>
		<dc:creator>PEZ</dc:creator>
				<category><![CDATA[Flex/AS]]></category>
		<category><![CDATA[Innovation]]></category>

		<guid isPermaLink="false">http://www.bagonca.com/blog/?p=744</guid>
		<description><![CDATA[I&#8217;m experimenting with tying that 3D Album I mentioned earlier to Flickr Searches. Looks like this for now
ThreeDeeGallery.swf
Work in progress, both the app and this blog post.
]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m experimenting with tying that 3D Album I mentioned earlier to Flickr Searches. Looks like this for now<br />
<a href="http://www.bagonca.com/blog/wp-content/uploads/2009/11/ThreeDeeGallery.swf">ThreeDeeGallery.swf</a><br />
Work in progress, both the app and this blog post.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bagonca.com/blog/2009/11/03/flickr-searches-in-3d/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bad business shouldn&#8217;t be in business</title>
		<link>http://www.bagonca.com/blog/2009/07/13/bad-business-shouldnt-be-in-business/</link>
		<comments>http://www.bagonca.com/blog/2009/07/13/bad-business-shouldnt-be-in-business/#comments</comments>
		<pubDate>Mon, 13 Jul 2009 12:00:53 +0000</pubDate>
		<dc:creator>PEZ</dc:creator>
				<category><![CDATA[Values]]></category>

		<guid isPermaLink="false">http://www.bagonca.com/blog/?p=619</guid>
		<description><![CDATA[A call for moving away from plan economy and towards market economy. The world shouldn't model its economic systems on Sweden's. Bailouts is not the way! What it has given us is a plant school of lousy and greedy bank managers. In booms they enrich themselves and in busts they take our tax money to save themselves.]]></description>
			<content:encoded><![CDATA[<p>Lots of (most) people think we live in a market economy. I beg to differ. Plan economy better describes it. If it was a market economy, how come the market doesn&#8217;t set the interest rate? And how come, when the financial systems melt down because of sub optimizing in the sea of regulations, the answer is always more regulations? If Obama and his followers around the world gets it their way financial business, and even business that goes &#8220;To Big To Fail&#8221; (an arbitrary label put on any business that the governments can&#8217;t keep their fingers off of), will have to carry even larger legions of bureaucrats and politicians on their back in order to have permission to operate. The result will of course be even more volatility for the markets and higher prices paired with lower quality of service for us citizens. But do the Obamas of the world care? No, what they care about is taking this wonderful opportunity to meddle with peoples affairs, just like they did when those terrorists managed to kill so many innocents back in September 11 2001, just like they always do at the time of any crisis.</p>
<p>The problem is a bit like a super Kinder Egg. Four (unpleasant) presents in one package; <em>Bailouts, Fake interest rates, government regulations and &#8220;Stimulus&#8221;</em>. Unlike real presents though, we are paying for them ourselves. This blog post addresses the Bailouts. If I find some more time to write I&#8217;ll deal with the other Kinder Egg content in coming posts.</p>
<h2>Bailouts</h2>
<p>If this is a market economy why is it that banks and insurers that suck at doing business are propped up and bailed out by the governments? <strong>In the U.S. the bailout costs so far are approaching $10 trillion</strong>. Now, that&#8217;s a lot of money!. <a href="http://www.msnbc.msn.com/id/30115091/">Check this article out</a> to get an idea on how fast these bailout trillions are burning. In a market economy failing businesses fail and resources are reallocated to good business. Jim Rogers, chairman of Singapore-based Rogers Holdings has understood this and says:</p>
<blockquote><p>The U.S. is taking assets from competent people and giving them to incompetent people. That’s bad economics.</p></blockquote>
<p>(From Bloomberg article <a href="http://www.bloomberg.com/apps/news?pid=20601087&#038;sid=a3kTp0KUJWWE">U.S. Bailouts Add to Risk of Depression</a>.)</p>
<p>Contrast that with what the mainstream opinion holds true:</p>
<blockquote><p>Banks that fail hurt the society.</p></blockquote>
<p>(Freely translated from <a href="http://www.dn.se/opinion/huvudledare/bensin-till-brasan-1.909750">this editorial in Sweden&#8217;s largest news paper</a>.) </p>
<p>In our phony economy banks don&#8217;t need to care about the long term. In the booms bank managements can reap as much as possible from the speed-blindness of the market, stuff their own pockets full with those insane bonuses and pretend it is a reward for business success. In the busts their business will stand completely unprepared, naked and vulnerable, but these nigh-criminals can just shrug their shoulders and rest assured that our tax money will step in and save their asses.</p>
<p>What this system does is to perpetuate the bad leadership in these institutions. It&#8217;s not setup for learning anything good. And, as you may or may not know, <a href="http://www.bagonca.com/blog/2009/04/03/the-learning-organisms-that-should-be-us/">I&#8217;m crazy about learning</a>. In a market economy the business these lousy managers run would fail. These people would have big ugly FAILs in their CV:s and they would have to find jobs better suited for them (something involving minimum responsibilities of any kind). As it is now they can continue their careers like if they actually knew what they are doing.</p>
<p>There&#8217;s also no incentive for these businesses to start competing using arguments like &#8220;with us your money is safer than with them&#8221;. Remember, in our messed up economy, money we put in the bank is just as safe regardless of what bank we choose. The governments think  they own our tax money. They will use it to prop these banks and insurers up and even bail them out if it comes to that. Then they will act surprised and exasperated when the bank managers try to use the tax money to enrich themselves even more. In reality we have these criminals as bank managers because we deserve it.</p>
<p>Some say we should nationalize these bad banks. Like they would be run better by politicians. Like that wouldn&#8217;t be an even surer way to burn up our tax money. In Sweden, Bailout nation #1, politicians are trained to find some middle ground. What they try to do is to give the tax money to the banks if the banks sign a contract about how the money can be used. For some reason politicians seem to think of themselves as good business people. They don&#8217;t see that all they are doing is playing Monopoly with our tax money. (Or maybe they see that and laugh at the joke.) The really sad part of this story is that lots of the Obamas in the world are impressed with what&#8217;s called The Swedish Bailout Model. <a href="http://www.nytimes.com/2008/09/23/business/worldbusiness/23krona.html">Sweden is successfully exporting it!</a> The world must of course move in the opposite direction. Away from plan economy and towards market economy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bagonca.com/blog/2009/07/13/bad-business-shouldnt-be-in-business/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>And the real reason Microsoft doesn&#8217;t fix Outlook?</title>
		<link>http://www.bagonca.com/blog/2009/06/27/and-the-real-reason-microsoft-doesnt-fix-outlook/</link>
		<comments>http://www.bagonca.com/blog/2009/06/27/and-the-real-reason-microsoft-doesnt-fix-outlook/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 09:59:45 +0000</pubDate>
		<dc:creator>PEZ</dc:creator>
				<category><![CDATA[Innovation]]></category>

		<guid isPermaLink="false">http://www.bagonca.com/blog/?p=571</guid>
		<description><![CDATA[When Microsoft created Outlook 2007 they took a mysterious design decision. &#8220;Let&#8217;s use the suckiest HTML renderer in the world (the MS Word one) to render HTML messages. &#8221; Now it seems they&#8217;re planning to stick to that decision in Outlook 2010. To make the world aware of the nuttiness of this some good folks [...]]]></description>
			<content:encoded><![CDATA[<p>When Microsoft created Outlook 2007 they took a mysterious design decision. &#8220;Let&#8217;s use the suckiest HTML renderer in the world (the MS Word one) to render HTML messages. &#8221; Now it seems they&#8217;re planning to stick to that decision in Outlook 2010. To make the world aware of the nuttiness of this some good folks has created a site about it: <a href="http://fixoutlook.org/">Outlook&#8217;s broken &#8211; Let&#8217;s fix it</a></p>
<p>On Twitter there are more than just a few people who has struggled with downgrading their e-mail designs to be at least readable in Outlook 2007. Which made the news about this fixoutlook.org site quite big on the Twire. And Microsoft saw it. <a href="http://mashable.com/2009/06/24/fix-outlook-response/">And Microsoft responded</a>. Check it out. In the respons you&#8217;ll find:</p>
<blockquote><p>Word enables Outlook customers to write &#8230; visually stunning e-mail messages.</p></blockquote>
<p>That&#8217;s probably why Microsofts own XBox Live Team starts all their e-mail messages with this:</p>
<div id="attachment_570" class="wp-caption aligncenter" style="width: 629px"><img class="size-full wp-image-570 " title="Outlook2007sux" src="http://www.bagonca.com/blog/wp-content/uploads/2009/06/Outlook2007sux.png" alt="Read this online if you can't see the pictures or if you're using Outlook 2007" width="619" height="131" /><p class="wp-caption-text">Read this online if you can&#39;t see the pictures or if you&#39;re using Outlook 2007</p></div>
<p>Seems like the XBox Live team doesn&#8217;t use Outlook? Or maybe they just don&#8217;t know how visually stunning their e-mail messages can get using it.</p>
<p>Microsofts response also contains this:</p>
<blockquote><p>Microsoft welcomes the development of broadly-adopted e-mail standards. We understand that e-mail is about interoperability among various e-mail programs, and we believe that Outlook provides a good mix of a rich user experience and solid interoperability with a wide variety of other e-mail programs.</p></blockquote>
<p>It&#8217;s of course a bad-taste-joke. But I think that the part about how they understand that e-mail is about interoperability is true. Unfortunately that&#8217;s where this decision probably comes from. <strong>Microsoft fears broadly-adopted standards.</strong> The world is about as stuck with Microsoft Office as it is with Windows. Wherever Microsoft has a near-monopoly they take the opportunity to fuck the world. That&#8217;s what they do with Internet Explorer. That&#8217;s what they do with Outlook. But what can we do? Maybe we can try get the EU to force Microsoft to quit bundling Outlook with Office?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bagonca.com/blog/2009/06/27/and-the-real-reason-microsoft-doesnt-fix-outlook/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Devil doesn&#8217;t need an Advocate!</title>
		<link>http://www.bagonca.com/blog/2009/05/27/the-devil-doesnt-need-an-advocate/</link>
		<comments>http://www.bagonca.com/blog/2009/05/27/the-devil-doesnt-need-an-advocate/#comments</comments>
		<pubDate>Wed, 27 May 2009 20:58:58 +0000</pubDate>
		<dc:creator>PEZ</dc:creator>
				<category><![CDATA[Innovation]]></category>

		<guid isPermaLink="false">http://www.bagonca.com/blog/?p=545</guid>
		<description><![CDATA[Innovation and progress have nothing to gain from us painting the negative scenarios. Once you have that deep gut feeling that you're on the right track, go for it full force. Stay on the offence. That initiative is up for grabs. ]]></description>
			<content:encoded><![CDATA[<p>Back in the days when I was owner of the vision, head of development and product manager of a dotcom startup I had this really great boss. He was creative, supportive, caring, trusting, fun, really intelligent, self confident and, well, he had most all of those treats you wish all your bosses should have. Yet, he used to do one thing that puzzled and even annoyed me at times. It was when we were preparing for a meeting.</p>
<p>I have this way of always trying to be on the offense and to own the initiative. Not always succeeding, of course, but I imagine that thinking positive will help. I guess I&#8217;m a incurably naïve.</p>
<p>My boss of back then also was one to want to own the initiative. But he, generally, had a different approach. He played it defensively. Covering all bases. To do that you need to be able to think negatively. There&#8217;s the source for my annoyance. I just have a hard time following the line of thought when it goes the negative way. When preparing meetings I had to endure my boss when he raised the arguments against our case. What if they say this? What if they argue that? To me it&#8217;s &#8220;So, what if? Our offer is excellent! Let&#8217;s focus on exposing that!&#8221; I don&#8217;t want to cover all bases. I don&#8217;t want to imagine all the shit that can happen.</p>
<p>Yes, I&#8217;m biased. But I honestly think that my general approach is better. Go full force with <strong>your</strong> thing! If you feel it&#8217;s not good enough to throw your full support behind it, <em>then chose another thing</em>. Make sure you work with something you really believe in. And hone your blade. But hone it for attack. For defence trust your reflexes. Apply positive thinking. Playing the Devil&#8217;s advocate just drains your energy resources. At least it has that effect on me. </p>
<p><em>Addendum June 11 2009</em>: I wrote this article when I was a bit upset. I&#8217;m glad that I did, but still, I think I should have asked <a href="http://johlrogge.wordpress.com/">Joakim Ohlrogge</a> to write instead. Here&#8217;s his take (pasted from the comments):</p>
<blockquote><p>A thought: I despise DAs more than I like them. But the question is if it is really DAs I despise or if I despise idea-poachers. It’s hard enough the get ideas to fly even without having a sniper shooting them down before they take off. It’s often all too easy to come with a “what if” and I’ve experienced some people who make it their task to figure out every obscure situation that could possibly go wrong. There needs to be some rime and reason. You can always find something that goes wrong, after all, we work with software.</p>
<p>I would not want to be without DAs but I don’t want them to take up more time than daring enthusiasts do. Also, they are not there to prevent disasters, they are there to inspire different though paths. A DA can never replace the ability to respond promptly when “shit happens”.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.bagonca.com/blog/2009/05/27/the-devil-doesnt-need-an-advocate/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Flat line for the Twitter Brain</title>
		<link>http://www.bagonca.com/blog/2009/05/14/flat-line-for-the-twitter-brain/</link>
		<comments>http://www.bagonca.com/blog/2009/05/14/flat-line-for-the-twitter-brain/#comments</comments>
		<pubDate>Thu, 14 May 2009 09:22:53 +0000</pubDate>
		<dc:creator>PEZ</dc:creator>
				<category><![CDATA[Social]]></category>
		<category><![CDATA[Thinking]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.bagonca.com/blog/?p=475</guid>
		<description><![CDATA[To me one of the major Twitter experiences is the feeling of being connected to millions of other brains on the planet. It&#8217;s like Isaac Asimov&#8217;s fictional fantasy of Gaia is starting to come true. I probably shouldn&#8217;t admit this, but whenever I encounter a new term one of my first thoughts is &#8220;wonder what&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>To me one of the major Twitter experiences is the feeling of being connected to millions of other brains on the planet. It&#8217;s like Isaac Asimov&#8217;s fictional fantasy of <a href="http://en.wikipedia.org/wiki/Gaia_(Foundation_universe)">Gaia</a> is starting to come true. I probably shouldn&#8217;t admit this, but whenever I encounter a new term one of my first thoughts is &#8220;wonder what&#8217;s tweeted on that subject right now?&#8221;. And now and then during the day I need to get my <a href="http://blog.twitter.com/2008/09/trends-on-twitter.html">Twitter Trends</a> fix. Sometimes it reveals totally new things to me. It&#8217;s how I first heard of Susan Boyle, for instance. I&#8217;ve now realized that I got to hear about Susan Boyle only hours after she had rocked Britain the first time. That&#8217;s amazing! Usually weeks and months pass before I catch up on such events. (I&#8217;m not a fan of the genre, but I don&#8217;t want to miss something like the Susan Boyle phenomenon.) It&#8217;s totally awesome to get this opportunity to plug in to the Brain. Thank you Twitter!</p>
<p>Of course, sometimes the Twitter Brain is a bit stupid. Often it&#8217;s very shallow. And, yes, not seldom it&#8217;s really introvert. (Discussions about Twitter itself seems to be what interests the Twitter community the most.) I&#8217;m OK with that. I&#8217;m not one to throw out the baby with the bath water. The signal vs noise ratio is still really high.</p>
<blockquote><p>But what happens if the Twitter Brain dies? Do I risk going brain dead if I&#8217;m plugged in to a huge Brain when it dies? Yes, obviously I do.</p></blockquote>
<p>Yesterday the Twitter folks changed a setting used by 2% of their user base. And somehow enough people shut of their brains and started to tweet stuff like &#8220;Twitter Failed! Retweet!&#8221;, &#8220;Twitter is bad. Please Retweet!&#8221; &#8220;Goodbye Twitter. RT this!&#8221; and so on and so forth. Fully and utterly useless crap. Then the brains of the receivers of those tweets went dead and they retweeted. And their followers retweeted. And their followers &#8230; You get the picture. It was like a disease. My time line was full of tweets like that. I think four out of ten slots on Twitter trends were related to this too. Check the hashtag <a href="http://hashtags.org/tag/fixreplies/messages">#fixreplies</a> out and you start to get the idea. I felt I had to throw something in to the balance and <a href="http://twitter.com/CoBPEZ/status/1782372070">cheered the change</a>. That never showed up on Twitter Trends though.</p>
<p>Please, please you tweeting people. (And all you non-tweeting people too). <strong>Keep your brains switched on!</strong> I&#8217;m plugged in to your brain and I don&#8217;t want to go brain dead. Maybe if keeping ones brain switched on at all times is hard, we can train ourselves to sense when it&#8217;s off? And then there&#8217;s <strong>No Tweeting!</strong>. Of course the &#8220;<a href="http://www.bagonca.com/blog/2009/04/10/common-sense-in-retweeting/">When retweeting, use common sense</a>&#8221; rule apply too.</p>
<p>Yesterdays flat line of the Twitter Brain was scary. I hope it was an exception.</p>
<p>Addendum: I&#8217;m also amazed at the <a href="http://blog.twitter.com/2009/05/we-learned-lot.html#links">official Twitter response</a> to the brainless outcries. They call it &#8220;lots of great info&#8221;. Totally funny.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bagonca.com/blog/2009/05/14/flat-line-for-the-twitter-brain/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Rails deploy using sqlite3</title>
		<link>http://www.bagonca.com/blog/2009/05/09/rails-deploy-using-sqlite3/</link>
		<comments>http://www.bagonca.com/blog/2009/05/09/rails-deploy-using-sqlite3/#comments</comments>
		<pubDate>Sat, 09 May 2009 12:22:09 +0000</pubDate>
		<dc:creator>PEZ</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[capistrano]]></category>
		<category><![CDATA[deploy]]></category>
		<category><![CDATA[sqlite3]]></category>

		<guid isPermaLink="false">http://www.bagonca.com/blog/?p=394</guid>
		<description><![CDATA[I had a hard time figuring out why, when reading up on capistrano, I couldn&#8217;t find any info on how to deal with the database file. That was until I realized most people don&#8217;t deploy on sqlite3. With mysql and other databases you have a server and it&#8217;s automatically &#8220;shared&#8221; then.
The only information I found [...]]]></description>
			<content:encoded><![CDATA[<p>I had a hard time figuring out why, when reading up on <a href="http://rubyforge.org/projects/capistrano/">capistrano</a>, I couldn&#8217;t find any info on how to deal with the database file. That was until I realized most people don&#8217;t deploy on <a href="http://www.sqlite.org/">sqlite3</a>. With mysql and other databases you have a server and it&#8217;s automatically &#8220;shared&#8221; then.</p>
<p>The only information I found on deployment on sqlite3 was an excellent deploy script in <a href="http://blog.ninjahideout.com/posts/busting-a-cap-in-yo-ass">this blog article</a>. Basically, using sqlite3 you have to make sure the database is in a shared directory across releases. But the sqlite3 parts of that deploy script didn&#8217;t work for me as they were. I had to make sure I referenced the shared database path all the way or I risked overwriting my database with a symlink. Below are the sqlite3 parts of the resulting capistrano script.</p>
<p>Setting up the shared database path. NB: Lazy binding. Important if you&#8217;re using multistaging from capistrano-ext.</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">set<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#ff3333; font-weight:bold;">:shared_database_path</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#996600;">&quot;#{shared_path}/databases&quot;</span><span style="color:#006600; font-weight:bold;">&#125;</span></pre></div></div>

<p>Sqlite3 tasks.</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">namespace <span style="color:#ff3333; font-weight:bold;">:sqlite3</span> <span style="color:#9966CC; font-weight:bold;">do</span>
  desc <span style="color:#996600;">&quot;Generate a database configuration file&quot;</span>
  task <span style="color:#ff3333; font-weight:bold;">:build_configuration</span>, <span style="color:#ff3333; font-weight:bold;">:roles</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:db</span> <span style="color:#9966CC; font-weight:bold;">do</span>
    db_options = <span style="color:#006600; font-weight:bold;">&#123;</span>
      <span style="color:#996600;">&quot;adapter&quot;</span>  <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;sqlite3&quot;</span>,
      <span style="color:#996600;">&quot;database&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;#{shared_database_path}/production.sqlite3&quot;</span>
    <span style="color:#006600; font-weight:bold;">&#125;</span>
    config_options = <span style="color:#006600; font-weight:bold;">&#123;</span><span style="color:#996600;">&quot;production&quot;</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> db_options<span style="color:#006600; font-weight:bold;">&#125;</span>.<span style="color:#9900CC;">to_yaml</span>
    put config_options, <span style="color:#996600;">&quot;#{shared_config_path}/sqlite_config.yml&quot;</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  desc <span style="color:#996600;">&quot;Links the configuration file&quot;</span>
  task <span style="color:#ff3333; font-weight:bold;">:link_configuration_file</span>, <span style="color:#ff3333; font-weight:bold;">:roles</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:db</span> <span style="color:#9966CC; font-weight:bold;">do</span>
    run <span style="color:#996600;">&quot;ln -nsf #{shared_config_path}/sqlite_config.yml #{release_path}/config/database.yml&quot;</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  desc <span style="color:#996600;">&quot;Make a shared database folder&quot;</span>
  task <span style="color:#ff3333; font-weight:bold;">:make_shared_folder</span>, <span style="color:#ff3333; font-weight:bold;">:roles</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:db</span> <span style="color:#9966CC; font-weight:bold;">do</span>
    run <span style="color:#996600;">&quot;mkdir -p #{shared_database_path}&quot;</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>Hooks (or whatever they&#8217;re called, I&#8217;m new to all this).</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">after <span style="color:#996600;">&quot;deploy:setup&quot;</span>, <span style="color:#996600;">&quot;sqlite3:make_shared_folder&quot;</span>
after <span style="color:#996600;">&quot;deploy:setup&quot;</span>, <span style="color:#996600;">&quot;sqlite3:build_configuration&quot;</span>
&nbsp;
before <span style="color:#996600;">&quot;deploy:migrate&quot;</span>, <span style="color:#996600;">&quot;sqlite3:link_configuration_file&quot;</span></pre></div></div>

<p>Hope this helps someone. Please don&#8217;t hesitate to ask should something need more explaining. And of course suggest improvements. This is all the makings of a capistrano newbie.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bagonca.com/blog/2009/05/09/rails-deploy-using-sqlite3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Use Flex and set it free</title>
		<link>http://www.bagonca.com/blog/2009/04/17/use-flex-and-set-it-free/</link>
		<comments>http://www.bagonca.com/blog/2009/04/17/use-flex-and-set-it-free/#comments</comments>
		<pubDate>Fri, 17 Apr 2009 12:11:24 +0000</pubDate>
		<dc:creator>PEZ</dc:creator>
				<category><![CDATA[Flex/AS]]></category>
		<category><![CDATA[Innovation]]></category>
		<category><![CDATA[Values]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[inspiration]]></category>
		<category><![CDATA[love]]></category>
		<category><![CDATA[planning]]></category>
		<category><![CDATA[yap]]></category>

		<guid isPermaLink="false">http://www.bagonca.com/blog/?p=135</guid>
		<description><![CDATA[I love my work managing Projectplace Labs. (Was: A development version of Yap).]]></description>
			<content:encoded><![CDATA[<p>I work at <a title="Project Collaboration Playground" href="http://www.projectplacelabs.com">Projectplace Labs</a>. In fact I&#8217;m managing it. No doubt it&#8217;s the best job I&#8217;ve ever had. Imagine getting payed for experimenting with far out things all day. Two examples:</p>
<div id="attachment_140" class="wp-caption alignright" style="width: 160px"><a href="http://www.projectplacelabs.com"><img class="size-full wp-image-140" title="Projectplace for iPhone" src="http://www.bagonca.com/blog/wp-content/uploads/2009/04/iphoneapppp.jpg" alt="Samuel is da man!" width="150" height="261" /></a><p class="wp-caption-text">Samuel is da man!</p></div>
<ul>
<li><a href="http://www.bagonca.com/blog/author/samuel/">Samuel</a>, who also  works at the lab <em>and</em> blogs on this site, started to play with the iPhone SDK some month ago and just yesterday he sent a Projectplace client for the iPhone to AppStore. It should appear there any day soon. Computer Sweden <a href="http://computersweden.idg.se/2.2683/1.224077/iphone-tar-plats-i-foretaget">wrote about it today</a> (Swedish).</li>
<li>A year ago I tried out <a href="http://www.flashsandy.org/">Sandy3D </a>(awesome 3D engine for Flash written in AS3) and quickly got a prototype up for a Cooliris-inspired photo wall, it was WOW to me so I called it <a href="http://files.projectplace.com/bttr/WoWalbum.html">WowAlbum</a>. Not as immediately business applicable as Samuel&#8217;s iPhone app, but a fun thing to do.</li>
</ul>
<p>Projectplace Labs is very much inspired by those big, innovative, forces out there. Mozilla Labs, Microsoft Office Labs, Adobe Labs and, of course, Google Labs. Google is probably our main inspirational source. We&#8217;re trying to <a title="Whatever works for Google" href="http://harvardbusinessonline.hbsp.harvard.edu/b01/en/common/item_detail.jhtml?id=R0804C">reverse engineer Google&#8217;s innovation machine</a> and apply what we feel fits us (or at least try to convince our managers to let us apply it). We&#8217;ve also taken Quincy Jones&#8217; receipt for success to our hearts;</p>
<blockquote><p><a href="http://edgehopper.com/learning-from-quincy-jones/">Hire the best and set them free.</a></p></blockquote>
<p>We apply it on all levels. <em>Ideas, creativity, people, innovation, inspiration, code, joy, love.</em> <strong>Unleash!</strong></p>
<div id="attachment_148" class="wp-caption alignright" style="width: 210px"><img class="size-full wp-image-148" title="Yap flash based planning tool" src="http://www.bagonca.com/blog/wp-content/uploads/2009/04/yapblack-small.png" alt="Yap - planning made fun" width="200" height="106" /><p class="wp-caption-text">Yap - planning made fun</p></div>
<p>Ummm, I was definately not planning to write about Projectplace Labs in this blog. Got a bit carried away there. I was mainly about to use the Bagonca server to make a development version of <a title="Fast and easy task scheduling" href="http://www.projectplacelabs.com/Yap.aspx">Yap</a> available to a guy I&#8217;m working with at <a href="http://www.a-dato.net">A-Dato</a>. Then I thought, heck I can blog about it, and then I felt I needed to tell about where I work.</p>
<p>And now I need to tell you something about Yap too, right? You can read a little about it at Projectplace Labs and also at <a href="http://projectplaceideas.feedback20.com/category/103430-yap-fast-and-easy-planning">Projectplace Ideas</a>. To cut a long story short:</p>
<blockquote><p>We, Projectplace, want to be the company who made project planning fun.</p></blockquote>
<p>That development version of Yap that you can access even before it appears on Projectplace Labs? Don&#8217;t worry, I haven&#8217;t fogotten, here goes:</p>
<ul>
<li><a href="http://www.bagonca.com/yap" target="_blank">Faster than Excel, easier than MS Project</a></li>
</ul>
<p>Now, how cool does this make Bagonca? It even publishes Projectplace Labs stuff before Labs! =)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.bagonca.com/blog/2009/04/17/use-flex-and-set-it-free/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>When retweeting, apply common sense</title>
		<link>http://www.bagonca.com/blog/2009/04/10/common-sense-in-retweeting/</link>
		<comments>http://www.bagonca.com/blog/2009/04/10/common-sense-in-retweeting/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 10:22:44 +0000</pubDate>
		<dc:creator>PEZ</dc:creator>
				<category><![CDATA[Social]]></category>
		<category><![CDATA[common sense]]></category>
		<category><![CDATA[respect]]></category>
		<category><![CDATA[retweeting]]></category>
		<category><![CDATA[Twitter]]></category>

		<guid isPermaLink="false">http://www.bagonca.com/blog/?p=120</guid>
		<description><![CDATA[Retweeting is not rocket surgery. Know what you retweet. Show respect in all directions.]]></description>
			<content:encoded><![CDATA[<p>I read this really interesting blog about how <a href="http://www.twitip.com/theres-a-better-way-to-retweet/">there&#8217;s a better way to rewteet</a> (via <a href="http://www.twitter.com/JoshHelfferich">@JoshHelfferich</a>). While I agree to most of what the article says, I somehow feel one could have skipped the moral lesson. Twitter is all fine and healthy even with all those copy/paste RT:s out there. No worries!</p>
<p>It all boils down to common sense anyway, doesn&#8217;t it? If you are quoting someone&#8217;s use of her 140 chars, then a verbatim &#8220;RT @source&#8221; makes a lot of sense. The Twitter I visit daily is full of interesting people who say important stuff in cool ways. There&#8217;s no point in rephrasing their tweets. If your Twitter doesn&#8217;t look like mine in this respect I suggest you use that unfollow button and start following interesting people instead. That&#8217;s what&#8217;s so good about your own timeline, it&#8217;s yours!</p>
<p>Passing on links could be a bit different though. Not always, because sometimes interesting people send their messages through both the link and the words they embed them in. (Apply common sense, remember?). But if you really are &#8220;just&#8221; passing on a link you should, really <em>should</em>:</p>
<ol>
<li>Know what that link is about</li>
<li>Know what you think about the content</li>
</ol>
<p>And then it shouldn&#8217;t be hard to craft your own words to follow the link. After all, you still want to reference who &#8220;sent&#8221; the link to you and the link occupies some space so you don&#8217;t have much space to fill anyway.</p>
<p>Maybe it&#8217;s this easy: <em>If you care about that link being followed you&#8217;ll maximise the chances by letting your audience know why <strong>you</strong> recommend that link.</em></p>
<p>Or even simpler: <em>Show respect!</em></p>
]]></content:encoded>
			<wfw:commentRss>http://www.bagonca.com/blog/2009/04/10/common-sense-in-retweeting/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
