01-26-2019
I just found a new use for the Simple Autosave feature.
While working on a reply, I was doing other tasks, and ended up closing a bunch of open tabs in my browser, and then accidentally closed the tab of the reply I was working on!
LALAAAA... Simple Autosave and Recovery to the rescue! No data lost in the post I was working on!
6 More Discussions You Might Find Interesting
1. Programming
Just started out with C and are looking for a good editor
in *nix that marks the code with colors.
This is maybe a newbie thing to have the C code in colors
but i like it and you can almost always se when you are typing wrong. :)
Ive heard that emacs should have that option but i havent... (3 Replies)
Discussion started by: hexdoctor
3 Replies
2. UNIX for Dummies Questions & Answers
Where can i find editors for UNIX?
thanks (5 Replies)
Discussion started by: Inbal
5 Replies
3. UNIX for Dummies Questions & Answers
I was wondering what other mail utilities besides 'mutt, unix mail, PINE and elm' are available for unix.
Also, what other editors are around besides 'VI, pico, vim and emacs'... I've been searching the net looking for some answers, but nothing much has come up.. thanx! (1 Reply)
Discussion started by: Shonnie
1 Replies
4. UNIX and Linux Applications
What is everyones opinions on these video editors?
PiTiVi
Avidemux
Cinelerra
Kdenlive
Kino
Linux Video Editing: Top Five Linux Video Editors (0 Replies)
Discussion started by: cokedude
0 Replies
5. UNIX for Dummies Questions & Answers
Hi all,
I am not sure if this is a known issue. I am using Putty and logging the session into a log, only the printable one.
On Solaris, all is working fine. But on Linux servers, Redhat or Suse, while the screen looks correct, the log file is not.
Note example below:
On the screen,... (1 Reply)
Discussion started by: newbie_01
1 Replies
6. Web Development
TODO:
Add a some javascript to:
Autosave to browser localstorage when a member is creating a new post or replying to a thread (rewriting any prior text in autosave).
Create a button on the editor to load the text stored in the autosave function.
Difficulty:
Easy.
Estimated... (0 Replies)
Discussion started by: Neo
0 Replies
LEARN ABOUT DEBIAN
http::server::simple::authen
HTTP::Server::Simple::Authen(3pm) User Contributed Perl Documentation HTTP::Server::Simple::Authen(3pm)
NAME
HTTP::Server::Simple::Authen - Authentication plugin for HTTP::Server::Simple
SYNOPSIS
package MyServer;
use base qw( HTTP::Server::Simple::Authen HTTP::Server::Simple::CGI);
use Authen::Simple::Passwd;
sub authen_handler {
Authen::Simple::Passwd->new(passwd => '/etc/passwd');
}
sub handle_request {
my($self, $cgi) = @_;
my $user = $self->authenticate or return;
...
}
MyServer->new->run();
DESCRIPTION
HTTP::Server::Simple::Authen is an HTTP::Server::Simple plugin to allow HTTP authentication. Authentication scheme is pluggable and you can
use whatever Authentication protocol that Authen::Simple supports.
You can use "authenticate" method whatever you want to authenticate the request. The method returns $username taken from the request if the
authentication is successful, and "undef" otherwise. The code in "SYNOPSIS" requires authentication for all the requests and behaves just
the same as Apache's "Require valid-user".
The following code will explain more about conditioning.
sub handle_request {
my($self, $cgi) = @_;
if ($cgi->path_info =~ m!/foo/!) {
my $user = $self->authenticate;
return unless defined($user) && length($user) == 8;
}
...
}
This means all the requests to URL "/foo/" require to be authenticated, and usernames with 8 chars long are authorized.
METHODS
Your subclass has to override following methods to implement HTTP authentication.
authen_handler
Should return a valid Authen::Simple instance to authenticate HTTP request (Required).
authen_realm
Returns a string for Authentication realm to be shown in the browser's dialog box. Defaults to 'Authorized area'.
AUTHOR
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
HTTP::Server::Simple, Authen::Simple
perl v5.12.3 2006-01-15 HTTP::Server::Simple::Authen(3pm)