<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Notes on ScopePort</title>
	
	<link>http://blog.scopeport.org</link>
	<description>The ScopePort Blog</description>
	<lastBuildDate>Sun, 30 Aug 2009 15:52:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.feedburner.com/NotesOnScopeport" type="application/rss+xml" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com" /><item>
		<title>The brand new and awesome ScopePort search</title>
		<link>http://feedproxy.google.com/~r/NotesOnScopeport/~3/dvpQ4aQ5W4Y/</link>
		<comments>http://blog.scopeport.org/scopeport/brand-awesome-scopeport-search/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 15:52:22 +0000</pubDate>
		<dc:creator>Lennart</dc:creator>
				<category><![CDATA[ScopePort]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://blog.scopeport.org/?p=310</guid>
		<description />
			<content:encoded><![CDATA[<div id="attachment_311" class="wp-caption aligncenter" style="width: 560px"><a href="http://blog.scopeport.org/wp-content/uploads/2009/08/scopeport-search.png"><img class="size-full wp-image-311" title="scopeport-search-small" src="http://blog.scopeport.org/wp-content/uploads/2009/08/scopeport-search-small.png" alt="Finding a service near you" width="550" height="804" /></a><p class="wp-caption-text">Finding a service near you</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.scopeport.org/scopeport/brand-awesome-scopeport-search/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.scopeport.org/scopeport/brand-awesome-scopeport-search/</feedburner:origLink></item>
		<item>
		<title>Screenshot of the complete emergency view</title>
		<link>http://feedproxy.google.com/~r/NotesOnScopeport/~3/TxcKaC8ebNc/</link>
		<comments>http://blog.scopeport.org/scopeport/screenshot-complete-emergency-view/#comments</comments>
		<pubDate>Mon, 27 Jul 2009 01:05:20 +0000</pubDate>
		<dc:creator>Lennart</dc:creator>
				<category><![CDATA[ScopePort]]></category>
		<category><![CDATA[coordination]]></category>
		<category><![CDATA[detail]]></category>
		<category><![CDATA[emergency]]></category>
		<category><![CDATA[module]]></category>
		<category><![CDATA[view]]></category>

		<guid isPermaLink="false">http://blog.scopeport.org/?p=305</guid>
		<description />
			<content:encoded><![CDATA[<div id="attachment_307" class="wp-caption aligncenter" style="width: 560px"><a href="http://blog.scopeport.org/wp-content/uploads/2009/07/emergencies.jpg"><img class="size-full wp-image-307" title="emergencies_small" src="http://blog.scopeport.org/wp-content/uploads/2009/07/emergencies_small.jpg" alt="An emergency in detail view" width="550" height="504" /></a><p class="wp-caption-text">An emergency in detail view</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.scopeport.org/scopeport/screenshot-complete-emergency-view/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.scopeport.org/scopeport/screenshot-complete-emergency-view/</feedburner:origLink></item>
		<item>
		<title>Emergency notification methods</title>
		<link>http://feedproxy.google.com/~r/NotesOnScopeport/~3/otcpAx0n57s/</link>
		<comments>http://blog.scopeport.org/scopeport/emergency-notification-methods/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 02:52:18 +0000</pubDate>
		<dc:creator>Lennart</dc:creator>
				<category><![CDATA[ScopePort]]></category>
		<category><![CDATA[alert]]></category>
		<category><![CDATA[emergency]]></category>
		<category><![CDATA[methods]]></category>
		<category><![CDATA[notification]]></category>

		<guid isPermaLink="false">http://blog.scopeport.org/?p=298</guid>
		<description><![CDATA[This is what you get immediately after somebody declared an emergency and selected a notification group you are a member of:
]]></description>
			<content:encoded><![CDATA[<p>This is what you get immediately after somebody declared an emergency and selected a notification group you are a member of:</p>
<div id="attachment_299" class="wp-caption aligncenter" style="width: 560px"><img class="size-full wp-image-299" title="scopeport_emergency_notification_1" src="http://blog.scopeport.org/wp-content/uploads/2009/07/scopeport_emergency_notification_1.jpg" alt="Email notification" width="550" height="414" /><p class="wp-caption-text">Email notification</p></div>
<div id="attachment_300" class="wp-caption aligncenter" style="width: 560px"><img class="size-full wp-image-300" title="scopeport_emergency_notification_2" src="http://blog.scopeport.org/wp-content/uploads/2009/07/scopeport_emergency_notification_2.jpg" alt="XMPP/Jabber notification" width="550" height="414" /><p class="wp-caption-text">XMPP/Jabber notification</p></div>
<div id="attachment_301" class="wp-caption aligncenter" style="width: 560px"><img class="size-full wp-image-301" title="scopeport_emergency_notification_3" src="http://blog.scopeport.org/wp-content/uploads/2009/07/scopeport_emergency_notification_3.jpg" alt="SMS notification" width="550" height="414" /><p class="wp-caption-text">SMS notification</p></div>
<div id="attachment_302" class="wp-caption aligncenter" style="width: 560px"><img class="size-full wp-image-302" title="scopeport_emergency_notification_4" src="http://blog.scopeport.org/wp-content/uploads/2009/07/scopeport_emergency_notification_4.jpg" alt="The emergency view in the web interface" width="550" height="414" /><p class="wp-caption-text">The emergency view in the web interface</p></div>
]]></content:encoded>
			<wfw:commentRss>http://blog.scopeport.org/scopeport/emergency-notification-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.scopeport.org/scopeport/emergency-notification-methods/</feedburner:origLink></item>
		<item>
		<title>How to use Rails SMTP configuration parameters from database</title>
		<link>http://feedproxy.google.com/~r/NotesOnScopeport/~3/aQ99Kv9T25Q/</link>
		<comments>http://blog.scopeport.org/ruby-on-rails/rails-smtp-configuration-parameters-database/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 01:08:34 +0000</pubDate>
		<dc:creator>Lennart</dc:creator>
				<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[actionmailer]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[settings]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://blog.scopeport.org/?p=270</guid>
		<description><![CDATA[Usually the Rails SMTP configuration takes place in config/environment.rb like this:

ActionMailer::Base.smtp_settings = &#123;
  :address =&#62; &#34;smtp.gmail.com&#34;,
  :port =&#62; 587,
  :domain =&#62; &#34;domain.com&#34;,
  :user_name =&#62; &#34;user@domain.com&#34;,
  :password =&#62; &#34;password&#34;,
  :authentication =&#62; :plain
&#125;

ScopePort already has a Email settings part in the setup section where all the required SMTP settings are stored. [...]]]></description>
			<content:encoded><![CDATA[<p>Usually the Rails SMTP configuration takes place in <em>config/environment.rb</em> like this:</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;"><span style="color:#6666ff; font-weight:bold;">ActionMailer::Base</span>.<span style="color:#9900CC;">smtp_settings</span> = <span style="color:#006600; font-weight:bold;">&#123;</span>
  <span style="color:#ff3333; font-weight:bold;">:address</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;smtp.gmail.com&quot;</span>,
  <span style="color:#ff3333; font-weight:bold;">:port</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#006666;">587</span>,
  <span style="color:#ff3333; font-weight:bold;">:domain</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;domain.com&quot;</span>,
  <span style="color:#ff3333; font-weight:bold;">:user_name</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;user@domain.com&quot;</span>,
  <span style="color:#ff3333; font-weight:bold;">:password</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#996600;">&quot;password&quot;</span>,
  <span style="color:#ff3333; font-weight:bold;">:authentication</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:plain</span>
<span style="color:#006600; font-weight:bold;">&#125;</span></pre></div></div>

<p>ScopePort already has a <em>Email settings</em> part in the setup section where all the required SMTP settings are stored. I wanted to fetch the SMTP configuration from the database to avoid double configuration. I stumbled over this blog post after a while: <a href="http://broadcast.oreilly.com/2009/03/using-multiple-smtp-accounts-w.html" target="_blank">http://broadcast.oreilly.com/2009/03/using-multiple-smtp-accounts-w.html</a> Based on this I developed the following dynamic way to define the SMTP settings:</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;"><span style="color:#9966CC; font-weight:bold;">class</span> EmergencyMailer <span style="color:#006600; font-weight:bold;">&lt;</span> <span style="color:#6666ff; font-weight:bold;">ActionMailer::Base</span>   
  <span style="color:#9966CC; font-weight:bold;">def</span> load_settings
    @@smtp_settings = <span style="color:#006600; font-weight:bold;">&#123;</span>
      <span style="color:#ff3333; font-weight:bold;">:address</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> Setting.<span style="color:#5A0A0A; font-weight:bold;">first</span>.<span style="color:#9900CC;">mail_server</span>,
      <span style="color:#ff3333; font-weight:bold;">:port</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> Setting.<span style="color:#5A0A0A; font-weight:bold;">first</span>.<span style="color:#9900CC;">mail_port</span>,
      <span style="color:#ff3333; font-weight:bold;">:domain</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> Setting.<span style="color:#5A0A0A; font-weight:bold;">first</span>.<span style="color:#9900CC;">mail_hostname</span>,
      <span style="color:#ff3333; font-weight:bold;">:authentication</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:plain</span>,
      <span style="color:#ff3333; font-weight:bold;">:user_name</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> Setting.<span style="color:#5A0A0A; font-weight:bold;">first</span>.<span style="color:#9900CC;">mail_user</span>,
      <span style="color:#ff3333; font-weight:bold;">:password</span> <span style="color:#006600; font-weight:bold;">=&gt;</span>Setting.<span style="color:#5A0A0A; font-weight:bold;">first</span>.<span style="color:#9900CC;">mail_pass</span>
    <span style="color:#006600; font-weight:bold;">&#125;</span>
  <span style="color:#9966CC; font-weight:bold;">end</span>
&nbsp;
  <span style="color:#9966CC; font-weight:bold;">def</span> emergency_notification<span style="color:#006600; font-weight:bold;">&#40;</span>emergency, email<span style="color:#006600; font-weight:bold;">&#41;</span>
    load_settings
    recipients  email
    from        Setting.<span style="color:#5A0A0A; font-weight:bold;">first</span>.<span style="color:#9900CC;">mail_from</span>
    subject     <span style="color:#996600;">&quot;[ScopePort] An emergency has been declared!&quot;</span>
    sent_on     <span style="color:#CC00FF; font-weight:bold;">Time</span>.<span style="color:#9900CC;">now</span>
    body        <span style="color:#ff3333; font-weight:bold;">:emergency</span> <span style="color:#006600; font-weight:bold;">=&gt;</span> emergency
  <span style="color:#9966CC; font-weight:bold;">end</span>
<span style="color:#9966CC; font-weight:bold;">end</span></pre></div></div>

<p>The method <em>load_settings</em> gets called by the delivery method and fills the <em>smtp_settings</em> instance variable with parameters from the database.</p>
<p>Check out this Rails Guide if you want to learn more about ActionMailer: <a href="http://guides.rubyonrails.org/action_mailer_basics.html" target="_blank">http://guides.rubyonrails.org/action_mailer_basics.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scopeport.org/ruby-on-rails/rails-smtp-configuration-parameters-database/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.scopeport.org/ruby-on-rails/rails-smtp-configuration-parameters-database/</feedburner:origLink></item>
		<item>
		<title>I can’t believe it’s a remote monitoring system: Emergencies with chat</title>
		<link>http://feedproxy.google.com/~r/NotesOnScopeport/~3/ADTLLCiaNa0/</link>
		<comments>http://blog.scopeport.org/scopeport/remote-monitoring-system-emergencies-chat/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 01:40:08 +0000</pubDate>
		<dc:creator>Lennart</dc:creator>
				<category><![CDATA[ScopePort]]></category>
		<category><![CDATA[chat]]></category>
		<category><![CDATA[emergencies]]></category>
		<category><![CDATA[emergency]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[real time]]></category>

		<guid isPermaLink="false">http://blog.scopeport.org/?p=255</guid>
		<description><![CDATA[Lennart just commited (1, 2, 3) the new emergency system. In the ScopePort settings defined people will be notified about the emergency if you declare one. You can then coordinate countermeasures with your co-workers in the emergency detail view. There are the common comments (like in the service monitoring module) and even a real time [...]]]></description>
			<content:encoded><![CDATA[<p>Lennart just commited (<a href="http://github.com/lennartkoopmann/scopeport-web-interface/commit/c77c7ddc0b714658b071ee30ec7eeb832b2823e1" target="_blank">1</a>, <a href="http://github.com/lennartkoopmann/scopeport-web-interface/commit/e3574c6c8a93333961348813952a34eabdc8c228" target="_blank">2</a>, <a href="http://github.com/lennartkoopmann/scopeport-web-interface/commit/b46713700ee1c1a73b13dbe2cb4524bbe15b6c49" target="_blank">3</a>) the new emergency system. In the ScopePort settings defined people will be notified about the emergency if you declare one. You can then coordinate countermeasures with your co-workers in the emergency detail view. There are the common comments (like in the service monitoring module) and even a real time chat! The ScopePort logo is pulsating and there is a big message if there are active emergencies. You just can&#8217;t miss them &#8211; Even if you don&#8217;t check your notifications. (Emergency service, anyone? <img src='http://blog.scopeport.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="I cant believe its a remote monitoring system: Emergencies with chat" /> )</p>
<div id="attachment_259" class="wp-caption aligncenter" style="width: 560px"><a href="http://blog.scopeport.org/wp-content/uploads/2009/07/scopeport-declare-emergency.png" target="_blank"><img class="size-full wp-image-259 " title="scopeport-declare-emergency_small" src="http://blog.scopeport.org/wp-content/uploads/2009/07/scopeport-declare-emergency_small.png" alt="I cant believe its a remote monitoring system: Emergencies with chat" width="550" height="344" /></a><p class="wp-caption-text">Declaring an emergency</p></div>
<p style="text-align: center;">
<div id="attachment_263" class="wp-caption aligncenter" style="width: 562px"><a href="http://blog.scopeport.org/wp-content/uploads/2009/07/scopeport-emergency-chat.png"><img class="size-full wp-image-263 " title="scopeport-emergency-chat_small" src="http://blog.scopeport.org/wp-content/uploads/2009/07/scopeport-emergency-chat_small.png" alt="Emergency detail view with active chat" width="552" height="345" /></a><p class="wp-caption-text">Emergency detail view with active chat</p></div>
<p>(The emergency comments are still missing in these screenshots)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scopeport.org/scopeport/remote-monitoring-system-emergencies-chat/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.scopeport.org/scopeport/remote-monitoring-system-emergencies-chat/</feedburner:origLink></item>
		<item>
		<title>Hacking at night: Working on the ScopePort emergency module</title>
		<link>http://feedproxy.google.com/~r/NotesOnScopeport/~3/xyUszlbho90/</link>
		<comments>http://blog.scopeport.org/uncategorized/hacking-night-working-scopeport-emergency-module/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 22:59:39 +0000</pubDate>
		<dc:creator>Lennart</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.scopeport.org/?p=251</guid>
		<description><![CDATA[
]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.scopeport.org/wp-content/uploads/2009/07/hacking_at_night.jpg"><img class="aligncenter size-full wp-image-252" title="hacking_at_night" src="http://blog.scopeport.org/wp-content/uploads/2009/07/hacking_at_night.jpg" alt="Hacking at night: Working on the ScopePort emergency module" width="500" height="376" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scopeport.org/uncategorized/hacking-night-working-scopeport-emergency-module/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.scopeport.org/uncategorized/hacking-night-working-scopeport-emergency-module/</feedburner:origLink></item>
		<item>
		<title>New ScopePort feature: Notification method debugging</title>
		<link>http://feedproxy.google.com/~r/NotesOnScopeport/~3/LSX83DgHyOE/</link>
		<comments>http://blog.scopeport.org/scopeport/scopeport-feature-notification-method-debugging/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 20:57:46 +0000</pubDate>
		<dc:creator>Lennart</dc:creator>
				<category><![CDATA[ScopePort]]></category>
		<category><![CDATA[conversation]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[feature]]></category>

		<guid isPermaLink="false">http://blog.scopeport.org/?p=238</guid>
		<description><![CDATA[ScopePort can now help you find out why a XMPP or SMTP notification did not reach you. You can enable a debug mode in the settings of the specific notification method:

All logged conversations can be investigated in the &#8220;Notification method debugging&#8221; section:

These commits by Lennart added the new features:


(scopeport-server) Now storing SMTP conversations in an [...]]]></description>
			<content:encoded><![CDATA[<p>ScopePort can now help you find out why a XMPP or SMTP notification did not reach you. You can enable a debug mode in the settings of the specific notification method:</p>
<p><a href="http://blog.scopeport.org/wp-content/uploads/2009/07/scopeport-notification-method-debugging21.png"><img class="aligncenter size-full wp-image-243" title="scopeport-notification-method-debugging2" src="http://blog.scopeport.org/wp-content/uploads/2009/07/scopeport-notification-method-debugging21.png" alt="New ScopePort feature: Notification method debugging" width="550" height="212" /></a></p>
<p>All logged conversations can be investigated in the &#8220;Notification method debugging&#8221; section:</p>
<p><a href="http://blog.scopeport.org/wp-content/uploads/2009/07/scopeport-notification-method-debugging.png"><img class="aligncenter size-full wp-image-245" title="scopeport-notification-method-debugging" src="http://blog.scopeport.org/wp-content/uploads/2009/07/scopeport-notification-method-debugging.png" alt="New ScopePort feature: Notification method debugging" width="549" height="325" /></a></p>
<p>These commits by Lennart added the new features:</p>
<div>
<ul>
<li><a href="http://github.com/lennartkoopmann/scopeport-server/commit/6bcf90012233430953387e3b6ad75ec521ad28d5" target="_blank">(scopeport-server) Now storing SMTP conversations in an own log table</a></li>
<li><a href="http://github.com/lennartkoopmann/scopeport-server/commit/c2a3f79903dbaeb6b5f82098a09e0449f2942638" target="_blank">(scopeport-server) Now logging SMTP conversations if enabled in web interface</a></li>
<li><a href="http://github.com/lennartkoopmann/scopeport-web-interface/commit/ee009d761f4ec83c80a3503f50d0a89536fef171" target="_blank">(scopeport-web-interface) Now supporting conversation logging of current server version. Server update and migration needed.</a></li>
<li><a href="http://github.com/lennartkoopmann/scopeport-server/commit/47cefb44b801d837966a5715cd0dca174d7dbf83" target="_blank">(scopeport-server) Now also able to debug XMPP sessions</a></li>
<li><a href="http://github.com/lennartkoopmann/scopeport-web-interface/commit/41df21ffe27ed75c62f9f5d7318604da59028a3d" target="_blank">(scopeport-web-interface) Added XMPP conversation debugging</a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://blog.scopeport.org/scopeport/scopeport-feature-notification-method-debugging/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://blog.scopeport.org/scopeport/scopeport-feature-notification-method-debugging/</feedburner:origLink></item>
		<item>
		<title>How ScopePort helps you find your own programming errors</title>
		<link>http://feedproxy.google.com/~r/NotesOnScopeport/~3/InBQv6oHTwU/</link>
		<comments>http://blog.scopeport.org/scopeport/scopeport-helps-find-programming-errors/#comments</comments>
		<pubDate>Sun, 12 Jul 2009 18:22:44 +0000</pubDate>
		<dc:creator>Lennart</dc:creator>
				<category><![CDATA[ScopePort]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[too many connections]]></category>
		<category><![CDATA[vitals]]></category>

		<guid isPermaLink="false">http://blog.scopeport.org/?p=232</guid>
		<description><![CDATA[I followed a strange behaviour of the latest HEAD version of  ScopePort a few minutes ago: The services failed one after another with the SERVICE_INTERR status. This means that there has been an internal ScopePort error while checking the service. I took a look at the &#8220;Vitals&#8221; section in the ScopePort web interface and found [...]]]></description>
			<content:encoded><![CDATA[<p>I followed a strange behaviour of the latest HEAD version of  ScopePort a few minutes ago: The services failed one after another with the SERVICE_INTERR status. This means that there has been an internal ScopePort error while checking the service. I took a look at the &#8220;Vitals&#8221; section in the ScopePort web interface and found out that I must have forgotten a mysql_close() somewhere in my last changes:</p>
<p><a href="http://blog.scopeport.org/wp-content/uploads/2009/07/scopeport-too-many-connections.png"><img class="aligncenter size-full wp-image-233" title="scopeport-too-many-connections" src="http://blog.scopeport.org/wp-content/uploads/2009/07/scopeport-too-many-connections.png" alt="How ScopePort helps you find your own programming errors" width="262" height="83" /></a></p>
<p><em>Well, I also found a Typo&#8230; <img src='http://blog.scopeport.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' title="How ScopePort helps you find your own programming errors" /> </em></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scopeport.org/scopeport/scopeport-helps-find-programming-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.scopeport.org/scopeport/scopeport-helps-find-programming-errors/</feedburner:origLink></item>
		<item>
		<title>How to add sound/audio to a video on Linux</title>
		<link>http://feedproxy.google.com/~r/NotesOnScopeport/~3/FFBsNSImUyM/</link>
		<comments>http://blog.scopeport.org/nix/add-soundaudio-video-linux/#comments</comments>
		<pubDate>Sat, 20 Jun 2009 19:29:07 +0000</pubDate>
		<dc:creator>Lennart</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[avidemux]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[sound]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://blog.scopeport.org/?p=212</guid>
		<description><![CDATA[I am planning to create a ScopePort screencast soon. I had no experience with screencasts when I started to work on that topic. This is why I encountered two main problems:

How do I create the video?
How do I add sound to that video?

The first problem was solved easily. I tried a few screen recorders and [...]]]></description>
			<content:encoded><![CDATA[<p>I am planning to create a ScopePort screencast soon. I had no experience with screencasts when I started to work on that topic. This is why I encountered two main problems:</p>
<ul>
<li>How do I create the video?</li>
<li>How do I add sound to that video?</li>
</ul>
<p>The first problem was solved easily. I tried a few screen recorders and decided to use <a href="http://recordmydesktop.sourceforge.net/about.php" target="_blank">recordmydesktop</a>. The main advantage of recordmydesktop is that it captures everything in a raw mode and encodes it when you stop recording. That makes it possible to record your screen without bigger speed problems. Everything looks pretty smooth and is usable for a screencast.</p>
<p>The second problem cost me a lot of Google searching. How can I add sound to that video? Here is the way I finally used:</p>
<p><strong>First step: Capture the video</strong></p>
<p>No Problem. I started recordmydesktop with the following parameters to capture only the first screen, with a fake cursor (the original one from KDE4 caused some problems) and with no sound. The sleep 3 before the execution of recordmydesktop gives me some time to close the shell and get ready to record.</p>
<pre>sleep 3 &amp;&amp; recordmydesktop -width 1680 -height 1050 -dummy-cursor black --no-sound</pre>
<p><strong>Second step: Convert the captured video to AVI</strong></p>
<p>The file recordmydesktop creates is in a OGG format. That is usually fine but we require an AVI file to add the sound. I converted the OGG file to AVI with <a href="http://en.wikipedia.org/wiki/MEncoder" target="_blank">mencoder</a> (Usually available in your favorite repository):</p>
<pre>mencoder -idx screencast.ogg -ovc lavc -oac mp3lame -o screencast.avi</pre>
<p><strong>Third and last step: Add the audio</strong></p>
<p>Now we can edit the video file with avidemux (also usually available in your repositories). Select &#8220;Audio&#8221; -&gt; &#8220;Main Track&#8221;.</p>
<p style="text-align: left;"><a href="http://blog.scopeport.org/wp-content/uploads/2009/06/avidemux.png" target="_blank"><img class="aligncenter size-large wp-image-213" title="avidemux" src="http://blog.scopeport.org/wp-content/uploads/2009/06/avidemux-1024x787.png" alt="How to add sound/audio to a video on Linux" width="556" height="427" /></a></p>
<p>Now select a AC3, MP3 or WAV file that should be added as the main audio track. Press okay, select &#8220;File&#8221; -&gt; &#8220;Save&#8221; -&gt; &#8220;Save video&#8221; and you are done. That&#8217;s it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scopeport.org/nix/add-soundaudio-video-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.scopeport.org/nix/add-soundaudio-video-linux/</feedburner:origLink></item>
		<item>
		<title>First ScopePort sighting in the wild</title>
		<link>http://feedproxy.google.com/~r/NotesOnScopeport/~3/t65j44PaQY0/</link>
		<comments>http://blog.scopeport.org/scopeport/scopeport-sighting-wild/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 13:33:58 +0000</pubDate>
		<dc:creator>Lennart</dc:creator>
				<category><![CDATA[ScopePort]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[screenshot]]></category>
		<category><![CDATA[web interface]]></category>

		<guid isPermaLink="false">http://blog.scopeport.org/?p=200</guid>
		<description><![CDATA[Sven Kinne &#8211; who has been involved in a lot of alpha testing &#8211; just sent me an account for his ScopePort installation. He monitors around 50 services on different hosts. Here is a screenshot:
We are always happy about screnshots of your ScopePort installations! Send them to lennart@scopeport.org.
]]></description>
			<content:encoded><![CDATA[<p>Sven Kinne &#8211; who has been involved in a lot of alpha testing &#8211; just sent me an account for his ScopePort installation. He monitors around 50 services on different hosts. Here is a screenshot:<a href="http://blog.scopeport.org/wp-content/uploads/2009/06/scopeport-in-the-wild.png" target="_blank"><img class="aligncenter size-large wp-image-206" title="ScopePort in the wild" src="http://blog.scopeport.org/wp-content/uploads/2009/06/scopeport-in-the-wild-1024x640.png" alt="ScopePort in the wild" width="575" height="358" /></a></p>
<p>We are always happy about screnshots of your ScopePort installations! Send them to <a href="mailto:lennart@scopeport.org">lennart@scopeport.org</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.scopeport.org/scopeport/scopeport-sighting-wild/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://blog.scopeport.org/scopeport/scopeport-sighting-wild/</feedburner:origLink></item>
	</channel>
</rss>
