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.