понедельник, 30 ноября 2009 г.

Thunderbird : Addressbooks Synchronizer from LDIF

I install Mozilla Thunderbird into a large number of computers (replacing other mail programs). LDAP does not meet the requirements: can not get the address book in
the offline, can not immediately see the entire email address book (this requires the employer).
 

Once upon a time I wrote a email to the author extension - Günter Gersdorf:

"Is it possible to add to Addressbooks Synchronizer the following function.
- Addressbooks Synchronizer (on user computer) receives the address book in file in LDIF format (from network share)
- and force makes Thunderbird (on user computer) to import address books automatically
"

To which I received a reply:
" Please download and install AddressbooksSync-0.9.7_a1.xpi
To access the new functionality, open the options dialog of Addressbooks Synchronizer. Rightclick on the addressbook you want to be loaded from the LDIF file. Enter the filename of the ldif file. Only enter the filename, as the location is defined on the right side of this panel. The filename must end with '.ldif'"



Now in version AddressbooksSync-0.9.7_a2, AddressbooksSync-0.9.8, this feature works great!

I think this feature raises the Addressbooks Synchronizer to  level of enterprise solutions.

понедельник, 23 ноября 2009 г.

Отмена в Git: reset, checkout и revert

По книге Git Community Book.

Исправление НЕзакоммиченных ошибок

Если у вас беспорядок в working tree, но вы еще не сделали коммит, вы можете вернуть всё working tree к состоянию после последнего коммита

  $ git reset --hard HEAD

Если надо восстановить отдельный файл, например ''hello.rb'', юзайте

  $ git checkout -- hello.rb

  $ git checkout HEAD hello.rb

Первая команда восстановит ''hello.rb'' до версии в индексе, так что ''git diff hello.rb'' не покажет различий.

Вторая команда восстановит ''hello.rb'' до версии из ''HEAD'' ревизии, так что обе команды ''git diff hello.rb'' и ''git diff --cached hello.rb'' не покажут различий.

Исправление закоммиченых ошибок

Если вы уже сделали коммит с ошибкой, есть два разных способа пофиксить проблему:
  • вы создаете новый коммит который отменяет любой старый коммит. Это если ошибка уже опубликована.
  • возвратиться назад и изменить старый коммит. Никогда не юзайте этот способ, если история уже опубликована. Git по дефолту не ожидает, что история изменится и не сможет коректно слить ветки, если история изменена.

Новый коммит

Создать новый коммит, который возвратит в старое состояние, очень просто. Укажите ''git revert'' на плохой коммит. Например, последний коммит:

  $ git revert HEAD

или более старый

  $ git revert HEAD^

Теперь вы можете изменить commit message для нового коммита.

Исправление коммита

Для последнего коммита

  git commit --amend

Для более позднего комита, но не опубликованного, юзайте

  git rebase -i

в интерактивном режиме. Это разрешит amend коммита в процессе rebasing.

четверг, 19 ноября 2009 г.

httrack on CentOS

HTTrack is a free, easy-to-use and nice offline browser utility.


I download : httrack-3.43.2-3.fc11.src.rpm

and apply this patch to .spec file (and rpmbuild of course) :

--- httrack.spec·   2009-03-31 17:56:03.000000000 +0300
+++ new.httrack.spec·   2009-11-19 12:43:29.000000000 +0200
@@ -1,14 +1,3 @@
-%if 0%{?fc9}%{?fc10}
-  %define _openssl_version 0.9.8g
-%else
-  %define _openssl_version 0.9.8k
-%endif
-
-%if 0%{?fc7}
-%else
-  %define _remove_encoding --remove-key Encoding
-%endif
-
 Summary:·  Website copier and offline browser
 Name:· ·   httrack
 Version:·  3.43.2
@@ -24,7 +13,7 @@

 BuildRoot:·%(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

-Requires:· openssl = %{_openssl_version}
+Requires:· openssl
 Requires:· xdg-utils

 BuildRequires:·desktop-file-utils
@@ -108,11 +97,11 @@
   $RPM_BUILD_ROOT%{_datadir}/pixmaps
 rm -rf $RPM_BUILD_ROOT%{_datadir}/%{name}/icons

-desktop-file-install %{?_remove_encoding} --vendor fedora --delete-original \
+desktop-file-install --vendor fedora --delete-original \
   --dir $RPM_BUILD_ROOT%{_datadir}/applications \
   $RPM_BUILD_ROOT%{_datadir}/applications/WebHTTrack.desktop

-desktop-file-install %{?_remove_encoding} --vendor fedora --delete-original \
+desktop-file-install --vendor fedora --delete-original \
   --dir $RPM_BUILD_ROOT%{_datadir}/applications \
   $RPM_BUILD_ROOT%{_datadir}/applications/WebHTTrack-Websites.desktop

пятница, 13 ноября 2009 г.

Microsoft today in the news



First: Windows 7 stolen from a Mac.

"In his PCR interview, Aldous (Simon Aldous - Microsoft manager) stated that people often gloat about Apple's "fantastic" and "easy to use" operating system. Then came the words no Microsoft manager was ever meant to utter: "What we've tried to do with Windows 7, whether it's traditional format or in a touch format, is create a Mac look and feel in terms of graphics."

However, theft is now called as the word "inspired". Hmm.
UpdateMicrosoft lifts GPL code, uses in Microsoft Store tool.

Second: Security Bug in Windows 7 and Server 2008 R2.

However, Microsoft says :  "Windows 7 builds upon the strong security lineage of Windows Vista and retains and builds upon the development processes and technologies that have made Windows Vista the most secure version of the Windows client to date..." ;)


And last: Microsoft bans 600K Xbox Live Accounts.

"A conversation with a friend who works for a call center that handles an Xbox 360 account has yielded a disturbing truth: Microsoft has started its annual Xbox Live banning spree and it has disabled 600,000 accounts so far in the US and Canada." 

PS. God Save the Microsoft. ;)