<?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>Yonder thoughts &#187; Nerd</title> <atom:link href="http://blog.mrfjo.org/category/nerd/feed/" rel="self" type="application/rss+xml" /><link>http://blog.mrfjo.org</link> <description>Just another monday morning</description> <lastBuildDate>Fri, 27 May 2011 09:43:19 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.4-alpha-19719</generator> <item><title>How I made Spotify 0.5 work under wine 1.3</title><link>http://blog.mrfjo.org/2011/05/09/how-i-made-spotify-0-5-work-under-wine-1-3/</link> <comments>http://blog.mrfjo.org/2011/05/09/how-i-made-spotify-0-5-work-under-wine-1-3/#comments</comments> <pubDate>Mon, 09 May 2011 08:11:37 +0000</pubDate> <dc:creator>espen</dc:creator> <category><![CDATA[Hack]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Nerd]]></category> <category><![CDATA[Spotify]]></category> <category><![CDATA[crash]]></category> <category><![CDATA[eula]]></category> <category><![CDATA[hack]]></category> <category><![CDATA[license]]></category> <category><![CDATA[mp3]]></category> <category><![CDATA[spotify]]></category> <category><![CDATA[spotify 0.5]]></category> <category><![CDATA[user]]></category> <category><![CDATA[wine]]></category><guid
isPermaLink="false">http://blog.mrfjo.org/?p=121</guid> <description><![CDATA[As many of you know Spotify crashes when showing the new EULA under Wine. The &#8220;fix&#8221; is quite easy to do: Step1: Do a clean install of Spotify under Windows Step2: Accept the new EULA under Windows Step3: Copy the files c:\users\\Application Data\Roaming\Spotify to ~/.wine/drive_c/users//Application Data/Spotify Step4: Copy the files c:\users\\Application Data\Local\Spotify to ~/.wine/drive_c/users//Local settings/Application <a
href='http://blog.mrfjo.org/2011/05/09/how-i-made-spotify-0-5-work-under-wine-1-3/'>[...]</a>]]></description> <content:encoded><![CDATA[<p>As many of you know Spotify crashes when showing the new EULA under Wine.</p><p>The &#8220;fix&#8221; is quite easy to do:</p><blockquote><p>Step1: Do a clean install of Spotify under Windows<br
/> Step2: Accept the new EULA under Windows<br
/> Step3: Copy the files c:\users\\Application Data\Roaming\Spotify to ~/.wine/drive_c/users//Application Data/Spotify<br
/> Step4: Copy the files c:\users\\Application Data\Local\Spotify to ~/.wine/drive_c/users//Local settings/Application Data/Spotify<br
/> Step5: Start Spotify and crash<br
/> Step6: Start Spotify and all is good.</p></blockquote><p>ps. if it doesnt work, try and copy both the windows folders, to both of the wine-application data folders.</p><p>See my other post <a
class="vt-p" href="http://blog.mrfjo.org/2010/04/27/how-i-made-spotify-0-4-play-local-mp3-files-on-linux/">How i made Spotify 0.4 play local mp3 files on Linux</a><br
/> <b>Update:</b> A lot of you have commented that facebook connection also have to be turned off.</p> ]]></content:encoded> <wfw:commentRss>http://blog.mrfjo.org/2011/05/09/how-i-made-spotify-0-5-work-under-wine-1-3/feed/</wfw:commentRss> <slash:comments>18</slash:comments> </item> <item><title>Ubuntu (Maverick+) crash when unplugging laptop power cord</title><link>http://blog.mrfjo.org/2010/12/27/ubuntu-maverick-crash-when-unplugging-laptop-power-cord/</link> <comments>http://blog.mrfjo.org/2010/12/27/ubuntu-maverick-crash-when-unplugging-laptop-power-cord/#comments</comments> <pubDate>Mon, 27 Dec 2010 19:26:41 +0000</pubDate> <dc:creator>espen</dc:creator> <category><![CDATA[Hack]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Nerd]]></category> <category><![CDATA[crash]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[kernel]]></category> <category><![CDATA[kubuntu]]></category> <category><![CDATA[laptop]]></category> <category><![CDATA[power saving]]></category> <category><![CDATA[ubuntu]]></category><guid
isPermaLink="false">http://blog.mrfjo.org/?p=109</guid> <description><![CDATA[I have lately noticed that my Ubuntu crash when unplugging the power cord from my Laptop. This seemed to have something with the disk or disk controller since i would get ATA and file system kernel oops, and eventually a full crash. After a bit testing i found that this came from acpid calling pm-utils <a
href='http://blog.mrfjo.org/2010/12/27/ubuntu-maverick-crash-when-unplugging-laptop-power-cord/'>[...]</a>]]></description> <content:encoded><![CDATA[<p>I have lately noticed that my Ubuntu crash when unplugging the power cord from my Laptop. This seemed to have something with the disk or disk controller since i would get ATA and file system kernel oops, and eventually a full crash.</p><p>After a bit testing i found that this came from <em>acpid</em> calling <em>pm-utils</em> (power management utilities) when unplugging the power cord.<br
/> A bit more testing revealed that it was the sata_alpm script which was the problem.<br
/> From the sata_alpm file it says it does the following:</p><blockquote><p>This hook tries to save power by allowing SATA controllers to<br
/> reduce power usage when the SATA subsystem is otherwise idle.<br
/> This adds a little bit of latency to drive accesses in<br
/> exchange for moderate power savings if you are not using the drive.</p></blockquote><p>I was able to circumvent this issue by doing <code>sudo touch /etc/pm/power.d/sata_alpm</code>.<br
/> Immediately after this i am able to unplug my power cord just as i please.</p><p>I have not given any time to solving the underlying cause for the freeze in the first time, as this lies in the part of the kernel telling the OS and file system that the drive has gone away sleeping.</p><p>Some information about the commit causing this problem: <a
href="http://kerneltrap.org/mailarchive/git-commits-head/2009/12/8/15922">http://kerneltrap.org/mailarchive/git-commits-head/2009/12/8/15922</a></p> ]]></content:encoded> <wfw:commentRss>http://blog.mrfjo.org/2010/12/27/ubuntu-maverick-crash-when-unplugging-laptop-power-cord/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>How i made Spotify 0.4 play local mp3 files on Linux with Wine</title><link>http://blog.mrfjo.org/2010/04/27/how-i-made-spotify-0-4-play-local-mp3-files-on-linux/</link> <comments>http://blog.mrfjo.org/2010/04/27/how-i-made-spotify-0-4-play-local-mp3-files-on-linux/#comments</comments> <pubDate>Tue, 27 Apr 2010 19:39:25 +0000</pubDate> <dc:creator>espen</dc:creator> <category><![CDATA[Hack]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Nerd]]></category> <category><![CDATA[Spotify]]></category> <category><![CDATA[c code]]></category> <category><![CDATA[hack]]></category> <category><![CDATA[hacking]]></category> <category><![CDATA[mp3]]></category> <category><![CDATA[nerd]]></category> <category><![CDATA[nerdy]]></category> <category><![CDATA[spotify]]></category> <category><![CDATA[spotify 0.4]]></category> <category><![CDATA[ubuntu]]></category> <category><![CDATA[wine]]></category><guid
isPermaLink="false">http://blog.mrfjo.org/?p=46</guid> <description><![CDATA[This is a very short, and "simple" explanation  how i made Spotify 0.4 play local MP3 files under Linux with Wine.
I have not tested this elsewhere, and i can not guarantee that everyone has to do the same steps as me.
]]></description> <content:encoded><![CDATA[<p>This is a very short, and &#8220;simple&#8221; explanation  how i made Spotify 0.4 play local MP3 files under Linux with Wine.<br
/> I have not tested this elsewhere, and i can not guarantee that everyone has to do the same steps as me.</p><p>If you want to try my finished file you can download it here: <a
href="http://blog.mrfjo.org/winemp3.acm.so">winemp3.acm.so (x86 only)</a><br
/> Place it in /usr/lib/wine/ (x86) or /usr/lib32/wine/ (x64).</p><p>Or if you need to do things a tad more automatic you can try this script which will do everything automatically for the ones of you on x86: <a
href="http://blog.mrfjo.org/winefix.sh">winefix.sh</a></p><p>For those of you who want the technical details: continue reading <img
src='http://blog.mrfjo.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>You should try and skip step 3 if possible, but if Spotify just hangs and max out your CPU you should do step 3.</p><p>You can also use an hex editor to change WINE-MPEG3 to LAME-MPEG3 in /usr/lib/wine/winemp3.acm.so to try before doing the, for me, crucial step number three.</p><p>Step 1: Download the wine source code.<br
/> Step 2: run configure to create the appropriate Makefiles<br
/> Step 3: edit dlls/winemp3.acm/mpgl3.c and change the following:<br
/> <code><br
/> if (dpos > *ndst) break;<br
/> } while (ret != MPG123_ERR &#038;&#038; ret != MPG123_NEED_MORE);<br
/> *ndst = dpos;<br
/> </code></p><p>To this:</p><p><code><br
/> if (dpos >= *ndst) break;<br
/> } while (ret != MPG123_ERR &#038;&#038; ret != MPG123_NEED_MORE);<br
/> *ndst = dpos;</p><p></code></p><p>Step4: Change the following:<br
/> <code><br
/> add->cFilterTags = 0;<br
/> add->hicon = NULL;<br
/> MultiByteToWideChar( CP_ACP, 0, "WINE-MPEG3", -1,<br
/> add->szShortName, sizeof(add->szShortName)/sizeof(WCHAR) );<br
/> </code></p><p>To this:<br
/> <code><br
/> add->cFilterTags = 0;<br
/> add->hicon = NULL;<br
/> MultiByteToWideChar( CP_ACP, 0, "EFO", -1,<br
/> add->szShortName, sizeof(add->szShortName)/sizeof(WCHAR) );<br
/> </code></p><p>Step 5: Run make to compile the new codec.<br
/> Step 6: copy the codec to /usr/lib/wine/ (ubuntu atleast)<br
/> Step 7: Run Spotify and enjoy.</p><p>This worked for me, but it is not recommended as i changed some code in the MP3 library in Wine.<br
/> If you use Wine with other programs which utilizes the mpeg3 library they might break.</p><p><strong>UPDATE 1:</strong> It seems like my hack will give some problems with automatic changing of songs. The codec does not understand that the song is finished, and will just generate noise.</p><p><strong>UPDATE 2:</strong> Ok, new fix. This time it does infact end where it should, and continues to the next track. Step 3 is updated. Same with the binary file, and scripts.</p><p><strong>UPDATE 3: </strong> Moved around some text in this post.</p> ]]></content:encoded> <wfw:commentRss>http://blog.mrfjo.org/2010/04/27/how-i-made-spotify-0-4-play-local-mp3-files-on-linux/feed/</wfw:commentRss> <slash:comments>34</slash:comments> </item> <item><title>Using a Windows Mobile GPS on Linux</title><link>http://blog.mrfjo.org/2009/04/06/using-a-windows-mobile-gps-on-linux/</link> <comments>http://blog.mrfjo.org/2009/04/06/using-a-windows-mobile-gps-on-linux/#comments</comments> <pubDate>Mon, 06 Apr 2009 12:43:25 +0000</pubDate> <dc:creator>espen</dc:creator> <category><![CDATA[Hack]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Mobile]]></category> <category><![CDATA[Nerd]]></category> <category><![CDATA[cell]]></category> <category><![CDATA[Cell Phone]]></category> <category><![CDATA[gps]]></category> <category><![CDATA[htc]]></category> <category><![CDATA[kismet]]></category> <category><![CDATA[socat]]></category> <category><![CDATA[windows mobile]]></category><guid
isPermaLink="false">http://blog.mrfjo.org/?p=9</guid> <description><![CDATA[How to use a GPS enabled Windows Mobile with a Linux Client.]]></description> <content:encoded><![CDATA[<p>For some time now i have been searching for a way to use the GPS on my Windows Mobile HTC Touch Diamond on Linux.</p><p>I tried several solutions to make it communicate and send raw NMEA output to the Linux gps-daemon.<br
/> Even wrote some small programs to read directly from the raw serial port on the HTC, but that was just crashing.<br
/> Then i found <a
href="http://users.skynet.be/hofinger/GPS2Blue.html">gps2blue</a> which is a small program running under Windows Mobile and reading raw data from the GPS, and sending the data either over TCP/IP or Bluetooth.<br
/> Since my main laptop doesn&#8217;t have Bluetooth i use the TCP/IP options. Here, there are several choices how to connect the phone to your computer. Either by using RNDIS and a USB cable, or WIFI network.<br
/> You can even create a AD HOC network on Linux and have the phone and computer communicate where there are no other available WIFI network.</p><p>But then again i had the problem of getting gpsd to read that data, since gpsd mainlyread its data from a serial device.<br
/> I searched a bit around and found a tool called <em>socat</em><br
/> <code>Description: multipurpose relay for bidirectional data transfer<br
/> Socat (for SOcket CAT) establishes two bidirectional byte streams<br
/> and transfers data between them. Data channels may be files, pipes,<br
/> devices (terminal or modem, etc.), or sockets (Unix, IPv4, IPv6, raw,<br
/> UDP, TCP, SSL). It provides forking, logging and tracing, different<br
/> modes for interprocess communication and many more options.<br
/> .<br
/> It can be used, for example, as a TCP relay (one-shot or daemon),<br
/> as an external socksifier, as a shell interface to Unix sockets,<br
/> as an IPv6 relay, as a netcat and rinetd replacement, to redirect<br
/> TCP-oriented programs to a serial line, or to establish a relatively<br
/> secure environment (su and chroot) for running client or server shell<br
/> scripts inside network connections.<br
/> </code></p><p>So to use this with gps2blue i ran the following command <code>socat tcp4-listen:31873 pty</code> This will create a new device in /dev/pts/.<br
/> Atleast with my udev enabled ubuntu.</p><p>Then i could fine run gpsd /dev/pts/3 and use what client i wanted.</p><p>The same principle also works on Windows, but there you need to use HW VSP instead of socat.</p> ]]></content:encoded> <wfw:commentRss>http://blog.mrfjo.org/2009/04/06/using-a-windows-mobile-gps-on-linux/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Windows Mobile 6.5</title><link>http://blog.mrfjo.org/2009/04/04/windows-mobile-65/</link> <comments>http://blog.mrfjo.org/2009/04/04/windows-mobile-65/#comments</comments> <pubDate>Sat, 04 Apr 2009 14:42:01 +0000</pubDate> <dc:creator>espen</dc:creator> <category><![CDATA[Mobile]]></category> <category><![CDATA[Nerd]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[6.5]]></category> <category><![CDATA[beta]]></category> <category><![CDATA[cell]]></category> <category><![CDATA[phone]]></category> <category><![CDATA[windows mobile]]></category><guid
isPermaLink="false">http://blog.mrfjo.org/?p=17</guid> <description><![CDATA[I have for a long time now been thinking about upgrading my HTC Touch Diamond to Windows Mobile 6.5, and have been watching several custom cooked rooms over at XDA. I am currently using this This build, but already looking at some newer ones. The upgrade went flawlessly, and rolling back the backup made from <a
href='http://blog.mrfjo.org/2009/04/04/windows-mobile-65/'>[...]</a>]]></description> <content:encoded><![CDATA[<p>I have for a long time now been thinking about upgrading my HTC Touch Diamond to Windows Mobile 6.5, and have been watching several custom cooked rooms over at XDA.<br
/> I am currently using this <a
href="http://forum.xda-developers.com/showthread.php?t=481896">This</a> build, but already looking at some newer ones.</p><div
id="attachment_18" class="wp-caption alignnone" style="width: 235px"><img
src="http://blog.mrfjo.org/wp-content/uploads/2009/04/pccapture4o-225x300.png" alt="Windows Mobile 6.5" title="Windows Mobile 6.5" width="225" height="300" class="size-medium wp-image-18" /><p
class="wp-caption-text">Windows Mobile 6.5</p></div><p>The upgrade went flawlessly, and rolling back the backup made from Sprite Backup also worked flawlessly. Yay!</p><p>As you see from the picture above the new main Today plugin is quite more organized than Manilla3D. You get a nice, clear overview over new messages, the time, emails, appointments, the calendar and more.</p> ]]></content:encoded> <wfw:commentRss>http://blog.mrfjo.org/2009/04/04/windows-mobile-65/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Object Caching 0/0 objects using apc

Served from: blog.mrfjo.org @ 2012-02-06 21:27:27 -->
