<?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>Rasila Garage &#187; laconi.ca</title>
	<atom:link href="http://rasilagarage.com/tag/laconica/feed/" rel="self" type="application/rss+xml" />
	<link>http://rasilagarage.com</link>
	<description>Tuomas Rasila's blog about software and entrepreneurship</description>
	<lastBuildDate>Sun, 07 Mar 2010 09:11:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to write a simple bot that updates status to Laconi.ca</title>
		<link>http://rasilagarage.com/2009/01/how-to-write-a-simple-bot-that-updates-to-laconica/</link>
		<comments>http://rasilagarage.com/2009/01/how-to-write-a-simple-bot-that-updates-to-laconica/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 10:36:43 +0000</pubDate>
		<dc:creator>Tuomas Rasila</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[laconi.ca]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://rasilagarage.com/?p=73</guid>
		<description><![CDATA[In my last post I wrote about Laconi.ca and mentioned that we have many bots updating Laconi.ca too. The bots are made active when some condition has met. Example: Make server running out of disk space to post an update to Laconi.ca This is actually quite useful. Sure, you can tell every service to send [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_91" class="wp-caption alignleft" style="width: 220px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/419970_front_rack_server.jpg"><img class="size-full wp-image-91 " title="Rack server" src="http://rasilagarage.com/wp-content/uploads/2009/01/419970_front_rack_server.jpg" alt="Full disk is a lousy reason to wake up in a middle of the night" width="210" height="158" /></a><p class="wp-caption-text">Full disk is a lousy reason to wake up in a middle of the night</p></div>
<p>In my <a href="http://rasilagarage.com/2009/01/laconica-an-open-source-twitter-clone-behind-a-password-and-your-firewall/">last post</a> I wrote about Laconi.ca and mentioned that we have many bots updating Laconi.ca too. The bots are made active when some condition has met.</p>
<p><strong>Example: Make server running out of disk space to post an update to Laconi.ca</strong></p>
<p>This is actually quite useful. Sure, you can tell every service to send an email when something not wanted is happening but then you will have to read that mailbox too. Sending email to someone else doesn’t solve the problem. Hmm, updating to Laconi.ca doesn’t solve the problem either but it makes servers easier follow and to subscribe.</p>
<p>So here is a simple shell script:</p>
<p><span id="more-73"></span></p>
<p><code>#!/bin/sh<br />
fs=`mount|egrep '^/dev'|grep -iv cdrom| awk '{print $3}'`<br />
typeset -i thresh="96"<br />
typeset -i warn="98"<br />
for i in $fs<br />
do<br />
skip=0<br />
typeset -i used=`df -k $i|tail -n 1|awk '{print $5}'|cut -d "%" -f 1`<br />
if [ "$used" -ge "$warn" ]; then<br />
laconica.sh "1.2.3.4 server CRITICAL: filesystem $i is $used% full"<br />
fi<br />
if [ "$used" -ge "$thresh" -a "$used" -le "$warn" ]; then<br />
laconica.sh "1.2.3.4 server WARNING: filesystem $i is $used %full"<br />
fi<br />
done</code></p>
<p>I didn’t want to use cURL directly to talk to Laconi.ca so I downloaded laconica.sh from http://downloads.guillermoamaral.com/misc/laconica. Sure it uses cURL, but if I change a password no I can change it to this wrapper instead.</p>
<p>I saved the script as diskfull.sh. So lets first chmod it and then try it:</p>
<p><code>chmod 755 diskfull.sh<br />
./diskfull.sh</code></p>
<p>Laconi.ca gets an update as follows:</p>
<div id="attachment_75" class="wp-caption alignnone" style="width: 310px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/picture-3.png"><img class="size-medium wp-image-75" title="Laconi.ca bot in action" src="http://rasilagarage.com/wp-content/uploads/2009/01/picture-3-300x49.png" alt="Screenshot of Laconi.ca" width="300" height="49" /></a><p class="wp-caption-text">Screenshot of Laconi.ca</p></div>
<p>You would need schedule Cron to run the script. To do so, edit the /etc/crontab and add the following line:</p>
<p><code>31 8  * * *     root    /opt/diskfull.sh</code></p>
<p>This line will run it daily on 08:31 as root. You might want to change it. If you are not familiar with Cron <a href="http://guerrillatech.wordpress.com/2008/01/25/howto-use-cron-to-schedule-tasks/" onclick="pageTracker._trackPageview('/outgoing/guerrillatech.wordpress.com/2008/01/25/howto-use-cron-to-schedule-tasks/?referer=');">here is some help</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://rasilagarage.com/2009/01/how-to-write-a-simple-bot-that-updates-to-laconica/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Laconi.ca an Open Source Twitter clone behind a password and your firewall</title>
		<link>http://rasilagarage.com/2009/01/laconica-an-open-source-twitter-clone-behind-a-password-and-your-firewall/</link>
		<comments>http://rasilagarage.com/2009/01/laconica-an-open-source-twitter-clone-behind-a-password-and-your-firewall/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 10:11:17 +0000</pubDate>
		<dc:creator>Tuomas Rasila</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[laconi.ca]]></category>
		<category><![CDATA[twitterific]]></category>

		<guid isPermaLink="false">http://rasilagarage.com/?p=19</guid>
		<description><![CDATA[Not familiar with Twitter? Twitter is a free social networking and micro-blogging service that allows its users to send and read other users&#8217; updates (otherwise known as tweets), which are text-based posts of up to 140 characters in length. Twitter page on Wikipedia This post covers: Why I like Laconi.ca as our internal Micro-Blogging-service How [...]]]></description>
			<content:encoded><![CDATA[<p>Not familiar with Twitter?</p>
<blockquote><p>Twitter is a free social networking and micro-blogging service that allows its users to send and read other users&#8217; updates (otherwise known as tweets), which are text-based posts of up to 140 characters in length.<br />
<a href="http://en.wikipedia.org/wiki/Twitter" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Twitter?referer=');">Twitter page on Wikipedia</a>
</p></blockquote>
<p><strong>This post covers:</strong></p>
<ul>
<li>Why I like Laconi.ca as our internal Micro-Blogging-service</li>
<li>How to configure Laconi.ca behind password without breaking up the API functionality</li>
<li>How to set up Twitterific to work with custom Laconi.ca installation</li>
</ul>
<p><div id="attachment_31" class="wp-caption alignnone" style="width: 410px"><img src="http://rasilagarage.com/wp-content/uploads/2009/01/laconica-screenshot.jpg" alt="Laconi.ca in a browser &#038; Twitterific" title="Laconi.ca Screenshot" width="400" height="203" class="size-full wp-image-31" /><p class="wp-caption-text">Laconi.ca in a browser &#038; Twitterific</p></div><br />
<strong>Motivation</strong></p>
<p>Ok, Twitter is sweet, even a bit addictive, but not that useful in internal use of your business for couple of reasons:</p>
<ul>
<li>Privacy concerns; I know you don&#8217;t have to tweet everything in public but still; You might not want to trust any third parties</li>
<li>It is useful to have a possibility to customize your micro-blogging application, make backups and so on</li>
</ul>
<p>At first, Micro-blogging is like wiki in a way that it does not implement any kind of process. In Twitter the idea is &#8220;it&#8217;s a tool, use it as you like&#8221; This works well with Twitter.com, where all the users have their own reasons to use the service. In business however, the business has a goal and people are working to meet this goal for their common reason. Therefore a process, as loose as it might be, must be implemented.<br />
<span id="more-19"></span><br />
<strong>How and why it should be used</strong></p>
<p>We got Laconi.ca running to our office a few weeks ago. In our case we have two offices with a distance of 600 km to each other. Some people in our staff are working from home and someone is always on the road. We use Laconi.ca to keep on track where people are on what are they working with.</p>
<p>So we have two rules on how to use it:</p>
<ul>
<li>When you start to work, tell what you are going to work with</li>
<li>When you finish the day, tell when you are going to be back</li>
</ul>
<p>Nothing too complicated just two easy rules. In my opinion it works just great. Before getting Laconi.ca I made far more phone calls to people asking for these same basic questions.</p>
<p>We also have many bots updating to Laconi.ca from our project management systems, internal blog and errors &#038; warnings from servers. Generally I think you should not be worried about the amount of data because everyone doesn&#8217;t have to subscribe everything and everything does not have to be read by everyone. Still, having a possibility to subscribe a bot when needed is great.</p>
<p><strong>How to install Laconi.ca on Ubuntu and get it behind a password</strong></p>
<p>Laconi.ca installation guide can be found at <a href="http://laconi.ca/trac/wiki/Installation" onclick="pageTracker._trackPageview('/outgoing/laconi.ca/trac/wiki/Installation?referer=');">http://laconi.ca/trac/wiki/Installation</a></p>
<p>Getting Laconi.ca behind password is actually the simplest thing:</p>
<p>1) Just create .htaccess and .htpasswd file. If don&#8217;t know how <a href="http://www.javascriptkit.com/howto/htaccess3.shtml" onclick="pageTracker._trackPageview('/outgoing/www.javascriptkit.com/howto/htaccess3.shtml?referer=');">here is some help</a>.</p>
<p>2) Create the same users with the same passwords as you have in your Laconi.ca installation.</p>
<p><strong>How to make Twitterific to work with Laconi.ca</strong></p>
<p>Get <a href="http://iconfactory.com/software/twitterrific" onclick="pageTracker._trackPageview('/outgoing/iconfactory.com/software/twitterrific?referer=');">Twitterific</a></p>
<p>Open terminal and run:</p>
<p><code>defaults write com.iconfactory.Twitterrific baseUrl -string 'your-hostname/path-to-laconica/api'</code></p>
<p>The command to switch back is the following:</p>
<p><code>defaults write com.iconfactory.Twitterrific baseUrl -string 'twitter.com'</code></p>
<p>I found this tip from <a href="http://decafbad.com/blog/2008/07/18/using-twitterrific-with-identica" onclick="pageTracker._trackPageview('/outgoing/decafbad.com/blog/2008/07/18/using-twitterrific-with-identica?referer=');">Leslie Michael Orchard&#8217;s blog</a>, thank you Leslie!</p>
]]></content:encoded>
			<wfw:commentRss>http://rasilagarage.com/2009/01/laconica-an-open-source-twitter-clone-behind-a-password-and-your-firewall/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
