<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-7359304458512656752</id><updated>2011-08-18T16:02:34.027+02:00</updated><category term='IS'/><category term='55-250'/><category term='canon'/><category term='tamron'/><category term='f/4-5.6'/><category term='55-200'/><title type='text'>Red Junasun's blog</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://redjunasun.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7359304458512656752/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://redjunasun.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Red Junasun</name><uri>http://www.blogger.com/profile/03789479117620735459</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-7359304458512656752.post-9194050676268553939</id><published>2010-11-20T16:15:00.008+01:00</published><updated>2010-11-20T16:42:18.292+01:00</updated><title type='text'>Wiimote for controlling Rhythmbox</title><content type='html'>Last weekend I decided to write a small C program for controlling Rhythmbox with my Wiimote, using &lt;a href="http://abstrakraft.org/cwiid/wiki/libcwiid"&gt;libcwiid&lt;/a&gt; en &lt;a href="http://en.wikipedia.org/wiki/D-Bus"&gt;D-Bus&lt;/a&gt;. I implemented play, pause, previous, next and adjusting the volume. The Wiimote also rumbles when you press a working button and the LED's on the Wiimote show the current volume of Rhythmbox.&lt;br /&gt;&lt;br /&gt;The only dependency is libcwiid, so build with the &lt;span style="font-family: monospace;"&gt;-lcwiid&lt;/span&gt; option. Here's the source code:&lt;br /&gt;&lt;br /&gt;&lt;pre style="width: 420px; overflow: auto; background-color: rgb(238, 238, 238); border: 1px solid rgb(204, 204, 204); font-family: monospace; font-size: 8pt;"&gt;&lt;br /&gt;#include &amp;lt;cwiid.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;#include &amp;lt;stdlib.h&amp;gt;&lt;br /&gt;#include &amp;lt;unistd.h&amp;gt;&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt; * This function reads Rhythmbox's volume and sets the LEDs of the Wiimote&lt;br /&gt; */&lt;br /&gt;static void update_volume_leds(cwiid_wiimote_t *wiimote);&lt;br /&gt;&lt;br /&gt;/*&lt;br /&gt; * Callback function for Wiimote messages&lt;br /&gt; */&lt;br /&gt;static cwiid_mesg_callback_t callback;&lt;br /&gt;&lt;br /&gt;int main(int argc, char **argv)&lt;br /&gt;{&lt;br /&gt;    cwiid_wiimote_t *wiimote;&lt;br /&gt;&lt;br /&gt;    printf("Put Wiimote in discoverable mode now (press 1+2)...\n");&lt;br /&gt;&lt;br /&gt;    if (!(wiimote = cwiid_open(BDADDR_ANY, 0)))&lt;br /&gt;        fprintf(stderr, "Unable to connect to wiimote\n");&lt;br /&gt;    if (cwiid_enable(wiimote, CWIID_FLAG_MESG_IFC))&lt;br /&gt;        fprintf(stderr, "Error enabling messages\n");&lt;br /&gt;    if (cwiid_set_rpt_mode(wiimote, CWIID_RPT_BTN))&lt;br /&gt;        fprintf(stderr, "Error setting report mode\n");&lt;br /&gt;    if (cwiid_set_mesg_callback(wiimote, callback))&lt;br /&gt;        fprintf(stderr, "Unable to set message callback\n");&lt;br /&gt;&lt;br /&gt;    printf("Connected to Wiimote...\n");&lt;br /&gt;&lt;br /&gt;    update_volume_leds(wiimote);&lt;br /&gt;&lt;br /&gt;    while (1) {}&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;static void update_volume_leds(cwiid_wiimote_t *wiimote)&lt;br /&gt;{&lt;br /&gt;    FILE *fp;&lt;br /&gt;    char volume[128];&lt;br /&gt;    unsigned char ledstate = 0;&lt;br /&gt;    &lt;br /&gt;    // Read Rhythmbox' volume&lt;br /&gt;    fp = popen("qdbus org.gnome.Rhythmbox /org/gnome/Rhythmbox/Player org.gnome.Rhythmbox.Player.getVolume", "r");    &lt;br /&gt;    while (fgets(volume, 128, fp) != NULL);&lt;br /&gt;    pclose(fp);&lt;br /&gt;&lt;br /&gt;    if (atof(volume) &gt; 0)&lt;br /&gt;        ledstate |= CWIID_LED1_ON;&lt;br /&gt;    if (atof(volume) &gt; 0.33)&lt;br /&gt;        ledstate |= CWIID_LED2_ON;&lt;br /&gt;    if (atof(volume) &gt; 0.66)&lt;br /&gt;        ledstate |= CWIID_LED3_ON;&lt;br /&gt;    if (atof(volume) &gt;= 1)&lt;br /&gt;        ledstate |= CWIID_LED4_ON;&lt;br /&gt;&lt;br /&gt;    cwiid_set_led(wiimote, ledstate);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;static void callback(cwiid_wiimote_t *wiimote, int mesg_count, union cwiid_mesg mesg[], struct timespec *t)&lt;br /&gt;{&lt;br /&gt;    int i;&lt;br /&gt;&lt;br /&gt;    for (i = 0; i &lt; mesg_count; i++) {&lt;br /&gt;        switch (mesg[i].type) {&lt;br /&gt;        case CWIID_MESG_BTN:&lt;br /&gt;            switch(mesg[i].btn_mesg.buttons) {&lt;br /&gt;            case 0: // Ignore button releases&lt;br /&gt;                break;&lt;br /&gt;            case CWIID_BTN_A:&lt;br /&gt;                printf("\"A\" button pressed; calling playPause()\n");&lt;br /&gt;                // Give a rumble on each working button!&lt;br /&gt;                cwiid_set_rumble(wiimote, 1);&lt;br /&gt;                system("qdbus org.gnome.Rhythmbox /org/gnome/Rhythmbox/Player org.gnome.Rhythmbox.Player.playPause 0");&lt;br /&gt;                break;&lt;br /&gt;            case CWIID_BTN_LEFT:&lt;br /&gt;                printf("\"Left\" button pressed; calling previous()\n");&lt;br /&gt;                cwiid_set_rumble(wiimote, 1);&lt;br /&gt;                system("qdbus org.gnome.Rhythmbox /org/gnome/Rhythmbox/Player org.gnome.Rhythmbox.Player.previous");&lt;br /&gt;                break;&lt;br /&gt;            case CWIID_BTN_RIGHT:&lt;br /&gt;                printf("\"Right\" button pressed; calling next()\n");&lt;br /&gt;                cwiid_set_rumble(wiimote, 1);&lt;br /&gt;                system("qdbus org.gnome.Rhythmbox /org/gnome/Rhythmbox/Player org.gnome.Rhythmbox.Player.next");&lt;br /&gt;                break;&lt;br /&gt;            case CWIID_BTN_MINUS:&lt;br /&gt;                printf("\"Minus\" button pressed; calling setVolumeRelative(-.1)\n");&lt;br /&gt;                cwiid_set_rumble(wiimote, 1);&lt;br /&gt;                system("qdbus org.gnome.Rhythmbox /org/gnome/Rhythmbox/Player org.gnome.Rhythmbox.Player.setVolumeRelative -.1");&lt;br /&gt;                update_volume_leds(wiimote);&lt;br /&gt;                break;&lt;br /&gt;            case CWIID_BTN_PLUS:&lt;br /&gt;                printf("\"Plus\" button pressed; calling setVolumeRelative(.1)\n");&lt;br /&gt;                cwiid_set_rumble(wiimote, 1);&lt;br /&gt;                system("qdbus org.gnome.Rhythmbox /org/gnome/Rhythmbox/Player org.gnome.Rhythmbox.Player.setVolumeRelative .1");&lt;br /&gt;                update_volume_leds(wiimote);&lt;br /&gt;                break;&lt;br /&gt;            default:&lt;br /&gt;                printf("Button \"%d\" not implemented...\n", mesg[i].btn_mesg.buttons);&lt;br /&gt;                break;&lt;br /&gt;            }&lt;br /&gt;            usleep(10000);&lt;br /&gt;            cwiid_set_rumble(wiimote, 0);&lt;br /&gt;&lt;br /&gt;            break;&lt;br /&gt;        default:&lt;br /&gt;            printf("Uncaught report...\n");&lt;br /&gt;            break;&lt;br /&gt;        }&lt;br /&gt;    }&lt;br /&gt;}&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7359304458512656752-9194050676268553939?l=redjunasun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redjunasun.blogspot.com/feeds/9194050676268553939/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://redjunasun.blogspot.com/2010/11/wiimote-for-controlling-rhythmbox.html#comment-form' title='1 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7359304458512656752/posts/default/9194050676268553939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7359304458512656752/posts/default/9194050676268553939'/><link rel='alternate' type='text/html' href='http://redjunasun.blogspot.com/2010/11/wiimote-for-controlling-rhythmbox.html' title='Wiimote for controlling Rhythmbox'/><author><name>Red Junasun</name><uri>http://www.blogger.com/profile/03789479117620735459</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7359304458512656752.post-6510491959477057629</id><published>2010-08-15T12:07:00.003+02:00</published><updated>2010-08-15T12:26:29.812+02:00</updated><title type='text'>Last.fm scrobbling at YouTube</title><content type='html'>Like most people who like to listen to music, I watch a lot of music videos on YouTube. Also, I'm a big fan of &lt;a href="http://www.last.fm/"&gt;last.fm&lt;/a&gt;. For years I was thinking by myself "it would be perfect if I could scrobble the tracks I listen to on YouTube", but I never even tried to look for a way to fix that because I thought it wouldn't be there.&lt;br /&gt;&lt;br /&gt;But today I did, and it really made my day because there is a great &lt;a href="http://www.greasespot.net/"&gt;Greasemonkey&lt;/a&gt; script which does exactly what I wanted. It's called &lt;a href="http://userscripts.org/scripts/show/71606"&gt;youscrobble&lt;/a&gt; and it looks like this:&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_qrGHPdoUwVE/TGfAKnWrzXI/AAAAAAAAAU4/PZg4GhURuQ4/s1600/youscrobbler.jpg"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 400px; height: 248px;" src="http://3.bp.blogspot.com/_qrGHPdoUwVE/TGfAKnWrzXI/AAAAAAAAAU4/PZg4GhURuQ4/s400/youscrobbler.jpg" alt="" id="BLOGGER_PHOTO_ID_5505580358079073650" border="0" /&gt;&lt;/a&gt;You get a nice "Scrobble" button which pops up a form to submit the song. You can even fix the artist and track name if necessary.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7359304458512656752-6510491959477057629?l=redjunasun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redjunasun.blogspot.com/feeds/6510491959477057629/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://redjunasun.blogspot.com/2010/08/lastfm-scrobbling-at-youtube.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7359304458512656752/posts/default/6510491959477057629'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7359304458512656752/posts/default/6510491959477057629'/><link rel='alternate' type='text/html' href='http://redjunasun.blogspot.com/2010/08/lastfm-scrobbling-at-youtube.html' title='Last.fm scrobbling at YouTube'/><author><name>Red Junasun</name><uri>http://www.blogger.com/profile/03789479117620735459</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_qrGHPdoUwVE/TGfAKnWrzXI/AAAAAAAAAU4/PZg4GhURuQ4/s72-c/youscrobbler.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7359304458512656752.post-5203587143493368627</id><published>2010-01-27T15:20:00.001+01:00</published><updated>2010-01-27T15:22:02.940+01:00</updated><title type='text'>FOSDEM 2010</title><content type='html'>&lt;a href="http://www.fosdem.org/"&gt;&lt;img src="http://www.fosdem.org/promo/going-to" alt="I'm going to FOSDEM, the Free and Open Source Software Developers' European Meeting" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7359304458512656752-5203587143493368627?l=redjunasun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redjunasun.blogspot.com/feeds/5203587143493368627/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://redjunasun.blogspot.com/2010/01/fosdem-2010.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7359304458512656752/posts/default/5203587143493368627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7359304458512656752/posts/default/5203587143493368627'/><link rel='alternate' type='text/html' href='http://redjunasun.blogspot.com/2010/01/fosdem-2010.html' title='FOSDEM 2010'/><author><name>Red Junasun</name><uri>http://www.blogger.com/profile/03789479117620735459</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7359304458512656752.post-4064352035869037835</id><published>2009-11-22T21:29:00.009+01:00</published><updated>2009-11-22T21:53:02.641+01:00</updated><title type='text'>A small review of the Massa CPL polarizer filter</title><content type='html'>Lately I bought the Massa CPL polarizer filter (58mm) at DealExtreme, for only $7.89. I'm planning to use it mainly for landscapes, so today I tested it on some skies. First, here's a picture of a sky with the polarizer filter deactivated.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_qrGHPdoUwVE/SwmiW78iXfI/AAAAAAAAAR8/Fak8Gmg2wPk/s1600/normal.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 267px;" src="http://1.bp.blogspot.com/_qrGHPdoUwVE/SwmiW78iXfI/AAAAAAAAAR8/Fak8Gmg2wPk/s400/normal.jpg" alt="" id="BLOGGER_PHOTO_ID_5407031342567415282" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;(Almost) the same picture with my polarizer filter activated looks like this:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_qrGHPdoUwVE/Swmixo7QEdI/AAAAAAAAASE/NQUAOe4rkMM/s1600/polarizer.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 267px;" src="http://2.bp.blogspot.com/_qrGHPdoUwVE/Swmixo7QEdI/AAAAAAAAASE/NQUAOe4rkMM/s400/polarizer.jpg" alt="" id="BLOGGER_PHOTO_ID_5407031801318216146" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Pretty cool huh? I think the contrasts between the sky and the clouds make the picture a lot nicer. Just to see the differences in one picture very clearly, I made another picture with the filter halfway in front of the lens.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_qrGHPdoUwVE/SwmjpndL9XI/AAAAAAAAASM/O4uwbFHCDTA/s1600/normalpolar.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 267px;" src="http://1.bp.blogspot.com/_qrGHPdoUwVE/SwmjpndL9XI/AAAAAAAAASM/O4uwbFHCDTA/s400/normalpolar.jpg" alt="" id="BLOGGER_PHOTO_ID_5407032762996356466" border="0" /&gt;&lt;/a&gt;I don't have any other polarizer filters to make a comparison, but I think this filter does what it should do.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7359304458512656752-4064352035869037835?l=redjunasun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redjunasun.blogspot.com/feeds/4064352035869037835/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://redjunasun.blogspot.com/2009/11/small-review-of-massa-cpl-polarizer.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7359304458512656752/posts/default/4064352035869037835'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7359304458512656752/posts/default/4064352035869037835'/><link rel='alternate' type='text/html' href='http://redjunasun.blogspot.com/2009/11/small-review-of-massa-cpl-polarizer.html' title='A small review of the Massa CPL polarizer filter'/><author><name>Red Junasun</name><uri>http://www.blogger.com/profile/03789479117620735459</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_qrGHPdoUwVE/SwmiW78iXfI/AAAAAAAAAR8/Fak8Gmg2wPk/s72-c/normal.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-7359304458512656752.post-3797419680580304777</id><published>2009-10-25T15:27:00.000+01:00</published><updated>2009-10-25T16:10:12.975+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tamron'/><category scheme='http://www.blogger.com/atom/ns#' term='55-250'/><category scheme='http://www.blogger.com/atom/ns#' term='canon'/><category scheme='http://www.blogger.com/atom/ns#' term='f/4-5.6'/><category scheme='http://www.blogger.com/atom/ns#' term='55-200'/><category scheme='http://www.blogger.com/atom/ns#' term='IS'/><title type='text'>Comparing the Canon 55-250mm F/4-5.6 IS and the Tamron 55-200mm F/4-5.6 lens</title><content type='html'>&lt;span style="font-family:trebuchet ms;"&gt;Yesterday I bought the Canon 55-250mm F/4-5.6 IS lens, replacing my Tamron 55-200mm F/4-5.6 lens. &lt;/span&gt;Now I'm really interested in the differences in image quality, so I decided to put the two lenses to the test. I shot the same objects with different settings, modifying the focal length and the aperture. The &lt;a href="http://www.rjansen.name/pub/lenscompare/index.html"&gt;test results&lt;/a&gt; are on a different page, so I was able to use a full screen layout.&lt;br /&gt;&lt;br /&gt;My conclusion is that the Canon lens has a much nicer bokeh and more intense colors. However, I don't see very much difference in sharpness. I think the Canon lens is worth the extra money, because it produces better pictures and moreover has a 4-stop image stabilizer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/7359304458512656752-3797419680580304777?l=redjunasun.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://redjunasun.blogspot.com/feeds/3797419680580304777/comments/default' title='Reacties plaatsen'/><link rel='replies' type='text/html' href='http://redjunasun.blogspot.com/2009/10/comparing-canon-55-250mm-f4-56-is-and.html#comment-form' title='0 reacties'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/7359304458512656752/posts/default/3797419680580304777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/7359304458512656752/posts/default/3797419680580304777'/><link rel='alternate' type='text/html' href='http://redjunasun.blogspot.com/2009/10/comparing-canon-55-250mm-f4-56-is-and.html' title='Comparing the Canon 55-250mm F/4-5.6 IS and the Tamron 55-200mm F/4-5.6 lens'/><author><name>Red Junasun</name><uri>http://www.blogger.com/profile/03789479117620735459</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
