How to recover root password on linux (Debian)

A very clear article on the topic about Ubuntu is here. I’ve checked it against Debian lenny, it works.
Here are short steps:
1. Enter grub menu, edit kernel line so that it has init=/bin/bash kernel parameter, no ‘single’ parameter should be specified.
2. Boot the kernel, it will stop in bash prompt.
3. Remount / and /proc read-write: mount -o remount,rw /; mount -o remount,rw /proc
4. Run passwd.

Leave a Comment

How to configure git to display native (cyrillic) filenames correctly.

Today I’ve faced with a problem of native (cyrillic) file names in git log and diff commands. The trouble looks like this:

ilya@tori:~/projects/buytogether/docs$ git diff
diff --git "a/\320\237\320\276\321\201\321\202\320\260\320\275\320\276\320\262\320\272\320\260 \320\267\320\260\320\264\320\260\321\207\320\270 \320\277\320\276 \321\200\
index 0c0891c..1a8bd01 100644
Binary files "a/\320\237\320\276\321\201\321\202\320\260\320\275\320\276\320\262\320\272\320\260 \320\267\320\260\320\264\320\260\321\207\320\270 \320\277\320\276 \321\20

The funny thing is that I’ve already got an answer for this problem one year ago. But my attempt to find the answer again with queries to google failed this time too. So, I’ve cheated a bit asking google with “git silvestrov” query. The result is answer of Teemu Likonen which I’m reposting here to keep in mind:

Yes, extremely ugly. I believe setting core.quotepath to false will
help:

  $ git config --global core.quotepath false

I wonder why is this not the default?

Leave a Comment

Александр Козлинский пишет про яву

Leave a Comment

awk

Научился пользоваться awk. Исходно решалась задача куда уходит у меня оперативка, и почему gnome-system-monitor-top и ps показывают разную сумму занятой памяти.

Очень понравился туториал по сабжу: http://www.vectorsite.net/tsawk.html

Comments (1)

Вы думали, что WebLogic гавно?! Познакомьтесь – WebSphere!

Когда я смотрел feature-листы WebLogic’a, то думал с негативом о тех людях, которые предпочитают перечислению списка поддерживаемых спецификаций всякий рекламный bullshit.

Когда возникла проблема при переходе на WebSphere’у – она категорически не переваривала наличие generic’ов в ejb2.1 интерфейсах. Я понял, что настоящий bullshit находиться в документации IBM.

Найти официальное упоминание о том, что использовать фичи пятой явы в ejb21-интерфейсах нельзя удалось только спустя рабочий день в глубокой жопе:
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/tovr_migratingjava.html

Фраза: “The J2EE 1.4 specification does not take into account the new language features. Therefore, the usage of generics based types should not be used with public EJB interfaces that are exposed on the home, stubs, and so forth.” развязала нам руки на пути удаления generic’ов из ejb-интерфейсов.

Но какое же все-таки гавно эта документация от IBM!!!

Leave a Comment

Classloader leaks explained

Here! by Frank Kieviet on blogs.sun.com

Leave a Comment

Виндовый коммандлайн

Leave a Comment

Сказ о том как программиста хорошего найти

How to recognize a good programmer

Over-specialisation in a single technology stack is an indicator of a not-so-good programmer – эх..! это про меня 😦

Leave a Comment

XDoclet + JAX-RPC WebService

Leave a Comment

Список вопросов на собеседовании к JEE программисту

Leave a Comment

Older Posts »