11-11-2008
6 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have copied a simple.xml file into the folder /var/www/html and trying to access it on the brower by giving the command "http://localhost:8080/simple.xml"
but it gives "Connection Failed " Error .
While if i type "http://localhost/" It dispays the contents of the index.html file in the... (2 Replies)
Discussion started by: madhumathikv
2 Replies
2. Debian
Hi,
I installed the FF3 on my new Debian, and part of the installation guidance is to save a file named firefox.desktop on the desktop, which should act like a shortcut to the FF. The file content is:
Name=Mozilla Firefox Browser
Comment=lightweight browser based on mozilla
Exec=firefox... (15 Replies)
Discussion started by: JonesD1
15 Replies
3. Slackware
I was trying to open the port for my ftp end also I´ve triedto start firefox and so i received the following error: Input / Output Error. When i try to start that one in console i receive the following: No Protocol Especified No Protocol Especified Error: Cannot open display: :0,0 (1 Reply)
Discussion started by: darkpirate
1 Replies
4. Shell Programming and Scripting
Hello unix.com
I want to use curl to post some logs to a remote server using curl.
$ch = curl_init("http://example.com/post/post.php");
curl_setopt($ch, CURLOPT_POST ,1);
curl_setopt($ch, CURLOPT_POSTFIELDS ,"FOUT=hash.gif&DATA=$message");
curl_setopt($ch, CURLOPT_HEADER ... (4 Replies)
Discussion started by: galford
4 Replies
5. Solaris
I have Solaris-10 zone, where I can open firefox in GUI via MobaXterm with root user, but when I try to open it with non root user, it fails with below error
$ which firefox
/usr/bin/firefox
$ firefox
ld.so.1: firefox-bin: fatal: relocation error: file... (6 Replies)
Discussion started by: solaris_1977
6 Replies
6. What is on Your Mind?
Today, I noticed some errors in our SSL cert renewal log files, mostly related to domains where the IP address had changed. Concerned about this, rebuilt out SSL cert, which normally goes well without a hiccup.
However, for today, for some reason which I cannot explain, there was a PHP error... (0 Replies)
Discussion started by: Neo
0 Replies
LEARN ABOUT DEBIAN
mojo::reactor::ev
Mojo::Reactor::EV(3pm) User Contributed Perl Documentation Mojo::Reactor::EV(3pm)
NAME
Mojo::Reactor::EV - Low level event reactor with libev support
SYNOPSIS
use Mojo::Reactor::EV;
# Watch if handle becomes readable or writable
my $reactor = Mojo::Reactor::EV->new;
$reactor->io($handle => sub {
my ($reactor, $writable) = @_;
say $writable ? 'Handle is writable' : 'Handle is readable';
});
# Add a timer
$reactor->timer(15 => sub {
my $reactor = shift;
$reactor->remove($handle);
say 'Timeout!';
});
# Start reactor if necessary
$reactor->start unless $reactor->is_running;
DESCRIPTION
Mojo::Reactor::EV is a low level event reactor based on EV.
EVENTS
Mojo::Reactor::EV inherits all events from Mojo::Reactor::Poll.
METHODS
Mojo::Reactor::EV inherits all methods from Mojo::Reactor::Poll and implements the following new ones.
"new"
my $reactor = Mojo::Reactor::EV->new;
Construct a new Mojo::Reactor::EV object.
"is_running"
my $success = $reactor->is_running;
Check if reactor is running.
"one_tick"
$reactor->one_tick;
Run reactor until an event occurs or no events are being watched anymore. Note that this method can recurse back into the reactor, so you
need to be careful.
"recurring"
my $id = $reactor->recurring(0.25 => sub {...});
Create a new recurring timer, invoking the callback repeatedly after a given amount of time in seconds.
"start"
$reactor->start;
Start watching for I/O and timer events, this will block until "stop" is called or no events are being watched anymore.
"stop"
$reactor->stop;
Stop watching for I/O and timer events.
"timer"
my $id = $reactor->timer(0.5 => sub {...});
Create a new timer, invoking the callback after a given amount of time in seconds.
"watch"
$reactor = $reactor->watch($handle, $readable, $writable);
Change I/O events to watch handle for with "true" and "false" values.
SEE ALSO
Mojolicious, Mojolicious::Guides, <http://mojolicio.us>.
perl v5.14.2 2012-09-05 Mojo::Reactor::EV(3pm)