Click here to Skip to main content
15,881,803 members
Everything / Programming Languages / Scala

Scala

Scala

Great Reads

by Sacha Barber
Simple uber type app using Akka/React/TypeScript/Scala/Play/Kafka/MongoDb/Rx
by Sacha Barber
An article on how to use the open source Apache Kafka messaging framework, with a bit of RxScala thrown in for good luck
by Sacha Barber
Looking at Spark/Cassandra working together
by Sacha Barber
Looking at Spark/Cassandra working together

Latest Articles

by Jian_Zhang
Democratizing AI with Intel-Optimized Software
by jfriedman
When you need a janky [unsafe] way to generate communitive hash codes
by Shun Huang
How to set up Visual Studio Code for Scala development on WSL
by Sandeep Mewara
A guide to help learn about Kafka and do a setup & test of data pipeline in Windows environment.

All Articles

Sort by Score

Scala 

6 Feb 2018 by Sacha Barber
Simple uber type app using Akka/React/TypeScript/Scala/Play/Kafka/MongoDb/Rx
15 Mar 2016 by Sacha Barber
An article on how to use the open source Apache Kafka messaging framework, with a bit of RxScala thrown in for good luck
20 Jan 2016 by Sacha Barber
Looking at Spark/Cassandra working together
10 Feb 2016 by Sacha Barber
Looking at Spark/Cassandra working together
5 Nov 2015 by Sacha Barber
So continuing on from the Scala for .NET series of posts. This time we will look at using Generics in Scala.
28 Oct 2019 by Igor Ladnik
Simple Kafka producer and consumer written in C# and Scala with Avro schema read either from local file or simple Web server
20 Oct 2015 by Sacha Barber
In this post, we will talk about how to create abstract classes, inheritance and also traits.
14 Dec 2016 by Paolo Parise
Graph intersection using map reduce and Akka
7 Jun 2017 by Sacha Barber
Prototyping the screens
20 Nov 2015 by Sacha Barber
I shall attempt to outline some of the ways you could do DI / IOC in Scala
28 Jul 2016 by Sacha Barber
Ok so last time we covered the basics of actors and the actor system (actor fabric) and covered how to send simple messages to actors. This time we will talk about actor hierarchies (supervision) and also actor lifecycles.
5 Jun 2017 by Sacha Barber
This time we will bring a Play Framework (scala based MVC web framework) into the fold, and shall be using the front end we have been working on so far to be the front end for the Play Framework back end.
1 Aug 2017 by Sacha Barber
Registration/login backend
1 Jul 2019 by Mahsa Hassankashi
This article explains almost the whole story about Scala and its functionality with an example.
28 Oct 2015 by Alexander Iskhakov
Creating a HTTP proxy using Play framework and WS API
23 Oct 2015 by Sacha Barber
SCALA Extension methods
14 Dec 2015 by Sacha Barber
So last time we looked at how to use Slick to connect to a SQL server database. This time we look at how to use one of the 2 popular Scala testing frameworks.
14 Dec 2015 by Sacha Barber
Last time we looked at writing unit tests for our code, where we looked at using ScalaTest. This time we will be looking at mocking.
19 Jan 2016 by Sacha Barber
Scala : multi project sbt setup
17 Feb 2016 by Igor Alekseev
A quick introduction to Fluent-Translator: Scala idiomatic non-blocking library for working with Microsoft, Google language translation services via a fancy DSL
19 Apr 2017 by Intel
This article introduces BigDL, shows you how to build the library on a variety of platforms, and provides examples of BigDL in action.
27 Aug 2017 by RickZeeland
This might be of interest to you too: [Top 10 Programming Languages in 2017] It is a bit superficial, but gives a good overview. Also interesting: Stack Overflow Developer Survey 2017[^] 'Most popular' does not mean that these are the best languages for you, although the GO language is listed...
1 Sep 2017 by Sacha Barber
This article will focus on a simple REST example in Scala. It's an intermediate post that the next one will build on, I just thought it might be useful to show this one in isolation, before we move on to the real one which is to allow interactive queries over live Kafka streams.
11 Sep 2017 by Sacha Barber
In this post what we will be doing is looking at: How to install Kafka/Zookeeper and get them running on Windows, walking through a KafkaProducer, walking through a Kafka Streams processing node, and the duality of streams, and walking through Kafka Streams interactive queries
25 Nov 2020 by OriginalGriff
You're running late - the rest of your class was trying to get us to do this homework last week ... But I'll tell you what we told them: Quote: We are more than willing to help those that are stuck: but that doesn't mean that we are here to do it...
17 Nov 2015 by Sacha Barber
Configuration in Scala
14 Dec 2015 by Sacha Barber
This time we will proceed to look at using Scala to connect to SQL server.
18 Feb 2016 by Member 11588367
I want to add any Scala dependency on REPL. So that i could run the code on REPL. But I don't know how to add this on REPL?What I have tried:I am new to scala .addDependency("org.typelevel" %% "cats" % "0.4.1")
18 Oct 2016 by OriginalGriff
Then go back to where you found it and ask them.They will know a lot more about it than we will...
24 Jan 2017 by Sacha Barber
Scala environment config options
26 Mar 2017 by Emmanuel Portelli
I am trying to implement an FPGrowth algorithm using Spark's MLLIB but do not know how to proceed. I have seen multiple examples but do not include cross validation where a data set is split into training and test. // Recommendation engine can be per league// "Ligue 1"// "Bundesliga "...
28 May 2017 by Member 10678803
0 down vote favorite I have a query which is written is using slick, it is not a plain slick query. The query is a select query which fetches the records from a table called Employee. The results are of type Employee class. Now there is a list of Strings val nameFilter=...
27 Aug 2017 by Member 13380432
Hi, I'm new to coding and want to ask how do you choose a programming language for a project? What are the choosing based on? Most answer I found says it's based on what I need. But I don't know what I need. I just know what I want to build. Let say I want to build an E-commerce website and...
27 Aug 2017 by Patrice T
Quote: Let say I want to build an E-commerce website and mobile web Get started here for web site W3Schools Online Web Tutorials[^]
16 Jun 2018 by Richard MacCutchan
The data contains an item that is not a number, so you need to strip that out of your list before trying to convert.
13 Sep 2020 by Gerry Schmitz
How To Force An App To Use The Dedicated GPU On Windows[^]
19 Nov 2020 by Shun Huang
How to set up Visual Studio Code for Scala development on WSL
25 Nov 2020 by Patrice T
Posting your homework is not a question. You show no attempt to solve the problem yourself, you have no question, your main effort is pasting the requirement, you just want us to do your HomeWork. HomeWork problems are simplified versions of the...
5 Dec 2020 by Member 15012716
Hi Guys, I have a master calender starting from year 1991 to 2050. Now I want to create e new field weeknumberasyear where if w1 contains
5 Dec 2020 by Richard MacCutchan
Take a look at Week Numbers according to ISO8601[^]. It should be fairly easy to modify it to any day of the week.
29 Aug 2022 by Silpa Silpa
Input: 1. Given below input Partner data in comma separated file. (file name - Partner.csv). 2. Given List of Invalid Party Ids. Requirement: 1 Read the input Partner csv file and Invalid party ids list as Dataframes using spark APIs....
29 Aug 2022 by Sandeep Mewara
Here, it has an examples that you seek: Spark DataFrame Where Filter | Multiple Conditions - Spark by {Examples}[^] package com.sparkbyexamples.spark.dataframe import org.apache.spark.sql.{Row, SparkSession} import...
21 Oct 2022 by AsifUllah
Here is the code of Indexing a single Document User(uid, firstName, lastName, email, address, phoneNumber) into index(firstindex), but actually the problem is that the index created successfully but document not inserted: val user =...
12 Dec 2022 by OriginalGriff
While we are more than willing to help those that are stuck, that doesn't mean that we are here to do it all for you! We can't do all the work, you are either getting paid for this, or it's part of your grades and it wouldn't be at all fair for...
1 Feb 2023 by Rudra Ganesh Subbarayulu
I upgraded gatling version from 3.7.6 to 3.9.0 I updated the version in the build.gradle.kts file plugins { id(“scala”) id(“io.gatling.gradle”) version “3.9.0” } gatling { logHttp = io.gatling.gradle.LogHttp.FAILURES logLevel = “WARN” }...
27 May 2023 by Member 8840306
I am new in spark .I want to use function "take(3)" for getting(displaying) 3 row of my csv file It is collecting the record correctly raw_data =sc.textFile(“day.csv”) raw_data.collect() Quote: ['Name,Abbreviation,Numeric,Numeric-2',...
1 Sep 2015 by Sacha Barber
An introductory article on Apache Spark, with a demo app
1 Aug 2020 by Sandeep Mewara
A guide to help learn about Kafka and do a setup & test of data pipeline in Windows environment.
15 Oct 2015 by Sacha Barber
Scala types / variables
15 Oct 2015 by Sacha Barber
How to use the various loops within Scala
8 Oct 2015 by Sacha Barber
Getting .NET code to talk to Scala code and vice versa using RabbitMQ
12 Sep 2017 by Mahsa Hassankashi
This article is the most complete essay about big data from scratch to practical.
11 Nov 2015 by Sacha Barber
I have been a .NET developer for a long time now, and am very very used to dealing with the .NET framework Task library. Obviously here I mean TPL and now Async/Await. So now that I am doing more and more Scala I wanted to see what the equivalent code would be in Scala, […]
25 Jul 2016 by Sacha Barber
This time we will look at a simple example of Akka.
1 Jul 2020 by Chinmoy Mohanty
Common concepts in functional programming language
16 Jun 2018 by LearningSpark
Hi All, I am New to Big Data World.need urs help to make it real.here is myquestion I am Reading data from txt file(1,2,3,4,4,4,4) var file=sc.textFile("file:///home/cloudera/MyData/Lab1/numbers.txt") var number=file.flatMap(line=>line.split(",")) var...
28 Apr 2020 by Roman Nazarenko
An overview of how well Scala integrates into modern Java EE environment
1 Feb 2021 by jfriedman
When you need a janky [unsafe] way to generate communitive hash codes
11 Feb 2019 by Member 11882351
@{ string BackFortd = Convert.ToString(TempData["BackFor"]); } $(document).ready(function () { $("#ddlload").hide(); $('#loading').show(); ...
11 Feb 2019 by Member 11882351
@{ string BackFortd = Convert.ToString(TempData["BackFor"]); } $(document).ready(function () { $("#ddlload").hide(); $('#loading').show(); $('#NewPageIndex').val('1'); bindMemberList(); }); function bindMemberList() { ...
27 Aug 2017 by Richard MacCutchan
For such a website you need ASP.NET which means you need to learn the following to start with: HTML Css Javascript C# or VB.NET You can find samples and tutorials here on CodeProject at Web Development[^] and at the official ASP.NET | The ASP.NET Site[^].
13 Dec 2022 by Shrey Jamdar
Develop an psuedo book management application using Scala, Akka and Kafka. 1. Kafka Application should have the below mentioned features - a. Publish/produce the user/author/book details (every 30 seconds for Users/Authors and...
11 Feb 2019 by Member 14146669
function bindMemberList() { $("#loading").show(); var from = '01/01/1900'; var to = '01/01/1900'; $.ajax({ type: "Get", cache: false, url: "/Member/GetMemberData", data: { 'pageIndex':...
13 Sep 2020 by Member 14937120
I have a project written in Scala language and I want to run this project on GPU but I do not know how to run a Scala code on GPU? What I have tried: I have tried to run a scale code I wrote in the intellij idea environment on the GPU
6 Sep 2022 by pleasetextme please
case class DiagnosisCode(rootCode: String, uniqueCode: String, description: Option[String] = None) object Database { private val data: List[DiagnosisCode] = List( DiagnosisCode("A00", "A001", Some("Cholera due...
27 May 2023 by Richard MacCutchan
Look at the error message: Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases. 23/05/27 22:29:16 ERROR Executor: Exception in task 0.0 in stage...