<?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>Tue, 31 Aug 2010 00:10:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<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 any commands every time I need to do something. There can be many weeks or...]]></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>
]]></content:encoded>
			<wfw:commentRss>http://www.wisnaes.com/2010/08/30/capturing-dv-in-kubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>0</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 for the website is Joomla, and i am using the K2 extension. With K2 comes...]]></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>
]]></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 that you can have computers set to automatically receive the correct settings for your network....]]></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>
]]></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>
