fpsc pk
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 10
XSkat 4.0
XSkat project is a Skat card game, playable against humans or the computer. more>>
XSkat project is a Skat card game, playable against humans or the computer.
XSkat lets you play the card game Skat as defined by the official international Skat Order. Up to 3 players may be simulated by the computer. You can play via an X display connection or via IRC.
Main features:
- Single- and multiplayer mode.
- Playing over LAN or IRC.
- Game lists and logs.
- Three types of scoring.
- English or German text.
- German or French suited cards.
- Selectable computer playing strength.
- Pre-definable card distributions.
- Variations: Ramsch, Bock, Kontra & Re, ...
Enhancements:
- Computer plays less predictable
- Passes the game a lot less often
- Can play the final winning trick
- Selectable playing strength
- Deals a Good Hand with -pk or F6,F6,F6
- LAN game can be started interactively
- Player/computer names changeable
- More card images
- Replay and Hand? forms improved
- Man page accessible from inside the game
<<lessXSkat lets you play the card game Skat as defined by the official international Skat Order. Up to 3 players may be simulated by the computer. You can play via an X display connection or via IRC.
Main features:
- Single- and multiplayer mode.
- Playing over LAN or IRC.
- Game lists and logs.
- Three types of scoring.
- English or German text.
- German or French suited cards.
- Selectable computer playing strength.
- Pre-definable card distributions.
- Variations: Ramsch, Bock, Kontra & Re, ...
Enhancements:
- Computer plays less predictable
- Passes the game a lot less often
- Can play the final winning trick
- Selectable playing strength
- Deals a Good Hand with -pk or F6,F6,F6
- LAN game can be started interactively
- Player/computer names changeable
- More card images
- Replay and Hand? forms improved
- Man page accessible from inside the game
Download (0.17MB)
Added: 2006-11-18 License: Freely Distributable Price:
1076 downloads
dvipng 1.9
dvipng makes PNG or GIF graphics from DVI files obtained from TeX and its relatives. more>>
This program makes PNG and/or GIF graphics from DVI files as obtained from TeX and its relatives.
If GIF support is enabled, GIF output is chosen by using the `dvigif binary or with the `--gif option.
dvipng is intended to produce anti-aliased screen-resolution images as fast as is possible. The target audience is people who need to generate and regenerate many images again and again. The primary target is the preview-latex (X)Emacs package, a package to preview formulas from within (X)Emacs. Yes, you get to see your formulas in the (X)Emacs buffer, see `http://www.gnu.org/software/auctex/#preview-latex.
Another example is WeBWorK, an internet-based method for delivering homework problems to students over the internet, giving students instant feedback as to whether or not their answers are correct, see `http://webwork.math.rochester.edu.
Other applications may also benefit, like web applications as latex2html and WYSIWYG editors like LyX.
Main features:
- Speed. It is a very fast bitmap-rendering code for DVI files. On a fairly low-end laptop, it takes less than a second to generate 150 one-formula images. This makes dvipng suitable for generating large amounts of images on-the-fly, as needed in preview-latex, WeBWorK and others.
- It does not read the postamble, so it can be started before TeX finishes. There is a -follow switch that makes dvipng wait at EOF for further output, unless it finds the POST marker that indicates the end of the DVI.
- Interactive query of options. dvipng can read options interactively through stdin, and all options are usable. It is even possible to change the input file through this interface.
- Supports PK, VF, PostScript Type1, and TrueType fonts, color specials and simple PostScript inclusion specials.
- and more...
<<lessIf GIF support is enabled, GIF output is chosen by using the `dvigif binary or with the `--gif option.
dvipng is intended to produce anti-aliased screen-resolution images as fast as is possible. The target audience is people who need to generate and regenerate many images again and again. The primary target is the preview-latex (X)Emacs package, a package to preview formulas from within (X)Emacs. Yes, you get to see your formulas in the (X)Emacs buffer, see `http://www.gnu.org/software/auctex/#preview-latex.
Another example is WeBWorK, an internet-based method for delivering homework problems to students over the internet, giving students instant feedback as to whether or not their answers are correct, see `http://webwork.math.rochester.edu.
Other applications may also benefit, like web applications as latex2html and WYSIWYG editors like LyX.
Main features:
- Speed. It is a very fast bitmap-rendering code for DVI files. On a fairly low-end laptop, it takes less than a second to generate 150 one-formula images. This makes dvipng suitable for generating large amounts of images on-the-fly, as needed in preview-latex, WeBWorK and others.
- It does not read the postamble, so it can be started before TeX finishes. There is a -follow switch that makes dvipng wait at EOF for further output, unless it finds the POST marker that indicates the end of the DVI.
- Interactive query of options. dvipng can read options interactively through stdin, and all options are usable. It is even possible to change the input file through this interface.
- Supports PK, VF, PostScript Type1, and TrueType fonts, color specials and simple PostScript inclusion specials.
- and more...
Download (0.15MB)
Added: 2006-11-11 License: GPL (GNU General Public License) Price:
1080 downloads
gbdfed 1.0
gbdfed lets you interactively create new bitmap font files or modify existing ones. more>>
gbdfed lets you interactively create new bitmap font files or modify existing ones. It allows editing multiple fonts and multiple glyphs.
gbdfed allows cut and paste operations between fonts and glyphs and editing font properties. The editor works natively with BDF fonts.
gbdfed can import:
Metafont PK/GF fonts.
Han Bitmap Font format (HBF) fonts.
Linux console (PSF, CP, and EGA/VGA) fonts.
Sun VF fonts.
OpenType (OTF & TTF) fonts (using Freetype 2).
A font from the X server.
gbdfed can export:
PSF2 Linux console fonts.
HEX fonts (see online help).
The editor also supports 2, 4, and 8 bits-per-pixel gray scale fonts for embedding in OTF fonts.
Main features:
- Multiple fonts can be loaded from the command line.
- Multiple fonts can be open at the same time.
- Cutting and pasting glyphs between fonts.
- Multiple glyph bitmap editors can be open at the same time.
- Cutting and pasting between glyph bitmap editors.
- Export of XBM files from glyph bitmap editors.
- Automatic correction of certain metrics when a font is loaded.
- Generation of XLFD font names for fonts without XLFD names.
- Update an XLFD font name from the font properties.
- Update the font properties from an XLFD font name.
- Font property editor.
- Font comment editor.
- Supports unencoded glyphs (ENCODING of -1).
- Display of glyph encodings in octal, decimal, or hex.
- Builtin on-line help.
- Imports PK/GF fonts.
- Imports HBF (Han Bitmap Font) fonts.
- Imports Linux console fonts (PSF, CP, and FNT).
- Imports Sun console fonts (vfont format).
- Imports fonts from the X server.
- Imports Windows FON/FNT fonts.
- Imports TrueType fonts and collections.
- Exports PSF fonts.
- Exports HEX fonts.
<<lessgbdfed allows cut and paste operations between fonts and glyphs and editing font properties. The editor works natively with BDF fonts.
gbdfed can import:
Metafont PK/GF fonts.
Han Bitmap Font format (HBF) fonts.
Linux console (PSF, CP, and EGA/VGA) fonts.
Sun VF fonts.
OpenType (OTF & TTF) fonts (using Freetype 2).
A font from the X server.
gbdfed can export:
PSF2 Linux console fonts.
HEX fonts (see online help).
The editor also supports 2, 4, and 8 bits-per-pixel gray scale fonts for embedding in OTF fonts.
Main features:
- Multiple fonts can be loaded from the command line.
- Multiple fonts can be open at the same time.
- Cutting and pasting glyphs between fonts.
- Multiple glyph bitmap editors can be open at the same time.
- Cutting and pasting between glyph bitmap editors.
- Export of XBM files from glyph bitmap editors.
- Automatic correction of certain metrics when a font is loaded.
- Generation of XLFD font names for fonts without XLFD names.
- Update an XLFD font name from the font properties.
- Update the font properties from an XLFD font name.
- Font property editor.
- Font comment editor.
- Supports unencoded glyphs (ENCODING of -1).
- Display of glyph encodings in octal, decimal, or hex.
- Builtin on-line help.
- Imports PK/GF fonts.
- Imports HBF (Han Bitmap Font) fonts.
- Imports Linux console fonts (PSF, CP, and FNT).
- Imports Sun console fonts (vfont format).
- Imports fonts from the X server.
- Imports Windows FON/FNT fonts.
- Imports TrueType fonts and collections.
- Exports PSF fonts.
- Exports HEX fonts.
Download (0.29MB)
Added: 2006-01-19 License: Free To Use But Restricted Price:
1376 downloads
Getfem 3.0
Getfem++ project focuses on the development of a generic and efficient C++ library for finite element methods. more>>
The Getfem++ project focuses on the development of a generic and efficient C++ library for finite element methods elementary computations. The goal is to provide a library allowing the computation of any elementary matrix (even for mixed finite element methods) on the largest class of methods and elements, and for arbitrary dimension (i.e. not only 2D and 3D problems).
Getfem offers a complete separation between integration methods (exact or approximated), geometric transformations (linear or not) and finite element methods of arbitrary degrees. It can really relieve a more integrated finite element code of technical difficulties of elementary computations.
Examples of available finite element method are : Pk on simplices in arbitrary degrees and dimensions, Qk on parallelepipeds, P1, P2 with bubble functions, Hermite elements, Argyris element, elements with hierarchic basis (for multigrid methods for instance), discontinuous Pk or Qk, XFem, vectorial elements (RT0, Nedelec) ...
The addition of a new finite element method is straightforward. Its description on the reference element must be provided (in most of the cases, this is the description of the basis functions, and nothing more). Extensions are provided for Hermite elements, piecewise polynomial, non-polynomial and vectorial elements, XFem.
The library also includes the usual tools for finite elements such as assembly procedures for classical PDEs, interpolation methods, computation of norms, mesh operations (including automatic refinement), boundary conditions, post-processing tools such as extraction of slices from a mesh ...
Getfem++ can be used to build very general finite elements codes, where the finite elements, integration methods, dimension of the meshes, are just some parameters that can be changed very easily, thus allowing a large spectrum of experimentations. Numerous examples are provided (see the screenshot section).
Getfem++ has no meshing capabilities (apart regular meshes), hence it is necessary to import meshes. Imports formats currently known by getfem are GiD , GmSH and emc2 mesh files. However, given a mesh, it is possible to refine it automatically.
Enhancements:
- The getfem and gmm header files have been moved into their respective subdirectories.
- The getfem interface (Python and MATLAB) is now included in the getfem distribution.
- Some C1 composite elements have been added (triangles and quadrilaterals).
- Support for Levelset functions has been improved.
<<lessGetfem offers a complete separation between integration methods (exact or approximated), geometric transformations (linear or not) and finite element methods of arbitrary degrees. It can really relieve a more integrated finite element code of technical difficulties of elementary computations.
Examples of available finite element method are : Pk on simplices in arbitrary degrees and dimensions, Qk on parallelepipeds, P1, P2 with bubble functions, Hermite elements, Argyris element, elements with hierarchic basis (for multigrid methods for instance), discontinuous Pk or Qk, XFem, vectorial elements (RT0, Nedelec) ...
The addition of a new finite element method is straightforward. Its description on the reference element must be provided (in most of the cases, this is the description of the basis functions, and nothing more). Extensions are provided for Hermite elements, piecewise polynomial, non-polynomial and vectorial elements, XFem.
The library also includes the usual tools for finite elements such as assembly procedures for classical PDEs, interpolation methods, computation of norms, mesh operations (including automatic refinement), boundary conditions, post-processing tools such as extraction of slices from a mesh ...
Getfem++ can be used to build very general finite elements codes, where the finite elements, integration methods, dimension of the meshes, are just some parameters that can be changed very easily, thus allowing a large spectrum of experimentations. Numerous examples are provided (see the screenshot section).
Getfem++ has no meshing capabilities (apart regular meshes), hence it is necessary to import meshes. Imports formats currently known by getfem are GiD , GmSH and emc2 mesh files. However, given a mesh, it is possible to refine it automatically.
Enhancements:
- The getfem and gmm header files have been moved into their respective subdirectories.
- The getfem interface (Python and MATLAB) is now included in the getfem distribution.
- Some C1 composite elements have been added (triangles and quadrilaterals).
- Support for Levelset functions has been improved.
Download (4.3MB)
Added: 2007-06-27 License: LGPL (GNU Lesser General Public License) Price:
852 downloads
yadia2sql 0.9.5
Yet Another dia2sql is a tool that generates SQL statements from Dia XML files. more>>
Yet Another dia2sql is a tool that generates SQL statements from Dia XML files.
yadia2sql is intended to process diagrams that are compatible with dia2sql.php to some point, and provide features that would allow generation of SQL code for different database systems from single Dia source.
Usage:
yadia2sql.py [OPTIONS...]
Options:
-h | --help | -?
Prints short usage and copyright information.
-i filename | --input filename
Specify input file (must be an uncompressed Dia XML file).
-o filename | --output filename
Specify output file.
-p "text" | --pk-append "text"
Append text text to primary key definitions.
-f "text" | --fk-append "text"
Append text text to foreign key definitions.
-t "text" | --tbl-append "text"
Append text text to table definitions.
-m filename | --map-file filename
Specify substitution map file.
-d database | --database database
Specify database system (currently only mysql is supported).
If no input/output file is specified, stdin/stdout is used.
<<lessyadia2sql is intended to process diagrams that are compatible with dia2sql.php to some point, and provide features that would allow generation of SQL code for different database systems from single Dia source.
Usage:
yadia2sql.py [OPTIONS...]
Options:
-h | --help | -?
Prints short usage and copyright information.
-i filename | --input filename
Specify input file (must be an uncompressed Dia XML file).
-o filename | --output filename
Specify output file.
-p "text" | --pk-append "text"
Append text text to primary key definitions.
-f "text" | --fk-append "text"
Append text text to foreign key definitions.
-t "text" | --tbl-append "text"
Append text text to table definitions.
-m filename | --map-file filename
Specify substitution map file.
-d database | --database database
Specify database system (currently only mysql is supported).
If no input/output file is specified, stdin/stdout is used.
Download (0.011MB)
Added: 2006-12-24 License: GPL (GNU General Public License) Price:
1034 downloads
DBIx::Class::LibXMLdoc 0.03
DBIx::Class::LibXMLdoc is a Perl module to create an adjunct Doc accessor of a columns data. more>>
DBIx::Class::LibXMLdoc is a Perl module to create an adjunct "Doc" accessor of a columns data which is automatically parsed into a LibXML documentElement (alpha-software).
SYNOPSIS
package My::DB::thingy;
__PACKAGE__->load_components(qw/ PK::Auto LibXMLdoc Core /);
__PACKAGE__->table(thingy);
__PACKAGE__->add_columns(qw/ id title body created owner whatever /);
__PACKAGE__->set_primary_key(id);
__PACKAGE__->libXMLdoc_columns(qw/ body /);
package main;
use My::DB;
my $schema = My::DB->connect(...);
my $thingy = $schema->resultset("thingy")->find(153);
print $thingy->bodyDoc->toString, "nn";
print $thingy->bodyDoc->textContent, "n";
This DBIx::Class component does not alter your data in any way. It takes column names to get the value from the column, parse it into XML with LibXML and make the documentElement object available via an autogenerated accessor named by affixing the column with "Doc."
The XML parsing is on demand so it doesnt waste time doing it to data you dont use or by doing it more than once to data that is unchanged.
A wrapper XML tag for the mini-document is auto-generated from the table + column name. So-
my $xhmlt =<<less
SYNOPSIS
package My::DB::thingy;
__PACKAGE__->load_components(qw/ PK::Auto LibXMLdoc Core /);
__PACKAGE__->table(thingy);
__PACKAGE__->add_columns(qw/ id title body created owner whatever /);
__PACKAGE__->set_primary_key(id);
__PACKAGE__->libXMLdoc_columns(qw/ body /);
package main;
use My::DB;
my $schema = My::DB->connect(...);
my $thingy = $schema->resultset("thingy")->find(153);
print $thingy->bodyDoc->toString, "nn";
print $thingy->bodyDoc->textContent, "n";
This DBIx::Class component does not alter your data in any way. It takes column names to get the value from the column, parse it into XML with LibXML and make the documentElement object available via an autogenerated accessor named by affixing the column with "Doc."
The XML parsing is on demand so it doesnt waste time doing it to data you dont use or by doing it more than once to data that is unchanged.
A wrapper XML tag for the mini-document is auto-generated from the table + column name. So-
my $xhmlt =<<less
Download (0.005MB)
Added: 2007-01-17 License: Perl Artistic License Price:
1010 downloads
Smart Sign 0.0.1
This project currently provides a set of modules that enable the use of smartcard based authentication. more>>
This project provides software suitable for smartcard based digital signature and both local and remote authentication security services. It can also be used to integrate smart card technology into a working Certification Authority that issues public key certificates for the users through the web.
For example, we provide a module that is known to work with the OpenCA Certification Authority for on-board keypair generation.
Our software works with different kinds of smart cards. Actually we have modules that work with Schlumberger Cyberflex Access 16K and Cryptoflex 16K smart cards and any Java Card 2.1.1 compliant smart card (i.e. both Schlumberger Cyberflex Access 32K and Gemplus GemXpresso 211/PK).
Our software has been developed and tested with Towitokos CHIPDRIVE and Schlumbergers Reflex 72 card readers. It is known to work fine with Gemplus GCR410, GCR400FD, GemPC and Microsystems SCM readers too.
Here are some of its functionalities:
automatic storing of private key and public certificate on the smartcard during the interaction with OpenCA for the "certification process"
use of smartcard to sign e-mail and e-news from within Netscape Messenger
use of smartcard to sign/verify every kind of file with a simple shell command
smartcard-based authentication of local users to a system by means of a public key authentication protocol
smartcard-based authentication of remote users to a system by means of a smart card enabled OpenSSH
interactive command line browsing and invoking of all supported card commands for Cyberflex cards (ISO 7816 compliant and not)
<<lessFor example, we provide a module that is known to work with the OpenCA Certification Authority for on-board keypair generation.
Our software works with different kinds of smart cards. Actually we have modules that work with Schlumberger Cyberflex Access 16K and Cryptoflex 16K smart cards and any Java Card 2.1.1 compliant smart card (i.e. both Schlumberger Cyberflex Access 32K and Gemplus GemXpresso 211/PK).
Our software has been developed and tested with Towitokos CHIPDRIVE and Schlumbergers Reflex 72 card readers. It is known to work fine with Gemplus GCR410, GCR400FD, GemPC and Microsystems SCM readers too.
Here are some of its functionalities:
automatic storing of private key and public certificate on the smartcard during the interaction with OpenCA for the "certification process"
use of smartcard to sign e-mail and e-news from within Netscape Messenger
use of smartcard to sign/verify every kind of file with a simple shell command
smartcard-based authentication of local users to a system by means of a public key authentication protocol
smartcard-based authentication of remote users to a system by means of a smart card enabled OpenSSH
interactive command line browsing and invoking of all supported card commands for Cyberflex cards (ISO 7816 compliant and not)
Download (2.5MB)
Added: 2006-07-13 License: GPL (GNU General Public License) Price:
1252 downloads
JavaPK for Desktop 2.5
JavaPK for Desktop (JPKD) is a Clinical Pharmacokinetic (CPK) Services (or Therapeutic Drug Monitoring, TDM). more>>
JavaPK for Desktop (JPKD) is a Clinical Pharmacokinetic (CPK) Services (or Therapeutic Drug Monitoring, TDM).
It not only inherits all functionalities of JavaPK for Mobile Devices, but also has a built- in algorithm of users defined Bayesian model for individualized pharmacokinetic parameter estimation (UDBM) for batch input data.
Users can define their own pharmacokinetic prediction models with population PK parameters and then use the defined model to solve batch prediction data or applied the defined model to therapeutic drug monitoring (TDM).
JPKD is created for your own personal uses and testing purposes. JPKD shall be used as a guide or a decision support tool only. Medical decisions should NOT be solely based on the results of this program. Although this program has been tested thoroughly, the accuracy of the information cannot be guaranteed. Once you use JPKD, you have automatically agreed with this disclaimer.
Main features:
- Sawchuk-Zaske (aminoglycosides & vancomycin) and Bayesian method for PK parameter estimation
- 15 built-in drugs for TDM (see the below drug lists)
- functions for users defined Bayesian estimation drug models
- portable function for users defined models
- a built-in spread sheet for batch PK parameter estimation & input data manipulation
- application user-defined Bayesian model to TDM
- multiple desktop platforms (WinXP/NT, Mac OS X, Linux PC) supported
Built-in drug lists
- Amikacin
- Carbamazepine
- Cyclosporin
- Digoxin
- Enfuvirtide
- Everolimus
- Gentamicin
- Indinavir
- Lithium
- Phenytoin
- Ritonavir
- Tacrolimus
- Theophylline
- Tobramycin
- Vancomycin
<<lessIt not only inherits all functionalities of JavaPK for Mobile Devices, but also has a built- in algorithm of users defined Bayesian model for individualized pharmacokinetic parameter estimation (UDBM) for batch input data.
Users can define their own pharmacokinetic prediction models with population PK parameters and then use the defined model to solve batch prediction data or applied the defined model to therapeutic drug monitoring (TDM).
JPKD is created for your own personal uses and testing purposes. JPKD shall be used as a guide or a decision support tool only. Medical decisions should NOT be solely based on the results of this program. Although this program has been tested thoroughly, the accuracy of the information cannot be guaranteed. Once you use JPKD, you have automatically agreed with this disclaimer.
Main features:
- Sawchuk-Zaske (aminoglycosides & vancomycin) and Bayesian method for PK parameter estimation
- 15 built-in drugs for TDM (see the below drug lists)
- functions for users defined Bayesian estimation drug models
- portable function for users defined models
- a built-in spread sheet for batch PK parameter estimation & input data manipulation
- application user-defined Bayesian model to TDM
- multiple desktop platforms (WinXP/NT, Mac OS X, Linux PC) supported
Built-in drug lists
- Amikacin
- Carbamazepine
- Cyclosporin
- Digoxin
- Enfuvirtide
- Everolimus
- Gentamicin
- Indinavir
- Lithium
- Phenytoin
- Ritonavir
- Tacrolimus
- Theophylline
- Tobramycin
- Vancomycin
Download (51.6MB)
Added: 2006-10-09 License: Freeware Price:
1112 downloads
DBIx::Class::FormTools 0.000004
DBIx::Class::FormTools is a utility module for building forms with multiple related DBIx::Class objects. more>>
DBIx::Class::FormTools is a utility module for building forms with multiple related DBIx::Class objects.
SYNOPSIS
In the examples I use 3 objects, a Film, an Actor and a Role. Role is a many to many relation between Film and Actor.
package MySchema;
use base DBIx::Class::Schema;
__PACKAGE__->load_classes(qw[
Film
Actor
Role
]);
package MySchema::Film;
__PACKAGE__->table(films);
__PACKAGE__->add_columns(qw[
id
title
]);
__PACKAGE__->set_primary_key(id);
__PACKAGE__->has_many(roles => MySchema::Role, film_id);
package MySchema::Actor;
__PACKAGE__->table(films);
__PACKAGE__->add_columns(qw[
id
name
]);
__PACKAGE__->set_primary_key(id);
__PACKAGE__->has_many(roles => MySchema::Role, actor_id);
package MySchema::Role;
__PACKAGE__->table(roles);
__PACKAGE__->add_columns(qw[
film_id
actor_id
]);
__PACKAGE__->set_primary_key(qw[
film_id
actor_id
]);
__PACKAGE__->belongs_to(film_id => MySchema::Film);
__PACKAGE__->belongs_to(actor_id => MySchema::Actor);
In your Model class
use base qw/DBIx::Class/;
__PACKAGE__->load_components(qw/PK::Auto::Pg Core FormTools/);
In your view - HTML::Mason example
< %init >
my $film = $schema->resultset(Film)->find(42);
my $actor = $schema->resultset(Actor)->find(24);
< /%init >
< form >
< input
name="< % $film->form_fieldname(title, o1) => Title % >"
type="text"
value="< % $film->title % >"
/ >
< input
name="< % $film->form_fieldname(length, o1) % >"
type="text"
value="< % $film->length % >"
/ >
< input
name="< % $film->form_fieldname(comment, o1) % >"
type="text"
value="< % $film->comment % >"
/ >
< input
name="< % $actor->form_fieldname(name, o2) % >"
type="text"
value="< % $actor->name % >"
/ >
In your controller (or cool helper module, used in your controller)
my @objects = DBIx::Class::FormTools->formdata_to_objects($querystring);
foreach my $object ( @objects ) {
# Assert and Manupulate $object as you like
$object->insert_or_update;
}
<<lessSYNOPSIS
In the examples I use 3 objects, a Film, an Actor and a Role. Role is a many to many relation between Film and Actor.
package MySchema;
use base DBIx::Class::Schema;
__PACKAGE__->load_classes(qw[
Film
Actor
Role
]);
package MySchema::Film;
__PACKAGE__->table(films);
__PACKAGE__->add_columns(qw[
id
title
]);
__PACKAGE__->set_primary_key(id);
__PACKAGE__->has_many(roles => MySchema::Role, film_id);
package MySchema::Actor;
__PACKAGE__->table(films);
__PACKAGE__->add_columns(qw[
id
name
]);
__PACKAGE__->set_primary_key(id);
__PACKAGE__->has_many(roles => MySchema::Role, actor_id);
package MySchema::Role;
__PACKAGE__->table(roles);
__PACKAGE__->add_columns(qw[
film_id
actor_id
]);
__PACKAGE__->set_primary_key(qw[
film_id
actor_id
]);
__PACKAGE__->belongs_to(film_id => MySchema::Film);
__PACKAGE__->belongs_to(actor_id => MySchema::Actor);
In your Model class
use base qw/DBIx::Class/;
__PACKAGE__->load_components(qw/PK::Auto::Pg Core FormTools/);
In your view - HTML::Mason example
< %init >
my $film = $schema->resultset(Film)->find(42);
my $actor = $schema->resultset(Actor)->find(24);
< /%init >
< form >
< input
name="< % $film->form_fieldname(title, o1) => Title % >"
type="text"
value="< % $film->title % >"
/ >
< input
name="< % $film->form_fieldname(length, o1) % >"
type="text"
value="< % $film->length % >"
/ >
< input
name="< % $film->form_fieldname(comment, o1) % >"
type="text"
value="< % $film->comment % >"
/ >
< input
name="< % $actor->form_fieldname(name, o2) % >"
type="text"
value="< % $actor->name % >"
/ >
In your controller (or cool helper module, used in your controller)
my @objects = DBIx::Class::FormTools->formdata_to_objects($querystring);
foreach my $object ( @objects ) {
# Assert and Manupulate $object as you like
$object->insert_or_update;
}
Download (0.009MB)
Added: 2006-08-31 License: Perl Artistic License Price:
1149 downloads
XML::RDB 1.1
XML::RDB is a Perl extension to convert XML files into RDB schemas and populate, and unpopulate them. more>>
XML::RDB is a Perl extension to convert XML files into RDB schemas and populate, and unpopulate them. Works with XML Schemas too.
SYNOPSIS
use XML::RDB;
# Give our DBs DSN & username/password
my $rdb = new XML::RDB(config_file => db_config);
# Generate RDB Schema
$rdb->make_tables("my_xml_file.xml", "db_schema_output_file");
#
# Now import the generated db_schema_output_file into your DB
# (see t/1.t for an automated way to do this)
#
# Now populate our RDB
my($root_table_name, $primary_key) =
$rdb->populate_tables("my_xml_file.xml");
#
# Your XML file is now in your RDB!!!! Play as desired & when ready:
#
$rdb->unpopulate_tables($root_table_name, $primary_key,
new_xml_file.xml);
#
# Thats all fine & dandy but what if youve got an XML Schema???
#
# the first 2 calls are the same:
$rdb->make_tables("my_xsd_file.xsd", "db_schema_output_file");
#
# dont forget to put db_schema_output_file into your DB!
# then:
my($root_table_name, $primary_key) =
$rdb->populate_tables("my_xsd_file.xsd");
# note we only need the primary key for this next call
$rdb->unpopulate_schema($primary_key, fully_formed.xml);
#
# Now youve got fully_formed.xml - pass THAT to make_tables
# & yer golden:
#
$rdb->make_tables("fully_formed.xml", "REAL_RDB_schema");
#
# Now insert REAL_RDB_schema into yer DB & now any XML documents
# conforming to your original XML Schema (my_xsd_file.xsd) can be
# imported into your schema:
my ($rt, $pk) =
$rdb->populate_tables("xml_doc_conforming_to_my_xsd_file.xml");
# See the README file for a LOT more information...
ABSTRACT
XML::RDB - Perl extension to convert XML files into RDB schemas and populate, and unpopulate them. Works with XML Schemas too. Analyzes relationships within either an XML file or an XML Schema to create RDB tables to hold that document (or any XML document that conforms to the XML Schema).
<<lessSYNOPSIS
use XML::RDB;
# Give our DBs DSN & username/password
my $rdb = new XML::RDB(config_file => db_config);
# Generate RDB Schema
$rdb->make_tables("my_xml_file.xml", "db_schema_output_file");
#
# Now import the generated db_schema_output_file into your DB
# (see t/1.t for an automated way to do this)
#
# Now populate our RDB
my($root_table_name, $primary_key) =
$rdb->populate_tables("my_xml_file.xml");
#
# Your XML file is now in your RDB!!!! Play as desired & when ready:
#
$rdb->unpopulate_tables($root_table_name, $primary_key,
new_xml_file.xml);
#
# Thats all fine & dandy but what if youve got an XML Schema???
#
# the first 2 calls are the same:
$rdb->make_tables("my_xsd_file.xsd", "db_schema_output_file");
#
# dont forget to put db_schema_output_file into your DB!
# then:
my($root_table_name, $primary_key) =
$rdb->populate_tables("my_xsd_file.xsd");
# note we only need the primary key for this next call
$rdb->unpopulate_schema($primary_key, fully_formed.xml);
#
# Now youve got fully_formed.xml - pass THAT to make_tables
# & yer golden:
#
$rdb->make_tables("fully_formed.xml", "REAL_RDB_schema");
#
# Now insert REAL_RDB_schema into yer DB & now any XML documents
# conforming to your original XML Schema (my_xsd_file.xsd) can be
# imported into your schema:
my ($rt, $pk) =
$rdb->populate_tables("xml_doc_conforming_to_my_xsd_file.xml");
# See the README file for a LOT more information...
ABSTRACT
XML::RDB - Perl extension to convert XML files into RDB schemas and populate, and unpopulate them. Works with XML Schemas too. Analyzes relationships within either an XML file or an XML Schema to create RDB tables to hold that document (or any XML document that conforms to the XML Schema).
Download (0.033MB)
Added: 2006-08-14 License: Perl Artistic License Price:
1166 downloads
Secleted [ 0 ] software to compare
- Page: 1 of 1
- 1
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above fpsc pk search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed