Moving change from the middle of branch to top of parent branch in Git
During development in feature-branch I made change that is unrelated to feature and I want to
integrate it before feature will be completed.
Don't indent code due to error checking!
Developers tend to indent code just because of null check.
Mimic finally block in Java loop honoring continue statement
Maintaining code with checks first and keeping all on single level can be tricky because language
designers don't worried about such use case.
Create table if not exists for Oracle database
We need to reset our FlyWay history due to major DB refactoring. All changes would be squashed into
single that creates base schema so you can recreate database from scratch. But we don't want
conflicts with existing tables in production.
Resolving "Could not resolve all dependencies for configuration" in Gradle when using local Artifactory
In order to be able to build project at home I need access to company repository manager. As
temporary workaround I set up local Arifactory, and added proxies for public and private
Find file line ending inconsistency in your project
If project is shared by team members with different OS it is possible that your files have mix of
eol (end of line) styles.
Cygwin emacs-w32 with Administrator privileges
With modern Windows privileges schema (unlike in Windows XP) Emacs can't save edits to many of files
placed in special directories (like "Program Files"). To allow saving of modification you should
grand Administrator privileges to Emacs process.
Continue printing on HP LaserJet after running out of paper
HP LaserJet on Windows have special GUI that ask you to supply paper after running out of paper. But
Linux drivers for CUPS doesn't depend on GUI.
Joining two commits in Mercurial
Suppose you have two unpublished commits in Mercurial and like to join them into single commit:
Safe file prefix to be on top in a list
Putting one symbol prefix from the beginning of ASCII chart to file name bring that file up in a
list of files ordered by names.
Swipe JS API for mobile devises
I implemented 2048 game in JS but it lack support for mobile devices because game input is keyboard
driven. To enable mobile devices I have to figure out how touch events is exposed by browser to JS
Moving learning history in AnkiDroid to new phone
I bought new Android phone and the only one application that should take care is AnkiDroid. I don't
want to lose my learning progress.
What is milliard and billion?
What is billion mean in English? Does it 10⁹ or 10¹²? In a past that would be confusing.
Solution for Hanoi problem in JS
"Tower of Hanoi" is famous task. It has simple recursive solution.
Horizontal centering in CSS
Basic technique for horizontal centering of element with
Setting Let’s Encrypt on Lighttpd
Tonight I'll show how to set Let’s Encrypt forLighttpd.
Emacs 25 under Windows
I haven't used Windows for a long time and new job may require Windows environment. So I checked out
new ways to use Emacs under Windows.
HTTP interview questions
Let's answer to some interview questions about HTTP protocol.
Some SQL interview questions
There are a lot of questions in DB and SQL topic. I put here some simple and tricky one.
Find a loop in linked list
Today I'll show how to find a loop in linked list in linear time.
Java interview questions
Now is time for some Java interview questions.
Solution for coin problem by dynamic programming
Some interview question can be soled by dynamic programming. One of such is coin problem - express
an amount of money with minimal coin number.
Longest substring without repeating characters
Another interesting task for interview is "Longest substring without repeating characters".
Permutations of parentheses
Usual task for interview: Print all possible n pairs of balanced parentheses.
HTML / CSS interview questions
Today talk is going about CSS / HTML / HTML 5 related questions on interview.
It's time for some common JS interview questions.
General question on interview
This evening I'll try to answer general / mosivation question that usually asked on interview.
Preparing for interview on a position of a software developer
I was asked many times how to become a software tester. In addition to practical advises I modeled
another response in my dreams which include keeping progress in a blog during preparation for a new
Defun blog is open. Salute!
A long time ago I had two blogs at Blogspot service: