ProgrammingKnowledge

Pages

Sunday, November 19, 2017

Some time you may wonder In Unix, how do I securely transfer files between two Linux computers? So generally we use scp command to Securely Transfer Files/Folders in Linux (e.g. Ubuntu, Cent OS, Fedora, Linux mint ..). scp stands for "secure copy."

Monday, October 9, 2017

In Scala it’s common to inject variables in strings like this with the different types of string interpolation:

Scala supports basically three kinds of String Interpolation:

s String Interpolator - Prepending s to any string literal allows the usage of variables directly in the string

f String Interpolator - Prepending f to any string literal allows the creation of simple formatted strings. It is similar to C languages style printf . When using the f interpolator, all variable references should be followed by a printf style format string, like %d, %s, %f etc.

raw String Interpolator - The raw interpolator is similar to the s interpolator except that it performs “No escaping of literals within the string”

Saturday, September 16, 2017

SBT (Scala Build Tool, formerly Simple Build Tool) is an open source build tool for Scala and Java projects, similar to Java's Maven and Ant. In this video I am going to show you How to Install and Setup SBT on Windows 10. Also i am going to show you How to execute sbt on Windows to open the interactive shell?

SBT (Scala Build Tool, formerly Simple Build Tool) is an open source build tool for Scala and Java projects, similar to Java's Maven and Ant. SBT is a modern build tool. While it is written in Scala and provides many Scala conveniences, it is a general purpose build tool. sbt is the de facto build tool in the Scala.
Why SBT :
- Native support for compiling Scala code.
- Uses Apache Ivy for dependency management
- Only-update-on-request model
- Full Scala language support for creating tasks
- Support for mixed Java/Scala projects
- Launch REPL (Read–Eval–Print Loop) in project context.

Saturday, September 9, 2017

- “Scala is an acronym for Scalable Language ”
- Scala is a modern multi-paradigm programming language designed to express common programming patterns in a concise, elegant, and type-safe way.
- Scala is written by Martin Odersky at EPFL.
- Scala is Statically Typed
- Scala Runs on JVM, full inter-op with Java.
- Scala is Object Oriented
- Scala is Functional
- Scala has Dynamic Features
- Scala is Scala blends object-oriented and functional programming in a statically typed language.

Tuesday, September 5, 2017

SUBSCRIBE, UNSUBSCRIBE and PUBLISH implement the Publish/Subscribe messaging paradigm where senders (publishers) are not programmed to send their messages to specific receivers (subscribers).
PSUBSCRIBE pattern [pattern ...]
Listen for messages published to channels matching the given patterns
PUBSUB subcommand [argument [argument ...]]
Inspect the state of the Pub/Sub subsystem
PUBLISH channel message
Post a message to a channel
PUNSUBSCRIBE [pattern [pattern ...]]
Stop listening for messages posted to channels matching the given patterns
SUBSCRIBE channel [channel ...]
Listen for messages published to the given channels
UNSUBSCRIBE [channel [channel ...]]
Stop listening for messages posted to the given channels