net81813


Does standard insures quality?

Posted in Uncategorized by net81813 on the 7, February 2006

If we define Quality Standard is it enough?
Does it really ensures quality things?

I think no,
Defining quality standard and implementing defined quality standard is 2 different phases of one big project. I have seen many good standard for many things. These quality standards defines many points that is necessory for quality product/service/process etc.. But these standards is usually not define way of implementation. Some times it defines but not the best way to implement. I know its not possible becase it varies from seatution to seatution.

Quality standard says things should look like this(like ideal things), But not how to make it as defined in quality standard. Some time some quality standard provides some guidlines to implement standard. But those are just guidelines not more then that. Because implementation varies from seatution to seatution.

Implementing a quality standard is very much important. quality has directly relation with profit. If you increase quality, profit will reduce and if you try to increase profit then quality reduces(assuming rest of parameter are constant for both the case).

So at the time of implement a quality standard there should be some quality checking mechanism that really ensures that quality is really there. Again my observation says implementation of such quality checking process is not defined in standard because implementation is seatution specific.

What do you think?

.netrc for automating ftp client operation

Posted in Uncategorized by net81813 on the 6, February 2006

I have for to automate ftp uploading and ftp downloading with .netrc file. In this file we can save username and password to connect to ftp.

As this reside in user’s home directory so no need to worry about security. Just change file permission to -rw——- (600) so it can only read and write by owner.

To save username and password in following format.(following 3 lines)

machine ftp.ftpserver.com
login username
password mycodeword

In above 3 lines machine, login and password are file reserve words.
machine for specifying address of ftp server.
login for specifying username of ftp server.
password for specifying password of ftp server for above username.

In .netrc file you can write multiple entries. But for that just keep a 1 blank line between 2 entries.

Creating macro in .netrc
Macro is another very good feature. Using it many tasks can be automated. In sort we can say this a name give to group of ftp command. So for perticular task you have to write 6-10 commands to performe that task and you are doing that task repeatatively then you write macro.
You can write macro in following way.

macdef macro1
cd /d01/abc/dir1
put abc.txt
put abc.tar.gz
get def.pdf
quit

Here macdef is reserve word for .netrc file for rest of lines are  ftp commands with arguments.
macdef is used to define macro so in this above example macro1 is name of newly defined macro. macro1 can be used to execute commad set of command followed by macdef line.

macro can use parameter also
macdef macro2
cd /d01/abc/dir1
put $1.tar.gz
quit

When above macro is called it will take argumen if supplied and 1st argument will be used in script in above example see line put $1.tar.gz $1 is replaced by supplied argument. (See how to call macro with argument below.)

In one .netrc file there can be more than one macro. Rule is same as above that keep a blank line after each macro. (dont forgot to put a blank line after last macro).

Using macro

First way is start normal ftp session from command line. use macro name as command from ftp> prompt.

ftp>macro1
Above will execute ftp command defined under macro1.
You can call in following way also.

root@localhost$ echo  “\$ macro1″ | ftp ftp.ftpserver.com

as

root@localhost$ echo “\$ macro2 `date +’%Y%m%d’`” | ftp ftp.ftpserver.com

This will receive a parameater and performe action useing that parameter.

Suggestions:
* Set .netrc file permission to 600 (-rw——-)
* Add a blank line after each macro.
* use -v option with ftp to get more information.

Master Pages ASP.NET 1.1

Posted in Uncategorized by net81813 on the 6, February 2006
Hello folks,

At last I have found Master Pages implementation for ASP.NET 1.1. Right now I am reviewing it. So at this moment I am not able to share enough.

I have found 2 links:
Creating Template-Driven Web Sites with MasterPages By Scott Mitchell
http://aspnet.4guysfromrolla.com/articles/040704-1.aspx

MasterPages: Improved Version
Author Paul Wilson
http://authors.aspalliance.com/paulwilson/articles/?id=14

Resources of Open Source or Industry Standard Tools for .net development

Posted in Uncategorized by net81813 on the 6, February 2006
This blog entry contains resources about following.
Testing
Automated Build System
Code Analysis
Documentation
Code Generation
Versioning system
Bug Tracking system
In last few day I was surfing then net and I have found some good resources that can assist in development. You people may be knowing about many of these resources.  Nowaday microsoft oriented develpment is also adoping open source tools.
If you are reading this blog and found you dont have enough time to go through all links then ignor all links below just try to think about last 2 article links.
Most of them are open source and industry standard tools.

——————————————————–

Testing

Testing frameworks for ASP.NET
http://nunitasp.sourceforge.net

Test reporting tools, test coverage tools
http://nunit2report.sourceforge.net/

More resource on Testing
Improve the Design and Flexibility of Your Project with Extreme Programming Techniques
http://207.46.196.75/msdnmag/issues/04/04/ExtremeProgramming/default.aspx
Practical Unit Testing – a manual
http://www.codeproject.com/csharp/unittestmanual.asp
Add-ins to Visual Studio.NET
http://www.testdriven.net

For java
JUnit
——————————————————
Automated Build System
NAnt Home Page – NAnt is a free .NET build tool
http://nant.sourceforge.net/
NAntRunner Visual Studio .Net AddIn
http://nantrunner.sourceforge.net/
NAnt Help
Using NAnt to Build .NET Projects
A Brief Introduction to NAnt  By Eric Desch
For java
Ant is very good apache project for build system.
——————————————————–
Code Analysis Tool
FxCop
It is a code analysis tool that checks .NET managed code assemblies for conformance to the Microsoft .NET Framework Design Guidelines. It uses reflection, MSIL parsing, and callgraph analysis to inspect assemblies for more than 200 defects in the following areas:
This can help us  to achive good coding standard and many more.
http://www.gotdotnet.com/team/fxcop/
FxCop Documentation
——————————————————–
Documentation
NDoc
http://ndoc.sourceforge.net
For java
Everyone knows about javadoc.
——————————————————–
Code Generation
CodeSmith is a template-based code-generation tool that uses a syntax similar to ASP.NET to generate any type of code or text. Unlike many other code-generation tools, CodeSmith does not require you to subscribe to a particular application design or architecture. Using CodeSmith, you can generate anything from a simple, strongly typed collection to an entire application.

For those interested in the freeware version of CodeSmith, the CodeSmith 2.6 freeware version will continue to be available here.
http://www.codesmithtools.com/freeware.aspx

CodeSmith Users’s Guide

Code Generation with Codesmith by Brian Boyce

For java
xDoclet
xDoclet.sf.net
More resource for code generation for C#

NCodeGen is a code generation framework that can be used with any template engine.
http://ncodegen.sourceforge.net/

This guide is the reference for the Velocity Template Language (VTL). For more information, please also refer to the Velocity User Guide.
http://jakarta.apache.org/velocity/docs/vtl-reference-guide.html

XSLT Simplify Development and Maintenance of Microsoft .NET Projects with Code Generation Techniques
http://msdn.microsoft.com/msdnmag/issues/03/08/CodeGeneration/
——————————————————–
.NET Reflector to examine assemblies
Lutz Roeder’s .NET Reflector
http://www.aisto.com/roeder/dotnet
——————————————————–
Versioning system
-Visual Source Safe
-CVS 
——————————————————–
Bug Tracking system
Bugzilla
http://bugzilla.org

How do I use Bugzilla?
——————————————————-
Using Open Source .NET Tools for Sophisticated Builds
http://www.15seconds.com/issue/040621.htm

Ten Must-Have Tools Every Developer Should Download Now
http://msdn.microsoft.com/msdnmag/issues/04/07/MustHaveTools/default.aspx
———————————————————————————– 
Happy Programming.
Image