Archive for the ‘Programovanie’ Category

September 2, 2018 | In: Programovanie

Postgresql pridanie usera

Pred spustenim servera, treba zmenit ownera na subore : server.key chown postgres.postgres /var/lib/postgresql/8.4/main/server.key V novsich verziach to mozno netreba. potom prihlasit sa na psql 1. su - postgres psql vytvorenie noveho...

  • Comments Off on Postgresql pridanie usera

How to remove svn needs-lock in all files in folders and subfolders Use the check-for-modifications dialog, show all files (including not modified ones). Select all files, right-click, choose "properties". Then remove the svn:needs-lock...

  • Comments Off on svn:needs-lock disable

August 18, 2018 | In: Programovanie

pocet riadkov kodu

Ak chceme pocet riadkov v kode find . -name '*.php' | xargs wc -l

  • Comments Off on pocet riadkov kodu

[crayon-5d078fa09cc14196734809/] Transpiling code means converting the code in one language to code in another similar language. (sass -> css, TS ->JS) import syntax isn’t much different from the require syntax, but import has extra flexibility...

  • Comments Off on JS in 2018 – list of all the things I read

Checking nested structure with isset does not work anymore! In the project I'm working on currently, all the models extends from ArrayObject: [crayon-5d078fa09d69b050717039/] Now, I found the following on many places (or...

  • Comments Off on PHP 7.0.6 isset not working properly – anymore

February 9, 2016 | In: Programovanie

SVN repo size

svn list -vR file:///path/to/svn/folder/* | awk '{if ($3 !="") sum+=$3; i++} END {print "\ntotal size= " sum/1024000" MB" "\nnumber of files= " i/1000 " K"}'

  • Comments Off on SVN repo size

how to run phan on debian First, go here, here and here to get an idea about how to get phan working. For Debian8 though, I had to do a few more tricks to get it running. If you still haven't try php7 (shame on you!) check this guide: how to...

  • Comments Off on running phan static analyzer to check php5 to php7 issues