teleren/devto huggingface dataset:
5 Benefits of Digital Transformation

Published: 2021-07-23 11:57:06

COVID-19 has sped up the adoption of digital technologies by several years, forcing businesses to adapt faster than they can. As a result, digital transformation has become one of the top priorities for businesses in 2021. In digitalised companies, things and processes move faster and are less prone to errors with the help of technology. Manual data entry errors and data transfers between one system to another can be integrated using Application Programming Interfaces (APIs) and Software Development Kits (SDKs). However, there are still a handful of businesses that remain unaware of this trend. This could be because they do not understand the benefits of Digital Transformation. In today’s article, we will cover five benefits of Digital Transformation for your business.


What is Digital Transformation?

Digital Transformation is the adoption of digital technology into all aspects of a business resulting in fundamental changes to how businesses operate and how they deliver value to consumers.

One good example of a digital transformation is Disney. Disney launched its very own Disney+ streaming platform in 2021, which has proven to be a great success. So much so that its market value increased by $32 billion after forecasting it will triple Disney+ subscribers by 2024.

5 Benefits of Digital Transformation:

1. Better Customer Experience
2. Data-Based Insights
3. Collaboration Amongst Different Departments
4. Increases Agility
5. Updates Skillsets and Knowledge
Click here to know more: https://hipster-inc.com/5-benefits-of-digital-transformation
Top 15 Reasons to Rely on Ruby on Rails
Tags: rails, softwaredevelopment
Published: 2021-11-25 12:21:20

---
title: Top 15 Reasons to Rely on Ruby on Rails
published: true
date: 2021-07-23 11:56:55 UTC
tags: RubyonRails,SoftwareDevelopment
canonical_url: https://www.botreetechnologies.com/blog/top-15-reasons-to-rely-on-ruby-on-rails/
---

Ruby on Rails is a powerful web development framework. Known...

The post [Top 15 Reasons to Rely on Ruby on Rails](https://www.botreetechnologies.com/blog/top-15-reasons-to-rely-on-ruby-on-rails/) appeared first on [BoTree Technologies](https://www.botreetechnologies.com/blog).
Day 1 / 100
Tags: 100daysofcode, programming, webdev, javascript
Published: 2021-07-23 11:39:55

So, Finally after so many days of procrastination, here I am taking up the 100DaysOfCode challenge. Today was the day 1 of the challenge. I started with solving some problems on Hackerrank and then went on to watch some tutorials on data structures and algorithms, specifically on time and space complexity. After that I continued learning JavaScript on Udemy, had a quick glance on the basics(which I already learnt before) and then went on to learn about AJAX and APIs. I also learned to use Postman, which I believe is pretty useful when working with APIs. Pretty satisfied with what I learnt today and hoping to do the same for rest of the challenge and also continue after the challenge ends.
Amazon EC2 Auto Scaling
Published: 2021-07-23 11:38:49

**_Scalability_** refers to starting with only the resources you need and designing your architecture to automatically respond to changing demand by scaling out or in. As a result you don’t have to worry about a lack of computing capacity to meet your customers’ needs.

The AWS service that provides this functionality for _Amazon EC2 instances_ is **Amazon EC2 Auto Scaling**.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zzq6gc4498gzdhybx1w9.jpg)

**Amazon EC2 Auto Scaling**

Consider a scenario in which you’ve tried to access a website that wouldn’t load and frequently timed out, the website might have received more requests than it was able to handle.

**_Amazon EC2 Auto Scaling_** enables you to automatically add or remove Amazon EC2 instances in response to changing application demand. By automatically scaling your instances in and out as needed, you are able to maintain a high application availability as well as you pay for only the resources you use.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2ia564i8hhysrn79e6cs.png)


There are three approaches for using Amazon EC2 Auto Scaling - 

1. **_Dynamic Scaling_** - Responds to changing demand.

2. **_Predictive Scaling_** - Automatically adds or removes the right number of Amazon EC2 instances based on predicted demand.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/467rzra8scrnw2v9x27u.png)

3. **_Scheduled Scaling_** - Allows you to scale your application prior to known load changes.
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/c0s9g0l5n7oairgzv3n8.jpg)


When you create an Auto Scaling group, you can set three types of capacities for number of Amazon EC2 instances.

1. **_Minimum Capacity_** - It is the number of Amazon EC2 instances that launch immediately after you have created the Auto Scaling group. 

2. **_Desired Capacity_** - It is the number of Amazon EC2 instances that you desire to have in your architecture. If you do not specify the desired number of Amazon EC2 instances in an Auto Scaling group, the desired capacity defaults to your minimum capacity.

3. **_Maximum Capacity_** - It is the maximum number of Amazon EC2 instances that the Auto Scaling group can scale out in response to increased demand.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vcqejowhe1kme38wgaan.png)



**Benefits of using Amazon EC2 Auto Scaling**

1. It can detect when an instance is unhealthy, terminate it, and replace it with a new one, improving the fault tolerance of application.
2. It ensures that your application always has the right amount of compute capacity.
3. It adds instances only if needed, and may scale across purchase options to optimize performance and price.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6xpe7lni69w04svnmgds.png)


Please feel free to write @ rewooparth.rp@gmail.com for any queries on Amazon EC2 Auto Scaling & stay tuned for next write-up.

Thank you!
TIL that Docker plugins need exec perms on the filesystem
Tags: todayilearned, docker, noexec, plugin
Published: 2023-05-19 20:38:53

---
title: TIL that Docker plugins need exec perms on the filesystem
published: true
date: 2021-07-23 11:28:00 UTC
tags: TIL,docker,noexec,plugin
canonical_url: https://www.zufallsheld.de/2021/07/23/til-that-docker-plugins-need-exec-perms-on-the-filesystem/
---

For one of our customers we needed to install the Docker-plugin for loki. To install it, you run:

```
docker plugin install loki

```

However this failed with the following error message:

```
Error response from daemon: dial unix /run/docker/plugins/d442cff8568254659f9aa7d2dd5a30526b69d1ac62593c628b65da8b9e933c6a/loki.sock: connect: no such file or directory

```

Running strace on the enable-command showed nothing really interesting:

```
[pid 40213] write(3, "POST /v1.41/plugins/loki/enable?"..., 157 <unfinished ...>
[pid 40207] <... nanosleep resumed>NULL) = 0
<snip>
[pid 40206] <... futex resumed>) = 0
[pid 40205] <... read resumed>"HTTP/1.1 500 Internal Server Err"..., 4096) = 377
[pid 40206] nanosleep({tv_sec=0, tv_nsec=20000}, NULL) = 0
<snip>
[pid 40213] write(2, "Error response from daemon: dial"..., 169 <unfinished ...>
[pid 40207] futex(0xc000074848, FUTEX_WAIT_PRIVATE, 0, NULL <unfinished ...>
[pid 40206] <... nanosleep resumed>NULL) = 0
Error response from daemon: dial unix /run/docker/plugins/d442cff8568254659f9aa7d2dd5a30526b69d1ac62593c628b65da8b9e933c6a/loki.sock: connect: no such file or directory

```

There was also an error in the logs:

```
Jul 23 13:12:52 egbr-abn-web01 containerd: time="2021-07-23T13:12:52.256314425+02:00" level=info msg="starting signal loop" namespace=plugins.moby path=/run/containerd/io.containerd.runtime.v2.task/plugins.moby/
d442cff8568254659f9aa7d2dd5a30526b69d1ac62593c628b65da8b9e933c6a pid=40222
Jul 23 13:12:52 egbr-abn-web01 dockerd: time="2021-07-23T13:12:52+02:00" level=error msg="standard_init_linux.go:228: exec user process caused: permission denied" plugin=d442cff8568254659f9aa7d2dd5a30526b69d1ac6
2593c628b65da8b9e933c6a

```

Permission denied is interesting! In the back of my head this made it click. As a security measure all our Linux servers have `noexec` set on the mounts for /var and /tmp. And noexec means no executables can be executed, but this is what Docker is trying to do here. Removing the noexec from the /var mount fixed the problem.
WEATHER API IN 6 LINES OF CODE
Tags: flask, python, weather, daily
Published: 2021-07-23 11:18:49

This can be used in any application with minimum lines of code. I guess this is the best Weather API you will find on the internet. Easy to use and Opensource.

### To get API Key
1. Go to [Open Weather](https://openweathermap.org/api)
2. Sign in / Sign up to your account
3. Go to [API Key Page](https://home.openweathermap.org/api_keys)
4. Give your API Key a name, and click generate.

```python
import requests
api_address='http://api.openweathermap.org/data/2.5/weather?appid=YOUR_API_KEY&q='
city = input('City Name :')
url = api_address + city
json_data = requests.get(url).json()
print(json_data)

formatted_data = json_data['weather'][0]['main']
print(formatted_data)
```
Hive SQL: How To Write A LEFT SEMI JOIN
Tags: sql, tutorial, database
Published: 2021-07-23 11:09:07

When we INNER JOIN from one table to another table with a column or set of columns and we select all columns, we'll get the results returned for both tables. This is true for some other join types as well, but the focus of this video will be for INNER JOINs since a LEFT SEMI JOIN is useful in contexts where we want specific results. In some cases with our joins, we only want the result set for one table, not both. Suppose that we wanted the result set for the LEFT table only in the join condition? We could use the standard SQL syntax of selecting all columns in the first table with the * operator filtered on the first table. This would return all columns in the first table and we'd still have the option of selecting columns from the second (and latter) tables. However, if we want to give ourselves the option of only selecting from the first table in our join, we can use a LEFT SEMI JOIN. In the video, [SQL Basics: How To Use A LEFT SEMI JOIN and Why](https://www.youtube.com/watch?v=rcyhh_fjsc4&list=PLHHm85xMQAYNScEs-nu9gzi2uoQ9JCCYA&index=7), we look at using this functionality.

Some questions that are answered in the video:

- For this video, we use a self join table since our join will only involve one table. Since we join the table onto itself, any column that we use in the join condition will match provided that we don't change any part of the condition (which we do in our example and I show why).
- As a quick reminder, not all SQL languages may support the exact syntax shown. Different SQL languages may have different approaches to solving the same problem or developing the same solution.
- As we see with the results of the INNER JOIN, what output issue occurs when we join Table1 and Table2 when it comes to columns? For developers with application experience, what would be the issue here? Keep in mind that with INNER JOINs, this is seldom an issue, but worth considering in this case because it does come up.
- How does a LEFT SEMI JOIN solve the above issue?
- When would we consider using a LEFT SEMI JOIN? What could be the possible issue?

Given that fat finger and code issues occur, a LEFT SEMI JOIN can help us restrict the result set. In a business situation where we want to check a table's values against another table (or set of tables) and whether those values exist in other tables while only returning the results of the first table, a LEFT SEMI JOIN can help us. This functionality absolutely prevents us from possibly returning data in other tables, whereas using an INNER JOIN would allow us to possibly select columns from other tables than the first. For this reason, a LEFT SEMI JOIN can also be a more secure join type, if our business problem is one of filtering values in one tables that exist in other tables.
Need HELP Building Node.Js App
Tags: help, discuss
Published: 2021-07-23 11:05:46

I've build a node.js app now, but i need some help, 'coz i can't handle it alone. 

Requitments:
- Express and MongoDB skill.
- Github account

If you can help me, and fulfill the requirements, i will give this to you:
- A PHP hosting for 6 month (until Desember 2021, domain not include)
- Infinity mode in the app (the app is free, but you can upgrade it by paying)

If you interested, you can contact me at manu@bagikode.com, with "Work Together" as subject. 

Cheers!
HOW PROGRAMMING LANGUAGE CHANGE HOW YOU THINK!
Tags: programming, productivity
Published: 2021-07-23 10:59:14

It’s said that learning a new language can change the way you think, by giving you a new perspective on the world. An even bigger influence is generational. Programming languages, particularly programming languages taught in school, tend to be taught in waves. It usually starts with C programming or C++ programming. Schools go with the program they teach you not much with the concepts. They do teach you basic concepts like looping, conditions, etc. But that's only 20% of the programming.

The 2016 film [Arrival](https://en.wikipedia.org/wiki/Arrival_(film)) is a science fiction drama movie starring Amy Adams and Jeremy Renner. The key focus of Arrival is language and specifically how language impacts the way we form thoughts and even perceive reality. There’s a beautiful sequence roughly 55 minutes into the film where they discuss the alien language and its problems at length and it includes this quote from one of our main scientists:


> “If you immerse yourself into a foreign language then you can actually rewire your brain”

While I enjoyed the film and its concepts, it got me thinking about programming and how different programming languages might alter the way we think about application development.

During my engineering, I started with C programming and moved to python during my 3rd semester. I started working on mini projects using Arduino and raspberry pi. Arduino uses embedded C and raspberry pi uses python.

When I went all into the part of programming and hardware, I wanted to solve all the problems which I encountered using python only. It just changed the way I think. Even now, for a simple problem, I will always think for a logic behind it and start working on it. Start working on projects rather than studying the logic or concepts on a language. Basic concepts are very important, but they can be improvised only when you start working on some projects and implement them.

The concepts you learn in different programming languages will help you think differently in various situations. When you write a piece of code, it should encorage you to finish the code how much ever time it takes.

Programming languages definitely changes how you think and how you make decision in your life. Ultimately, any good computer language should change the way you think. So, started working on any programming language of your choice. Look into problems you encounter or others get, and started working on a solution for it. Each and every problem will have its solution one way or the other.

You can think of the logic while your attending classes or while eating or during a match or while you’re working out. Sometimes you never get the logic when you want them, it will directly come up when you are into some other work.

Alan Perlis once stated:

> “A language that doesn’t affect the way you think about programming, is not worth knowing.”
CodeIgniter RestServer CRUD Dynamic MySQL
Tags: php, mysql, api
Published: 2021-07-23 10:37:40

when I'm making a simple API of create, read, update, delete. it crossed my mind not to create multiple files following the number of tables in the database.

Therefore, I created a controller file that functions to create, read, update, delete for all tables in the database. which means I have made this REST API dynamic following the number of tables.

This simple project was created with CodeIgniter 3, and uses a MySQL database. this project is still very young and still needs further development to make it more perfect and reduce bugs.

You can see this project on my github
{% github liimalim/codeigniter-restserver-crud-dynamic-mysql no-readme %}

Don't forget to leave a star in [my repo](https://github.com/liimalim/codeigniter-restserver-crud-dynamic-mysql) on GitHub.

Happy Coding ❤️
Newbie!
Published: 2021-07-23 10:02:32

Hi everyone!

Im new here.
Starting my javascript journey with practise on and off. Just trying to get to grips with the theory but not tried my hands at any projects yet.

Roughly how long does it take before i can create simple programs on my own?

I did create rock, paper, scissors the other day with the help of youtube. I understand it all, but i cant recreate it from memory 😞😞 i find this really tough!!

Any learner tips greatly welcomed. How many hours did you do a week if you learnt solo??? 

X
My Let's Grow More Internship Journey!
Tags: webdev, internship, task
Published: 2021-07-23 10:01:46

July 2021, maked the beginning of my internship journey with Let's Grow More.I still remember around one and a half month ago,I received an email on my inbox which had my offer letter ,thrilled to test  and showcase my skills,I waited till the tasks arived.

Not much later our orientation program was conducted,we got to know what we had to do and that this was not going to be a simple I give you task,You submit the task and take the certificate internship,there was a lot more to add, the following javascript and many more technical sessions,were the much needed podcasts for many newbies!

My first task comprised of a static html,css and javascript webpage,it was pretty easy to complete this task within just a few hours,but what was important was,it was for the first time,I built an all feature website,starting from carousels,cards,newsletters,contact section,about me divs,and what not....It was as if I was putting all my necessary and learnt skills on a single webpage.This task is something I wouldn't miss mentioning on my resume because it shocases all my fundamental web dev skills.

Coming to task-2,this was somewhat interesting because it had to do with api and react,me being a newbie react developer and aproximately zero knowledge about apis,it was fun exploring the world of apis within a short time frame,to complete this task.

What I peculiarly liked about this entire internship was, the structure,it was picture perfectly designed from beginner,to intermidiate,and then the advanced level.

Well if any of you ever intend to go through my video submission or code snippets refer here:
1.[Task-1 Code snippet](https://github.com/SAHU-01/LGMVIP-WebDev/tree/main/task-1)
2.[Task-2 Code snippet](https://github.com/SAHU-01/LGMVIP-WebDev/tree/main/task-2/task-2)
3.[Task-1 video link](https://www.linkedin.com/posts/ankita-sahu-540920201_task1-letsgrowmore-internship-activity-6820338603281924096-jRRU)
4.[Task-2 video link](https://www.linkedin.com/posts/ankita-sahu-540920201_task2-letsgrowmore-internship-activity-6821503555090845696-XyYM)

And if you wish to onboard or get to know more about this internship [head out to](letsgrowmore.in) or [to this](letsgrowmore.in & letsgrowmore.in/vip).
Trying to get my head into DSA as a 15 year old...
Tags: algorithms, programming
Published: 2021-07-23 09:54:32

I have started to learn **Data Structures & Algorithms** using **Python**.

Is there any advice for me that I should follow so that I do not give up.

I am really passionate about computers and programming, so I'd love to hear all of your suggestions. 

:)
JavaScript Hoisting
Tags: javascript, discuss
Published: 2021-07-23 09:47:51

Hoisting is a default behaviour of JavaScript. It moves the declaration of variables and functions to the top of the current scope (script or function). In that way, a variable can be declared after it has been used and a function can be called before it is even written .
For example , the given code will not show any error ,by default var x will be moved before x = 20.

```x = 20;
console.log(x);
var x;```
 
__Output: 20__

But this will only work if we use the __var__ keyword. 

###Only declarations are hoisted , not initializations:
__Example :__

```var x = 5;//Initialize x
console.log(`The values of x and y are: ${x} and ${y}`);
var y = 9;//Initialize y , won’t be hoisted```
 
__Output : The values of x and y are: 5 and undefined__

###The ‘let’ and ‘const’ keyword :

The variables declared with __let__ and __const__ keyword are hoisted to the top but will not work because they are not initialized.

####The let keyword will cause ReferenceError :
Reference Error occurs when a non-existent variable is referenced. The variable declared with __'let'__ keyword will be considered non-existent until it is declared.

__Example :__

```y = 10;
console.log(y);
let y;```

__Output : ReferenceError: Cannot access 'y' before initialization__

####The const keyword will cause SyntaxError :

Using the __'const'__ keyword is considered as Syntax Error. So the code will not run.

__Example :__

```y = 10;
console.log(y);
const y;```
 
__Output : SyntaxError: Missing initializer in const declaration__
Code Zelda in JavaScript and Kaboom.js
Tags: javascript, kaboom, gamedev
Published: 2021-07-23 09:34:42

In this video I show you how to build Zelda in JavaScript using the Kaboom.js library in my code editor of choice. If you are new to Kaboom I would suggest watching the full course where I explain each method before diving in to the game creating, visit freeCodeCamp.org by clicking here: https://www.youtube.com/watch?v=4OaHB0JbJDI

In the full course I use a preconfigured environment to code Zelda. In this tutorial I create the game from scratch using my code editor of choice. 

Final code here: https://github.com/kubowania/zelda

Imgur: https://imgur.com/user/aniakubow20/posts

0:00 Introduction
1:08 Coding starts
5:43 Layers and sprites
17:55 Placing sprites on the first level
29:32 Passing score and levels
34:41 Adding Link
36:09 Keyboard events
40:41 Moving between levels
45:33 Dealing with enemies
01:04:03 Final result

{% youtube XX93O4ZVUZI %}

___
⭐ New to code and none of this is making sense? Watch my '12hr+ YouTube Coding Bootcamp' in which you will learn HTML, CSS and JavaScript Fundamentals completely from scratch. It's on my channel and its 100% free.

⭐ In most videos I use Tabnine as my A.I autocompletion tool. You can download it for free here: http://bit.ly/tabnine-top-tool

⭐ You can get a blockchain domain with my affiliate link here: http://bit.ly/get-a-crypto-domain

⭐ If you would like to buy me a coffee, well thank you very much that is mega kind! : https://www.buymeacoffee.com/aniakubow

⭐ Sign up for weekly coding tips from my newsletter partnership: https://bit.ly/JS-tips

You can also find me on:
Twitter: https://twitter.com/ania_kubow
Instagram: https://instagram.com/aniakubow

#codingbootcamp​ #coding
Day 4 of Training: Vanilla JavaScript
Tags: javascript
Published: 2021-07-23 09:03:56

Yesterday was 4 day of my training with Ryaz. The task provided was to understand the basics of Vanilla and successfully implement it into the project.

![Capture](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m8jtpedzlx2lotzrsst9.PNG)
 

During this project I got know about 

* Event Listeners
* Reading from Input
* Writing to DOM
* Arrays & objects
* Processing data on user actions

The Personal expense app handles your personal expense. You can add and delete the expenses as you want. The styling for this app was done using bootstrap. I've not added much for now.

Github repository - [Personal Expense](https://github.com/SuryanshChopra/Personal-Expense)