Sep 14, 2008

Zend vs Cake

If you are in IT department you need to update yourself constantly. If you fail to do so you will not be able to survive and I think you will lose your job one day. Recently I started working on CakePhp to update myself and have some taste of it. As I've already worked in Zend Framework so things were not looking hard. However few things that irritated me was their directory structure and their conventions. In cake you need to stick to their conventions and it provide you single way to do most of the things contrary to the Zend which is more flexible and provide you serveral ways for doing the same thing.
Although cake provide you components for Acl, Authentication, Email etc and it is easier to work with these components, however I will prefer to work in Zend until and unless my client force me to switch to cake.
Cake has some stuff that i would appreciate,
1. simple Acl and authentication handling.
2. more mature form creating especially validation which enable you to customize everything.
3. Configuration is easy and you can easily define routing.
4. Cake uses prototype and scripaculuous for implementing Ajax. I think it uses some functions(cakephp) to work with ajax instead of writing javascript.
5. paging is quite easy to work with.
I think for beginners it is good place to start.
However Zend has more loosely defined structure and provide you serveral ways for doing the same thing. The component like Zend_Db is fabolous to work with. you can create select, update, insert and delete statement easily. After all In my view Cakephp cann't compete Zend.

Aug 31, 2008

Writtin a novel

I love writing since I was high school student. Although it was difficult to write essays, letters and other material at that time however I'd often lifted pen and papers to express my views and thoughts, but writing for about some time I'd left writing in the middle.
The problem I think was I wasn't mature at that time and wasn't having proper guidance.
Recently when I red "A painted house"- a novel written by John Grisham, it gave me energy and courage to write something and express my inner feelings. So I decided to start writing my own novel. A month back I was really stuck in a software house with a lot of work burden which was preventing me from writing the prologue. However shifting to new software house has given me time to think about my pending novel. Today when I watched TV for about four hour and got bored, I once again rushed for pen and papers and started thinking of where to start. but things didn't get moved where I was hoping. Then an idea come to my mind 'why not browse and internet and find the ways how to write a novel'. when I googled for 'who to write a novel', I was served with millions of search results.
Selecting a website that is offering 'how to write a novel in 100 days'. This website has a schedule of how to motivate a person each day. It give you some courage and advised you to give proper timing and stick to that timings.

Aug 11, 2008

NUST interview

After waiting for about 1 and half month I arrived in NUST for interview. initially I was a bit worried about the interview, however my friends in NUST encourage me by giving me an idea what type of questioned would be asked in the interview.
It is however reality that a person get a bit nerves before appearing in the exam or interview no matter what and where your exam or interview take place. same was a case with me when i reached the waiting room.
I was thinking about the types of questions to be asked in the interview when i entered the room, but the environment and especially discussion between boys waiting for interview changed my thoughts. Although they first discuss few things about interview, but discussion suddenly changed to politics and current deteriorating situation of Pakistan.

Aug 7, 2008

Maxing HTML and PHP code

After working for about one year in website development industry of Pakistan I've realized a very serious problem. This may be happening in other countries as well, as I haven't had worked with international organization especially professionals.
The problem is maxing presentational logic with business logic. In simple words I would say maxing HTML with server scripting language like php, asp, coldfusion etc.
Here I would appreciate Microsoft professionals who have done tremendous job by developing Asp.net language. The way they have separated asp.net and html code from C# and VB.NET code is fabulous. However I would like to mention that in the beginning-in early versions of ASP.NET-the problem was there. However with the passage of time and introducing newer and more mature versions like ASP.NET 2.0 they have addressed lots of issues.
Before going into the details of problem mentioned above I would also like to comment about some companies who are providing open source solutions for languages like PHP etc. The contribution made by oscommerce (having the above drawback), zencart(I haven't studied but heard that it is a bit mature shopping cart solution than oscommerce) and joomla(very nice and more mature content management system) to php cannot be ignored.

The most important contribution is made by those who have developed frameworks(MVC’s) like Zend, Symfony, cakePhp, mojave(lacking documentation and community support) etc. One cannot imagine how worthy and brilliant job they have done and how easier they have made work for lazy professionals like me.

Two months back I was introduced to mojavi by our company senior web developer. In the first few days I was exhausted and bored. However after developing a simple login application in mojavi I found it quite helpful. But things didn’t move forward coz of lacking documentation and community support.

I stopped working in mojavi but the virus of working in frameworks sneak in my heart and I started googling different frameworks.

Next few days I studied cakePhp, symfony and then zend, red their documentation, browse their community support sites and forums and also red articles about their differences.

Finally and luckily I selected Zend framework-This was because of small configuration overhead of zend framework than other frameworks.

After working in zend MVC I realized how easier it is to make a web application and how easy it is to extend and maintain existing one.

Now let me discuss the real problem which has made me sick since last few days.

After joining new organization 6 days back I was assigned a project for modification. The project was constructed in oscommerce. Boss was expecting that I would finish some small modification in few hours but I trapped in the middle and was unable to browser where modification needs to be made.

When boss arrived and asked me about the modification I was having no idea what to say and I felt a bit shy at that time. After telling him that I haven’t completed the modification he was a bit shocked and worried because he might be thinking that I was not a right person for the post I had been hired. He took me to his office and asked me about projects I had previously worked on. After showing him my projects he got satisfied but still I could see uncertainty in his eyes.

Why all this happened and why I trapped in the middle will I think clear the problem I have mentioned in the beginning..

As I have already mentioned that project was constructed in oscommerce so those how know or have worked in oscommerce will better understand the way oscommerce has been developed. Although they have separated php code form html up to some extent, however it is not as mature as joomla content management system or model view controller frameworks

Still oscommerce was not a big obstacle. The more irritating thing was the way previous programmer had implemented and constructed the pages. After working in office for about 10 hours I managed to complete some modifications but not entire.

When I came home, installed oscommerce and started doing the same modifications it took me minutes to complete them.

So I took some deep breathes and started thinking about whom to be blamed. But after thinking for about two hours I realized that no one could be blamed because client needs their projects soon, so developers only think about the construction not about what will happen in future if he himself or someone else try to extend or modify the project.

Lot of website have been made in similar scenarios and situations.

So as a professional one needs to be very careful while modifying the project.

Although professional developed application based on the client recommendations however I think we professional should think seriously about the future extensions and maintenance and try to make application both client and professional friendly.

It will not only make our job easy in future but increase production as well.

Jul 21, 2008

How nice it is to have a third party tool on your cv

After developing a project in Zend framework, I mentioned it on my CV and started applying for a job in new organization. oops in short span of 2 days i received interview calls from two organization straight away asking about zend framework. I realized how nice it is to have third party tool on a resume. However the problem is that different organizations are working on different frameworks. some on symfony, while other on cake and zend etc.
In first interview I was ask about CakePhp, but I was blank at that time, and my reply was "I haven't had the taste of cakePhp". The reason why i choose Zend instead of cake is simple.
"Initial configuration of cake is a bit difficult".
And this was my answer in interview too.
Now I have received a second call from the same organization and sure that they would hire me. however salary can change things suddenly.
hmm I think after wasting 8 to 9 months I need to join a good software house. This is very important for my future. Although i have worked on a project in zend, know how to work in ajax and good understanding of OOPs and Databases, but i haven't developed ecommerce and social networking sites. and i think it is important to work on this type of sites to secure my future in information technology field.

How nice it is to have a third party tool on your cv

Jul 18, 2008

Zend_Search_Lucene: amazing

I was always looking for a tool that enabled me to develop a search engine like Gooooogle. I don't like to put search on any website who direct users to google and google search pages for them. I was always looking to develop a search program that index all my website pages and when someone search a word or phrase, he/she find all the pages on my website with that word or phrase.
Although lot of websites provide the ability to search product or services they offer. The search is simple and limited because it only search the database not the website pages. however i haven't seen any which facilitate visitors to search their website pages.
Today, however I found solution in the form of Zend_Search_Lucene. It's based on the apache lucene(I don't have knowledge of apache lucene).
With the help of Zend_Search_Lucene you can crawel all your pages. Once the pages all crawled, the contents on your webiste are stored in the filesystem.
And later when someone search on your site you can programmatically retrieve those information and show them on the page.
I'll once again appraciate Zend Framework team for doing such a fabolous job.
Thanks Zend Team

Jul 14, 2008

Zend_Db_Table: its very cool

I have already written about Zend framework. Its very nice open source framework for lazy programmers like me. You can find everything in the box.
Recently I studied Zend_Db_Table, and found it pretty helpful. After creating the database, you need to define a class for every table in the database as
class tablename extends Zend_DB_Table
{

}
Its important that tablename must match the table name in the database. It you don't want the class name to be similar to the table name in the database then define class as
class what_ever_name_you_want extends Zend_Db_Table
{
protected $_name='tablename'; // It's compulsory.
}
If you don't define the name as above, then you will encounter an error.

And that's it. you can now perform different operation like select, insert, delete etc without writing a single query.
if you want to fetch a single row then write
$object=new class_name();
$row=$object->fetchRow('conditon');// condition can be 'id=1';
The above code will now retrieve a single row from the table.
Similarly its very easy to update, insert and delete the data from the database.
If you are intrested you can visit Zend documentation.

Jul 12, 2008

Nice Weather but.....

Rain in the morning made the weather pleasant, and the breeze added some spice too when I was looking from window. However when I put on my clothes, laced my shoes up and came out of the gate the things suddenly changed, because I could see water all around. The things wasn't seemed nice to me 'coz I wasn't expecting that much water. Although whenever it rain I always expect some water in front of a house we are living in, however it was beyond my expectations. After waking for a minute or two I found myself stuck in the middle of water and there was nowhere to escape. I suddenly realized that the idea of going to office wasn't good enough. After waiting and holding my nerves under control I managed to take a lift from a person on bike. I usually hate bikes and those how ride them, but I feel better when someone give me lift whenever I need one. I thanked the person when he rode me to the bus stop. I wasn't aware of the fact that I will stuck in the middle of jammed traffic next. I found that when I reached the place where many like me were I think cursing themselves for coming out of their houses. There was more water than I just saw. Oh my God many cars were stuck in the water and the drivers just disappeared, coz it seemed nowhere for those little vehicle to go through the flood. I could see some auto rickshaws without their drivers as well.
The bus reached to the next stop after creeping for about 45 minutes-we reach the same place not more than 15 minutes in normal days.
I took a sigh of relief at that moment. I was sure that i won't face the same situation again. And I was right. Although I did faced some bed situation ahead, however they were not as bed as I just faced before. I am not sure wahter or not I will confront the same situation when I return home.

Jul 10, 2008

"A Painted House" by John Grisham

Nowadays I am reading a novel "A Painted House" by John Grisham. Its about a small boy named Luke living in a small town. His father has rented a land and grown cotton. They have hired Mexicans and hillbilly to pick their cotton. Luke, his parents and grandfather Pappy also picked cotton. Luke dream is to be in Cardinals baseball team rather than a framer like his father.
The story seems simple but quite interesting. I've enjoy every bit of it so far and feel it will be more interesting when i move forward.
Someone may have a question in his mind why a novel?
And i would simply answer because I am alone these days in Lahore. My uncle and his kids have been to village, so no one to play with. So I think its better to read a novel rather than spoil myself watching TV all the way. It will not only improve my English but also give a good company until my mamu and kids return back. The another good thing is I can read it at the bus stop waiting for bloody bus to arrive. I can even read it if luckily find a seat in the bus.
So far I feel its a good friend of mine.

Jul 9, 2008

Public transport , a delimma

When I was in Peshawar university, we were of the view that Punjab public transport is far more better then Peshawar, although we hadn't been here at that time, however it was common in us that students in Punjab travel free in buses and the condition of the buses is good. However I have been in Lahore for the last one year and the situation is completely contrary. When you travel by these buses you surely will have a sigh of relief even when think about public transport in Peshawar.
I even have been to Karachi twice and feel that they have very nice public transport.
The situation of Punjab public transport is deteriorating. Some time you need to wait for one hour at single bus top for the bus to arrive. And when the bus arrived you will be shocked to see the people been put like animals. Oh I think its not the better sentence to describe the situation. 'coz we take animal more comfortably in our village.
Some time you will feel lucky when find a place for your half foot in the bus, the remaining parts of the body will be hanging out of the bus. Once you get into the bus, you will always look for a vacant seat. The situation become more irritating when people besides you find their seats and you reach your stop striving for the vacant one.
The people of Punjab are so honest that they even sometime forget to pay the fare. Honest coz they forget and don't do it intentionally and its better to forget fare coz i feel that in situation like this you may even forget yourself. So batter be careful while traveling through public transport here in Punjab.
I won't forget to tell you about the marketing in the buses. After working for 7 to 8 hours in office, waiting on a bus stop for long time, find overloaded bus and hardly find a place, you will face very hard time when a person start promoting products like books(magic way of learning English), perfumes, medicines of hakeem sahab and so on. The way they will highlight the benefits of their products is really amazing, however listening their speech for about 10 minutes you will surely think of suicide.
At the end when you reach your home, you will take lots of deep breathes and thank God(O God you make me able to reach home safely).

Jul 7, 2008

Zend Framework is fun

I have been working as Web developer since November 2007. My areas of expertise are PHP and MySQL. Initially I was working with structural programming, putting everything i.e HTML and PHP in the same php file with php extension. Although I really like OOP right from begining when i was doing my BS from post graduate college kohat, The reason was our computer teacher who was always giving preference to OOP 'coz according to him we can't represent real things using structural programmin and that was the reason why OOP came into existance, but i didn't use it much.
Although we used a bit of C++ OOP at our Bs level, however the real practice we did was at our Masters level when we were learning Java. Its was very intrested working in java after studying c++ for two years. The reason was c++ console programming which had bothered me a lot.
I really fall in love with java when we were learning GUI(Java swing). That was the time when i decided that my final project will be in java. however time didn't allow us to do our project in java. So we turn toward Coldfussion and developed a small web based system for our department. If someone had asked me why we choose coldfussion, i was having no answer at that time as we were unaware of other language such as php and asp at that time.
hmm the discussion is going a bit long, em not a bit I think long enough.
So i was talking about OOP. Now i think i should turn towards my topic.
All the above discussion is because Zend is in OOP.
Zend team has done excellent job. The way they have done our job so easy is amazing. Zend_Db and Zend_Auth has impressed my lot so for.
Its pretty simple to manage database and perform authentication.
look at the following example
If you want to authenticate a user and save his/her information in session it is as easy as that.
1. First your need a connection to database as
$dbconn=Zend_Db::factory($config->db->adapter,$config->db->config->toarray());
Note: I am not going to discuss how to make configruation object. so go to the zend documentation and read how to do it.
2. Now you need to create Zend_Auth_Adapter_DbTable() instance as
$authAdapter= new Zend_Auth_Adapter_DbTable($dbconn);
$authAdapter->setTableName('users')
->setIdentityColumn('username')
->setCredentialColumn('password');
$authAdapter->setIdentity($username);
$authAdapter->setCredential($password);
3. As you have created the adapter, so its time to authenticate
$auth=Zend_Auth::getInstance();
$result=$auth->authenticate($authAdapter);
if($result->isValid)
{
$data=$authAdapter->getResultRowObject(null,'password');
// the about line will retrive the entire row
$auth->getStorage()->write($data);
// this line store the entire row in session(Zend_Auth_Storage_Sesssion).
}
else
{
echo 'unvlid user name or password';
}
thats it as simple as that.
Now if you want to retrive this data anywhere you will need the following
1. Create Zend_Auth_Storage_Session() object as
$sess=new Zend_Auth_Storage_Session();
$data=$sess->read();
// this will read the entire row
3. printing the result
print_r($data)
// or you can print individual fields as
echo $data->fieldname;

Jul 5, 2008

America wants to cut pakistan into pieces

Pakistan is facing great challenges these days. Poverty, hunger, inflation, extremism, enlighten moderation and war like situation has make life miserable.
However the most dangerous challenge is the American strategy of dividing Pakistan into four states i.e Punjab, NWFP, Baluchistan and Sindh.
Some American think tanks believe that everything in Pakistan is happening according to the script and Pakistan will be cut into pieces till 2005.
The question here is why America wants to do this with Pakistan instead of other Islamic countries. The answer is pretty simple. 'coz Pakistan is the only Islamic country with atomic bomb.
Western counties and media is pursuing right from the day when Pakistan did their first test that Pakistan's atomic assets can fall in the hands of extremists. This is 'coz western world have never and can never accept Islamic country having nuclear weapons. and this is the reason west is against Iranian nuclear program as well. Although Iran has cleared it so many times that its nuclear program is for peaceful purposes and they are not keen to develop atomic bomb, but still western countries have reservation and have imposed lots of restriction.
To prevent Iran from developing atomic bomb and control Pakistan's nuclear assets, we have seen lots of dramatic changes in the area in last few years.The occupation of Afghanistan, Iraq and now threats to Iran, Syria and even to Pakistan clearly indicates Americans strategy of getting hold of these countries.
I believe America will create lots of hardships for Pakistan in next few year. So we should be very careful and try not to play in the hands of western world and media.

Dr AQ khan recent Statement

Recent interview of pakistani scientist and hero Dr A.Q Khan surprise many people and the news was broadcast by all pakistani news channels.
In his telephonic interview with associated press he claimed that centrifuges were delivered to North Korea under the supervision of Pakistan army and President Musharraf.
According to many annalists this statement will make more doubts in the minds of western countries about pakistan nuclear program.

Jun 30, 2008

military operation in khyber agency

That's what i was expecting. Finally government took a bold decision to handle militants by force rather than engaging them in dialogs. Orakzai agency(where my villages is situated) shares a border with khyber agency. Tension arise and then mounted two year back between Lashkar-e-Islam and Ansar-ul-Islam when they started attacking each other on their private FM radios. Deadly clashes between religious groups in khyber have taken lives of hundred of people for the last two years, and the clashed are still on in the border area and atleast 60 people are reported been killed and several injured in few days. Both the groups are using heavy weapons.
Lashkar-e-Islam commander mangal bagh got hold of nearly the entire region and put many of his rivals into his torture cells two months earlier and order people to obey him or get ready for the punishment.
After getting the hold of khyber agency, Lashkar-e-Islam commander mangal bagh spread his activites to settle area and capital of N.W.F.P peshawar. It is also beleived that he was involved in the abduction of cristians who were kidnaped and then released few days earlier.

Jun 26, 2008

Zend Framework .htaccess file problem

I can't explain how frustrated i am. Trying to solve problem of rewrite rule in zend framework since morning, but still unable. search lots of sites, especially forums, applied all techniques. but they are just kidding.
when i remove the file, I didn't encountered an error. however when i create the file agin it give my stupid error.
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.
Error 500.
Zend framework has good docs but haven't explained this problem. I found that lot of other people are facing the same problem.
Will try tomorrow to solve the same problem.

Jun 25, 2008

Part 2: General Rules of Ranking

Search engines use location and frequency of words placed. So words should be on prominent location.
Density (no of key words appearing on you site) is also taken into consideration.
There are some off the page ranking factor that should be kept in mind.
1. Link Popularity
2. Page Importance
3. Page reputation
4. Click through measurement.
Different search engines give rank to website based on the above factors. Keep in mind one thing, a website may have a very good page rank on one search engine, but may not have the similar ranking on the other.
I'll discuss all the above factors later on my blog.
Before improving your website ranking, you need to have
1. Google toolbar for checking your page rank in Google search engine.
2. Yahoo toolbar for checking your page rank in yahoo search engine.
3. MSN toolbar for checkng page rank in msn search engine.

Download at least one toolbar and make the page rank property enabled.
It is important for the site to have all its pages indexed. Because more pages you site has more batter will be its page rank. However if you have lots of pages but search engine has indexed very few pages, it means you will not get the page ranking you are looking for.
Too see how many pages google has indexed.
go to google search and write
site:your site url
Google will show the number of pages it has indexed. If google has indexed few of your pages, it means that google hasn't crawled all your pages. So there may be a problem(will discuss later) and you should remove the errors in order to make it easier for the search engine to find and then save your pages.

Jun 24, 2008

LUMS Admission Test(LGAT)

It was very nice when i saw a student copy of lums test result card and was a bit confused 'coz i wasn't expecting that i would clear the test. I was actually looking for a small party but there was no one to celebrate. All my friends are away-some are in village and some in Islamabad-so i decided to arrange it whenever i back home.
you can surely understand how difficult it is to live in a place where you find no friend. Can make new ones, however it'll need time and you know how difficult it become when you are doing a job and return home late at night.
Although I've cleared the test but unable to get admission 'coz they will advertise in november and then i'll be able to submit my admission form. But it seems nearly impossible to get there coz HEC(higher education commission) has stoped new induction and my NTS card is valid until october. a bit unluky i am.
Will see for some other scholarship if HEC don't start indigenous program again.
Here I think it will not be justice to end without saying thanks to all my friends who pray for my success in test.
Thank you all.

Jun 23, 2008

Part 1: SEO Introduction

Search Engine Optimization
The most important thing in building website is to drive traffic to your site. If you have a very nice website with very interesting and informative stuff, but people around the globe are unaware of your site, your site is of no use and you will not be able to achieve your goals. Although you can spend money on marketing and advertising of your site, but it will be costly and the most important thing is people see search engine to find the products, services and stuff they want.
If you want best rank on search engine you need
  • Timely Informations
  • Good techniques
  • Patience
  • Time
Search engine optimization can be categorise differently. it can be
  • Crawler based
  • Non-spider Indexes
  • Human Powered directories
  • Pay-per-click System
  • Hybrid Search Engines
Crawler based used algorithm to give ranks to different sites.
Non-spider indexes use keywords, description and titles etc to evaluate page rank.
Human based directories(e.g demoz) are divided into categories where you need to register your site manually.
Pay-per-click system is type of marketing in which you advertise on site and give money if someone click on the link you provided to the owner of the site.
Hybrid search engines are those that use both crawler based and pay-per-click techniques.

Nice Joomla CMS

Before delve into search engine optimization, i like to introduce you joomla CMS (content management system). I was unaware of joomla one month ago. I was thinking that it is tool for creating website templates. But when i met james leong (belong to Singapore and wants to establish business here), he give me a book "Joomla extension development" and told me to develop joomla component. After studying joomla for about three days i came to know that it is very nice content management system with very powerful API.
I managed to develop a simple component and a module in three days. when i worked in joomla for few days i found it quite helpful and interesting. Especially its API classes are very easy to work with. After working for ten days I told my boss about joomla and take permission to develop a website for him. He too was very impressed with its functionalities and now wants to convert all his sites to joomla.
I think joomla will play a very vital role in future in web development industry.

Starting SEO in few days

hi everyone, i thinks its batter to start working on Search Engine Optimization and write some tips and tracks. I'd studied this topic few months ago, so i'll need to take my diary and have a brief look and then start writing. I do understand that there are lots of information on the web, however i will share somethings that i have and hope users who follow my blog get some benefits from my studies and experience.
This is very hot topic, because i feel that building website or blog is half of the work. the next half is the search engine optimization. If your site has a very good front page, very good layout, nice and informative stuff, but if it has page rank zero, so people around the globe will be unable to find your site, information and services you provide them.
hmm so before creating blog or developing your site you should keep in mind search engine optimization. because different techniques are needed in the beginning. I think it is batter to give an example here.
Let suppose you have a site related to garments. So before working on the site you need to know who are your compitators, and see if they have website or not. If they have and they have their customers then you need to consider different things like their website url, the keywords the used, the terms they used for different products etc.
After considering all these things you will need to take domain from appropriate services provider and choose an appropriate domain name.

NUST extends Form Submission Date

Damn it, I was looking for an early interview call from Nust, but they extended their form submission date to June 30th. Will need more days to stay and look that when will they display merit list and then call for interview.
m disappointed because I am unable to decide about my future until called for interview. Wasting myself currently and lookin for some nice things to happen. but God help those who help themselves. So its time to take a deep breath and work on some pages.

Hec stops new Induction

God, sad news again. You should be ready for everything in pakistan. Laws changing day by day. you may be expecting one thing, but something else will happen. I think it was a very nice step of the previous government especially HEC to give scholarships in various disciplines to talented student of the country. Many poor student got MS and PhD degrees from best universities of the country and abroad. But new government closed the doors for new students. I think I've luckly saved myself by submitting form few months back. However I'll not be able to get HEC scholarship if i don't secure admission in NUST(National University of Science and Technology).

Masters in Computer Science

The day when my dreams come true. I can't define how happy i was at that day. It was the goal of my life to take admission in peshawar university. This became my dream when gul (mamu) was studying there and i wasn't aware of other universities in the country.
Although I had submitted my admission form in Peshawar University when i passed my FSc from Degree college, but didn't succeed in securing my admission at that time.
I can't define who happy one can be when his dreams come true.
After submitting my admission fees, we were informated that classes will start two months later. You can't imagine how difficult it was to wait untill i was infromed by my classmate that classes has already been started five days back and i have missed the initial days of the university.
The most interesting day of my life was my first day in university. when i went 10 minutes late, entered classroom without taking permission-we hadn't taken permission in degree college kohat and were used to it- and our teacher(DLD Teacher) kick me off the class.

Background


hmm. A little tough to start. I belong to Orakzai Agency(Fiderally Administrated Tribal Area). Got my basic education from local school and left my village when i was about 16 years old in order to complete my SSC from goverment comprehensive high school kohat(about 50 km away from our village). Those were i think very boring days of my life in school hostel. I faced lot of difficulties to get used to the new environment.
During the entire durration we were looking for someone to help us complete two year or give us support to escape.
I remember how difficult it was to live there even when we completed one year. Our friends even cried and cried but there was no one to help us. One day when i went on a two days leave and after spending two days in village, packed my baggages and was about to leave, suddenly my eyes got wit with tears, i told my mom that i cann't go and continue my studies. She got angry and told me that if i didn't study today, how will i become a successful person.
I know how vital role these words played in my career.
However the most important role in my career was played, and will say still playing, by my mamu(Gul hassan). I cann't have words to write how much he encourage me, give me support and the most important things was his faith in me.
After completing my matirculation, I tried to get admission in Islamia college Peshawar but didn't succeed. I remember how disappointed i was during those days.
When my dream of taking admission in islamia college peshawar was abolished. there was no chance for me to get admission except in Degree College Kohat (famous for strikes, bad students etc).
However when i got admission there, I think those were the most amazing days of my life. Although the first year of my college was not interesting, however the second year was exciting, thrilling and full of joy.