tghttp://tg.gstaedtner.net/2014-05-06T23:26:43+02:00Releasing etvdb2014-05-06T23:26:43+02:00Thomas Gstaedtnertag:tg.gstaedtner.net,2014-05-06:2014/05/06/releasing-etvdb/<p>After having used it for quite a while, I feel it is time to announce the release of <em>etvdb</em>.</p>
<h2>etvdb libary</h2>
<p>etvdb is a high-level C library frontend to <a href="http://thetvdb.com">The TVDB</a>.
It is based on Eina and Ecore of the Enlightenment Foundation Libraries and easy to use in EFL apps, but can just as easily be used in other programs.
It does not depend on a mainloop.
Additionally it uses libcurl, so the dependencies are quite small.</p>
<p>The current release is version 0.3.0 and you can get it from my <a href="https://github.com/tg--/etvdb">Github Repo</a>.
The API documentation is available on <a href="//gstaedtner.net/etvdb/doc">my site</a>.</p>
<p>Right now it only has a synchronous API, but I do plan to add a asynchronous one at some point in the future.
This means, that you'll have to run it in a thread for interactive applications for now.</p>
<h2>etvdb command line tool</h2>
<p>In addition to the library, there is etvdb_cli, which is basically a command line frontend to The TVDB based on etvdb.
It has currently 3 basic usage modes:</p>
<ul>
<li>
<p>CSV-like output</p>
<p>In this mode you can get a CSV-like output that you can write to a file.
This is the default mode.</p>
</li>
<li>
<p>query mode</p>
<p>In query mode you can query single properties from TV show episodes.
For example:</p>
<p><code>etvdb -n Futurama -s 1 -e 1 -q ename
Space Pilot 3000</code></p>
</li>
<li>
<p>rename mode</p>
<p>In this mode you can pass files to etvdb and they will be renamed.
It supports templates so you can rename it however you'd like.
It can run without user input (in scripts e.g.) or interactive.</p>
</li>
</ul>
<p>Try it out, it is easy to use. Just run etvdb --help to see all the options.
It currently only depends on libetvdb itself.
You can get the current 0.1.0 release from my <a href="https://github.com/tg--/etvdb_cli">Github Repo</a>.</p>
<p>Gentoo users can get ebuilds from my <a href="https://github.com/tg--/gentoo-tg">Gentoo Overlay</a>.</p>
<p>Check it out and let me know what you think, patches and comments welcome!</p>script to play a random series episode2013-05-04T21:00:00+02:00Thomas Gstaedtnertag:tg.gstaedtner.net,2013-05-04:2013/05/04/script-to-play-a-random-series-episode/<p>I love to watch TV shows, and often have them running at random
in the background. Thus for some shows (like Futurama, Family Guy,
Mitchel and Webb...), I don't really care about which specific episode
is running.</p>
<p>Because picking one at random manually is a) stupid and b) boring,
I used to use a simple, but really horrible, shell one-liner to pick one.
Now I finally decided to replace it by a more flexible and much much nicer
implementation, written as a simple zsh shellscript. It uses only zsh magic
and no other tools.</p>
<p>Maybe someone else finds it useful, for details see the short description
in the script, it's really trivial and works very well.</p>
<p>You can get it here: <a href="https://github.com/tg--/scripts/blob/master/rsplay.zsh">https://github.com/tg--/scripts/blob/master/rsplay.zsh</a></p>Pyneo for Gentoo2010-11-14T14:10:00+01:00Thomas Gstaedtnertag:tg.gstaedtner.net,2010-11-14:2010/11/14/pyneo-for-gentoo/<p>Something I wanted to do for a while, but never actually got started: Get <a href="http://www.pyneo.org">pyneo</a> supported in gentoo.
So I finally wrote some ebuilds, starting of course with <em>pyneod</em> and its dependencies <em>gsm0710muxd</em> as well as <em>python-pyneo</em>.
More to follow soon.</p>
<p>The packages are based on the 1.32 tag in pyneo's git and pretty much identical to upstream, with the exception of the initscripts.
My ebuilds replace them by proper gentoo-style initscripts that work well in openrc.</p>
<h3>How to use it</h3>
<p>Using this overlay is easy.
Make sure you have layman installed, using the <em>git</em> USE-flag, and set up, e.g. as <a href="http://www.gentoo.org/proj/en/overlays/userguide.xml">described here</a>.
After that you just have to add this overlay using:</p>
<div class="highlight"><pre><span></span>layman -o "https://raw.githubusercontent.com/tg--/gentoo-pyneo/master/overlay.xml" \
-f -a pyneo
</pre></div>
<p>That's it!</p>
<p>Check it out on gitorious if you like!</p>
<p><a href="http://gitorious.org/tg/gentoo-pyneo">http://gitorious.org/tg/gentoo-pyneo</a></p>sftool - initial release2010-11-08T01:55:00+01:00Thomas Gstaedtnertag:tg.gstaedtner.net,2010-11-08:2010/11/08/sftool-initial-release/<p>Today I pushed my <em>sftool</em> into git.</p>
<p>It doesn't do much yet, except decrypting SandForces PKG firmware archives.
Not much more to be said here, just check it out on my projects page.</p>
<p>As you can probably see on the <em>TODO</em>, my next step for sftool is chipset detection, which means, that I would want to identify the chipset of the SandForce based drive and find the matching firmware file in the decrypted archive.
This is far from trivial, but I could use help from every sandforce owner who also has a windows-copy:</p>
<p>SandForces ssdupdate.exe tool creates <em>two</em> tempfiles during its runtime (both in the directory you run it from): <em>sfpkgtmp</em> and <em>sfpkgfwtmp</em></p>
<p>The first one is created initially after loading of the package file, which works using wine, the second one is supposedly created after you select the drive you want to update, which unfortunately doesn't work in wine.</p>
<p>If you want to help, send my the exact model of your SandForce based drive and the <em>sfpkgfwtmp</em> file (less than 1 MByte).
You have to copy the file before you close the ssdupdate.exe tool because it cleans up its tempfiles afterwards.</p>
<p>I'd appreciate any help.</p>
<p>Initially I tried to do this project in the <a href="http://www.ocztechnologyforum.com/forum/showthread.php?79272-Flashing-SandForce-based-drives-on-Linux-a-research-project">OCZ forum</a> where I hoped to get some help and mainly input, unfortunately OCZ shut this down before I had any code.
No hard feelings, they didn't even delete my useror my topic/posts, and I can understand that they don't want any reversing work done in their forum.
It wasn't really the goal to get anything from OCZ anyways, I just hoped to find some other interested people or at least users who were willing to help. Unfortunately that wasn't the case and there seemed to be no interest at all and I got no input whatsoever. :-(</p>