pinion.py

<pre class="python"> <span style="color: #C00000;">import</span> <span style="color: #000000;">math</span> <span style="color: #C00000;">import</span> <span style="color: #000000;">Blender</span> <span style="color: #C00000;">from</span> <span style="color: #000000;">Blender</span> <span style="color: #C00000;">import</span> <span style="color: #000000;">NMesh</span> <span style="color: #000000;">ni</span> <span style="color: #0000C0;">=</span> <span style="color: #0080C0;">26</span> <span style="color: #000000;">n</span> <span style="color: #0000C0;">=</span> <span style="color: #000000;">float</span><span style="color: #0000C0;">(</span><span style="color: #000000;">ni</span><span style="color: #0000C0;">)</span> <span style="color: #008000;">#teeths</span> <span style="color: #000000;">a</span> <span style="color: #0000C0;">=</span> <span style="color: #0080C0;">0.3</span> <span style="color: #000000;">b</span> <span style="color: #0000C0;">=</span> <span style="color: #0080C0;">0....

November 22, 2006 · len

Tapestry Hibernate app

Tapestry and Hibernate example application Updated: 24 Nov 2004 Document purpose: to show some simple steps in creating a web application using Tapestry & Hibernate. Application: dummy application containing just two tables (contact, user) Download: download the code (the libraries are missing to have a smaller archive, you need the ones mentioned in the jarlist file). Updates to this version (12 oct 03) Added HibernateGlobal method of using Hibernate Changed login method using callbacks mechanism Changed the ugly green with a more supportable blue Moved Hibernate config to hibernate....

November 19, 2006 · len

Tapestry Hibernate app (old)

Simple Tapestry Hibernate app (old) Update: this document is deprecated Created: 20 Nov 2003 Document purpose: to create a simple application in order to evaluate how easy is to use the two “things” together. Application: no purpose application containing just one table (contact) Download: download the code (the libraries are missing to have a smaller archive, you need the ones for hibernate and tapestry (including contrib)) Results: this is...

November 19, 2006 · len

Tapestry template application

Tapestry template application Created: 04-Mar-2004 Tool purpose: an utility to startup projects in a simple way avoiding all the copy-paste operations and initial frustration. This can also be used to begin a project that requires new tehnologies, allowing anyone to start with a working project that only requries modifications instead of trying to put everything together. Basic description: this is a very simple tool, it requires one jar file containing the project template, a property file and...

November 19, 2006 · len

MDA application approach

A simple Model driven architecture (MDA) approach Created: 04-Mar-2004 Document purpose: to create a simple application wireframe generator starting with an UML model. The approach: The tools: – UML based generator (the Andromda tool): it is a velocity based generator. Based on UML model elements including stereotypes and taggedvalues the result is generated. I had to write a number of templates for the mappings and the tapestry pages. – O/R...

November 19, 2006 · len

AndroMDA for Hibernate

Created: 09-Ian-2004 Document content: this is a simple, experimental cartridge for Andromda to generate hbm mappings for hibernate 2. It is far from complete but I find it quite usefull. Links: Hibernate(the DB persistence), AndroMDA, Nemesis IT(me) Model tagging: PrimaryKey: stereotype for an attribute tagging it a the primary key SQLType: taggedValue for an attribute generating an optional hibernate sql-type = … NotNull: taggedValue marking an attribute as not null seq: optional per table sequence name....

November 19, 2006 · len

Tapestry on Resin

Installing Tapestry applications in Resin Created: 07-May-2004 Disclaimer: I wrote this document after loosing time trying to deploy Tapestry applications with Resin. This document might not be complete it only contains steps I took to assure that my application worked as planed. This is not intended to be a complete solution for deploying Tapestry applications on resin and completions are welcome. application – The application was using Tapestry 3.0-beta4 and Hibernate...

November 19, 2006 · len

RMI over HTTP (2)

Update 04-dec-2004: This document has been deprecated. Check this basic example on how you can call a bean remotely through HTTP. Tested with JBoss 3.2.6. You can download it here (source). Follow this steps: modify build.properties with you jboss path and src/httpTest/remote/jndi.properties with your hostname copy jboss-common.jar, jboss-transaction.jar, jnpserver.jar, jboss-j2ee.jar, jboss.jar to the lib directory run ant deploy (will deploy the ear to you jboss) run ant test (requires jboss running) inspect the code, enjoy....

November 19, 2006 · len

RMI over HTTP (1)

Update 04-dec-2004: This document has been deprecated. Check this basic example on how you can call a bean remotely through HTTP. Tested with JBoss 3.2.6. You can download it here (source). Follow this steps: modify build.properties with you jboss path and src/httpTest/remote/jndi.properties with your hostname copy jboss-common.jar, jboss-transaction.jar, jnpserver.jar, jboss-j2ee.jar, jboss.jar to the lib directory run ant deploy (will deploy the ear to you jboss) run ant test (requires jboss running) inspect the code, enjoy....

November 19, 2006 · len

EJB Hibernate

Simple guide on using ejb’s with hibernate Last updated: 20-Nov-2003 Disclaimer: this document is mainly a compilation from different sources (see links) and the result of the effort to put everything together. Purpose: this is merely a step-by-step document ilustrating how to put everything together assuming that you know all the components. It is wrote in the purpose that it might spare someone the 2 days it took me to start everything....

November 19, 2006 · len