Archive for Uncategorized

How teachers will benefit from Ustaad.com.pk?

Ustaad.com.pk is an online system that would allow teachers from all disciplines to manage their teaching business more effectively. In the coming months there are a lot of planned developments for Ustaad.com.pk that would totally revolutionize how students/parents search for appropriate teachers and classes all across Pakistan. Some major benefits teacher will get by signing up for Ustaad.com.pk is as follows 1. Profile builder allowUstaad.com.pk is an online system that would allow teachers from all disciplines to manage their teaching business more effectively. In the coming months there are a lot of planned developments for Ustaad.com.pk that would totally revolutionize how students/parents search for appropriate teachers and classes all across Pakistan. Some major benefits teacher will get by signing up for Ustaad.com.pk is as follows

1. Profile builder allows a teacher to build his public profile. This would include their education, certifications, experience, profile picture, service fees and much more.

2. City wise categorization allows students to search for a teacher in a more efficient way, hence increases your chances of getting new students.

3. Full Access to our teacher request board.

4. Your current/old students can leave you reviews. Good reviews on your profile increases your chances of getting new students.

5. Ustaad.com.pk will market your profiles on all social mediums giving you increased exposure. Let us handle all your marketing and you concentrate on what you do best! That is teaching.

Advertisements

Leave a Comment

Detecting a cycle in a linked List (Floyd’s Cycle Detection)

OK here is another very interesting interview problem which I wanted to discuss today. The problem at hand is that you are given a singly linked list and (unfortunately) it contains a cycle i.e. some node points back to an earlier node in the linked list. Your task being a software engineer is to detect if  the linked list contains a cycle.

My initial brainstorming gave me an idea that I should traverse the list and mark nodes on my way so if I reach a node that has already been marked Hurrah !! Got ya !

Lets see how this approach works. So now I need to maintain a status for every node so I updated my Node Structure as follows

Struct Node {
int data;
Node * link;
bool status;
}

Firstly I would have to initialize all nodes with status value equal to “false”

Node * temp = head;
while (temp) {
temp->status = false;
temp = temp->link;

}

Having done that now my job is very simple. I can detect the cycle as follows:

Node * current = head;
bool isCycle = false;

while (current){

if(current->status ==true){
isCycle = true;

}

current->status = true;
current=current->next;

}

The approach seems to be fine but it required us to change our original Node data structure. Supposing the interviewer wants you to come up with a solution that doesn’t change the underlying data structure than you need to figure out some other way. Let’s look at a different algorithm that achieves this.

Most of us would remember the rabbit and turtle story from our childhood where the rabbit was very quick and turtle was very slow during the race. Consider they were racing on a straight track and for sometime assume the rabbit didn’t become complacent and instead kept on running he would have reached the finish line much quicker than the turtle, however consider they were racing in a circular field and there was no finish line the rabbit would have moved ahead quickly and eventually would have crossed the turtle again after some time. Can we use this story for our help? Yes we surely can ! this algorithm is a classical example of Floyd’s Cycle Detection Algorithm or also known as Tortoise and Hare Algorithm. So if we have a cycle in our linked list than some where along the traversal the faster pointer (Hare) would meet the slower pointer (turtle) indicating we have a cycle , else the hare would reach the end of the linked list if there is no cycle. Let’s see how we can code this.

//Hare moves twice the speed of the Turtle so if we have a cycle eventually Hare would meet the turtle again.

bool isCycle(Node *head) {

Node * turtle, * Hare;

turtle=Hare=head;

while (Hare){

if(Hare>link ==turtle->link){

return true;

}

turtle = turtle->link;
Hare= Hare->link->link;

}

return false;

}

Comments (1)

DUMMY’S Introduction to Concept of Sites and Site Collection

Today going through files on my hard disk, I came across this tutorial which I wrote about 2-3 months back for one of my very close friend Salman, who was interested in learning SharePoint so I thought I should share this tutorial on my blog for benefit of those people who get themselves confused between Sites and Site Collection concepts in SharePoint 2007.

———————————————————————————————————————————

Most people find it difficult to grasp the concept of sites and site collections when they first begin with SharePoint. Today I would discuss in detail both of these concepts and then we will also see how we can create some sample sites and site collection. Before we proceed further lets define a few things.

Site:

  • Site typically would store lists of documents, events, tasks, discussions and many other types of information.
  • Sites may also contain pages and web parts that provide access to information that is either on stored within the site or in some external locations.
  • Sites would also control access and define permissions levels for users and groups within a site (We will discuss this further in Security Authorization section)

Site Template:

The initial configuration of lists, pages and web parts constitutes a site template.

Site Collection:

A site collection is a set of sites connected together, and of course there is a relation between sites and that is that one site is the parent site (also known as the Root Site) and the rest are sub-sites or child sites.

 

Site Type:

When you create a site the site creation page allows you to select a site template for the site which would determine the functionality and the initial configuration of content on the site

Create a site collection

Now let’s create a new Site Collection step by step.

1) Log in to windows using the Admin Account.

2) Go to Start –>Administrative Tools–> SharePoint 3.0 Central Administration

3) This would open the Central Administration Page. On the Central Administration page click on the top navigation bar, click Application Management.

4) On the Application management page, in the SharePoint Management Section click on Create Site Collection.

To download the complete document please click here.

Comments (4)

My New Apple IPHONE- 8 GB

Today I am not going to write about SharePoint, rather I will discuss about my new Mobile phone–Apple IPHONE (8-GB). I have been really excited to get this amazing product from Apple in my hands ever since its launch and finally the day has arrived and I have one of these revolutionary mobile phone of the future, all for myself.

Having spent a good amount of hours exploring the various features of  Iphone I thought to share them with you all.

1) Activation:

Iphones recently came to pakistan, and most of its vendors sell a cracked version of the apple software so you dont really need to activate your set which is a good thing but still one drop act that comes with it is that if you try to install an update for the phone software your set would be eventually locked and you will have to totally get the firmware reinstalled..which ofcourse would cost you more money.

2) Synchronization:

Syncing is really really FAST. The iPhone automatically syncs your contacts,
calendars, and mail accounts. It also will sync your Bookmarks from
Internet Explorer or Safari; sorry no Firefox option. Syncing is easy,
and that is really all there is to it.

3) Design:

I seriously have no words to describe its amazing looks, if you are looking for a best looking mobile phone then I think Iphone should be your top most choice. You only have one button and thats the home button which will take you to the home menu.

4) iPod

The iPod on the
iPhone is awesome. I love flicking through my music, and when turned
horizontally, the cover flow is cool. Just like Steve Jobs said
himself, you can touch your music.


As I explore more n more this amazing mobile phone + IPOD…I will keep posting.

Comments (3)

FAQ’s

Comments (1)

New SharePoint server 2007 SDK with BDC editor Tool

 
Microsoft released updated Sharepoint Server 2007 SDK, available from the following link
http://www.microsoft.com/downloads/details.aspx?familyid=6d94e307-67d9-41ac-b2d6-0074d6286fa9&displaylang=en

This SDK includes some very usefull tools and samples like

  • Microsoft Business Data Catalog Definition Editor
  • Excel Services User Defined Function Sample
  • SAP Sample
  • Custom Content Source

Leave a Comment

MOSS Event Handlers

 
Today I want to talk in depth about a feature of Microsoft Office SharePoint Server 2007 (MOSS) that shows you just how extensible the SharePoint 2007 platform is! That feature is the ability to add custom event handlers to sites, lists, items and content. Fortunately I have a very very good document to share with you.
 
 
Click here to download the document and explore this great feature in detail !. I hope this helps you out a great deal in future I plan to write various kinds of Event Handlers and post step-by-step instructions as to how can we write them from scratch. So keep visiting .

Comments (1)

Older Posts »