Publications by tomaztsql
Using R and Microsoft SQL Server to run prediction model with API call
From the previous two blog posts: Creating REST API for reading data from Microsoft SQL Server in web browserWriting DAta to Microsoft SQL Server from web browser using REST API and node.js We have looked into the installation process of Node.js, setup of Microsoft SQL Server and made couple of examples on reading the data from database through ...
3812 sym R (5170 sym/10 pcs) 10 img
Little useless-useful R functions – Useless Year Progress bar with spinning cursor
Progress bar showing the number of days until end of the year. Yes, only based on the days and not hour. And needless to say, the progress is soothing using ASCII charts. So the function is fair to say, simple and useless. yearProgress <- function(){ year <- format(Sys.Date(), format="%Y") difference <- as.integer(Sys.Date()-a...
916 sym R (1033 sym/2 pcs) 4 img
Little useless-useful R functions – Useless analog and digital clocks
It is all about measuring time using useless clocks. Script takes a system time and displays any given clock in a rather “static” way. You can choose between analog, small digital and big digital clock. And when playing with the time, you can also learn something new. Analog Clock Using the following code, you can create a nice analog clock...
1740 sym R (4339 sym/3 pcs) 14 img
Little useless-useful R functions – Useless animated showcase of plot() function
Plot() function is R’s most generic function for plotting different types of graphs. And making a animation of sample graphs with is as useless as it can be useful for educational purposes. Animation would look like this: Useless plot() animations So the gist of the function is two-fold: Data and description of the graphAnimation created fro...
1036 sym R (3223 sym/2 pcs) 4 img
Little useless-useful R functions – Useless interface for learning irregular verbs
So you want to train your knowledge on irregular verbs or your child is learning all forms of the verbs or you are getting prepared for post-covid travel a crash-course of grammar would not hurt. Yes, this useless function will help you get back in shape. Run the code train for brains and watch the results. The function is straightforward: learn...
1295 sym R (1662 sym/2 pcs) 4 img
Little useless-useful R functions – Interactive Voronoi diagram generator using R and x11()
Yes. Finally, the Voronoi diagrams with the use of x11() function. This diagram is presentation of a plane that is partitioned every time, a user clicks on the canvas of x11. This plane is partitioned into smaller regions that are close to given set of points. Partitioning into smaller regions or convex polygons happens in such manner that each p...
1558 sym R (1068 sym/2 pcs) 4 img
Advent of 2021, Day 1 – What is Apache Spark?
Apache Spark is an open-source unified analytics engine for large-scale data processing. It provides an interface for programming entire clusters with implicit data parallelism and fault tolerance. Originally it was developed at the Berkeley’s AMPLab, and later donated to the Apache Software Foundation, which has maintained it since. Spark is ...
4395 sym 4 img
Advent of 2021, Day 2 – Installing Apache Spark
Series of Apache Spark posts: Dec 01: What is Apache Spark Today, we will look into installing Apache Spark. Spark is cross-platform software and therefore, we will look into installing it on both Windows and MacOS. Windows Installing Apache Spark on Windows computer will require preinstalled Java JDK (Java Development Kit). Java 8 or later ve...
3358 sym R (174 sym/7 pcs) 20 img
Advent of 2021, Day 4 – Spark Architecture – Local and cluster mode
Series of Apache Spark posts: Dec 01: What is Apache SparkDec 02: Installing Apache SparkDec 03: Getting around CLI and WEB UI in Apache Spark Before diving into IDE, let’s see what kind of architecture is available in Apache Spark. Architecture Finding the best way to write Spark will be dependent of the language flavour. As we have mention...
4084 sym R (456 sym/5 pcs) 12 img
Advent of 2021, Day 5 – Setting up Spark Cluster
Series of Apache Spark posts: Dec 01: What is Apache SparkDec 02: Installing Apache SparkDec 03: Getting around CLI and WEB UI in Apache SparkDec 04: Spark Architecture – Local and cluster mode We have explore the Spark architecture and look into the differences between local and cluster mode. So, if you navigate to your local installation ...
2916 sym R (452 sym/8 pcs) 12 img