Sunday

.rm to .mp3 free converter (no installation needed)

1.download and unpack [mplayer] and [lame].
2.create two bat files :

--enc.bat --
mplayer.exe -v -ao pcm -cache 2048 %1
lame audiodump.wav %1.mp3
rm audiodump.wav
---

-- endir.bat--
for %%f in (%1\*.rm) do (enc.bat "%%f")
--

to encode folder with .rm files just run

endir [target-dir]

more...

Wednesday

To change xml namespace definition you can try this xsl,see input



<?xml version="1.0" encoding="iso-8859-1"?>

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:NAME="old_namespace">

<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>

<xsl:template match="NAME:*">
<xsl:element name="{name()}">
<xsl:apply-templates select="node()|@*"/>
</xsl:element>
</xsl:template>

<xsl:template match="ROOT">
<xsl:element name="ROOT">
<xsl:attribute name="xmlns:NAME">http://tempuri.org/mynew</xsl:attribute>
<xsl:apply-templates select="node()|@*"/>
</xsl:element>
</xsl:template>

</xsl:stylesheet>


If you put in input an XML like this:

<?xml version = '1.0' encoding = 'ISO-8859-1'?>
<ROOT xmlns:NAME='old_namespace'>
<NAME:element attr1="xxx" >
<NAME:subElement attr2="yyy">abcdefghi</NAME:subElement>
</NAME:element>
<NAME:element attr1="xxx" >
<NAME:subElement attr2="yyy">abcdefghi</NAME:subElement>
</NAME:element>
</ROOT>

The output message will be:


<?xml version="1.0" encoding="ISO-8859-1"?>
<ROOT xmlns:NAME="http://example.org/new">
<NAME:element attr1="xxx">
<NAME:subElement attr2="yyy">abcdefghi</NAME:subElement>
</NAME:element>
<NAME:element attr1="xxx">
<NAME:subElement attr2="yyy">abcdefghi</NAME:subElement>
</NAME:element>
</ROOT>



more...

Friday

OpenSSHd + Cygwin on Windows XP

Found a good HOWTO-style article on how to set up OpenSSH to run as a daemon under Cygwin for Windows
http://pigtail.net/LRP/printsrv/cygwin-sshd.html
The quick outline is:
Install Cygwin, make sure you include the OpenSSH package since it's not included in the default install
Run '# mkdir -p /home/$username' and then edit /etc/passwd accordingly to create a sane home directory structure
Run '# ssh-host-config' to generate host keys, add an 'sshd' privsep user, and install sshd as a service
Run '# sc query sshd' to verify that the service is running
Run '# ssh-user-config' as necessary to generate private/public SSH keys for users if desired

more...

imagemagic add text to image

rem different types of text annotations on existing images rem cyan yellow orange gold rem -gravity SouthWest rem draw text and anno...