Category Archives: Personal

Personal stuff, thoughts, activities

Instant Problem Solver: An Invention By Pakistan President

 

Congratulations to all fellow Pakistani citizens, our honorable president has made a marvelous discovery of the 21st century. After seven years of struggle, restless nights and extensive research, he has been able to formulate “An Instant Problem Solver for any Problem anywhere, anytime” aka “Emergency”.

This remarkable invention will definitely change the face of the earth, with misery lawlessness, corruption, biased judiciary, suppression of human rights will become things of past. I wonder , whether our next generation will ever heard these words( they might exists in dictionary ). It will help the deteriorating economy to make an about turn and hit the sky.

So, how it works. Well it is strongly to advise to use it when the ‘nation’ is in ‘peril’. Just proclaim Emergency for few days, and then see the result. You won’t believe it, until you see it happening. In few days you will see result yourself. Lift the state of Emergency after the ‘nation’ is out of ‘danger’. (Note: according to the latest research reports by MIT-Mussharraf Institute of Technology, Emergency and Martial Law are synonyms, you can always use them interchangeably ,if you are president and coas). Sometimes the constitution may prohibit you from taking the dose, but you know that sometimes we have to ‘swallow the bitter pill’ for the ‘greater good’.

I would advise to all the presidents and head of states of the world to give this incredible invention, a try. The patent owner is offering money back guarantee if results are not met.

To market the new product, I think , the patent will use some of the existing advertisements for different commodities available in the market as they will give the desire touch.  Some examples.

Medicam Toothpaste.
(original)
Uff, Dant ka Dard,
is Dant ke Dard ka kia illaj,
pesh hai medicam toothpaste
issey do minute dantoon pe laga rehne dein , phir asar dekhien ,
Medicam tooth paste, dentists ki awaleen pasand.

(revised)
Uff, judges nahin bik rahe,
mein sadar kese banon, is dard ka hai koi illaj,
pesh hia Emergency 2007,
isey kuch din mulk mein laga rehne dein, phir asar dekhien,
Emergency 2007 , generals ki awalien pasand.

 

Suduri (cough Syrupe)
(original )
khansi ka hamla ,
suduri se paspa,
hamdard ki suduri,
(tamam duwain bachon ki pohanch se dur rakhein , tabiyat ziada kharab ho tu doctor se rijo’ karein , turrrnrn)

(revised)
Judicary ka hamla,
emergency se paspa,
mussharf ki emergency 2007.
(tamam khabarain media ke pohanch se dur rakhein, halat ziada kharab hon tu media pe pabandi laga dein , dissshhh!)

Paracetamol.
(original)
do goli sher ke nishan wali , pani mein jald haal ho jati hai .
(revised)
chand din ki emergency , General ke nishan walim, mulk mein jaldi lagoo hojati hai.

…….

and the list goes on, :), In short the discvery addresses the following symptoms.
“Are you annoyed with Judicary”
“Is media making fun of you and your allies by publishing their wrongdoings”
“You are not sure whether you will be president for the next term or not.”
“You feel constitution is in your way to greater good”.

then go ahead with emergency.
“One way to rule them all, One way to find them all, One way to bring them all and in the darkness bind them”.
 Emergency is the Way.

Glossory :
Nation => you and yourself only i.e president or head of state or coas
Danger, Peril => you might not get a chance to hold the hot seat for the next term.
Swallow the bitter pill => go and f*** constitution, it won’t be much problematic.
Greater good => your and your allies future as you being in the hot seat.

During the dose you might observe following hallucinations, just disregard them.

 

regards

faraz   (feeling proud to be Pakistani)

Advertisements

No More Extremism !!!

 

Self Explanatory. Extremism will not be tolerated at any level.:P

regards

faraz

(PS: I am not translating , as it will void the beauty of the captions.)

dotCompilerator first release

well I am building my compiler studio from scratch using some other techniques that I didn’t use last time when I developed compiler studio. I don’t have any prescribed scope right now and I am building it bit by bit right now. But still some of the major enhancements that I would like to be included in the new one are following:

regular expression parser able to parse expression directly into DFA(partially done)
combined dfa support
design restructuring
LR parser implementation
Abstract Syntax tree generation
Visualizers (Grammars, FA, other)
enhanced support in RE for other operator (other then *,+,|,?)
support for multiple language description format( BNF ,EBNF, custom)
custom IDE
Integration with other IDE, (eclipse and VS.net)

and this list goes on.

I have just started to work on the list, and it needs a bit of dedicated time, I was able to write a parser regular expression that parses the string into a Abstract Syntax Tree and calculates its firstpos, followpos, lastpos values for the node to construct a dfa. ( this is implemented as described in Compiler: Principles, Techniques and Tools by Aho, Sethi and Ulman). Now I am working on object model for FA/DFA/NFA and then RE conversion into FA.

download code from http://s.faraz.mahmood.googlepages.com/CompilerStudio20071010.zip

regards

faraz

Javed Miandad on 4menshow

4menshow has been gaining popularity these days. These guys have abundant supplies of talent and ideas. They usually mock on political situation of Pakistan and perform parodies of famous politician and other notable personalities. Following is a recent show regarding Javed Miandad, enjoy!!!

part 1:

part 2:

part3:

part4:

regards

faraz

Demonoid is back

If you know what is Demonoid, then you might already knew that its back, hurayyyy!!. and by sheer factor of luck if you don’t have any idea what this would mean, then my sympathies are with you. :P.

Demonoid, is a site for sharing torrent files. It hosts a large no. of torrent files. Torrents are sort of links to actual files which are hosted on different peers all over the world. Bit Torrents is p2p technology for sharing large files. Users usually get a torrent file from servers like Demonoid, piratebay, meganova,torrentbox. These torrent files contain links to the tracker of the data file ( e.g movies, Linux distro etc). The actual downloads are not hosted on the servers and are dispersed over a no. of peers. Most of the time, torrent client is downloading different chunks from a large no. of peers. Trackers are used to collect statistic about a torrent i.e no of uploaders a.k.a seeders, and no of downloaders a.k.a leechers, and are very vital to the torrent network. Most of the torrents sites are usually available for free, you might required to create an account. However some requires paid subscription for accessing the listed torrents and only allows registered members to access the tracker. Some sites, although free, but require you maintain certain DL:UL ratio (usually at least 0.5), you may receive a warning if your ratio get too low. This is intended to promote a sharing community, because without sharing, torrent community will come to its knees. It is often recommended to upload at least the amount which you have downloaded.

So, what’s so cool about Demonoid. I think, it is the best torrent site, I have ever landed on. It is free if you want to access only latest uploaded torrent files, but to access the older files, you are required to be registered. Registration is also free, but opens only at some unannounced time during each month(usually start /end of month). Torrents are usually of good quality and categorized making them easy to locate.

Demonoid has been receiving law suits threat from the beginning, they moved their server from Germany to Canada ( afaik ) to avoid them. Last week they received another notice from CRIA. (Why these anti-piracy morons always come when something is hitting the big scene, where were they, when the technology was in its infancy, I am sure an intelligent investment at that time would not only benefited them but also they might have contributed something important to the computer industry.)Their website was down for few days, though the server was replying to ping messages. Now they are back. welcome back!!

regards

faraz

Silver Jubilee

 

yep, it is here at last , after a whole year since last year’s , 26 th September,  my 25th birthday anniversary. I think its a coincident but today is also the full moon 😀 ( you are free to make connections and assumptions ).

regards

faraz

My GRE experience

 

I apologize for my extremely long absence from the screen. I had been busy with my GRE preparations as I am intended to purse Graduate Studies at US universities for fall’08 session. I had my test on 10th September 2007 at Prometric Test center (G01 ,Block 2B, Knowledge Village). Alhamdullilah , I have scored 1310 /1600  ( V:520/800,  Q:790/800). I think my score is quite decent if not spectacular, as 1500+ is not a rare score. I am waiting for the AWA assessment, which will be dispatched in 3-4 weeks (I hope).

Graduate Record Exam – General (GRE) is a standardized test often required at the admission in graduate studies in US universities. It is composed of 3 section; 1) Analytical Writing Assessment (AWA)  ,2) Quantitative (Q) , 3) Verbal (V).   AWA is scored at the scale of 6 , while Q and V both are marked out of 800. GRE is administered all over the globe in many countries. It is offered in 2 formats; Paper Based Test (PBT) and Computer Based Test (CBT). CBT is offered at most of the centers. PBT usually offered at centers only when CBT can not be administered at that center. GRE CBT is an adaptive test, which means you response of the current question determines the difficulty level of next question. If you answered wrong then the next question might be less difficult one then the one you just answered. Therefore it is often advised to get correct as many as you can in the beginning (5-10), to get a good score range. If you  answered wrong in the beginning then your score will be affected badly, no matter you answered the rest correctly. In CBT, you can not move back to a previous question and you must answer each question before moving on. PBT are a different that they are not adaptive, they have fixed set of question and you can work on the question which you have skipped.

I think the ability which GRE tries to assess ,is your responsiveness within limited boundaries of time. In Quantitative section you are given 28 problems and 45 minutes to work them out and in Verbal section you have 30 minutes to answer 30 questions. Quantitative covers high school mathematics concepts while verbal targets your knowledge of English language. I don’t think question in mathematics are difficult to be solved, what makes them tough is the time restrain. Anyone can solve the toughest question of the test given enough time but you have usually 1 minute and 30 seconds to understand and solve a question, and that’s where your problem solving ability comes into light. Sometimes you have to look into the problem in an unconventional way. You should avoid any lengthy calculation and try to use common sense and mathematical facts to discard unnecessary calculations. Verbal section examines your knowledge of English. I think memorizing a lot of words won’t do any good here unless you know how to use them, that’s what , which is tested in GRE. Verbal section contains Analogies, Antonyms, Sentence Completion, Comprehension.

I don’t feel myself at ease in verbal section, but having a mathematical background I can better perform in the quantitative section. I started preparing for GRE in January 2007, initially I was planning for taking the test in April or May. Unfortunately due to my extremely busy schedule(:P), I wasn’t able to take it until now. I regret that, I have spent too much time during this period. I don’t know why , but it happens often to me, when I have some tasks at hand, I usually loose my concentration on that task, and try to escape by engaging myself in completely worthless activities at that very moment. When I started preparing for GRE, suddenly I found myself completely indulge in all activities except, preparation :D, gaming, movies, swimming, gym, sleeping, HP(harry potter), Programming (I was overwhelmed by the numbers of idea pouring in my head while I was trying my best to learn a wordlist :)) .Though they weren’t worthless activities but they aren’t pertinent to the preparation. And now the test is over, I feel less attracted towards them.

Few advices for those, who are preparing for GRE. First and foremost, do take a diagnostic test before your preparation. It will indicate you current standing  and let you to estimate the effort required and an approximation of your score. For verbal section try to LEARN as many words as you can. Baron’s has a decent word list of 3,500 words along with a High Frequency Words list, both are really good, especially HFW, you can start by learning HFW then moving on to the complete wordlist. A part from learning the words, try to read as many articles/ book as you can that are rich in usage of these words. For quantitative section, I have only two thing to say Practice and CONSTANT VIGILENCE!!. work out as many problems as you can. Take model tests. Visit online forums where users discusses questions and their solving strategy. check http://www.urch.com/forums. Revise your basic mathematics concepts, Algebra, Logarithms, Geometry, Trigonometry, Probability, Statistics, Ratio , Proportions, Series ,Sequences. And keep a watch on your time. For AWA, again practice.

Well quite a lengthy post after a long time. All the best!!

regards

faraz