Zwartberg News |
Services Products Contact us |
Karoo Project Docs Index |
|
|||
Zwartberg Research & Development NewsMonday March 29th, 2010A new community-service free bulletin board for information about GREEN alternatives has been created using the Karoo Project: http://green.zwartberg.com/ Monday February 1st, 2010The Karoo Project has gained a widget set, to make it even easier to create web applications. Following are some live examples:
The "source code" for these widgets is very simple, e.g. to create the pulldown currency list in the above example:
<div id="currency_list">
<div style="visibility: hidden;">
<div><img src="images/ZAR.png" style="width:100px;height:35px;border:0px;" alt="ZAR"/></div>
<div><img src="images/USD.png" style="width:100px;height:35px;border:0px;" alt="USD"/></div>
<div><img src="images/EUR.png" style="width:100px;height:35px;border:0px;" alt="EUR"/></div>
<div><img src="images/GBP.png" style="width:100px;height:35px;border:0px;" alt="GBP"/></div>
</div>
<!-- widget list selected:0; action:listAction;-->
</div>
<!-- widget menuitem action:menuAction; -->
This widget set is also open source (LGPL) and you are free to use it. Please read more here. Thursday November 12th 2009A new version of the "surf" application allows you to create a dynamic website via "conduit", without writing a single line of code. Just an XML configuation file, and the XHTML page. Surf is a rock which is also a web server. Conduit is a mechanism for creating dynamic web content directly from a database. This works in conjunction with "cave", which provides access to the PostgreSQL relational database. Cave provides access to database services, which are defined in an XML configuration file. The Surf conduit can reference these services and create dynamic web content. E.g. Following is a simple database service definition for cave:
<database name="KarooDB" username="bmodra" password=""
connect_timeout="1" connection-pool-size="3"/>
<service name="list-stock" id="list-stock">
<sql>
select owner,type,value,count,id from
stock where owner=<parameter name=
"owner" type="quoted-string"/>;
</sql>
</service>
Following is the corresponding html:
<table>
<tbody>
<tr>
<th>owner</th>
<th>type</th>
<th>value</th>
<th>count</th>
<th>id</th>
</tr>
<tr id="test">
<!-- conduit rock-name:cave; service-id:list-stock; -->
<td><!-- column owner --></td>
<td><!-- column type --></td>
<td><!-- column value --></td>
<td><!-- column count --></td>
<td><!-- column id --></td>
</tr>
</tbody>
</table>
... which when served by surf, will produce something like this:
This is a very simplistic example, but the creation of rich html is no more complex than it is to create a rich website, and the dynamic content can be added by the correct placement of the conduit comments, as in the example above. This system allows the service behind the scene to be a super computer.... and its just as simple as shown in this example, with not one line of code being written. Its all xml and xhtml. More... |
Documents
Other Links:
WEB Design
Large services (like an internet banking system for example), which can grow and grow and grow, to absorb the load as time goes on... and which don't suffer so much from unexplained periods of being offline, or "freezing up".
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Zwartberg Reseach & Development is a registered trading name of Open Source Software Consulting CC. |