Archive for the ‘Programovanie’ Category

At the time of writing, docker does not have repository for disco (ubuntu 19.04), so we have to use the previous version (18.04 - bionic). You will do all the steps as mentioned in the official docker doc:...

  • Comments Off on Installing docker on Ubuntu 19.04 (disco)

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

August 30, 2018 | In: Programovanie

mysql natural sort

Natural sort in mysql

select alphanum ORDER BY LENGTH(alphanum), alphanum

result:
a1
a2
a9
a10
a11

  • Comments Off on mysql natural sort

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

npm install node-sass sass-loader style-loader --save-dev npm install bulma --save // css framework npm run dev npm install axions --save // a simple http lib // jsonplaceholder.typicode.com (# dummy data like comments...) npm install -g @angular/cli ng...

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

source from: https://codepen.io/mxbck/pen/EvmLVp/ /* * Variables */ :root { --card-padding: 24px; --card-height: 340px; --card-skeleton: linear-gradient(lightgrey var(--card-height), transparent 0); --avatar-size: 32px; ...

  • Comments Off on Sekeleton App in Pure CSS

SCSS crash course; aka - collection of existing sources used as a reminder for myself, and perhaps some random dude... $settings: ( maxWidth: 800px, columns: 4, margin: 15px, breakpoints: ( xs: "(max-width : 480px)", ...

  • Comments Off on SCSS and CSS in 2018 – my long overdue updates of what’s possible

Checking nested structure with isset does not work anymore! In the project I'm working on currently, all the models extends from ArrayObject: abstract class AbstractModel extends ArrayObject 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