STUB

Friday, February 8, 2008

I watched a movie: American Gangster



The film is about blue magic… and its complex transmission protocol, and the true gangster(Denzel Washington) who runs it. And a PD officer (Russell Crowe) who just exists. And the depresses American economy which breeds the characters.

Once in awhile there comes a movie that is worth watching over and over and over (:D) again. just forget about the story.. (just for a second) think about the Actors that is involved…
Denzel Washington* and Russell Crowe* do u people wanna another reason to watch this movie… oh I forgot abot the director Ridley Scott he kinnada 1/10 of entire American movie industry.

Tuesday, December 25, 2007

How to get the maximum data stream of ADSL connection

How to get the maximum data stream of ADSL connection


Nowadays ADSL becomes as a popular method to access the internet. Because it's a cheapest way to access the internet in many countries. Therefore the number of clients in an ISP are increased exponentially. So the connection speed will have a lower value. That's a major problem. There are many alternatives to get the exact data stream. One of the best solution is "Increase the bandwidth". This can be done by the ISP or your self. Let we see the steps to increase the bandwidth.
Do you know Widows Operating system uses 20% amount of your bandwidth. Most of users don't know it. So make sure the value of the shared bandwidth is equal to zero ro not. It should be equal to zero. Otherwise You can't get a nice data stream. Here are steps that I tested and get maximum downstream and upstream in everytime.

Use following procedure to get the maximum data stream.
1. Go to Start ---> Run ---> gpedit.msc, press OK.
2. Then go to Computer Configuration -> Administrative Templates -> Network -> QoS packet Scheduler.
3. open “Limit Reservable bandwidth”(at the right position) and select “Enabled”, and change the value to 0.

Enjoy with this new data stream. Now you will get the maximum data stream !!!.

Friday, September 28, 2007

Information hiding VS Encapsulation

Information hiding:
 done to help the client… so even on a change client can work with out and recoding.
Hiding the parts of a program which are most likely to change… hiding is done through a interface… this interface doenst change.. only the implementation… so whrn we modify the hidden part.. the other code sections which use this chance part doesn’t have to change.
In object-oriented programming, information hiding reduces software development risk by shifting the code's dependency on an uncertain implementation (design decision) onto a well-defined interface.
Encapsulation
done to prevent clients accessing the.. privet stuff of the class.. to hide the things the client shouldn’t knw..
We use an interface to get access to an object's data and behavior. The object's data and behaviors are contained within the object, so a client application can treat the object like a black box accessible only through its interface. This is a key object-oriented concept called Encapsulation. The idea is that any programs that make use of this object won't have direct access to the behaviors or data-but rather those programs must make use of our object's interface

C# Database connectivity.

Data access services are provided by ADO.net.. Ado .net is an object oriented component that allows interaction with data bases.
Disconnected data access architecture(Data setlocal buffer of persistence data, connecte to the database get the required data to a data set and disconnect from the database)
But also provide connection oriented data access.
Data set objects stores tables their relationships and constraints.. So the user can make updates to the dataset locally and may updated the database when needed.(reduces the network traffic and increase the performance)
Different components:
1.Data set local buffer of tables or a collection of disconnected record sets.
2.Data tableused to contain data in a tabular form, rows and columns
3. DataRowSingle record in a datarow
4.DataColumn fiels of a Data table.
5.Datarelationrepresent s differtent relationships between different table ina data set.
6.constraint  represents different constraints and limitations that apply to a field or column
ADO .net contains some database specific classes
SYSTEM.DATA.SqlClient
General class
SYSTEM.DATA.OleDb (but database specific classes optimese the performance)






Steps of accessing a database using ADO.net
1. Defining the connection string for the database.
2.Defining the connectionusing the connection string
3.Defining the command string(command string that contains the query)
4.Defining the data adaptorusing the command string and the connection object.
5.Creating a new dataset object
6.1 if the command is a selection command filling the dataset object with the result of the query through the data adaptor
6.1.1 Reading the tables in the dataset using DataRow and Column Objects
6.2if the command is update delete insert, update the dataset through the data asapter


CODE SAMPLE

Using Systm.data;
Using Syatem.data.sqlclient/oledb;
string connstring=”server=..;database=…;uid=..;pwd=..;”;
sqlConnection conn= new sqlconnection(connstring);
string command=”select * from …”;
sqlDataAdaptor dataAdaptor=new sqldataAdaptor(command,conn); //fills a dataset when executed
Dataset ds =new dataset();
//filling the results using a data adaptor
dataAdaptor.fill(ds,”prog”); // fill the data to ds store the data in a prog table
Datatable table=ds.Tables[“prog”]; //getting and referenc to the data table n the data set so tah we can access the data
String value=table.rows[0][attrname].tosrting();

C# Enumeration

C# supports enumeration using the enum keyword. Enumerations like classes and structures allows us to create new types. Contains list of named constants, (mostly elements are represented with in the enumerated list by primitive types integers)
Why we need enumerations.
Manage constants… to clearly limit the domain of values… (so when using conditions such as case, if we use a enumerated type for the case statement there wont be any default case, since enumerated typed doesn’t allow values beyond the domain/ value range of a enumerated type is pre defined and we are aware of all the possible values that can be represent using enumerated type)
Some useful enumerations
Days of the week, names of the month, connection types, file open methods…

C# structures

Structures are light weight objects … but different to classes
Structures are value type(classes are reference type) structures are allocated on the stack and passed to the methods by value…(by making copies)
Structures may contain constructors
Cannot be inherited by other structures.
Like other classes in C# structures are also inherited by System.Object class
Instance of a structures can be create with or without the new keyword.
(Most of the inbuilt types such as System.Int32,System.double… System.boolen are implemented as a structures )

Eg:
Struct point
{
Public double x;
Public double y;
Public point (int x , int y)
{
This.x=x;
This.y=y;
}
Public overrides string ToString() // over ridding the To sting method of the System.Object
{
Return “(“+x “,” +y +”)”;
}

}


• Do not write your own no argument constructor () …. (you can the compiler will give u errors)

Friday, August 17, 2007

McLaren-Ferrari,McLaren can process Ferrari data. better than them


ferrari should be ashame....! ferrari.., the people with the big money and a bad ass mouth, cant even process there own data,, or at least protect it.. what i think is that, IF some how macleran has stolen so called confidential data,, its good cause if ferrari peple had those data for them selfs they will never know how to use it... :D how are they supposed to process data,,, they are trying to learn how to fill the tanks... and one saw this weeks race will know what im taliking about... poor massa.. gud guy.
the bad thing is. if some how maclaren fail to prove the innocent,, they will loose there all constructors points… this is a very bad decision.. because every one knows dat.. Mac can do better than ferrai by there own.
This decision is NOT GOOD at all