RSS

Recent hot posts


AI | Android | CAD | CAE | CAX | Linux | osg | Unity 3d | Dotnet/C# | MFC | Java | Python

Visual Studio 2015 Ultimate offline installer ISO Android Image Button: transparent background and custom pressed icon
Visual Studio 2015 RTM ISO/offline download links: official links Android EditText control: using old rectangle style
How to Install CMake 3.0 on CentOS 6 / CentOS 7 Android, you ask to “Run As”, but it still “Debug as”
Step-by-Step guide for developing Android Plugin for Unity3D (I) Install OSG for Android On Ubuntu 13.04: Step-by-Step tutorials
Microsoft SQL Server 2014 offline iso: official download links Installation of AutoCAD in Windows 8 & 8.1: Failure and solution
Gradle: SDK location not found, the problem and solution Installing Git-flow in Windows
 
Leave a comment

Posted by on April 10, 2014 in General

 

Tags: , , ,

Android Automated UI Testing with Expresso (I)


I have been trying to write a few articles on Android automated UI testing for a long time, ever since my last job when we started experimenting using Expresso in our commercial Android App.

This article outlines the simplest UI testing with Expresso, with step-by-step snapshots for beginners to walk through.

simpleuitesting_activities

Read the rest of this entry »

 
Leave a comment

Posted by on November 25, 2016 in Android

 

Tags: , , , ,

A good tutorial on Builder design pattern


Original article: https://jlordiales.me/2012/12/13/the-builder-pattern-in-practice/

public class User {
  private final String firstName; // required
  private final String lastName; // required
  private final int age; // optional
  private final String phone; // optional
  private final String address; // optional

  private User(UserBuilder builder) {
    this.firstName = builder.firstName;
    this.lastName = builder.lastName;
    this.age = builder.age;
    this.phone = builder.phone;
    this.address = builder.address;
  }

  public String getFirstName() {
    return firstName;
  }

  public String getLastName() {
    return lastName;
  }

  public int getAge() {
    return age;
  }

  public String getPhone() {
    return phone;
  }

  public String getAddress() {
    return address;
  }

  public static class UserBuilder {
    private final String firstName;
    private final String lastName;
    private int age;
    private String phone;
    private String address;

    public UserBuilder(String firstName, String lastName) {
      this.firstName = firstName;
      this.lastName = lastName;
    }

    public UserBuilder age(int age) {
      this.age = age;
      return this;
    }

    public UserBuilder phone(String phone) {
      this.phone = phone;
      return this;
    }

    public UserBuilder address(String address) {
      this.address = address;
      return this;
    }

    public User build() {
      return new User(this);
    }
  }
}
 
Leave a comment

Posted by on November 11, 2016 in General

 

Tags: , , ,

Unity3D: Get inspector property values programatically


Recently, I found an interesting question in Unity3D. How to get some field value shown in Unity3D inspector programmatically? Largely this is an undocumented area, and it took me some research to get this done.

In what follows, I am getting the value for Input Manage Axes, as shown below:

image

Read the rest of this entry »

 
Leave a comment

Posted by on October 25, 2016 in Programming, Unity 3d

 

Tags: , , , , , , , , , , ,

A good tutorial on programming XMPP


Original article is here.

But before diving into the server setup and programming issues, below two articles might be helpful to give you an idea on what XMPP is:

Instant messaging (IM) is nowadays one of the most used ways of communication and collaboration. In the next few articles I will be discussing how to create an infrastructure for instant messaging (IM) in your network.

Below  articles will show you how to install and configure an IM server, as well as how to use a XMPP library in Java in order to add instant messaging capabilities to your own application using Smack library.

Articles Series:

  1. Openfire server installation
  2. Openfire server configuration 
  3. XMPP IM with Smack for Java applications
 
Leave a comment

Posted by on September 27, 2016 in General

 

Introduction to Reactive Programming: An excellent tutorial


Original article here. Deserves a read.

 

 
Leave a comment

Posted by on September 21, 2016 in General

 

How to use GitStats in Windows: A step-by-step tutorial


GitStats is a handy tool for analysis and statistics for a git repository. It is a statistics generator for git repositories, which produces some interesting statistics from the history of it. Currently HTML is the output format.

gitstats

image

Read the rest of this entry »

 
Leave a comment

Posted by on September 18, 2016 in Programming

 

Tags: , , , , , , , ,

PERSPECTIVES ON AGILE SOFTWARE TESTING


An insightful ebook published by ThoughWorks. Deserves a perusal!

Download PDF here.

Image result for PERSPECTIVES ON AGILE SOFTWARE TESTING

 
Leave a comment

Posted by on August 26, 2016 in Programming

 

Tags: , , , ,