Little Notes
- AWStats :
- To run awstats from command line:
perl awstats.pl -config=mydomain -update - To get statistics from command line on a static html page:
perl awstats.pl -config=mydomain -output -staticlinks>awstats.mydomain.html - If you want to see and update your statistics from a browser:
In C:/Program Files/AWStats/wwwroot/cgi-bin/awstats.mydomain.conf, set:- AllowToUpdateStatsFromBrowser=1
In your browser’s address bar:
- http://yoursitename/awstats/awstats.pl?config=mydomain
- If you get an 500 Internal error on your browser when you hit the link below:
In httpd.conf file write: ScriptInterpreterSource registry
Or in awstats.pl change the first line: #!c:/Perl/bin/perl - If you get some statistics but not all of them, in awstats.mydomain.conf file, change:
ValidHTTPCodes=”200 304 302 305″
ValidSMTPCodes=”1 250 200″
LevelForBrowsersDetection=0
LevelForOSDetection=0
LevelForRefererAnalyze=0
LevelForRobotsDetection=0
LevelForSearchEnginesDetection=0
LevelForKeywordsDetection=0
LevelForFileTypesDetection=0
LevelForWormsDetection=0 - For questions see AWStats page:
http://awstats.sourceforge.net/
http://awstats.sourceforge.net/docs/awstats_faq.html
- To run awstats from command line:
- Excel-TR :
- In Turkish Excel, to calculate the difference between two days:
The start date in A1 is in this format: dd.MM.yyyy
The end date in B1 is in this format: dd.MM.yyyy
The difference between these dates:
write the formula that is below in column C1
=ETARİHLİ(A1;B1;”Y”)&” Yıl “&ETARİHLİ(A1;B1;”YM”)&” Ay “&ETARİHLİ(A1;B1;”MD”)&” Gün”
And set the format of C1 to general.
- In Turkish Excel, to calculate the difference between two days:
- Regular Expressions In Javascript:
- Same as trim:
var str = str.replace(/^\s+/, ”).replace(/\s+$/, ”); - Replace all space characters in a string:
var str = str.replace(/\s/g,”); - Check if the name field of user input is correct:
var regExp = /[0-9]|[^a-zA-Z]\s|^\s$/g;
var result = regExp.test(str);
alert(result); - Email Validation:
var str = some email address;
var regStr = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+[a-zA-Z0-9]{2,4}$/; if(str.match(regStr)){
alert(’valid email address.’);
}else{
alert(’Please enter a valid email address.’);
return false;
}
- Same as trim:
- Mozilla _POST problem with use of JavaScript
