Open source, Linux, VIM, PHP, Ruby, Python, Symfony, Rails, SQL, Javascript, JQuery, whatever... - tips&tricks.
Monday, May 30, 2011
Cool, but obscure unix tools :: KKovacs
Cool, but obscure unix tools :: KKovacs - realy great linux toolbox.
Monday, May 23, 2011
Friday, May 20, 2011
VIM + PHP: key mapping to find parent class
I love VIM power
Use with generated ctags!
BONUS! your VIM cowsay powered:
1. cowsay needed!
2. Ubuntu installation:
map <Leader>] /extends /e<CR>:normal l<CR><C-]>
Use with generated ctags!
BONUS! your VIM cowsay powered:
vmap <C-S-F1> yo<esc>:r !cowsay <C-r>"<cr>0. select block of text and press Control-Shift-F1 key.
1. cowsay needed!
2. Ubuntu installation:
sudo apt-get install cowsay
Friday, May 6, 2011
PHP - numeric string comparizon
Evert Pot posts on interesting PHP behaviour.
Try it yourself :)
Try it yourself :)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if( '20110204024217300000' == '20110204024217300264' ) | |
echo 'equal'; | |
else | |
echo 'not equal'; |
Ubuntu 11.04 po instalacji na VirtualBox
Oto moje Ubuntu 11.04 po wstępnej instalacji i konfiguracji.
- na Virtualbox'ie
czasami się zacinaprzestał się zacinać po pierwszej aktualizacji. - Jak dla mnie unity wprowadziło delikatny powiew nowości (lubię nowe rzeczy).
- Co mnie najbardziej zdziwiło to na moim starym desktopie z Pentium 4 2.8 i 2GB działa płynnie a co najważniejsze działa po aktualizacji z wersji 10.10.
Subscribe to:
Posts (Atom)