Bringing Life to Ideas

Software & Tech Development for the Future | Treinetic.com

Reach Treinetic
AngularJs 1.x

Angular-JsClass (ngJsClass)

Working with literal notationed objects in angularJs is fine but when the codebase is getting bigger and bigger doing that create problems, specially when you are working with a REST API. Because the Structure of an Object generated after consuming a particular REST api is not defined within the project in the above approach, so […]

Imal Perera 
Algorithms

Dijkstra’s Algorithm Java Implementation

What is Dijkstra’s Algorithm Dijkstra’s algorithm is used to determine the shortest path or shortest distance between two nodes in a given graph, Dijkstra’s algorithm comes under the category of pathfinding algorithms and these algorithms are highly used in data transmission over the networks. If I try to make it simple, the page you are […]

Imal Perera 
Databases

Database Synchronization

Database synching is something we really need when we are having a local database server for development and a remote database for demoing purposes. even though we write ER diagrams by analyzing the customer requirements, naturally requirements are born to change so we have to change our object model as well as the database structure […]

Imal Perera 
Algorithms

K-Means Algorithm

k-means is one of the most widely used Clustering algorithm existing right now, in the algorithm k is a variable which we need to provide and algorithm will divide a given n number of observations into k number of clusters, logic of assigning a cluster to a particular observation is based on the distance between the observation […]

Imal Perera 
Common

FTP from Windows Command Prompt

Open CMD as Administrator Connecting to host ftp next you will ask to fill FTP username and the password, after successful login you will see message similar to this “230 Login successful” now visit location where you want to upload the file, mine is like this cd /var/lib/tomcat7 Now to upload fie. use command, put […]

Imal Perera