Main > Free Download Search >

Free hello world software for linux

hello world

Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 1057
Apache Hello World Benchmarks 1.04

Apache Hello World Benchmarks 1.04


Apache Hello World Benchmarks is a tool that generates benchmarks of Apache Web frameworks. more>>
Apache Hello World Benchmarks is a benchmarking tool that seeks to give a sense of Web application execution speed on various software platforms running under the Apache Web server.

Benchmarks can vary greatly from system to system, so this tool allows one to get numbers on ones own platform. Applications tested include mod_perl, mod_php, Tomcat, and Apache::ASP, with over 62 benchmarks in all.

Benchmark Descriptions:

Hello World 2000 ( 2000 )

The 2000 benchmark tries to emulate a heavy web page template. It is typically 3K+ in program length that results in output of over 20K. While this does not properly reflect any web applications speed of back end business logic execution, it does show a template heavy request with some application logic and loops, some HTTP parameter passing, and much variable interpolation in the output stream.

Hello World ( hello )

The Hello World benchmark merely prints "Hello World" and as such is a good test for the fastest a web page could ever run under the given web application environment. For historical reasons, the benchmarks are written to print "Hello" and then add to the output World as a raw string.

HelloDB ( hellodb )

The HelloDB benchmark merely queries the database for the string "Hello World", and as such represents the fastest a web application can process a request when talking to a database. This is a new benchmark with only MySQL supported for now, but more environments and databases will be added over time.

XSLT Big ( xsltbig )

This benchmark hits an XSLT rendering engine hard with 18K+ XML being transformed with a 1K+ XSL stylesheet for over 20K output. Though XSLT is generally slow, many applications will use XSLT caching to speed up response times. This benchmark should emulate well a real world XSLT usage scenario, with perhaps the XSL itself being too trivial.

Hello XSLT ( xslt )

Like the Hello World benchmark, the XSLT version just outputs "Hello World", or the closest we can get when doing XSLT, so it too demonstrates the fastest an application can render a page with XSLT. Benchmarks should be similarly configured between xsltbig and xslt, so a slow caching layer that benefits the former might slow down this benchmark.
<<less
Download (0.037MB)
Added: 2005-04-12 License: Perl Artistic License Price:
1657 downloads
WWW::Mechanize::Plugin::HelloWorld 1.01

WWW::Mechanize::Plugin::HelloWorld 1.01


WWW::Mechanize::Plugin::HelloWorld is a sample WWW::Mechanize::Pluggable plugin. more>>
WWW::Mechanize::Plugin::HelloWorld is a sample WWW::Mechanize::Pluggable plugin.

SYNOPSIS

use WWW::Mechanize::Pluggable;
# This module is automatically loaded into WWW::Mechanize::Pluggable

This module shows how to mess with the WWW::Mechanize object contained within the WWW::Mechanize::Pluggable object.
Further refinements are left to the reader. Note that the fields in the WWW::Mechanize::Pluggable object are also available to the plugins.
USAGE ^
my $mech = new WWW::Mechanize::Pluggable;
$mech->hello_world;
# $mech->content now eq hello world

<<less
Download (0.044MB)
Added: 2006-12-21 License: Perl Artistic License Price:
1037 downloads
HTML::Simple 0.4

HTML::Simple 0.4


HTML::Simple is a simple, dependency free module for generating HTML (and XML). more>>
HTML::Simple is a simple, dependency free module for generating HTML (and XML).

SYNOPSIS

Note: It turns out that TOMC owns the HTML::Simple namespace so Ive moved development of this module to HTML::Tiny. Please use HTML::Tiny in preference to this module.

use HTML::Simple;

my $h = HTML::Simple->new;

# Generate a simple page
print $h->html(
[
$h->head( $h->title( Sample page ) ),
$h->body(
[
$h->h1( { class => main }, Sample page ),
$h->p( Hello, World, { class => detail }, Second para )
]
)
]
);

# Outputs
< html>
< head>
< title>Sample page< /title>
< /head>
< body>
< h1 class="main">Sample page< /h1>
< p>Hello, World< /p>
< p class="detail">Second para< /p>
< /body>
< /html>

<<less
Download (0.010MB)
Added: 2007-07-04 License: Perl Artistic License Price:
843 downloads
Shut The Box 0.4

Shut The Box 0.4


Shut The Box is a simple diversion written in C and GTK+. more>>
Shut The Box project is a simple diversion written in C and GTK+. The object is simple: roll the dice and click the tiles that sum up to that dice roll until there are no more tiles to click.

Shut The Box is based off of those little wooden puzzles with dice and tiles. My first exposure was playing this as a BBS Door on a BBS my friend ran.

The concept was simple enough so I tried writing it for my own Atari BBS (with the help of another more experienced SysOp).

After I took the BBS offline, the game concept grew from an idea into a sort of “Hello World” application I’d write in order to become more familiar with a language. Hence, this is my “Hello World” for GTK+, although I have several other applications brewing in GTK+.

<<less
Download (0.041MB)
Added: 2006-12-26 License: GPL (GNU General Public License) Price:
1042 downloads
Net::Blogger 1.02

Net::Blogger 1.02


Net::Blogger is an OOP-ish interface for accessing a weblog via the Blogger XML-RPC API. more>>
Net::Blogger is an OOP-ish interface for accessing a weblog via the Blogger XML-RPC API.

SYNOPSIS

Top
use Net::Blogger;
my $b = Net::Blogger->new(appkey=>APPKEY);

$b->BlogId(BLOGID);
$b->Username(USERNAME);
$b->Password(PASSWORD);

$b->BlogId($b->GetBlogId(blogname=>superfoobar));

# Get recent posts

my ($ok,@p) = $b->getRecentPosts(numposts=>20);

if (! $ok) {
croak $b->LastError();
}

map { print "t $_->{postid}n"; } @p;

# Post from a file

my ($ok,@p) = $b->PostFromFile(file=>"/usr/blogger-test");

if (! $ok) {
croak $b->LastError();
}

# Deleting posts

map {
$b->deletePost(postid=>"$_") || croak $b->LastError();
} @p;

# Getting and setting templates

my $t = $b->getTemplate(type => main);
$b->setTemplate(type=>main,template=>$t) || croak $b->LastError();

# New post

my $txt = "hello world.";
my $id = $b->newPost(postbody=>$txt) || croak $b->LastError();

# Get post

my $post = $b->getPost($id) || croak $b->LastError();
print "Text for last post was $post->{content}n";

Blogger.pm provides an OOP-ish interface for accessing a weblog via the Blogger XML-RPC API.

<<less
Download (0.024MB)
Added: 2006-09-28 License: Perl Artistic License Price:
1123 downloads
CeeSpot 0.1

CeeSpot 0.1


CeeSpot is a command interpreter that compiles and runs script source. more>>
CeeSpot, or "c." is a program run as a Linux or UNIX command interpreter using the #!/usr/bin/ceespot or #!/bin/c. syntax.

After eating (and interpreting) any # comments at the beginning of the file, it compiles the rest and executes the result.

This lets you use a compiled language as a script file. This is plausible now that machines and compilers are fast enough you dont notice a subsecond compile and link.

Some Exemples

::::::::::::::
hello-c
::::::::::::::

#!/usr/bin/ceespot

#include < stdio.h >

int main(int argc, char **argv)
{
printf("hello, worldn");
return 0;
}

::::::::::::::
hello-cxx
::::::::::::::

#!/usr/bin/ceespot
# CC = g++


#include < iostream >
using namespace std;

int main( int argc, char **argv )
{
cout
#include < X11/StringDefs.h >
#include < X11/Xaw/Label.h >

main(int argc,char **argv)
{
XtAppContext app_context;
Widget toplevel,hello;

toplevel = XtVaAppInitialize(&app_context,"XHello",NULL,0,
&argc,argv,NULL,NULL);
hello = XtVaCreateManagedWidget("Hello World!",labelWidgetClass,
toplevel,(void*)0);

XtRealizeWidget(toplevel);

XtAppMainLoop(app_context);
return 0;
}
<<less
Download (0.012MB)
Added: 2005-04-14 License: BSD License Price:
1653 downloads
Python config module 0.3.6

Python config module 0.3.6


Python config module is a hierarchical, easy-to-use, powerful configuration module for Python. more>>
Python config module allows a hierarchical configuration scheme with support for mappings and sequences, cross-references between one part of the configuration and another, the ability to flexibly access real Python objects without full-blown eval(), an include facility, simple expression evaluation, and the ability to change, save, cascade, and merge configurations.
It interfaces easily with environment variables and command line options. Python config module has been developed on Python 2.3, but should work on version 2.2 or greater.
Usage
The simplest scenario is, of course, "Hello, world". Lets look at a very simple configuration file simple.cfg where a message to be printed is configured:
# The message to print (this is a comment)
message: Hello, world!
and the program which uses it:
from config import Config
# You can pass any file-like object; if it has a name attribute,
# that name is used when file format error messages are printed
f = file(simple.cfg)
cfg = Config(f)
print cfg.message
which results in the expected:
Hello, world!
A configuration file is, at the top level, a list of key-value pairs. Each value, as well see later, can be a sequence or a mapping, and these can be nested without any practical limit.
In addition to attribute access (cfg.message in the example above), you can also access a value in the configuration using the getByPath method of a configuration: cfg.getByPath(message) would be equivalent. The parameter passed to getByPath is the path of the required value. The getByPath method is useful for when the path is variable. It could even be read from a configuration.
There is also a get method which acts like the dictionary method of the same name - you can pass a default value which is returned if the value is not found in the configuration. The get method works with dictionary keys or attribute names, rather than paths. Hence, you may call cfg.getByPath(a.b) which is equivalent to cfg.a.b, or you can call cfg.a.get(b, 1234) which will return cfg.a.b if it is defined, and 1234 otherwise.
Enhancements:
- This release makes classes derive from an object (previously, they were old-style classes).
- ConfigMerger has been changed to use a more flexible merge strategy.
- Multi-line strings (using """ or ) are now supported.
- A typo involving raising a ConfigError was fixed.
<<less
Download (0.027MB)
Added: 2006-03-10 License: Freely Distributable Price:
1326 downloads
Hecl Programming Language 20060803

Hecl Programming Language 20060803


Hecl Programming Language is a simple, flexible scripting language for Java. more>>
The Hecl Programming Language is a high-level scripting language implemented in Java. Hecl Programming Language is intended to be small, extensible, extremely flexible, and easy to learn and use.

Hecl is intended as a complement to the Java programming language, not a replacement. As such, it tries to do well what Java doesnt, and leaves those tasks to Java for which it is best suited.

Hecl aims to be a very immediate language - you can pick it up and start doing useful things with it quickly. It is also meant to be easy to learn. Where Java is verbose and rigid, Hecl is forgiving and quick to write. For instance, System.out.println("Hello World"); vs puts "Hello World" - 41 keystrokes (shifted letters count double) versus 22. Hecl is built to "scale down".

This makes Hecl ideal for large applications written in Java that would like to provide a user friendly scripting interface, rather than, say, a clunky XML based configuration system.

Hecl is also a small language with a minimal core. The idea is to provide only whats necessary in the language itself, and as needed, add in extensions for specific tasks.

Core Hecl is small enough to run on my Nokia 3100 cell phone as a J2ME application, presenting the interesting possibility of writing scripts, or at some point, maybe even scripting entire applications, for devices running embedded Java. As an example, you can try this MIDlet: Hecl.jar Hecl.jad
<<less
Download (2.6MB)
Added: 2007-08-05 License: The Apache License 2.0 Price:
810 downloads
Escher 0.2.3

Escher 0.2.3


Escher is a Java X11 library. more>>
Escher is a Java X11 library.

Escher is a collection of libraries for X Window System written purely in Java.

It consists of an X11 protocol implementation (similar to Xlib for C/C++), and its extensions including GLX, and the OpenGL rendering protocol.

How To Run

Install JDK 1.3 (http://www.ibm.com/java/jdk/linux130/).
Inside the directory "escher-0.1.0" (or later version),

$ xhost +localhost $ java gnu.x11.test.Hello --help
$ java gnu.x11.test.Hello It will pop up an X window which says "Hello World!".
$ etc/bin/jdemo gnu

You will see a list of X applications and test suits you can run.
<<less
Download (0.052MB)
Added: 2006-09-26 License: GPL (GNU General Public License) Price:
1125 downloads
HTML::FormRemove 0.3a

HTML::FormRemove 0.3a


HTML::FormRemove is a Perl module to remove form tags from HTML. more>>
HTML::FormRemove is a Perl module to remove form tags from HTML.

SYNOPSIS

my $html =
"< FORM > < INPUT TYPE=TEXT NAME=Test VALUE=Hello World! > < /FORM >";
use HTML::FormRemove
print RemoveFormValues($html);

HTML::FormRemove is a module that removes form tags from HTML, while otherwise leaving the HTML intact. This allows for forms to be converted into something printable and usable.

RemoveFormValues ( HTML [, HTML [, HTML [...]]] )
Removes the form values. Exported by default. Returns an array of lines containing the updated HTML, or one single like containing them separated by newlines.

NOTES

This module is a work in progress; Ive only got basic functionality working at the moment.

<<less
Download (0.004MB)
Added: 2007-02-13 License: Other/Proprietary License Price:
983 downloads
Math::XOR 0.02

Math::XOR 0.02


Math::XOR is a package to handle XOR encryption of string buffers. more>>
Math::XOR is a package to handle XOR encryption of string buffers.

SYNOPSIS

use XOR;
print xor_buf("hello", "world"), "n";

The XOR module allows you to quickly XOR two strings together. This is the only method of encryption that (assuming the randomness of the pattern used as an encryption key) truly cannot be broken. It also has interesting, very direct mathematical properties which can be fun to play with:

XOR string 1 and string 2, you get string 3 XOR string 1 and string 3, you get string 2 XOR string 2 and string 3, you get string 1

FUNCTIONS

xor_buf($string1, $string2)

This function will return a scalar, which is the result of XORing the two strings passed to it together. The strings may contain binary data.

If $string2 is not at least as many characters long as $string1, xor_buf() will print an error and return undef. Only as many characters as there are in $string1 will be returned; excess characters in $string2 will be ignored. For this reason, when encrypting data it is good to think of $string1 as your "data" and $string2 as your "key".

<<less
Download (0.002MB)
Added: 2006-08-04 License: Perl Artistic License Price:
1176 downloads
Locale::TextDomain 1.16

Locale::TextDomain 1.16


Locale::TextDomain is a Perl Interface to Uniforum Message Translation. more>>
Locale::TextDomain is a Perl Interface to Uniforum Message Translation.

SYNOPSIS

use Locale::TextDomain (my-package, @locale_dirs);

use Locale::TextDomain qw (my-package);

my $translated = __"Hello World!n";

my $alt = $__{"Hello World!n"};

my $alt2 = $__->{"Hello World!n"};

my @list = (N__"Hello", N__"World");

my @plurals = (N__ ("One world", "{num} worlds"),
N__ ("1 file", "%d files"));

my $question = __x ("Error reading file {file}: {err}",
file => $file, err => $!);

printf (__n ("one file read",
"%d files read",
$num_files),
$num_files);

print __nx ("one file read", "{num} files read", $num_files,
num => $num_files);

The module Locale::TextDomain(3pm) provides a high-level interface to Perl message translation.

Textdomains

When your request a translation for a given string, the system used in libintl-perl follows a standard strategy to find a suitable message catalog containing the translation: Unless you explicitely define a name for the message catalog, libintl-perl will assume that your catalog is called messages (unless you have changed the default value to something else via Locale::Messages(3pm), method textdomain()).
You might think that his default strategy leaves room for optimization and you are right. It would be a lot smarter if multiple software packages, all with their individual message catalogs, could be installed on one system, and it should also be possible that third-party components of your software (like Perl modules) can load their message catalogs, too, without interfering with yours.

The solution is clear, you have to assign a unique name to your message database, and you have to specify that name at run-time. That unique name is the so-called textdomain of your software package. The name is actually arbitrary but you should follow these best-practice guidelines to ensure maximum interoperability:

File System Safety

In practice, textdomains get mapped into file names, and you should therefore make sure that the textdomain you choose is a valid filename on every system that will run your software.

Case-sensitivity

Textdomains are always case-sensitive (i. e. Package and PACKAGE are not the same). However, since the message catalogs will be stored on file systems, that may or may not distinguish case when looking up file names, you should avoid potential conflicts here.

Textdomain Should Match CPAN Name

If your software is listed as a module on CPAN, you should simply choose the name on CPANS as your textdomain. The textdomain for libintl-perl is hence libintl-perl. But please replace all periods (.) in your package name with an underscore because ...

Internet Domain Names as a Fallback

... if your software is not a module listed on CPAN, as a last resort you should use the Java(tm) package scheme, i. e. choose an internet domain that you are owner of (or ask the owner of an internet domain) and concatenate your preferred textdomain with the reversed internet domain. Example: Your company runs the web-site www.foobar.org and is the owner of the domain foobar.org. The textdomain for your companys software barfoos should hence be org.foobar.barfoos.

If your software is likely to be installed in different versions on the same system, it is probably a good idea to append some version information to your textdomain.
Other systems are less strict with the naming scheme for textdomains but the phenomena known as Perl is actually a plethora of small, specialized modules and it is probably wisest to postulate some namespace model in order to avoid chaos.

Binding textdomains to directories

Once the system knows the textdomain of the message that you want to get translated into the users language, it still has to find the correct message catalog. By default, libintl-perl will look up the string in the translation database found in the directories /usr/share/locale and /usr/local/share/locale (in that order).

It is neither guaranteed that these directories exist on the target machine, nor can you be sure that the installation routine has write access to these locations. You can therefore instruct libintl-perl to search other directories prior to the default directories. Specifying a differnt search directory is called binding a textdomain to a directory.

Locale::TextDomain extends the default strategy by a Perl specific approach. Unless told otherwise, it will look for a directory LocaleData in every component found in the standard include path @INC and check for a database containing the message for your textdomain there. Example: If the path /usr/lib/perl/5.8.0/site_perl is in your @INC, you can install your translation files in /usr/lib/perl/5.8.0/site_perl/LocaleData, and they will be found at run-time.

<<less
Download (0.45MB)
Added: 2007-01-24 License: Perl Artistic License Price:
1015 downloads
HTML::Tiny 0.10

HTML::Tiny 0.10


HTML::Tiny is a lightweight, dependency free HTML/XML generator. more>>
HTML::Tiny is a lightweight, dependency free HTML/XML generator.

SYNOPSIS

use HTML::Tiny;

my $h = HTML::Tiny->new;

# Generate a simple page
print $h->html(
[
$h->head( $h->title( Sample page ) ),
$h->body(
[
$h->h1( { class => main }, Sample page ),
$h->p( Hello, World, { class => detail }, Second para )
]
)
]
);

# Outputs
< html>
< head>
< title>Sample page< /title>
< /head>
< body>
< h1 class="main">Sample page< /h1>
< p>Hello, World< /p>
< p class="detail">Second para< /p>
< /body>
< /html>

<<less
Download (0.011MB)
Added: 2007-07-04 License: Perl Artistic License Price:
842 downloads
List::Util 1.19

List::Util 1.19


List::Util Perl module contains a selection of general-utility list subroutines. more>>
List::Util Perl module contains a selection of general-utility list subroutines.

SYNOPSIS

use List::Util qw(first max maxstr min minstr reduce shuffle sum);

List::Util contains a selection of subroutines that people have expressed would be nice to have in the perl core, but the usage would not really be high enough to warrant the use of a keyword, and the size so small such that being individual extensions would be wasteful.

By default List::Util does not export any subroutines. The subroutines defined are

first BLOCK LIST

Similar to grep in that it evaluates BLOCK setting $_ to each element of LIST in turn. first returns the first element where the result from BLOCK is a true value. If BLOCK never returns true or LIST was empty then undef is returned.

$foo = first { defined($_) } @list # first defined value in @list
$foo = first { $_ > $value } @list # first value in @list which
# is greater than $value

This function could be implemented using reduce like this

$foo = reduce { defined($a) ? $a : wanted($b) ? $b : undef } undef, @list

for example wanted() could be defined() which would return the first defined value in @list

max LIST

Returns the entry in the list with the highest numerical value. If the list is empty then undef is returned.

$foo = max 1..10 # 10
$foo = max 3,9,12 # 12
$foo = max @bar, @baz # whatever

This function could be implemented using reduce like this

$foo = reduce { $a > $b ? $a : $b } 1..10

maxstr LIST

Similar to max, but treats all the entries in the list as strings and returns the highest string as defined by the gt operator. If the list is empty then undef is returned.

$foo = maxstr A..Z # Z
$foo = maxstr "hello","world" # "world"
$foo = maxstr @bar, @baz # whatever

This function could be implemented using reduce like this

$foo = reduce { $a gt $b ? $a : $b } A..Z

min LIST

Similar to max but returns the entry in the list with the lowest numerical value. If the list is empty then undef is returned.

$foo = min 1..10 # 1
$foo = min 3,9,12 # 3
$foo = min @bar, @baz # whatever

This function could be implemented using reduce like this

$foo = reduce { $a < $b ? $a : $b } 1..10

minstr LIST

Similar to min, but treats all the entries in the list as strings and returns the lowest string as defined by the lt operator. If the list is empty then undef is returned.

$foo = minstr A..Z # A
$foo = minstr "hello","world" # "hello"
$foo = minstr @bar, @baz # whatever

This function could be implemented using reduce like this

$foo = reduce { $a lt $b ? $a : $b } A..Z

reduce BLOCK LIST

Reduces LIST by calling BLOCK, in a scalar context, multiple times, setting $a and $b each time. The first call will be with $a and $b set to the first two elements of the list, subsequent calls will be done by setting $a to the result of the previous call and $b to the next element in the list.

Returns the result of the last call to BLOCK. If LIST is empty then undef is returned. If LIST only contains one element then that element is returned and BLOCK is not executed.

$foo = reduce { $a < $b ? $a : $b } 1..10 # min
$foo = reduce { $a lt $b ? $a : $b } aa..zz # minstr
$foo = reduce { $a + $b } 1 .. 10 # sum
$foo = reduce { $a . $b } @bar # concat
shuffle LIST

Returns the elements of LIST in a random order

@cards = shuffle 0..51 # 0..51 in a random order

sum LIST

Returns the sum of all the elements in LIST. If LIST is empty then undef is returned.

$foo = sum 1..10 # 55
$foo = sum 3,9,12 # 24
$foo = sum @bar, @baz # whatever

This function could be implemented using reduce like this

$foo = reduce { $a + $b } 1..10

<<less
Download (0.043MB)
Added: 2007-06-30 License: Perl Artistic License Price:
848 downloads
Net::YahooMessenger 0.16

Net::YahooMessenger 0.16


Net::YahooMessenger is a Perl interface to the Yahoo!Messenger IM protocol. more>>
Net::YahooMessenger is a Perl interface to the Yahoo!Messenger IM protocol.

SYNOPSIS

use Net::YahooMessenger;

my $yahoo = Net::YahooMessenger->new(
id => your_yahoo_id,
password => your_password,
);
$yahoo->login or die "Cant login Yahoo!Messenger";
$yahoo->send(recipient_yahoo_id, Hello World!);

MAINTAINERS WANTED

This module is not in active maintenance now. Thus it doesnt play well with recent Yahoo! protocol updates. If you are interested in taking over this module on CPAN, please let me know your CPAN author ID to me at miyagawa[at]cpan.org.

Net::YahooMessenger is a client class for connecting with the Yahoo!Messenger server, and transmitting and receiving a message.

Since implement of a protocol is the result of analyzing and investigating a packet, it has an inadequate place. However, it is working as expected usually.

<<less
Download (0.016MB)
Added: 2006-12-11 License: Perl Artistic License Price:
1052 downloads
Secleted [ 0 ] software to compare
  • Page: 1 of 5
  • 1
  • 2
  • 3
  • 4
  • 5