Snaps in all categories

TimestampBehavior to autmatically set datetime values of created_at and updated_at. If fields have other name than default, names can be overwite...

php yii2 activerecord datetime

Reserved characters in HTML must be replaced with character entities. Characters, not present on your keyboard, can also be replaced by entities....

HTML entities

Model detachment is caused by the nature of inheritance in JavaScript. When you type something in child controller model the inherited variable will be overwritten. It can be easily fixed by using object variables. Check out the demo: http://jsb...

model twitter-bootstrap angular

Yii2 check if record exists with where condition...

yii2 php

This short code added at the bottom of page make all of dropdown menu's elements equal height....

bootstrap

Kill all processes matching a name "nametokill"...

linux command

php

Clarification will help for people who aren't sure. You first create a variable to store your information, then call the php date function so that it is stored in the variable. Add format parameters so the date is displayed the way you'd like i...

php mysql date

C++

The same thing with using the namespace...

cout std

pkill(1) - Linux man page => pgrep, pkill - look up or signal processes based on name and other...

linux command

Basic head elements in HTML page....

HTML head

php

Finding first and last item of an array using end and reset functions...

php array find

Kohana orm validation...

php kohana orm validation frameworks

Copying table structure from one database to another database....

mysql table copy database

Efficient way of checking whether given number is prime or not without additional libraries or pre-generating array of prime numbers. Remember to search prime numbers in positive integers....

prime-number maths

In JavaScript String (unlike array) hasn't got native reverse function (at least by now). To reverse string we can use both String.prototype or "third party" function. To see full code and demo check out http://jsbin.com/gawiga/2/edit?html,js,ou...

reverse string

The simplest and quickest (to write) way to reverse string in Java which I have ever seen without third party libraries....

reverse string

aaa

--...

php

Custom styles with responsive text with media queries. Desktop first queries 10 different settings and additional font weight and style classes....

css css3 bootstrap

Generate empty JSON 2d array....

json.net

Gettin logged user in yii2 framework...

yii2 php logged user get