<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
    <title>daishar.com</title>
    <link rel="alternate" type="text/html" href="http://www.daishar.com/blog/" />
    <link rel="self" type="application/atom+xml" href="http://www.daishar.com/blog/atom.xml" />
    <id>tag:www.daishar.com,2010-04-27:/blog//1</id>
    <updated>2010-09-21T05:32:24Z</updated>
    
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 5.01</generator>

<entry>
    <title>Playstation 3 and 3D Blu-Ray movies</title>
    <link rel="alternate" type="text/html" href="http://www.daishar.com/blog/archives/2010/09/playstation_3_a.html" />
    <id>tag:www.daishar.com,2010:/blog//1.31</id>

    <published>2010-09-21T05:17:21Z</published>
    <updated>2010-09-21T05:32:24Z</updated>

    <summary><![CDATA[With the release of the 3.50 firmware update, the Playstation 3 now plays 3D Blu-Ray movies.&nbsp; My older Mitsubishi DLP TV is 3D-ready but only supports the checkerboard 3D format that nobody uses anymore.&nbsp; However there is a converter kit...]]></summary>
    <author>
        <name></name>
        <uri>http://www.daishar.com/blog</uri>
    </author>
    
    <category term="3dtelevision" label="3D television" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="bluraydisc" label="Blu-ray Disc" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="bluray" label="BluRay" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="movie" label="movie" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="playstation3" label="Playstation 3" scheme="http://www.sixapart.com/ns/types#tag" />
    <category term="sony" label="Sony" scheme="http://www.sixapart.com/ns/types#tag" />
    
    <content type="html" xml:lang="en" xml:base="http://www.daishar.com/blog/">
        <![CDATA[With the release of the 3.50 firmware update, the Playstation 3 now plays <a class="zem_slink" href="http://en.wikipedia.org/wiki/Blu-ray_Disc" title="Blu-ray Disc" rel="wikipedia">3D Blu-Ray</a> movies.&nbsp; My older Mitsubishi <a class="zem_slink" href="http://en.wikipedia.org/wiki/Digital_Light_Processing" title="Digital Light Processing" rel="wikipedia">DLP TV</a> is 3D-ready but only supports the checkerboard 3D format that nobody uses anymore.&nbsp; However there is a <a href="http://www.amazon.com/Mitsubishi-3DC-1000-HDTV-Starter-Pack/dp/B003KTN0B4/ref=pd_cp_e_1">converter kit</a> (available without glasses for $100, with glasses for $300) that will convert multiple 3D formats to checkerboard, including the format used by 3D Blu-Ray movies as well as side-by-side (left/right or top/bottom) formats for 3D TV.<br /><br />I got the converter kit a week before the PS3 update so I had a chance to try it out on 3D TV.&nbsp; It worked great, though I had to manually set the TV to 3D mode and the converter to the appropriate side-by-side format.&nbsp; However when I plugged in the PS3 and tried to play the 3D sampler that came with the kit, I kept getting a warning that either my player or TV was not 3D and it reverted to boring 2D.&nbsp; When I tried this the update had been out for less than an hour, so searching for help on the internets was no use.&nbsp; Time to troubleshoot!<br /><br />My first thought was to check the PS3's Video Settings, but that didn't provide any obvious 3D options.&nbsp; Next I tried turning on 3D on my TV before playing the disk but that didn't work either.&nbsp; Okay, how about Display Settings?&nbsp; Nothing obvious there either, but there's an option for "Video Output Settings", so I went ahead and tried that.&nbsp; I turned on my TV's 3D mode and then selected the Video Output Settings option.&nbsp; After choosing my connection type (HDMI) and letting it auto-detect the resolution, the PS3 then told me that my TV was indeed 3D capable!&nbsp; I had to tell it the size of my TV, and then everything was golden.&nbsp; I started the disc, the converter box automatically detected the signal, and it was time to watch some 3D.<br /><br /><br />If you're running into the same issue, try the following:<br /><br /><ol><li>Turn on your TV's 3D mode.&nbsp; This may not be necessary with newer HDMI 1.4 TVs that can auto-detect 3D capability, but older DLP TVs will almost certainly have to do this first.</li><li>On the PS3 CrossBar interface, go to Settings and then down to Display Settings</li><li>In Display Settings, select Video Output Settings and let it auto-detect.</li><li>If everything works, Video Output Settings should tell you that your TV is 3D capable and ask you to put in the size of your TV for "optimal display".<br /></li></ol><br />

<div style="margin-top: 10px; height: 15px;" class="zemanta-pixie"><a class="zemanta-pixie-a" href="http://www.zemanta.com/" title="Enhanced by Zemanta"><img style="border: medium none; float: right;" class="zemanta-pixie-img" src="http://img.zemanta.com/zemified_e.png?x-id=e2afdb17-4d42-4d12-b638-ab59794d6080" alt="Enhanced by Zemanta" /></a><span class="zem-script more-related pretty-attribution"><script type="text/javascript" src="http://static.zemanta.com/readside/loader.js" defer="defer"></script></span></div>]]>
        
    </content>
</entry>

<entry>
    <title>Your web site nav really isn&apos;t that important</title>
    <link rel="alternate" type="text/html" href="http://www.daishar.com/blog/archives/2010/05/your_web_site_r.html" />
    <id>tag:www.daishar.com,2010:/blog//1.30</id>

    <published>2010-05-28T03:40:32Z</published>
    <updated>2010-05-28T04:07:32Z</updated>

    <summary>Apparently the new thing to do on web sites is to put a floating toolbar over your content in some misguided attempt to get people to sign up, or &quot;capture their eyes&quot;, or some other bullshit that values annoyance over...</summary>
    <author>
        <name></name>
        <uri>http://www.daishar.com/blog</uri>
    </author>
    
    
    <content type="html" xml:lang="en" xml:base="http://www.daishar.com/blog/">
        <![CDATA[<p>Apparently the new thing to do on web sites is to put a floating toolbar over your content in some misguided attempt to get people to sign up, or "capture their eyes", or some other bullshit that values annoyance over usability.  Normally I'd just say fuck it and not go back to any site that did this, but this trend is spreading and it doesn't look like it'll stop any time soon.  Thus I have to do something about it.</p>
<p><a href="https://addons.mozilla.org/en-US/firefox/addon/2108/">Stylish</a> to the rescue!  By using this add-on plus a custom user style, I'm systematically going through web and killing these toolbars as I find them.  If you want to benefit from this, you can download the CSS file from <a href="http://daishar.com/downloads/toolbarssuck.css.txt">here</a>.  Copy and paste that into a new rule in Stylish and it will start working immediately.  I'll update it periodically as I come across other sites with annoying toolbars.  Once I've caught most of the big toolbars, I'll eventually put this up on <a href="http://userstyles.org">UserStyles.org</a> for everyone to use.</p>
<p>Currently the style removes the following crap:
<ul>
<li>Wibiya toolbar on any site</li>
<li>Meebo toolbar on any site</li>
<li>Apture toolbar on any site (this one is particularly annoying because it only appears when you scroll)</li>
<li>The fixed-position toolbar on majornelson.com</li>
<li>NY Times "next article" blob that shows up when you scroll down the page</li>
<li>CNet's login toolbar</li>
<li>CBS News login crap</li>
<li>Reuters crap (apparently they also use Apture for a double whammy)</li>
<li>MSNBC</li>
</ul></p>
<p>Fuck you, toolbar bastards.  You can't control my web experience.</p>
<p>Before:</p>
<img alt="cbswithtoolbar.jpg" src="http://www.daishar.com/blog/Images/cbswithtoolbar.jpg" width="570" height="417" class="mt-image-none" style="" />
<p>After:</p>
<img alt="cbsnotoolbar.jpg" src="http://www.daishar.com/blog/Images/cbsnotoolbar.jpg" width="570" height="417" class="mt-image-none" style="" />
]]>
        
    </content>
</entry>

<entry>
    <title>Not really an update</title>
    <link rel="alternate" type="text/html" href="http://www.daishar.com/blog/archives/2010/04/not_really_an_u.html" />
    <id>tag:www.daishar.com,2010:/blog//1.28</id>

    <published>2010-04-28T06:47:10Z</published>
    <updated>2010-04-28T06:49:40Z</updated>

    <summary>I just moved hosting providers and haven&apos;t bothered to upload everything here. All of the articles still exist, but many downloads are no longer available. Given that I rarely use this blog for anything it&apos;ll probably stay that way for...</summary>
    <author>
        <name></name>
        <uri>http://www.daishar.com/blog</uri>
    </author>
    
        <category term="other" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.daishar.com/blog/">
        <![CDATA[<p>I just moved hosting providers and haven't bothered to upload everything here.  All of the articles still exist, but many downloads are no longer available.  Given that I rarely use this blog for anything it'll probably stay that way for some time.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Gaming backlog</title>
    <link rel="alternate" type="text/html" href="http://www.daishar.com/blog/archives/2007/07/gaming_backlog.html" />
    <id>tag:www.daishar.com,2007:/blog//1.27</id>

    <published>2007-07-15T10:37:43Z</published>
    <updated>2007-08-05T03:10:35Z</updated>

    <summary>My little brother came out to visit over the 4th of July, and he pointed me to his new project: finishing his entire backlog of games. While I applaud his effort and wish him luck, he&apos;s more ambitious than I...</summary>
    <author>
        <name></name>
        <uri>http://www.daishar.com/blog</uri>
    </author>
    
        <category term="games" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.daishar.com/blog/">
        <![CDATA[<p>My little brother came out to visit over the 4th of July, and he pointed me to his <a href="http://onehundredpercent.wordpress.com/">new project</a>:  finishing his entire backlog of games.  While I applaud his effort and wish him luck, he's more ambitious than I am.  I have my own backlog (don't we all?), but I just don't have the motivation to take up the gauntlet and work my way through.  There's too much new good stuff out now or coming soon that I'd rather get a taste of it all instead of immersing myself in one game at a time.  That's not to say that I don't get caught up in certain games.  I played <a href="http://forzamotorsport.net/default.html">Forza 2</a> nearly exclusively for all of June, and I continue to play it now.  I just can't see myself focusing what little gaming time I have on going through my stack of games.  Maybe someday ...</p>]]>
        
    </content>
</entry>

<entry>
    <title>Xbox 360, Live, and NAT update</title>
    <link rel="alternate" type="text/html" href="http://www.daishar.com/blog/archives/2006/01/xbox_360_live_a.html" />
    <id>tag:www.daishar.com,2006:/blog//1.25</id>

    <published>2006-01-08T08:53:37Z</published>
    <updated>2007-08-05T23:10:45Z</updated>

    <summary>A little over a year ago, I posted how I fixed some problems I was having with Xbox Live by setting up UPnP on my Linux router. Since I was finally able to get my hands on an Xbox 360,...</summary>
    <author>
        <name></name>
        <uri>http://www.daishar.com/blog</uri>
    </author>
    
        <category term="games" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.daishar.com/blog/">
        <![CDATA[<p>A little over a year ago, I <a href="http://www.daishar.com/blog/archives/2005/01/xbox_live_linux.html">posted</a> how I fixed some problems I was having with Xbox Live by setting up UPnP on my Linux router.  Since I was finally able to get my hands on an <a href="http://www.xbox.com/en-US/hardware/xbox360/default.htm">Xbox 360</a>, I figured it was time to update my guide on using Live behind a Linux NAT.  The instructions work for both Xbox and Xbox 360, but I'm going to focus on the Xbox 360 configuration this time around.</p>
<p>First things first.  If you don't need to do this, don't do this.  How do you know if you need to do this?  Are you using Linux as a NAT router for your home network?  Does the Xbox 360 report your NAT as moderate?  If so, you probably need to do this.  What is "this"?  Keep reading.</p>
<p>Since the last time I posted, the Linux-IGD project has seen some development, but to look at their <a href="http://linux-igd.sourceforge.net/">home page</a> you wouldn't know it.  Even the <a href="http://sourceforge.net/projects/linux-igd/">Sourceforge page</a> still shows 0.92 as the latest version, having not been updated since January 12, 2003.  All of the recent changes are in their <a href="http://sourceforge.net/cvs/?group_id=52728">CVS repository</a>, though, so we'll build from that instead.  Follow the instructions to checkout linux-igd to your machine.</p>
<p>If you followed my previous post, make sure you've fully uninstalled upnpsdk and linuxigd (a "make uninstall" should be enough for upnpsdk, and for linuxigd you should at least make sure upnpd is not running and remove the /etc/linuxigd directory).  Once you've checked out the CVS project, you'll find a file called INSTALL.  Read that to guide you through installing libupnp-1.2.1.  Make sure you download version 1.2.1 and <b>not</b> version 1.2.1a from the <a href="http://sourceforge.net/project/showfiles.php?group_id=7189">download page</a>.  The INSTALL file is not exactly correct, as you can't just run "make" from the libupnp-1.2.1 root directory.  Instead, go down into the upnp directory under libupnp-1.2.1 and run make there.  This should also build ixml and threadutil at the previous directory level.  Follow the rest of the INSTALL steps, making sure to copy the extra ixml and threadutil libs and includes.  Finally, you can build and install the CVS linux-igd following the steps in the INSTALL file.</p>
<p>Before you fire up upnpd, first take a look through /etc/upnpd.conf and make sure everything is set to your liking.  Some settings I suggest (these should be the defaults):
<ul>
<li>Make sure "iptables_location" points to the path to your iptables binary.  This should default to /usr/sbin/iptables and should already be correct, but double-check to be sure.</li>
<li>debug_mode = 1.  Without this, you're not going to be able to keep tabs on what upnpd is doing.</li>
<li>Make sure the chain names for forward and prerouting are correct for your configuration.  The defaults should usually be right, but it doesn't hurt to double-check.</li>
<li>Set your upstream_bitrate and downstream_bitrate if you really care.  These are in <b>bits</b> per second, not <b>bytes</b>, so make sure you multiply by 8 if you start from bytes per second.  For example, 2 Mega<b>bits</b> per second would be 2097152, but 2 Mega<b>Bytes</b> per second would be 16777216.</li>
</ul>
Now you can fire up upnpd by running "upnpd &lt;external ifname&gt; &ltinternal ifname&gt", where &lt;external ifname&gt; and &lt;internal ifname&gt; depend on your configuration (they are eth0 and eth1 for me, respectively, but yours might be different -- check /sbin/ifconfig if you're not sure).  If all goes well, upnpd will now be running if you look at the process list (I use "ps waux | grep upnpd", and look for entries like "/usr/sbin/upnpd eth0 eth1"), and you should see some messages in /var/log/messages and /var/log/debug.</p>
<p>Now that that's taken care of, start up your Xbox 360 and go to the System blade.  From here, choose Network Settings and then Test Xbox Live Connection.  You'll be prompted that testing the connection will sign out all profiles, so choose Yes and get down to business.  You should now see something like this:
<blockquote><img src="http://www.daishar.com/images/x360/360netsmall.png"></blockquote>
The most important line is the one called "NAT", and it should read "Open", like so:
<blockquote><img src="http://www.daishar.com/images/x360/360natsmall.png"></blockquote>
(For original Xbox users, read my <a href="http://www.daishar.com/blog/archives/2005/01/xbox_live_linux.html">original post</a> for steps to check your NAT level.)  If it doesn't, something went wrong.  On the linux box, run "tail -f /var/log/debug" (if your syslogd is configured to log debug messages somewhere else, tail that log instead -- you can find out what your syslogd will do by looking at /etc/syslog.conf).  When you run the Test Xbox Live Connection troubleshooter, you should see something similar to the following in your log when it gets to the "Xbox Live" portion of the test.
<blockquote><img src="http://www.daishar.com/images/x360/debugmsg.png"></blockquote>
If you don't see that, run "killall upnpd" and then check ps to make sure upnpd has died before restarting it.  Watch the debug log when restarting, and if you see any errors you can look into the Linux-IGD <a href="http://sourceforge.net/forum/forum.php?forum_id=174960">forums</a> to see if you can find some help.  Luckily for me, everything worked great the first time.</p>
<p>By the way, if you have a Windows box behind your NAT, it should now pick up the UPnP gateway device (you may have to install some components through the Add/Remove Programs applet to be able to see UPnP connections, and even if you already have UPnP support installed you'll need to reboot for the OS to pick up the gateway device).  For example, on my XP laptop, I now see this in my Network Connections control panel:
<blockquote><img src="http://www.daishar.com/images/x360/igdxp.png"></blockquote>
From here, you can drill down into the gateway device's Status, then Properties, and finally Settings to see the list of current port mappings.
<blockquote><img src="http://www.daishar.com/images/x360/pmap.png"></blockquote>
If you can't get this working, you can use Noel Danjou's <a href="http://noeld.com/programs.asp?cat=dstools">UPnPTest</a> (about halfway down the page, "Univeral Plug-and-Play Tester") to test your UPnP configuration instead.  Linux-IGD still reports itself as version 0.92, but the CVS version is really something like 1.04 or 1.05 now.</p>
<p>Hopefully this will help out other people trying to get Xbox Live working on their original Xbox or new Xbox 360, since Microsoft doesn't officially support Linux as a NAT router.  If you've had problems and been told to go buy a router off of the official <a href="http://www.xbox.com/en-US/live/connect/routerlanding.htm">compatibility list</a> even though you'd rather continue with your Linux setup, this is for you.</p>
<p>Update:  One minor note that I forgot.  You may need to do a little bit of manual <a href="http://sourceforge.net/forum/forum.php?thread_id=1336675&forum_id=174960">patching</a> of the linux-igd code, if that fix hasn't merged into CVS.  Read that thread, and look in your downloaded code to see if you need to manually patch or not before you actually build.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Automatically add Gadgets to Live.com</title>
    <link rel="alternate" type="text/html" href="http://www.daishar.com/blog/archives/2005/11/automatically_a.html" />
    <id>tag:www.daishar.com,2005:/blog//1.24</id>

    <published>2005-11-20T05:54:55Z</published>
    <updated>2006-04-21T04:52:22Z</updated>

    <summary>I found a post detailng a new feature on Live.com, making it possible to automate adding a Gadget. Now I can provide links to add the Analog Clock or Livetris to your Live.com profile. The following links will open a...</summary>
    <author>
        <name></name>
        <uri>http://www.daishar.com/blog</uri>
    </author>
    
        <category term="code" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.daishar.com/blog/">
        <![CDATA[<p>I found a <a href="http://www.adamkinney.com/note.aspx?id=88">post</a> detailng a new feature on <a href="http://www.live.com">Live.com</a>, making it possible to automate adding a Gadget.  Now I can provide links to add the Analog Clock or Livetris to your Live.com profile.</p>
<p>The following links will open a new window to Live.com and add the respective Gadget.
<ul>
<li><a target=_blank href="http://www.live.com/?add=http://www.daishar.com/gadgets/AnalogClock/AnalogClock.xml">Analog Clock</a></li>
<li><a target=_blank href="http://www.live.com/?add=http://www.daishar.com/gadgets/Livetris/Livetris.xml">Livetris</a></li>
</ul>
</p>]]>
        
    </content>
</entry>

<entry>
    <title>Tetris on Live.com - Livetris</title>
    <link rel="alternate" type="text/html" href="http://www.daishar.com/blog/archives/2005/11/tetris_on_livec.html" />
    <id>tag:www.daishar.com,2005:/blog//1.23</id>

    <published>2005-11-20T02:05:02Z</published>
    <updated>2006-04-21T04:52:45Z</updated>

    <summary>For my next Gadget, I give you Livetris. It&apos;s a completely DHTML re-implementation of the classic puzzle game. It&apos;s still pretty basic right now, and only has 10 different speed levels (currently non-configurable, so you have to start at level...</summary>
    <author>
        <name></name>
        <uri>http://www.daishar.com/blog</uri>
    </author>
    
        <category term="code" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.daishar.com/blog/">
        <![CDATA[<p>For my next Gadget, I give you Livetris.  It's a completely DHTML re-implementation of the classic puzzle game.  It's still pretty basic right now, and only has 10 different speed levels (currently non-configurable, so you have to start at level 1 and work your way up).  Block randomization needs some tweaking, since right now it's all too likely to end up with a long string of crap blocks without the bar or square you need to complete a set of lines.  I also need to do some work on the scoring, as right now there's no bonus for clearing multiple lines at once.  Finally, I'm still tweaking piece colors until I find something I really like, but that's the beauty of a Live.com Gadget -- I can make all of the changes I want, and you'll see that reflected on Live.com without any user intervention.</p>
<p>As with my <a href="http://www.daishar.com/blog/archives/2005/11/livecom_analog.html">Analog Clock Gadget</a>, this one continues to use the awesome <a href="http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm">JavaScript VectorGraphics library</a>.  This is a very robust and powerful tool, and I highly recommend others check it out.</p>
<p><img src="http://www.daishar.com/images/livetris.png"></p>
<p>I plan to eventually put my Gadgets up on the <a href="http://www.microsoftgadgets.com">Microsoft Gadgets</a> site, but for now you can use these installation instructions:
<ol>
<li>Copy <pre>http://www.daishar.com/gadgets/Livetris/Livetris.xml</pre> to your clipboard.</li>
<li>On Live.com, select Add Content on the sidebar and then Advanced.</li>
<li>Paste the Gadget URL into the Add a Gadget by URL textbox.</li>
<li>Select the Add button.</li>
</ol>
</p>
<p>Compatibility notes:  For now, this Gadget is IE-only due to the way I'm handling keyboard input.  I hope to get this working with Firefox soon, but I figured I may as well release what I've got right now.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Live.com Analog Clock Gadget</title>
    <link rel="alternate" type="text/html" href="http://www.daishar.com/blog/archives/2005/11/livecom_analog.html" />
    <id>tag:www.daishar.com,2005:/blog//1.22</id>

    <published>2005-11-03T06:38:15Z</published>
    <updated>2006-04-24T09:58:57Z</updated>

    <summary>With the launch of Windows Live yesterday, I decided I should try my hand at writing a Gadget (yes, I know Start.com has been doing the Gadget thing for a while, and Live.com is nothing more than a re-branded Start.com)....</summary>
    <author>
        <name></name>
        <uri>http://www.daishar.com/blog</uri>
    </author>
    
        <category term="code" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.daishar.com/blog/">
        <![CDATA[<p>With the launch of <a href="http://www.live.com">Windows Live</a> yesterday, I decided I should try my hand at writing a <a href="http://www.microsoftgadgets.com">Gadget</a> (yes, I know <a href="http://www.start.com">Start.com</a> has been doing the Gadget thing for a while, and Live.com is nothing more than a re-branded Start.com).  What better than a simple <a href="http://www.daishar.com/gadgets/AnalogClock/AnalogClock.xml">Analog Clock</a>?  Thanks to the <a href="http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm">JavaScript VectorGraphics library</a> folks for an awesome DHTML drawing library.</p>
<p>The Analog Clock Gadget works with both <a href="http://www.live.com">Live.com</a> and <a href="http://www.start.com">Start.com</a>.</p>
<p><img src="http://www.daishar.com/images/aclock.png"></p>
<p>To install (cribbed from <a href="http://www.microsoftgadgets.com">Microsoft Gadgets'</a> installation instructions):
<ol>
<li>Copy <pre>http://www.daishar.com/gadgets/AnalogClock/AnalogClock.xml</pre> to your clipboard.</li>
<li>On Live.com, select Add Content on the sidebar and then Advanced.</li>
<li>Paste the Gadget URL into the Add a Gadget by URL textbox.</li>
<li>Select the Add button.</li>
</ol>
</p>]]>
        
    </content>
</entry>

<entry>
    <title>Because of a protocol error, this session will be disconnected.</title>
    <link rel="alternate" type="text/html" href="http://www.daishar.com/blog/archives/2005/10/because_of_a_pr.html" />
    <id>tag:www.daishar.com,2005:/blog//1.21</id>

    <published>2005-10-11T03:54:00Z</published>
    <updated>2006-04-24T09:59:16Z</updated>

    <summary>For some months now, I&apos;ve not been able to use Microsoft Terminal Server to connect from my laptop to my work desktop. Oh, I could connect just fine, but then immediately (or very shortly) after logging in I&apos;d be disconnected...</summary>
    <author>
        <name></name>
        <uri>http://www.daishar.com/blog</uri>
    </author>
    
        <category term="other" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.daishar.com/blog/">
        <![CDATA[<p>For some months now, I've not been able to use Microsoft Terminal Server to connect from my laptop to my work desktop.  Oh, I could connect just fine, but then immediately (or very shortly) after logging in I'd be disconnected with the unhelpful error, "Because of a protocol error, this session will be disconnected. Please try connecting to the remote computer again."  What does that mean, and what do I do if the error happens again when I try to reconnect as it says?  off to <a href="http://search.msn.com/results.aspx?q=%22Because+of+a+protocol+error%2C+this+session+will+be+disconnected.+Please+try+connecting+to+the+remote+computer+again.%22&FORM=QBHP">search</a> for an answer.  Nothing useful there, and Microsoft's <a href="http://www.microsoft.com/technet/prodtechnol/windowsserver2003/library/ServerHelp/83ddcc90-4409-4063-8bac-f5fcb4d1c55b.mspx">help</a> for this message is complete useless.  "Try connecting to the remote computer again. If you receive the same message, contact the server administrator."  Reconnecting caused the same problem, and I'm the administrator.  I tried contacting myself, but I couldn't get through.  Now what?</p>
<p>Today I finally found the solution.  First let me say that this problem is <b>not</b> with a Windows CE machine, nor is it with the web interface to Remote Desktop.  This is a Windows XP to Windows XP session.  Anyway, on to the answer.</p>
<p>I had already ruled out bad patches, bad software installations, and even went through a series of troubleshooting steps to "reset" terminal server.  Out of the blue today, I got the idea that maybe the <a href="http://skins.deviantart.com/windows/visualstyle/">visual style</a> I was using could cause this problem, as it might be a drawing issue that TS can't handle.  I was using the "sgnome" style (don't remember where I got it but I think it was from deviantART originally), so I swapped back to the default Luna style and tried a TS connection.</p>
<p>...</p>
<p>It worked!  Okay, verify it.  Previously, the act of opening an email in Outlook could cause the error, so I tried that.  It still works.  Tried replying to an email, still worked.  Now my TS sessions are rock solid, I'm not getting kicked with a "protocol error", and all I did was change my style back to Luna.  WTF?  Well, I can't live with Luna as it's too boring, so I went searching for a different style.  I settled on <a href="http://www.deviantart.com/deviation/14801572/">Reluna</a>, after verifying that it didn't break anything else.</p>
<p>Why did I think of visual styles?  In the past I've had bad styles that broke other things.  Most notably, I've had some styles that caused really bad rendering problems when opening a scheduled meeting request from Outlook.  If a style can screw that up, it certainly can screw up Terminal Server.  The moral of the story is to be careful when using user-created visual styles.  They're not certified by Microsoft in any way (in fact, you will generally have to hack uxtheme.dll or pay for something like <a href="http://www.tgtsoft.com/prod_sxp.php">StyleXP</a> to use non-Microsoft styles at all), and can do some nasty stuff.  If you do run into random problems that you've never experienced with a previous style, switch back to Classic or Luna as part of your troubleshooting steps, and see if that solves it.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Depiq script updated for Slashot&apos;s side redesign</title>
    <link rel="alternate" type="text/html" href="http://www.daishar.com/blog/archives/2005/09/depiq_script_up.html" />
    <id>tag:www.daishar.com,2005:/blog//1.20</id>

    <published>2005-09-23T05:59:59Z</published>
    <updated>2006-04-24T09:59:31Z</updated>

    <summary>I&apos;ve updated the depiq user script, now version 2, to support Slashdot&apos;s recent HTML 4.0 + CSS site redesign. You&apos;ll want to remove the old script, as the script name has changed to represent the version update. While the change...</summary>
    <author>
        <name></name>
        <uri>http://www.daishar.com/blog</uri>
    </author>
    
        <category term="code" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="userscripts" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.daishar.com/blog/">
        <![CDATA[<p>I've updated the depiq user script, now <a href="http://www.daishar.com/downloads/userscripts/depiq2.user.js">version 2</a>, to support Slashdot's recent HTML 4.0 + CSS site redesign.  You'll want to remove the old script, as the script name has changed to represent the version update.</p>
<p>While the change is nice, and fixes some weird HTML (why was the first article on a page different than all of the rest), they still haven't made it very nice.  For example, they have a div with an id of "articles", which you would think contains a bunch of articles.  That it does, but it also contains storylinks (the "Read more" links under each article) and some other crap.  Why doesn't an article encompass its own storylinks?  Why are there other bits at the end of the div, like the "Yesterday's news" link?  Oh well, I'll keep at it so long as they keep posting Roland stories.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Depiq user script update</title>
    <link rel="alternate" type="text/html" href="http://www.daishar.com/blog/archives/2005/07/depiq_user_scri_1.html" />
    <id>tag:www.daishar.com,2005:/blog//1.19</id>

    <published>2005-07-06T01:19:40Z</published>
    <updated>2006-04-24T09:59:46Z</updated>

    <summary>I&apos;ve updated the depiq user script. I&apos;ve solved the problem of disembodied &quot;Read More&quot; links (Slashdot&apos;s HTML is FUBAR; the first story on a page is encapsulated in a paragraph except for its &quot;Read More&quot; bits, while subsequent stories on...</summary>
    <author>
        <name></name>
        <uri>http://www.daishar.com/blog</uri>
    </author>
    
        <category term="code" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="userscripts" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.daishar.com/blog/">
        <![CDATA[<p>I've updated the <a href="http://www.daishar.com/downloads/userscripts/depiq.user.js">depiq</a> user script.  I've solved the problem of disembodied "Read More" links (Slashdot's HTML is FUBAR; the first story on a page is encapsulated in a paragraph except for its "Read More" bits, while subsequent stories on a page do not have the same parent paragraph).  Because I'm more confident about the script's capabilities now, I've also changed the include list to handle all slashdot categories.  Internally, I removed the closure (closures are not memory-friendly in IE), refactored the code a bit into functions, and added some logging (through the GM_log() functionality, you'll see it either in the Turnabout console in IE or the Javascript console in Firefox) to track the editor that posted each story that was found and to give a total count of how many stories were removed.  Finally, I can't seem to keep the filenames straight.  I'm sticking with "depiq.user.js" for now.  You may have to uninstall the previous script before installing this new one.</p>
<p>As always, the script has been tested with IE/Turnabout and Firefox/Greasemonkey.  Since this script is just basic DOM walking and manipulation, it should work in Opera 8 as well, but I've not done any testing there.</p>]]>
        
    </content>
</entry>

<entry>
    <title>Depiq user script</title>
    <link rel="alternate" type="text/html" href="http://www.daishar.com/blog/archives/2005/07/depiq_user_scri.html" />
    <id>tag:www.daishar.com,2005:/blog//1.18</id>

    <published>2005-07-01T09:17:17Z</published>
    <updated>2006-04-24T10:00:00Z</updated>

    <summary>Since I created a &quot;userscripts&quot; category on my blog, I figured I should post my other user scripts (okay, &quot;user script&quot; singular for now) in this category for easy access. Here&apos;s the depiq user script. It removes Roland Piquepaille-submitted stories...</summary>
    <author>
        <name></name>
        <uri>http://www.daishar.com/blog</uri>
    </author>
    
        <category term="code" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="userscripts" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.daishar.com/blog/">
        <![CDATA[<p>Since I created a "userscripts" category on my blog, I figured I should post my other user scripts (okay, "user script" singular for now) in this category for easy access.</p>
<p>Here's the <a href="http://www.daishar.com/downloads/userscripts/depiq.slash.user.js">depiq</a> user script.  It removes Roland Piquepaille-submitted stories from the Slashdot home page (exactly why you would want to remove these submissions is explained in the comments of pretty much every Roland-submitted story -- ie, if you have to ask, you probably don't care enough to remove them).  The inclusion list is only the main Slashdot page, so Roland stories will still show up in other sections (you could change the inclusion list, but I haven't tested that).  It's not perfect, thanks to Slashdot's horribly awful HTML code.  You might see some parentless "Read More" links, for example.  That just tells you that the script is working.</p>
<p>Since I'm an Internet Explorer user (gasp!), this script works with both Firefox/Greasemonkey and IE/Turnabout (<a href="http://www.reifysoft.com/turnabout.php">Turnabout</a> is now my choice of Greasemonkey-like IE plugins, since I killed GreasemonkIE -- I really liked that name; maybe Turnabout could rename themselves to GreasemonkIE?).  It might work in Opera 8, but I haven't tested it there.  Feel free to let me know if it does or doesn't work, or update the script to work with Opera.</p>
<p>Any future scripts will be Firefox/Greasemonkey- and IE/Turnabout-compatible.  I'll do my best to support Opera 8, but it's secondary to the other two (sorry, Opera users).</p>]]>
        
    </content>
</entry>

<entry>
    <title>Forza statistics user script update</title>
    <link rel="alternate" type="text/html" href="http://www.daishar.com/blog/archives/2005/07/forza_statistic_1.html" />
    <id>tag:www.daishar.com,2005:/blog//1.17</id>

    <published>2005-07-01T08:51:24Z</published>
    <updated>2006-04-24T10:00:12Z</updated>

    <summary>I hacked around a little bit on the forza-stats user script, and ended up with this: Changes: Added a &quot;podium percentage&quot; statistic. This takes the number of 1st, 2nd, and 3rd place finishes (or as I like to call them,...</summary>
    <author>
        <name></name>
        <uri>http://www.daishar.com/blog</uri>
    </author>
    
        <category term="code" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="userscripts" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.daishar.com/blog/">
        <![CDATA[<p>I hacked around a little bit on the <a href="http://www.daishar.com/downloads/userscripts/forza-stats.user.js">forza-stats</a> user script, and ended up with this:
<blockquote>
<img src="http://www.daishar.com/images/fstats2.jpg">
</blockquote>
Changes:
<ul>
<li>Added a "podium percentage" statistic.  This takes the number of 1st, 2nd, and 3rd place finishes (or as I like to call them, "win, place, and show"), and divides them by the total number of races.</li>
<li>Added an onsubmit handler to the gamertag input form.  If you hit enter on the input box, it will act as though you clicked "Set".</li>
<li>Changed the color and opacity of the statistics bar.  I changed it to a greyish color that better fit the Forza theme, and added a slight transparency so that you can see the header graphic obscured by the bar.  Strictly cosmetic, since the bar wasn't obscuring any clickable bits, but it's still a nice change.</li>
<li>Added some nasty browser-detection code so that the bar can be "position: fixed" on Mozilla.  IE doesn't support "position: fixed", and the hacks to support a fixed-like layout assume you have full control over the web page.  Since I really don't want to try to completely re-layout the Forza community pages, I did this hack so that at least Firefox users can have a fixed bar.  I was very hesitant about adding this browser check, since it may completely fail if you've changed Firefox's userAgent string to mimic IE, but I decided it was worth doing because Firefox has reached the point where it's an accepted browser and only really stupid pages require it to identify itself as MSIE.  Worst case, if you've changed Firefox's userAgent to look like MSIE, the statistic bar will be positioned abosolutely at the top of the page rather than as a "floating" fixed element.</li>
<li>Added some cleanup code to unhook onclick and onsubmit handlers.  This is an attempt to help stem IE's javascript memory leaks.  Memory is still leaked, but the forza-stats script should be nicer about not leaking as much memory.</li>
</ul>
I also spent some time seeing if I could make this script work with Opera 8's user scripting support, but reliance on GM_* functions makes this difficult.  I tried using a <a href="http://www.howtocreate.co.uk/operaStuff/userJavaScript.html">script</a> that implements the GM_* functions, but ran into several problems:
<ol>
<li>The GM_getValue implementation in that script is broken.  It's trying to eval the stored value, which doesn't work when storing simple strings.</li>
<li>The GM_xmlhttpRequest "implementation" is simply an aliasing of Opera's XMLHttpRequest object.  That's not enough for a proper implementation of GM_xmlhttpRequest.</li>
</ol>
If those two items in the compatibility script were fixed, or if a different compatibility library was used (I don't normally use Opera, so I don't know what exists in terms of mimicking Greasemonkey functions), forza-stats may work in Opera.  However, given the differing CSS implementations across browsers, the bar itself probably wouldn't look right (Opera supports "position: fixed", but my browser check may not handle Opera properly; the width of the bar may be incorrect; Opera doesn't support the opacity style or the filter style which is used to do opacity in IE; etc).</p>
<p>As before, forza-stats is compatible with both Mozilla/Greasemonkey and IE/Turnabout.</p>
]]>
        
    </content>
</entry>

<entry>
    <title>Forza statistics user script</title>
    <link rel="alternate" type="text/html" href="http://www.daishar.com/blog/archives/2005/06/forza_statistic.html" />
    <id>tag:www.daishar.com,2005:/blog//1.16</id>

    <published>2005-06-27T00:50:22Z</published>
    <updated>2006-04-24T09:58:14Z</updated>

    <summary>The Forza team recently launched their online stats for Forza Motorsports. The stats are still a bit rudimentary, and there&apos;s no way to log in to get a brief overview of your own statistics a la Bungie&apos;s Halo 2 stats....</summary>
    <author>
        <name></name>
        <uri>http://www.daishar.com/blog</uri>
    </author>
    
        <category term="code" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="userscripts" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.daishar.com/blog/">
        <![CDATA[<p>The Forza team recently launched their <a href="http://community.forzamotorsport.net/live/">online stats</a> for <a href="http://www.forzamotorsport.net/">Forza Motorsports</a>.  The stats are still a bit rudimentary, and there's no way to log in to get a brief overview of your own statistics a la <a href="http://www.bungie.net/Stats/PlayerStats.aspx">Bungie's Halo 2 stats</a>.  However, there is a GET interface to retrieve gamertag details.</p>
<p>Enter <a href="http://greasemonkey.mozdev.org/">Greasemonkey</a>/<a href="http://www.reifysoft.com/turnabout.php">Turnabout</a>.  I wrote a <a href="http://www.daishar.com/downloads/userscripts/forza-stats.user.js">user script</a> to add a bar to the top of the Forza community pages displaying some information about a given gamertag.
<blockquote><img src="http://www.daishar.com/images/fstats.jpg"></blockquote>
The bar displays the current gamertag with a link to its statistic page, and the tag's ELO, 1st place races, 2nd place races, 3rd place races, and total races.  You can refresh your statistics at any time (this currently works best in Firefox with Greasemonkey -- you may have to click Refresh multiple times in IE with Turnabout), check on the statistics of another gamertag (type the tag into the input box and click "Check" to navigate to that tag's stat page), or set your a different gamertag to track (type the tag into the input box and click "Set").  After installation, you'll notice that the bar says "No tag".  You need to set a gamertag for it to watch.</p>
<p>Caveat:  Like Bungie's Halo 2 statistics, the Forza statistics may occasionally be out of sync with the actual Xbox Live data.  This can manifest itself a simply not finding any statistics at all, or finding only partial statistics (ELO, but no race numbers), or it might just not reflect your most recent races (ELO changes, race count increases).  You can try Refreshing the stat bar data, or Checking your gamertag's statistic page to see if the data has been synced up yet.</p>
<p>Hopefully a more robust data source will be available for Forza stats (RSS, please!), and hopefully even more statistics will be forthcoming.</p>]]>
        
    </content>
</entry>

<entry>
    <title>GreasemonkIE replacement</title>
    <link rel="alternate" type="text/html" href="http://www.daishar.com/blog/archives/2005/06/greasemonkie_re.html" />
    <id>tag:www.daishar.com,2005:/blog//1.15</id>

    <published>2005-06-04T07:50:11Z</published>
    <updated>2005-12-15T19:28:10Z</updated>

    <summary>For those who haven&apos;t found it yet, Trixie looks like a good replacement for the now-dead GreasemonkIE. I have no affiliation with the Trixie project, and found it through Michael&apos;s comment. Thanks for the pointer. I just played around with...</summary>
    <author>
        <name></name>
        <uri>http://www.daishar.com/blog</uri>
    </author>
    
        <category term="code" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="en" xml:base="http://www.daishar.com/blog/">
        <![CDATA[<p>For those who haven't found it yet, <a href="http://www.bhelpuri.net/Trixie/Trixie.htm">Trixie</a> looks like a good replacement for the now-dead GreasemonkIE.  I have no affiliation with the Trixie project, and found it through Michael's <a href="http://www.daishar.com/blog/archives/2005/04/goodbye_to_grea.html#comments">comment</a>.  Thanks for the pointer.</p>
<p>I just played around with Trixie a little bit (<a href="http://www.daishar.com/downloads/GreasemonkIE/scripts/GoogleImagesNF.user.js">fixed</a> the google image no-frame script installed with Trixie).  It looks like it has the same page refresh bug GMIE had.  Maybe that'll be fixed in IE7.  The config options are both better (scripts are automatically installed simply by downloading them into the scripts directory) and worse (scripts seem to be stored globally in program files, which won't work well on multi-user systems or with non-admin users; I couldn't find a way to edit includes/excludes without editing the files directly), but at version 0.2.2 it's looking very good.</p>
<p>Congrats to whoever's behind the Trixie project (I'll reiterate, it's not me), and good luck with the project.</p>]]>
        
    </content>
</entry>

</feed>
