Sponsored Content
The Lounge What is on Your Mind? Cartoons for Geeks This Week In Applied Mathematics Post 302755533 by Linux Bot on Sunday 13th of January 2013 04:55:01 PM
Old 01-13-2013
This Week In Applied Mathematics

2013-01-13T22:53:36+01:00
Image


Don't believe me? Try it out: http://nayuki.eigenstate.org/page/ca...ion-javascript

Tweet
Image Image Image Image
Image

Source...
 

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

mathematics operations in unix

Hello guys! Can say me anybody about operatios with unix, I don't to make operations, only inside in a variable, like this #y=4 #x=2 #let z=$y-$x #echo $z # 2 but I can't to make mathematical operations with decimal like this #y=3.2 #x=1.5 #let z=$y-$x #echo $z # 3 this... (2 Replies)
Discussion started by: cesar720213
2 Replies

2. UNIX for Dummies Questions & Answers

mathematics in shell script

Hi Friends, I am new to shell scripting and a trying to work this out. I have a variable called $number. The value in this variable is 10 I want to display $number - 2 in a mail. The result would be 8 eg. mail -s 'subject' user <<eof the result of your calculation is $number - 2... (2 Replies)
Discussion started by: sureshy
2 Replies

3. UNIX and Linux Applications

Where is UNIX applied presently

Can any one of you post the applications of UNIX? (6 Replies)
Discussion started by: chinni1888
6 Replies

4. Shell Programming and Scripting

hell & mathematics

I've been able to generate output based on the code scarfake provided me (thanks again man). A little background so everyone more or less knows whats going on: I needed code that would propagate a database with 100,000 entries, for capacity testing purposes, something like a stress test. ... (5 Replies)
Discussion started by: ogoy
5 Replies

5. Shell Programming and Scripting

Which is the best way/command to do mathematics in UNIX scripting?

Hello all! I used to use expr for doing simple mathematics, but has a main advantage and a main disadvantage: The advantage is that it can take variables for numbers (e.g.{1}: echo "Give me first" read lol echo "Give other" read lil sum=`expr $lol + $lil` echo "The sum of $lol and $lil =... (5 Replies)
Discussion started by: hakermania
5 Replies

6. SuSE

HOSTNAME not being applied

I have set up my hostname in dhcp and my dns server, but I cannot get the client to pick up the hostname that is listed for the ip. IE. 10.32.23.4 hostname should be client4 Anyone know why? It was working before and just stopped working (1 Reply)
Discussion started by: 3junior
1 Replies

7. What is on Your Mind?

Forum Trivial Pursuit - New Computer Science and Mathematics Trivia for UNIX.com

I have added a new experimental "Computer Science and Mathematics Trivia - True or False" section in the discussions, currently under the tags box. In the future, I plan to Expand this feature to add more trivia categories from math, science and technology. Keep track of correct and... (20 Replies)
Discussion started by: Neo
20 Replies
Plack::Middleware::Deflater(3pm)			User Contributed Perl Documentation			  Plack::Middleware::Deflater(3pm)

NAME
Plack::Middleware::Deflater - Compress response body with Gzip or Deflate SYNOPSIS
use Plack::Builder; builder { enable sub { my $app = shift; sub { my $env = shift; my $ua = $env->{HTTP_USER_AGENT} || ''; # Netscape has some problem $env->{"psgix.compress-only-text/html"} = 1 if $ua =~ m!^Mozilla/4!; # Netscape 4.06-4.08 have some more problems $env->{"psgix.no-compress"} = 1 if $ua =~ m!^Mozilla/4.0[678]!; # MSIE (7|8) masquerades as Netscape, but it is fine if ( $ua =~ m!MSIE (?:7|8)! ) { $env->{"psgix.no-compress"} = 0; $env->{"psgix.compress-only-text/html"} = 0; } $app->($env); } }; enable "Deflater", content_type => ['text/css','text/html','text/javascript','application/javascript'], vary_user_agent => 1; sub { [200,['Content-Type','text/html'],["OK"]] } }; DESCRIPTION
Plack::Middleware::Deflater is a middleware to encode your response body in gzip or deflate, based on "Accept-Encoding" HTTP request header. It would save the bandwidth a little bit but should increase the Plack server load, so ideally you should handle this on the frontend reverse proxy servers. This middleware removes "Content-Length" and streams encoded content, which means the server should support HTTP/1.1 chunked response or downgrade to HTTP/1.0 and closes the connection. CONFIGURATIONS
content_type content_type => 'text/html', content_type => [ 'text/html', 'text/css', 'text/javascript', 'application/javascript', 'application/x-javascript' ] Content-Type header to apply deflater. if content-type is not defined, Deflater will try to deflate all contents. vary_user_agent vary_user_agent => 1 Add "User-Agent" to Vary header. ENVIRONMENT VALUE
psgix.no-compress Do not apply deflater psgix.compress-only-text/html Apply deflater only if content_type is "text/html" LICENSE
This software is licensed under the same terms as Perl itself. AUTHOR
Tatsuhiko Miyagawa SEE ALSO
Plack, <http://httpd.apache.org/docs/2.2/en/mod/mod_deflate.html> perl v5.14.2 2012-06-18 Plack::Middleware::Deflater(3pm)
All times are GMT -4. The time now is 09:17 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy