Friday, December 07, 2007

Thursday, November 29, 2007


I have just compleated wonderful book on XP methodology (Extreme Programming Applied: Playing to Win by Ken Auer, Roy Miller russian trnslation), which has clarified many things to me. I have believed that XP is a techique of future before read this book, but now I'm tully sure that it is really so. Also I'm reading (at the 4-th chapter) Writing Secure Code by Michael Howard and David C. LeBlanc russian translation. It is little obsolete but, some things written very good and still actual.

Wednesday, November 14, 2007

Immigration to Canada (?)

Tomorrow I’m going to the Canadian Embassy to visit seminar for “Skilled workers” ( Canadian government offers special program for skilled migrants. Anyone who satisfies their requirements can apply for Canadian citizenship. It’s annoying that review of applications takes at least 2 years, and after that you became (if you are lucky) the citizen. But what if, I won’t like Canada when I get there? What If I just want to work there some time and then decide: am I willing to stay there or not? I hope that they will explain all details tomorrow, inshaAllah.

Friday, October 19, 2007


I have already finished the book “Refactoring” which is very good one. All that I knew before reading this book is now systemized and gives me the better understanding of refactoring. Now I have begun to read other book of Fowler written with Kent Beck - “Planning extreme programming” and have started the concentrated study of the WPF. XAML isn’t as easy as it seems at the first look; it is much more complicated and functional. I’m reading “Professional WPF Programming” (Wrox, 2007) and my head is almost overloaded, so huge set of possibilities, it is just amazing! I’m recommending this book to everyone who interests in WPF.
From the fiction I'm reading "Armagedon" by Stephen King about top secret virus named "Blue" have been developed by US goverment which becames free as a result of accident. All US are in fire, people dies and so on... as usual in his books. :)

Scientist From Czech Republic Converts To Islam

Thursday, September 27, 2007


I have a little bit of free time for now and I can do that I have been wanted to do since summer - dive into the WPF, WCF and other WF's :)
Recently I have downloaded beta version of Microsoft Expression Blend. I like it; it is a good photoshop-like tool for XAML construction. But as usual there are some weaknesses and the most essential that it doesn’t have an Intellsense. But generally looks very useful.
Here is shown the same project in different environments: Blend Beta and in VS2005 respectively.

Wednesday, September 19, 2007


Разобрался в общих чертах с AJAXом от Майкрософта. Написал два контрола для либрариана - TimeEdit и CompositDatePicker - оба базируются на компонентах из набора AjaxControlToolkit.

Итерация подошла к концу, начальства нету :), начал читать нижку про рефакторинг.
Martin Fowler "Refactoring. Imporoving the Design of Existing Code".
Как и все книги Фаулера - все написано очень просто и понятно, разве что много раз повторяется одно и тоже, но от этого только понятнее :)

Дома заканчиваю читать "Воскресенье" Толстого - сильная вещь и собираюсь взяться за последнего Гарри Поттера :). Также почти завершил первый том (Сатрап) из трехтомника "Кавказская война".

Friday, September 07, 2007


I have already read “Spark of Life” by Remark and have almost finished W. Shakespear’s “Otello” (such a gross one). Right now I’m reading the Dino Esposito’s book named “Introducing Microsoft ASP.NET 2.0 AJAX Extensions”. Interesting, but t is almost obsolete. There is no more such thing as Atlas, and respectively all namespaces and Dll references in book are wrong. Moreover some sections (for instance Triggers) had been changed. But anyway, it is a good book for deep diving into the AJAX base.

Next, I’m going to read “Resurrection” by Tolstoy, and then “History of spanish inquisition” by Liorente, inshaAllah

Wednesday, September 05, 2007

I'm in the second row and first from the left :)

02 of June 2007

Tuesday, August 28, 2007

We are back to Moscow

We have returned to Moscow, 2 weeks ago. Firs time, Kamila couldn’t understand where her grandparents are, but as all kids she has almost forgotten them, although we phone them every evening. Our new rented apartments are much better than previous, so Ariza liked our new temporary home. The vacations were wonderful, but too short as usual. I hadn’t spent a lot time on the beach or even with friends. I hadn’t done anything useful except read of Martin Fowler’s “Patterns of Enterprise Application Architecture” book.
My mother is ok now, thanks God. She is much better, than when I came to Makhachkala, and she is continuing to get well.
As soon as I return to Moscow, I have started to work hardly on our project at work. But now I can take a respite. So everything is going well. I signed up for Microsoft exam (70-552), which will take place on the 14’s of September. After it I’m going to pass 70-551 and 70-529.

Sunday, July 15, 2007


Закончил читать «Бесы» Достоевского, впрягся за 4-х томник Гаррисона «Молот и Крест». Прочел первые два тома, ничего так – альтернативка, причем неплохая (в отличие от 3-х томника того же Гаррисона - «Звезды и Полосы навсегда» ). Если в первых двух томах мочилово происходило между язычниками с севера и церковью, то в третьем томе на арену выступает Халифат. Книга писалась давно, мусульмане изображены вполне адекватно :).
Приятное неутомительное чтиво.

Маму прооперировали

Мама в больнице, ее прооперировали по женской части, операция прошла альхамдуилиЛлаh успешно, но она еще слабенькая, большая потеря крови. Читаю дуа, надеюсь на помошь Всевышнего... иншаАллаh

Thursday, July 05, 2007


I don't like a days when I need to deep into the old database drivers code (written on Delphi) to find and fix bugs. It is really boring to do that. Today is one of such days :(

Saturday, June 30, 2007


Позавчера ночью мне снилось, что Путин принял Ислам. Причем перед уходом в отставку и публично, на специально созванной для этого пресс-конференции. При этом убеждал всех собравшизся в том, что права мусульман и в самом деле ущемлены, и что он, хоть и уходит в отставку, но намерен всячески способствовать исправлению сложившегося положения. Напоследок, в свойственной ему манере расставлять паузы между отрывисто произнесенными словами, он засвидетельствовал, что Бог только один и нет у него сотоварища и Мухаммад (сас) его посланник.

Проснулся с осознанием того, что это было-бы очень хорошо. Хотя потом стал думать, что может и нет :) Но Аллах ведет прямым путем кого пожелает и не будет в этом факте ничего удивительного.

Wednesday, June 27, 2007

Words in a text

Here is shown the method GetWordsFromString(string s), which is takes some text on it's input, and returns list of words used in text sorted by number of occurences of each word in the text.

        public class WordsComparer : IEqualityComparer<string>
public bool Equals(string x, string y)
return x.ToLowerInvariant() == y.ToLowerInvariant();
public int GetHashCode(string obj)
return obj.ToLowerInvariant().GetHashCode();
private static Dictionary<string, int> GetWordsFromString(string s)
Dictionary<string, int> resultDictionary =
new Dictionary<string, int>(new WordsComparer());
Regex wordsRegEx = new Regex(@"\w{3,}");
MatchCollection matches = wordsRegEx.Matches(s);
foreach (Match match in matches)
if (!resultDictionary.ContainsKey(match.Value))
resultDictionary.Add(match.Value, 1);
List<KeyValuePair<string, int>> sortedList =
new List<KeyValuePair<string,int>>();
foreach(string key in resultDictionary.Keys)
sortedList.Add(new KeyValuePair<string, int>(key, resultDictionary[key]));
delegate (KeyValuePair<string, int> o1, KeyValuePair<string, int> o2)
return o2.Value.CompareTo(o1.Value);
foreach (KeyValuePair<string, int> kvp in sortedList)
resultDictionary.Add(kvp.Key, kvp.Value);
return resultDictionary;
For example the top 100 words of Tolkien's "The Lord of the Rings" are:

the 33644
and 22049
that 6766
was 6542
they 5214
You 5074
but 5044
his 4833
said 4229
not 4108
FOR 4021
with 3320
had 3245
were 2859
there 2784
have 2691
ALL 2557
him 2474
from 2296
them 2245
now 2205
their 2126
Frodo 1997
are 1818
then 1797
will 1791
out 1645
This 1596
Great 1388
came 1379
what 1357
Sam 1273
Long 1261
could 1235
come 1227
into 1214
more 1207
would 1204
down 1192
one 1172
Gandalf 1167
like 1160
When 1160
your 1155
again 1115
before 1101
some 1093
been 1064
back 1006
Many 1005
away 979
still 970
men 946
Last 903
upon 890
far 884
than 883
about 878
see 876
only 860
did 837
over 834
HERE 833
yet 823
Dark 817
its 809
time 805
has 796
Old 785
well 772
can 761
way 758
went 754
any 743
even 729
must 712
may 712
seemed 712
where 707
our 704
shall 698
know 683
Pippin 676
which 670
looked 637
who 634
little 629
eyes 625
very 619
Hobbits 619
after 616
light 611
while 599
merry 584
Road 574
King 569
through 566
Ring 564
other 564

Tags: Sorting Dictionary by value

Friday, June 08, 2007


Finally, I have almost finished my work on the Barcode generation/reading subsystem. It works fine and allows to store in a barcode a full path to a database (including name) and up to 7 digit number which corresponds to a record ID. Thus, we can code in a barcode any databases with number of records up to 9 999 999. This is good enough I think :)

Мусульмане Бутово провели пикник на природе

[05-06-2007] Около 50 мусульман столичного микрорайона Бутово провели в минувшую субботу, 2 июня, пикник на природе. Под шашлыки и чаепитие на лесной поляне бутовские последователи Ислама приняли участие в спортивных состязаниях и мусульманской викторине. Инициатором встречи стала местная религиозная организация «Милость».
Как сообщил Ислам.Ру глава бутовской общины мусульман Мурат Алимов, мероприятие началось с лекции «Единство мусульман. Способы единения исламской уммы», прошедшей в помещении «Милости». На природе мусульмане провели футбольные матчи между командами мужчин и командами девушек, а также игры по волейболу. Все участники состязаний получили призы.
«Мы надеемся, что в будущем проведение таких пикников станет хорошей традицией», - сказал М. Алимов. По его словам, текущим летом бутовские мусульмане намерены провести еще две аналогичные встречи на природе.

Was taken from :)

Tuesday, June 05, 2007

Regular Expressions for work with HTML

Here is some methods to work with HTML which I have written today. They are pretty simple and don't catch issues like different opening and closing html tags but works fine for me :)

private static string GetStringWithoutHtmlTags(string s)
Regex htmlTagsRegex = new Regex(@"");
MatchCollection mCollection = htmlTagsRegex.Matches(s);
return htmlTagsRegex.Replace(s, "");
private static StringCollection GetTextInAllHtmlTags(string s)
StringCollection resultStringCollection = new StringCollection();
Regex htmlTagsRegex = new Regex(@"<\w+>(?\w+)");
MatchCollection mCollection = htmlTagsRegex.Matches(s);
foreach (Match m in mCollection)
return resultStringCollection;

Bootovo Muslims community and…

About 3 months ago, our teachers organized the community of Muslims from Bootovo (they live in district of Moscow named Bootovo). The rented the apartment and converted it into the Mosque. It is really small and nice :). They make Djuma prayers on Fridays and conduct a little school. That place is really cool. Last Sunday our community was there. We spent our free day in conversations, playing of football and finally we went to the nearest forest and had some picnic with kebabs :). There were about 15 brothers and 30 sisters on that assembly. Photos will be latter, inshaAllah.

The Mosque in Bootovo (inside)

Thursday, May 31, 2007

Example of search in AD for the users of specific group

StringCollection users = new StringCollection();
DirectoryEntry directoryEntry = new DirectoryEntry("LDAP://ServerName:PortNumber/SubPath");
DirectorySearcher searcher = new DirectorySearcher(directoryEntry);

searcher.Filter = string.Format("(&(objectClass=user)(&(memberOf={0})))", groupName);

SearchResultCollection searchResults;
searchResults = searcher.FindAll();

foreach (SearchResult searchResult in searchResults)
ResultPropertyCollection rpC = searchResult.Properties;
if (rpC.Contains(_searchSchemaAttribute))
foreach (object obProp in rpC[_searchSchemaAttribute])

Monday, May 21, 2007

I have started developing the barcode-module for the report system in WebLibrarian. A day of researches in this area, showed that it is possible to do in less than one week. We have bought a scanner (on the picture – ScanPort T600), it is really cool device :) After I plugged it to computer, I scanned barcodes form some items in our department starting with some books and finishing with pack of paper tissues. It works perfectly. All that you need to do is to place cursor to any input field (the place there you can type using you keyboard), and then scan a barcode. The actual value which is hidden under barcode will appear in that input field. Main problems were how to generate barcodes and which one of a lot amount of specifications to select. Finally I decided to use Code128A algorithm and began creating .NET library. At the moment it is finished already, and can produce fine-quality barcodes :)

Sunday, May 20, 2007


I have just passed my exams in Madrasah.

Muslim law – 5/5

History of Prophet Muhammad – 5/5.

Quran, Hadiths and Arabian will be hold in 27 of May, inshaAllah.

It was really 2 hard weeks. I had to perform a lot of tasks, and learn a lot of new things. But now it's ok. I can have a little rest. If I pass the remaining exams, I'll get the diploma of primary Islamic education. And this will be enough, for now. It takes too much time. Maybe one day I will continue my education here, or somewhere else. But now I have other important things to do! InshaAllah.

Thursday, May 03, 2007

New article

Our work on stroke type diagnostics is almost completed. Dr. Rebrova should arrange with stroke-center about experiments and only after them we can continue work. Rather they will continue this work without me. I just have no time for this. Maybe later. inshaAllah.
Article describes the problems which present in diagnostics of type of stroke, and ours approach which is right-diagnose more than in 97%. Rebrovas part was to collect and reduce input data dimensionality via statistical methods. Redko and Mosalov, chose the instance of multi-layer neural network via training a huge number of agents and applying genetic algorithms to them. After MNN was chosen, they get some result on it in 3-deminseional space (each dimension corresponds to type of stroke). But result weren’t good enouhg yet. And I decided to train Kohonen NN on that 3-dimensianl space. Results are really great. So, if anyone is interesting, I can send full PDF of this article.

Friday, April 20, 2007

New article is published

Today I have got reference to our new article in Optical Memory & Neural Networks journal. The article clearly describes the process of multi-dimensional binary optimization using Hopfield and Domain models of neural networks. The equations which establishes the relationship between the deepness of local minimum and the probability of its finding is also provided. I can send PDF to anyone who is interesting in this.

B.V.Kryzhanovsky, B.M.Magomedov, A.L.Mikaelian, A. B. Fonarev. Binary optimization: A relation between the depth of a local minimum and the probability of its detection. Optical memory and Neural Networks. #4, 2006. pp. 170-179

Saturday, April 14, 2007

Today I’m going to Makhachkala…

…to see my wife and little daughter. I miss them so much. I could extend this weekend until Thursday, so I'll be there until Wednesday, inshaAllah.

The flight is at 14.30. I need to prepare.

Thursday, April 12, 2007

Getting connection string from app.config in .NET 2.0

Suppose, we have following app.config file:
<?xml version="1.0" encoding="utf-8" ?>
<add name="DBConnectionString" connectionString="CONNECT TO SOME SQL SERVER"/>
In new scheme, used in .NET 2.0 we need to use ConfigurationManager class like follows:
System.Configuration.Configuration config =    ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel.None);
string stringToConnectoToMyDB = config.ConnectionStrings.ConnectionStrings[1].ToString();

Sunday, April 01, 2007


Here is great Ajax .NET library from Michael Schwarz
It is realy simple to use it in your ASP.NET applications:

Today I'm going to examine the analogous library from Microsoft :)

Will see which one is better :)

Wednesday, March 28, 2007

Hadith #9

عَنْ عُمَرَ رَضِيَ الله عَنْهُ قَالَ : سَمِعْتُ رَسُولَ الله صَلَّى الله عَلَيْهِ وسَلَّمَ يقُولُ : ( لا تُطْرُونِي كَمَا أطْرَتِ النَّصَارَى ابْنَ مَرْيمَ ، فَإنَّمَا أنَا عَبْدُهُ ، فَقُولُوا : عَبْدُ اللهِ وَرَسُولُهُ ) .

Передают со слов Умара, да будет доволен им Аллах, что он слышал, как пророк (САС) сказал:
– Не превозносите меня подобно тому, как христиане превозносят (Ису), сына Мар­йам, ибо, поистине, я - раб Его, а поэтому го­ворите: “Раб Аллаха и посланник Его”.

Saturday, March 17, 2007

Hadith #8

Need to learn until tomorrow :(

عَنْ أَنَسٍ رضي الله عنه قَالَ : قَالَ النَّبِيُّ صَلَّى اللَّهُ عَلَيْهِ وَسَلَّمَ : لا يُؤْمِنُ أَحَدُكُمْ حَتَّى أَكُونَ أَحَبَّ إِلَيْهِ مِنْ وَالِدِهِ وَوَلَدِهِ وَالنَّاسِ أَجْمَعِينَ .

Photos of Kamila :)

Monday, March 12, 2007

Too many things to do...

I almost have no time to do all those things that I planned. The work (assuredly very interesting and useful) takes too much time :(. It is too difficult to learn English every morning at Englishtown conversations classes, and to learn Arabic at the same time. I decided to quit from madrasah after this study-year (it finishes in May or June). I completely left my book – there is no any new clause for 2 months. No driving license, no any new MS certificate. I have no time to all these things. But I need to find it, because they are stairs on the way to my goal. God, help me.

New article on CodeProject .NET

Thursday, February 22, 2007

NDoc is still dead but...

...not all so bad. Today I have found worth substituter of it called SandCastle.
Even Microsoft uses it to generate internal documentation :) So I will too.

Tuesday, February 13, 2007

Convert System.Drawing.Color to HTML (#xxxxxx) representation

private string getHexColor(Color cl)
string clR;
string clG;
string clB;
if (cl.R == 0) clR = "00"; else clR = cl.R.ToString("x");
if (cl.G == 0) clG = "00"; else clG = cl.G.ToString("x");
if (cl.B == 0) clB = "00"; else clB = cl.B.ToString("x");
return "#" + clR + clG + clB;

Monday, January 29, 2007

Finally I have found new job

I soupose that it is right decision. From range of firms this one ( is most approporiated for me. inshaAllah.

Wednesday, January 24, 2007

I'm back

I'm in Moscow now, and one only thing I'm doing now is searching for new job...
Posting resume, writing letters and so on. God help me to find appropriate variant.
But thats all doesn't matter. I BECAME A FATHER!!! I got a little doughter, we called Kamila. She is so nice. Alhamdulillah! I'll post her photos letter, inshaAllah.