12-15-2003
How is Darwin as a base For a Server
Does anyone have any Benchmarks for OS X Server in DB Serving.
in comparison to Linux
How bout Darwin?
And How bout Darwin as a Base for a Server?
How bout Ease of Environment Crossplatforms and Various Implementations?
And Finally how bout Develoment?
9 More Discussions You Might Find Interesting
1. Programming
I am using Darwin on Mac OS X.I.I (new to both Unix and C++).
I downloaded the ncurses library from http://prdownloads.sourceforge.net/gnu-darwin/ncurses-5.2.tgz,
but I don't know what to do with it now. Stuffit has expanded the archive, but I still have the original .tgz as well (if that's... (1 Reply)
Discussion started by: parmenides
1 Replies
2. UNIX for Dummies Questions & Answers
so, what's everyone's opinion on Darwin (x86 rendition)?
is it worth installing at the moment?
pros? cons? comments? (5 Replies)
Discussion started by: Karma
5 Replies
3. BSD
How can I send Ctrl+Alt+Del for Darwin running in PearPC for Linux? (1 Reply)
Discussion started by: eugrus
1 Replies
4. Ubuntu
Hi folks,
Ubuntu 7.04 server amd64
apache2-2.2.3
postfix-2.3.8
mysql Ver 14.12
SquirrelMail version 1.4.11
I have a running Mail Server. I need to make it as a file server, in addition, allowing users who have accounts (Linux/shell) on the Mail Server to upload/download their files... (1 Reply)
Discussion started by: satimis
1 Replies
5. OS X (Apple)
Hello,
I was curious about how one would go about installing gnome on darwin. As far as I know it must be harder than FreeBSD because there doesn't seem to be any ports for it.
Would you have to first set up a build environment (GCC etc...) and then compile it from scratch? or is there an... (3 Replies)
Discussion started by: kpedersen
3 Replies
6. Solaris
hi people,
I receive this message in the nwadmin:
Registration info event: Server is disabled Install base enabler
License enabler: #none (Networker/10 Eval) has expired.
What happened?
Please help me...
Thank you (0 Replies)
Discussion started by: denisgomes
0 Replies
7. OS X (Apple)
Hi there.
I have an MacBookPro and I want to install Darwin ports.
I downloaded & installed MacPorts-1.7.0.pkg and now I don't know what to do.
I tried: # port -d selfupdate
....
error 1
Command output: checking build system type... i686-apple-darwin9.7.0
checking host system type...... (7 Replies)
Discussion started by: hirohitosan
7 Replies
8. Red Hat
Hello,
What is the simplest way to install CentOS 6.1 with console base-system only using official LiveDVD image on VirtualBox machine? I'd like to get simplest console with network support like FreeBSD base installation. Then, install services which I need.
The installer jest extracts the... (2 Replies)
Discussion started by: newbie_develope
2 Replies
9. Shell Programming and Scripting
Hi Guys,
Server time:-
>date
>Wed Nov 14 11:56:23 EST 2012
I want to convert in to Below Formet :-
20121114.1100
And cretae file base on above data : last 48 Hour
20121114.1000 20121114.1100
20121114.0900 20121114.1000
20121114.0800 20121114.0900
20121114.0700 20121114.0800... (2 Replies)
Discussion started by: asavaliya
2 Replies
LEARN ABOUT DEBIAN
mojo::server
Mojo::Server(3pm) User Contributed Perl Documentation Mojo::Server(3pm)
NAME
Mojo::Server - HTTP server base class
SYNOPSIS
use Mojo::Base 'Mojo::Server';
sub run {
my $self = shift;
# Get a transaction
my $tx = $self->build_tx;
# Emit "request" event
$self->emit(request => $tx);
}
DESCRIPTION
Mojo::Server is an abstract HTTP server base class.
EVENTS
Mojo::Server can emit the following events.
"request"
$server->on(request => sub {
my ($server, $tx) = @_;
...
});
Emitted when a request is ready and needs to be handled.
$server->unsubscribe('request');
$server->on(request => sub {
my ($server, $tx) = @_;
$tx->res->code(200);
$tx->res->headers->content_type('text/plain');
$tx->res->body('Hello World!');
$tx->resume;
});
ATTRIBUTES
Mojo::Server implements the following attributes.
"app"
my $app = $server->app;
$server = $server->app(MojoSubclass->new);
Application this server handles, defaults to a Mojo::HelloWorld object.
"app_class"
my $app_class = $server->app_class;
$server = $server->app_class('MojoSubclass');
Class of the application this server handles, defaults to the value of the "MOJO_APP" environment variable or Mojo::HelloWorld.
METHODS
Mojo::Server inherits all methods from Mojo::EventEmitter and implements the following new ones.
"new"
my $server = Mojo::Server->new;
Construct a new Mojo::Server object and subscribe to "request" event with default request handling.
"build_tx"
my $tx = $server->build_tx;
Let application build a transaction.
"load_app"
my $app = $server->load_app('./myapp.pl');
Load application from script.
say Mojo::Server->new->load_app('./myapp.pl')->home;
"run"
$server->run;
Run server. Meant to be overloaded in a subclass.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojo::Server(3pm)