Dear SA students,
Today I was shocked to find out that some of you have requested the internship company to increase your allowance. Please note that for such unprofessional behavior, ISS will take disciplinary action against you.
Regards,
Megan
Reference: ISS_104 Announcement
Thursday, April 17, 2008
ANNOUNCEMENT FROM IVLE!!!!!!!!!!!!!!!!
Friday, April 11, 2008
Binding ArrayList with DataGrid
I will discuss how to create an ArrayList of objects and bind it to a DataGrid control using DataSource property.
Step 1. Creating a Class
First step is to create a class. I call my class Developer, which is listed in Listing 1. It's properties are FirstName, LastName, Age, Skills, and Experience.
public class Developer
private string firstName;
private string lastName;
private int age;
private string skills;
private int experience;
public Developer(string firstName, string lastName, int age, string skills, int experience )
{
this.firstName = firstName;
this.lastName = lastName;
this.age = age;
this.skills = skills;
this.experience = experience;
}
public string FirstName
{
get { return this.firstName ; }
}
public string LastName
{
get { return this.lastName ; }
}
public int Age
{
get { return this.age ; }
}
public string Skills
{
get { return this.skills ; }
}
public int Experience
{
get { return this.experience ; }
}
}
Listing 1. Developer class
Step 2. Creating an ArrayList of Objects
Now next step is to create an ArrayList object of Developer class. Listing 2 adds 6 items to the ArrayList.
private ArrayList GetList()
ArrayList list = new ArrayList();
list.Add(new Developer("Mahesh", "Chand", 30, "C#,ASP.NET,Windows Forms", 10)) ;
list.Add(new Developer("Michael", "Gold", 35, "GDI+, ASP.NET", 15)) ;
list.Add(new Developer("Bhasker", "Das", 26, "VB.NET, Web Applications", 4)) ;
list.Add(new Developer("Ashish", "Singhal", 24, "ADO.NET, GDI+", 4)) ;
list.Add(new Developer("Neel", "Beniwal", 3, "C#,ASP.NET,Windows Forms", 0)) ;
list.Add(new Developer("Melanie", "Talmadge", 25, "Java", 2)) ;
return list;
}
Listing 2. ArrayList of Developer
Step 3. Binding with DataGrid
Now we can bind our ArrayList using DataGrid.DataSource property and DataGrid would understand what to display in its columns. The following code binds the ArrayList to DataGrid.
ArrayList list = GetList();
dataGrid1.DataSource = list;
Step 4. The Result
Now if I run my application, the output in DataGrid looks like Figure 1.
Tuesday, April 8, 2008
**************Exam Question ***************
"Good luck SA28, we know all of you are only interesting exam questions . No one from SA28 celebrate this blog. We are so sad :( Please post comments and post Articles to this blog."
Paper 1: OOAD Exam
Paper 1, section A (Esther's)
1. Given a case make a system use case, elaborate your scope, give explanation why you do it that way, any other notes if you want to, and explain each process,
2. Give a domain model based on your use case and explain each bussiness entity,
3. From your use case make an activity diagram with swim lanes. Point out internal worker if any,
4. Revamped your use case with extend, include, and generalization. Explain why you do it that way.
Paper 1, section B(Yuen Kwan's)
1. Given an explanation of the process of an activity. Do an analysis modeling(?) and draw a colaboration diagram,
2. From the same explanation, draw a sequence diagram that clearly depict the use of three tier system and ado.net,
3. Draw a class diagram, still from the same text.
4. Descript how you can improve your system with include, extend, and inheritance.
Paper 2: C# Exam
Paper 2, Section A(Programming/Venkat)
1. Given a case, write a program using basic programming technique and modular programming,
2.a From the same case, draw an appropriate user interface explaining the controls used,
2.b Still from the same case, find 3 validation that might be needed and write the validation,
3. Write an event handler to insert a new record to the database. Your event handler must include the connection to database, the sql command, actually doing the sql command, and showing a success message
4.a Write a Point class, attribute X, Y; method Move(i, j); method bool IsSame(Object o) to compare if two point is the same.
4.b Write a Line class, a line is made of two Point; method bool IsParalel(Line l) to tell if two line is paralel; make a validation, if two point is the same then don't make the line
4.c Write a driver program to test the Line class.
Paper 2, Section B(SQL/Yuen Kwan)
1.a Point out the primary and foreign key in a given table,
1.b From the given two table (employee and course) write a Select command to select table
1.c another Select command to display table employee and total sum of course fee
1.d one more Select command to select employee with course more than average course taken by employee
1.e Create view of employee with course fee lower then 2000
Paper 3, ASP.NET Exam
Part 1 : Eshta
1. Differences and Describe usage according to the given case study for the following :
i. Client Script and Server Script
ii. Application and State Management
iii. HTML Control and HTML Standard Control in .Net
iv. Grid View and User
v. Users and Roles in ASP.Net Security
2.
a) 5 Controls which support user navigations in the given case study
b) How to change the home page in a way that the admin does not have to update weekly
c) How to configure and set the settings for Shopping Cart Table in the given case study
d) Write Code for UpdateCart Button Event.
e) Security Implementation for given directory and file structures
(some people said that it's sitemap.xml, but some said web.config. It can be achieved in both ways. I don't know the right answer)
4 Screenshots of web sites is given in the exam and all question must apply that scenario.
Part 2 : Megan
1. One Good Thing and Bad Thing of the given case study web site
2. 2 personas and 2 scenario
3. 3 WireFrames (Home, 2nd Level Page, 3rd Level Page)
4. Navigation Question (I don't know what it is...)
For Megan's Part, The NUS Library Case Study is given 2 weeks before the exam.
Paper 4: Software Engineering Exam
Section A :
1. Presentation 22 Marks
2. 6 Interview for each Person (3 People) 18 Marks
Section B :
1. Precedence Diagram + Gannt Chart + Assumption 25 Marks
2. Errorneous Test Scenario 5 Marks
3. Straight Forward Test Scenario 10 Marks
*For Gannt Chart, they give the ready made time line to draw. So, don't worry about the layout of Gannt Chart.
Paper 5 : Java Programming Exam
Java 1 :
10 Marks - looping the array, calculate the time difference and show the total
15 Marks - some theories and practical related 4 short questions
Java 2 :
10 Marks - Connecting the DB Server using JDBC or Hybernate and write the code for Insert Record
Java 3 :
10 Marks - Get the array objects from Session and show in the browser using JSTL
15 Marks - some theories and practical related 5 short questions
Java 4 :
5 Marks - CommandAction Code for List Control
8 Marks - CommandAction Code for Inserting record into the data store
7 Marks - Getting Records from the data store and shown back to the screen
Tuesday, April 1, 2008
Quote of the Day
"A guy know's he's in love when he loses interest in his car for a couple of days."
-Tim Allen
"A man in love is incomplete until he has married. Then he's finished."
-Zsa Zsa Gabor
"I told my doctor I broke my leg in two places. He told me to quit going to those places."
-Henny Youngman
"You know why fish are so thin? They eat fish."
-Jerry Seinfeld
"A bank is a place that will lend you money, if you can prove that you don't need it."
-Bob Hope
"I don't consider myself bald. I'm simply taller than my hair."
-Thom Sharp
"This is a strange country we live in. When it comes to electing a president, we get two choices. But when we have to select a Miss America, we get 50."
-Jay Leno
"I figure you have the same chance of winning lottery whether you play or not."
-Fran Lebowitz
"Give a man a fish and he has food for a day; teach him how to fish and you can get rid of him for the entire weekend."
-Zenna Schaffer
"It's not that I'm afraid to die; I just don't want to be there when it happens."
-Woddy Allen
"I have my standards. They may be low, but I have them."
-Bette Midler
"I've been on a calendar, but I've never been on time."
-Marilyn Monroe
"If God meant us to be naked, he would have made our skin fit better."
-Maureen Murphy
"It's so simple to be wise. Just think of something stupid to say and then don't say it."
-Sam Levenson
"If winning isn't everything why do they keep score?"
-Vince Lombardi
Monday, March 31, 2008
Friday, March 28, 2008
Creating your Own e-commerce Website
Your website will always be a work in progress. In other words it will never be finished. You will constantly be adding new products and features and will have to make periodic changes and updates. So it doesn't have to be perfect when you first launch it.
You only need the following things to start with:
- A homepage to showcase what your site is all about.
- A contact/about us page so people will be able to contact you and so they can learn a little bit about who you are
- Several product pages that will explain what you're selling and give the visitor an opportunity to make a purchase.
Creating your website
Creating a website is not a hard as you might think. There are several different website authoring tools and each has it's own learning curve.FrontPage is very easy to use .Another good thing about FrontPage is that it's a Microsoft product so your site will work perfectly on the Internet Explorer browser.
Most websites are a continuous work in progress. So just surf the web and find a couple of sites that are offering something similar to your product or service. You can get a lot of great ideas from what others are already doing.
Your website does not have to begin as a supersonic aircraft. Yu can start off like the Wright Brothers' plane and continue to add and modify it until you have a supersonic website.
Wednesday, March 26, 2008
C# Vs Java
Productivity is the key for development team
You can develop applications for the Microsoft platform using Java. But it's more sensible to use a .NET language instead for one simple reason: productivity. Microsoft makes it easier to take advantage of the Windows platform than Java does. Creating Windows services, writing to event logs, debugging SQL Server stored procedures, accessing the registry, working with COM—all of these are simpler in terms of time to market in .NET than they are in Java. It's not that C# is better than Java. But Microsoft has created all the classes to handle Windows-based tasks and made them available through wizards, drag and drop, and point and click.
Java is designed to be platform independent, so naturally it doesn't ship with as many Windows-rich features. Java developers who sit through the .NET classes often let out audible gasps, followed by jokes about how Microsoft is putting developers out of jobs because of the ease by which much .NET development is done.
The .NET decision
A debate on the technical merits of one language vs. the other is for the most part a moot discussion; you can pretty much do the same things in both languages, with minor exceptions. So at this point, your decision should be based on the answer to this question: “Does the application need to run only on the Microsoft platform?” If the answer is yes, go with a .NET language—primarily C#.
Bear in mind that we will, no doubt, eventually see .NET-written applications run on Linux and other platforms, but that day is still some time away. For now, pick your platform first and your language second.
Post back in ASP .NET
With ASP .NET, it is already changed. They are separated a entity with ability to process its own posted data. So the values of the Form are posted to the same page and the same page can process the data. It is called post back.
This post back is a read only property with each ASP .NET Page (System.Web.UI.Page) class. This is false when the first time the page is loaded and is true when the page is submitted and processed. This enables users to write the code depending on if the post back is true or false (with the use of the function Page.IsPostBack()).
Control it with AJAX. Then you can get the nice performance.
Web Design Challenge
Not so far to face with Internet Project after the exam.
Challenge upon your design for Web Project. With CSS or something else?
Cascading Style sheets(CSS) are a very powerful tool for the Web site developer. They give you the chance to be completely consistent with the look and feel of your pages, while giving you much more control over the layout and design than straight HTML ever did.
So just try with your own CSS or copy n paste CSS from somewhere, in your Internet Project. Then you can get experience in web designing and can apply in your internship period.
Cheers.
Tuesday, March 25, 2008
Just Luck of SA 28
SA 28 are so lucky that they can learn Ajax also in their course. So i share some information from internet about Ajax.
How Is Ajax Different?
For those who don't know, Ajax is a method of employing JavaScript, DHTML, and the XMLHttp behavior in the browser to provide truly dynamic content on a Web page without a page refresh.Popular examples of this technology include Google's Suggest, Amazon's Diamond Search tool, and many of Flickr.com's interactive features.
Ajax effectively does away with the traditional "Click-and-Wait" Web-application architecture of yesterday, making it possible to provide the responsiveness and interactivity users expect from desktop applications.
Ajax's ability to pull data from the server after the page has loaded contrasts with what we now refer to as the "traditional architecture." In a traditional architecture, the user must wait for the entire Web page to reload to see new results from the server.
In an application that requires a lot of interactivity with the business layer sitting on the server, the user must reload the entire page many times. This has implications for the efficiency of workflow, the load placed on the server hosting the application, and the productivity of users.
Somebody share about AJAX that what you know to other...ok?
Monday, March 24, 2008
Please Vote the King and Queen for SA 28
May i have your attention please.
Only the students from SA28 are eligible to vote for queen an king.
For SA 27 students-Sorry :(.They are not permitted.
Thank You!
Thursday, March 20, 2008
hey all !!
happy to leave a mesage after a long time .... how r u all ??? wats going on in ur companies ?
Wednesday, March 19, 2008
Difference between Composition and Aggregation!!!
Composition:
As we know, inheritance gives us an 'is-a' relationship. To make the understanding of composition easier, we can say that composition gives us a 'part-of' relationship. Composition is shown on a UML diagram as a filled diamond (see Figure 1).
If we were going to model a car, it would make sense to say that an engine is part-of a car. Within composition, the lifetime of the part (Engine) is managed by the whole (Car), in other words, when Car is destroyed, Engine is destroyed along with it. So how do we express this in C#?
public class Engine
{
. . .
}
public class Car
{
Engine e = new Engine();
.......
}
As you can see in the example code above, Car manages the lifetime of Engine.
Aggregation:
If inheritance gives us 'is-a' and composition gives us 'part-of', we could argue that aggregation gives us a 'has-a' relationship. Within aggregation, the lifetime of the part is not managed by the whole. To make this clearer, we need an example. For the past 12+ months I have been involved with the implementation of a CRM system, so I am going to use part of this as an example.
The CRM system has a database of customers and a separate database that holds all addresses within a geographic area. Aggregation would make sense in this situation, as a Customer 'has-a' Address. It wouldn't make sense to say that an Address is 'part-of' the Customer, because it isn't. Consider it this way, if the customer ceases to exist, does the address? I would argue that it does not cease to exist. Aggregation is shown on a UML diagram as an unfilled diamond (see Figure 2).
So how do we express the concept of aggregation in C#? Well, it's a little different to composition. Consider the following code:
public class Address
{
. . .
}
public class Person
{
private Address address;
public Person(Address address)
{
this.address = address;
}
. . .
}
Person would then be used as follows:
Address address = new Address();
Person person = new Person(address);
or
Person person = new Person( new Address() );
As you can see, Person does not manage the lifetime of Address. If Person is destroyed, the Address still exists. This scenario does map quite nicely to the real world.
Difference between abstract class and interface
Moreover..
1. Abstract classes can have concrete method while interfaces have no methods implemented.
2. Interface do not come in inheriting chain, while abstract class come in inheritance.
3. Abstract classes are faster than interfaces.
4. By default, all members in Interface is Public whereas members in Abstract class may have different.
Tuesday, March 18, 2008
Blog Activity is Low
Sunday, March 16, 2008
Stress Talk !!!!
Seems all are ok in Internship!! .. No stress .. Hopefully... :)
If you have stress or anything you want to say in order to relieve from those sufferings .... just tell here , give some comments ( including gossip on your supervisor in company )...
Let's share our experience on this internship...ok ?
for us, guys from Chartered, everything seems fine for this moment ...but there are some unsatisfied situations in work .... E.g: Boring , tired,etc.... Ha Ha :)
Expecting at least someone, share with me of his/her experience....
C u around guys.... SA27
Thursday, March 13, 2008
Tution fees will be increased at next intake
9000 S$. Bank loan will aslo be stopped.
Wednesday, March 12, 2008
When My supervisor is out of office
9 .30
i can go back home early.
How happy my life is
Thursday, March 6, 2008
AD project results are announced
But ISS posted the result by mail and almost all of the students have not known the result yet.
Hopefully,we can see our result on comming Monday.
Only In- house internship student know the result.