The Stranger, The Idiot, and the Guillotine

I read Albert Camus’ magnum opus ‘The Stranger’ (also known as The Outsider) a couple of weeks back. I intend to write a bit about that as well separately, perhaps in some other post. After The Stranger, I picked up The Idiot, written by Fyodor Dostoevsky.

In this post I wanted to share a curious discovery I made. I don’t want to spoil it by telling ahead. Instead, read the following passages from the two novels and you should be able to discern most of it, even if you have no idea about the background and story. The passages are fairly self-contained. Nevertheless, I will provide a brief context to put things into perspective.

Let’s start with ‘The Stranger’ (because I read it first)

 Passage from ‘The Stranger’

The Stranger by Albert Camus

Context: The novel is set in Paris, France. The protagonist has been convicted of a murder, and is sentenced to death. The method of execution is going to be the infamous Guillotine. He is contemplating his execution in painfully vivid details and recalls some memories of the executions he had seen.

“Like everyone else I’d read descriptions of executions in the papers. But technical books dealing with this subject must certainly exist; only I’d never felt sufficiently interested to look them up. And in these books I might have found escape stories. Surely they’d have told me that in one case, anyhow, the wheels had stopped; that once, if only once, in that inexorable march of events, chance or luck had played a happy part. Just once! In a way I think that single instance would have satisfied me. My emotion would have done the rest. […] No, the one thing that counted for me was the possibility of making a dash for it and defeating their bloodthirsty rite; of a mad stampede to freedom that would anyhow give me a moment’s hope, the gambler’s last throw. Naturally, all that “hope” could come to was to be knocked down at the corner of a street or picked off by a bullet in my back. But, all things considered, even this luxury was forbidden me; I was caught in the rattrap irrevocably.”

“Try as I might, I couldn’t stomach this brutal certitude.”

“Another equally ridiculous fancy of mine was to frame new laws, altering the penalties. What was wanted, to my mind, was to give the criminal a chance, if only a dog’s chance; say, one chance in a thousand.[…] For after taking much thought, calmly, I came to the conclusion that what was wrong about the guillotine was that the condemned man had no chance at all, absolutely none. In fact, the patient’s death had been ordained irrevocably. It was a foregone conclusion. If by some fluke the knife didn’t do its job, they started again. So it came to this, that—against the grain, no doubt—the condemned man had to hope the apparatus was in good working order! This, I thought, was a flaw in the system; and, on the face of it, my view was sound enough. On the other hand, I had to admit it proved the efficiency of the system. It came to this; the man under sentence was obliged to collaborate mentally, it was in his interest that all should go off without a hitch.”

Passage from ‘The Idiot’

The Idiot by Fyodor Dostoevsky. I have taken the English translation from here.

Context: The novel is set in Russia. The protagonist has recently returned from Switzerland. During this dialogue he is sitting in a sort of waiting room in the house of his distant relative and sharing his thoughts on Guillotine with the usherer.

“Do you know, though,” cried the prince warmly, “you made that remark now, and everyone says the same thing, and the machine is designed with the purpose of avoiding pain, this guillotine I mean; but a thought came into my head then: what if it be a bad plan after all? You may laugh at my idea, perhaps—but I could not help its occurring to me all the same. Now with the rack and tortures and so on—you suffer terrible pain of course; but then your torture is bodily pain only (although no doubt you have plenty of that) until you die. But here I should imagine the most terrible part of the whole punishment is, not the bodily pain at all—but the certain knowledge that in an hour,—then in ten minutes, then in half a minute, then now—this very instant—your soul must quit your body and that you will no longer be a man—and that this is certain, certain! That’s the point—the certainty of it. Just that instant when you place your head on the block and hear the iron grate over your head—then—that quarter of a second is the most awful of all.”

“This is not my own fantastical opinion—many people have thought the same; but I feel it so deeply that I’ll tell you what I think. I believe that to execute a man for murder is to punish him immeasurably more dreadfully than is equivalent to his crime. A murder by sentence is far more dreadful than a murder committed by a criminal. The man who is attacked by robbers at night, in a dark wood, or anywhere, undoubtedly hopes and hopes that he may yet escape until the very moment of his death. There are plenty of instances of a man running away, or imploring for mercy—at all events hoping on in some degree—even after his throat was cut. But in the case of an execution, that last hope—having which it is so immeasurably less dreadful to die,—is taken away from the wretch and certainty substituted in its place! There is his sentence, and with it that terrible certainty that he cannot possibly escape death—which, I consider, must be the most dreadful anguish in the world.”

My 2 Cents

It is important to mention that both these passages have been taken from translations. The Stranger was written in French (published 1942), and The Idiot in Russian (published 1869). So let’s just get that out of the way.

Another worth mentioning fact is that Dostoevsky was actually once sentenced to death because of “anti-government” activities. But luckily for him, and us, while he was standing before the firing squad a last minute reprieve was issued and he was sent to a labour camp in Siberia instead (more details here). So we can say that Dostoevsky had a first hand experience of what it feels to face certain death,

As you might have noticed, there are striking similarities in both descriptions. Even the details have been articulated in a very similar manner. In my opinion there are two central themes. First, the Impending Doom; second, and as both authors have pointed out, the dark and vicious Certainty of it.

The certainty aspect is directly linked with the hopelessness. Both authors describe how the protagonist wishes for the slightest glimmer of hope, no matter how absurd or impractical that might be. Both authors complain that the victim (or ‘patient’ in case of Camus) is not allowed any hope at all and draw out the psychological torment that follows from this hopelessness  in a beautiful but bleak and cold  way.

You don’t really need to be sentenced to a Guillotine to relate with the message. There are many occasions in one’s life when the sheer certainty of a thing makes it infinitely more dreadful.

Both Camus and Dostoevsky are well regarded “psychologists” and towering personalities in world literature. Their works unearth the deep and often untouched and unexplored depths of human nature and present it in astonishingly relevant scenarios. I just found these two passages very curiously similar and thought that I should write a bit about it.

India, Pakistan and Peace

Note from Author: I published this post on Facebook on 21st Sept (The International Day of Peace). This was written in context of the Uri incident.

In the wake of recent Uri incident and the amount of war mongering posts (on both sides of the border that is), the narrative based on hatred, and a misplaced/misguided sense of patriotism and national spirit I consider this my responsibility as citizen of Earth, not that of Pakistan or of India, to remind fellow members of mankind that war is never a solution. We must in fact consider it our most utmost failure and shame that we have to resort to violence and use of force in any matter.

I would like to remind, in good faith, the wisdom of Earth’s most celebrated thinkers. I share below excerpts from EINSTEIN-RUSSELL MANIFESTO (named so after Bertrand Russell and Albert Einstein). This manifesto was written during the time of the Cold War and in the context of ensuing Nuclear Race between nations. At the time of announcement, the manifesto had been signed by 11 renowned scientists and thinkers, 10 of whom had won Nobel Prize.

“We are speaking on this occasion, not as members of this or that nation, continent or creed, but as human beings, members of the species man, whose continued existence is in doubt. The world is full of conflicts; and overshadowing all minor conflicts, the titanic struggle between Communism and anti-Communism.”

“We have to learn to think in a new way. We have to learn to ask ourselves, not what steps can be taken to give military victory to whatever military group we prefer, for there no longer are such steps; the question we have to ask ourselves is: What steps can be taken to prevent a military contest of which the issue must be disastrous to all parties?”

“In view of the fact that in any future world war, nuclear weapons will certainly be employed, and that such weapons threaten the continued existence of mankind, we urge governments of the world to realize, and to acknowledge publicly that their purposes cannot be furthered by a world war, and we urge them consequently, to find peaceful means for the settlement of all matters of dispute between them.”

Also, today is 21st September – The International Day of Peace.

Europe and Russia land on Mars next week

ExoMars is a joint project of European Space Agency (ESA) and Russian Federal Space Agency (Roscosmos) with aim of searching for signs of past and present life on Mars and conducting ExoBiology research on the Red Planet.

ExoMars is set to land on the surface of Mars on 19th Oct 2016 (coming Wednesday) at 14:48 GMT (7:48pm PKT acc. to Google).

The mission’s ground control centre is in Darmstadt, Germany.

The Landing event will be live streamed here: http://www.esa.int/…/Live_updates_ExoMars_arrival_and_landi…

An informative publication can be downloaded from this link:http://exploration.esa.int/…/58417-media-kit-for-schiapare…/

ExoMars will use assistance of ESA’s another orbiter, namely, ESA Mars Express and NASA Orbiter (I forgot name). The communication software was also tested on NASA’s Curiosity rover, which generated similar signals to emulate ESA’s ExoMars.

Details: http://www.esa.int/Our_Activi…/…/A_little_help_from_friends/

Approaching the LSTM

I first heard about Long Sort-Term Memory here at DFKI (Kaiserslautern, Germany). Researchers here have been using it with great success in many applications, most notably OCR and digitization of historic texts and fragments.

I have seen LSTM in action and it seems like a really amazing piece of technology. For those who know about Neural Network, it would be easier to think of LSTM as a Neural Network that is also aware of the context and can use “memory” (built by past inputs) to reason about current input. For example, if the past three inputs are “I”, “Live”, “In” then it is very reasonable that the next input is the name of some location. This incredibly reduces the search space and provides amazing sequence learning capabilities. If you have worked with Recurrent Neural Networks (RNNs) which are also used for sequence learning applications you might ask that how are LSTMs better?

It is well documented in research literature (and well known to practitioners) that RNNs suffer from what is called the “Vanishing Gradient” problem, and have trouble learning when sequence dependence spans long time lags i.e. output depends on the past inputs that were seen perhaps 500 time steps ago. LSTMs on the other hand can easily learn sequences with dependencies going back to upwards of 1000 time steps.

Using an LSTM is easy. You can download any popular Machine Learning library and use its implementation of LSTM (e.g. Keras, TensorFlow). But it isn’t very satisfying intellectually, is it? Also, needless to say it helps a great deal if you know what is going on under the hood.

If you are like me and want to appreciate the Math behind it, it is natural to start with the paper that introduced LSTM. But you will find that it is not particularly illuminating (it wasn’t for me atleast) . I needed a kind of walk through guide and some background info to make the paper more accessible. I have compiled the resources below in the order that made most sense to me:

  1. Head first to this great Quora answer by Debiprasad Ghosh for some intuitive explaination and warm up. (Gosh’s answer is the second one and is actually below the highested voted answer)
  2. Then read this excellent blog post by Christopher Olah on LSTMs for a great exposition to LSTM’s internal state and related equations with beautifully illustrated diagrams. The post also contains links to other excellent resources as well.
  3. Now that you have seen the equations and have know about internal working of LSTM a little better, read this blog post by Shi Yan which dissects the architectural diagrams used in LSTM lore. The post also includes a step by step walkthrough of different gates associated with LSTM, how they relate to the present input and how the internal state is manipulated by present input and gates.
  4. Next move to the entry on DeepLearning4J for some more context and a nice commentary on Back Propagation Through Time (BPTT) algorithm.
  5. And just before you pick the paper up again, visit this page for information and intuition about Neural Memory. The post targets RNNs but the concepts are largely applicable to LSTMs as well.

After this initial exposition, I felt more confident to tackle the paper. But since nearly all the material I found seemed to refer to the Vanishing Gradient problem I decided to start there. You can read more about it (and I suggest you do) in the paper by Bengio at al. which they  aptly titled Learning Long-Term Dependencies with Gradient Descent is Difficult. After reading this paper you know the problem LSTM has been designed to solve and you will be able to connect many dots and form a clearer picture about the formal structure of LSTM and how it works.

Keeping all of the above in mind I finally approached the Grand Master itself, Hochreiter’s 1997 paper which introduced LSTM. And much to my surprise the wording of paper now made a lot of sense. I was able to connect the terminology and ideas with the intuition that I had developed by reading the blog posts.

The next natural step would be to read the paper by Felix A. Gers et al. titled Learning to Forget which introduced the now common Forget gate in the LSTM architecture. Interestingly, it seems that both Hochreiter and Felix were supervised by Jürgen Schmidhuber.

Though not directly related to the topic of the post, I’d like to include two links thatI think are nice resources for anyone interested in ML.

  1. A visualization of NN classification. It is a great resources for peeking into the hidden layers of NN.
  2. And for the mathematically inclined, this post relates NN, Manifols and Topology theory. (… and has some epic gif visualizations too)

 

 

…جون ہونا کوئی مذاق نہیں

ramoozcvr
Cover art for Ramooz. Image taken from fb.com/Jaun.Elia.Legend

جون  ایلیا کی رزمیہ نظم “راموز” کچھ دن قبل شائع  ہوئی۔ محترم خالد احمد انصاری صاحب کا اس ضمن میں جس قدر شکریہ ادا کیا جائے کم ہے۔ یہ ان کی انتھک محنت ، جان لیوا عرق ریزی اور جون صاحب سے  والہانہ محبت  کا ہی نتیجہ ہے کہ جون ایلیا کا کلام کتابی صورت میں شائع ہوا اور ایک عام قاری  تک پہنچا ۔ اگر یہ نہ ہوتا تو غالب گمان  تھا کہ اردو زبان ایک  ہر لحاظ سے منفرد اور مکمل شاعر سے محروم رہ جاتی۔ جون ایلیا کے شعری مجموعے لیکن، کیوں، گویا، شاید پہلے ہی اہل علم و دانش کو مسحور کیے ہوئے ہیں۔ مزید برآں یہ کہ انکا نثری کارنامہ “فرنود” بھی علم اور فکر کی  نئی  جہت کا پتہ دیتا  ہے۔

IMG_20160525_205957

جون ایلیا نے جن موضوعات کا انتخاب کیا اس میں راقم کے علم کے مطابق ن  م  راشد کے علاوہ دور دور تک کسی شاعر کا پتہ نہیں ملتا۔ فلسفیانہ مسائل مثلاً مابعدالطبعیات،  وجود اور ذات، الہیات،  مذہب،   طبقاتی تقسیم، مارکسیت   اور علمیات کا ذکر جس انداز سے ملتا ہے وہ جون ایلیا کے علمی قد  اور زرخیز ذہن پر برہان مبین کی حیثیت رکھتا ہے۔  میری ذاتی رائے میں جون ان چنندہ  شخصیات میں سے ہے جنہیں ان موضوعات پر   مغرب کے بہترین اذہان کے مقابل بلا جھجک کھڑا کیا جا سکتا ہے ۔

جون ایلیا سے میرا تعارف پریکٹکل سینٹر میں اردو کے استاد محترم اقبال ناز کے توسط سے ہوا۔ انہوں نے جون کا ایک شعر سمجھانے کے بعد جب شاعر کا نام بتایا تو ایسا منفرد نام سن کر حیران ہونا فطری عمل تھا۔ اس وقت یہ معلوم نہیں تھا کہ جتنا منفرد نام ہے اس سے کہیں زیادہ منفرد شخصیت صاحب نام کی ہے۔ بات آئی گئی ہو گئی۔ تقریباً دو سال بعد جون ایلیا سے سابقہ فیس بک پر پڑا۔ اس بار بھی وسیلہ پریکٹکل سینٹر کے ایک استاد جناب جاوید صدیقی صاحب بنے۔ ان کی ٹائم لائن پر جون ایلیا کے کئی اشعار اور اقتباسات موجود تھے جو جون ایلیا کے فیس بک صفحے سے شیئر کئے گئے تھے۔ اس صفحے پر جون کے ان گنت اشعار بہترین تخلیقی آرٹ ورک کے ساتھ موجود ہیں۔ دلچسپ بات یہ ہے کہ اس صفحے کی نظامت کے فرائض خود خالد احمد انصاری انجام دیتے ہیں- اگر جون کی کتابوں تک رسائی نہ ہو تو یہ صفحہ  کافی حد تک شاعر کے اشعار اور افکار کو سمجھنے میں مدد گار ثابت ہو سکتا ہے۔

10418431_268961946644183_5705981638647961634_n

جون کی شاعری کو صحیح معنوں میں سمجھنے کے لئے ایک خاص سطح  کی فکری اور علمی بالیدگی حد درجہ ضروری ہے۔ پہلی نظر میں عین ممکن ہے کہ آپ جون کی شاعری کو ایک ہیجان زدہ، نفی پسند اور خطرناک حد تک مایوس ذہن کی پیداوار قرار دے دیں۔  حقیقت یہ ہے کہ جون  نے اپنے گردو پیش موجود  انسانوں ، انسانی  رشتوں اور معاشرتی   اقدار  میں موجود اندرونی تضاد کو جان لیوا شدت  سے محسوس کیا اور اسی کو اپنے اشعار میں بیان کیا۔  ایک طرف  ہم اس جون کو دیکھتے  ہیں جو ہر چیز پر  انسانی حکمرانی چاہتا ہے اور دوسری طرف وہ کمال  لا تعلقی  کہ خود اپنے  وجود  اور اپنی ذات تک سے  دستبردار ہیں  اور کبھی جون زمان و مکان کے صحرا میں شعور ذات کا بار اٹھائے  اکھڑتی سانسوں    کے ساتھ جستجو کی راہ پر گامزن نظر آتے ہیں۔

جون کی شاعری پوسٹ صنعتی دور کے انسان اور معاشرے کی عکاس معلوم ہوتی ہے اور اس دور کی ترجمانی کرتی ہے جس میں انسانیت اپنی سائنسی  علم اور ٹیکنالوجی کے   معاشرتی ، نفسیاتی اور اخلاقی   نتائج سے نبرد آزما ہو رہی ہے ۔ اس ضمن میں جون اردو میں  کسی حد تک وہی کام کر رہے ہیں  جو نطشے، شوپنہا ئر ، کیر کیگارڈ،  ہائڈگر، کافکا، سارتر  اور البرٹ کامو  نے مغربی  فلسفہء  موجو دیت  میں کیا۔

نثر پر نگاہ ڈالیں تو فرنود جو در اصل   مختلف ادوار میں لکھے گئے  انشائیے اور مضامین کا مجموعہ  ہے    موضوعات کے بےباک   انتخاب  اور تنوع   کے لحاظ سے  ایک بے مثل کتاب   ہے۔ فرنود کے چند فکر انگیز  اقتباسات  کتاب کے فیس بک صفحے  پر دیکھے  جا سکتے ہیں۔ اکثر مضامین میں جون کا  اسلوب  مصلحانہ  ا   ور  خطیبانہ معلوم ہوتا ہے- جون  نے معاشرتی اور قومی مسائل  پر جو خامہ فرسائی کی ہے اس سے ان کی حالات و واقعات پر عمیق  نظر کا بھی اندازہ ہوتا ہے۔ جون نے جن مسائل کی نشاندہی کی اور جن  نتائج   سے خبردار کیا تھا ان کو آج ہم اپنے معاشرے میں شرمندہ نگاہوں سے  ہر روز دیکھتے ہیں۔

12241338_447498502123859_5465431707586544098_n

جون نے اقتصادیات، اخلاقیات ، لسانی اور علاقائی تعصب ، جنونیت، برصغیر کی تاریخ اور  تہذیب،  فرسودہ  روایات اور اقدار   جیسے حساس موضوعات پر قلم اٹھایا اور  اپنے سوالات و افکار  سے معاشرتی ضمیر کو جھنجھوڑنے کی کوشش  کی۔ ایسا معلوم ہوتا ہے  کہ کوئی  مجذوب دیوانہ اپنے قبیلے کے لوگوں کو  چاروں طرف لگی آگ سے خبردار کرنے کے لئے اپنی قوت کی آخری حد تک چلا رہا ہے مگر اس کی قوم کھیل تماشوں اور فروعی اختلافات میں الجھی ہوئی ہے۔  وہ لوگوں  کے گریبان اور دامن کھینچ کھینچ کر     ان کو جلتے ہوئے گھر اور  بکھری ہوئی لاشوں  کی طرف متوجہ کرنے کی کوشش کرتا ہے  لیکن کوئی اس کی بات سننے کو تیار نہیں،  یہاں تک کہ بالآخر وہ آ گ لوگوں کے جسم کو جلانا شروع کر دیتی ہے، لیکن اب بھی وہ اپنے  جھگڑوں میں اس قدر مگن ہیں  کہ اس  کی  کرب ناک صداؤں  پر کان نہیں  دھرتے   ۔

13428390_523423801197995_2631983745256129548_n

12928369_10153392023246363_3678277120127855155_n.jpg

جون کی تحریر میں جو تلخی ، مایوسی اور طنز   پایا جاتا ہے اس کی  یہ توجیہ کی جا سکتی ہے کہ وہ   اپنی دانش ور نگاہوں  سے  نہ صرف اس  آ گ کو  دیکھ رہے تھے بلکہ اپنی  حساس طبعیت  کی وجہ سے اس  کی حدت اور تپش  کو اذیت ناک حد تک محسوس بھی کر رہے تھے۔  اس  اذیت  اور کرب کا کچھ ذکر جون نے “شاید” کے دیباچے میں کیا ہے۔   دیباچے کے یہ  چند صفحات حقیقی طور پر “انگلیاں فگار اپنی خامہ خونچکاں  اپنا” کی تشریح  ہیں ۔ یہ کہنا غلط نہ ہوگا کہ جون کا کلام  دراصل پڑھا نہیں جاتا بلکہ یہ قاری پر ایک  کیفیت کی طرح شعر بہ شعر اور سطر بہ سطر نازل ہوتا ہے ۔ یہ نزول در حقیقت   کرب و الم کی ایک مستقل حالت ہے  جو ذہن اور قلب پر جان لیوا انتشار کی صورت میں وارد ہوتی ہے۔ تھامس گرے  نے لکھا تھا کہ ” نہ جاننا بھی ایک نعمت ہے”۔لیکن جون کی  کم نصیبی یہ ہے کہ وہ  جانتے بھی ہیں اور سمجھتے بھی اور  علم اور ادراک کا خراج  اپنے لہو سے ادا کر رہے ہیں۔

12523056_464169760456733_4108479466288901303_n

آخر میں  یہ کہا جا سکتا ہے کہ خالد احمد انصاری نے جون کو  با الآخر ہم تک پہنچا  دیا ہے، لیکن ابھی ہمارا جون تک پہنچنا باقی ہے۔ معاشرے کے علمی شعور نے بہرحال قدم اٹھانا شروع کر دیئے  ہیں اور   بہتری کی امید کی جا سکتی ہے۔

12373394_488206801350593_4840962874101458367_n

تم سوچنا چاہتے ہو؟

10527719_264958427044535_3010461862325298274_n
Taken from: fb.com/Farnood.Jaun.Elia

کیا کہا ؟ تم سوچنا چاہتے ہو؟ ارے میں کہتا ہوں سوچ کر کیا کرنا ہے؟

 اور یہ ہر چیز کے بارے میں “کیا، کیوں، کب، کیسے اور کس طرح” کا سوال پوچھنے کے عادت جو تم نے پال لی ہے اس سے فوری  طور پر چھٹکارا حاصل کرو۔۔۔

کیا تم نے دیکھا نہیں۔۔ ؟

 جس کسی نے بھی سوچ  کا  گناہ کیا اس پر ادراک کا عذاب نازل ہوا۔۔۔ وہ عذاب جس کی پکڑ فوری اور شدید ہے۔۔۔
خدا ہم سب کوسوچ کی بدعت اور فکر کے کفر سے محفوظ رکھے۔۔

 

Presenting my Paper at 1st IEEC Conference

 

The 1st st International Electrical Engineering Congress (IEEC) was held at IEP Building, Karachi on 13th and 14th May. This was an important occasion for me since my paper titled “A Smart Safety Gadget for Avoiding Accidents in Warehouse Environment” had been accepted for publication in the proceedings and I was invited for a poster presentation at the conference.

The paper describes the design and implementation of a safety gadget prototype for warehouse workers. In warehouses many accidents are caused by vehicles and machines running over the worker. The threatened worker has no reliable way of communicating with the vehicle operator or stopping it in case it is an automated vehicle or machine. We alleviate this problem by designing a wireless system which the threatened worker can activate by the press of a button. Once pressed, the gadget will stop all the vehicles and machines within a close proximity of the worker and will also send an alert message to nearby workers so that they may come to help. Some more details can be found here.

PHOTO_20151023_102222 res
Initial Prototype, without long range radio
11063819_518736478292853_2916064671714344492_o
Boxed prototype, with Long range radio now included

This was my first experience at an academic conference. I was accompanied by fellow student Inshaluddin who was also presenting his paper and Engr. Laeeq uz Zaman who had worked on the project with me and also was the co-author.

13235393_1023958114326500_3871168059749038719_o
LTR: Asad ur Rahman, Laeeq bhai, Muhammad Yaseen (Author), Inshaluddin

Neither Inshal nor I knew the way to conference venue. Laeeq bhai had to be guide, I rode with him and Inshal followed him in his car. Finding the building took some time and we reached the conference venue a little late. Fortunately, we had not missed any of the good things and were shown the way to poster presentation room by volunteers.

Tea was served after a few minutes and after that the conference took off according to schedule. I and Laeeq bhai presented our work before visitors from academia and industry. Our work and prototype was applauded by the all visitors. Most visitors with industrial background emphasized the need for such a system and informed us of many new and interesting use cases. We also met with authors and students presenting their work at the conference. The number of student papers and participants was a good indicator that students are now realizing the importance of quality published work.

Not long before lunch we got our conference bag with souvenirs.  The poster presentation session was scheduled to end at 3.30pm. All the authors were presented with honorary certificate and shield at the end of session. After that it was time for oral presentation session in which most PhD students were presenting their work. We could only attend a few presentations because Laeeq bhai had to go owing to some problem.

IMG_20160514_153143
Men in suits! Poster credits: Ahsan Iqbal (Fellow research student at KFRL)
13248514_567512986748535_4396751611892336466_o
Me, receiving the honorary shield and certificate.

It was a good learning experience. To be able to present, explain and defend your work before experts from industry and academia is indeed a good sign. I also got to learn about the problems people in research are working on and trends in industry. I must also acknowledge the support and encouragement of my supervisor Dr Muhammad Khurram who helped make this project a reality.

From Karachi to Kaiserslautern

These days I am in Kaiserslautern, Germany for a two and a half months Internship at Deutsches Forschungszentrum für Künstliche Intelligenz (DFKI) or German Research Center for Artificial Intelligence in English. DFKI is one of the most prestigious research organizations in Europe. Its shareholders include Google, Intel, Microsoft, BMW and other technology and industry giants. A total of three students were selected for the internship, fortunately I am one of them.

This internship is a part of an ongoing two year long project collaboration between DFKI and KFRL. Dr Muhammad Khurram is leading the project from Pakistan side whereas Dr Syed Saqib Bukhari, who is a Senior Researcher in DFKI will be leading the German side. The main goal of project titled Water Resource Management (WaRM) is to demonstrate efficient irrigation water management techniques within the context of Pakistani agriculture. The project also involves training, workshops, joint research in water management and of course internships for research students associated with KFRL. 1st Pak-German Workshop on Smart Irrigation (SIR’16) was conducted by KFRL, CIS Department, NED University in May, 2016 under the same project.

The students selected for internship will have a chance to develop their expertise in Machine Learning, Deep Learning, Data Mining and other techniques in Artificial Intelligence. They will also have a change to explore the tools, techniques, frameworks and methodologies involved in AI based solutions.

This internship is also my first international travel experience so naturally there was a lot of excitement, albeit not without a sense of responsibility and gratitude. We (I and the other two students) flew from Karachi on 1st June to Istanbul Ataturk Airport, Turkey and then from there to Frankfurt, Germany. The flight experience was pleasant except for the part where my ears hurt for God knows what reason, I was told by a fellow student that it is normal and will end in a few minutes but it took about an hour after landing that I got my normal hearing back.

DSC01952 (1)
From Karachi to Istanbul
DSC01955 (1)
From Istanbul to Frankfurt

Airport experience was good as well. We only stayed for about an hour at Ataturk Airport. The view from waiting lounge area was beautiful and astounding. I could see Turkish Airlines’ planes landing one after the other. Quite a busy airport it is!

IMG_20160601_092329
That’s our plane!
IMG_20160601_090206
That’s some other plane 🙂

At Frankfurt Airport we were greeted with a pleasant rain. If you are coming from Karachi where temperature nearly touches 40 C you are sure to be delighted by the calm cool breeze and refreshing air. We were taken to the main Airport Building via a Bus. The baggage claim went smooth as did everything else at Frankfurt Airport. We bought SIMs and informed Dr Saqib of our arrival.

The next step was to reach Kaiserslautern and for that we needed a train ticket. I had read a lot about the famous German Rail or Deutsche Bahn now it was time to actually experience it. We had some trouble finding our way to the Bahnhof (Train Station) but were soon guided by a kind German lady. We bought tickets, the arrival was in about 30 minutes.

ticket
First experience with Deutsche Bahn…about to begin!

The train arrived and we got in, only to realize that we had boarded the 1st class and will have to march our way to the 2nd class – not an easy stunt to pull if you have 38 kg of baggage with you. We gave up and just stood at what could be called a buffer area between two 1st class compartments. No one seemed to mind it, we were accompanied by an Australian couple who had made the same mistake.

DSC01966
That’s me…at Frankfurt Bahnhof. An ICE can be seen in the background.

We had to switch the train at Mannheim. That’s where the fun begins. With the help of sign boards we reached the platform number printed on our tickets only to find that there was no escalator and we will have to carry our baggage up the stairs. Once we were at the platform there was a confusion about which side of platform we should stand on. Perhaps it is obvious if you are a frequent traveler but not so for us. So we asked a kind person at the platform who told us that we are at the wrong side of platform and should hurry to the opposite side. With only a few minutes to train arrival we made a run for it, again carrying the baggage down the stairs while people around us looked at us in rather strange way. So finally we are at the opposite side of platform and we ask a person just to confirm if this is the right place to be. He directs us to the information counter. One of us goes there. A few seconds later, much to our surprise we see our ICE train arriving on the opposite platform. The guy who went to the information counter had come running back and confirmed that indeed we were at the right platform in the first place – now we have to run our way back to the opposite side – again.

Now these ICEs don’t wait long so there it is – Mission Impossible. We carried, in whatever way we could, our baggage again up the stairs. I got into the ICE and secured the door while the other two passed in the luggage. We had barely made it. After we caught our breathe we laughed at each other while remarking that this will be an experience to remember. This was my first roller-coaster style experience with Deutsche Bahn. Finally we arrived at Kaiserslautern Hauptbahnhof (Central Train Station) where Dr Saqib received us and took us to our apartments in his car.

So finally I was in Kaiserslautern after about 15 hours of travel! It was a fun and exciting experience!

 

 

 

Resources for learning German

To say that learning German is a challenge would be an understatement. Beginners, who are learning German language would find Mark Twain’s essay on the matter quite amusing and accurate, as did I.

A good thing though, is that there are a number of resources available on the internet which help a great deal. From grammar and pronunciation to vocabulary and colloquial expressions, you can find many good resources.

For my own reference, and also for reason that I can easily share with others should they ask, I have compiled the following list of resources which I have found immensely helpful (and entertaining).

  1. Duolingo – A go-to site for any language learner.
  2. YourDailyGerman blog. The series of blog posts discusses the subtle issues with word choices as well. There are many examples which serve to enhance vocabulary as well. An example I particularly liked was this post on German grammatical cases.
  3. Another great resource is NThuleen.com. It has got plenty of examples and also includes worksheets. For example, see this page dealing with German cases (Yes, I had trouble with cases)
  4. GrimmGrammar – A website by University of Texas at Austin’s Centre for Open Educational Resources and Language Learning (COERLL). Along with the excellent lessons, the site also provides extensive audio clips by native and “near-native” speakers. I wouldn’t consider this a site for beginners though, it would benefit a learner who is already familiar with some grammar and has a good-ish vocabulary. That said, you should definitely try this if you have had some practice with the basics.
  5. DW.de Harry – gefangen in der Zeit is a series of videos attempting to teach basic German in a fun and engaging way. These videos are also available on DW’s Harry site as well. The site also provides short quizzes and exercises after each video and saves the progress of the learner. I have watched 12 videos, they were quite good.
  6. Mein Weg nach Deutschland is a video series by Goethe Institute. I felt it focus more on conversational skills than grammar. I have watched a few videos and found them quite informative and interesting. You can quickly pick us some phrases and vocal pertaining to a particular situation this way.
  7. A For Dummies German Cases cheat sheet. I find this one quite handy, to the point and short.

That’s it for now. auf Wiedersehen! (Good bye)

اردو کیسے لکھّی جائے؟

اس بلاگ کے لیے جس ڈیزائن کا انتخاب کیا گیا ہے اس میں بذات خود اردو کی کوئی سپورٹ موجود نہیں اور چونکہ یہ بلاگ مفت ورڈ پریس ہوسٹنگ پر ہے لہٰذا اس میں زیادہ تراش خراش اور ترمیم کی گنجائش بھی نہیں۔

ذرا دیر سوچنے کے بعد خیال آیا کہ اپنے ویب ڈیویلپمنٹ کے تجربے کو بروئے کار لایا جائے اور پوسٹ تحریر کرتے وقت اِن لائن اسٹائل کو استعمال کیا جائے۔ کچھ دیر کی جدوجہد کے بعد جو نتیجہ نکلا وہ آپ کے سامنے ہے۔

سرخی، یعنی ہیڈنگ کا البتہ کچھ نہ ہو سکا۔اس کی خلش دل میں ضرور موجود ہے۔کسی اور وقت اس سے بھی زور آزمائی کی جائے گی۔

اقتباس کا اسٹائل یوں ہے:

چبا لیں کیوں نہ خود ہی اپنا ڈھانچہ
تمھیں راتب مہیّا کیوں کریں ہم؟