header
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 974
Header Spy 1.2.2
Header Spy is an extension which shows HTTP headers on statusbar. more>>
Header Spy is an extension which shows HTTP headers on statusbar.
Main features:
- Up to 5 statusbar panels;
- Request and response headers;
- Custom headers;
- Tooltip headers;
- Menu with headers for statusbar panels;
<<lessMain features:
- Up to 5 statusbar panels;
- Request and response headers;
- Custom headers;
- Tooltip headers;
- Menu with headers for statusbar panels;
Download (0.016MB)
Added: 2007-07-19 License: MPL (Mozilla Public License) Price:
515 downloads
FLV::Header 0.03
FLV::Header is a flash video file data structure. more>>
FLV::Header is a flash video file data structure.
METHODS
This is a subclass of FLV::Base.
$self->parse($fileinst)
Takes a FLV::File instance and extracts the FLV header from the file stream. This method throws exceptions if the stream is not a valid FLV v1.0 or v1.1 file. The interpretation is a bit stricter than other FLV parsers (for example FLVTool2).
There is no return value.
$self->serialize($filehandle)
Serializes the in-memory FLV header. If that representation is not complete, this throws an exception via croak(). Returns a boolean indicating whether writing to the file handle was successful.
$self->has_video()
Returns a boolean indicating if the FLV header predicts that video data is enclosed in the stream.
This value is not consulted internally.
$self->has_audio()
Returns a boolean indicating if the FLV header predicts that audio data is enclosed in the stream.
This value is not consulted internally.
<<lessMETHODS
This is a subclass of FLV::Base.
$self->parse($fileinst)
Takes a FLV::File instance and extracts the FLV header from the file stream. This method throws exceptions if the stream is not a valid FLV v1.0 or v1.1 file. The interpretation is a bit stricter than other FLV parsers (for example FLVTool2).
There is no return value.
$self->serialize($filehandle)
Serializes the in-memory FLV header. If that representation is not complete, this throws an exception via croak(). Returns a boolean indicating whether writing to the file handle was successful.
$self->has_video()
Returns a boolean indicating if the FLV header predicts that video data is enclosed in the stream.
This value is not consulted internally.
$self->has_audio()
Returns a boolean indicating if the FLV header predicts that audio data is enclosed in the stream.
This value is not consulted internally.
Download (0.72MB)
Added: 2006-07-21 License: GPL (GNU General Public License) Price:
1212 downloads
Ogg::Vorbis::Header 0.03
Ogg::Vorbis::Header is an object-oriented interface to Ogg Vorbis information and comment fields. more>>
Ogg::Vorbis::Header is an object-oriented interface to Ogg Vorbis information and comment fields.
SYNOPSIS
use Ogg::Vorbis::Header;
my $ogg = Ogg::Vorbis::Header->new("song.ogg");
while (my ($k, $v) = each %{$ogg->info}) {
print "$k: $vn";
}
foreach my $com ($ogg->comment_tags) {
print "$com: $_n" foreach $ogg->comment($com);
}
$ogg->add_comments("good", "no", "ok", "yes");
$ogg->delete_comment("ok");
$ogg->write_vorbis;
This module presents an object-oriented interface to Ogg Vorbis files which allows user to view Vorbis info and comments and to modify or add comments.
CONSTRUCTORS
new ($filename)
Partially opens an Ogg Vorbis file to ensure it exists and is actually a Vorbis stream. It then closes the filehandle. It does not fill in the objects data fields. These fields will be automatically filled the first time they are accessed using the objects instance methods. Returns undef if there is a problem opening the file or the file is not valid Ogg Vorbis.
load ([$filename])
Opens an Ogg Vorbis file, reads its information, and then closes the filehandle. Returns undef if there is a problem opening the file or the file is not valid Ogg Vorbis. This is both a constructor and an instance method. The filename is required in constructor context, but should be left out when you call this as an instance method on an object. When called as an instance method, it (re)loads the info and comment data from the file. This can be used to reset the state of the object if write_vorbis hasnt been called. Note that the path parameter is ignored in instance context.
INSTANCE METHODS
These methods may be called on actual Header objects, using the -> operator or indirect objects as you prefer.
info ([$key])
Returns a reference to a hash containing format information about the Vorbis file. Hash fields are: version, channels, rate, bitrate_upper, bitrate_nominal, bitrate_lower, and bitrate_window, length. The bitrate_window value is currently unused by the vorbis codec. You can modify the referenced hash if you want, but I wouldnt suggest it.
The optional key parameter allows you to extract a single value from the internal hash (passed by value, not reference). If the key is invalid, undef is returned.
comment_tags ()
Returns an array holding the key values of each comment field. You can then use these values to access specific fields using comment. This may seem somewhat clunky at first but it will speed up most programs. In addition, it makes it easier to support the Ogg Vorbis comment standard which allows multiple fields with the same key.
comment ($key)
Returns a list of comments given a key. If the key does not exist, returns undef.
add_comments ($key, $value, [$key, $value, ...])
Adds comments with the given keys and values. Takes an array of alternating keys and values as parameters. Keys and values should be valid ascii in the range 0x20 - 0x7D and the key should exclude 0x3D (=). This is a subset of the Vorbis standard which allows this range for the key field and all of utf8 for the value field. This will be fixed in future a release.
If an odd-length array is passed in the routine will fail and return undef. Key and value will be trimmed of characters which do not match the format requirement.
edit_comment ($key, $value, [$num])
Edits a given comment field. The optional num field is used to differentiate between two comments with the same key. If no num is supplied, the first value--as reported by comment--is modified. If the key or num are invalid, nothing is done and undef is returned. If all goes well, the old value is returned.
delete_comment ($key, [$num])
Deletes the comment given by key. The optional num value can be used to specify which comment to delete, given duplicate keys. Leaving num out will result in only the first instance being deleted. Returns undef if key or num are invalid. If all goes well, the value of the deleted comment is returned.
clear_comments ([@keys])
Deletes all of the comments which match keys in the input array or all of the comments in the stream if called with no arguments. Returns undef if any key is invalid, although all keys in the input array up until that key will be cleared. Returns true otherwise.
write_vorbis ()
Write object to its backing file. No comment modifications will be seen in the file until this operation is performed.
path ()
Returns the path/filename of the file the object represents.
<<lessSYNOPSIS
use Ogg::Vorbis::Header;
my $ogg = Ogg::Vorbis::Header->new("song.ogg");
while (my ($k, $v) = each %{$ogg->info}) {
print "$k: $vn";
}
foreach my $com ($ogg->comment_tags) {
print "$com: $_n" foreach $ogg->comment($com);
}
$ogg->add_comments("good", "no", "ok", "yes");
$ogg->delete_comment("ok");
$ogg->write_vorbis;
This module presents an object-oriented interface to Ogg Vorbis files which allows user to view Vorbis info and comments and to modify or add comments.
CONSTRUCTORS
new ($filename)
Partially opens an Ogg Vorbis file to ensure it exists and is actually a Vorbis stream. It then closes the filehandle. It does not fill in the objects data fields. These fields will be automatically filled the first time they are accessed using the objects instance methods. Returns undef if there is a problem opening the file or the file is not valid Ogg Vorbis.
load ([$filename])
Opens an Ogg Vorbis file, reads its information, and then closes the filehandle. Returns undef if there is a problem opening the file or the file is not valid Ogg Vorbis. This is both a constructor and an instance method. The filename is required in constructor context, but should be left out when you call this as an instance method on an object. When called as an instance method, it (re)loads the info and comment data from the file. This can be used to reset the state of the object if write_vorbis hasnt been called. Note that the path parameter is ignored in instance context.
INSTANCE METHODS
These methods may be called on actual Header objects, using the -> operator or indirect objects as you prefer.
info ([$key])
Returns a reference to a hash containing format information about the Vorbis file. Hash fields are: version, channels, rate, bitrate_upper, bitrate_nominal, bitrate_lower, and bitrate_window, length. The bitrate_window value is currently unused by the vorbis codec. You can modify the referenced hash if you want, but I wouldnt suggest it.
The optional key parameter allows you to extract a single value from the internal hash (passed by value, not reference). If the key is invalid, undef is returned.
comment_tags ()
Returns an array holding the key values of each comment field. You can then use these values to access specific fields using comment. This may seem somewhat clunky at first but it will speed up most programs. In addition, it makes it easier to support the Ogg Vorbis comment standard which allows multiple fields with the same key.
comment ($key)
Returns a list of comments given a key. If the key does not exist, returns undef.
add_comments ($key, $value, [$key, $value, ...])
Adds comments with the given keys and values. Takes an array of alternating keys and values as parameters. Keys and values should be valid ascii in the range 0x20 - 0x7D and the key should exclude 0x3D (=). This is a subset of the Vorbis standard which allows this range for the key field and all of utf8 for the value field. This will be fixed in future a release.
If an odd-length array is passed in the routine will fail and return undef. Key and value will be trimmed of characters which do not match the format requirement.
edit_comment ($key, $value, [$num])
Edits a given comment field. The optional num field is used to differentiate between two comments with the same key. If no num is supplied, the first value--as reported by comment--is modified. If the key or num are invalid, nothing is done and undef is returned. If all goes well, the old value is returned.
delete_comment ($key, [$num])
Deletes the comment given by key. The optional num value can be used to specify which comment to delete, given duplicate keys. Leaving num out will result in only the first instance being deleted. Returns undef if key or num are invalid. If all goes well, the value of the deleted comment is returned.
clear_comments ([@keys])
Deletes all of the comments which match keys in the input array or all of the comments in the stream if called with no arguments. Returns undef if any key is invalid, although all keys in the input array up until that key will be cleared. Returns true otherwise.
write_vorbis ()
Write object to its backing file. No comment modifications will be seen in the file until this operation is performed.
path ()
Returns the path/filename of the file the object represents.
Download (0.032MB)
Added: 2007-05-12 License: Perl Artistic License Price:
901 downloads
Encode::MIME::Header 2.23
Encode::MIME::Header is a Perl module that contains MIME B and Q header encoding. more>>
Encode::MIME::Header is a Perl module that contains MIME B and Q header encoding.
SYNOPSIS
use Encode qw/encode decode/;
$utf8 = decode(MIME-Header, $header);
$header = encode(MIME-Header, $utf8);
ABSTRACT
This module implements RFC 2047 Mime Header Encoding. There are 3 variant encoding names; MIME-Header, MIME-B and MIME-Q. The difference is described below
decode() encode()
----------------------------------------------
MIME-Header Both B and Q =?UTF-8?B?....?=
MIME-B B only; Q croaks =?UTF-8?B?....?=
MIME-Q Q only; B croaks =?UTF-8?Q?....?=
When you decode(=?encoding?X?ENCODED WORD?=), ENCODED WORD is extracted and decoded for X encoding (B for Base64, Q for Quoted-Printable). Then the decoded chunk is fed to decode(encoding). So long as encoding is supported by Encode, any source encoding is fine.
When you encode, it just encodes UTF-8 string with X encoding then quoted with =?UTF-8?X?....?= . The parts that RFC 2047 forbids to encode are left as is and long lines are folded within 76 bytes per line.
<<lessSYNOPSIS
use Encode qw/encode decode/;
$utf8 = decode(MIME-Header, $header);
$header = encode(MIME-Header, $utf8);
ABSTRACT
This module implements RFC 2047 Mime Header Encoding. There are 3 variant encoding names; MIME-Header, MIME-B and MIME-Q. The difference is described below
decode() encode()
----------------------------------------------
MIME-Header Both B and Q =?UTF-8?B?....?=
MIME-B B only; Q croaks =?UTF-8?B?....?=
MIME-Q Q only; B croaks =?UTF-8?Q?....?=
When you decode(=?encoding?X?ENCODED WORD?=), ENCODED WORD is extracted and decoded for X encoding (B for Base64, Q for Quoted-Printable). Then the decoded chunk is fed to decode(encoding). So long as encoding is supported by Encode, any source encoding is fine.
When you encode, it just encodes UTF-8 string with X encoding then quoted with =?UTF-8?X?....?= . The parts that RFC 2047 forbids to encode are left as is and long lines are folded within 76 bytes per line.
Download (1.9MB)
Added: 2007-07-17 License: Perl Artistic License Price:
829 downloads
XML::Mini::Element::Header 1.2.8
XML::Mini::Element::Header Perl module is used internally to represent < ? xml blah=hohoho ? > type headers. more>>
XML::Mini::Element::Header Perl module is used internally to represent < ? xml blah="hohoho" ? > type headers.
You shouldnt need to use it directly, see XML::Mini::Elements header() method.
<<lessYou shouldnt need to use it directly, see XML::Mini::Elements header() method.
Download (0.034MB)
Added: 2007-03-08 License: Perl Artistic License Price:
966 downloads
Audio::TagLib::MPEG::Header 1.42
Audio::TagLib::MPEG::Header is an implementation of MP3 frame headers. more>>
Audio::TagLib::MPEG::Header is an implementation of MP3 frame headers.
SYNOPSIS
use Audio::TagLib::MPEG::Header;
my $i = Audio::TagLib::MPEG::Header->new($data);
This is an implementation of MPEG Layer III headers. The API follows more or less the binary format of these headers. Refer to
http://www.mp3-tech.org/programmer/frame_header.html
new(ByteVector $data)
Parses an MPEG header based on $data.
new(Header $h)
Does a shallow copy of $h.
DESTROY()
Destroys this Header instance.
BOOL isValid()
Returns true if the frame is at least an appropriate size and has legal values.
%_Version
The MPEG Version. keys %Audio::TagLib::MPEG::Header::_Version lists all available values used in Perl code.
PV version()
Returns the MPEG Version of the header.
IV layer()
Returns the layer version. This will be between the values 1-3.
BOOL protectionEnabled()
Returns true if the MPEG protection bit is enabled.
IV bitrate()
Returns the bitrate encoded in the header.
IV sampleRate()
Returns the sample rate in Hz.
BOOL isPadded()
Returns true if the frame is padded.
%_ChannelMode
There are a few combinations or one or two channel audio that are possible. keys %Audio::TagLib::MPEG::Header::_ChannelMode lists all available values used in Perl code.
PV channelMode()
Returns the channel mode for this frame.
BOOL isCopyrighted()
Returns true if the copyrighted bit is set.
BOOL isOriginal()
Returns true if the "original" bit is set.
IV frameLength()
Returns the frame length.
copy(Header $h)
Makes a shallow copy of the header.
<<lessSYNOPSIS
use Audio::TagLib::MPEG::Header;
my $i = Audio::TagLib::MPEG::Header->new($data);
This is an implementation of MPEG Layer III headers. The API follows more or less the binary format of these headers. Refer to
http://www.mp3-tech.org/programmer/frame_header.html
new(ByteVector $data)
Parses an MPEG header based on $data.
new(Header $h)
Does a shallow copy of $h.
DESTROY()
Destroys this Header instance.
BOOL isValid()
Returns true if the frame is at least an appropriate size and has legal values.
%_Version
The MPEG Version. keys %Audio::TagLib::MPEG::Header::_Version lists all available values used in Perl code.
PV version()
Returns the MPEG Version of the header.
IV layer()
Returns the layer version. This will be between the values 1-3.
BOOL protectionEnabled()
Returns true if the MPEG protection bit is enabled.
IV bitrate()
Returns the bitrate encoded in the header.
IV sampleRate()
Returns the sample rate in Hz.
BOOL isPadded()
Returns true if the frame is padded.
%_ChannelMode
There are a few combinations or one or two channel audio that are possible. keys %Audio::TagLib::MPEG::Header::_ChannelMode lists all available values used in Perl code.
PV channelMode()
Returns the channel mode for this frame.
BOOL isCopyrighted()
Returns true if the copyrighted bit is set.
BOOL isOriginal()
Returns true if the "original" bit is set.
IV frameLength()
Returns the frame length.
copy(Header $h)
Makes a shallow copy of the header.
Download (1.4MB)
Added: 2006-06-30 License: Perl Artistic License Price:
1217 downloads
Display mailing list header 0.3.1
Display mailing list header provides you with a powerful and easy-to-use Firefox extention which parses the header fields and displays links in the extended header view. more>> Display mailing list header 0.3.1 provides you with a powerful and easy-to-use Firefox extention which parses the header fields and displays links in the extended header view. You can click them to simply go to the archive, request help or unsubscribe from the list. You have to install Enigmail OR Mnenhy, as this extension relies on getting special headers from the mail which is very complicated to achieve in current versions of thunderbird.
Requirements:
- Thunderbird 1.0 1.5.0.* ALL
- Mozilla 1.7.7 1.7.7 ALL
Added: 2006-09-12 License: MPL Price: FREE
1 downloads
mod_sesehe SEcure SErver HEader 1.0
mod_sesehe SEcure SErver HEader is an Apache module that disguise or remove Server: HTTP header. more>>
mod_sesehe SEcure SErver HEader is an Apache module that disguise or remove "Server: " HTTP header.
The ServerTokens directive currently can at best be set to Prod, which will cause apache to return "Apache" as Server header. Some problem still occurs:
First, the level of security by obscurity of this directive is not acceptable by some people that just want to change it to some other value, without re-compiling Apache, or people that even want to simply drop the "Server: " header. Secondly, if apache is configured as a reverse proxy, and a malformed request is received, then it will display its own server token instead of the backend one, so we need to handle error response header.
I developed this tiny module by hijacking normal behavior of (reverse) proxy feature of Apache : i.e. even if a request is not a proxy request, I tag it as if it was, to make Apache core let me do what I want with this header.
<<lessThe ServerTokens directive currently can at best be set to Prod, which will cause apache to return "Apache" as Server header. Some problem still occurs:
First, the level of security by obscurity of this directive is not acceptable by some people that just want to change it to some other value, without re-compiling Apache, or people that even want to simply drop the "Server: " header. Secondly, if apache is configured as a reverse proxy, and a malformed request is received, then it will display its own server token instead of the backend one, so we need to handle error response header.
I developed this tiny module by hijacking normal behavior of (reverse) proxy feature of Apache : i.e. even if a request is not a proxy request, I tag it as if it was, to make Apache core let me do what I want with this header.
Download (0.006MB)
Added: 2006-04-03 License: The Apache License 2.0 Price:
1301 downloads
SIMD Cross-platform headers 2004.10.26
SIMD Cross-platform headers is a cross- platform, cross-compiler, cross CPU C/C++ header collection. more>>
SIMD Cross-platform headers is a cross- platform, cross-compiler, cross CPU C/C++ header collection that aids the creation portable vectorized (SIMD) C/C++ code.
SIMD Cross-platform headerst supports (or partially supports) x86 (MMX/SSE/SSE2) GCC and MSVC, PPC Altivec GCC and CodeWarrior, ARM GCC, and software-emulated SIMD.
NOTE: Code must be 16-byte aligned. Align to 16 when allocating memory.
X86/XSCALE (Intel) vs. PowerPC/MIPS
While the PowerPC and MIPS SIMD instructions take 2 source vectors and a destination vector, the Intel platforms only take a source and destination. Example:
PPC/MIPS can do:
C = A + B
X86 can only do:
A = A + B (or A+=B)
Code written either way will work on the X86, and still be faster than 387 math, but preserving the registers takes significant overhead (Disassemble the test program for an example. The prints preserve, the disassembly test does not.) For the fastest code between systems, write your SIMD math as the X86 expects, manually preserving SIMD variables.
At least GCC for PPC doesnt seem to have any issues figuring out how to deal with a source and destination memory address being the same.
Enhancements:
- Created file with some i386, GCC dialect
<<lessSIMD Cross-platform headerst supports (or partially supports) x86 (MMX/SSE/SSE2) GCC and MSVC, PPC Altivec GCC and CodeWarrior, ARM GCC, and software-emulated SIMD.
NOTE: Code must be 16-byte aligned. Align to 16 when allocating memory.
X86/XSCALE (Intel) vs. PowerPC/MIPS
While the PowerPC and MIPS SIMD instructions take 2 source vectors and a destination vector, the Intel platforms only take a source and destination. Example:
PPC/MIPS can do:
C = A + B
X86 can only do:
A = A + B (or A+=B)
Code written either way will work on the X86, and still be faster than 387 math, but preserving the registers takes significant overhead (Disassemble the test program for an example. The prints preserve, the disassembly test does not.) For the fastest code between systems, write your SIMD math as the X86 expects, manually preserving SIMD variables.
At least GCC for PPC doesnt seem to have any issues figuring out how to deal with a source and destination memory address being the same.
Enhancements:
- Created file with some i386, GCC dialect
Download (0.008MB)
Added: 2006-03-17 License: zlib/libpng License Price:
1319 downloads
Audio::TagLib::MPEG::XingHeader 1.42
Audio::TagLib::MPEG::XingHeader is an implementation of the Xing VBR headers. more>>
Audio::TagLib::MPEG::XingHeader is an implementation of the Xing VBR headers.
SYNOPSIS
use Audio::TagLib::MPEG::XingHeader;
my $i = Audio::TagLib::MPEG::XingHeader->new($data);
print $i->isValid() ? "valid" : "invalid", "n";
This is a minimalistic implementation of the Xing VBR headers. Xing headers are often added to VBR (variable bit rate) MP3 streams to make it easy to compute the length and quality of a VBR stream. Our implementation is only concerned with the total size of the stream (so that we can calculate the total playing time and the average bitrate). It uses http://home.pcisys.net/~melanson/codecs/mp3extensions.txt and the XMMS sources as references.
new(ByteVector $data)
Parses a Xing header based on $data. The data must be at least 16 bytes long (anything longer than this is discarded).
DESTROY()
Destroy this XingHeader instance
BOOL isValid()
Returns true if the data was parsed properly and if there is a vaild Xing header present.
UV totalFrames()
Returns the total number of frames.
UV totalSize()
Returns the total size of stream in bytes.
IV xingHeaderOffset(PV $version, PV $channelMode) [static]
Returns the offset for the start of this Xing header, given the version and channels of the frame
see Audio::TagLib::MPEG::Header
<<lessSYNOPSIS
use Audio::TagLib::MPEG::XingHeader;
my $i = Audio::TagLib::MPEG::XingHeader->new($data);
print $i->isValid() ? "valid" : "invalid", "n";
This is a minimalistic implementation of the Xing VBR headers. Xing headers are often added to VBR (variable bit rate) MP3 streams to make it easy to compute the length and quality of a VBR stream. Our implementation is only concerned with the total size of the stream (so that we can calculate the total playing time and the average bitrate). It uses http://home.pcisys.net/~melanson/codecs/mp3extensions.txt and the XMMS sources as references.
new(ByteVector $data)
Parses a Xing header based on $data. The data must be at least 16 bytes long (anything longer than this is discarded).
DESTROY()
Destroy this XingHeader instance
BOOL isValid()
Returns true if the data was parsed properly and if there is a vaild Xing header present.
UV totalFrames()
Returns the total number of frames.
UV totalSize()
Returns the total size of stream in bytes.
IV xingHeaderOffset(PV $version, PV $channelMode) [static]
Returns the offset for the start of this Xing header, given the version and channels of the frame
see Audio::TagLib::MPEG::Header
Download (1.4MB)
Added: 2006-11-14 License: Perl Artistic License Price:
1076 downloads
Apache2::Filter::HTTPHeadersFixup 0.06
Apache2::Filter::HTTPHeadersFixup is a Perl module to manipulate Apache 2 HTTP Headers. more>>
Apache2::Filter::HTTPHeadersFixup is a Perl module to manipulate Apache 2 HTTP Headers.
Synopsis
# MyApache/FixupInputHTTPHeaders.pm
package MyApache::FixupInputHTTPHeaders;
use strict;
use warnings FATAL => all;
use base qw(Apache2::Filter::HTTPHeadersFixup);
sub manip {
my ($class, $ra_headers) = @_;
# modify a header
for (@$ra_headers) {
s/^(Foo).*/$1: Moahaha/;
}
# push header (dont forget "n"!)
push @$ra_headers, "Bar: MidBarn";
}
1;
# httpd.conf
< VirtualHost Zoot >
PerlModule MyApache::FixupInputHTTPHeaders
PerlInputFilterHandler MyApache::FixupInputHTTPHeaders
< /VirtualHost >
# similar for output headers
Apache2::Filter::HTTPHeadersFixup is a super class which provides an easy way to manipulate HTTP headers without invoking any mod_perl HTTP handlers. This is accomplished by using input and/or output connection filters.
It supports KeepAlive connections.
This class cannot be used as is. It has to be sub-classed. Read on.
<<lessSynopsis
# MyApache/FixupInputHTTPHeaders.pm
package MyApache::FixupInputHTTPHeaders;
use strict;
use warnings FATAL => all;
use base qw(Apache2::Filter::HTTPHeadersFixup);
sub manip {
my ($class, $ra_headers) = @_;
# modify a header
for (@$ra_headers) {
s/^(Foo).*/$1: Moahaha/;
}
# push header (dont forget "n"!)
push @$ra_headers, "Bar: MidBarn";
}
1;
# httpd.conf
< VirtualHost Zoot >
PerlModule MyApache::FixupInputHTTPHeaders
PerlInputFilterHandler MyApache::FixupInputHTTPHeaders
< /VirtualHost >
# similar for output headers
Apache2::Filter::HTTPHeadersFixup is a super class which provides an easy way to manipulate HTTP headers without invoking any mod_perl HTTP handlers. This is accomplished by using input and/or output connection filters.
It supports KeepAlive connections.
This class cannot be used as is. It has to be sub-classed. Read on.
Download (0.008MB)
Added: 2007-03-19 License: Perl Artistic License Price:
949 downloads
Heliodor 0.2.1
Heliodor packages contains the Metacity themes for the Beryl project. more>>
Heliodor packages contains the Metacity themes for the Beryl project.
Heliodor provides exactly what the header suggests, metacity theme support.
Heliodor is not yet feature complete but works on a basic level, and in the future will support basic transparency settings.
<<lessHeliodor provides exactly what the header suggests, metacity theme support.
Heliodor is not yet feature complete but works on a basic level, and in the future will support basic transparency settings.
Download (MB)
Added: 2007-03-18 License: GPL (GNU General Public License) Price:
954 downloads
MIME::Head 5.420
MIME::Head is a MIME message header (a subclass of Mail::Header). more>>
MIME::Head is a MIME message header (a subclass of Mail::Header).
SYNOPSIS
Before reading further, you should see MIME::Tools to make sure that you understand where this module fits into the grand scheme of things. Go on, do it now. Ill wait.
Ready? Ok...
Construction
### Create a new, empty header, and populate it manually:
$head = MIME::Head->new;
$head->replace(content-type, text/plain; charset=US-ASCII);
$head->replace(content-length, $len);
### Parse a new header from a filehandle:
$head = MIME::Head->read(*STDIN);
### Parse a new header from a file, or a readable pipe:
$testhead = MIME::Head->from_file("/tmp/test.hdr");
$a_b_head = MIME::Head->from_file("cat a.hdr b.hdr |");
Output
### Output to filehandle:
$head->print(*STDOUT);
### Output as string:
print STDOUT $head->as_string;
print STDOUT $head->stringify;
Getting field contents
### Is this a reply?
$is_reply = 1 if ($head->get(Subject) =~ /^Re: /);
### Get receipt information:
print "Last received from: ", $head->get(Received, 0), "n";
@all_received = $head->get(Received);
### Print the subject, or the empty string if none:
print "Subject: ", $head->get(Subject,0), "n";
### Too many hops? Count em and see!
if ($head->count(Received) > 5) { ...
### Test whether a given field exists
warn "missing subject!" if (! $head->count(subject));
Setting field contents
### Declare this to be an HTML header:
$head->replace(Content-type, text/html);
Manipulating field contents
### Get rid of internal newlines in fields:
$head->unfold;
### Decode any Q- or B-encoded-text in fields (DEPRECATED):
$head->decode;
Getting high-level MIME information
### Get/set a given MIME attribute:
unless ($charset = $head->mime_attr(content-type.charset)) {
$head->mime_attr("content-type.charset" => "US-ASCII");
}
### The content type (e.g., "text/html"):
$mime_type = $head->mime_type;
### The content transfer encoding (e.g., "quoted-printable"):
$mime_encoding = $head->mime_encoding;
### The recommended name when extracted:
$file_name = $head->recommended_filename;
### The boundary text, for multipart messages:
$boundary = $head->multipart_boundary;
<<lessSYNOPSIS
Before reading further, you should see MIME::Tools to make sure that you understand where this module fits into the grand scheme of things. Go on, do it now. Ill wait.
Ready? Ok...
Construction
### Create a new, empty header, and populate it manually:
$head = MIME::Head->new;
$head->replace(content-type, text/plain; charset=US-ASCII);
$head->replace(content-length, $len);
### Parse a new header from a filehandle:
$head = MIME::Head->read(*STDIN);
### Parse a new header from a file, or a readable pipe:
$testhead = MIME::Head->from_file("/tmp/test.hdr");
$a_b_head = MIME::Head->from_file("cat a.hdr b.hdr |");
Output
### Output to filehandle:
$head->print(*STDOUT);
### Output as string:
print STDOUT $head->as_string;
print STDOUT $head->stringify;
Getting field contents
### Is this a reply?
$is_reply = 1 if ($head->get(Subject) =~ /^Re: /);
### Get receipt information:
print "Last received from: ", $head->get(Received, 0), "n";
@all_received = $head->get(Received);
### Print the subject, or the empty string if none:
print "Subject: ", $head->get(Subject,0), "n";
### Too many hops? Count em and see!
if ($head->count(Received) > 5) { ...
### Test whether a given field exists
warn "missing subject!" if (! $head->count(subject));
Setting field contents
### Declare this to be an HTML header:
$head->replace(Content-type, text/html);
Manipulating field contents
### Get rid of internal newlines in fields:
$head->unfold;
### Decode any Q- or B-encoded-text in fields (DEPRECATED):
$head->decode;
Getting high-level MIME information
### Get/set a given MIME attribute:
unless ($charset = $head->mime_attr(content-type.charset)) {
$head->mime_attr("content-type.charset" => "US-ASCII");
}
### The content type (e.g., "text/html"):
$mime_type = $head->mime_type;
### The content transfer encoding (e.g., "quoted-printable"):
$mime_encoding = $head->mime_encoding;
### The recommended name when extracted:
$file_name = $head->recommended_filename;
### The boundary text, for multipart messages:
$boundary = $head->multipart_boundary;
Download (0.38MB)
Added: 2007-08-13 License: Perl Artistic License Price:
803 downloads
php_qrencode 0.1
php_qrencode is a PHP extension to generate qrcode. more>>
php_qrencode is a PHP extension to generate qrcode. The project is based on libqrencode.
only 2 function to generate qr code.
< code >
$qr = qr_encode (test for qrcode);
qr_save ($qr, 1.png);
< /code >
or you can output direct to stdout.
< code >
$qr = qr_encode (test for qrcode);
header ("Content-type: image/PNG");
qr_save ($qr);
< /code >
resource = qr_encode (string $text, [ int $version, int $mode, int $casesensitive]);
bool = qr_save (resource $qr, [ string $filename] );
<<lessonly 2 function to generate qr code.
< code >
$qr = qr_encode (test for qrcode);
qr_save ($qr, 1.png);
< /code >
or you can output direct to stdout.
< code >
$qr = qr_encode (test for qrcode);
header ("Content-type: image/PNG");
qr_save ($qr);
< /code >
resource = qr_encode (string $text, [ int $version, int $mode, int $casesensitive]);
bool = qr_save (resource $qr, [ string $filename] );
Download (0.006MB)
Added: 2007-04-26 License: BSD License Price:
916 downloads
Yasper 1.04
Yasper (Yet Another Smart Pointer) is a sweet and simple single-header smart pointer for C++. more>>
Yasper (Yet Another Smart Pointer) is a sweet and simple single-header smart pointer for C++.
Why write another C++ smart pointer?
There are two high quality libraries that include smart pointers: Loki and Boost. Alexandrescus Loki SmartPtr is customizable to a fault. I find policy templates unspeakably ugly and dont need the extra options. Boosts shared_ptr is quite nice, but is too restrictive and introduces undesirable dependency on the massive Boost library. What I need is a small, simple smart pointer: yasper.
Philosophy
small (contained in single header)
simple (nothing fancy in the code, easy to understand)
maximum compatibility (drop in replacement for dumb pointers)
The last point can be dangerous, since yasper permits risky (yet useful) actions (such as assignment to raw pointers and manual release) disallowed by other implementations. Be careful, only use those features if you know what youre doing!
<<lessWhy write another C++ smart pointer?
There are two high quality libraries that include smart pointers: Loki and Boost. Alexandrescus Loki SmartPtr is customizable to a fault. I find policy templates unspeakably ugly and dont need the extra options. Boosts shared_ptr is quite nice, but is too restrictive and introduces undesirable dependency on the massive Boost library. What I need is a small, simple smart pointer: yasper.
Philosophy
small (contained in single header)
simple (nothing fancy in the code, easy to understand)
maximum compatibility (drop in replacement for dumb pointers)
The last point can be dangerous, since yasper permits risky (yet useful) actions (such as assignment to raw pointers and manual release) disallowed by other implementations. Be careful, only use those features if you know what youre doing!
Download (0.002MB)
Added: 2007-05-25 License: zlib/libpng License Price:
885 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above header search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed