Skip navigation

Monthly Archives: December 2007

Sorting 101

Oh no, sorting! It is known to everyone! It is from CompSci basics, there are tons of books around and every sane programming language has sorting implementation. Why bother about it? Well, because actually nobody reads about sorting, except when trapped in a corner, e.g. when one needs to write a code that sorts, say, [...]

Two ball weighing puzzles

Probably, you already know the first one. It sounds like this:
You have eight balls all of the same size. Seven of them weigh the same, and one of them weighs slightly more. How can you find the ball that is heavier by using a balance and only two weighings?
Finding the answer isn’t hard. Another [...]

Два раза Ку! обладателю малиновых штанов

Классовая несправедливость повсюду. Помните из КинДзаДзы ?
- Кц очень дорогое, родной…- Почему? – Ну вот у вас, на Земле, как вы определяете, кто перед кем сколько должен присесть? - Ну, это на глаз. – Дикари! Послушай, я тебя полюбил, я тебя научу. Если у меня немножко кц есть, я имею право носить жёлтые штаны. И передо мной [...]

Какая боль…

Ну вот, кажется я становлюсь опять Windows-пользователем. :( Должен сказать что на Мак мне было переходить легче, а может я просто лукавлю? В общем, в компании, в которой я в настоящий момент работаю везде PC, и даже учитывая, что разработка ведется на Java, есть зависимости, с которыми не очень хочется бороться. Пошел я по пути [...]

Xml validation with Schematron without a hassle

Recently I’ve been looking for XML validation solution. Yes, there are many out of there. But I’ve been looking for the best one.This is what’s drawn my attention:

Document Type Definition (DTD) – XML’s built-in schema language

Pros and cons:

Not easy for interpreting by humans;
Doesn’t provide data validation, provides only structure validation;
Non-XML syntax;
Doesn’t have good support of [...]