Closet...
...اینجا می‌نویسم برای اینکه یادم بمونه... تا راحت‌تر فراموش کنم
Monday, February 28, 2011
Irony: آنگاه که دردت از تو می‌پرسد دردت چیست.

Labels:

Thursday, February 24, 2011
خوب نیستم، تا اطلاع ثانوی.
لطفا سوال نفرمایید... حتی شما دوست عزیز.

Labels:

Friday, February 18, 2011
آهنگ: جبر
خواننده: محسن نامجو
آلبوم: ترنج

پی‌نوشت: این از اوناست که از سر صبح خودش یه ضرب تو مخم تکرار میشه...

Labels:

بی‌کسی یه وضعیت فیزیکی نیست.
میتونی توی خانواده و دوست و رفیق غلت بزنی ولی بازم احساس بی‌کسی کنی. از اونور، میتونی آدم تنهایی باشی ولی احساس بی‌کسی نکنی.
بی‌کسی یه وضعیت ذهنی‌یست.

Labels:

Wednesday, February 09, 2011
علت مرگ: روزمره‌گی

Labels:

Tuesday, February 08, 2011
دنیای عجیبیه، طرف هرچی بیگناه‌تر باشه بیشتر به فنا میره...

Labels:

Monday, February 07, 2011
Music...
Title: Chasing Cars (Live at The Union Chapel)
Artist: Snow Patrol
Album: Up to Now

Labels:

Sunday, February 06, 2011
Before having an smartphone, I had to get out off the bed to check the e-mails and do the morning websurfing. Now these are done while I'm still in the bed with no intention for leaving it on a weekend morning/noon... Back to sleep, let's have another dream.

Labels:

Friday, February 04, 2011
۱- مملکت داره به فنا میره، ولش کردم اومدم این سر دنیا عین خیالم نیست...
۲- اینجا عنوان دانشکدمون داره عوض میشه(که تاثیری اساسی رو کار و زندگی من نداره). شاکیم که کارشون اشتباه هست و باید درستش کرد و بحث و جدل با استاد و مدیر و در و دیوار و زمین و آسمون...

پی‌نوشت(ها):
- عجب وطن فروشیم من... یکی نیست بگه اگه می‌خوایی جایی رو درست کنی، برو مملکتت رو درست کن.
- عجب خوش خیالیم من... یکی نیست بگه فکر کردی درست کردن مملکت کار یه روز و دو روزه، اونم فقط لنگ اینه که تو برگردی?!
- عجب جو گیریم من... یکی نیست بگه دوباره چهارتا خبر جنبش و شورش خوندی فیلت یاد هندستون کرد.
- عجب ابلهیم من... یکی نیست بگه فلسفه نباف، برو زندگیتو بکن... فقط آدم باش.

Labels: ,

Thursday, February 03, 2011
Some random notes on the art of debugging (of numerical codes) - Part 1

- Consistency is the key. Start small. Write 1D version first, test it and when it was OK move to higher dimension codes. It's much easier to debug in 1D than 2D. Your 2D code should do the exact same thing as your 1D code if you feed it the same emulated 1D data in 2D format. This is the same for 2D to 3D expansion.

- Try the naive test cases before running your big-bang simulation. Zero state, unit state and well-known physical special conditions are good starters. If your method is symmetric, definitely test for the conservation of symmetry on symmetric initial condition. Think about special conditions that only test a special part of your code. Be creative.

- If you are going to test the order of convergence without comparing with exact solution, that is using some sort of three level Richardson extrapolation, test the tester routine with manually coarsen data from some arbitrary fine data before accusing your code of order deficiency. I guess you don't want to measure the Golden Gate Bridge with a 10-cm ruler which takes few hours and then find out the ruler has a half-life of order 10 second and thermal linear expansion coefficient of order 10/°C, do you?

- If running your code line-by-line takes one day, it better to do that instead of 10-day clueless wandering in thousands lines of code.

- Take notes of the debugging procedure and use revision control, period

- If you are coding using GNU tools and you are an Emacs person, learn to use GDB in Emacs, it is incredibly powerful. Add Speedbar and you are on fire.

Labels: , ,

Tuesday, February 01, 2011
The engine of my numerical code is working and it is 2nd order accurate as it should be... finally, yeah! It took me 2 months to write and almost 3 months to debug. That's right, such a crappy coder I am! I don't care that the freaking bug was so primitive that I should have never made a mistake like that. I'm just happy that I found it! Anyway, at least it motivated me to read a bunch of numerical methods books that I would never touched if I weren't that desperate. Fortunately, it didn't kill me, so I suppose I am stronger now!

Well, I really needed this; life couldn't sucked more these days. Time to go home...

Labels: ,