Pony::Object v0.07 released!
Читать далее
Pony::Object v0.07
One more public module
Two days before I was looking for some way to save PHP (via ZF2) sessions into database using Doctrine. But I didn’t find any solution. So I wrote it. Now you can do it using BgvSessionDoctrine module. Just install module and update your database.
Also you can use G403SessionDb for the same. But it works with Zend\Db.
Git (no branch)
Sometimes you could get weird situation:
$ git branch * (no branch) master
But you can back in master branch (or some other branch) and save all changes which you did.
Get commit’s hash from git log.
$ git log
commit d735ee31656010d25765f395d98cbbdbe5b448e8 <---- It's here!
Author: Georgy Bazhukov <gosha@bugov.net>
Date: Wed May 29 13:05:15 2013 +0600
more code!
And change branch
$ git checkout master
After that you should merge current commit (HEAD) with commit from «(no branch)»
$ git merge d735ee31656010d25765f395d98cbbdbe5b448e8
«Towel day». Achievement unlocked!
Many companies uses Jira+Stash (issue tracker+git) for code development. And it’s pretty handy. Also you can install plug-in for achievements (for free). And it’s fun! For example new developers starts to use issues in git-comments to get achievement «BugHunter». After that they still use issues in comments because it’s a good practice and they are used.
But some of achievements are anti-achievements. For example «Pardon my French» (swearing in comments).
Once per year you can unlock achievement «Towel day». But I missed it this year. «Don’t panic!» — you can get it any time :)
git commit --amend --date="Sat May 25 14:00 2013 +0600"
Yes, it’s a cheat in a developer’s tool. But who blames me? Achievements are so delicious! ^_^
Upgrade all CPAN modules in system
Install packages (once):
sudo aptitude install cpanminus # or App::cpanminus from CPAN sudo cpan App::cpanoutdated
Upgrade modules:
sudo cpan-outdated -p | cpanm
Ошибка при git pull: HTTP code = 411
$ git push origin master Password for 'https://bugov@www.***.ru': Counting objects: 1243, done. Delta compression using up to 4 threads. Compressing objects: 100% (1126/1126), done. error: RPC failed; result=22, HTTP code = 411 fatal: The remote end hung up unexpectedly Writing objects: 100% (1243/1243), 4.32 MiB | 1.97 MiB/s, done. Total 1243 (delta 310), reused 0 (delta 0) fatal: The remote end hung up unexpectedly Everything up-to-date
Решение:
git config http.postBuffer 524288000 # 500Mb
UBRR VDR
Закрыл очередной проект. Virtual Data Room для УБРиР (Уральский Банк Реконструкции и Развития). В целом, проект прошёл неплохо: сроки соблюдены (даже доп. хотелки были добавлены), заказчик молчит (значит, проблем нет).
Добавить пути в @INC Komodo Edit / IDE
Project(верхний бар, там где File, Edit) → Properties (появится окно) → Languages → Perl.
Пути добавляются в «Additional Perl Import Directories».


