<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet href="/templates/default/atom.css" type="text/css" ?>

<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    <link href="http://cowo.supersized.org/feeds/atom10.xml" rel="self" title="Giuseppe &quot;Cowo&quot; Corbelli weblog" type="application/atom+xml" />
    <link href="http://cowo.supersized.org/"                        rel="alternate"    title="Giuseppe &quot;Cowo&quot; Corbelli weblog" type="text/html" />
    <link href="http://cowo.supersized.org/rss.php?version=2.0"     rel="alternate"    title="Giuseppe &quot;Cowo&quot; Corbelli weblog" type="application/rss+xml" />
    <title type="html">Giuseppe &quot;Cowo&quot; Corbelli weblog</title>
    <subtitle type="html">Another ubercool s9y blog</subtitle>
    <icon>http://cowo.supersized.org/templates/default/img/s9y_banner_small.png</icon>
    <id>http://cowo.supersized.org/</id>
    <updated>2008-10-02T09:54:18Z</updated>
    <generator uri="http://www.s9y.org/" version="1.3-alpha1">Serendipity 1.3-alpha1 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>

    <entry>
        <link href="http://cowo.supersized.org/archives/30-GEM-Equinox-61-76-88-OS-update.html" rel="alternate" title="GEM Equinox 61 / 76 / 88 OS update" />
        <author>
            <name>Giuseppe Corbelli</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-10-02T09:49:37Z</published>
        <updated>2008-10-02T09:54:18Z</updated>
        <wfw:comment>http://cowo.supersized.org/wfwcomment.php?cid=30</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://cowo.supersized.org/rss.php?version=atom1.0&amp;type=comments&amp;cid=30</wfw:commentRss>
    
    
        <id>http://cowo.supersized.org/archives/30-guid.html</id>
        <title type="html">GEM Equinox 61 / 76 / 88 OS update</title>
        <content type="xhtml" xml:base="http://cowo.supersized.org/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I'm an happy owner of a GEM Equinox 76. OS is somewhat buggy, expecially in the sequencer section. May be worth an update...
<br />
OS images can be find on generalmusic.us website and are linked from some forum post, but a little redundance may be a good idea.
<p>
<ul>
<li> <a href="http://cowo.supersized.org/uploads/GEM_Equinox/111000eq61.zip" title="111000eq61.zip" target="_blank">Gem Equinox 61 OS (11 / 10 / 2000)</a></li>
<li> <a href="http://cowo.supersized.org/uploads/GEM_Equinox/111000eq76.zip" title="111000eq76.zip" target="_blank">Gem Equinox 76 OS (11 / 10 / 2000)</a></li>
<li> <a href="http://cowo.supersized.org/uploads/GEM_Equinox/111000eq88.zip" title="111000eq88.zip" target="_blank">Gem Equinox 88 OS (11 / 10 / 2000)</a></li>
</ul> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://cowo.supersized.org/archives/29-How-to-set-security-policy-in-Windows-Mobile-6.html" rel="alternate" title="How to set security policy in Windows Mobile 6" />
        <author>
            <name>Giuseppe Corbelli</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-08-13T13:02:36Z</published>
        <updated>2008-08-13T13:10:55Z</updated>
        <wfw:comment>http://cowo.supersized.org/wfwcomment.php?cid=29</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://cowo.supersized.org/rss.php?version=atom1.0&amp;type=comments&amp;cid=29</wfw:commentRss>
    
    
        <id>http://cowo.supersized.org/archives/29-guid.html</id>
        <title type="html">How to set security policy in Windows Mobile 6</title>
        <content type="xhtml" xml:base="http://cowo.supersized.org/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                A few simple words to express what I think...

<p>Fuck code signing/security/whatsoever: let MY hardware execute what I want, huh?</p>


I read somewhere that this can be done using Visual Studio 2008; don't know, as I don't (still) use the beast.
<br />
Here's what to do:
<ol>
<li>Download and install Device command shell from here <a href="http://cowo.supersized.org/archives/28-Visual-Studio-2005-Device-Command-Shell.html">http://cowo.supersized.org/archives/28-Visual-Studio-2005-Device-Command-Shell.html</a> </li>
<li>Download Security-Off provisioning XML file from here: <a href="http://cowo.supersized.org/uploads/Windows/SecurityOff.xml" title="SecurityOff.xml" target="_blank">SecurityOff.xml</a> or use the one distributed with Windows Mobile 6 SDK</li>
<li>Execute <tt>ce connect &lt;YourMobileID&gt;</tt></li>
<li>Execute <tt>ce config SecurityOff.xml</tt></li>
</ol>

Really tired of all this mobile shit; I'd say it's holiday time... 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://cowo.supersized.org/archives/28-Visual-Studio-2005-Device-Command-Shell.html" rel="alternate" title="Visual Studio 2005 Device Command Shell" />
        <author>
            <name>Giuseppe Corbelli</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-08-13T12:50:36Z</published>
        <updated>2008-08-13T12:50:36Z</updated>
        <wfw:comment>http://cowo.supersized.org/wfwcomment.php?cid=28</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://cowo.supersized.org/rss.php?version=atom1.0&amp;type=comments&amp;cid=28</wfw:commentRss>
    
    
        <id>http://cowo.supersized.org/archives/28-guid.html</id>
        <title type="html">Visual Studio 2005 Device Command Shell</title>
        <content type="xhtml" xml:base="http://cowo.supersized.org/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <blockquote>Device Command Shell (DCS) provides a command-line interface to several useful functions for developing Smart Device applications using Visual Studio 2005. It is implemented as a Visual Studio "Command Window" add-in for convenience and quick access.
</blockquote>
This is the author description for DCS. Useful tools, indeed. Download URL used to be <a href="http://www.gotdotnet.com/workspaces/workspace.aspx?id=50618f79-c7b1-4588-9c0a-cf4ddae8092a">http://www.gotdotnet.com/workspaces/workspace.aspx?id=50618f79-c7b1-4588-9c0a-cf4ddae8092a</a> but seems that M$ is moving everything to MSDN Code Gallery and this stuff got lost somewhere. OK, don't know if it's OK for me to redistribute, but many seem to need this...
<br />
I believe this should be version 0.98...
<p>
Download Device Command Shell here: <a href="http://cowo.supersized.org/uploads/Windows/DeviceCommandShellSetup.zip" title="DeviceCommandShellSetup.zip" target="_blank">DeviceCommandShellSetup.zip</a> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://cowo.supersized.org/archives/27-Compiling-BOOST-1.35.0-with-STLPort-and-MSVC-8.html" rel="alternate" title="Compiling BOOST 1.35.0 with STLPort and MSVC 8" />
        <author>
            <name>Giuseppe Corbelli</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-07-30T16:06:43Z</published>
        <updated>2008-07-30T16:06:43Z</updated>
        <wfw:comment>http://cowo.supersized.org/wfwcomment.php?cid=27</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://cowo.supersized.org/rss.php?version=atom1.0&amp;type=comments&amp;cid=27</wfw:commentRss>
    
    
        <id>http://cowo.supersized.org/archives/27-guid.html</id>
        <title type="html">Compiling BOOST 1.35.0 with STLPort and MSVC 8</title>
        <content type="xhtml" xml:base="http://cowo.supersized.org/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Back in <i>the good old times</i> there was boost::build v1, which I was more or less able to comprehend.
Now I've installed boost v1.35 it seems that only boost::build v2 is available; I'm sure it rocks and so on, but I've struggled TOO MUCH to make it work.
Me being a dumbass? Quite likely.
<p>
But at long last I was able to put all the pieces together:
<ol>
<li>Find <tt>tools/build/v2/user-config.jam</tt> under boost root</li>
<li>Uncomment the <tt>using msvc ;</tt></li>
<li>Find the stlport line and write something like <tt>using stlport : : STLPORTPATH\stlport STLPORTPATH\lib ;</tt></li>
<li>Place <tt>bjam.exe</tt> into boost root</li>
<li>Run <tt>bjam msvc/variant=debug,release/threading=multi/stdlib=stlport/link=shared,static/runtime-link=shared stage</tt></li>
</ol>

This shit will build debug and release, static and dynamic libraries linked to dynamic C runtime.

 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://cowo.supersized.org/archives/26-MS-SQL-Server-does-not-startup-after-IP-change,-error-0x2741.html" rel="alternate" title="MS SQL Server does not startup after IP change, error 0x2741" />
        <author>
            <name>Giuseppe Corbelli</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-07-14T13:55:11Z</published>
        <updated>2008-07-14T14:04:32Z</updated>
        <wfw:comment>http://cowo.supersized.org/wfwcomment.php?cid=26</wfw:comment>
    
        <slash:comments>1</slash:comments>
        <wfw:commentRss>http://cowo.supersized.org/rss.php?version=atom1.0&amp;type=comments&amp;cid=26</wfw:commentRss>
    
    
        <id>http://cowo.supersized.org/archives/26-guid.html</id>
        <title type="html">MS SQL Server does not startup after IP change, error 0x2741</title>
        <content type="xhtml" xml:base="http://cowo.supersized.org/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I have a few NICs on a machine, so I told <tt>Microsoft SQL Server 2005 - 9.00.3042.00 (Intel X86)</tt> not to bind on every interface but only one. So far so good.
<br />
Unfortunately I had the BAAAD idea to change this NIC IP Address. Old IP was 192.168.0.103, new IP is 192.168.6.65.
When I try to start the service with commandline <tt>sqlservr.exe -sSQLEXPRESS</tt> where's what I get
<pre>
Server failed to listen on 192.168.0.103 <ipv4> 1433. Error: 0x2741. To proceed, notify your system administrator.
</pre>

Standard useless error message. Ok, there must be this old address configured somewhere. In the registry, of course. Just searched throughout the whole registry and found:
<pre>
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.1\MSSQLServer\SuperSocketNetLib\Tcp
</pre>
Here you'll find subkeys named <tt>IP1</tt> to <tt>IPSomeNumber</tt>. If one refers to an unbindable address just set <tt>Enabled</tt> or <tt>Active</tt> to 0. 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://cowo.supersized.org/archives/25-30-pin-SIMMs-capacity.html" rel="alternate" title="30 pin SIMMs capacity" />
        <author>
            <name>Giuseppe Corbelli</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-05-08T06:48:58Z</published>
        <updated>2008-05-08T07:01:31Z</updated>
        <wfw:comment>http://cowo.supersized.org/wfwcomment.php?cid=25</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://cowo.supersized.org/rss.php?version=atom1.0&amp;type=comments&amp;cid=25</wfw:commentRss>
    
    
        <id>http://cowo.supersized.org/archives/25-guid.html</id>
        <title type="html">30 pin SIMMs capacity</title>
        <content type="xhtml" xml:base="http://cowo.supersized.org/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I just bought a GEM Equinox and I'm looking for some RAM to add. It requires 30 pin SIMMs, so I went through some rubbish.

Here's the capacity of the RAM I found:
<table border="1" align="left">
<tr>
  <td>2X PM10244-70 T9210<br />1X M5M41000BJ 234GE20-7
  </td>
  <td>1 MB</td>
</tr>
<tr>
  <td>1X TMS4C1024DJ HEP 3312 24<br />2X TMS44400DJ OBI 4051 AH
  </td>
  <td>1 MB</td>
</tr>
<tr>
  <td>2X KOREA AO169315GGG HM514400AS7<br />1X KOREA A0029305GGGK HM511000AJP7
  </td>
  <td>1 MB
  </td>
</tr>
</table> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://cowo.supersized.org/archives/24-How-to-replace-a-Yamaha-PSR-5700-Clavinova-CVP-70-CVP-65-CVP-55-floppy-drive.html" rel="alternate" title="How to replace a Yamaha PSR 5700 / Clavinova CVP-70 CVP-65 CVP-55 floppy drive" />
        <author>
            <name>Giuseppe Corbelli</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2008-01-10T13:22:10Z</published>
        <updated>2008-11-10T08:19:30Z</updated>
        <wfw:comment>http://cowo.supersized.org/wfwcomment.php?cid=24</wfw:comment>
    
        <slash:comments>10</slash:comments>
        <wfw:commentRss>http://cowo.supersized.org/rss.php?version=atom1.0&amp;type=comments&amp;cid=24</wfw:commentRss>
    
    
        <id>http://cowo.supersized.org/archives/24-guid.html</id>
        <title type="html">How to replace a Yamaha PSR 5700 / Clavinova CVP-70 CVP-65 CVP-55 floppy drive</title>
        <content type="xhtml" xml:base="http://cowo.supersized.org/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I own a Yamaha PSR 5700 since mid nineties. Not the best keyboard around, but has
worked nicely for a decade, so no complaints here.
<br />
However the floppy failed last week. It all started with some random "Disk Error"
and then no disks would work. Floppy is a <tt>Mitsubishi MF353C-152MZ</tt>.
<br />
Ok, I thought, 10 years is enough. I grabbed a new floppy from a PC, opened the keyboard
and hooked it up. And, surprise, it did not work!
<br />
To make it short: I have found a few references on the net, but no ready solution (I did not
consider buying a new 130 USD replacement floppy a solution).
<br />
If you're reading this, you're likely sharing my past week worries; but
light up your heart! Read on and find the solution.
<br />
I thought the whole floppy chain (power supply, floppy drive, controller) had to be
build by standard components, so something could be done with acceptable effort.
I was right (one of the few times :-)
<br />
I started here:
<a href="http://pinouts.ru/Storage/InternalDisk_pinout.shtml">
http://pinouts.ru/Storage/InternalDisk_pinout.shtml</a>
<br />
This document states <q>Also many synthesizers that have floppy drives use the standard Shugart interface pinout</q>; so, let's say this Shugart interface is what PSR 5700 has (controller is a HD63266F but I could not find much info about this).
<br />
Compare the two pinouts: the Shugart interface has lines for 4 devices and a single motor-enable line, while modern controllers support two devices, density select and independent motor-enable lines.
Also notice that modern floppies are usually jumpered to work as "B" or "Device 1".
<br />
At this point I had to do some measures and test, but cut it short.
<br />
Here's the summary:
<ul>
<li>PSR 5700 selects Device 0, and we have a floppy jumpered as Device 1</li>
<li>PSR 5700 relies on a Drive Ready signal, which can be either located on the floppy drive or faked</li>
</ul>

<p>
And the long awaited solution: grab a floppy cable, cut wires 10, 12, 34 (remember that wire 1 is red-marked) and solder together 
<ul>
<li>CONTROLLER pin 10</li>
<li>CONTROLLER pin 34</li>
<li>FLOPPY pin 12</li>
</ul>

With "CONTROLLER" I mean the half wire that goes to the keyboard.
Now you have 3 half wires dangling and 3 half wires soldered together. Remaining wires are untouched.
<br />
What you've done is:

<ul>
<li>Routing the "Device Select 0" signal to "Device 1" so that floppy gets correctly selected</li>
<li>Faking the "Drive Ready" signal, so that when the PSR 5700 selects the floppy it appears to be ready for operation</li>
</ul>

That's it! New floppy on the PSR and no money drain!
<br />
Some people contacted me with requests for more help. It seems that a simple schema is more useful than words, so I'm copying here some more stuff. That's exactly what I've written above, only wording is different.
<br />
Let's call the cable end that hooks to the floppy as END1, ad cable end that
hooks to the keyboard as END2. 
<b>Remember that the 1st wire of the cable is marked in red on the ribbon itself.</b>
<br />Here are the steps:
<ol>
<li> Cut wires 10, 12 and 34</li>
<li> Solder together:
  <ul>
   <li>Wire 10 (the half going to END2)</li>
   <li>Wire 34 (the half going to END2)</li>
   <li>Wire 12 (the half going to END1)</li>
  </ul>
<li>Insulate each of the 3 remaining half wires</li>
</ol>
Small schema:
<pre>
KEYBOARD (END2)                  FLOPPY (END1)
10------------------\   X----------------------
12-------------X    O--------------------------
34------------------/   X----------------------
</pre>
remaining wires are untouched.
X is a wire cut and insulated.
O is where to solder

<br />
BTW: remembering what said before, it is possible, if not likely, that this method would work on many other keyboards.
Until now this stuff has been tested on:
<ul>
<li> Yamaha PSR 5700 by Giuseppe Corbelli - works OK (see disk change detection issue below)</li>
<li> Yamaha Clavinova CVP-70 by Greg Moseley - works OK</li>
<li> Yamaha Clavinova CVP-55 by Gage Johnson - works OK</li>
<li> Yamaha Clavinova CVP-65 by Stephen Marshall - works OK</li>
<li> Yamaha Clavinova CVP-75 by Al Lanoff - works OK</li>
</ul>
<br />
<b>Disk changes are not detected!</b>. I think this can be solved by routing controller pin 2 to floppy pin 34 but I'm too lazy to reopen the keyboard :-) 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://cowo.supersized.org/archives/23-Convert-tofrom-QString-using-boostlexical_cast.html" rel="alternate" title="Convert to/from QString using boost::lexical_cast" />
        <author>
            <name>Giuseppe Corbelli</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-12-13T08:39:54Z</published>
        <updated>2007-12-13T14:22:17Z</updated>
        <wfw:comment>http://cowo.supersized.org/wfwcomment.php?cid=23</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://cowo.supersized.org/rss.php?version=atom1.0&amp;type=comments&amp;cid=23</wfw:commentRss>
    
    
        <id>http://cowo.supersized.org/archives/23-guid.html</id>
        <title type="html">Convert to/from QString using boost::lexical_cast</title>
        <content type="xhtml" xml:base="http://cowo.supersized.org/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                I'm an happy user of <a href="http://www.boost.org" title="Boost libraries">Boost libraries</a> and recently I had to mess with <a href="http://www.trolltech.com" title="QT Libraries">QT libraries</a>.
<br />
I didn't really like the QString-to-number conversion features of <code>QString</code> class because of the clumsy error checking mechanism, so I wrote a little wrapper for <code>boost::lexical_cast</code>.
<br />
Unfortunately <code>boost::lexical_cast</code> is not written with extensibility in mind so a temporary <code>std::basic_string</code> variable is required to perform the magic (or at least I couldn't find a better, unobtrusive way).

<pre>
namespace boost { namespace detail {

#ifndef DISABLE_WIDE_CHAR_SUPPORT
inline bool operator&gt;&gt;(boost::detail::lexical_stream&lt;QString, std::wstring&gt;&amp; in, QString&amp; output)
{
    std::wstring tmp;
    in &gt;&gt; tmp;
    output = QString::fromStdWString(tmp);
    return true;
}
#endif

template&lt;typename Source&gt;
inline bool operator&gt;&gt;(boost::detail::lexical_stream&lt;QString, Source&gt;&amp; in, QString&amp; output)
{
#if defined(BOOST_NO_STRINGSTREAM)
    in &lt;&lt; '\0';
#endif
    std::string tmp;
    in &gt;&gt; tmp;
    output = QString::fromStdString(tmp);
    return true;
}

}}
</pre>

This allows you to write something like:
<pre>
QString x("123");
int id(boost::lexical_cast&lt;int&gt;(x));
</pre>
 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://cowo.supersized.org/archives/22-Dont-use-udftools-with-WORM-DVD-media..html" rel="alternate" title="Don't use udftools with WORM DVD media." />
        <author>
            <name>Giuseppe Corbelli</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-11-27T16:39:23Z</published>
        <updated>2007-11-27T17:02:42Z</updated>
        <wfw:comment>http://cowo.supersized.org/wfwcomment.php?cid=22</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://cowo.supersized.org/rss.php?version=atom1.0&amp;type=comments&amp;cid=22</wfw:commentRss>
    
    
        <id>http://cowo.supersized.org/archives/22-guid.html</id>
        <title type="html">Don't use udftools with WORM DVD media.</title>
        <content type="xhtml" xml:base="http://cowo.supersized.org/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
I have to do a simple backup task to DVD-R using <a href="http://www.flexbackup.org" title="Flexbackup website">flexbackup</a> on Linux 2.6. My first idea was to use packet writing: setup the media, mount as rw somewhere and write to it.
<p>
So I installed udftools (Debian package, version 1.0.0b3-12) and started to read docs. README.Debian states:
<p>
<cite>
3) Write an empty session spanning the whole medium. It seems that
without this step, any attempt to create the UDF filesystem will fail.

DVD-RW: growisofs -Z /dev/hdc=/dev/zero
</cite>
<p>
If applied to a non-rewritable media <strong>THIS PRODUCES A NICE COASTER!</strong>
<p>
Ok, just skip this step and go to the next, which should be
<p>
<code>mkudffs --udfrev=0x0150 --spartable=2 --media-type=dvd /dev/pktcdvd/0</code>
</p>
but <strong>this does not work</strong>, with error <code>trying to change type of multiple extents</code>.

<p>
In short, unless I'm missing something, this means <strong>YOU CANNOT USE UDF FILESYSTEM ON DVD-R MEDIA ON LINUX 2.6</strong>. Go for cdrecord/growisofs and ISO.

 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://cowo.supersized.org/archives/21-Suse-Linux-Enterprise-Desktop-10-SLED-driver-disk-for-Realtek-RTL8111BRTL8168BRTL8111RTL8168RTL8111C.html" rel="alternate" title="Suse Linux Enterprise Desktop 10 (SLED) driver disk for Realtek RTL8111B/RTL8168B/RTL8111/RTL8168/RTL8111C" />
        <author>
            <name>Giuseppe Corbelli</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-09-13T07:54:24Z</published>
        <updated>2007-09-13T10:59:10Z</updated>
        <wfw:comment>http://cowo.supersized.org/wfwcomment.php?cid=21</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://cowo.supersized.org/rss.php?version=atom1.0&amp;type=comments&amp;cid=21</wfw:commentRss>
    
    
        <id>http://cowo.supersized.org/archives/21-guid.html</id>
        <title type="html">Suse Linux Enterprise Desktop 10 (SLED) driver disk for Realtek RTL8111B/RTL8168B/RTL8111/RTL8168/RTL8111C</title>
        <content type="xhtml" xml:base="http://cowo.supersized.org/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Had to install SLED 10 on recent ASUS laptop with this ethernet board. Standard SLED 10 kernel does not provide a driver; basically you have to
<ol>
<li>Download driver package from <a href="http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&amp;PNid=13&amp;PFid=5&amp;Level=5&amp;Conn=4&amp;DownTypeID=3&amp;GetDown=false#2"> Realtek website</a></li>
<li>Build the driver for the <code>default</code> distribution and, optionally, for <code>SMP</code></li>
<li>Create a driver disk for the default distribution, by following these instructions at <a href="http://developer.novell.com/wiki/index.php/Creating_a_Driver_Update_Disk_(DUD)#Making_the_Traditional_DUD_Portion"> Novell website</a></li>
<li>During installation process load the driver disk, then load module.
<li>The installer won't copy the module to target system, but anyway the target system kernel may be different from installation one. You need to setup some RPMs or an update.tar.gz file with modules for all kernel versions you need to support.
</ol>
<p>
<b>Module name is <code>r8168</code></b>
<p>
Here you can find a <a href="http://cowo.supersized.org/uploads/SLED10/r8168_sled10_dud.tar.gz" title="r8168_sled10_dud.tar.gz" target="_blank">tarball of the driver disk</a>. Just unpack to a filesystem accessible during the installation process.
This driver disk supports <code>r8168</code> for the following kernels:
<ul>
<li>2.6.16.21-0.8-default</li>
<li>2.6.16.21-0.8-smp</li>
</ul>

 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://cowo.supersized.org/archives/20-Comment-Uncomment-macro-for-Komodo-Edit.html" rel="alternate" title="Comment / Uncomment macro for Komodo Edit" />
        <author>
            <name>Giuseppe Corbelli</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-09-04T10:16:53Z</published>
        <updated>2007-10-31T09:35:23Z</updated>
        <wfw:comment>http://cowo.supersized.org/wfwcomment.php?cid=20</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://cowo.supersized.org/rss.php?version=atom1.0&amp;type=comments&amp;cid=20</wfw:commentRss>
    
    
        <id>http://cowo.supersized.org/archives/20-guid.html</id>
        <title type="html">Comment / Uncomment macro for Komodo Edit</title>
        <content type="xhtml" xml:base="http://cowo.supersized.org/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
As an happy user of the <a href="http://www.scintilla.org/SciTE.html">SciTE editor</a> I was missing this feature in <a href="http://www.activestate.com/Products/komodo_edit/">Komodo Edit</a> which by the way is an excellent product. 
<p>
Comment/uncomment means that a "special" comment string is used, i.e. <code>#~</code> for Python. If this string is present at beginning of line the macro removes it (uncomment); if not it is inserted (comment). Python and PHP only for now, and poor code for sure. Any help is welcome.
<p>
<pre>
import logging

logger = logging.getLogger('macro')
h = logging.FileHandler("/tmp/somefile", "w")
logger.addHandler(h)

ke = komodo.editor
kd = komodo.document
kv = komodo.view
commentMap = {
    u'python': '#~ ',
    u'php': '//~ ',
    u'javascript': '//~ ',
    u'c++': '//~ ',
}

commentTxt = commentMap[kd.language.lower()]

def EVAL(stmt):
    res = eval(stmt)
    logger.error("%s --> %s" % (stmt, res))

def getLineNo(position=None):
    pos = position or ke.currentPos
    return ke.lineFromPosition(pos)
    
def getLine(lineNo=None):
    line = lineNo or getLineNo()
    eol = ke.getLineEndPosition(line)
    return ke.getTextRange(ke.currentPos, eol)

def vCHome(lineNo=None):
    if (lineNo is not None):
        ke.gotoLine(lineNo)
    
    ke.vCHome()
    if (getLine().strip() == ''):
        return
    
    if (ke.getTextRange(ke.currentPos, ke.currentPos+1).isspace()):
        ke.vCHome()
        
def doLine(lineNo=None):
    vCHome(lineNo)
    pos = ke.currentPos
    s = ke.getTextRange(pos, pos+len(commentTxt))
    
    if (s == commentTxt):
        ke.setSel(pos, pos+len(commentTxt))
        ke.replaceSel('')
    else:
        ke.insertText(pos, commentTxt)

komodo.view.setFocus()

try:
    pStart = ke.anchor
    pEnd = ke.currentPos
    lStart = ke.lineFromPosition(pStart)
    lEnd = ke.lineFromPosition(pEnd)
    if (lEnd < lStart):
        tmp = lStart
        lStart = lEnd
        lEnd = tmp
    for line in range(lStart, lEnd+1):
        doLine(line)
    
except:
    logger.error("Error", exc_info=True)

return

</pre> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://cowo.supersized.org/archives/19-LSISymbios-MegaRAID-on-Linux.html" rel="alternate" title="LSI/Symbios MegaRAID on Linux" />
        <author>
            <name>Giuseppe Corbelli</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-08-21T08:20:57Z</published>
        <updated>2007-08-21T08:20:57Z</updated>
        <wfw:comment>http://cowo.supersized.org/wfwcomment.php?cid=19</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://cowo.supersized.org/rss.php?version=atom1.0&amp;type=comments&amp;cid=19</wfw:commentRss>
    
    
        <id>http://cowo.supersized.org/archives/19-guid.html</id>
        <title type="html">LSI/Symbios MegaRAID on Linux</title>
        <content type="xhtml" xml:base="http://cowo.supersized.org/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
On a Linux server I have a LSI/Symbios MegaRAID SATA 150-4 device. Here's the output of <code>lspci -v</code>

<pre>
01:08.0 RAID bus controller: LSI Logic / Symbios Logic MegaRAID (rev 01)
        Subsystem: LSI Logic / Symbios Logic MegaRAID SATA 150-4 RAID Controller
        Flags: bus master, 66MHz, slow devsel, latency 128, IRQ 66
        Memory at fdff0000 (32-bit, prefetchable) [size=64K]
        Expansion ROM at fc000000 [disabled] [size=64K]
        Capabilities: [80] Power Management version 2
</pre>

<p>
The device works OK, but the documentation, while almost clear and complete is distributed as an horribly formatted ms word file. So I made little formatting modifications and have the same documentation available as HTML and PDF formats.

<ul>
<li><a href="http://cowo.supersized.org/uploads/LSI_Megaraid/LSIMegaraid.pdf" title="LSIMegaraid.pdf" target="_blank">LSI MegaRAID documentation, PDF format</a></li>
<li><a href="http://cowo.supersized.org/uploads/LSI_Megaraid/ut_linux.html" title="ut_linux.html" target="_blank">LSI MegaRAID documentation, HTML format</a></li>
</ul>
 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://cowo.supersized.org/archives/18-Stlport-patch-for-WCE.html" rel="alternate" title="Stlport patch for WCE" />
        <author>
            <name>Giuseppe Corbelli</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-08-09T16:12:47Z</published>
        <updated>2008-01-16T09:51:54Z</updated>
        <wfw:comment>http://cowo.supersized.org/wfwcomment.php?cid=18</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://cowo.supersized.org/rss.php?version=atom1.0&amp;type=comments&amp;cid=18</wfw:commentRss>
    
    
        <id>http://cowo.supersized.org/archives/18-guid.html</id>
        <title type="html">Stlport patch for WCE</title>
        <content type="xhtml" xml:base="http://cowo.supersized.org/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Needed to compile boost::serialization, apply to current trunk.
<p>
<pre>
Index: build/lib/configure.bat
===================================================================
--- build/lib/configure.bat	(revision 3112)
+++ build/lib/configure.bat	(working copy)
@@ -258,6 +258,7 @@
 :oc_evc8
 echo Setting compiler: Microsoft Visual C++ .NET 2005 for Windows CE
 echo COMPILER_NAME=evc8 &gt;&gt; ..\Makefiles\config.mak
+echo TARGET_PROC=arm &gt;&gt; ..\Makefiles\config.mak
 set SELECTED_COMPILER_VERSION=80
 if "%OSVERSION%"=="" (
     echo OSVERSION not set, assuming target is CE 5.0
Index: build/Makefiles/nmake/evc8.mak
===================================================================
--- build/Makefiles/nmake/evc8.mak	(revision 3112)
+++ build/Makefiles/nmake/evc8.mak	(working copy)
@@ -54,14 +54,14 @@
 
 
 # Note: /GX for MSC&lt;14 has been replaced with /EHsc
-CFLAGS_COMMON = /nologo /TC /W4 /GF /GR /EHsc
+CFLAGS_COMMON = /nologo /TC /W4 /GF /GR /EHsc /wd4201
 CFLAGS_REL = $(CFLAGS_COMMON) $(OPT_REL)
 CFLAGS_STATIC_REL = $(CFLAGS_COMMON) $(OPT_STATIC_REL)
 CFLAGS_DBG = $(CFLAGS_COMMON) $(OPT_DBG)
 CFLAGS_STATIC_DBG = $(CFLAGS_COMMON) $(OPT_STATIC_DBG)
 CFLAGS_STLDBG = $(CFLAGS_COMMON) $(OPT_STLDBG)
 CFLAGS_STATIC_STLDBG = $(CFLAGS_COMMON) $(OPT_STATIC_STLDBG)
-CXXFLAGS_COMMON = /nologo /TP /W4 /GF /GR /EHsc
+CXXFLAGS_COMMON = /nologo /TP /W4 /GF /GR /EHsc /wd4201
 CXXFLAGS_REL = $(CXXFLAGS_COMMON) $(OPT_REL)
 CXXFLAGS_STATIC_REL = $(CXXFLAGS_COMMON) $(OPT_STATIC_REL)
 CXXFLAGS_DBG = $(CXXFLAGS_COMMON) $(OPT_DBG)
Index: src/fstream_win32io.cpp
===================================================================
--- src/fstream_win32io.cpp	(revision 3112)
+++ src/fstream_win32io.cpp	(working copy)
@@ -79,12 +79,25 @@
 #endif
 
 _STLP_MOVE_TO_PRIV_NAMESPACE
-
-// Helper functions for _Filebuf_base.
-
+
+#if defined(_STLP_WCE)
+
+// GetFileType does not exist on CE. Try to reimplement it
+bool __is_regular_file(_STLP_fd fd) {
+  BY_HANDLE_FILE_INFORMATION info;
+  if (0 == GetFileInformationByHandle(fd, &amp;info))
+    return false;
+  return !(info.dwFileAttributes &amp; FILE_ATTRIBUTE_DIRECTORY);
+}
+
+#else
+
+// Helper functions for _Filebuf_base.
 bool __is_regular_file(_STLP_fd fd) {
   return (GetFileType(fd) &amp; ~FILE_TYPE_REMOTE) == FILE_TYPE_DISK;
-}
+}
+
+#endif //_STLP_WCE
 
 // Number of characters in the file.
 streamoff __file_size(_STLP_fd fd) {
Index: stlport/ctype.h
===================================================================
--- stlport/ctype.h	(revision 3112)
+++ stlport/ctype.h	(working copy)
@@ -62,6 +62,19 @@
 #    undef toupper
 #    undef tolower
 
+#    undef iswalpha
+#    undef iswupper
+#    undef iswlower
+#    undef iswdigit
+#    undef iswxdigit
+#    undef iswspace
+#    undef iswpunct
+#    undef iswalnum
+#    undef iswprint
+#    undef iswgraph
+#    undef iswcntrl
+#    undef iswascii
+
 #    if defined (UNDER_CE)
 
 #      if (_WIN32_WCE &lt; 300)     /* Only wide chars for older versions */
@@ -83,18 +96,18 @@
 
 #      undef _isctype
 
-__inline int (iswalpha)(int c) { return iswctype(c, _ALPHA); }
-__inline int (iswupper)(int c) { return iswctype(c, _UPPER); }
-__inline int (iswlower)(int c) { return iswctype(c, _LOWER); }
-__inline int (iswdigit)(int c) { return iswctype(c, _DIGIT); }
-__inline int (iswxdigit)(int c) { return iswctype(c, _HEX); }
-__inline int (iswspace)(int c) { return iswctype(c, _SPACE); }
-__inline int (iswpunct)(int c) { return iswctype(c, _PUNCT); }
-__inline int (iswalnum)(int c) { return iswctype(c, _ALPHA|_DIGIT); }
-__inline int (iswprint)(int c) { return iswctype(c, _BLANK|_PUNCT|_ALPHA|_DIGIT); }
-__inline int (iswgraph)(int c) { return iswctype(c, _PUNCT|_ALPHA|_DIGIT); }
-__inline int (iswcntrl)(int c) { return iswctype(c, _CONTROL); }
-__inline int (iswascii)(int c) { return ((unsigned)(c) &lt; 0x80); }
+__inline int (iswalpha)(wint_t c) { return iswctype(c, _ALPHA); }
+__inline int (iswupper)(wint_t c) { return iswctype(c, _UPPER); }
+__inline int (iswlower)(wint_t c) { return iswctype(c, _LOWER); }
+__inline int (iswdigit)(wint_t c) { return iswctype(c, _DIGIT); }
+__inline int (iswxdigit)(wint_t c) { return iswctype(c, _HEX); }
+__inline int (iswspace)(wint_t c) { return iswctype(c, _SPACE); }
+__inline int (iswpunct)(wint_t c) { return iswctype(c, _PUNCT); }
+__inline int (iswalnum)(wint_t c) { return iswctype(c, _ALPHA|_DIGIT); }
+__inline int (iswprint)(wint_t c) { return iswctype(c, _BLANK|_PUNCT|_ALPHA|_DIGIT); }
+__inline int (iswgraph)(wint_t c) { return iswctype(c, _PUNCT|_ALPHA|_DIGIT); }
+__inline int (iswcntrl)(wint_t c) { return iswctype(c, _CONTROL); }
+__inline int (iswascii)(wint_t c) { return ((unsigned)(c) &lt; 0x80); }
 
 #    endif /* UNDER_CE */
 
Index: stlport/stl/_cstdlib.h
===================================================================
--- stlport/stl/_cstdlib.h	(revision 3112)
+++ stlport/stl/_cstdlib.h	(working copy)
@@ -66,6 +66,49 @@
 using _STLP_VENDOR_CSTD::mbtowc;
 using _STLP_VENDOR_CSTD::system;
 using _STLP_VENDOR_CSTD::bsearch;
+
+#    else
+
+_STLP_END_NAMESPACE
+
+/* needed for IsDBCSLeadByte and WideCharToMultiByte */
+#include &lt;windows.h&gt;
+#include &lt;winnls.h&gt;
+
+//Wine-based reimplementation of mbtowc and mblen
+inline int mbtowc(wchar_t *wchar,const char *mbchar,size_t count)
+{
+    //temp var needed because MultiByteToWideChar wants non NULL destination
+    wchar_t tmpdst = '\0';
+
+    if(count &lt;= 0 || !mbchar)
+        return 0;
+    //first 0 == CP_ACP, ANSI Code Page
+    if(!::MultiByteToWideChar(0, 0, mbchar, count, &amp;tmpdst, 1))
+        return -1;
+    if(wchar)
+        *wchar = tmpdst;
+    //return the number of bytes from src that have been used
+    if(!*mbchar)
+        return 0;
+    if(count &gt;= 2 &amp;&amp; isleadbyte(*mbchar) &amp;&amp; mbchar[1])
+        return 2;
+    return 1;
+}
+
+inline int mblen(const char *mbstr,size_t count)
+{
+    if (mbstr &amp;&amp; *mbstr &amp;&amp; count)
+    {
+        if(MB_CUR_MAX == 1)
+            return 1; // ASCII CP
+        return !isleadbyte(*mbstr) ? 1 : (count&gt;1 ? 2 : -1);
+    }
+  return 0;
+}
+
+_STLP_BEGIN_NAMESPACE
+
 #    endif
 using _STLP_VENDOR_CSTD::atexit;
 using _STLP_VENDOR_CSTD::exit;
@@ -80,12 +123,28 @@
 using _STLP_VENDOR_CSTD::strtod;
 using _STLP_VENDOR_CSTD::strtol;
 using _STLP_VENDOR_CSTD::strtoul;
+using _STLP_VENDOR_CSTD::mblen;
+using _STLP_VENDOR_CSTD::mbtowc;
 
 #    if !(defined (_STLP_NO_NATIVE_WIDE_STREAMS) || defined (_STLP_NO_MBSTATE_T))
 using _STLP_VENDOR_CSTD::wcstombs;
-#      ifndef _STLP_WCE
+#      ifdef _STLP_WCE
+
+_STLP_END_NAMESPACE
+
+//Wine-based reimplementation
+inline int wctomb(char *mbchar, wchar_t wchar)
+{
+    //first 0 is CP_ACP, ANSI codepage
+    return ::WideCharToMultiByte(0, 0, &amp;wchar, 1, mbchar, 6, NULL, NULL);
+}
+
+_STLP_BEGIN_NAMESPACE
+
+#      endif //_STLP_WCE
+
 using _STLP_VENDOR_CSTD::wctomb;
-#      endif
+
 #    endif
 using _STLP_VENDOR_CSTD::qsort;
 using _STLP_VENDOR_CSTD::labs;
Index: stlport/stl/config/host.h
===================================================================
--- stlport/stl/config/host.h	(revision 3112)
+++ stlport/stl/config/host.h	(working copy)
@@ -72,10 +72,9 @@
  * _STLP_NATIVE_INCLUDE_PATH.
  * Hint: never install STLport in the directory that ends with "include"
  */
-/*
+
 #undef _STLP_NATIVE_INCLUDE_PATH
-#define _STLP_NATIVE_INCLUDE_PATH ../include
-*/
+
 /* same for C library headers like &lt;cstring&gt; */
 /*
 #undef _STLP_NATIVE_CPP_C_INCLUDE_PATH

</pre> 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://cowo.supersized.org/archives/17-VMWare-Server-on-Debian-GNULinux,-AMD64-x86_64.html" rel="alternate" title="VMWare Server on Debian GNU/Linux, AMD64 / x86_64" />
        <author>
            <name>Giuseppe Corbelli</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-07-27T14:01:22Z</published>
        <updated>2007-07-27T14:23:44Z</updated>
        <wfw:comment>http://cowo.supersized.org/wfwcomment.php?cid=17</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://cowo.supersized.org/rss.php?version=atom1.0&amp;type=comments&amp;cid=17</wfw:commentRss>
    
    
        <id>http://cowo.supersized.org/archives/17-guid.html</id>
        <title type="html">VMWare Server on Debian GNU/Linux, AMD64 / x86_64</title>
        <content type="xhtml" xml:base="http://cowo.supersized.org/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                Had to install VMWare version 1.0.2 build 39867 on an AMD64 box running Debian. Problem is: VMWare is a x86 32bit application so you're getting headaches because of 32 bit library dependencies.
<p>
After a few minutes of mild swearing I found an INVALUABLE document by <a href="http://www.robinz.info/" >http://www.robinz.info/</a> which resolves EVERYTHING.
<p>
Here's the original article:
<a href="http://blog.robinz.info/archives/2006/03/17/install-vmware-server-on-debian-amd64em64t/"  title="Robinz article">http://blog.robinz.info/archives/2006/03/17/install-vmware-server-on-debian-amd64em64t/</a>
<p>
So, what's the point of this post?

<ul>
<li> First of all, one more link to this great piece of work is a good idea</li>
<li> Second, I'll add my 2c</li>
</ul>

The original /etc/pam.d/vmware-authd contained references to an (unexistant) pam_unix2.so. I changed these to the 32-bit pam_unix.so distributed by robinz in ia32-security package and everything's fine. 
            </div>
        </content>
        
    </entry>
    <entry>
        <link href="http://cowo.supersized.org/archives/16-Runtime-error-0x800A01F4-undefined-variable-adUseClient.html" rel="alternate" title="Runtime error 0x800A01F4 - undefined variable 'adUseClient'" />
        <author>
            <name>Giuseppe Corbelli</name>
            <email>nospam@example.com</email>
        </author>
    
        <published>2007-07-19T14:30:03Z</published>
        <updated>2007-07-19T14:30:03Z</updated>
        <wfw:comment>http://cowo.supersized.org/wfwcomment.php?cid=16</wfw:comment>
    
        <slash:comments>0</slash:comments>
        <wfw:commentRss>http://cowo.supersized.org/rss.php?version=atom1.0&amp;type=comments&amp;cid=16</wfw:commentRss>
    
    
        <id>http://cowo.supersized.org/archives/16-guid.html</id>
        <title type="html">Runtime error 0x800A01F4 - undefined variable 'adUseClient'</title>
        <content type="xhtml" xml:base="http://cowo.supersized.org/">
            <div xmlns="http://www.w3.org/1999/xhtml">
                <p>
I moved some websites from an old Win2k Server to a new one with MDAC 2.8.

Suddenly, one of the sites didn't work anymore, with an error message like:
<pre><code>
Microsoft VBScript run-time error (0x800A01F4)
Undefined variable: 'adUseClient'
</code></pre>
or, in Italian as I got it:
<pre><code>
Errore di run-time di Microsoft VBScript (0x800A01F4)
Variabile non definita: 'adUseClient'
</code></pre>

<p>
Of course these sites are VB/ASP crap and I don't know VB/ASP. Nor will, I hope. So, after googling around for a COUPLE OF F*CKIN' HOURS I found that somewhat the author has forgotten a simple line:

<pre><code>
&lt;!-- #include file = "adovbs.inc"--&gt;
</code></pre>

<p>
Well, I don't know what this file is, nor where you can find it. I know it solved the problem. Maybe the next unlucky sysadmin will spend only a few minutes to get over this shit...

 
            </div>
        </content>
        
    </entry>

</feed>