RSS

Category Archives: General

General

Learn React VR: A great tutorial series deserving a good read


Chapter 1 | Hello Virtual World
Chapter 2 | Panoramic Road Trip
Chapter 3 | Outdoor Movie Theater
Chapter 4 | Transitions and Animations
Chapter 5 | Star Wars Modeling
Chapter 6 | Vector Graphic Exploration
Chapter 7 | UI/UX Principles for VR Design
Chapter 8 | Building a VR Video App
Chapter 9 | Reacting to Our Exploration

Please support Michael Mangialardi either by up-voting his articles as shown above or purchase his git book.

Enjoy!

 
Leave a comment

Posted by on July 27, 2017 in General, Programming, React-VR

 

Tags: , , , ,

vmware workstation unrecoverable error (vcpu-0)


When you install some virtual OS using vmware workstation or vmware player, if you encounter below error:

unrecoverable error (vcpu-0)

Try below actions:

  • open *.vmx file in the folder where your OS is located
  • append below line to the tail of the vmx file (you can put this line anywhere in the vmx file, and vmx file will be auto-sorted for you)

smc.version = 0

image

That is it! Happy working!

 
Leave a comment

Posted by on December 12, 2016 in General, Linux, Mac, Windows

 

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: , , ,

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

 
Image

Don’t pick a job, pick a boss.


 
Leave a comment

Posted by on August 24, 2016 in General

 

Kotlin for Android (I) Why I love Kotlin


If there is only one sentence to describe Kotlin, it would be: “Kotlin is great”!

You will not appreciate the beauty of it if you do not suffer from the repetitive, boilerplate coding in java. Let’s see an example first.

Consider you have two classes, as shown below, they do the same thing, interchangeable, exactly the same in terms of functionality, which one do you choose? Left or right one?

  image  image

The left one is java implementation, and the right, Kotlin.

This is a real example that I encountered in developing an Android App. The App tries to get the new questions on StackOverflow site: Open the link below in your browser to see how you can get the json from StackExchange API:

https://api.stackexchange.com/2.2/questions?site=stackoverflow&key=JE1srJAZi8)AoOEHcHUWdg((

You will be presented a similar json as below:

stackoverflow-questions

In order to display a list of such questions in Android views, I need to deserialize this json string to a POJO (Plain Old Java Object) representation. To avoid hands dirty,  we can go to http://pojo.sodhanalibrary.com/ and paste the json string to get the POJO class:

Read the rest of this entry »

 
Leave a comment

Posted by on June 27, 2016 in General

 

Tags: , , , , , ,