<?xml version="1.0" encoding="ISO-8859-1"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xml:lang="en-US">
	<title>Hipersonik.com solutions</title>
	<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php" />
	<modified>2008-12-01T19:33:58Z</modified>
	<author>
		<name>Norbert</name>
		<email>norbert@vnitconsultancy.nl</email>
	</author>
	<copyright>Copyright 2008, Norbert</copyright>
	<generator url="http://www.sourceforge.net/projects/sphpblog" version="0.4.6.1">SPHPBLOG</generator>
	<entry>
		<title>Oracle chooses full table scan over index while cost is equal</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry081031-083612" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />Oracle 10/11 chooses in the cost based optimizer for a full table scan instead of using the index. This is done when the cost of both options are equal according to Oracle. <br /><br /><b>Solution:</b><br /><br />There are 2 possible solutions:<br />1. Use a hint: It garantees that the index will be used all the time;<br />2. Oracle chooses alphabetically when the cost is equal: Rename your index to a place earlier in the alphabet than your table: This lets Oracle keep its behaviour but still get the index when the cost is equal.]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry081031-083612</id>
		<issued>2008-10-31T00:00:00Z</issued>
		<modified>2008-10-31T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Dataguard fails with divide by zero exception</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry081031-082057" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />Oracle 10.2.0.3 dataguard fails with a divide by zero exception crashing the memory recovery proces (MRP0).<br /><br /><b>Solution:</b><br /><br />The solution is twofold:<br />1. Upgrade oracle to 10.2.0.4 (see metalink for details)<br />2. Just restart the process:<br />Login with sqlplus.<br />The database is still running, so just type:<br />RECOVER MANAGED STANDBY DATABASE DISCONNECT FROM SESSION;<br /><br />Recovery should continu (archive logs will be applied).]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry081031-082057</id>
		<issued>2008-10-31T00:00:00Z</issued>
		<modified>2008-10-31T00:00:00Z</modified>
	</entry>
	<entry>
		<title>make fails with stubs32.h not found on 64bit suse 10.3</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry081021-202349" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />While running make to compile a program, it fails with stubs32.h not found.<br /><br /><b>Solution:</b><br /><br />Create a symbolic link from stubs-64.h to stubs-32.h and run make again. The problem should be solved.]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry081021-202349</id>
		<issued>2008-10-21T00:00:00Z</issued>
		<modified>2008-10-21T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Layout for view is not found</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry080618-200302" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />You are trying to load a template using the Joomla 1.5 MVC model, but you run into an error <i>500 - Layout &quot;templatename&quot; not found</i>.<br /><br /><b>Solution:</b><br /><br />Check for typos in the view name and template name. Use lowercase only.<br />Do not use the word &quot;view&quot; to start your view with. Joomla strips the word view of the template path only (I regard this as a bug, not a feature). It tolerates the word view when resolving the view.html.php file. So for example viewCustomer is not possible. This will resolve to customer for the template name. Try lookatcustomer instead (all lowercase).]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry080618-200302</id>
		<issued>2008-06-18T00:00:00Z</issued>
		<modified>2008-06-18T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Starting JRockit Mission Control</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry080609-115532" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />Bea JRockit Mission Control does not want to connect to the Bea instance. It reports connection refused.<br /><br /><b>Solution:</b>  <br /><br />A possible cause is that the -Xmanagement parameter is not in the correct location in the startup string. The startup string should look like:<br /><i>${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${PROXY_SETTINGS} -Xmanagement ${SERVER_CLASS}  &gt;&quot;${WLS_REDIRECT_LOG}&quot; 2&gt;&amp;1</i><br />With the -Xmanagement parameter just before the starting class.<br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry080609-115532</id>
		<issued>2008-06-09T00:00:00Z</issued>
		<modified>2008-06-09T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Howto create a custom button</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry080608-133436" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />How to create a custom admin interface button in Joomla (1.5).<br /><br /><b>Solution:</b><br /><br />The code to create the button should be as follows:<br />        <i>JToolBarHelper::custom(&quot;task&quot;,&quot;image1.png&quot;,&quot;image1Over.png&quot;,&quot;text for underneath the button&quot;,Check for list item (true/false),hide main menu after click (true/false));</i><br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry080608-133436</id>
		<issued>2008-06-08T00:00:00Z</issued>
		<modified>2008-06-08T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Call to JTable object results in blank screen</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry080607-113020" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />In Joomla 1.5 you try to create a new JTable object, but somehow it results in a blank screen. The apache log shows: <br /><i>Call to a member function bind() on a non-object</i><br /><br /><b>Solution:</b><br /><br />If it is a new JTable object from a self build component, the name and location of the object need to be in lowercase and as follows:<br />Location:<br />Use <i>JTable::addIncludePath(JPATH_ADMINISTRATOR.DS.&#039;components&#039;.DS.&#039;com_yourcomponent&#039;.DS.&#039;yourtablesubdirectory&#039;);</i><br />to add the path of your JTable objects to the search path of Joomla.<br />Use lowercase directory names and file names only.<br />Name the JTable class file name to the object you are trying to load:<br /><i>$table = &amp; JTable::getInstance(&#039;nameofobject&#039;,&#039;Table&#039;);</i>.<br />The nameofobject has to become your file name: nameofobject.php in the locate indicated in the addIncludePath.<br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry080607-113020</id>
		<issued>2008-06-07T00:00:00Z</issued>
		<modified>2008-06-07T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Adding a view results in error 500</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry080606-194110" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />After adding a view to a component in Joonla 1.5 you get an error 500, view not found, on linux when trying to access this view.<br /><br /><b>Solution:</b><br /><br />Use the view name in lowercase, and also the directory name of the view in lowercase. This (combined with typing the correct view name) should result in a different response (maybe good, maybe a different error 500).]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry080606-194110</id>
		<issued>2008-06-06T00:00:00Z</issued>
		<modified>2008-06-06T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Bea gives error that weblogicWLStore is owned by other thread</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry080603-152948" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />While using a JMS configuration with multiple persistent stores in Bea WLS 9.2, there is an error stating the following:<br /><br /><i>&lt;Warning&gt; &lt;Store&gt; &lt;managed server name 1&gt; &lt;[ACTIVE] ExecuteThread: &#039;0&#039; for queue: &#039;weblogic.kernel.Default (self-tuning)&#039;&gt; &lt;&lt;WLS Kernel&gt;&gt; &lt;&gt; &lt;&gt; &lt;&gt; &lt;BEA-280076&gt; &lt;Database table &quot;weblogicWLStore&quot; for store &quot;PersistentStore-01&quot; is currently owned by &quot;[name={server=managed_03!host=x.y.x.a!domain=abc!store=PersistentStore-03!table=weblogicWLStore}]&quot;. Trying to wait for ownership.&gt;<br />&lt;Error&gt; &lt;Store&gt; &lt;managed server name 2&gt; &lt;[ACTIVE] ExecuteThread: &#039;0&#039; for queue: &#039;weblogic.kernel.Default (self-tuning)&#039;&gt; &lt;&lt;WLS Kernel&gt;&gt; &lt;&gt; &lt;&gt; &lt;&gt; &lt;BEA-280077&gt; &lt;JDBC store &quot;PersistentStore-01&quot; in this server is not the owner of database table &quot;weblogicWLStore&quot;. Unexpected current owner is &quot;[name={server=managed_03!host=x.y.z.a!domain=abc!store=PersistentStore-03!table=weblogicWLStore}]&quot;, expected current owner is &quot;[name={server=managed_01!host=x.y.z.a!domain=abc!store=PersistentStore-01!table=weblogicWLStore}]&quot;.&gt;<br />&lt;Error&gt; &lt;Store&gt; &lt;managed server name 2&gt; &lt;[ACTIVE] ExecuteThread: &#039;0&#039; for queue: &#039;weblogic.kernel.Default (self-tuning)&#039;&gt; &lt;&lt;WLS Kernel&gt;&gt; &lt;&gt; &lt;&gt; &lt;1212496576272&gt; &lt;BEA-280072&gt; &lt;JDBC store &quot;PersistentStore-01&quot; failed to open table &quot;weblogicWLStore&quot;.<br />weblogic.store.io.jdbc.JDBCStoreException: [Store:280064]280077 (server=&quot;managed_01&quot; store=&quot;PersistentStore-01&quot; table=&quot;weblogicWLStore&quot;)<br />        at weblogic.store.io.jdbc.JDBCStoreIO.checkTableOwnership(JDBCStoreIO.java:1991)<br />        at weblogic.store.io.jdbc.JDBCStoreIO.getTableOwnershipLogical(JDBCStoreIO.java:2104)<br />        at weblogic.store.io.jdbc.JDBCStoreIO.open(JDBCStoreIO.java:382)<br />        at weblogic.store.internal.PersistentStoreImpl.open(PersistentStoreImpl.java:353)<br />        at weblogic.store.admin.AdminHandler.activate(AdminHandler.java:135)<br />        at weblogic.store.admin.JDBCAdminHandler.activate(JDBCAdminHandler.java:64)<br />        at weblogic.management.utils.GenericManagedService.activateDeployment(GenericManagedService.java:237)<br /></i><br /><br /><b>Solution:</b><br /><br />The persistent store prefix (use the admin interface, edit persistent store) can be altered to have a table per persistent store. This way no table lock conflicts rise and all managed servers can start.]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry080603-152948</id>
		<issued>2008-06-03T00:00:00Z</issued>
		<modified>2008-06-03T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Bea Weblogic 9.2 does not start after upgrade</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry080603-115836" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />After an upgrade of the Bea Weblogic server, the environment does not want to start. The error from Bea is BEA-149610.<br /><br /><b>Solution:</b><br /><br />Remove from servers your admin server and managed servers. They have something cached, which requires a rebuild from Bea, which fails because it is trying to start the admin server at the same time. After removal of the servers, the environment starts.]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry080603-115836</id>
		<issued>2008-06-03T00:00:00Z</issued>
		<modified>2008-06-03T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Weblogic jar installer in console mode reports to little disk space</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry080603-100303" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />During the installation of Bea weblogic 10, the console mode installer reports to little disk space available:<br /><br /><i>Choose Product Installation Directories:<br />----------------------------------------<br /><br />BEA Home Directory: [/opt/weblogic]<br /><br />Product Installation Directories:<br /><br /><br />    &quot;Default Product Home&quot; = [Enter new value or use default &quot;/opt/weblogic/wlserver_10.0&quot;]<br /><br /><br />    ** Insufficient disk space! The installer requires:<br />    ** 91MB for the BEA Home at /opt/weblogic,<br />    ** 362MB for the product at /opt/weblogic/wlserver_10.0 and<br />    ** 367MB temporary work space at /tmp/bea50538.tmp.<br />    ** There is only 375MB available at /tmp.<br /></i><br /><br />Note however that there is actually a larger number available on tmp in this case.<br /><br /><b>Solution:</b><br /><br />Ignore the error, it is bogus.]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry080603-100303</id>
		<issued>2008-06-03T00:00:00Z</issued>
		<modified>2008-06-03T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Joomla failes component installation with SQL error</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry080602-211942" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />Joomla 1.5 fails to install a component with the following error:<br /><i>Component Install: SQL error or missing or unreadable SQL file. DB function reports no errors</i>.<br /><br /><b>Solution:</b><br /><br />The installer looks for the files within the admin files folder. This means that the files also have to be placed like standard files. Example xml config file:<br />&lt;..&gt;<br />&lt;install&gt;<br />&lt;sql&gt;<br />&lt;file driver=&quot;mysql&quot; charset=&quot;utf8&quot;&gt;sql/install.mysql.sql&lt;/file&gt;<br />&lt;/sql&gt;<br />&lt;/install&gt;<br />&lt;..&gt;<br />&lt;administration&gt;<br />&lt;menu&gt;Standard component name&lt;/menu&gt;<br />&lt;files folder=&quot;admin&quot;&gt;<br />&lt;filename&gt;sql/install.mysql.sql&lt;/filename&gt;<br />&lt;..&gt;<br />&lt;/administration&gt;<br />&lt;..&gt;]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry080602-211942</id>
		<issued>2008-06-02T00:00:00Z</issued>
		<modified>2008-06-02T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Bea weblogic installation are jar files instead of binary</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry080602-100658" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />The installation files as downloadable from Bea Weblogic are jar files instead of the executable files as mentioned in the installation manual.<br /><br /><b>Solution:</b><br /><br />Use a different <a href="http://e-docs.bea.com/common/docs92/install/start.html#jar" >manual</a>.<br />The important command is:<br />java -jar &lt;jarfile&gt; -mode=console]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry080602-100658</id>
		<issued>2008-06-02T00:00:00Z</issued>
		<modified>2008-06-02T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Bea Weblogic JMS fails to show in JNDI tree in cluster setup</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry080523-091709" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />Bea Weblogic JMS information is not showing on any other machine in a cluster except the physical machine where the JMS is running.<br /><br /><b>Solution:</b><br /><br />Bea implemented the JMS service standard as a high performance solution. To use this:<br />A JMS server has to be created per managed server (non-migratable);<br />The queues have to be created as (uniform) distributed queues with as target the cluster;<br />The connection factory also has to target the cluster.<br /><br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry080523-091709</id>
		<issued>2008-05-23T00:00:00Z</issued>
		<modified>2008-05-23T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Internet explorer does not show a div</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry080416-162415" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />Unknown run time error in IE7 occurs while trying to put content in a div with javascript. No errors are to be seen in Firefox.<br /><br /><b>Solution:</b><br /><br />Most likely a reserved keyword has been used as id for the div (like id=submit). Rename the div to another term, and the problem will most likely disappear.]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry080416-162415</id>
		<issued>2008-04-16T00:00:00Z</issued>
		<modified>2008-04-16T00:00:00Z</modified>
	</entry>
	<entry>
		<title>dbms_output.put_line not visible in sqlplus</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry080408-130320" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />While using dbms_output.put_line no output shows up at the console using sqlplus.<br /><br /><b>Solution:</b><br /><br />Set serveroutput to on:<br />set serveroutput on<br />Now output will be visible]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry080408-130320</id>
		<issued>2008-04-08T00:00:00Z</issued>
		<modified>2008-04-08T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Using oracle plsql exceptions</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry080408-111822" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />You have an custom exception you want to catch in plsql.<br /><br /><b>Solution:</b><br /><br />Create a custom exception:<br />declare<br />   MISSING_DATA exception;<br />   PRAGMA EXCEPTION_INIT(MISSING_DATA, exception_number);<br />begin<br />  begin<br />    Your SQL;<br />    exception when MISSING_DATA then dbms_output.put_line(&#039; exception caught&#039;);<br />  end;<br />end;<br />/<br /><br />The important part is to set the correct exception_number:<br />Run your sql and see what exception oracle throws as first exception (ORA-12345). Replace exception_number with -12345.<br /><br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry080408-111822</id>
		<issued>2008-04-08T00:00:00Z</issued>
		<modified>2008-04-08T00:00:00Z</modified>
	</entry>
	<entry>
		<title>EditFailedException in Bea Weblogic 9.1</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry080329-181003" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />Bea Weblogic 9.1 fails during the change of configuration using the admin console (apply changes) with the exception: weblogic.management.provider.EditFailedException<br /><br /><b>Solution:</b><br /><br />There is 2 possible solutions: First try the solution posted by <a href="http://edocs.bea.com/wls/docs91/issues/known_resolved.html" target="_blank" >Bea</a>.<br /><br />If this does not work, try the following:<br />Stop Bea (with most likely a kill -4). Assign more memory to Bea. Start Bea again. This might solve your issue.<br />Maybe a complete reboot of your environment will work too.<br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry080329-181003</id>
		<issued>2008-03-29T00:00:00Z</issued>
		<modified>2008-03-29T00:00:00Z</modified>
	</entry>
	<entry>
		<title>How to grow a Sequoia from seed</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry080323-141549" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />You are trying to grow a Sequoia (giganteum) from seed (germination) and do not know how to do this.<br /><br /><b>Solution:</b><br /><br /><i>The shopping list:</i><br />- Buy standard plant soil at your local garden center;<br />- Buy breakable plastic pots, organic pots or be prepared to kill of your flower pot when the tree grows, diameter pot about 8 cm at the top;<br />- Buy a germination hothouse (about 20 cm high is a nice size) with some ventilation holes, and possibility to mount a light on it;<br />- Buy a small light (bulb/tube: Bulb if outside since it also gives sufficient warmth, 6 to 10 watts light is enough);<br />- Some aluminium foil for reflecting the light.<br /><br /><i>The planting:</i><br /><br />1) Mount the lamp onto the hothouse;<br />2) Coat the inside of the hothouse bottom and the sides (until halfway the height of the hothouse) with aluminium foil=&gt; Reflection increases the efficiency of the light, so 6 to 10 watts of light is enough;<br />3) Take the pots and fill them to the top with soil, do not compress the soil;<br />4) Add a generous amount of water to the soil;<br />5) Put some seeds on top of the soil (about 5 per pot);<br />6) Put very little (1 to 2 millimeter) soil on top of the seeds;<br />7) Add a bit more water;<br />8) Put the pot(s) into the hothouse;<br />9) Place the pots inside your house;<br />10) Plugin &amp; turn on the light. Leave the light on for about 18 hours per day (longer is allowed unless it disturbs you).<br /><br />About 2.5 to 3 weeks are between sowing the seeds and the first sequoia emerging using a surrounding temperature of about 15 to 20 degrees Celsius.<br /><br />If the inside of the hothouse fogs up to much, you can clean it. <br /><br />Occasional sunlight will help the process (and makes it possible for you to turn of the light)<br /><br /><b>Notes:</b><br /><br />A small percentage of seeds really grows into tiny sequoias with even less of those surviving the first year. Expect about 25% to grow with this method.<br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry080323-141549</id>
		<issued>2008-03-23T00:00:00Z</issued>
		<modified>2008-03-23T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Problem creating new groups in Joomla</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry080216-225334" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />Extending group management in Joomla (1.0) does not seem to work with script from <a href="http://forum.joomla.org/viewtopic.php?f=231&amp;t=257938." target="_blank" >http://forum.joomla.org/viewtopic.php?f=231&amp;t=257938.</a><br /><br /><b>Solution:</b><br /><br />The table structure of the jos_core_acl_aro_groups changed slightly. The new script should look like:<br /><code>SET @parent_name = &#039;Registered&#039;;<br />SET @new_name = &#039;Support&#039;;<br /><br />-- Select the parent node to insert after<br />SELECT @ins_id := group_id, @ins_lft := lft, @ins_rgt := rgt<br />FROM jos_core_acl_aro_groups<br />WHERE name = @parent_name;<br /><br />SELECT @new_id := MAX(group_id) + 1 FROM jos_core_acl_aro_groups;<br /><br />-- Make room for the new node<br />UPDATE jos_core_acl_aro_groups SET rgt=rgt+2 WHERE rgt&gt;=@ins_rgt;<br />UPDATE jos_core_acl_aro_groups SET lft=lft+2 WHERE lft&gt;@ins_rgt;<br /><br />-- Insert the new node<br />INSERT INTO jos_core_acl_aro_groups (group_id,parent_id,name,lft,rgt)<br />VALUES (@new_id,@ins_id,@new_name,@ins_rgt,@ins_rgt+1);<br /></code><br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry080216-225334</id>
		<issued>2008-02-16T00:00:00Z</issued>
		<modified>2008-02-16T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Oracle 11g installer fails</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry080127-144222" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />The Oracle installer fails with the following error on SuSE 10.3:<br />java: xcb_xlib.c:52: xcb_xlib_unlock: Assertion `c-&gt;xlib.lock&#039; failed<br /><br /><b>Solution:</b><br />The java based installer is not compiled on the local machine and is expecting certain libraries with a certain version. The comparison of these libraries can be relaxed by setting the following environment parameter:<br />export LIBXCB_ALLOW_SLOPPY_LOCK=0<br /><br />Try to run the installer again. It should start.]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry080127-144222</id>
		<issued>2008-01-27T00:00:00Z</issued>
		<modified>2008-01-27T00:00:00Z</modified>
	</entry>
	<entry>
		<title>proxy: No protocol handler was valid for the URL</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry071216-185155" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />Page with an apache2 http proxy gives a 403 error using SuSE linux. The logfile shows:<br />[Sun Dec 16 18:46:20 2007] [warn] proxy: No protocol handler was valid for the URL /. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.<br />[Sun Dec 16 18:46:20 2007] [warn] proxy: No protocol handler was valid for the URL /error/HTTP_FORBIDDEN.html.var. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.<br /><br /><b>Solution:</b><br />Add the following to /etc/sysconfig/apache2:<br />APACHE_MODULES=&quot;.. proxy proxy_connect proxy_ftp proxy_http&quot;<br />In which .. are the modules you already have in place.<br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry071216-185155</id>
		<issued>2007-12-16T00:00:00Z</issued>
		<modified>2007-12-16T00:00:00Z</modified>
	</entry>
	<entry>
		<title>java.lang.NoClassDefFoundError: javax/mail/Authenticator</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry071210-223447" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />java.lang.NoClassDefFoundError: javax/mail/Authenticator in Tomcat while using javamail.<br /><br /><b>Solution:</b><br /><br />Javamail contains a slight issue with locating the activation jar file from JAF.<br />Place the mail jars and activation.jar in tomcat/common/lib. This will solve the problem.<br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry071210-223447</id>
		<issued>2007-12-10T00:00:00Z</issued>
		<modified>2007-12-10T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Problem installing PEAR</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry071201-163420" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />You have a problem installing pear:<br />Installing PEAR environment:      /usr/local/php5/lib/php/<br /><br />Notice: unserialize(): Error at offset 255 of 987 bytes in phar://install-pear-nozlib.phar/PEAR/Config.php on line 1007<br /><br />Fatal error: Call to undefined method PEAR_Error::getLayers() in phar://install-pear-nozlib.phar/index.php on line 66<br />make[1]: *** [install-pear-installer] Segmentation fault<br />make: *** [install-pear] Error 2<br /><br /><b>Solution:</b><br />Delete your pear.conf from where ever it is (usually /etc or your php $basedir/etc). It contains different data than expected by the installer, causing the installer to crash.<br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry071201-163420</id>
		<issued>2007-12-01T00:00:00Z</issued>
		<modified>2007-12-01T00:00:00Z</modified>
	</entry>
	<entry>
		<title>QMail delivers message many times after mailbox migration</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry071201-163235" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br />Qmail delivers message many times after migration from Plesk to vpopmail setup.<br /><br /><b>Solution:</b><br />Remove &quot;|autoresponder&quot; from .qmail configuration for the troubled user. The queue will than empty itself delivering the messages 1 last time.<br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry071201-163235</id>
		<issued>2007-12-01T00:00:00Z</issued>
		<modified>2007-12-01T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Qmail bounces messages after mailbox migration</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry071201-163107" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br />Qmail bounces email after migration of some mailboxes (from Plesk to vpopmail setup).<br /><br />The bounce mail from vpopmail:<br />Hi. This is the qmail-send program at xyz.com.<br />I&#039;m afraid I wasn&#039;t able to deliver your message to the following addresses.<br />This is a permanent error; I&#039;ve given up. Sorry it didn&#039;t work out.<br /><br />&lt;abc@xyz.com&gt;:<br />This message is looping: it already has my Delivered-To line. (#5.4.6)<br /><br /><b>Solution:</b><br />You setting contains a forward which is not understood by the vpopmail setup of qmail. Replace the .qmail-default file content for this domain with:<br />| /home/vpopmail/bin/vdelivermail &#039;&#039; bounce-no-mailbox<br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry071201-163107</id>
		<issued>2007-12-01T00:00:00Z</issued>
		<modified>2007-12-01T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Bea weblogic logrotate fails</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry071201-162757" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />The logrotate of Bea Weblogic does not seem to work, while in the rotated files directory created by the admin, files are created. The logfiles just keep growing untill the disk is full.<br /><br /><b>Solution:</b><br />The issue is that Bea weblogic wants an absolute path in the configuration for the logrotate, but appearently can live with a relative path when writing to the logfiles itself. Replace all the paths to the logfiles and also to the rotation location with absolute paths, and the problem should be solved. Restart admin server to verify it works.<br /><br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry071201-162757</id>
		<issued>2007-12-01T00:00:00Z</issued>
		<modified>2007-12-01T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Pop-up Greybox frame with Flash</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry070707-140259" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br />Greybox provides pop-up frames by altering the href with javascript code. The onclick gets defined. <br />When wanting to use the same code from Flash, there are some problems with the transparancy of the greybox code.<br /><br /><b>Solution:</b><br />To get the greybox pop-up working correctly, call the javascript from flash with the following function (from greybox examples.html file):<br />getUrl(&quot;javacript:GBFlashCall(caption,url,height,width)&quot;);<br /><br />In which you can set the caption, url, height and width yourself.<br />Add a script link in the header of you html file after the greybox files, also add the GB_ROOT_DIR, else it will not work:<br />    &lt;script type=&quot;text/javascript&quot;&gt;<br />        var GB_ROOT_DIR = &quot;./greybox/&quot;;<br />    &lt;/script&gt;<br /><br />    &lt;script type=&quot;text/javascript&quot; src=&quot;greybox/AJS.js&quot;&gt;&lt;/script&gt;<br />    &lt;script type=&quot;text/javascript&quot; src=&quot;greybox/AJS_fx.js&quot;&gt;&lt;/script&gt;<br />    &lt;script type=&quot;text/javascript&quot; src=&quot;greybox/gb_scripts.js&quot;&gt;&lt;/script&gt;<br />    &lt;script type=&quot;text/javascript&quot; src=&quot;GBFlashCall.js&quot;&gt;&lt;/script&gt;<br />    &lt;link href=&quot;greybox/gb_styles.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot; media=&quot;all&quot; /&gt;<br /><br /><br /><br />Create the GBFlashCall.js file with the following content on the correct loction as defined in the &lt;script&gt; call:<br /><br />GB_myShow = function(caption, url, /* optional */ height, width, callback_fn) {<br />    var options = {<br />        caption: caption,<br />        center_win:true,<br />        height: height || 500,<br />        width: width || 500,<br />        fullscreen: false,<br />        show_loading: true,<br />        callback_fn: callback_fn<br />    }<br />    var win = new GB_Window(options);<br />    return win.show(url);<br />}<br /><br />function GBFlashCall(caption, url, height, width) {<br />  myShow(caption, url, height, width);<br />}<br /><br />You can alter the true/false options to alter the behaviour of you pop-up, or you can move the options over to flash to get the same results.]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry070707-140259</id>
		<issued>2007-07-07T00:00:00Z</issued>
		<modified>2007-07-07T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Passing sql scripts to sqlplus with extra variables</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry070319-153237" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br />Using unix variables in an Oracle sql script with sqlplus.<br /><br /><b>Solution:</b><br />Use the following parameters to pass the sql to sqlplus:<br /><code>$SQLDIR/sqlplus -silent $USER/$PASSWORD $SCRIPTNAME.sql PARAM </code><br /><br />Important is the @ before the $SCRIPTNAME. The last parameter PARAM can be used in sqlplus with &amp;INT where INT is the number of the parameter (in this case 1=&gt; &amp;1).<br />Also important is the SQL which you parse into sqlplus in this case: Put a quit on the last line to prevent sqlplus from not exiting in batchmode, for example if it is run from the cron deamon.<br /><br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry070319-153237</id>
		<issued>2007-03-19T00:00:00Z</issued>
		<modified>2007-03-19T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Oracle SQL Developer fails to update or delete a record</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry070318-194414" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br />Oracle SQL Developer and other graphic userinterfaces use database properties to determine how to update or delete a row in a database. This can lead to mystery record locks which can not be traces.<br />No lock can be found in V$LOCK, no abnormal sessions can be found in V$SESSION.<br />Typical oracle where statement looks like:<br /><code>WHERE ROWID = &#039;ABCDE+ABCDEFGHIJKL&#039; AND ORA_ROWSCN = &#039;123456&#039;</code><br /><br /><b>Solution:</b><br />Type your own update statement instead of the SQL Developer generated one, and see if that works. If so, it is a problem with SQL Developer, else search on.<br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry070318-194414</id>
		<issued>2007-03-18T00:00:00Z</issued>
		<modified>2007-03-18T00:00:00Z</modified>
	</entry>
	<entry>
		<title>SET ECHO OFF but still SQL code visible in spool file</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry070307-134942" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue</b><br /><br />The SET ECHO OFF command in sqlplus does not produce the required result. In other words: You are still seeing SQL code in your logfiles or spoolfiles.<br /><br /><b>Solution</b><br /><br />There is a sqlplus parameter which is also of influence. This parameter is: silent. If you call sqlplus with -silent, the SQL code will not show anymore.]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry070307-134942</id>
		<issued>2007-03-07T00:00:00Z</issued>
		<modified>2007-03-07T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Problem with &amp;amp;amp; in Mambo and Joomla</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry070121-164624" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Issue:</b><br /><br />There is a possibitiy that at least the pathway module replaces an &amp;amp; to many with &amp;amp;amp;.<br /><br /><b>Solution:</b><br /><br />The ampReplace function in the includes/mambo.php does not take single &amp;amp; with spaces around it in account. To counter that, add a str_replace for this single &amp;amp;:<br />function ... <br />        $text = str_replace( &#039;&amp; &#039;, &#039;*--*&#039;, $text );<br />...<br />        $text = str_replace( &#039;*--*&#039;, &#039;&amp; &#039;, $text );<br />...<br /><br />Leading to the total function as displayed below:<br /><br />/**<br />* Replaces &amp;amp; with &amp; for xhtml compliance<br />*<br />* Needed to handle unicode conflicts due to unicode conflicts<br />*/<br />function ampReplace( $text ) {<br />        $text = str_replace( &#039;&amp; &#039;, &#039;*--*&#039;, $text );<br />        $text = str_replace( &#039;&amp;#&#039;, &#039;*-*&#039;, $text );<br />        $text = str_replace( &#039;&amp;&#039;, &#039;&amp;amp;&#039;, $text );<br />        $text = str_replace( &#039;*-*&#039;, &#039;&amp;#&#039;, $text );<br />        $text = str_replace( &#039;*--*&#039;, &#039;&amp; &#039;, $text );<br /><br />        return $text;<br />}<br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry070121-164624</id>
		<issued>2007-01-21T00:00:00Z</issued>
		<modified>2007-01-21T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Exporting &amp; printing bug in dia under SuSE 10</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry060817-212119" />
		<content type="text/html" mode="escaped"><![CDATA[<b>The issue</b><br /><br />Printing and exporting a diagram from dia 0.94 under SuSE 10 results in diagrams where some of the fonts are smaller than they should be.<br /><br /><b>The solution</b><br /><br />This bug is a bug in dia 0.94. Update to dia 0.95 should do the trick to solve this problem. <br /><br />Dia for windows (the 0.95 version tested) has some new issues with the font, causing diagrams to fall apart if you are nog carefull.<br />The simple solution there is, to save the file with dia 0.94 as uncompressed dia file. Edit that file with vi or notepad to change the font size of all 0.8 size fonts to 0.6, 1.0 to 0.8, and probably a bit more depending on your diagram. After that you can open the file in dia 0.95 with very little compatibility issues.<br /><br />P.S. First preview your file in 0.95. It is possible that this is a Microsoft Windows issue.]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry060817-212119</id>
		<issued>2006-08-17T00:00:00Z</issued>
		<modified>2006-08-17T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Importing old e-mail from KMail into KMail</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry060812-180132" />
		<content type="text/html" mode="escaped"><![CDATA[<b>The issue</b><br /><br />KMail has a range of options to insert old e-mail from other applications, but none for its own e-mail. This piece explains how to import KMail e-mails into KMail.<br /><br />KMail is able to handle to mail storage types:<br />- maildir<br />- mbox<br />Maildir is the standard selection, and the one which is missed in the import filters of KMail.<br />The filter of KMail for some reason excludes its own e-mails from the import.  This can be solved by renaming the e-mails to the same name but then with a .txt extention.<br /><br /><b>Rename script</b><br />This script renames the files to a .txt extention. Run this in your KMail maildir folder:<br /><br />#!/bin/bash<br />files=$(ls -1)<br />for x in $files<br />do<br />  mv $x $x.txt<br />done<br /><br /><b>The steps to import the e-mail:</b><br /><br />The import functionalities can be found under tools, import messages. Since maildir are plain text messages, you want to use the import plain text e-mails option. <br />The next step is to select the folder where you stored the backup of your KMail. Every folder has 3 sub folders:<br />- cur<br />- new<br />- tmp<br />The last step is to press next. <br />The result is that the e-mails are loaded into the folder PLAIN-cur.<br /><br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry060812-180132</id>
		<issued>2006-08-12T00:00:00Z</issued>
		<modified>2006-08-12T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Slow USB devices under SuSE linux</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry060505-060337" />
		<content type="text/html" mode="escaped"><![CDATA[USB devices tend to be extremely slow under SuSE 10 due to syncing the disk after every write. The USB driver can be told not to do this, resulting in a faster response from your USB devices.<br /><br />According to /usr/share/doc/release-notes/RELEASE-NOTES.en.rtf you can mount hot plug devices without sync.<br /><br />Create a file under /usr/share/hal/fdi/policy/20thirdparty with the name: 90-storage-nosync.fdi<br />Put the following contents in the file:<br /><br />&lt;?xml version=&quot;1.0&quot; encoding=&quot;ISO-8859-1&quot;?&gt;<br />&lt;deviceinfo version=&quot;0.2&quot;&gt;<br />&lt;device&gt;<br />&lt;!-- disable sync for mount --&gt;<br />&lt;match key=&quot;block.is_volume&quot; bool=&quot;true&quot;&gt;<br />&lt;match key=&quot;volume.fsusage&quot; string=&quot;filesystem&quot;&gt;<br />&lt;match key=&quot;@info.parent:storage.bus&quot; string=&quot;usb&quot;&gt;<br />&lt;merge key=&quot;volume.policy.mount_option.sync&quot; type=&quot;bool&quot;&gt;false&lt;/merge&gt;<br />&lt;/match&gt;<br />&lt;/match&gt;<br />&lt;/match&gt;<br />&lt;/device&gt;<br />&lt;/deviceinfo&gt;<br /><br />One reminder: The data will not be synchronized anymore, so umount before unplugging the device!]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry060505-060337</id>
		<issued>2006-05-05T00:00:00Z</issued>
		<modified>2006-05-05T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Duplex settings on sis900</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry060426-051026" />
		<content type="text/html" mode="escaped"><![CDATA[The sis900 ethernet controller is full GPL and in wide use. The issue was setting a media type on a 10Mbit network full duplex, where autonegotiation came back with half duplex.<br />By turning off the auto-negotiation, the duplex modes stays, else it will not be set.<br /><br />To set full duplex, use the ethtool with the following settings:<br />ethtool -s eth0 speed 10 duplex full autoneg off<br /><br />Querying the interface with ethtool eth0 gives:<br />Settings for eth0:<br />        Supported ports: [ TP MII ]<br />        Supported link modes:   10baseT/Half 10baseT/Full<br />                                100baseT/Half 100baseT/Full<br />        Supports auto-negotiation: Yes<br />        Advertised link modes:  10baseT/Half 10baseT/Full<br />                                100baseT/Half 100baseT/Full<br />        Advertised auto-negotiation: Yes<br />        Speed: 10Mb/s<br />        Duplex: Half<br />        Port: MII<br />        PHYAD: 1<br />        Transceiver: internal<br />        Auto-negotiation: on<br />        Current message level: 0x000000c5 (197)<br />        Link detected: yes<br /><br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry060426-051026</id>
		<issued>2006-04-26T00:00:00Z</issued>
		<modified>2006-04-26T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Hacking LaCie ethernet Disk mini to multiple samba shares</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry060205-183133" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Introduction</b><br /><br />The LaCie ethernet disk mini 300GB is a linux based device. The early versions of this device with firmware lower than firmware 2.0, are not capable of handling more than one share, which with a networked device is far from optimal. To be able to handle more than one share, this manual has been written. Lacie was also contacted by a Lacie user about this issue, and he also got a response saying that they were already addressing the issue in <a href="http://www.lacie.com/support/support_manifest.htm?pid=10594" target="_blank" >firmware</a> 2.0. By downloading the firmware, you can add your shares the easy way. If you want to do more, you can use this article to know ahead what you will run into hacking your lacie drive.<br /><br /><br /><b>Linux based, so what about GPL</b><br /><br />Sources can be downloaded from the LaCie website. They use a kernel tailored to there own, and several applications, among which samba and busybox.<br /><br /><b>Where is the configuration stored</b><br /><br />Lacie stores the configuration on the device its harddisk. This makes the task at hand a lot easier. To start with, the partitions can be backupped up easily so in case of trouble they can be restored.<br />The main system boots from the extended partition in the ethernet disk:<br />fdisk output:<br />/dev/hda5  82  Linux swap / Solaris<br />/dev/hda6  83  Linux  // probably /boot, contains the kernel<br />/dev/hda7  83  Linux  // busybox &amp; other applications, also a /etc with basic settings, overridden by /dev/hda8<br />/dev/hda8  83  Linux  // The settings the system uses<br /><br /><b>The changes</b><br /><br />At this moment all what is needed is to edit /etc/samba/smb.conf to an acceptable multiple shares layout. It is handy when you already made the users by using the webinterface, so you only have to address the shares itself. The samba config directs to /home for the standard share. You could keep that for yourself, and add subdirectories in /home (once mounted) to use with samba.<br /><br /><b>How to apply the changes</b><br /><br />Disassemble the ethernetdisk mini by unscrewing the two screws at the back (voids your 2 year warranty!!). Take out the disk and mount it in your pc running linux.<br />Make backups from /dev/hdX6,7 &amp; 8 with dd.<br />Mount /dev/hdX8 and edit the smb.conf file to your liking.<br />Shutdown, reassemble the ethernet disk and start it.<br />Do not use ethernetdisk mini configurationtools anymore. They will overwrite your new config!<br /><br /><b>Just a handy change</b><br /><br />Since you do not want to disassemble your PC and lacie every time you want to change something, it might be handy to included /dev/hda7 &amp; 8 in your samba configuration file with special permissions. This way you can update the smaba configuration with a text editor and the new config will than be available after reboot.<br /><br /><b>Further research for adding more features</b><br /><br />The CPU in the lacie is a <a href="&quot;http://www.tomsnetworking.com/Reviews-222-ProdID-ETHERMINI-4.php&quot;" target="_blank" >Freescale MPC5200</a>. Some programs need to be compiled for this CPU, based on powerPC architecture, see &quot;Work to be done&quot;.<br /><br /><b>Work to be done</b><br /><br />- Add telnet or ssh (preferred ssh), possibly by just downloading a powerPC distro (for example yellow dog linux), and copy the libraries &amp; programs to the lacie.<br />- Discover what username/password storage is used to have the shared login<br />- Maybe update the userinterface.<br />- Maybe put a little bit of pressure on lacie to update their software to accomodate multiple shares, add telnet, and tell which processor architecture is used so nice additions can be made.<br />(Help is welcome, answers will be posted here ASAP) ]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry060205-183133</id>
		<issued>2006-02-05T00:00:00Z</issued>
		<modified>2006-02-05T00:00:00Z</modified>
	</entry>
	<entry>
		<title>javamail 501 HELO hostname</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry060117-095509" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Symptom</b><br /><br />The javamail implementation you are using, is giving the following exception:<br />javax.mail.SendFailedException: Sending failed;<br />  nested exception is:<br />        class javax.mail.MessagingException: 501 Syntax: HELO hostname<br /><br />This error is slightly vague in origin, since java api descriptions fail to list most common exception causes. In this case it is the mail server responding on a single HELO command without a hostname. Since it wants to have a hostname, however fake it can be, it responds with 501 Syntax: HELO hostname. JavaMail just echos that response in the exception.<br /><br /><b>Solution</b><br /><br />Send the hostname in the HELO command. Usually when you set up a common javamail, the InitialContext &amp; session contain the necessary properties. Apperently the property mail.smtp.localhost is not set. To see the current properties, get the properties of the session: java.util.Properties props=session.getProperties(); and print them: System.out.println(&quot;my properties: &quot;+props.toString());<br />You will see that the key mail.smtp.localhost is missing. <br />The correct solution to solve this, is to update the resource parameters of your mail/Session, for example in tomcat&#039;s server.xml:<br /><br />&lt;Resource name=&quot;mail/Session&quot; auth=&quot;Container&quot; type=&quot;javax.mail.Session&quot;/&gt;<br />&lt;ResourceParams name=&quot;mail/Session&quot;&gt;<br />&lt;parameter&gt;<br />&lt;name&gt;mail.hipersonik.com&lt;/name&gt;<br />&lt;value&gt;localhost&lt;/value&gt;<br />&lt;/parameter&gt;<br />&lt;parameter&gt;<br />&lt;name&gt;mail.smtp.localhost&lt;/name&gt;<br />&lt;value&gt;localhost&lt;/value&gt;<br />&lt;/parameter&gt;<br />&lt;/ResourceParams&gt;<br /><br />An alternative solution for when the previous solution is not available to you:<br />Add the key with the following code:<br />Properties props=session.getProperties();<br />String key= &quot;mail.smtp.localhost&quot;;<br />String prop= props.getProperty(key);<br />if (prop== null)   props.put(key, &quot;localhost&quot;);<br />This way sending by using the localhost is possible. It also works for other hosts, so you can select any mailserver you want (as long as you are allowed to use it).<br /><br />]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry060117-095509</id>
		<issued>2006-01-17T00:00:00Z</issued>
		<modified>2006-01-17T00:00:00Z</modified>
	</entry>
	<entry>
		<title>if statement fails to compare two Integer objects</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry060111-151258" />
		<content type="text/html" mode="escaped"><![CDATA[<b>Symptom</b><br /><br />While using java 1.5, the following is allowed:<br />Integer number1=1;<br />Integer number2=1;<br /><br />if(number1==number2) System.out.println(&quot;number1 is number2&quot;);<br />else System.out.println(&quot;number1 is not number2&quot;);<br /><br />This fails.<br /><br /><b>Solution</b><br /><br />It is not allowed in the java standard to compare two objects. You are actually comparing the object identifiers instead of the object values. Use the intValue or the compareTo methods to do the correct comparisson.]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry060111-151258</id>
		<issued>2006-01-11T00:00:00Z</issued>
		<modified>2006-01-11T00:00:00Z</modified>
	</entry>
	<entry>
		<title>Kill script</title>
		<link rel="alternate" type="text/html" href="http://www.hipersonik.com/index.php?entry=entry060104-092352" />
		<content type="text/html" mode="escaped"><![CDATA[Sometimes there are multiple jobs to be killed. This bash script is handy for that purpose:<br />TOBEKILLED=your unique identifying name of the program<br />for PROCESS in `ps aux | grep $TOBEKILLED | grep -v grep | awk &#039;{print $2}&#039;`<br />do<br />kill -9 $PROCESS<br />done]]></content>
		<id>http://www.hipersonik.com/index.php?entry=entry060104-092352</id>
		<issued>2006-01-04T00:00:00Z</issued>
		<modified>2006-01-04T00:00:00Z</modified>
	</entry>
</feed>

