Archive for Uncategorized

How teachers will benefit from 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 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 is as follows 1. Profile builder 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 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 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. 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.

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;


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;


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 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)


Comments (1)

New SharePoint server 2007 SDK with BDC editor Tool

Microsoft released updated Sharepoint Server 2007 SDK, available from the following link

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)

Top 10 Benefits of Microsoft Office SharePoint Designer 2007

Top 10 Benefits of Microsoft Office SharePoint Designer 2007
Courtesy of Microsoft

Office SharePoint Designer 2007 provides the powerful tools you need to deliver compelling and attractive SharePoint sites and quickly build workflow-enabled applications and reporting tools on the SharePoint platform, all in an IT-managed environment. Be more productive with next-generation Microsoft Web technologies.

Enjoy a new level of support for creating and customizing next-generation SharePoint Web sites and technologies.

Microsoft Office SharePoint Designer 2007 has deep editing support for the technologies underlying Microsoft Windows SharePoint Services technology, such as ASP.NET 2.0, cascading style sheets, and Microsoft Windows Workflow Foundation.
Customize SharePoint sites exactly the way you want. Customize SharePoint sites exactly the way you want.

Choose the format and content of your SharePoint pages with Office SharePoint Designer 2007—the customization tool for the entire SharePoint family. You can tailor SharePoint sites to your needs and set brand requirements using the latest ASP.NET technology, established Web standards such as XHTML, and cascading style sheets.
Easily make or undo changes across entire SharePoint sites. Easily make or undo changes across entire SharePoint sites.

Make format and layout changes to entire SharePoint sites simply by editing the master page and modifying the SharePoint cascading style sheets. Undo changes to the home page using the Revert to Site Template Page command in Office SharePoint Designer 2007.
Maintain control over site customization. Maintain control over site customization.

Site administrators and IT managers can control exactly how Office SharePoint Designer 2007 is used to help ensure information workers have an IT-managed and -compliant experience. Set up Contributor Settings for each role defined in the SharePoint site, and control access to specific actions.
Create workflows to automate business processes. Create workflows to automate business processes.

Automate business processes associated with SharePoint lists and document libraries using the Workflow Designer, a powerful and easy-to-use tool that comes with Office SharePoint Designer 2007. Set up custom workflow conditions and actions, link them to your SharePoint data, and deploy them with a single click, without installing server code.
Create interactive Web pages without writing code. Create interactive Web pages without writing code.

Office SharePoint Designer 2007 has a full set of tools to help you integrate data into SharePoint pages and present that data using XSLT in SharePoint sites. You can access tools for using XSLT Data Views, List View Web Parts, Web Part connections, ASP.NET controls, and workflow.
Integrate business data. Integrate business data.

Create views and forms for working with a variety of data sources using tools supported by Office SharePoint Designer 2007. Build SharePoint Web pages that present and edit data coming from SharePoint lists and document libraries, XML files, Microsoft SQL Server databases, Web services, and enterprise systems.
Develop sites compatible with a wide range of browsers and Web standards. Develop sites compatible with a wide range of browsers and Web standards.

Office SharePoint Designer 2007 has excellent support for creating Web pages based on Web standards such as XHTML and cascading style sheets and meeting Web accessibility requirements for Web Content Accessibility Guidelines WCAG and Section 508 (29 U.S.C. 794d), including built-in compatibility checkers for these standards.
Build advanced ASP.NET pages. Build advanced ASP.NET pages.

Office SharePoint Designer 2007 supports creating and editing ASP.NET pages. It provides the same level of support as Microsoft Visual Studio 2005 for ASP.NET control hosting, property editing, toolbox, and Microsoft IntelliSense technology in Code View.
Manage and help protect your site. Manage and help protect your site.

Use reports in Office SharePoint Designer 2007
to help manage your site by checking for broken links, unused pages, cascading style sheets usage, and master page usage. Site backup and restore features make it easy to save your site to a single file for helping to protect data or moving it to another server running Windows SharePoint Services technology.  

Comments (1)

STSADM for Windows

This .NET application presents a rich client GUI for the powerful command line STSADM.exe. Click on the link to download the file and save it to your computer. Click here to download  


Leave a Comment

Calculated fields

On this page you find an overview of different calculations which you can use:

  • Conditional formulas
  • Date and time formulas
  • Math formulas
  • Text formulas
  • … 

 Click here –> Examples of common formulas on the Microsoft Office site.

Comments (1)

Older Posts »