<?xml version="1.0" encoding="UTF-8"?><!-- generator="WordPress/2.5.1" -->
<rss version="0.92">
<channel>
	<title>itech9</title>
	<link>http://itech9.com/wp</link>
	<description>Notes, resources, information about software development, info security, other tech.</description>
	<lastBuildDate>Thu, 26 Aug 2010 16:31:26 +0000</lastBuildDate>
	<docs>http://backend.userland.com/rss092</docs>
	<language>en</language>
	
	<item>
		<title>How to clear linux memory cache ..</title>
		<description>From http://www.scottklarr.com/topic/134/linux-how-to-clear-the-cache-from-memory/


$ sync; echo 3 > /proc/sys/vm/drop_caches


Wait for caches to be flushed..


$ sync; echo 0 > /proc/sys/vm/drop_caches

 </description>
		<link>http://itech9.com/wp/?p=141</link>
			</item>
	<item>
		<title>Counting characters in perl..</title>
		<description>From http://www.perlmonks.org/?node_id=63955

How many 'a' characters are in the string?


#!/usr/bin/perl

my $str = 'abcatpdmeuziapmb';
my $cnt = @{[$str =~ /(a)/g]};
print "$cnt\n";

 </description>
		<link>http://itech9.com/wp/?p=140</link>
			</item>
	<item>
		<title>Creating a wlfullclient.jar for JDK 1.6 client applications..</title>
		<description>
From http://download.oracle.com/docs/cd/E12840_01/wls/docs103/client/jarbuilder.html

Use the following steps to create a wlfullclient.jar file for a JDK 1.6 client application: 

1.Change directories to the server/lib directory.

cd WL_HOME/server/lib

2. Use the following command to create wlfullclient.jar in the server/lib directory:

java -jar wljarbuilder.jar

3.You can now copy and bundle the wlfullclient.jar with client applications. 

4.Add the wlfullclient.jar to ...</description>
		<link>http://itech9.com/wp/?p=139</link>
			</item>
	<item>
		<title>List contents of an rpm ..</title>
		<description>From http://www.tech-recipes.com/rx/1419/list-files-in-an-rpm-package/

To list the contents of the RPM techrx.rpm use this command:

rpm -qlp techrx.rpm

 </description>
		<link>http://itech9.com/wp/?p=138</link>
			</item>
	<item>
		<title>Database model ACID rules..</title>
		<description>From http://databases.about.com/od/specificproducts/a/acid.htm


Atomicity states that database modifications must follow an 'all or nothing' rule.


Consistency states that only valid data will be written to the database.


Isolation requires that multiple transactions occurring at the same time not impact each other's execution.


Durability ensures that any transaction committed to the database will not be lost.




 </description>
		<link>http://itech9.com/wp/?p=137</link>
			</item>
	<item>
		<title>WebLogic 10.3 Workshop notes..</title>
		<description>>> WebLogic 10.3 is old but I want to follow the workshop and I cannot
find the "workshop" in the Oracle WebLogic 10.3.3 package.

&#160;&#160;* For page navigation, it uses Apache Beehive, which is now retired.

>> Add Eclipse components via:

&#160;&#160;* /opt/bea/wlserver_10.3/common/bin/config.sh &

&#160;&#160;* Fix eclipse java crash: add this line to "workshop.ini":

&#160;&#160;-Dorg.eclipse.swt.browser.XULRunnerPath=/usr/lib/xulrunner-1.9/xulrunner

&#160;&#160;* Create ...</description>
		<link>http://itech9.com/wp/?p=136</link>
			</item>
	<item>
		<title>Helpful WebLogic error messages..</title>
		<description>In WebLogic 10.3 ..

weblogic-ejb-jar.xml with this entity-descriptor:


&#60;entity-descriptor&#62;

&#60;persistence&#62;
&#60;persistence-use&#62;
  &#60;type-identifier&#62;WebLogic-CMP&#60;/type-identifier&#62;
  &#60;type-version&#62;6.0&#60;/type-version&#62;
  ...
&#60;/persistence-use&#62;
&#60;/persistence&#62;

&#60;/entity-descriptor&#62;


Triggers this error (Note the -truly- useful help message):


Unable to deploy EJB: /opt/bea/user_projects/domains/base_domain/servers/AdminServer/stage
/_appsdir_ProductEjb_jar/ProductEjb.jar from ProductEjb.jar:

Persistence type 'WebLogic-CMP' with version '6.0' which is referenced in bean 'Product' is not 
installed. The installed persistence types are:(WebLogic_CMP_RDBMS, 5.1.0), 
(WebLogic_CMP_RDBMS, 7.0), (WebLogic_CMP_RDBMS, ...</description>
		<link>http://itech9.com/wp/?p=135</link>
			</item>
	<item>
		<title>Types, bits of security vulnerabilities..</title>
		<description>From http://www.cert.org/

cross-site scripting (XSS) vulnerabilities 
Cross-site request forgery (CSRF)
denial of service (resource consumption)
Directory traversal 
Integer overflow 
Integer signedness 
Session fixation (hijack web sessions)
PHP remote file inclusion 
SQL injection 
 </description>
		<link>http://itech9.com/wp/?p=134</link>
			</item>
	<item>
		<title>JBoss vs WebLogic - JNDI issues..</title>
		<description>In JBoss, one can get a reference to the Remote bean directly:


try
{
    context = new InitialContext(jndiprops);
    BookTestBeanRemote beanRemote = 
        (BookTestBeanRemote) context.lookup("BookTestBean/remote");
    beanRemote.test(); 
} catch (NamingException e) {
    ...
}


In WebLogic 10.3, ...</description>
		<link>http://itech9.com/wp/?p=133</link>
			</item>
	<item>
		<title>JBoss vs WebLogic notes - persistence..</title>
		<description>In JBoss, this works:


List someBooks = em.createQuery("FROM Book b WHERE b.author=:name")
    .setParameter("name", "Sebastian").getResultList();


In WebLogic, I had to specify SELECTs:


List someBooks = em.createQuery("SELECT b FROM Book b WHERE b.author=:name")
    .setParameter("name", "Sebastian").getResultList();


If I have time, I will dig further and see why they behave differently but ...</description>
		<link>http://itech9.com/wp/?p=132</link>
			</item>
</channel>
</rss>
