News, Views, Analyses and Reflections on Linguistics, Corpus Linguistics, Programming, Software, Technology, Education, Society
Sunday, December 11, 2011
Text Summarization Tools and Translation
Thursday, September 22, 2011
Creating an Urdu Translation Glossary with C#
| Urdu Web Lughat |
| Urdu Web Lughat Error |
public static void test ()
{
string match = "\\<I\\>\\s*\\<w\\>(?<Word>[^><]+)\\</w\\>\\s*\\<m\\>(?<Meaning>[^><]+)\\</m\\>\\s*\\</I\\>";
string text = File.ReadAllText(@"G:\Software\Dictionary\dictionary.xml");
Console.WriteLine(text.Length);
//Console.Read();
MatchCollection m = Regex.Matches(text, match);
StreamWriter sw = new StreamWriter(@"G:\Software\Dictionary\Glossary.txt", true);
string word = "";
string meaning = "";
Console.WriteLine(m.Count);
//Console.Read();
for(int i=0; i<m.Count; i++)
{
word = Regex.Replace(m[i].Groups["Word"].Value, "[\\r\\n]+", " ");
meaning = Regex.Replace(m[i].Groups["Meaning"].Value, "[\\r\\n]+", " ");
sw.WriteLine(word+"\t"+meaning);
Console.WriteLine(word);
}
sw.Close();
}
| OmegaT with Glossary 1 |
public static void Main(string[] args)
{
string[] lines = File.ReadAllLines(@"G:\Software\Dictionary\Glossary.txt");
string[] lemmas = File.ReadAllLines(@"F:\Corpus Related\e_lemma.txt");
string word = "";
string meaning = "";
string lemma = "";
StreamWriter sw = new StreamWriter(@"G:\Software\Dictionary\Glossary2.txt", true);
int count = 1;
foreach(string line in lines)
{
Console.WriteLine(count+" of "+lines.Length);
word = Regex.Split(line, "\t")[0].Trim();
meaning = Regex.Split(line, "\t")[1].Trim();
lemma = giveLemma(word, lemmas);
if(lemma!="")
{
foreach(string lemma1 in lemma.Split(' '))
{
sw.WriteLine(lemma1+"\t"+meaning);
Console.WriteLine(lemma1+"\t"+meaning);
}
}
else
{
sw.WriteLine(word+"\t"+meaning);
Console.WriteLine(word+"\t"+meaning);
}
count++;
}
sw.Close();
}
public static string giveLemma (string word, string[] lemmas)
{
string toReturn = "";
string lemma1 = "";
string lemma2 = "";
foreach(string lemma in lemmas)
{
lemma1 = Regex.Split(lemma, "->")[0].Trim();
lemma2 = Regex.Split(lemma, "->")[1].Trim();
if(word==lemma1)
{
toReturn += lemma1 + " " + Regex.Replace(lemma2, ",", " ");
}
}
return toReturn;
}
- Get each line from previously made glossary file.
- Split the word and meaning.
- Pass the word to another function, along with the lemma list (got from e_lemma.txt file) and return all possible forms of a verb or a noun.
- At the end write a new line for “word-tab-meaning” pair for each lemma form of verb or noun.
- And if there is no lemma, simply write the original word meaning pair.
| OmegaT with Glossary 2 |
Friday, September 16, 2011
Killer Topics for Blogging
Bloggers are writers, but unlike traditional writers they are not supposed to be writing only when they have “mode”. If you are in the market, if you want to survive and if you want your readers to continue coming on your blog, you’ve to keep on pushing yourself. Blog posts get old in hours so you have to build new. Posts are read and forgotten, and then they demand more. Same as today people eat, and then demand more to eat. So the experts create “stimuli” for the land to produce quickly and efficiently i.e. fertilizers, they create medicine for cattle and chicken to “produce” faster whether it is milk or eggs or meat. So bloggers are like a commercially breaded commodity, they are supposed to produce, and keep on producing. This process of pushing themselves hard, writing more frequently even if one has no desire to write, extracting every bit of creativeness from the mind creates a hollow effect in the mind. Blogger does not spend much time in writing as much he spends on thinking what to write. The problem is not to create a post, problem is to create a topic around which the post will be woven. Don’t worry, I am with you in this barren land of blogging. When it is “blossom” or “spring” on me, I keep on writing, the topics keep on popping up in my mind and I keep on flowing on the fertile waters of this season. But the “spring” is not always like this. There are times, as there are times for Pakistan now rains are killing then drought will be killing, so there are times when “spring” ends, the springs of water become dry, rains stop pouring down, the sky is hot and bitter, and mind is barren. At these times a blogger feels helpless, or let me admit, I feel helpless, lonely, empty handed, drifting in a void, having a hollowness within me and visiting my blog’s admin page time and again, clicking on New Post button, sometimes opening it writing a few words and closing the opened tab, other times closing the browser just after clicking on new post, shutting down or putting away the PC, looking for a refuge from this emptiness, to seek something, anything to write about. Well, these are hard times for a blogger or perhaps a writer, he wants to write but he does not know what to write. So folks after this long, sad preface which most probably was not able to make a similar effect around you , I would like to share a few ideas to write blogs posts on.
- Surf the waves. Write on the HOT TOPICS. Write about what people are crazy about this time. Write on an update, a new OS, a new gadget, a new phenomenon, a new website, a new service. But make sure its hot for a wide variety of people, its not that you are having a hot thing behind your house and you start writing about it.
- Review a new gadget, OS, Linux Distribution, Smart Phone, Mobile Application or a Programming Language.
- Write about a problem you encountered, and managed to solve.
- Write your reactions what you see around you.
- Write about your life experiences, reflections, professional life and about your city, province, country.
- Read, read and lots of read then react and analyse what you have read.
- And if you can’t do it, go to Google and search killer topics for blogging
So if you were hoping for a magic, this isn’t anything like that, there is no shortcut to success. It’s a long way full of hardness, one has to suffer for a good creation same as a mother suffers for her baby. Posts are like children, and children are not purchased ready made, they are part of your soul, parted from you not so easily. If you do not write this way, then you are not a true writer, hence not an original blogger. Enjoy Blogging!
Sunday, September 11, 2011
How to Improve Your English Pronunciation
- Use free dictionary to get meaning and pronunciation of an English word. Click on speaker icon present next to the word.
- Use Google Translate to get English to Urdu (or your language) translation as well as pronunciation of English word.
- Listen to podcasts.
- Listen documentaries and other clips posted on Youtube.com. It will not give you pronunciation of specific word but your general listening and speaking will improve.
- Watch English movies. Torrentz.com is a good place to get pirated versions of English movies. Older movies (2 to 3 years old) usually have good quality as well as a subtitles file with them. This can help a lot initially to understand the words spoken by native speakers, and thus improve your pronunciation.
- There are not only movies available, but there are TV Series also available. A TV series is good as compared to movie in various ways, in my point of view. It has a long story, a TV series can last for several years, viewer can have better understanding of story, context and characters. A TV series is usually in Standard English (while movies sometimes get characters which do not speak in Standard Accent). So you may select a TV series of your own choice and get it downloaded, and watch an episode whenever you get time. You’ll feel that you’ve developed an interest, love the story and characters, and understand what the characters say. I love to watch Science Fiction series like Star Trek The Next Generation, Star Trek Deep Space Nine, Stargate SG1. And it has helped me a lot in improving the pronunciation as well as listening comprehension.
- Listen Audio Books. If you love to read books, then do not read but listen. There are audio books available for every popular novel or story of today, and you can get them from torrentz.com. I love to listen fantasy stories like Wheel of Time, Harry Potter, Codex Alera. This not only gives you very good pronunciation and listening practice but also improves your expression and vocabulary.
- The traditional sources: use Oxford Advanced Learner’s Dictionary or Cambridge Advanced Learner’s Dictionary. The CDs can be purchased from market or installation files can be downloaded from torrent websites. OALD is my favourite for pronunciation of different Standard Englishes. Currently it provides British and American English pronunciation which can help a beginner to distinguish the pronunciation differences.
- Real communication has no alternate. If you happen to have a friend in North America, Australia, Canada or England and s/he speaks English. Do contact her/him and ask for voice call on Skype or Google Talk. A spontaneous interaction with native speakers will increase your listening and speaking abilities alike. And you may get a very close net friend as well.
Friday, September 9, 2011
Add Open DNS in PTCL Broadband
Wednesday, September 7, 2011
Pakistani Blog Aggregators
Bloggers.pk
- Simple and clean interface
- Listing of posts, no categories so reader can see every post regardless of category or blog type
- Rating Like or Dislike
- A ranking for top blogs
- Highlights in terms of top posts
- In beta stage for a long time.
- No response to emails sent though dev@bloggers.pk (I've asked to add my English blog several times, didn't find an answer).
- No automatic way to submit your blog.
- No RSS feed icon visible
Tea Break
- Interactive interface and good looking
- Featured posts
- Popular posts and comments
- Proper website navigation
- About, Join us, Bloggers everything needed by a new visitor
- RSS feed icon visible and present
- Feedback, Twitter and Facebook links
- Categorisation to choose for the reader
- I felt difficult to go through segmented parts because I want to read everything until I am saturated. So might not be a negative point in your opinion.
Pak Positive: Pakistani Bloggers
- Interactive and rich looking interface
- Positive reviews from world class newspaper and news agencies.
- Guest posts
- Member blogs
- Join us link
- Post snippets instead of mere listing (more appealing)
- Email subscription
- Social media i.e. food for Facebook, Twitter addicts on their very account on social media
- A collection of professional looking Pakistani Blogs.
- Kind of restrictive and draining policy to submit your blog e.g. blog should be 3 months old, at least 25 original posts, place the linking badge where it is visible. Well, I should admit I was little bit annoyed on this much work :-D. As I am an easy going person, this may be a fault of mine not the blog aggregator.
- No RSS link. I cannot survive without an RSS, so I do not subscribe to Pak Positive.
Pakistan Blogs
- Innovative use of Blogspot, a free service
- Presence on Social Media
- Email subscription
- A cool AJAX based interface to read blogs. Click on Read Full Post icon and it will open actual blog suing AJAX. I loved this feature.
- Comments, Tweet and Facebook Share for individual posts on the aggregator
- No RSS. When I tried to use default blogger RSS (just add /rss after a blogger/blogspot address, it'll lead to the rss feed of the blog), I got the link but the subscription didn't go well. As this is not using a dedicated hosting and aggregating software, the feed is not well formatted and readable. You don't know where the blog title ended and post title started and where did the body start. So I had to abandon it, and use Pak Blogging instead.
- Looks like manually updated, since blogger/blogspot does not provide auto-update features (apparently).
Pak Blogging
- Simple and clean interface. The one I like, list of posts no categories scroll down and read whatever you want.
- Contact, Badges, all the stuff a new visitor needs.
- Straightforward Submit Blog link. No worries, no restrictions.
- Categories and Recent Posts widgets for ease of browsing
- RSS feed link, the one I love to subscribe instead of emails
- Well I suppose nothing is perfect so they should have something here as well. So Too Much Commercialization and adds on first page ;-)
Tuesday, September 6, 2011
How to Add Pics in Table in Blogger
- Download Windows Live Writer.
- Install it, afterwards you will be asked to setup blog account.
- Enter your Blogger.com credentials and setup for the blog you want to post on with Live Writer.
- Now open up the pictures folder in a new Explorer window.
- Start writing a new post in Live Writer name it Test Post.
- Go to Insert tab (the interface is familiar for Office 2007, 2010 users: Ribbon Interface).
- Here you'll find Table function. Click and it'll open up a new dialogue for table configuration.
- Select number of cells and rows as per your arrangement scheme. Select cell width, default width worked well for me by the way.
- Click OK and a table is inserted in the blank post body section.
- Now Drag and Drop each picture (from pics folder) in each cell. The picture will be automatically adjusted as per cell width.
- When you are finished. See in Home tab, second separator Publish. There is an option Post Draft to Blog. Click it and Live Writer will start publishing your draft post to your blogger account. It will not minimize but you can do other things in meanwhile.
- As soon as it is finished, go to Posts section of your blogger dashboard, and see there is a draft named Test Post.
- Click on Edit and the pictures are in front of you arranged cleanly in table cells. You can see the Preview to make sure that they'll look nice on your blog. And now you have two ways.
- Continue editing this draft, rename it and add your other content and Publish it.
- Or you can copy the pictures code by clicking on HTML mode in post editor and paste that code in your original post (of course through HTML tab). And you are done :-)
Friday, September 2, 2011
Making Money Online in Pakistan
Wednesday, August 31, 2011
Happy (Previous) Eid
Monday, August 29, 2011
Planning Your Career
- As a first step you look for a job. At this time your priority is not to get a handsome salary, but you look for 'a job', which can give you the right to be called a professional. In language teaching field, you will get the kinds of jobs as I mentioned earlier. As a trainee teacher, a school teacher, a private college teacher, you do not seek for handsome salary, but here your purpose is to seek knowledge to survive in market. You seek the ways to move in a professional environment. This experience gaining helps you in your future work.
- As second step you seek for a better job. Here the questions come what is the better job and WHEN? The choice of 'what' is totally person dependent because some people are comfortable with teaching, others are not so they may pursue for other fields and start from zero again. 'When' is a crucial thing to answer. Because your first job is very important for you to teach youself professionalism. But at the same time not all first jobs are so generous to offer you good income. So you've to move along. This move along can be tricky and context dependent (see for pragmatics here folks ;-) ). A few things should be kept in mind in this regard:
- You are being offered by a more prestigious organisation with a more suitable salary package.
- You think that you've gained as much as you could from your current institute.
- You think that you've spent reasonable time in the institution.
- You think that you wouldn't be able to survive in this institution any more (this can be due to some unfortunate reason)
- You think that you should concentrate on further studies instead of the job.
- Today's professional world offers you no generosity but 'cut throat' competition. If you are best, you'll survive otherwise you'll be left behind by the natural selection process. So you need to improve yourself constantly. In teaching you should be aware of latest techniques of teaching, use of technology and other gadgets which keep on emerging every day. Along with it, you need to improve intellectually as well. Being a teacher does not mean you've stopped learning yourself. You learn even when you are teaching in class. But that's 'learn to teach', what I want to focus here is to continue your regular studies. Masters degree is nothing today. Hundreds of universities across this country produce thousands of masters degree holders every year. So you are no exception. For improvement, to be exceptional, to be better, you will have to pursue for higher studies. When I see for myself, I have a plan for PhD and Post Doctorate (if possible) in next 5 to 10 years. You should also plan for yourself that what you want to get more along with your masters/ graduation degree.
- Reflection and Hope are two elements which are crucial for career advancement. You should, after a reasonable period of time e.g. 1 year, reflect on your previous time, sit and think about it. What have you gained, what have you lost and where did you overestimate about yourself. Hope is something which keeps you alive, and urges you to move forward. Never let the hope die. Because time is meant to change. Today if something is unfavourable, it wouldn't be so for long. In past 1 year, I always hoped for the best, that I would be no longer in that miserable school. (That's a different story how 1 year teaching in school benefited me and on what cost). But I never let the hope die. I had an urge that after some time I'll move forward. And to remind myself of this, I thought myself as water in a pond, which if stays long in the pond will grow algae in it. So I constantly reminded myself that if I stayed there for long, I'll rot and corrupt myself, because I've never seen myself as a school teacher. At least what I can bear for myself is a university lecturer. But to get this goal, I've to struggle and work hard, measure each and every step, move forward bit by bit, be patient, and keep on getting expertise in terms of education and experience of the field. Then with the Grace of Almighty, soon enough I'll see myself on the desired goal. And perhaps I wouldn't stop there as well, and will set new goals for myself.
Sunday, August 28, 2011
What to do after a linguistics degree
There are some problems, no one has denied that. For example linguistics graduates (MSC Applied Linguistics) cannot apply for PCS Lecturers seats. The problem is because PCS only considers MA English in this regard. The solution is to change the name of the degree as BZU Multan, Islamia University Bahawalpur and UMT Lahore did. They have these programs for longer time as compared to GCUF, their students faced the problem and they have made appropriate changes to compensate. As per my knowledge the same is going to happen in GCUF. The degree name would be changed to MA English (Specialization in Linguistics). There would be a few basic courses of literature as well, to give a general idea of English literature to language students.
But the changes are being made as of 2011. The masters program started in 2007 with first batch in 2009, so there are three batches out with degrees. They are at a loss this way. But solution is there, only that it would take some time, and some effort. We, the old students from Applied Linguistics with MSc degrees are going to apply for PCS. We know that we’ll be refused. Then we’ll go to Supreme Court filing a Writ Petition. This way we would request the court to: instruct the university to change the degree name for old students; instruct PCS to allow us the right of application.
Pretty much clean and simple solution eh? Everything perfect and smooth. But that’s not the case. Firstly do not expect that you’ll be granted whatsoever you want. Secondly do not expect that you will get a job in PCS even if you have got the permission to apply. There are less than 250 seats from all over Punjab and thousands of degree holders are waiting for an opportunity. So only the best and fortunate will be selected. Now there are two ways:
- Sit down and start grumbling about the conspiracies, injustice, misguidance done to you by the world, the seniors, the university, the department and the teachers.
OR
- Start building your career by gaining experience and getting what you lack at this moment. So if you want to grumble the floor is open start is right now, if you want second option stay with me.
- Create your CV. A simple 1 pager which would tell what is your qualification and areas of specialisation. I’ve a few samples, drop your email in comments or through Contact Me page, and I’ll forward you the CV samples.
- Get copies of all of your documents. Attach them to 1 copy of CV and make bundles.
- Drop in all good institutions of your city. At this moment your target can be Beacon House, The City, Little Angels, The Educators, Lahore Grammar School, and for colleges almost every private college. And be quick because the session is going to start and they need teachers.
- If you get a job this would teach you how to behave in professional environment, deal with parents, deal with students and you’ll get experience.
- There is a program for Trainee Teachers in Govt. Colleges. Several of your seniors has been benefited from it. It gives you a reasonable salary as well as experience of teaching at college level. Aisha Chouhdary (BS 2006-10) worked in this position at a govt. college, Sadaf Maqsoof from MSC 2008-10 i.e. my class fellow, worked at a govt. college in her city. From MSc 2009-11 Berg-e-Hina is selected as a trainee teacher at a govt. college in her city, Tahir Imran from BS 2007-11 has been selected in Govt. College of Commerce Faisalabad (he informed me today). And Mudasir, one of my class fellows, secured a similar job at Govt. College Samanabad. But don’t be so excited, the opportunity is over for this year. The interviews held on 19 August, 2011. Like you, I got this news after 4 days and regretted not applying for a college trainee teacher job. But never mind, better luck next time (next year actually). Keep an eye on the newspapers in this regard.
- Make a habit to read news papers and find job adds. Make a habit to apply for jobs.
- You want to pursue for CSS, and regretting not having read literature in your masters degree? MA English Literature course is available in market, buy books and start reading works of Shakespeare, Novels and Poetry so you may have some idea of literature. Remember reading is a habit, good books always provide you something. So start reading while you have sometime before getting a job. And who knows while reading the books casually, you decide to go for another MA i.e. MA English. Personally I would like to have a Post Graduate Diploma in English Literature in next years of my life so that I can compensate for not reading literature. But it does not mean I do not read now. I read but my taste is a bit different. I like to read Fantasy and Science Fiction and so far have listened audio books of Harry Potter, Wheel of Time, Codex Alera. Roughly they make 30 books.
- Be in touch in HEC and see for any foreign scholarships.
- Pursue for M Phil in Applied Linguistics if you want to go forward for University Jobs. I’ve a similar plan as well.
- And thank ALLAH for what he has granted you. See what you have now, see around yourself to realize how you are blessed. Even you existence is a blessing. Its you who can make your life heaven or hell. By fretting you’ll make your life hell and nothing would change around your. By Thanking ALLAH you will be obliging for what HE has given you. It will create a positive attitude and give you strength to move forward.
Saturday, August 27, 2011
How to make your blog SEO UN-friendly
- Use a theme which is unreadable by occasional reader of your blog. Use a colour combination that is impossible to read e.g. Dark Blue over a Dark Background.
- Never place a navigation pane on your blog. It may help the user to jump from post to post and browse your blog easily.
- Never add social sharing buttons. They might help increase your blog traffic by socializing.
- Never submit your blog to any search engine.
- Write your posts in یل بللڑ (Yall balallar) words i.e. obscure and if possible non English words, that reader may not understand what the hell you wanna say.
- Your blog title must not tell what your blog is about.
- Your post title should have least connection to post content.
- Write your posts in long single shot mode with no paragraph breaks. This way your reader will not be able to dive into your post and understand what you wanna say.
- Disallow comments, trackbacks and pingbacks. They can harm your blog by increase the traffic and by creating user interaction.
- Never mention your blog URL when commenting on other blogs.
- Never try to socialize with other bloggers. Do not attend blog summits. Instead stay home, cheer and relax.
- Never submit your blog address to a blog directory and a feed aggregator. It might increase your blog traffic.
- Never add an About page.
- Never add a Contact Me page.
- Never answer emails from users if they fortunately find your email ID.
Friday, August 26, 2011
Misguided Attitude of our Students about Professional Life
I was one of the lost children of my nation who didn't know where to go, what to do, what is the career, how to move in life, how to plan for future, what would be the consequences of studying science, arts or commerce. I studied science in matric because “intelligent” students were supposed to study science. It was in fashion, and as I was unfortunately considered an “intelligent” student I opted for science. Thank God there were no further choices in science, it was just Biology, Chemistry, Physics with Maths as compulsory subject. I studied and got good marks, 79% actually.
When I encountered a college first time in my life, and got prospectus again I was confused to select. My friend, actually best friend at that time, was opting for science and per-engineering (Physics, Chemistry, Maths). So I opted for science as well as per-engineering. Science because I had started thinking myself “intelligent” and per-engineering because my friend was also opting for it. That's another story that our sections were separate, we just met in the morning we were coming to college or in afternoon while going home on bicycles. My performance was rather poor in intermediate and I only managed to get 62% something marks.
Two years passed like two minutes and again I was standing there, thinking what to do next. I was not “intelligent” as I used to be. I had financial issues in front of me. My friends moved to engineering, telecommunication, repeating intermediate examination to get good marks and so to get admission in engineering university. I was left behind, thinking what to do. Then someone told me opt commerce subjects in graduation. And I did. I'd never studied commerce in my life. There were subject choice available in intermediate named Intermediate in Commerce (I. Com.) but as I had studied science, there was a little problem for me. But I got it as a challenge. I worked a bit harder, and tried to get good marks in Bachelors of Commerce (B. Com.) part 1, 62% actually. I found in this period that accounts, commerce, business, economics were not that difficult as they looked like. In second part, however, I couldn't maintain my percentage and finally I could barely secure 60% i.e. first division.
I was thinking myself to be a teacher somewhere in some college, teaching commerce. So my intention was to pursue for M. Com. (thank God I was a little bit clear about my career after 20 years of my life). But this was not the case with fate. My fate led me to Linguistics. It was really ironic for me when I was informed that I couldn't get admission in M. Com. at Govt. College University, Faisalabad. The Commerce Department had conducted test plus interview. I passed test, and they failed me in interview with 0 mark. If they had given me 1 mark, I was in. But I couldn't get admission because there was someone else who had a giant behind himself endorsing him for admission. So I, a refused Shakir, turned to Allama Iqbal Open University for MBA, and started looking for jobs. What kind of Jobs? Job was to get a home tuition, to teach in an academy, to work with someone as a computer assistant.
I did these jobs for a few months. As mentioned earlier, I was working as a computer assistant with someone. And here happened the most ironic twist of my life. The people I was working with as assistant (now my teachers) convinced me to leave commerce and study linguistics. OHH MY GOD :-@. Can someone has such a twisted educational path as I have? But I accepted that and 3rd time in my life changed my field Science > Commerce > Linguistics. So I worked for them in the morning, and took classes in the evening. It was not a regular program, just a post graduate diploma in which I was granted admission on continuous insistence of the teachers I was working with. Other member of the Department of English, including the head weren't convinced that I could be allowed to study English Language Teaching. But I did it, I got admission, I completed the degree.
Here, before coming to this degree, for the first time in my life, I was crystal clear. I knew where I've to go. I had a path in front of me. I knew that there was not going back. I had burned my boats. I was now a linguistics learner for whole of my life. My job was to teach English, research on Urdu and Punjabi and translate (as I later became). I had started a 10 year plan for my life. Because PGD was not enough, so after PGD, I went for MSc in 2008. In the mean time, thanks to a very kind person, Talmeez, as I mentioned above, I started working as translator. With the passage of time I got better, my interests developed in corpus linguistics, computer assisted linguistic research, computer assisted language teaching, research on Urdu and Punjabi. And now I am here, after one year of my masters, seeking to get admission in M Phil, working as a translator, having worked as a teacher for 1 year, looking forward to PhD.
And now, today, he says to me that I betrayed him. He thinks his education is just a piece of s**t and I am one of the responsibles. But how he can blame me for all this? Hadn't he a mind in his head? Couldn't he think of a better way at the time of admission? The reality is that he was like me, like one of thousands of students who are left behind, because they are not “intelligent” so they can't study science and can't be doctors or engineers. So they move to arts, they complete BA, then they move to specific areas of arts, Sociology, Psychology, Islamic Studies, Business, and English (to include now Linguistics as well) etc. They don't know where to got, they just follow others, sometimes they seek some department to get admission in because their marks are not enough for merit in certain other departments. We faced this dilemma for last several years in Applied Linguistics Department. Students who came here for admission had lowest grades, no idea to move where to, seeking for some magic degree which could give them employment. We as old students motivated them, told them about the benefits they could get after becoming a linguist, ones who convinced took admission and got degree. And now one of them blames me. Is he right doing this?
Sir Asim used to tell that Winners have place in linguistics not Loosers. So I ask them all, are they winners? Are they having something in them? Any spark? Good grades? Abilities? Motivation? Courage? Patience? If they don't have all this, then they should blame all of the world which is against them.
Our students need to realise the world is not a bed of roses. They think that every thing would be just fine once they get the degree. The employer will be standing at front door of their house requesting them to honour him by joining his organisation. This is not a Utopia, an ideal world. This is real life with all cold bitter harsh realities of life. You have to struggle, you have to be a winner, if you are not, you have no place here. I would suggest my juniors do not expect miracles for themselves. 1400 years ago Angels have stopped coming to this world to create miracles, now we are on our own. You should have faith in Allah, thankfulness for what He has given you, and courage to struggle patiently. This is not the end, this is beginning of a new degree, Masters in Life. Here you will learn for all of your life, you will get good grades only if you are capable. And remember in the tests of life, there is least chance of cheating. May Allah be with you all.
Sunday, August 21, 2011
How to Add Google Authorship Markup in Blogger Posts
1. Copy this link to Notepad
<a href="https://plus.google.com/107301882632607014913/about" rel="author">Muhammad Shakir Aziz</a>2. Replace the name with your name, and link with your G+ profile link.
3. Go to you Layout tab of Blogger.
4. Go to address bar. Replace blogger.g? part of the link with html?. Refresh the page, you are at html edit tab of old Blogger interface.
5. Check Expand Widgets check box.
6. Search for this line <span class='post-timestamp'>
7. Add the hyperlink for author created by you after this line. You can add "Posted by" before the link as well, without quotes.
8. And to make it perfect go to Page Elements tab, click Edit on Post Widget and uncheck "Posted by" check box.
9. You should be able to see you Google+ profile link instead of blogger profile link as your authorship link.
Enjoy until Google adds automatic linking to your G+ profile.
Sunday, August 7, 2011
How to Transcribe a Spoken Text for ICE
<$A>is by the federal government
<$B> Ok uhmm <}><->I've<=>I've jsut lit literally about half a minute Mr. Babar. Let me just ask you this question that is come uhm from Asif who is watching from Canada....
Monday, July 5, 2010
Selecting Range of Filled Columns and Rows in Calc
Saturday, May 29, 2010
Regular Expressions: Facility, Ability and Haste
I came to know about regex 3 years ago when I was working with my teachers on their corpus research work. I was unable to grasp the meaning of regex initially and the power they had behind them. But after some time I got books and article on the topic and started learning them. The book most helpful for me was Friedl - Mastering Regular Expressions 3e (O'Reilly, 2006). I completed only 2 chapters of this book but it made me speedy panther in text processing from a lame lamb. Being a linguistics student and a corpus linguist I am always seeking ways to get text patterns automatically with least possible time. And regex provide me this facility. Along with regex I use C# 2005 which gives me a powerful capability to do everything I want with the texts.
Regex are good but they are like knife in your hand which can be used to cut your own hand also. You should be very well aware of the pros and cons of using regex. The very first thing you should consider as a corpus linguist is to search the regularities in the text. These regularities or patterns will help you find the perfect regex for the purpose. The best strategy is to analyse the data manually e.g. by inspecting concordance lines in search of the required constructions. After you have inspected and found the ways in which the construction is occurring, you can create a good and regex. But remember cross check, double check and recheck your regular expression to verify does it doing the maximum? Does the loss is minimum? And finally does it affordable? Affordable here I mean if it is hasty to add every construction and thus increasing your work. Regex give power and flexibility but they should be carefully used. They should be constructed with great care and also verified with manual analysis. And the most important thing, use regex to get concordance lines which you will inspect manually thus you can reduce your work as well as quality would be maintained.
Wednesday, May 12, 2010
Sorting a Dictionary in C# 2
So here is a code sample which can be used to sort a dictionary with respect to its values. I have blended 2 or 3 methods into one so that it takes input as dictionary and gives output as dictionary. Code may be inefficient due to my inabilities in programming but still it works for me. Hopefully for you it would work also. :-)
public static DictionarySort (Dictionary dict)
{
List> list = new List >();
foreach(KeyValuePairkvp in dict)
{
list.Add(kvp);
}
list.Sort(
delegate(KeyValuePairfirstPair,
KeyValuePairnextPair)
{
return nextPair.Value.CompareTo(firstPair.Value);
}
);
Dictionaryd = new Dictionary ();
foreach(KeyValuePairkvp in list)
{
d.Add(kvp.Key, kvp.Value);
}
return d;
}
Friday, April 30, 2010
sudo apt-get upgrade -d
Hit Alt+F2 and in the run box type
sudo gedit /etc/apt/sources.listNow replace 'karmic' with 'lucid'. Save the file and now write in terminal
sudo apt-get updateand then
sudo apt-get upgrade -dPut your computer on a scheduled shut down and sleep. As I always does. :-)





