07-16-2014
I'm using Slackware, 'cause it's simple. Veery simple.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi
I'm have old toshiba laptop(t1900) 486, 4mbRAM and ~120MB of hdd
I'm looking for distro to suite my comp, no need for X windows but not enything that runs on FAT, just normal small Linux.
Actually, *BSDs will do as well. If u know any distro that would do this I will be thankful for hint
... (4 Replies)
Discussion started by: wolk
4 Replies
2. What is on Your Mind?
Hello,
I am planning to revise the RSS News subforum areas, here:
News, Links, Events and Announcements - The UNIX Forums
... maybe with a subforum for each OS specific news, like HP-UX, Solaris, RedHat, OSX, etc. RSS subforums....
Please post your favorite OS specific RSS (RSS2) link... (0 Replies)
Discussion started by: Neo
0 Replies
3. UNIX for Dummies Questions & Answers
want to know which Linux distro is 4 me. want 2 teach my self programing and problem solving. i want to learn code and write code. i have an acer aspire one 2GB memory 160 GB HDD intel Atom. look im as noobie as it gets im a MS xp, vista boy want to go beyond graphical click and do... any help... (1 Reply)
Discussion started by: BizilStank
1 Replies
4. What is on Your Mind?
I am curious about the most popular ssh client on Windows environment. Talking about me, I use PuTTY most of the time coupled with WinSCP to transfer files. But, I like Tera Term too. It has great drag-drop feature where you can drag a file/folder and drop on the window and it will transfer the... (14 Replies)
Discussion started by: admin_xor
14 Replies
5. What is on Your Mind?
I can bet everyone has their one favorite book even though we have had read many books on UNIX or Linux. My all time favorite is "Unix Power Tools". This book always made me geeky and I loved the little tricks/tips in the book. I still do!
The next favorite would be "Prentice Hall Unix and Linux... (0 Replies)
Discussion started by: admin_xor
0 Replies
6. Linux
Hello,
I have a Compaq Presario v3000 5 year old laptop, with 1 GB RAM and currently running the (slow and stupid) Windows 7 32 bit, thus I would like to dual boot it with an appropriate distro of Linux that
1) Doesnt consume too much resources (1 GB RAM is not a lot of space) and it ll be... (4 Replies)
Discussion started by: ajayram
4 Replies
7. Linux
I'm looking for a new file/directory synchronizer.
I've been using unison because it works on both windows and linux.
However, it often chokes on the very long directory paths and file names I encounter when backing up eclipse and eclipse workspace directories. I suppose one could argue that I... (2 Replies)
Discussion started by: siegfried
2 Replies
8. What is on Your Mind?
Video: What is Your Favorite Linux Distro? UNIX.com and Primis
https://youtu.be/doa9sA6q9Uw
With so many great flavors of Linux to choose from, we asked our UNIX.com members what is their favorite Linux distro and why.
Here are the results:
What is your favorite Linux distro?
... (0 Replies)
Discussion started by: Neo
0 Replies
9. What is on Your Mind?
We have asked UNIX.com users over the years what is their favorite editor and why. Here is the top three answers.
Here is a new YT video on this question:
What Editor Does Everyone Use?
https://youtu.be/gqE8RTZZt9g
Of course, vi was the overwhelming favorite.
Credits:
1080 HD... (3 Replies)
Discussion started by: Neo
3 Replies
LEARN ABOUT DEBIAN
http::proxy::bodyfilter::simple
HTTP::Proxy::BodyFilter::simple(3pm) User Contributed Perl Documentation HTTP::Proxy::BodyFilter::simple(3pm)
NAME
HTTP::Proxy::BodyFilter::simple - A class for creating simple filters
SYNOPSIS
use HTTP::Proxy::BodyFilter::simple;
# a simple s/// filter
my $filter = HTTP::Proxy::BodyFilter::simple->new(
sub { ${ $_[1] } =~ s/foo/bar/g; }
);
$proxy->push_filter( response => $filter );
DESCRIPTION
HTTP::Proxy::BodyFilter::simple can create BodyFilter without going through the hassle of creating a full-fledged class. Simply pass a code
reference to the "filter()" method of your filter to the constructor, and you'll get the adequate filter.
Constructor calling convention
The constructor can be called in several ways, which are shown in the synopsis:
single code reference
The code reference must conform to the standard filter() signature:
sub filter {
my ( $self, $dataref, $message, $protocol, $buffer ) = @_;
...
}
It is assumed to be the code for the "filter()" method. See HTTP::Proxy::BodyFilter.pm for more details about the "filter()" method.
name/coderef pairs
The name is the name of the method ("filter", "begin", "end") and the coderef is the method itself.
See HTTP::Proxy::BodyFilter for the methods signatures.
METHODS
This filter "factory" defines the standard HTTP::Proxy::BodyFilter methods, but those are only, erm, "proxies" to the actual CODE
references passed to the constructor. These "proxy" methods are:
filter()
begin()
end()
Two other methods are actually HTTP::Proxy::BodyFilter::simple methods, and are called automatically:
init()
Initalise the filter instance with the code references passed to the constructor.
can()
Return the actual code reference that will be run, and not the "proxy" methods. If called with any other name than "begin", "end" and
"filter", calls UNIVERSAL::can() instead.
There is also a method that returns a boolean value:
will_modify()
The "will_modify()" method returns a scalar value (boolean) indicating if the filter may modify the body data. The default method
returns a true value, so you only need to set this value when you are absolutely certain that the filter will not modify data (or at
least not modify its final length).
Here's a simple example:
$filter = HTTP::Proxy::BodyFilter::simple->new(
filter => sub { ${ $_[1] } =~ s/foo/bar/g; },
will_modify => 0, # "foo" is the same length as "bar"
);
SEE ALSO
HTTP::Proxy, HTTP::Proxy::BodyFilter.
AUTHOR
Philippe "BooK" Bruhat, <book@cpan.org>.
COPYRIGHT
Copyright 2003-2006, Philippe Bruhat.
LICENSE
This module is free software; you can redistribute it or modify it under the same terms as Perl itself.
perl v5.12.4 2011-07-03 HTTP::Proxy::BodyFilter::simple(3pm)