The Version 6 of Angular Now Update 11/05/2018

As a part of this release, we are synchronizing the major versions going forward for the framework packages (@angular/core, @angular/common, @angular/compiler, etc), the Angular CLI, and Angular Material + CDK. All are releasing as 6.0.0 today. We made this change to clarify cross compatibility. The minor and patch releases for these projects will be issued based on … Continue reading The Version 6 of Angular Now Update 11/05/2018

Advertisements

Composite key handling, using @EmbeddedId annotation in scala

example simple : case class Group( id: Option[Id], category: Category, image: Option[FileResource] = None, updatedAt: LocalDateTime = NOW, createdAt: LocalDateTime = NOW ) extends EntityModel[Id] object Group { val Id = the[Identity[Id]] type Id = Long @@ GroupCommonIcon type WithNoId = Entity.WithNoId [Id, GroupCommonIcon] type EmbeddedId = Entity.EmbeddedId [Id, GroupCommonIcon] }

using Angular 5 Services

Generating the Service File The robust Anguar CLI tool will allow us to quickly and easily generate a service file for our project. Hop into your console within the project folder and run the following command: $ ng generate service data Working in the Service File Open up the file, located at: /src/app/data.service.ts: import { Injectable … Continue reading using Angular 5 Services

HeapSort in Scala – this is coding algorithm

import scala.collection.mutable.ArraySeq object HeapSort { def sort(vals: ArraySeq[Int]) { var heap = new MaxHeap heap.set(vals) for (i <- vals.length - 1 to 0 by -1) { vals(i) = heap.deleteMax } } } class MaxHeap { var _vals: ArraySeq[Int] = _ // First element is in 1, not 0. def set(vals: ArraySeq[Int]) { _vals = new … Continue reading HeapSort in Scala – this is coding algorithm

Selection Sort in Scala-This is coding algorithm

object Sort{ def selectionSort () : Unit = { var myArray = Array(4, 7, 8, 3, 1, 9, 2, 5, 0, 6) var buf:Int = 0; var min:Int = 0; for(i <- 0 to (myArray.length-1)) { min = i // j = i + 1; for (j <- (i+1) to (myArray.length)){ if ( myArray(min) > … Continue reading Selection Sort in Scala-This is coding algorithm

This is coding algorithm – Scala code bubble sort for loop

object Sort{ def bubbleSort () : Unit = { var myArray = Array(4, 7, 8, 3, 1, 9, 2, 5, 0, 6) var buf:Int = 0; for(i <- 0 to (myArray.length-1)) { for (j <- 1 to (myArray.length)){ if (myArray(j) < myArray(j-1)){ buf = myArray(j) myArray(j) = myArray(j-1) myArray(j-1) = buf } } } println("SORTED") … Continue reading This is coding algorithm – Scala code bubble sort for loop

Learn about the MVP programming model in android

What is the MVP model? MVP is a user-oriented GUI model, designed to facilitate unit testing and increase segregation between the data layer and the data layer in the MVC model. The MVP model allows the separation of the presentation layer (the Presenter) from the data layer, so interaction with the interface is separate from … Continue reading Learn about the MVP programming model in android

install Scala version 2.12.4 news

The most popular way to get Scala is either using Scala through sbt, the Scala build tool, or to use Scala through an IDE. 1 First, make sure you have the Java 8 JDK installed. To check, open the terminal and type: java -version(Make sure you have version 1.8.) (If you don't have it installed, download … Continue reading install Scala version 2.12.4 news

What’s New Angular 5: New features and updates?

After two major upgrades in the last 14 months, Angular - Google’s popular JavaScript framework - has released Angular 5, which arrived 1 November 2017. After missing previous release targets of 18 September and 23 October 2017, Angular 5 promises better code sharing capabilities, an updated HttpClient, faster rebuilds and an emphasis on making it easier to build progressive web apps. Some of the … Continue reading What’s New Angular 5: New features and updates?