<?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>Wisnaes.com - Visual communication &#187; Feature</title>
	<atom:link href="http://www.wisnaes.com/category/latest-news/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wisnaes.com</link>
	<description>Tips and ideas for people that work with visual media.</description>
	<lastBuildDate>Thu, 17 Feb 2011 03:20:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Sidebars in Joomla articles using Articles Anywhere</title>
		<link>http://www.wisnaes.com/2010/10/18/sidebars-in-joomla-articles-using-articles-anywhere/</link>
		<comments>http://www.wisnaes.com/2010/10/18/sidebars-in-joomla-articles-using-articles-anywhere/#comments</comments>
		<pubDate>Mon, 18 Oct 2010 15:00:41 +0000</pubDate>
		<dc:creator>Svein</dc:creator>
				<category><![CDATA[Feature]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[K2]]></category>
		<category><![CDATA[Tutorials and tips]]></category>
		<category><![CDATA[joomla]]></category>
		<category><![CDATA[NoNumber]]></category>
		<category><![CDATA[sidebars]]></category>

		<guid isPermaLink="false">http://www.wisnaes.com/?p=344</guid>
		<description><![CDATA[A tool that magazines and newspapers often use in their layout is something called a sidebar. It is used to either give a quick overview of some facts that relates...]]></description>
			<content:encoded><![CDATA[<p>A tool that magazines and newspapers often use in their layout is something called a sidebar. It is used to either give a quick overview of some facts that relates to the main article, or to explain a concept to better understand the main subject.</p>
<p>To do this in Joomla has been a little bit of a hassel, especially if you are not a webdesigner.</p>
<p>Today, Peter van Westen (Twitter: <a title="NoNumber_nl - Twitter" href="http://twitter.com/NoNumber_nl" target="_blank">NoNumber_nl</a>) has made this incredibly much easier. One of his Joomla extensions, <a title="Articles Anywhere" href="http://extensions.joomla.org/extensions/news-display/content-embed/10799" target="_blank">Articles Anywhere</a> got a few more settings that basically allows you to put a div around the inserted article and set the size and placement.</p>
<p>To make it look really good, it still requires that someone add a few lines of code of css to the template, but it is enough to do this once &#8211; all the journalist will have to do is add the name of the css class when he inserts the sidebar.</p>
<p>The first step is to install <a title="Download Articles Anywhere" href="http://www.nonumber.nl/articlesanywhere/download" target="_blank">Articles Anywhere</a> &#8211; either through the normal Joomla installation, or by using Peter&#8217;s excellent <a title="NoNumber! Extension Manager" href="http://www.nonumber.nl/extensions/nonumbermanager" target="_blank">NoNumber! Extension Manager</a>. I would recommend this for all installations &#8211; chances are that you will need at least one or two of his extensions anyway.</p>
<p>What Articles Anywhere does is insert one article inside another, so we need to have an article to insert. I have made one here called Facts that contain the following:</p>
<blockquote>
<h3>FACTS</h3>
<p><strong>Model:</strong> XYZ<br />
<strong>Price:</strong> 1020</p>
<p><strong>Special features: </strong>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer nec mauris non nunc euismod condimentum at in eros.</p>
<p><strong>Phone: </strong>555-123456<strong><br />
Website: </strong>www.yoursite.com<br />
<strong>E-mail:</strong> info@yoursite.com</p></blockquote>
<p>Then I open the article where I want this to appear as a sidebar, place the cursor where I want it and click on the &#8220;Insert Article&#8221; button at the bottom of the editor. The process is a bit like inserting a picture. You get a box popping up that looks like this &#8211; I have adjusted the settings to what I need:</p>
<p style="text-align: center;"><a href="http://www.wisnaes.com/wp-content/uploads/2010/10/ArticlesAnywhere-popup.png"></a><a href="http://www.wisnaes.com/wp-content/uploads/2010/10/ArticlesAnywhere-popup1.png"><img class="size-full wp-image-368 aligncenter" title="Articles Anywhere-popup" src="http://www.wisnaes.com/wp-content/uploads/2010/10/ArticlesAnywhere-popup1.png" alt="Articles Anywhere-popup" width="600" height="367" /></a></p>
<p>The new is the settings box to the right. Check that you want to &#8220;Embed in a div&#8221;, set the size and either left or right align it. I have also removed all but the &#8220;All text&#8221; setting in the left configuration box. When the configuration is done, find the article that you want to insert and click on it. It is a good idea to click on the ID of the article just in case you decide to change the title of the article later.</p>
<p><a href="http://www.wisnaes.com/wp-content/uploads/2010/10/ArticlesAnywhere-EditorButton.png"><img class="alignright size-full wp-image-361" title="Articles Anywhere - Editor Button" src="http://www.wisnaes.com/wp-content/uploads/2010/10/ArticlesAnywhere-EditorButton.png" alt="Articles Anywhere - Editor Button" width="296" height="359" /></a>There is even a way to make these settings stick: Go to Extenions&gt;Plugin Manager and find the plugin that is called &#8220;Editor Button &#8211; Articles Anywhere&#8221; and click on it. you will then get the configurations that allow you to set the defaults for the Artcles Anywhere extension. So now, most of your settings will be done and you can make a sidebar in just a few seconds! Really nice!</p>
<p>I have made these settings default:</p>
<ul>
<li>Use K2 instead of Joomla content type</li>
<li>Not use the title tag</li>
<li>Not use the Readmore tag</li>
<li>Turn on using a div</li>
<li>Set a size for the div</li>
<li>Right align it</li>
<li>Add a div classname</li>
</ul>
<p>The only thing I wold need to change now might be the size of the div depending on how how much I needed to add in it.</p>
<p>After going through the steps above, you will have a code inserted in your article that looks something like this:</p>
<pre><code>{article k2:24}{div width:200|height:320|float:right|class:sidebars}{text}{/div}{/article}</code></pre>
<p>Save the article, and take a look at what you have:</p>
<p><a href="http://www.wisnaes.com/wp-content/uploads/2010/10/ArticlesAnywhere-nostyling.png"><img class="aligncenter size-full wp-image-355" title="Articles Anywhere No styling" src="http://www.wisnaes.com/wp-content/uploads/2010/10/ArticlesAnywhere-nostyling.png" alt="Articles Anywhere No styling" width="600" height="329" /></a></p>
<p>I want to make the sidebar stand out a little better and add a little air around the text. So I added this section at the end of the css file for the template:</p>
<pre><code>div.sidebars {background:#b6d0d6;margin:10px;padding:5px;}</code></pre>
<p>And suddenly I have a sidebar that stands out and help my readers get a quick overview of the facts!</p>
<p>This is just a very basic use of the sidebar, I am sure you can come up with much better styling and use for it. Want to show how you use it? Leave a comment!</p>
<p><a href="http://www.wisnaes.com/wp-content/uploads/2010/10/ArticlesAnywhere-full.png"><img class="aligncenter size-full wp-image-356" title="Articles Anywhere Side bar" src="http://www.wisnaes.com/wp-content/uploads/2010/10/ArticlesAnywhere-full.png" alt="Articles Anywhere Side bar" width="600" height="384" /></a></p>
<p><a href="https://plus.google.com/107257551033066634962?rel=author" rel="author"> -Svein</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wisnaes.com/2010/10/18/sidebars-in-joomla-articles-using-articles-anywhere/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Capturing DV in Kubuntu Linux</title>
		<link>http://www.wisnaes.com/2010/08/30/capturing-dv-in-kubuntu-linux/</link>
		<comments>http://www.wisnaes.com/2010/08/30/capturing-dv-in-kubuntu-linux/#comments</comments>
		<pubDate>Tue, 31 Aug 2010 00:09:21 +0000</pubDate>
		<dc:creator>Svein</dc:creator>
				<category><![CDATA[Feature]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials and tips]]></category>
		<category><![CDATA[1394]]></category>
		<category><![CDATA[cammand line]]></category>
		<category><![CDATA[capture]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[dv]]></category>
		<category><![CDATA[dv-cam]]></category>
		<category><![CDATA[dvcam]]></category>
		<category><![CDATA[firewire]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[kdenlive]]></category>
		<category><![CDATA[Kubuntu]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://www.wisnaes.com/?p=319</guid>
		<description><![CDATA[I generally prefer to have a good graphics interface to the things I do as it helps my productivity a lot. Why? Because I do not have to look up...]]></description>
			<content:encoded><![CDATA[<p>I generally prefer to have a good graphics interface to the things I do as it helps my productivity a lot. Why? Because I do not have to look up any commands every time I need to do something. There can be many weeks or months between the times when I need a specific thing done, and that is more than enough for me to forget it.</p>
<p>So what do I do when I really have to use the commandline? Write a blog post about it, of course!</p>
<p>This time I needed to capture some footage from my DV camera. I tried three different video editing packages, and only one of them had an interface for capturing from DV &#8211; Kdenlive. But it did not recognize the source, so no capturing possible. A little searching and I <a title="Kino website" href="http://www.kinodv.org/" target="_blank">found a post</a> about some problems with firewire in Ubuntu 10.04. The solution is simple enough. Open a terminal window and type this</p>
<pre><code>sudo nano /etc/modprobe.d/blacklist-firewire.conf</code></pre>
<p>The file will look like this:</p>
<pre><code># Select the legacy firewire stack over the new CONFIG_FIREWIRE one.
#blacklist ohci1394
#blacklist sbp2
#blacklist dv1394
#blacklist raw1394
#blacklist video1394

blacklist firewire-ohci
blacklist firewire-sbp2</code></pre>
<p>The hash marks need to be switched around so it will look like this:</p>
<pre><code># Select the legacy firewire stack over the new CONFIG_FIREWIRE one.
blacklist ohci1394
blacklist sbp2
blacklist dv1394
blacklist raw1394
blacklist video1394

#blacklist firewire-ohci
#blacklist firewire-sbp2</code></pre>
<p>After this has been done you need to run the following command and then re-boot your computer:</p>
<pre><code>sudo update-initramfs -k all -u</code></pre>
<p>When this is done, you should install a package called dvgrab. This one makes it possible to capture DV quite reliably and easy from the commandline via USB and FireWire/IEEE1394 interfaces. Install it with this command:</p>
<pre><code>sudo apt-get install dvgrab</code></pre>
<p>To capture video, attach your DV player or camcorder to your PC with a FireWire or USB cable, then go to the folder where you want to store the video and issue this command:</p>
<pre><code>dvgrab --format raw --noavc capture</code></pre>
<p>This will start dvgrab and it will wait for incoming DV and start capturing as soon as it senses the incoming video. You have to control this with the play and shuttle buttons on the player device. This is what it looks like while it is running:</p>
<pre><code>svein@Laptop:/home/Video$ dvgrab --format raw --noavc capture
Found AV/C device with GUID 0x080046010400715d
Waiting for DV...
Capture Started
"capture001.dv":   999.89 MiB  7281 frames timecode 00:04:51.07 date 2010.08.16 21:23:05
"capture002.dv":   753.25 MiB 5485 frames timecode 00:00:00.00 date 2010.08.19 16:52:01
Capture Stopped</code></pre>
<p>After I reached the end of the footage, I simply pressed CTRL-C to stop capturing. I could then import the material in Kdenlive for editing.</p>
<p>Kdenlive has a lot of really good features, but has an unfortunately clumsy way of doing some things and some non-standard ways of laying things out in the UI. It could easily become a great tool for video editing, even for professional news production and a lot of internet TV and broadcasters in developing countries and new democrasies would benefit from it! I will get back with another post with a review of Kdenlive.</p>
<p><a href="https://plus.google.com/107257551033066634962?rel=author" rel="author"> -Svein</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wisnaes.com/2010/08/30/capturing-dv-in-kubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Category drop-down in mod_k2_tools sorted reverse</title>
		<link>http://www.wisnaes.com/2010/07/25/category-drop-down-in-mod_k2_tools-sorted-reverse/</link>
		<comments>http://www.wisnaes.com/2010/07/25/category-drop-down-in-mod_k2_tools-sorted-reverse/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 20:03:21 +0000</pubDate>
		<dc:creator>Svein</dc:creator>
				<category><![CDATA[Feature]]></category>
		<category><![CDATA[Joomla]]></category>
		<category><![CDATA[K2]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials and tips]]></category>
		<category><![CDATA[Webtips]]></category>

		<guid isPermaLink="false">http://www.wisnaes.com/?p=299</guid>
		<description><![CDATA[I am working on a website where I need a category drop-down. And I need it sorted in reverse compared to the standard sorting. The CMS that I am using...]]></description>
			<content:encoded><![CDATA[<p>I am working on a website where I need a category drop-down. And I need it sorted in reverse compared to the standard sorting.</p>
<p>The CMS that I am using for the website is Joomla, and i am using the K2 extension. With K2 comes a module called K2 Tools (mod_k2_tools) and you can use it to make a list of categories or a drop-down menu for choosing the category among other things.</p>
<p>The category listing has a setting in the control panel to decide how to sort it. But if you choose category drop-down, you do not get any options for sorting at all.</p>
<p>After searching a lot, it appears that nobody knows how to do this, but at least I got a suggestion from Simon aka. k2joom to see if it would be possible to use the code from the listing option.</p>
<p>As I am not a programmer, this would not be an easy thing to do, but I started to look at the code. In mod_k2_tools.php there was nothing that looked like sorting, but it called another file, helper.php, so I opened this one and found this piece of code in a section that looked like it could belong to the category listing:</p>
<pre><code>switch ($params-&gt;get('categoriesListOrdering')) {

case 'alpha':
$orderby = 'name';
break;

case 'ralpha':
$orderby = 'name DESC';
break;

case 'order':
$orderby = 'ordering';
break;

case 'reversedefault':
$orderby = 'id DESC';
break;

default:
$orderby = 'id ASC';
break;
}</code></pre>
<p>As the category drop-down menu is the next in the settings I looked a bit further and found this code:</p>
<pre><code>function treeselectbox(&amp;$params, $id = 0, $level = 0) {

$root_id = (int) $params-&gt;get('root_id2');
$option = JRequest::getCmd('option');
$view = JRequest::getCmd('view');
$category = JRequest::getInt('id');
$id = (int) $id;
$user = &amp;JFactory::getUser();
$aid = (int) $user-&gt;get('aid');
$db = &amp;JFactory::getDBO();
if (($root_id != 0) &amp;&amp; ($level == 0)) {
$query = "SELECT * FROM #__k2_categories WHERE parent={$root_id} AND published=1 AND trash=0 AND access&lt; ={$aid} ORDER BY ordering ";
} else {
$query = "SELECT * FROM #__k2_categories WHERE parent={$id} AND published=1 AND trash=0 AND access&lt;={$aid} ORDER BY ordering ";
}</code></pre>
<p>Comparing the last couple of lines to the first block seemed to indicate that there indeed was some ordering going on in there. So I tried changing the order in the categories, and the drop-down menu immediately reflected the change!</p>
<p>As I needed reverse sort by ID, I would rather not sit and redo the order by hand every time something got added. So I looked at the first block of code and decided to try to replace &#8220;ordering&#8221; with &#8220;id DESC&#8221; in the last couple of lines. They would then look like this:</p>
<pre><code>if (($root_id != 0) &amp;&amp; ($level == 0)) {
$query = "SELECT * FROM #__k2_categories WHERE parent={$root_id} AND published=1 AND trash=0 AND access&lt; ={$aid} ORDER BY id DESC ";
} else {
$query = "SELECT * FROM #__k2_categories WHERE parent={$id} AND published=1 AND trash=0 AND access&lt;={$aid} ORDER BY id DESC ";
}</code></pre>
<p>And the miracle happened! The drop-down menu is now prefectly sorted by ID in descending order!</p>
<p>Of course, this change will be overwritten in the next upgrade, which is part of the reason why I document it here. But I also hope that someone that knows a little bit about programming could add sort order as a setting in this module. It would certainly be welcome by me!</p>
<p>Joomla: <a title="Learn more about Joomla!" href="http://www.joomla.org/" target="_blank">http://www.joomla.org/</a><br />
K2: <a title="Leran more about K2!" href="http://getk2.org/" target="_blank">http://getk2.org/</a></p>
<p><a href="https://plus.google.com/107257551033066634962?rel=author" rel="author"> -Svein</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wisnaes.com/2010/07/25/category-drop-down-in-mod_k2_tools-sorted-reverse/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adding DHCP to your Ubuntu server</title>
		<link>http://www.wisnaes.com/2010/03/20/adding-dhcp-to-your-ubuntu-server/</link>
		<comments>http://www.wisnaes.com/2010/03/20/adding-dhcp-to-your-ubuntu-server/#comments</comments>
		<pubDate>Sat, 20 Mar 2010 14:29:12 +0000</pubDate>
		<dc:creator>Svein</dc:creator>
				<category><![CDATA[Feature]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorials and tips]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.wisnaes.com/?p=230</guid>
		<description><![CDATA[I have in the previous articles described how to get the DNS working on your server. To complete the setup, it is useful to add DHCP to the mix so...]]></description>
			<content:encoded><![CDATA[<p>I have in the previous articles described how to get the DNS working on your server. To complete the setup, it is useful to add DHCP to the mix so that you can have computers set to automatically receive the correct settings for your network. And the more computers you have on the network, the more useful it is.</p>
<p>After a bit of research, I found <a title="Server setup - dhcp and more" href="http://howtoforge.com/nat-gateway-iptables-port-forwarding-dns-and-dhcp-setup-ubuntu-8.10-server" target="_blank">a post about this</a> that helped me get things right on the first try. Here is what I did:</p>
<p>First I needed to install the DHCP package:</p>
<pre><code>sudo apt-get update
sudo apt-get install dhcp3-server</code></pre>
<p>After that is well and done, I needed to edit the configuration for it:</p>
<pre><code>sudo nano /etc/dhcp3/dhcpd.conf</code></pre>
<p>Here is what my dhcp.conf file look like now:</p>
<pre><code># DHCP configuration file for Argoz
#
# Attention: If /etc/ltsp/dhcpd.conf exists, that will be used as
# configuration file instead of this file.
#
# $Id: dhcpd.conf,v 1.1.1.1 2002/05/21 00:07:44 peloy Exp $
#

# The ddns-updates-style parameter controls whether or not the server will
# attempt to do a DNS update when a lease is confirmed. We default to the
# behavior of the version 2 packages ('none', since DHCP v2 didn't
# have support for DDNS.)
ddns-update-style none;

# option definitions common to all supported networks...
option domain-name "lan1.domainname.com";
option domain-name-servers 10.11.12.100, 208.67.222.222, 208.67.220.220;

default-lease-time 600;
max-lease-time 7200;

# If this DHCP server is the official DHCP server for the local
# network, the authoritative directive should be uncommented.
authoritative;

# Use this to send dhcp log messages to a different log file (you also
# have to hack syslog.conf to complete the redirection).
# log-facility local7;

# The rest of the network info

option subnet-mask 255.255.255.0;
option broadcast-address 10.11.12.255;
option routers 10.11.12.1;

# The subnet

subnet 10.11.12.0 netmask 255.255.255.0 {
range 10.11.12.150 10.11.12.170;
}</code></pre>
<p>I chose to keep the comments in there as I am not working with these things on a daily basis and thought it might be a good thing to have some reminders if I needed to edit it again.</p>
<p>Notice that all lines starting with # is just a comment and will not influence the DHCP server. This is a pretty common way of doing things in Ubuntu.</p>
<p>I chose to set the range for IP addresses from 10.11.12.150 to 10.11.12.170 as this should give me more than enough addresses for the little use I have. Your need might vary here.</p>
<p>After saving the configuration, the only thing left to do is starting the DHCP server:</p>
<pre><code>sudo /etc/init.d/dhcp3-server start</code></pre>
<p>You should now have a reliable DHCP service on your network and if you had one running in a wireless router or ADSL router, you can log on there and turn it off. Have you considered setting up your own server yet?</p>
<p><em>The photograph of the computer classrom is by <a title="Extra Ketchup on Flickr" href="http://www.flickr.com/photos/extraketchup/" target="_blank">Extra Ketchup</a> and has a <a title="Creative Commons license" href="http://creativecommons.org/licenses/by-sa/2.0/" target="_blank">Creative Commons</a> license.</em></p>
<p><a href="https://plus.google.com/107257551033066634962?rel=author" rel="author"> -Svein</a></p>]]></content:encoded>
			<wfw:commentRss>http://www.wisnaes.com/2010/03/20/adding-dhcp-to-your-ubuntu-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

