RooJSolutions en RSS: RooJSolutions - /index.php 150 150 When unstable is just not unstable enough 2010-08-29 00:00:00 <a href="">Article originally from rooJSolutions blog</a><br/> <div>..It all started by having yet another look at the gir problem..... Keeping them up-to-date, and trying out the latest cool Gnome toys.</div><div><br></div> Ubuntu release 9.10 a bit early 2009-10-30 07:46:22 <a href="">Article originally from rooJSolutions blog</a><br/> Looks like ubuntu released karmic today (as I guess they could not rename it 9.11).<div><br /></div><div>I've been testing karmic for months, (which at times have been very painful - but if you join the beta ride, what else would it be), but in the last few weeks it looked like it was really coming together.</div><div><br /></div><div>The only big regression was the synaptics touchpad resetting the 'tap' setting after suspend resume cycle.</div><div><br /></div><div>However, there was a kernel update last week whichcompletelybroke suspend (it never really sleeps the machine), and attempts to report it via the apport tool result in a invalid message about the kernel not being a ubuntu one.. (which someone has reported)</div><div><br /></div><div>I'd really suggest anyone requiring resume/suspend to work, to hold of for a little while until they sort out the remaining issues.</div><div><br /></div><div><br /></div><div><br /></div> ASUS My Cinema U3100 Mini DMB-TH - MythTV fully working 2009-03-15 22:49:54 <a href="">Article originally from rooJSolutions blog</a><br/> After months of being left on the side burner, I just got round to fixing Digital TV with the ASUS My Cinema and MythTV.<br /><br />Having finally got the correct source code from ASUS a few months ago, I've gone through it and made it thread safe (get rid of the global locks). So you can use multiple sticks on a single PC. and got rid of most of the shutdown kernel panics.<br /><br />The final fixes where related to the really bad locking code, that basically was failing too quickly and constantly changing the GI settings. The kludge I've done is to remove the flipping (as all of the HK channels are on GI_945). and this card only really works in HK &amp; China.<br /><br />This resolve the last issue of waiting for a lock to a signal taking over a minute to milliseconds. - Finally making the card usable in MythTv (as it doesnt really like really slow locking cards..)<br /><br />Anyway, code is in my repo - I need to start thinking about syncing with v4l-dvb guys and finding out how to rename the files so they are not just overwriting the existing dib3000mc driver.<br /><br />For your pleasure<br /><br /><a href="">ASUS My Cinema U3100 Mini DMB-TH Linux Driver for v4l-dvb </a><br /><br />If you need frequency details have a look at my last post about the ASUS stick.<br /> ASUS My Cinema U3100 Mini DMB-TH - Partly working 2008-11-17 11:10:00 <a href="">Article originally from rooJSolutions blog</a><br/> These are my notes/ comments on getting it to work (partly), check the blog again every month or so to see if I ever get the thing working fully..<br /> <br /> After leaving the Digital TV sticks lying around for a few months, I finally got back to looking at the issues with drivers. ASUS have been absolutely useless, and have ceased responding to all support requests. The Source code supplied on the site, and emailed to me directly appears to be the completely the wrong source code (based on comparisons using strings on the binary driver, I'll have more confirmation of this when I review the dmesg outputs as described below..)<br /> <br /> Having given up on the source code, I decided just to see if I could get them to work in any way. We had a go with the Windows drivers on a PC at work, but did not really have much success (as I found out later, probably due to signal issues with the little antenna). But it did give me the idea of using virtual machines and running the EEEPC development kit. So here's the process so far just to test the cards. - details in the extended bit..<br /> Source code for ASUS My Cinema U3100 Mini DMB-TH 2008-07-16 08:59:21 <a href="">Article originally from rooJSolutions blog</a><br/> After a little wait (~ 3 weeks), having asked ASUS to provide me with the source code for the drivers to the DMB-TH Digital TV receiver, I finally got two tarballs of the source code. One step closer to an open source friendly solution to watch Digital TV in China and Hong Kong.<br /><br />It took a little persuasion to convince the technical support team at ASUS that I was entitled to the source as it was based on GPL code, but once they understood, and had asked their supervisor/ R&amp;D department about it. It was just a matter of waiting for the R&amp;D dept to get time to do it.<br /><br />I was very impressed with ASUS in general - their tech response times for product support where pretty amazing (usually answering within a few hours). If you have the option of buying ASUS, I can highly recommend their email tech support. Friendly, positive, and responsive. <br /><br />The driver modifications are all to drivers/media/dvb/*, and consist mostly of 2 new files dealing with the demodulator, and a rather unfortunate hack at db3000mc.c - Basically replacing the core of that file with the routines for the Legend chip. Rather than creating a new file (which looks like it would have been a far better idea). <br /><br />Anyway, I'm going to try building these changes against a recent kernel, then see if I can sort out the db3000mc mess. If anyone want's to help out, drop me an email and I can send you the files.<br /> Bluetooth GPRS via an A1200 and 2008-01-24 08:44:24 <a href="">Article originally from rooJSolutions blog</a><br/> After quite a bit googling and guesswork, I finally got my portable to connect via my Motorola A1200 to (unlimited GRPS). So here's the settings for reference (as most of the google results are not quite accurate).<br /><br />for starters: <span style="font-weight: bold;">/etc/bluetooth/rfcomm.conf</span><br />(you need to find out your bluetooth id - plenty of results if you google &quot;bt grps howto's&quot; )<br /><pre>rfcomm0 {<br /> bind yes;<br /> device ***device id here **;<br /> channel 5;<br /> comment &quot;Alans phone&quot;;<br />}</pre><br />you need to configure pairing - I think this is the one that worked<br /><span style="font-weight: bold;">/etc/bluetooth/hcid.conf</span><br /><pre>options {<br /> autoinit yes;<br /> security user;<br /> pairing multi;<br /> passkey &quot;**MAKE UP A PASSKEY ***&quot;;<br />}</pre><br />And now for the magical stuff.. (the was the magic bit that solved all the connection problems)<br /><span style="font-weight: bold;">/etc/ppp/peers/peoples </span><br /><pre>debug<br />connect &quot;/usr/sbin/chat -v -f /etc/chatscripts/people-connect&quot;<br />user &quot;ptc&quot;<br />password &quot;ptc&quot;<br />/dev/rfcomm0 115200<br />show-password<br />noipdefault<br />usepeerdns<br />defaultroute<br />noauth<br /><br />ipcp-accept-local<br />ipcp-accept-remote<br />debug<br />kdebug 7<br />#nodeflate<br />novj<br />noccp<br /><br />#remove if you want pon to run in the background<br />modem -detach</pre><br />the chat script<br /><span style="font-weight: bold;">/etc/chatscripts/peoples-connect</span><br /><pre>TIMEOUT 35<br />ECHO ON<br />ABORT '\nBUSY\r'<br />ABORT '\nERROR\r'<br />ABORT '\nNO ANSWER\r'<br />ABORT '\nNO CARRIER\r'<br />ABORT '\nNO DIALTONE\r'<br />ABORT '\nRINGING\r\n\r\nRINGING\r'<br />'' ATZ<br />OK 'ATM1L1'<br />OK 'AT&amp;f+cgdcont=1,&quot;IP&quot;,&quot;;,&quot;&quot;,0,0'<br />OK 'ATDT*99***1#'<br />CONNECT &quot;&quot;</pre><br />This is disconnect (not really used it, but might help...)<br /><span style="font-weight: bold;">/etc/chatscripts/people-disconnect</span><br /><pre>SAY 'Starting GPRS disconnect script\n'<br />&quot;&quot; \K<br />&quot;&quot; +++ATH0</pre><br />And hopefully when you do <br /><pre>#pon peoples</pre>you get an internet connection from anywhere in Hong Kong..<br /> Mythtv xmltv importer for HK 2006-04-29 14:03:05 <a href="">Article originally from rooJSolutions blog</a><br/> Over the last few weeks, apart from a huge workload, I've been busy moving house - now living in the clouds 52 floors up..<br /><br />Anyway, one of the important projects to get done for myself, was setting up mythtv on this server (my main web server doubles up as my PVR/video jukebox.)<br /><br />Just some of the highlights of setting up mythtv<br /><ul><li>Radeon 9600SE All in wonder Card - TV in did not end up working (well, the card's quite good as a graphics card anyway, and it came with a usb remote control) so it was not a total loss..</li><li>Bought Haupage PVR500MCE - appears to work ok, although you have to be carefull with the TV arial cable to get good reception. (very nice card with 2 tuners built in.)</li><li>No way to get TV listings for Hong Kong Free to air channels - see later......</li><li>Display did not render chinese (which is what the channels guides come with) - ended up modifying the theme.xml / ui.xml in one of the theme's to use a chinese font -&gt; that solves the schedule browser</li><li>have to use chinese font for osd display. (to display the active watched program)</li><li>Rewind / go back, and constant recording what you watch is really nice..</li></ul>I had to write a small application to grab the listings for Hong Kong TV and output XMLTV format -&gt;<br />see the svn files here <a href=""></a><br />it's pretty simple to use, only requires the mbstring to be working. (usage instructions inside the php file.)<br /><br />Unfortunatly, I still have quite a uphill battle to finish for the box, let alone thinking about all the other fun stuff I started recently, and have left in limbo due to moving house. Still todo on the box:<br /><ul><li>Sort out Remote key mappings for the ATI remote -&gt; it's pretty messed up for almost all the features (TV/Video watching/EPG etc)</li><li>Autoripping of VCD/DVD's when inserted..</li><li>How to map autoripped VCD/DVD's into imdb for the video library</li><li>Add bigger disk ;)<br /></li></ul><br /><br /> captcha death and mod_proxy mistakes. 2006-02-08 09:56:49 <a href="">Article originally from rooJSolutions blog</a><br/> The unfortunate thing about mod_proxy, is that it's a pain in the ass to set up correctly. Another one of the machines I work on had been using this to allow some remote access to a private box. Unfortunatly even though I had IP restricted access, I had obviously missed a setting somewhere. Looking at my logs the other day, I realized that apache was doing quite a trade in URLs...<br /><br />Last time I misconfigured mod_proxy, my ISP had phoned me up to let me know there was spam eminating from my server, so I had re-configured mod_proxy and fixed the open proxy on that server. My guess is that the abusers of mod_proxy had concluded that such a direct attack (POST xx.xx.xx.xx:25 ... MAIL FROM ....) was rather self defeating, as ISP's tend just to block a server if it is shooting out lots of spam (or suddenly has high traffic outbound on port 25)<br /><br />So I was supprised to see what was being requested from my open proxy. Captcha images!!!!!<br /><br />Guessing from the referrer information, I think some guy in Bejing had come up with this idea:<br /><br />- Set up an online game site, and make the users fill in a captcha to play the game.<br />- Except, the captcha actually comes from a free webmail provider, and the entered data enables them to set up new webmail accounts, and send out webmail. <br /><br />I presume that doing that directly from their server caused them to get blocked pretty quickly from the webmail provider, so they just looked around for open proxies to solve the problem..<br /><br />Quite smart in some respects, and I like the bit about on-line gaming to do this - lot's of kids like these on-line games, and dont think twice when they solve a captcha.. - Let's just hope that blog spammers dont get in on the act..<br />