- CSS Margin
margin properties are used to create space around elements, outside of any defined borders. margin: top right bottom left; margin: 10px 15px 20px 25px; top – 10px right – 15px bottom – 20px left – 25px margin: top right/left bottom; margin: 10px 20px 25px; top – 10px right/left – 20px bottom – 25px…
- Elasticsearch – Mappings, and Why You Should Write Your Own
Dynamic mapping guesses a field's type from the first document it sees, and it guesses from ONE document. A price that happens to arrive as 120 becomes a long and the next listing at 119.50 is a problem. Writing an explicit mapping, what dynamic: strict buys, multi-fields, and the constraint that shapes everything afterwards: a field's type cannot be changed once it has been written.
- Postgres – Transactions, Isolation and Locking
BEGIN, COMMIT, ROLLBACK, and what Postgres promises in between. Read Committed versus Repeatable Read versus Serializable, shown with two real psql sessions rather than described. SELECT FOR UPDATE, the lost update it prevents, deadlocks and the ordering rule that avoids them, advisory locks, and the idle-in-transaction connection that blocks your next deploy.
- Linux Search/Filters
Grep Grep command stands for “global regular expression print”. grep command filters the content of a file which makes our search easy. grep {search-key-word} {filename} // search for word lisa in test.txt file grep ‘lisa’ test.txt grep -n The -n option display the line number grep -n ‘lisa’…
- Iterating
This is the final post in our series on how software engineering works. We have covered understanding the problem, finding and validating a solution, planning, designing, implementing, testing, and shipping an MVP. Now comes the part that separates amateur projects from professional products:…