Month: August 2011

scalar.pl —-x strings

A UNIX Command $perl scalar.pl The variable $fred contains Fred here. Sum is 66. $cat scalar.pl $fred = “Fred here”; $barney = 56; $sum = 10 + $barney; print ‘The variable $fred’ . ” contains $fred.n”; print “Sum is $sum.n”; $cat scalar.pl $fred = “Fred here”; $barney = 56; $sum = 10 + $barney; print …

Read More

HTTP – Hypertext Transfer Protocol

Connected From This HTTP The Hypertext Transfer Protocol (HTTP) is an application-level protocol for distributed, collaborative, hypermedia information systems. It is a generic, stateless, protocol which can be used for many tasks beyond its use for hypertext, such as name servers and distributed object management systems, through extension of its request methods, error codes and …

Read More

httperf – HTTP performance measurement tool

Connected From This A UNIX Command $httperf –hog –server www.youtube.com httperf –hog –client=0/1 –server=www.youtube.com –port=80 –uri=/ –send-buffer=4096 –recv-buffer=16384 –num-conns=1 –num-calls=1 Maximum connect burst length: 0 Total: connections 1 requests 1 replies 1 test-duration 0.787 s Connection rate: 1.3 conn/s (787.4 ms/conn,

Read More

ASP.NET and Debian HOWTO

Installation 1. apt-get install apache2 2. apt-get install libapache2-mod-perl2 3. apt-get install libapache2-mod-mono configuration 1. /etc/apache2/sites-available/ 2. a2ensite default 3. mkdir -p /srv/www/default/public_html 4. mkdir /srv/www/default/logs 5. put a sample .aspx file in “/srv/www/default/public_html” 6. /etc/init.d/apache2 restart Testing 1. Browser URL — 127.0.0.1/<your .aspx file>

Read More

hello-again.pl —-x quotes…

A UNIX Command $perl hello-again.pl Greetings, small planet nWhat’s cooking? $cat hello-again.pl print ‘Greetings, small planet n’; print “What’s cooking?n”; $ UNIX Explanation Shows how single quotes differ from double quotes in hello-again.pl source : http://sandbox.mc.edu/~bennet/perl/leccode/index.html

Read More

response.write –x asp .

A Windows Command source : http://www.w3schools.com/asp/default.asp

Read More

hello.pl —x Prints the message using two different delimeters.

A UNIX Command $cat hello.pl # Prints the message using two different delimeters. print “Hello, world!n”; print qq=Did you say “Hello?”n=; $perl hello.pl Hello, world! Did you say “Hello?” $ UNIX Explanation “print” is categorized under Input/Output Functions. Prints the message using two different delimeters. source : http://sandbox.mc.edu/~bennet/perl/leccode/index.html

Read More

parameters tcp_retries2

A UNIX Parameter $cat /proc/sys/net/ipv4/tcp_retries2 15 $ Parameter Definition How many times to retry before killing alive TCP connection. RFC1122 says that the limit should be longer than 100 sec. It is too small number. The default value of 15 corresponds to ~ 13 – 30 minutes, depending on RTO. Parameter Code Internals snippet 1 …

Read More

First steps…

[BITS 32] [global start] [extern _k_main] ; this is in the c file start: call _k_main cli ; stop interrupts hlt ; halt the CPU

Read More

porting first steps asm code to GNU

.global start [extern _k_main] ; _start: call _k_main cli ; hlt ; $as –64 kernel_start.s kernel_start.s: Assembler messages: kernel_start.s:2: Error: junk at end of line, first unrecognized character is `[‘ $

Read More