Pages

Sunday, October 9, 2016

C# 6.0 First Look


Check out new features in C# 6.0.

Enjoy!







Monday, September 26, 2016

Redis Cluster Setup


Redis is NoSQL key-value in-memory distributed data store. It can be used as super-fast database, cache or message broker.

Please check out this very useful article about Redis Cluster Setup on Linux: Configuring and Running Redis Cluster on Linux


Sunday, February 21, 2016

Java 8 Finding Specific Element in List with Lambda




As you probably know in Java 8 we can use Lambda expression for different manipulations with collections.
java8-lambda-expression

If you have a List with some custom objects inside and you want to find specific element in it you can use stream().filter procedure of Lambda instead of ForEach as you probably used to. Below is a simple example of this case.

List<RepositoryFile> fileList = response.getRepositoryFileList();
RepositoryFile file1 = fileList.stream().filter(f -> f.getName().contains("my-file.txt")).findFirst().orElse(null);

Thursday, February 18, 2016

Java JSON Parser Example with Regex



Recently I came across with problem where I needed to recognize and parse custom exception message inside JSON on Java server side. For that particular problem I used Regex.

The JSON response format is like this:

json-with-exception-message

And this is the code:

Wednesday, February 17, 2016

AngularJS Binding Syntax and Examples


AngularJS bindings cheat sheet:

One-way(data source -> view target):
  • {{expression}}
  • [target] = "expression"
  • bind-target = "expression"

One-way(view target -> data source):
  • (target) = "statement"
  • on-target = "statement"

Two-way:
  • [(target)] = "expression"
  • bindon-target = "expression"

Monday, February 15, 2016

What is Interpolation in AngularJS


Interpolation is such a process when AngularJS fetches a calculated string into the text between HTML element tag and within attribute assignments.

Let's see example of interpolation:

<h3>
   {{title}}
    <img src = "{{myImageUrl}}" >
</h3>

Thursday, January 14, 2016

How to Become a Software Developer


If you come over this post I'd like to cheer you and say that you are the very special person!
Why? Because you probably a software developer, or might want to become one.

There are a list of steps that are required to obtain a recognized professional qualification. The necessary conditions, you become a professional in the relevant field. I did not mean that it is easy to become a doctor, but everyone knows how to do it!

how-to-become-a-doctor-google-results


Now ask Google «how to become a software developer." Answers like that I used, are reduced to vague platitudes: "learn a programming language," "Participate in the creation of open source," "join the local community of programmers." 

There is no clear plan for building a career or any guarantees about when or whether you will become a professional at all, not a word about how you will manage to get a paying job in the future!