RSS
 

Archive for March, 2010

Winning proposals must be client centered, not company- or product-centered

29 Mar

Now, i am interesting on how write software proposals. i am searching on the internet to get more information on how write wining proposals, here the link will help us until i write my own article

“Winning proposals must be client centered, not company- or product-centered”

http://www.technologyevaluation.com/research/articles/how-to-write-a-winning-proposal-18632/

 
 

Generating Random Numbers In Java

25 Mar

 
No Comments

Posted in J2SE

 

Integrating Twitter Into An ASP.NET Website

25 Mar
 
No Comments

Posted in ASP.Net

 

Computer Company Started In Garage 30 Years Ago Now In Smaller Garage

24 Mar

CAMBRIDGE, MA—In the summer of 1980, MIT graduates Donald Faber and Peter Haberle moved into an empty two-car garage and started work building their first ever personal home computer. Almost 30 years later, what began as a humble two-man operation has since grown into an even more humble, even more cramped computer company, based out of an even smaller single-car garage. Read More

Transfer from: http://www.theonion.com/articles/computer-company-started-in-garage-30-years-ago-no,17124/

 
 

SharePoint 2010 is running Windows 7

23 Mar
 
 

Moment @ Nullable in .Net

23 Mar

Nullable value…why are we introducing …

in studying of object oriented concepts, we know that we have two data type Value type & Reference type the famous difference between the two is the.

  • value type contain the actual value of variable but,
  • reference type contain the address (reference) of the object

but there is another difference which may be some people don’t know it

  • value type can’t contain null value, if it hasn’t value, it will be default value (for example, int data type if it doesn’t have any value it will be Zero).
  • reference type allow null value.

now you get the difference, let ask you a question, Do we need null in value type ? …thinking… the answer is yes, we need it. let’s imagine that we have database contain employee which consist some columns may be allow null like Salary and so on, how you can map this @code, if you use default value … so you didn’t get the actual meaning of your business @your code. null value doesn’t means zero or empty string, it means that you don’t have enough information  . so there are difference … the solution is Nullable Value. Nullable value is new generic type which allow nullability of value type, Nullable<T>.

Nullable @C#

  • ? is new modifier means Nullable so when you need to define Nullable value type  int? i;
  • ?? operator can convert from Nullable type to non-Nullable type with default value. So “ int x;     int? y;     x = y ?? 0“ will assign the value of y to x if it is not null, and will assign the value 0 to x otherwise.
  • if you try to add two Nullable values and one of two is null value so the result of final addition will be NULL
  • For comparison operators, comparing two nullable types is always going to result in a bool value, not a bool? value.
int? nullableInt;
int? nullValue = null;
int? notNull = 123;
bool? answer1 = true;
bool? answer2 = false;
bool? answer3 = null;
int? nullableInt;
int? copy = nullableInt;    // Invalid as nullableInt is not yet assigned

int standardInteger = 123;
int? nullableInteger;
decimal standardDecimal = 12.34M;
// Implicit conversion from int to int?
nullableInteger = standardInteger;
// Explicit conversion from int? to int
standardInteger = (int)nullableInteger;
// Explicit cast from decimal to int?
nullableInteger = (int?)standardDecimal;
int? a = 55;
int? n = null;
int? result;
result = a * 2;         // result = 110
result = a * n;         // result = null

bool? result;
result = true & null;       // result = null
result = false & null;      // result = false
result = true | null;       // result = true
result = false | null;      // result = null
result = true ^ null;       // result = null
result = false ^ null;      // result = null

My Source: http://www.blackwasp.co.uk/CSharpNullableDataTypes.aspx

 
No Comments

Posted in C#

 

Serialization & DeSerialization … Note This

23 Mar

in this post, i will summarize Serialization & DeSerialization in java, i am reading this chapter from Java Head First book and i found it very interesting “I am crazy about Head First Series”, i get the following screenshot including all the notes, and @end of my post i implement two methods as example to implement Serialization & DeSerialization in java code…..

import java.io.*;
import java.util.logging.Level;
import java.util.logging.Logger;

public class MySerializer
{
public void SerializeObject()
{
ObjectOutputStream objectOutputStream = null;
try
{
FileOutputStream fileOutputStream = new FileOutputStream(“MyFile”);
objectOutputStream = new ObjectOutputStream(fileOutputStream);
objectOutputStream.writeInt(1);
objectOutputStream.writeInt(2);
objectOutputStream.writeInt(3);
}
catch (FileNotFoundException ex)
{
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
catch (IOException ex)
{
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
finally
{
try
{
objectOutputStream.close();
}
catch (IOException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
}
}

public void DeSerializeObject()
{
ObjectInputStream objectInputStream = null;
try
{
FileInputStream fileOutputStream = new FileInputStream(“MyFile”);
objectInputStream = new ObjectInputStream(fileOutputStream);
int x=objectInputStream.readInt();
objectInputStream.readInt();
objectInputStream.readInt();
System.out.println(x);

}
catch (FileNotFoundException ex)
{
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
catch (IOException ex)
{
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
finally
{
try
{
objectInputStream.close();
}
catch (IOException ex) {
Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
}
}
}
}

My Reference: Java Head First Book

 

LINQ

22 Mar

 
 

Difference between Web Site & Web Application @ Visual Studio

21 Mar

WebSite

  • The Web Site project really is not a project at all since Visual Studio 2005 solution and project files are not created.
  • All pages and code are stored in a directory, much like the traditional ASP model. When it comes to deployment, the easiest approach is to copy all of your files to your Web server and everything compiles on demand
  • You could also use the aspnet_compiler.exe utility to precompile your site into a binary file and deploy to your Web site.

Web Application

  • consists of a solution (.sln) and project files (.vbproj).
  • It provides the benefit of generating a single assembly in the local /bin folder ready for deployment.
  • This model also makes it easier to incrementally deploy changes made to your site.

My Source: http://msdn.microsoft.com/en-us/library/aa730880(VS.80).aspx#wapp_topic5

 

Graphical User Interface @ J2SE

21 Mar

 
No Comments

Posted in J2SE

 
 
 

You need to log in to vote

The blog owner requires users to be logged in to be able to vote for this post.

Alternatively, if you do not have an account yet you can create one here.

Powered by Vote It Up