Saturday, July 31, 2004

Can we run .NET applications on Linux paltform?

Can we run .NET applications on Linux paltform?
If any one had asked me question, Surely my answer would have been NO
But i was wrong, we ca nrun .NET applications on linux this magic can be done by using the MONO.
Very good link for this is.
Installing Mono: Running .NET on Linux and Windows by Charlie Calvert.

Wednesday, July 28, 2004

New market getting hotter MSNBC.

Microsoft has launched the MSNBC.com against the news.google.com.
Look of site is great and looks full of new features.

Monday, July 26, 2004

The Arrival of PHP 5.

The fourth beta release of PHP 5 came out at the end of December 2003.
This version has lot many additions and are increasing its usabilities.
1) Exception Handling.
It can raise exceptions and handle to make your software more robust. Something similar to try ... catch statements in java and c++.
2) More object-Oriented support.
It have added the more types of variable like in other oop languages. Eg.Public, Private, Protected.
It alse have static methods and variables and abstract classes.
3) Type Checking.
It have a better typechecking which allows to check the type of variable or object passes to method.
4) Pass by value.
In PHP 5 the objects are always passed by reference, unlike the php4.
This have really made me eager to read the complete documentation of php 5.
and will right more about that.

Friday, July 09, 2004

Mod Perl settings.

In httpd.conf
1) PerlRequire file is commonly used for intialization during server startup time.
e.g PerlRequire  perl-scripts/script_to_load_at_startup.pl
 
2) In an httpd.conf <Location /foo> or .htaccess you need:
    PerlHandler sub_routine_name
    This is the name of the subroutine to call to handle each request. e.g. in the PerlModule Apache::Registry this is ``Apache::Registry::handler''.
 
If PerlHandler is not a defined subroutine, mod_perl assumes it is a package name which defines a subroutine named ``handler''.
    PerlHandler   Apache::RegistryWould load Registry.pm (if it is not already) and call it's subroutine ``handler''.

Thursday, July 08, 2004

Fetchmail for one domain and multiple users.

Fetchmail one of the complex system under linux.

I was looking for a mailing system for our LAN as below.

All the mails on server should be downloaded to our local gateway machine.

and then mails should be distributed to each user.

Again mails from our local system to local domain should also go to corresponding user.

One more thing is i have to catch the mails going to our own remote server domain and distribute it to corresponding local server user

At first all was looking as not my cup of tea but

The important part was to download the mail from server and distributed to each user on lan.

I found the solution using the fetchmail, sendmail, and local-mail-domains

The .fetchmailrc file i configured as below.

 

defaults
poll mailserver.com with protocol pop3
user username1@mailserver.com with password pwd1 is localusername1

user username2@mailserver.com with password pwd2 is localusername2

 

And added the domain names of local and server machine to file

/etc/mail/local-host-names

 

so that all mails destined to the domains listed in /etc/mail/local-host-names will be trapeed at the local machine only.

 

But running fetchmail for regular interval was also needed to download mails from server so i ran the fetchmail in daemon mode and specifying the interval.

The command used for that was

fetchmail -d 300 -v -f '/home/kirant/.fetchmailrc'

 

again few thing like

To Allow mails to be send by foreign clients (machines on lan) from this server Change following line

    DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
To
    DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl

 

Inside the Webmin an entry for trusted user is added.

And is working cool now.

Still few things are remaining like custom messages for mails going to nonexistant user and running fetchmail automatically

Hope fullly next few days i will be through this and having a Great experience of setting up one LAN Mail server.

And waiting for next project to start.

 

 

 

 

Saturday, July 03, 2004

MSDN Just Published

 MSDN Just Published: Walkthrough: Smart Client Data in Visual Basic 2005

This walkthrough demonstrates several new features in Visual Studio 2005 to assist in developing applications that access data.

 Read Complete Article
 
http://msdn.microsoft.com/vbasic/default.aspx?pull=/library/en-us/dnvs05/html/smartclient_vb2005.asp

Friday, July 02, 2004

Aspect-oriented programming


There is always some new happening in the programming world.
Though OOP has made a long, There is always a question of What Next?
Is It Aspect-oriented programming(AOP)?.
Read more
Google It