Wednesday, March 24, 2010

Реклама месных израильских забегаловок такая аппетитная...



Аж блевать тянет... FML

Wednesday, February 24, 2010

PHP

I was unable to install today PECL extention PDO_MYSQL via

sudo pecl install PDO_MYSQL


The problem was that after configure, make can't find mysql header files.

...
In file included from /tmp/pear/temp/PDO_MYSQL/pdo_mysql.c:31:
/tmp/pear/temp/PDO_MYSQL/php_pdo_mysql_int.h:25:19: mysql.h: No such file or directory
In file included from /tmp/pear/temp/PDO_MYSQL/pdo_mysql.c:31:
/tmp/pear/temp/PDO_MYSQL/php_pdo_mysql_int.h:36: error: syntax error before "MYSQL"
...


So I learned how to make an extension manually.
I ran locate mysql.h, copyed all mysql headers from there to current folder and now you can make it

phpize --clean
phpize
./configure
make


make install won't worked for me.
pdo_mysql.so placed in modules dir, copy it to extentions dir (php -i | grep extension_dir) and enable in php.ini.

These steps will not add PDO_MYSQL under the PEAR, so you need to maintain it by yourself. But to update list of installed packages, you can do this trick

sudo pecl install -rB pdo_mysql

-r means do not install files, only register the package as installed
-B means don't build C extensions

Some other good to read links
Topic : pdo_mysql.so driver Installation

Saturday, February 20, 2010

Израильские сайты

Более-менее полезные источники информации.
Для поиска по ним можно пользоваться расширенным поиском яндекса или фильтром "site:" гугла.

Безвозмездная раздача вещей
http://community.livejournal.com/hinam_ru/
и обмен

Wednesday, January 27, 2010

Right way for Windows 7 installation

Here is what you need to tweek after OS install.

Enable Administrator account
  1. run cmd as administrator
  2. type net user administrator /active:yes

Enable ping response
  1. As Administrator
  2. Go to Windows Firewall
  3. Open Advanced settings
  4. Find and enable following rules

    1. File and Printer Sharing (Echo Request - ICMPv4-In), Domain
    2. File and Printer Sharing (Echo Request - ICMPv4-In), Public
    3. File and Printer Sharing (Echo Request - ICMPv6-In), Domain
    4. File and Printer Sharing (Echo Request - ICMPv6-In), Public
Alternative way how to do that - How to Enable Ping Reply in Windows 7

Remote Desktop connections

Wired LAN priority
  1. open Control Panel
  2. go to Network connections
  3. open Advanced menu
  4. select Advanced settings
  5. in the connections box reorder them as you want them to be

There is now good way to disable DVD auto eject, see search results on that.

Windows Updates
Allow all users to install updates on computer.


Popular issues

Thursday, January 21, 2010

Git aliases

I found this very useful in day-to-day git work.
[alias]
    a = add

    s = status --short
    ss = status

    b = branch -a
    ba = branch -a -vv
    bs = !git-branch-status
    bsi = !git-branch-status -i

    c = commit
    cm = commit -m

    co = checkout

    d = diff --color
    ds = diff --color --stat
    dsp = diff --color --stat -p
    # files changed between commits
    dn = diff --color --name-only

    l = log --color --decorate
    ls = log --color --stat --decorate
    ln = log --name-status --color
    lsp = log --color --stat -p --decorate
    lg = log --graph '--pretty=tformat:%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s'
    lga = log --graph '--pretty=tformat:%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --all
    l10 = log --graph '--pretty=tformat:%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --all -10
    # for complicated branches
    lsd = log --graph '--pretty=tformat:%Cblue%h%Creset %Cgreen%ar%Creset %Cblue%d%Creset %s' --all --simplify-by-decoration

    ru = remote update
    sb = show-branch --sha1-name

    ls-del = ls-files -d
    ls-mod = ls-files -m # including remote files
    ls-new = ls-files --exclude-standard -o
    ls-ign = ls-files --exclude-standard -o -i

Update (2012-11-11)
https://gist.github.com/4056358