2011-08-16

Count number of lines in a file using DOS - Continued

The original article of "Count number of lines in a file using DOS" is posted from "Brett Batie"'s blog.
I have a requirement to count number of lines of an online application. I need to count total number of lines from multiple files. 
 I type the following under DOS:

























 




2011-03-09

COBOL: Define data as UNSIGNED-SHORT

Today, from the microfocus staff Chunk Edgin Forum post I know SPACES == 2020 (hexadecimal) == 8224 (decimal).
To compose a high performance COBOL program, a programmer has to understand how the data is stored in memory and accessed by CPU. This link gives pretty clear explanation about it. I like their examples.They are short,but easy to be understood.

2011-03-08

Apache:Multiple NameVirtual Host TimeOut configuration.

I have multiple name based virtual host supported by Apache2.2.11.

I have a perl cgi code has to run for 25 minutes.

So I need to enlarge Apache TimeOut directive.

1.Fail, I tried to change httpd-default.conf TimeOut from 300 to 3000
#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 300

I save httpd-default.conf file, restart Apache, and rerun my perl code.
I still got "Internal Server Error".

2.Succeed, this time I add
TimeOut 3000
to my virtual host configuration like


ServerName abc.com
ServerAdmin mike@mikefavor.dyndns.org
Timeout 360000
... ...


I save httpd.conf file, restart Apache, and rerun my perl code.
I make it, my code is successfully finished and I got the response from browser which I expect.

Reference links which help to solve my above problem:
1.http://support.microsoft.com/kb/813827
2.http://httpd.apache.org/docs/2.2/mod/core.html#timeout
3.http://httpd.apache.org/docs/2.2/
4.a persistent http connection
5.So it must be my httpconfi issue
6.How to test network faq
7.Add timeout in virtual host config