<?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>Strawp.net &#187; Linux</title>
	<atom:link href="http://strawp.net/archive/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://strawp.net</link>
	<description>*So* scripted</description>
	<lastBuildDate>Wed, 11 Aug 2010 15:09:58 +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>Temporary Twitter unfollow script</title>
		<link>http://strawp.net/archive/temporary-twitter-unfollow-script/</link>
		<comments>http://strawp.net/archive/temporary-twitter-unfollow-script/#comments</comments>
		<pubDate>Thu, 27 May 2010 09:48:22 +0000</pubDate>
		<dc:creator>Strawp</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[twitter]]></category>
		<category><![CDATA[unfollow]]></category>

		<guid isPermaLink="false">http://strawp.net/?p=161</guid>
		<description><![CDATA[Update: This now uses the oAuth Twitter class, not the basic auth function library. Do you ever get people you follow on Twitter who, for some reason have suddenly become really spammy? Normally they&#8217;re great, but maybe one evening they&#8217;ve come back drunk and are vomiting tweets all over their feed, or maybe they&#8217;re live-tweeting [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update</strong>: This now uses the <a href="http://strawp.net/archive/oauth-php-twitter-class/">oAuth Twitter class</a>, not the basic auth function library.</p>
<p>Do you ever get people you follow on Twitter who, for some reason have suddenly become really spammy? Normally they&#8217;re great, but maybe one evening they&#8217;ve come back drunk and are vomiting tweets all over their feed, or maybe they&#8217;re live-tweeting some inane reality TV show for the opening night or are taking part in an incredibly uninteresting meme hashtag.</p>
<p>Whatever the reason, you don&#8217;t want to ditch them entirely, just until they&#8217;ve stopped blabbing on about stuff you don&#8217;t care about.</p>
<p>So I made a command line script to get around this. If you want to temporarily unfollow someone, write:</p>
<pre>unfollow mrspammy for 1 week</pre>
<p>or for several users:</p>
<pre>unfollow mrspammy,mrsspammy,mrspammystennispartner for 4 days</pre>
<p>Due to the genius of of PHP&#8217;s strtodate(), the words after &#8220;for&#8221; can be pretty much any time period phrase that works with the &#8220;+&#8221; modifier from the current date. You can also specify exact dates:</p>
<pre>unfollow mrspammy until next tuesday</pre>
<p>or</p>
<pre>unfollow mrspammy until 12 july</pre>
<p>This then looks at users that were previously unfollowed, checks if you want to re-follow them by now and does so if required. Run it without specifying any unfollows to just get this behaviour. This means you can also put unfollow in cron (or whatever) to run periodically and it will automatically check if users need re-following by now.</p>
<p>This is written for Ubuntu. Any Linux will be OK, Mac too probably if you have the paths set up properly. You might even get it working under Windows.</p>
<p>To get it working, you need</p>
<ol>
<li><a href="http://svn.strawp.net/lib/twitter.php">My Twitter library under svn</a></li>
<li><a href="http://svn.strawp.net/scripts/unfollow">The unfollow script</a></li>
<li>PHP installed with libcurl</li>
</ol>
<p>Put the PHP files in the same folder. You then need to:</p>
<ol>
<li>Edit $confpath in unfollow</li>
<li>Create twitter.conf.php, containing two define() statements with TWITTER_EMAIL and TWITTER_PASSWORD in. These should contain your username and password.</li>
<li>chmod u+x unfollow</li>
<li>optional: Add unfollow to crontab to run at whatever interval you want</li>
<li>optional: make this folder part of path, symlink to unfollow or in some way make unfollow callable without defining the entire path</li>
</ol>
<p>And you&#8217;re good to go. Easy <img src='http://strawp.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Let me know if you end up using this or my twitter library at all.</p>
]]></content:encoded>
			<wfw:commentRss>http://strawp.net/archive/temporary-twitter-unfollow-script/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Streaming media from Linux to a games console</title>
		<link>http://strawp.net/archive/streaming-media-from-linux-to-a-games-console/</link>
		<comments>http://strawp.net/archive/streaming-media-from-linux-to-a-games-console/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 00:27:15 +0000</pubDate>
		<dc:creator>Strawp</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Media]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[stream]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[xbox]]></category>
		<category><![CDATA[xbox 360]]></category>

		<guid isPermaLink="false">http://strawp.net/?p=146</guid>
		<description><![CDATA[I&#8217;ve been using a modified original XBox to stream media from around the house since about 2003, however that same box is getting a little long in the tooth &#8211; high res videos with a lot of visual noise chug and stutter and even at the best of times the XBox isn&#8217;t doing justice to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using a modified original XBox to stream media from around the house since about 2003, however that same box is getting a little long in the tooth &#8211; high res videos with a lot of visual noise chug and stutter and even at the best of times the XBox isn&#8217;t doing justice to the higher resolution plasma we now have.</p>
<p>So what are our other options? We&#8217;ve got a Wii and two XBox 360s. If someone ends up releasing a game on the PS3 we might even get one of those as well.</p>
<h3>Wii</h3>
<p>This is doable but completely pointless compared to the original xbox. I&#8217;d need to transcode everything in to the lower-quality sorenson flash video codec (whatever format it was in, this will be lower quality) and it won&#8217;t output at an HD resolution.</p>
<h3>PS3</h3>
<p>I&#8217;m told this works very well as a media playing client and gets along much better than the MS products with other machines on the network (as you&#8217;d expect). I don&#8217;t have one though.</p>
<h3>XBox 360</h3>
<p>There are basically two options for streaming to an XBox 360: Setting up <em>Windows Media Center</em> on your Windows-based machine or creating a UPnP (Universal Plug &#8216;n&#8217; Play) based media server on the network. This is Linux (Ubuntu 8.10) we&#8217;re talking about so option one is right out. There are a few UPnP servers for Linux around though. Here&#8217;s a breakdown:</p>
<ul>
<li>
<h4><a href="http://mediatomb.cc/">MediaTomb</a> (package name, mediatomb)</h4>
<p>This is a very slick service which is easy to set up, automatically scans your media and presents it in an organised manner. It supports video, pictures and audio with a variety of formats and has the ability to transcode between formats on the fly using VLC. Very cool. Works with everything except a 360.<br />
Next!</li>
<li>
<h4><a href="http://ushare.geexbox.org/">uShare</a> (package name ushare)</h4>
<p>This is pretty cut-down. The video playback works fine but there is no rescan option at the time of writing meaning you have to restart the service for new videos to appear. Not good if you want to watch something the minute it arrives on the server. This can be partly alleviated by creating a cron job to restart the server daily, but it&#8217;s not ideal. The audio library on uShare is also completely useless. It seems to attempt to organise everything, completely fails and only lets you see a handful of tracks in amongst folders which don&#8217;t even contain audio. It would have been better if it had just let you walk through the folders like in video mode.</li>
<li>
<h4><a href="http://sourceforge.net/projects/x360mediaserve/">X360MediaServe</a> (no deb package)</h4>
<p>This requires an old-fashioned manual setup as it&#8217;s not in any Ubuntu repository but works well. However it ONLY supports audio so is not suitable for my needs.</li>
<li>
<h4><a href="http://fuppes.ulrich-voelkel.de">FUPPES</a> (no deb package)</h4>
<p>Steer clear of this if you don&#8217;t like the idea of not only an old fashioned manual configure, make, make install style setup but having to google error messages in order to even get it visible from an XBox. It&#8217;s almost even worth just using uShare and x360MediaServe both at the same time so that at least you have reasonably hassle-free video and audio.</p>
<p>If you do happen to have enough patience and you&#8217;ve managed to craft the config files into something workable it turns out that this is actually one of the <del datetime="2009-02-23T22:18:00+00:00">better</del> least rubbish solutions for streaming to 360. The video works and although you have to hammer on the vfolder.cfg file (which doesn&#8217;t get built for you) in order to get something workable going it does kind of do the job in a very basic and raw way. Given a bit more time and a decent setup script this might turn out to be quite decent server, but then given a rescan option and proper music support in uShare I wouldn&#8217;t even be trying this out.</li>
<li>
<h4><a href="http://www.twonkymedia.com">TwonkyMedia Server</a></h4>
<p>Twonky sticks out in this list because although there is a native linux server available it&#8217;s locked to free trial only before you have to part with your readies. This proprietary nature of software releases is so foreign to Linux it left me reeling in confusion and I gave up on it before even getting it working. If none of that bothers you then it&#8217;s probably the best out of the entire list. I&#8217;m a man of principles though. Or a tight-arse.</li>
<li>
<h4>Samba</h4>
<p>Inexplicably notable by its absence is Samba, SMB, straight-forward common Windows file sharing. Every OS on earth understands it and I&#8217;d been sharing media using it for years already so why doesn&#8217;t the 360 support it? No DRM control? Is it because the protocol has been <a href="http://blogs.zdnet.com/open-source/?p=1846">tainted by FOSS under the evil hand of the EU courts?</a> Whatever the reason, it&#8217;s pretty typical Microsoft.</li>
</ul>
<p>At the time of writing I have FUPPES serving both video and music although I can&#8217;t map the 360 media player&#8217;s &#8220;Artist&#8221; and &#8220;Album&#8221; drill down options to it. After a lot of fiddling I got most video working with a drill-down directory list. I haven&#8217;t given up on FUPPES yet but the truth is that despite the lack of rescan and decent music support, uShare is still the better option for video streaming at the moment. Install via apt, edit a couple of lines in the config file and then that&#8217;s the whole thing set up. Sure you have to restart it to recache the media list but it&#8217;s still less effort than FUPPES is.</p>
<h3>Conclusion</h3>
<p>If you want to stream music, use x360MediaServe. If you want to stream video, use uShare. If you have a ton of patience or you&#8217;re a masochist, use FUPPES. If you want to stream both video and music and you have better things to do, use MediaTomb and get a PS3, or you could try both x360MediaServe and uShare at the same time. Bit messy though, right?</p>
<p>Oh hey &#8211; could this be the PS3&#8242;s first worthwhile exclusive? <img src='http://strawp.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p><strong>Update:</strong> <a class="screen-name" title="Experiment1106" href="http://twitter.com/Experiment1106">Experiment1106</a> on Twitter pointed out <a href="http://code.google.com/p/ps3mediaserver/">PS3MediaServer</a> which is apparently the best solution for streaming to PS3s (and claims basic 360 support).</p>
]]></content:encoded>
			<wfw:commentRss>http://strawp.net/archive/streaming-media-from-linux-to-a-games-console/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.650 seconds -->
