teleren/devto huggingface dataset:
Apama Advent Calendar - 20 Dec 2021 - Using Connectivity Plugins in apama-ctrl
Tags: apama, iot, cumulocity, streaminganalytics
Published: 2021-12-21 11:18:09

---
title: Apama Advent Calendar - 20 Dec 2021 - Using Connectivity Plugins in apama-ctrl
published: true
date: 2021-12-20 19:57:00 UTC
tags: apama, iot, cumulocity, streaminganalytics
canonical_url: https://tech.forums.softwareag.com/t/apama-advent-calendar-20-dec-2021-using-connectivity-plugins-in-apama-ctrl/254018
---

_This is Day #20_ _of a short series of brief tips, tricks, hints, and reminders of information relating to the Apama Streaming Analytics platform, both from Software AG as well as from the community._  

Learn all about the  built-in Apama microservice within Cumulocity IoT (referred from hereon as “apama-ctrl”) in the original post in the [Software AG Tech Community](https://tech.forums.softwareag.com/t/apama-advent-calendar-20-dec-2021-using-connectivity-plugins-in-apama-ctrl/254018).

_Note that some posts may be published a day or two early or late (e.g. Mon-Fri) so you may find you have bonus days with more than one post!_
Why do we need threads along with processes?
Tags: thread, process, concurrency
Published: 2021-12-20 19:45:03

Let’s first define what a process is. A process is an independent isolated program to which an OS gives resources, file handles, or credentials. An OS can have many processes with its own address space, heap, or stack. When processes need to communicate, they need to use coarse-grained communication mechanisms such as a socket, shared memory, files, etc. Nothing is directly shared among processes.

A process can have many threads. A thread is like a lightweight process but with a major difference of **sharing state**. Threads share process-wide resources like files or memory which enables fine-grained communication. All threads within a process have their own stack, program counter, and local variables except heap. This sharing of state among multiple threads leads to concurrency problems which we’ll discuss in our upcoming posts.

Along with the benefits of multiprocessing(resource utilization, convenience, fairness), threads enable us to use the same process-wide resources without using any communication mechanisms.

##### REFERENCE
Topic#1.1: https://www.amazon.com/Java-Concurrency-Practice-Brian-Goetz/dp/0321349601
Web-Dev Journey: Blog 1
Tags: blogging
Published: 2021-12-20 19:43:46

**Introduction**
Hey everyone, I decided to start my web development journey to be able to look back at how far I've come as I develop new skills.

Some background about me, I'm the oldest of three children in my family, first generation here in the United States. Life started out rougher but my family knew that education and persistence is key to making something of yourself. Throughout life they have fought for me and now that I'm older I'm always wanting to find ways to give back. Not just to them but to my community that helped me become the man I am today.

And now I've been invested in web development, something that allows me to bring tech to my non-tech community and to have the freedom to also do what I love, problem solving!

With these blogs that I create I'll be documenting my journey through web development - the challenges I face, the things I discover, the creations I make, everything. As well as random posts on topics I'm learning/learned and to improve my writing and story telling skills.

So sit back, grab your laptop and your best coffee, and welcome to my web development life!

I hope to be able to relate to many others in this journey.
Living in the Shell #20; tail (Display/Follow File Content)
Tags: productivity, linux, bash, devops
Published: 2021-12-20 19:41:07

## `tail` ⛵

Display or follow file content.

ℹ️ Here, *following* means streaming a file while it's being updated (appended).

ℹ️ You can use `-c` in place of `-n` in the following examples, to switch to binary offset selection.

## Print bottom N lines of a file `-n`

```sh
tail -n 5 ~/.bashrc
```

> Prints last 5 lines of `~/.bashrc`

## Print from N-th line afterwards `-n +N`

```sh
tail -n +3 ~/.bashrc
```

> Prints `~/.bashrc` from the 3rd line until the end.

## Following `syslog` events `-f`

```sh
tail -f /var/log/syslog
```

> Follows system logs (on Debian/Ubuntu).
DOM(Document Object Model)
Published: 2021-12-20 19:38:38


**What is the DOM?**
The Document Object Model (DOM) is an online document programming interface. It depicts a page so that programs may alter the structure, style, and content of the document. The Document Object Model (DOM) displays the document as nodes and objects, allowing computer languages to interact with it.

A web page is a document that may be viewed in a browser window or downloaded as HTML source code. It's the same document in both scenarios, but the Document Object Model (DOM) representation enables for manipulation. It may be updated using a programming language like JavaScript since it is an object-oriented representation of the web page.

The querySelectorAll function in this code snippet, for example, must return a list of all the <p> elements in the document, according to the DOM:


const paragraphs = document.querySelectorAll("p");

// paragraphs[0] is the first <p> element

// paragraphs[1] is the second <p> element, etc.

alert(paragraphs[0].nodeName);


Objects include all of the attributes, methods, and events that may be used to manipulate and create web pages. For example, the document object represents the page itself, as well as any table objects that implement the HTMLTableElement DOM interface for accessing HTML tables.

The DOM is made up of a number of APIs that operate together. The entities that describe any document and the objects inside it are defined by the core DOM. Other APIs that bring additional features and capabilities to the DOM build on this as needed. The HTML DOM API, for example, provides functionality for displaying HTML documents to the core DOM, whereas the SVG API adds support for displaying SVG documents.



**DOM and JavaScript**
JavaScript was used in the previous brief example, as it is in practically all cases. That is, it is written in JavaScript but accesses the document and its elements via the DOM. Although the DOM is not a programming language, it provides a model or idea of web pages, HTML documents, SVG documents, and their component pieces to the JavaScript language. The document object model for the document includes the document as a whole, the head, tables inside the document, table headers, text within table cells, and any other components in the document. The DOM and a programming language like JavaScript may be used to access and manipulate them all.

Virtual dom vs. real dom
A virtual DOM object has the same features as a genuine DOM object, but it doesn't have the ability to modify what's on the screen like the actual thing. It takes a long time to manipulate the DOM. Because nothing is drawn onscreen, manipulating the virtual DOM is significantly faster.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kp4t7jpvg7srdh589v8v.png)
Dec 20: Dev Holidays Guide ⛄️
Tags: stateofdevs, bahhumbugtip, mentalhealth, tips
Published: 2021-12-20 18:54:32

Bah Humbug Tips are my own way of coping & recovering from burnout & holiday stress.

###🎄  Today's Bah Humbug Tip of the Day. 
{% twitter 1472962519220191233 %}

######🎁 Today's Options 
{% twitter 1472962519962910722 %}

######🎁 What are my other options? 
{% twitter 1472962521489293313 %}

######🎁 Anymore options? 
{% twitter 1472962522256793605 %}

######🎁 Other options to try. 
{% twitter 1472962524744011779 %}

######🎁 Also, don't forget these options.
{% twitter 1472962525561954309 %}

You can find more tips here & on [Twitter](https://twitter.com/stateofdevs). Let me know in the comments if any of these tips helps.

> If you're struggling w/ burnout & open to sharing your story, please [take the State Of Devs survey](https://stateofdevs.com/helps/dev). 🗳 Thanks!
First ever Hackathon
Tags: javascript, webdev, beginners, github
Published: 2021-12-20 18:52:06


Hi everyone today I am going to share my first ever `Hackathon`
 experience. Through this article I will share about hackathons, how to grab one, & what I have learned in my first ever `hackathon` journey.

##What is a `Hackathon`?
Honestly, I was also unaware of this term `Hackathon`, but few months back while I was attending a tech webinar, from there I got to know about it. A hackathon is basically what we call a competition, arranged by a community, and if you won, you get some swags and prices.

##My first `hackathon`
As I am associated with many communities in discord, last week, I get to know about a beginner friendly one by the dynamics Org, and I enrolled in it through `devpost` (One of the best places to find ongoing Hackathons).

##My hackathon project
As it was my first ever hackathon so I was brain storming a lot, for project ideas and atlast, I have built a basic weather web app who displays weather of a particular place. I have used the HTML5 for my web app layout, CSS3 for the designs, JavaScript for the backend, Openweather.org's API for fetching the weather of a particular city and Unsplash API for background image of my web app (as it gives my web app a new image in the background, every time I fetch the weather of a particular city).

you can checkout the code [`here`](https://github.com/kum9748ar/the-weather-app)

##Conclusion
In this whole journey I have learned a lot and made new friends all over the world. That's all about it. Feel free to comment out if you want to ask me something & if you like this blog don't hesitate to hit a ❤️.

##Connect
 <a href="https://linktr.ee/kumarkalyan">
  <img align="left" width="100px" src="https://cdn.jsdelivr.net/npm/simple-icons@v3/icons/twitter.svg" />
</a>
🖥️ P2P Remote Desktop - Open Source - an alternative to TeamViewer - AnyDesk
Tags: showdev, csharp, opensource, programming
Published: 2021-12-20 18:39:20

**GitHub**: https://github.com/miroslavpejic85/p2p

![P2P Remote Desktop](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/w12wf18x42viwa0p4uep.png)

Nothing is really ours until we share it.
(C.S. Lewis)
How To Fix "bash: ifconfig: command not found" In Ubuntu Docker Containers
Tags: ubuntu, docker, ifconfig, fix
Published: 2021-12-20 18:25:48

It is obvious, usually, we do not check or try to configure network interfaces inside of a Docker container. But there can be rare situations where we need to see the network interfaces and their IP addresses (or even [ping other containers](https://devtonight.com/articles/how-to-fix-bash-ping-command-not-found-in-ubuntu-docker-containers)) while we are inside of a container. But the common problem with the official Ubuntu Docker image is, they come with bare minimum packages installed. So, as a result of that, tools like `ifconfig` and `ping` will not be there. But fortunately, we can install almost all the tools we need for our Docker containers, including the `ifconfig` command.

Before doing anything, first, we need to update our local software repository.

```
apt-get update
```

Then we need to install the `ifconfig` command. You might already try to install it using `apt-get install ifconfig`, but it will not work as expected. Because the `ifconfig` command comes with a different package called `net-tools`. So, let's install it.

```
apt install net-tools
```

The previous command will install the `ifconfig` command and you will be able to use it as you usually used to do.

```
ifconfig
```

Use the `-h` flag to see more available options that you can use with the `ifconfig` command.

```
ifconfig -h
```

Feel free to visit [devtonight.com](https://devtonight.com?utm_source=dev&utm_medium=questions&utm_campaign=how-to-fix-bash-ifconfig-command-not-found-in-ubuntu-docker-containers) for more related content.
Advent of Code 2021 - Day 20
Published: 2021-12-20 18:24:31

---
title: Advent of Code 2021 - Day 20
published: true
description: In this video series, I try to challenge myself with the Advent of Code trials. Each solution will be published to Github, and I hope you will learn something from my coding mistakes and perhaps send some code my way on how you have done these challenges. I know by reading code, so this is such an exciting thing for me.
tags:
cover_image: https://i.ytimg.com/vi/pT-m7jz_zm4/maxresdefault.jpg
---

{% youtube pT-m7jz_zm4 %}

In this video series, I try to challenge myself with the Advent of Code trials. Each solution will be published to Github, and I hope you will learn something from my coding mistakes and perhaps send some code my way on how you have done these challenges. I know by reading code, so this is such an exciting thing for me.
Some Advanced Topic of CSS- CSS Selectors
Published: 2021-12-20 18:23:02

There are some advanced topics in CSS. By knowing them we can write our CSS more efficiently. It will directly boost you up with your skills and level. Today we are going to explain about 3 topics.

- CSS Pseudo-Classes**

- CSS Pseudo-Elements**

**CSS Pseudo-Classes:** The pseudo-class selector is used to select the element that is in a specific state. By using this we can change the state by changing the styles. 
The most commonly used Pseudo Classes are **active**, **hover**, etc.

Syntax: 

```
selector: pseudo-class {
		property: value;
	}
```
	

In the Pseudo class, a colon (**:**) is used after the selector.


Example:
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/myws2qtqm181cz76a6kz.jpg)



**CSS Pseudo-Element:** The pseudo-elements selector has particularly used in styling specific parts of an element. By using this we can change the state of a specific part by changing the styles. 
The most commonly used Pseudo Elements are **before**, **after**, etc.

Syntax: 

```
selector:: before {
		property: value;
	}

```
In the Pseudo element, two colons (::) are used after the selector.


Example:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2w6n6v9hgb9nt1330qao.JPG)
Elixir Mix podcast
Tags: elixir, deployment, podcast
Published: 2021-12-20 18:16:55

---
title: Elixir Mix podcast
published: true
description: 
tags: elixir, deployment, podcast
//cover_image: https://direct_url_to_image.jpg
canonical_url: https://blog.miguelcoba.com/elixir-mix-podcast
---

A couple of weeks ago I had the honor to be a guest in the "Elixir Mix" podcast. Sascha Wolf and Allen Wyma did an amazing job in driving the conversation and not letting me ramble endlessly too much.

We talked about deployment in the Elixir world.

I was super nervous and really suffering an episode of imposter syndrome, but I think in the end it was not so bad.

You can listen to the discussion here

https://elixirmix.com/deploying-elixir-with-miguel-cob-emx-155

## About

I'm [Miguel Cobá](https://miguelcoba.com). I write about Elixir, Elm, Software Development, and eBook writing.

- Follow me on [Twitter](https://twitter.com/MiguelCoba_)
- Subscribe to my [newsletter](https://newsletter.miguelcoba.com)
- Read all my articles on my [blog](https://blog.miguelcoba.com)
- Get my books:
    - [100 Elixir Tips](https://store.miguelcoba.com/l/100elixirtips) [FREE]
    - [Deploying Elixir](https://store.miguelcoba.com/l/deployingelixir) [FREE]
    - [Deploying Elixir: Advanced Topics](https://store.miguelcoba.com/l/advancedtopics)
    - [eBook Writing Workflow for Developers](https://store.miguelcoba.com/l/ebookwriting)
Standalone Components, directives and pipes in Angular
Tags: angular, typescript, webdev
Published: 2021-12-20 18:16:42

As of you who works with Angular knows that the Angular framework is revolving around the concept of `ngModule`.

`NgModule` is currently one of the core concepts in Angular. Developers new to Angular need to learn about this concept before creating even a simple application.

Given this central role of `NgModule` in Angular it is hard to reason about components, directives and pipes in isolation.

`NgModules` are the smallest reusable building blocks in Angular, not components.

## The current scenario

In today's Angular, whenever we create a component, we need to declare it in a ngModule. Irrespective of its use in other modules.

```
@Component({...})
export class UserViewComponent {
  constructor(readonly service: UserViewService) {}
}

@NgModule({
 declarations: [UserViewComponent],
  imports: [/* dependencies here */],
  providers: [{provide: UserViewService, useClass: BackendUserViewService}],
})
export class UserViewModule {}
```

## What are the things a standalone component will offer?
A standalone component will basically offer us to create components without creating a ngModule. 

It will look something like this.
```
import {Component} from '@angular/core';

@Component({
  standalone: true,  
  template: `I'm a standalone component!`
})
export class HelloStandaloneComponent {}
```

There are a bunch of exciting ideas opens up with this concept coming into the picture 

## When will this feature get released?
Recently the RFC for this feature has been completed
[Link](https://github.com/angular/angular/discussions/43784)

So, We can expect it to get released soon

You can also checkout this prototype [link](https://stackblitz.com/edit/ng-standalone) to get an early look of how it's going to be.

This feature is surely going to be a game changer

## Thanks for Reading!
Thanks for reading, I hope you enjoyed it!
🎅🏽 CodeCast's Coding Advent: Day Twenty 🎅🏽
Tags: webdev, design, css, html
Published: 2021-12-20 18:08:49


![Day 20](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1hq8idx79kjbkwiyn2tf.png)

## DAY 20

Looking to code some amazing festive SVGs? Check out this tutorial by @HunorBorbely on @freeCodeCamp!

https://www.freecodecamp.org/news/svg-tutorial-learn-to-code-images/

You can also be sure to follow us on [Instagram](https://www.instagram.com/codecastapp/), [Twitter](https://twitter.com/CodeCastApp), [Facebook](https://www.facebook.com/codecastapp), and [LinkedIn](https://www.linkedin.com/company/code-cast/) to see our daily advent releases there!
️ CodeCast's Coding Advent: Day Nineteen ️
Tags: webdev, css, html, codenewbie
Published: 2021-12-20 18:08:39


![Day 19](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/e9uwfi0pf8yb5t6ryhyo.png)

### DAY 19

For us here in the North, December means snow! So let's add snow into our code. Check out some of these amazing CSS Snow Effects!

https://freefrontend.com/css-snow-effects/

You can also be sure to follow us on [Instagram](https://www.instagram.com/codecastapp/), [Twitter](https://twitter.com/CodeCastApp), [Facebook](https://www.facebook.com/codecastapp), and [LinkedIn](https://www.linkedin.com/company/code-cast/) to see our daily advent releases there!
⭐️ CodeCast's Coding Advent: Day Eighteen ⭐️
Tags: ruby, beginners, programming, tutorial
Published: 2021-12-20 18:08:31


![Day 18](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3owpqoayjwvtj7o5kk78.png)

### DAY 18

Ruby on Rails may seem like the past to some, but it's not going anywhere anytime soon. If you're trying to master your Ruby skills, check out this CLI game!

https://github.com/ryanb/ruby-warrior

You can also be sure to follow us on [Instagram](https://www.instagram.com/codecastapp/), [Twitter](https://twitter.com/CodeCastApp), [Facebook](https://www.facebook.com/codecastapp), and [LinkedIn](https://www.linkedin.com/company/code-cast/) to see our daily advent releases there!
Things one needs to know as a javascript developer 
Published: 2021-12-20 14:26:24


Scopes 
Scopes are basically the address of a variable where it is allocated. javascript always stays on root scope. In other words, Scopes are the boundaries for objects, functions and variables.
There are two types of scops available.
Local Scope: Local scope indicates the variables that are declared inside of a function and can not be accessed from outside.
Global scope: Global scopes are not like local scopes. Global scopes are declared out of function to be accessible from anywhere in the document.
 2.   Immediately Invoked Function Expression(IIFE)
IIFE goes just as its name indicates it is a function that immediately invokes execution As soon as it is declared 
The syntax for IIFE is 
(function () {
  statements
})();
Hoisting 
Hoisting is basically a way to call a function before it is declared. In javascript through the context of hoisting all the declaration goes to the top of the program. Hoisting is a complicated topic in javascript. Most developer gets unexpected results. As for calling a function before initialization should be an error. But in javascript, we can do that for the concept of hoisting.
Closures
The closure is a function that is called inside of another function. The closure is used to get the local variable of another function.
Callbacks 
Call back functions are the function that takes a function as an argument and returns another function. In the callback method, a function waits for another function to be called.
function greeting(name) {
  alert('Hello ' + name);
}

function processUserInput(callback) {
  var name = prompt('Please enter your name.');
  callback(name);
}

processUserInput(greeting);
Async Await 
Async await is from es-7.
Async await is a concept of waiting for something to be complete. Async await is kind of similar to promises but it also creates asynchronous operations synchronously
In javascript, async-await is defined by 3 version
Call back. (ES5)
Promises. (ES6)
Async await (ES7)
The syntax for async-await is ;
  Function async (){

Const post= await fetch(“URL”)
Await console.log (post)
}.
How to make Developer Portfolio
Tags: webdev, portfolio, programming, webcomponents
Published: 2021-12-20 17:38:01


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k6u7hkolarfbi3tj6uy5.png)

Portfolio is showcase of developers work and experiences with projects and every developer and freelancer need portfolio for getting job, internships and clients. Portfolio is not only for developers its but also every person who actively part of in digital market. The important parts of portfolio for everyone to add in their personal portfolios wit description....

### 1. Home
Its basic introduction section of developer portfolio part keep it attractive for users with animations and interactive effects using CSS animation and don't forget first impression is last impression. 
### 2. About
In This section developer Introduction must be in elaborate mode just add more and important details about projects and achievements.
### 3. Projects
This is an important part of portfolio for developer because the development shows the quality of work you produce with development and skills of the developers.

### 4. Skills
This section is about the skills or as developer the programing language is know to code and be honest with this not just add more programing languages to it only add the programing languages which is your know and you can solve problem with it.
### 5. Contacts
This section is about social presence and social profiles you have not add more social profiles just add important and updates profiles you have. for example LinkedIn and GitHub or twitter.

Here I created portfolio visit and check it out
[Github](https://github.com/ganeshpatil386386)

Free tool to develop portfolio
[Google Portfolio](https://sites.google.com/view/togetherlearning/learn/digitalliteracy/portfolios)
Querying SNMP in PowerShell
Published: 2021-12-20 17:31:55


Within Windows use the following one liner to gather The "ValidCommunities" key which  holds the community strings configured. 

```
Get-ChildItem -Path 'HKLM:\SYSTEM\CurrentControlSet\Services\SNMP\Parameters' -Recurse
```

The PermittedManagers key holds the SNMP server info and the item property name is incrementing numbers starting at 0 and the item property value is the name or IP address of the SNMP server.

Once you have those details add to the below code.

```
$SNMP = New-Object -ComObject olePrn.OleSNMP
$snmp.open('localhost','public',2,1000)
$snmp.get('.1.3.6.1.2.1.1.1.0')
```