<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ejs</title>
	<atom:link href="http://ejs.seniejitrakai.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://ejs.seniejitrakai.net</link>
	<description>a snaphot of time</description>
	<lastBuildDate>Wed, 24 Feb 2010 13:22:40 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Troubles in Virtual World</title>
		<link>http://ejs.seniejitrakai.net/2010/02/24/troubles-in-virtual-world/</link>
		<comments>http://ejs.seniejitrakai.net/2010/02/24/troubles-in-virtual-world/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 12:10:36 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=143</guid>
		<description><![CDATA[For testing OpenOffice.org i&#8217;ve set up a VirtualBox, running Debian/testing in x86and amd64 architectures.
In some cases, mouse integration does not work correctly. Although mouse works perfectly in the  Guest window, it&#8217;s impossible to move it out without pressing Host key (left Ctrl in MS Windows).
VirtualBox guest additions are installed, guest resizing and shared folders [...]]]></description>
			<content:encoded><![CDATA[<p>For testing OpenOffice.org i&#8217;ve set up a VirtualBox, running Debian/testing in x86and amd64 architectures.<br />
In some cases, mouse integration does not work correctly. Although mouse works perfectly in the  Guest window, it&#8217;s impossible to move it out without pressing Host key (left Ctrl in MS Windows).<br />
VirtualBox guest additions are installed, guest resizing and shared folders works perfectly.<br />
The solution was found in <a href="http://forums.virtualbox.org/viewtopic.php?t=10800">VirtualBox forums</a> :<br />
/etc/X11/xorg.conf must contain </p>
<blockquote><p>Section &#8220;InputDevice&#8221;<br />
   Identifier   &#8220;Configured Mouse&#8221;<br />
   Driver       &#8220;vboxmouse&#8221;<br />
   Option       &#8220;CorePointer&#8221;<br />
EndSection</p></blockquote>
<p>note two lines: <strong>vboxmouse</strong> tells X.org to use mouse driver from VirtualBox guest additions, and <strong>CorePointer</strong> instructs to use this pointer as primary. Without <em>CorePointer</em> line the vboxmouse driver is used, but it&#8217;s still impossible to move it outside guest&#8217;s window.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2010/02/24/troubles-in-virtual-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unknown column &#8216;tplname&#8217; in &#8216;order clause&#8217;</title>
		<link>http://ejs.seniejitrakai.net/2009/12/21/unknown-column-tplname-in-order-clause/</link>
		<comments>http://ejs.seniejitrakai.net/2009/12/21/unknown-column-tplname-in-order-clause/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 22:31:13 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=136</guid>
		<description><![CDATA[Found an error when deploying GLPI plugin &#8220;Generic Objects Management&#8221; v 1.1.3 from https://forge.indepnet.net/projects/show/genericobject/
I could add and modify object types, but was unable to add objects. Clicking &#8220;Add&#8221; button did nothing.
Uh.
Switched GLPI to debug mode and found &#8220;SELECT * FROM `glpi_plugin_genericobject_&#8230;` WHERE is_template = &#8216;1&#8242; AND FK_entities=&#8217;0&#8242; ORDER BY tplname    0.001  [...]]]></description>
			<content:encoded><![CDATA[<p>Found an error when deploying <a href="http://www.glpi-project.org/">GLPI</a> plugin &#8220;Generic Objects Management&#8221; v 1.1.3 from <a href="https://forge.indepnet.net/projects/show/genericobject/">https://forge.indepnet.net/projects/show/genericobject/</a></p>
<p>I could add and modify object types, but was unable to add objects. Clicking &#8220;Add&#8221; button did nothing.</p>
<p>Uh.</p>
<p>Switched GLPI to debug mode and found &#8220;SELECT * FROM `glpi_plugin_genericobject_&#8230;` WHERE is_template = &#8216;1&#8242; AND FK_entities=&#8217;0&#8242; ORDER BY tplname    0.001    Unknown column &#8216;tplname&#8217; in &#8216;order clause&#8217; &#8221; near the bottom.<br />
 Of course, the was no &#8216;tplname&#8217; field in the DB.</p>
<p>A quick search in the sourse revealed:<br />
 the apropriate database is created when object&#8217;s type is created;<br />
 the function &#8220;plugin_genericobject_addTable($name)&#8221; resides in &#8220;inc/plugin_genericobject.objecttype.function.php&#8221; </p>
<blockquote><p>
$diff -u plugin_genericobject.objecttype.function.php.orig plugin_genericobject.objecttype.function.php</p>
<p>&#8212; plugin_genericobject.objecttype.function.php.orig   2009-12-21 00:01:19.000000000 +0200<br />
+++ plugin_genericobject.objecttype.function.php        2009-12-21 00:06:34.000000000 +0200<br />
@@ -251,6 +251,7 @@<br />
                `is_template` INT ( 1 ) NOT NULL DEFAULT 0,<br />
                                        `comments` TEXT NULL  ,<br />
                                        `notes` TEXT NULL  ,<br />
+                                       `tplname` VARCHAR( 255 ) NULL ,<br />
                                        PRIMARY KEY ( `ID` )<br />
                                        ) ENGINE = MYISAM COMMENT = &#8216;$name table&#8217;;&#8221;;</p></blockquote>
<p>&#8216;tplname&#8217; field should be altered in &#8220;plugin_genericobject_enableTemplateManagement&#8221; function, but for some reason it isn&#8217;t.<br />
That&#8217;s all.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2009/12/21/unknown-column-tplname-in-order-clause/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Dolomites</title>
		<link>http://ejs.seniejitrakai.net/2009/07/11/the-dolomites/</link>
		<comments>http://ejs.seniejitrakai.net/2009/07/11/the-dolomites/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 20:42:11 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[Trips]]></category>
		<category><![CDATA[Dolomites]]></category>
		<category><![CDATA[Italy]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/2009/07/11/the-dolomites/</guid>
		<description><![CDATA[Here is the (unfinished) map of passes in Dolomites, created in Google Maps.
You can also search for photos of the passes.

]]></description>
			<content:encoded><![CDATA[<p>Here is the (unfinished) map of <a href="http://maps.google.com/maps/ms?ie=UTF8&#038;hl=en&#038;msa=0&#038;msid=116697046419143006099.00046e70d62518e4f300e&#038;ll=46.532414,12.052002&#038;spn=0.931506,2.469177&#038;t=p&#038;z=9">passes in Dolomites</a>, created in Google Maps.<br />
You can also <a href="http://gallery.ejs.seniejitrakai.net/main.php?g2_view=search.SearchScan&#038;g2_form[formName]=search_SearchBlock&#038;g2_form[searchCriteria]=passo&#038;g2_form[useDefaultSettings]=1" target="_new">search for photos of the passes</a>.</p>
<p><iframe width="800" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=116697046419143006099.00046e70d62518e4f300e&amp;ll=46.532414,12.052002&amp;spn=0.931506,2.469177&amp;t=p&amp;z=9&amp;output=embed"></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2009/07/11/the-dolomites/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to start multisite Gallery2 on Debian</title>
		<link>http://ejs.seniejitrakai.net/2009/07/11/how-to-start-multisite-gallery2-on-debian/</link>
		<comments>http://ejs.seniejitrakai.net/2009/07/11/how-to-start-multisite-gallery2-on-debian/#comments</comments>
		<pubDate>Sat, 11 Jul 2009 06:35:00 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[My job]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Gallery2]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=45</guid>
		<description><![CDATA[I had a little disc and database crash, so the  site was not updated recently.
Well, Wordpress was updated easily, but i had problems with Gallery2.
I need a multisite deployment of Gallery2. Although it is supported from the installer, some important steps are missing.
In order multisite Gallery2 to work, you will need to add some [...]]]></description>
			<content:encoded><![CDATA[<p>I had a little disc and database crash, so the  site was not updated recently.</p>
<p>Well, Wordpress was updated easily, but i had problems with Gallery2.</p>
<p>I need a multisite deployment of Gallery2. Although it is supported from the installer, some important steps are missing.</p>
<p>In order multisite Gallery2 to work, you will need to add some symlinks to every deployment of the Gallery2:</p>
<p><span id="more-45"></span></p>
<ul>
<li> lib -&gt; /usr/share/gallery2/lib/</li>
<p>The directory is providing some scripts amongst all, so without it you will lack some functionality, like enabling themes will not work.</p>
<li> modules -&gt; /usr/share/gallery2/modules</li>
<li> themes -&gt; /usr/share/gallery2/themes</li>
<p>The themes directory is providing CSS file, so without this your gallery will look &#8220;flat&#8221;.</ul>
<p>Also, you can try to use &#8220;php_admin_flag safe_mode Off&#8221; in the Apache&#8217;s VirtualHost description, in the case PHP safe mode is turned on globally.</p>
<p>And yes, beware: do not ever mix web directory and data directory: the content of web directory is erased during install.</p>
<p><code># date<br />
Sat Jul 11 10:34:07 EEST 2009<br />
# dpkg -l |egrep gallery2<br />
ii  gallery2                          2.3-1                       web-based photo album written in PHP<br />
</code></p>
<p> The fresh issue: after fresh install (Gallery&#8230; deb), no one is able to login. The solution is explained <a href="http://gallery.menalto.com/node/76322">here</a> &#8211; you should set <code>$gallery->setConfig('baseUri', '');</code> in &#8216;config.php&#8217;.</p>
<p> Again, having both left hands, i was unable to start multisite version of Gallery2, using install scripts. What i had to change was:</p>
<ol>
<li>remove &#8216;lib/&#8217;</li>
<li>symlink &#8216;lib/&#8217; , &#8216;modules/&#8217; , &#8216;themes/&#8217; from &#8216;/usr/share/gallery2&#8242; to site root</li>
<li>symlink or copy and alter &#8216;images/&#8217; from &#8216;/usr/share/gallery2&#8242; to site root</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2009/07/11/how-to-start-multisite-gallery2-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bnx2: Can&#8217;t load firmware file bnx2-06-4.0.5.fw</title>
		<link>http://ejs.seniejitrakai.net/2009/07/06/bnx2-cant-load-firmware-file-bnx2-06-405fw/</link>
		<comments>http://ejs.seniejitrakai.net/2009/07/06/bnx2-cant-load-firmware-file-bnx2-06-405fw/#comments</comments>
		<pubDate>Mon, 06 Jul 2009 20:02:58 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=112</guid>
		<description><![CDATA[After migration from 2.6.18-6-amd64, a newly installed kernel 2.6.26-2-amd64 failed to load:

[    2.871916] Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v1.7.5 (April 29, 2008)
...
[    3.631838] firmware: requesting bnx2-06-4.0.5.fw
...
[  105.599417] bnx2: Can't load firmware file bnx2-06-4.0.5.fw
...
[  105.599563] bnx2: probe of 0000:03:00.0 failed with error -2
...
[  106.791394] firmware: [...]]]></description>
			<content:encoded><![CDATA[<p>After migration from 2.6.18-6-amd64, a newly installed kernel 2.6.26-2-amd64 failed to load:<br />
<code><br />
[    2.871916] Broadcom NetXtreme II Gigabit Ethernet Driver bnx2 v1.7.5 (April 29, 2008)<br />
...<br />
[    3.631838] firmware: requesting bnx2-06-4.0.5.fw<br />
<span id="more-112"></span>...<br />
[  105.599417] bnx2: Can't load firmware file bnx2-06-4.0.5.fw<br />
...<br />
[  105.599563] bnx2: probe of 0000:03:00.0 failed with error -2<br />
...<br />
[  106.791394] firmware: requesting bnx2-06-4.0.5.fw<br />
[  203.699607] bnx2: Can't load firmware file bnx2-06-4.0.5.fw<br />
...<br />
[  203.699742] bnx2: probe of 0000:05:00.0 failed with error -2<br />
</code></p>
<p>First of all, firmware is in non-free branch, so /etc/apt/sources.list must contain &#8220;non-free&#8221; repository and:<br />
install firmware-bnx2 package: </p>
<blockquote><p>apt-get install firmware-bnx2</p></blockquote>
<p>;</p>
<p>double check the files in <code>/lib/firmware/</code>;</p>
<p><a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=494936">Some people</a> report it&#8217;s still impossible to load firmware from initrd, so you may wish to remove bnx2 line from &#8216;/etc/initramfs-tools/modules&#8217;;</p>
<p>&#8220;firmware-bnx2&#8243; already has initrd update scripts, but you may want to re-check the created image.<br />
You can extract the initrd image using </p>
<blockquote><p>gzip -dc /boot/initrd.img-[]kernel version-arch] | cpio -id</p></blockquote>
<p>Cross your fingers;<br />
<code>telinit 6</code>;<br />
It just worked for me:  </p>
<blockquote><p># uname -a<br />
Linux &#8230; 2.6.26-2-amd64 #1 SMP &#8230; x86_64 GNU/Linux</p></blockquote>
<p>Still got no ping? Login to console and <code>rmmod bnx2 &#038;&#038; modprobe bnx2</code> <img src='http://ejs.seniejitrakai.net/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2009/07/06/bnx2-cant-load-firmware-file-bnx2-06-405fw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The site was down. Why?</title>
		<link>http://ejs.seniejitrakai.net/2009/07/01/the-site-was-down-why/</link>
		<comments>http://ejs.seniejitrakai.net/2009/07/01/the-site-was-down-why/#comments</comments>
		<pubDate>Wed, 01 Jul 2009 09:15:05 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/2009/07/01/the-site-was-down-why/</guid>
		<description><![CDATA[Actually, it wasn&#8217;t down. Just the information was not displayed.
The reason is simple &#8211; after a prolonged migration to Atom MoBo, data crash in one of physical discs, loss of some MySQL databases, a new Wordpress installation was missing the theme i&#8217;ve used. So, quick edit in &#8216;options&#8217; table, replacing &#8216;option_name&#8217; &#8216;template&#8217; and &#8217;stylesheet&#8217; with [...]]]></description>
			<content:encoded><![CDATA[<p>Actually, it wasn&#8217;t down. Just the information was not displayed.</p>
<p>The reason is simple &#8211; after a prolonged migration to Atom MoBo, data crash in one of physical discs, loss of some MySQL databases, a new Wordpress installation was missing the theme i&#8217;ve used. So, quick edit in &#8216;options&#8217; table, replacing &#8216;option_name&#8217; &#8216;template&#8217; and &#8217;stylesheet&#8217; with walue &#8216;default&#8217; made the trick.<br />
As you see, the blog is up and running again.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2009/07/01/the-site-was-down-why/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>It happens</title>
		<link>http://ejs.seniejitrakai.net/2009/06/22/it-happens/</link>
		<comments>http://ejs.seniejitrakai.net/2009/06/22/it-happens/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 12:35:06 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=102</guid>
		<description><![CDATA[Meet the Junior  
]]></description>
			<content:encoded><![CDATA[<p>Meet the Junior <img src='http://ejs.seniejitrakai.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /><br />
<div class="wp-caption aligncenter" style="width: 510px"><img alt="Junior" src="/misc/junior.png" title="Junior" width="500" height="600" /><p class="wp-caption-text">Junior</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2009/06/22/it-happens/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Weekend project &#8211; USBasp</title>
		<link>http://ejs.seniejitrakai.net/2008/09/21/weekend-project-usbasp/</link>
		<comments>http://ejs.seniejitrakai.net/2008/09/21/weekend-project-usbasp/#comments</comments>
		<pubDate>Sun, 21 Sep 2008 18:26:50 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[Hobbies]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[Atmel]]></category>
		<category><![CDATA[ISP]]></category>
		<category><![CDATA[USB]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=89</guid>
		<description><![CDATA[I had some ideas to go out before, but as i got terrible cold last Friday, I had to postpone all of them.
I feel a bit better today, so decided to build USBasp &#8211; an USB port ISP programmer for Atmel product family. I used STK 200/300 dongle before, but it works from parallel port [...]]]></description>
			<content:encoded><![CDATA[<p>I had some ideas to go out before, but as i got terrible cold last Friday, I had to postpone all of them.</p>
<p>I feel a bit better today, so decided to build USBasp &#8211; an USB port ISP programmer for Atmel product family. I used STK 200/300 dongle before, but it works from parallel port only.<br />
<a href='http://ejs.seniejitrakai.net/USBasp/USBasp_stage1.jpg'><img class="right" src="http://ejs.seniejitrakai.net/USBasp/usbasp_stage1-300x105.jpg" alt="USBasp: fresh PCB" title="usbasp_stage1" width="300" height="105"/></a><br />
Lets start: the schematics is from <a href="http://www.fischl.de/usbasp/"> http://www.fischl.de/usbasp/ </a>. You can find some schematics and pre-routed PCB&#8217;s there. </p>
<p>What I need is USB B type or MiniUSB connector, SMD parts, small footprint, single &#8211; sided PCB. The one I liked is by Thomas Pfeifer, <a href="http://thomaspfeifer.net/atmel_usb_programmer.htm"> http://thomaspfeifer.net/atmel_usb_programmer.htm</a>. The problem is I found no files for Eagle there and had to re-create the PCB. </p>
<p>Additional features are:</p>
<ul>
<li>RC filters on MOSI, MISO and SCK lines to suppress ringing, as suggested in <a href="http://www.avrfreaks.net/index.php?name=PNphpBB2&#038;file=viewtopic&#038;t=33265">AVR Freaks forum</a>;</li>
<li>Signal from oscillator (XTAL1) is routed to the pin 3 on IDC connector via jumper &#8211; a handy feature to debrick the MCU if you accidentally fused external oscillator;</li>
<li>Inductor on the power line.</li>
</ul>
<p>The PDF files with the layout are <a href="http://ejs.seniejitrakai.net/USBasp/USBasp_single_sided_board.pdf">here</a>, an A6 &#8211; size mirrored image for direct printing on OHP is <a href="http://ejs.seniejitrakai.net/USBasp/USBasp_bottom_mirrored_multi.pdf">here</a>. </p>
<p>Added on 2008-10-01:<br />
<a href='http://ejs.seniejitrakai.net/USBasp/usbasp-top-populated_.jpg'><img src="http://ejs.seniejitrakai.net/USBasp/usbasp-top-populated_-300x122.jpg" alt="USBasp top side, populated" title="USBasp top side, populated" width="300" height="122" class="right" /></a><br />
<a href='http://ejs.seniejitrakai.net/USBasp/usbasp-bottom-populated.jpg'><img src="http://ejs.seniejitrakai.net/USBasp/usbasp-bottom-populated-300x114.jpg" alt="USBasp bottom side, populated" title="USBasp bottom side, populated" width="300" height="114" class="right" /></a><br />
First, it works. Both connected directly or via USB hub.<br />
Second: don&#8217;t create anything while you are ill. Actually, pin number 5 on miniUSB connector MUST be grounded, while pin number 4 can be grounded or left floating. I&#8217;ve used i jumper wire to solve the issue.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2008/09/21/weekend-project-usbasp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hacking the FlexLM keygens</title>
		<link>http://ejs.seniejitrakai.net/2008/08/21/hacking-the-flexlm-keygens/</link>
		<comments>http://ejs.seniejitrakai.net/2008/08/21/hacking-the-flexlm-keygens/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 17:52:43 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[Hobbies]]></category>
		<category><![CDATA[Software]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/?p=88</guid>
		<description><![CDATA[Ok, it&#8217;s ugly and illegal, i know. The information here is for educational purposes only.
Sometimes i&#8217;m asked to &#8220;cure&#8221; one or another product, protected by registration or network license manager, like FlexLM. And you know, a lot of keygens for these product found in the Internet, do not work. The usual error is &#8220;Internal Error [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, it&#8217;s ugly and illegal, i know. The information here is for educational purposes only.</p>
<p>Sometimes i&#8217;m asked to &#8220;cure&#8221; one or another product, protected by registration or network license manager, like FlexLM. And you know, a lot of keygens for these product found in the Internet, do not work. The usual error is <em><strong>&#8220;Internal Error #{1..6} &#8211; Please be sure the app is running and on the license screen!&#8221;</em></strong>. What&#8217;s wrong, why the keygens from the glorious crack groups do not work any more?</p>
<p>Search on the Internet revealed almost nothing: from &#8220;the kyegen does not work&#8221; to &#8220;it works perfectly&#8221;, some says one must use genuine windows the keygen to work (wow&#8230;).</p>
<p>Let&#8217;s start a little investigation.<span id="more-88"></span></p>
<p>Some keygens are packed with some kind of packer, like UPX. I&#8217;m too lazy to extract them.<br />
So i&#8217;ve found an unpacked version of keygen for AutoCAD 2008, created an evaluation installation of AutoCAD 2008 from Autodesk Revit Architecture 2008 (i have a license for it to run on the network, by the way) and started my explorations.</p>
<p>A usual PE executable consists of some sections: header, data, imported functions, static variables and text resourses. Text resourses are usually located near the end of the file, and it is the very first place to look for an information.<br />
The very first string&#8217;s i have noticed, at the very beginning of text resourses were &#8220;<em>acad.exe</em>&#8221; and &#8220;<em>~de81d5.tmp</em>&#8220;. But wait, when running AutoCAD, i have 4 files with constant names in &#8220;%TEMP%/AdskCleanup.0001.dir.0000&#8243;. Their names are &#8220;<em>PfdRun.pfd</em>&#8220;, &#8220;<em>~de0acb.tmp</em>&#8220;, &#8220;<em>~df294b.tmp</em>&#8221; and &#8220;<em>~efe2.tmp</em>&#8220;. Only two of them has names with 7 symbols (like in keygen&#8217;s &#8220;~de81d5.tmp&#8221;). The *.tmp files seems like PE executables.<br />
A quick edit in the keygen to match the actual names and &#8230; </p>
<p>The mysterious error is gone, you can paste a request code in the keygen.</p>
<p>And &#8230;. &#8220;REQUEST CODE ERROR!&#8221;</p>
<p>Let&#8217;s summarize:</p>
<ul>
<li>every product line Autodesk ships uses unique set of registration keys. This also means that AutoCAD 2008 sold as separate product will have different encryption keys that the AutoCAD2008, sold as &#8220;Revit Architecture suite 2008&#8243;;</li>
<li>the keygen searches for predefined file in &#8220;%TEMP%/AdskCleanup.0001.dir.0000&#8243;, extracts encryptions keys (?) and generates authentification code, depending on your request;</li>
<li>if the keygen does not find a predefined file in the predefined place, a famous &#8220;Internal Error #&#8230;&#8221; will be generated;</li>
<li>as keygen works with predefined location of encryption keys, it is not capable of generating authentification code for different products</li>
</ul>
<p>So, what&#8217;s to do if You got the famous &#8220;Internal Error #..&#8221;?<br />
Buy the product. Or search for another keygen.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2008/08/21/hacking-the-flexlm-keygens/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Make Samba and CUPS in Debian friends again</title>
		<link>http://ejs.seniejitrakai.net/2008/04/15/lets-make-samb-and-cups-friends-again/</link>
		<comments>http://ejs.seniejitrakai.net/2008/04/15/lets-make-samb-and-cups-friends-again/#comments</comments>
		<pubDate>Tue, 15 Apr 2008 18:28:20 +0000</pubDate>
		<dc:creator>ejs</dc:creator>
				<category><![CDATA[*NIX]]></category>
		<category><![CDATA[CUPS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Samba]]></category>

		<guid isPermaLink="false">http://ejs.seniejitrakai.net/2008/04/15/lets-make-samb-and-cups-friends-again/</guid>
		<description><![CDATA[I&#8217;ve seen a lot of these entries in logfiles recently:
[] printing/print_cups.c:cups_job_submit(656)
  Unable to print file to
 - client-error-bad-request

And the printing is stopped, of course.
The solution is simple:
 LANG=en_US.UTF-8 /etc/init.d/samba restart
In short:
/var/log/cups/error_log shows a lot of 
E [] Unsupported character set "iso-8859-1"!
CUPS requires UTF-8.
In the case of default login in Debian, the console IS in [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen a lot of these entries in logfiles recently:</p>
<p><code>[<date and time>] printing/print_cups.c:cups_job_submit(656)<br />
  Unable to print file to
<printer name> - client-error-bad-request<br />
</code></p>
<p>And the printing is stopped, of course.</p>
<p>The <a href="http://groups.google.com/group/linux.debian.bugs.dist/browse_thread/thread/08e29c72aff5ea44/83350881376f6bc1?lnk=raot">solution</a> is simple:</p>
<p><code> LANG=en_US.UTF-8 /etc/init.d/samba restart</code></p>
<p>In short:<br />
<em>/var/log/cups/error_log</em> shows a lot of </p>
<p><code>E [<date>] Unsupported character set "iso-8859-1"!</code></p>
<p>CUPS requires UTF-8.<br />
In the case of default login in Debian, the console IS in UTF-8, but is not if you have customized it and use `su` for administrative tasks.</p>
<p>C&#8217;ia.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejs.seniejitrakai.net/2008/04/15/lets-make-samb-and-cups-friends-again/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
