teleren/devto huggingface dataset:
DinoLab: adapting an interactive learning platform for a global audience
Tags: microservices, ruby, react, webdev
Published: 2021-12-15 13:34:11

Uchi.ru has launched gamified online courses for children in Brazil, the USA, Canada, China, South Africa, and other countries around the world. In early November 2020, a service for teaching mathematics and programming, DinoLab, was launched in India.

The client approached Evrone for development, as we already had experience with gamified online platform development. At the beginning of October 2020, we completed the new online platform for interactive education, DinoLab, and at the beginning of 2021, [switched to a systematic product development role.](https://evrone.com/dinolab)
Moxi Robot - The Future of Healthcare Industry
Tags: ai, python, webdev, news
Published: 2021-12-16 06:15:03

Secondary robots are the helpers. Hospitals run 24/7. There is no doubt that the nurses, ward boys, and other staff have too much to do. That is why secondary robots were invented. The robots such as the Moxi robot by Diligent Robotics help the hospital staff restock, bring the items, clean, and do other works.

{% youtube vniKNpy5SFs %}

This enables the human staff to spend more time with the patient to offer a friendly environment while leaving the never-ending work to the robots.

Another excellent example of those secondary robots is the UV light disinfection robot. It is stated that the robot doesn’t leave the room until it is totally germs-free. You can book a demo of Moxi Robot directly on their website with [Catch coupon](https://www.revounts.com.au/catch-coupons-code).

Source: [Hackernoon](https://hackernoon.com/ai-robotics-and-the-future-of-healthcare)
The Next Big Thing in Technology? The Metaverse
Tags: webdev, react, programming, devops
Published: 2021-12-16 10:48:31

Metaverse is an expression invented by Neal Stephenson in a novel called ‘Snowcrash in the year 1992. It was mentioned as a reference for a simulated 3D environment made up of avatars that were based on humans. In the past few months, the creator of Facebook, Mark Zuckerberg has discussed the concept of a metaverse as well as the ambitious plans being debated for bringing a virtual universe to life that anyone can participate in. The metaverse is believed to be the next version of the Internet which is built on the technology that is already in use to integrate all 3D virtual worlds to create a single virtual universe.
My 1st WEB PAGE
Published: 2021-12-16 12:07:19

https://codepen.io/Bhuvanesh_Dev/pen/MWEpLYO?editors=1000
Created a basic "My interests" web page using HTML and CSS by adding images and color modification using CSS with the help of CodePen platform.
Suggestions are welcome!
#beginner #open_source
#html #css 
#Learn_in_Public
8 reasons why you should consider learning python today!
Tags: python, beginners, programming
Published: 2021-12-16 12:24:46

Python is one of the most popular languages today. Chances are that you might've already heard about it if you're a developer or starting as one.

That said, it's one of the languages you should consider learning. Here are some reasons why -

## [1] High Demand & Popularity

No doubt python is one of the most popular languages now. It has taken the number one slot on TIOBE's Index Rankings. So there's no doubt that developers love Python!

## [2] English like syntax

And this is why developers love it so much!

Python has probably the easiest to understand syntax among the popular programming languages. This makes python one of the top choices for beginner developers.

Here's an example of a hello world program in Python and C++ for comparison.


![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1639653508718/Zo5escri3.png)
![image.png](https://cdn.hashnode.com/res/hashnode/image/upload/v1639484847526/91jmkrGhE.png)

## [3] Machine Learning & AI

...are some of the top-grossing buzzwords currently and, will be so for a long time to come. Python is one of the popular choices for Machine Learning. Python also provides multiple modules for Machine Learning like Scikit-learn, Tensorflow, PyTorch, etc.

## [4] Web Development

Although you'll need to know HTML, CSS, and a dash of JavaScript to make a delicious website, python can help you with its numerous web-development frameworks and libraries. A few popular examples are Django, Flask, Bottle, web2py, etc.

Fun fact: Python powers popular websites like Spotify, Instagram, Dropbox, Reddit, etc.

So I'd recommend you to at least give Python a try if you're into web development like me.

## [5] Game Development

Python offers some of the easiest to use game development libraries, promoting rapid prototyping. Pygame, Arcade, Ursina are some of the popular game development libraries for python. 

## [6] Automation & Scripting

(This bit is also from personal experience)

I've used python to automate everything from taking screenshots of my online classes to taking attendance of students. And I have to say...it's really nice to be able to shave some time off of tedious tasks.

## [7] Huge Community

This means any bug you encounter has probably been encountered before and there probably exists a StackOverflow post about it as well.

(It's kind of nice knowing that you won't keep banging your head over stupid bugs :p)

## [8] Tons of libraries and frameworks

Python has numerous libraries for every purpose you might need it for. There are libraries for everything from game development to data science and, frameworks for everything from making websites to GUI applications, you name it! 

---

## Conclusion

To conclude simply, Python is a great choice for developers especially beginners. I urge you to give Python a chance, I'm sure you'll be enthralled by its magic ✨
UX Case Study: Killer Kao
Tags: ux, beginners
Published: 2021-12-16 19:29:32

[Live Demo
](https://catcarbonell.github.io/killerkao/)
[GitHub Repo](https://github.com/catcarbonell/killerkao)

---

## Initial Design
I wanted to create a different take on the classic "Rock-Paper-Scissors" JavaScript project by using [Kaomojis](http://kaomoji.ru/en/) (the predecessor to our current, beloved emojis!)

Here are some wireframes I initially created via Sketch:

![I designed different screens in accordance to the possibilities a user would take, for example, the user would choose the "strike" button and the little fighter would change from a static pose to a punch pose](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/o7ko7z1v0j91g3q4d787.png)

(I was very much inspired by fighting games: Street Fighter, Tekken, King of Fighters, etc.)

## Feedback
After I created the first iteration, I had friends and family test it out-- especially on mobile-- and was open to any and all feedback!

This is from my older brother:
![Feedback from my older brother that pointed out the block button wasn't exactly working](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3thxejmifrozi4b7wx2h.png)

One of my close friends' friend had feedback for me!
![My friend Patrick showed my game app to his friend and she had feedback for me. She suggested that I animate the kaomoji with CSS!](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4eglr3nyynh6inphegwg.png)

Even Shen ([Shen Comix](https://www.webtoons.com/en/challenge/shen-comix/list?title_no=129357&page=1)) took the time to try out my app!
![A friend pointing out that there is no punishment or feedback from when you spam the strike button.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b6a6pfwxgu0sfa218ljr.png)

I was even sent screenshots of when the Kaomoji would break:

![The kaomoji were off-screen thus indicating that the battlefield wasn't adjusting to the viewport properly.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/esdevqonn8lmg286l84c.png)

So I adjusted the Kaomoji structure accordingly, as well as came up with the logic to prevent block or strike "spamming" (hitting repeatedly with no consequences).

## Postmortem lessons
This was definitely a fun project, not just created by me, but by those in my community. I think I should have opened up feedback to a wider set of people, especially those who are fighting game enthusiasts. 
If I had the time, I would have implemented the choice to play as either a human or bear and made the kaomoji SVGs instead of the traditional text-made artistry to make it more accessible.

If I had the tech savvy, I would have made it a two-player game instead of one-player against a random number generator.

---
Here are the links again if you want to try out this project!
[Live Demo
](https://catcarbonell.github.io/killerkao/)
[GitHub Repo](https://github.com/catcarbonell/killerkao)

---

## Thanks for reading!
If you want to keep in touch, reach out to me via [Twitter](https://twitter.com/catcarbn)!
Here are the top 25 DevOps Interview questions which is asked in DevOps interviews..
Tags: devops, docker, kubernetes, tutorial
Published: 2021-12-16 14:24:59

Operating system
1) What is the distinction among Linux and Unix ?

2) What’s a KVM ?

3) How might you ensure a help begins an OS of your decision ?

4) Here’s a terminal. What kind of Linux is running ?

5) Write an order to erase all unfilled record under a registry.

6) What is Active Directory ? How would you make a worker join an area ?

Systems administration
1. What is the contrast among TCP and UDP ?

2. What is ICMP ? For what reason should you block it ?

3. What is IPv6 ? For what reason should we give it a second thought ?

4. In a professional workplace clients from London can ping a specific worker however clients from New York can’t, what steps will you take to investigate the issue ?

5. What steps are expected to change the host name on a Linux machine ?

6. Where is the host name document on a Windows worker ?

7. How is a host name settled on a Linux machine ?

8. What’s a SSL burrow ?

9. What’s a SDN ?

Scripting (inquiries here change on rating and rely practically upon advising the individual to compose a short content)
1. What is your most loved scripting language ? Why ?

2. What are configuration designs ?

3. Portray a few contents you have composed/computerization you have done/programs you have composed. Legitimize your decision of scripting language and configuration designs.

4. Would you be able to port a similar content to another dialect ? On another OS ?

5. What amount of time would it require for you to get familiar with another dialect ?

CI/CD Pipeline
1. How might you follow a twofold arrangement back to the source code ? How might you construction such a form ?

2. How would you oversee conditions ?

3. CI must be utilized to figure out arrange time blunders rapidly. Valid/False. Clarify.

4. How might you structure CD for an application that relies upon 3 other applications ?

5. How would you plan limit with regards to your CI/CD workers ?

6. All your fabricated doubles ought to be registered to your git/svn for snappy sending and posterity. Valid/False. Clarify.

Thanks for going through the top 25 DevOps interview questions in 2021, we hope it served your purpose.

That is everything we can consider at this moment. we will continue to refresh these as I consider more inquiries and subjects.

To learn DevOps, Click https://devopsacademy.co/devops-training/
Is automated testing better than manual?
Tags: testing, qa, okqa
Published: 2021-12-16 17:00:19


There is indeed a tendency to automate almost any process and QA in particular. Of course, automation makes manual testing more efficient, but it goes only for simple, repetitive tests.

For complex test cases, short-term projects, human feedback on the application usability, manual testing is the best and the most profitable option.

This type of testing allows to bring in a human perspective, costs less in set up terms, and is more flexible and adaptable to project changes.

Facing manual vs. automated testing dilemma? Let's get in touch to discuss and set up the test process that’s just right for you!
Render html tags based on condition in asp.net core 
Tags: csharp, netcore, aspnetcore
Published: 2021-12-17 09:57:18

If you are using  Razor in your applications based on `ASP.NET CORE`, sometimes you might want to check something and according to that generate `HTML` tags and show them to clients. For example one of the common things is when we check to know if a user is logged-in or not, if User is not logged-In we would show the Login button otherwise show the `Sign-out` button.
To accomplish this, we end up with a code like this: 

```
if (User.Identity.IsAuthenticated)
{
    <a href="/Account/Signout">SignOut</a>
}
else {
<a href="/Account/SignIn">SignIn</a>
}
```
 
This is fine and does what we want, but there is one more way that I think is much more cleaner and that is using `Tag Helper`.
After implementing a custom Tag Helper, we can refactor our code and render HTML tags like below:


```
<a href="/Account/Signout" condition=="@User.Identity.IsAuthenticated">SignOut</a>
```

As you can see above, there is no `if` statement and just used `condition` in `HTML` tag and passed it a `boolean` value.

Implementation of `Condition` tag helper is:

```
 
 using Microsoft.AspNetCore.Razor.TagHelpers;

namespace CustomTagHelpers.TagHelpers
{
    [HtmlTargetElement(Attributes = nameof(Condition))]
     public class ConditionTagHelper : TagHelper
    {
        public bool Condition { get; set; }

        public override void Process(TagHelperContext context, TagHelperOutput output)
        {
            if (!Condition)
            {
                output.SuppressOutput();
            }
        }
    }
}
```
To make this `tag helpe` available throughout all `views`, add its `namespace` to `_ViewImports.cshtml`



>  Condition tag helper renders output when passed a true value.
Python programs to calculate perimetrs and areas of triangle, rectangle and circle.
Published: 2021-12-17 12:47:40

### Perimeters and areas of Triangle
the mathematical equation to calculate the perimeter and area of a Triangle with height(h), length(l) and width(w) is :
`p= h+l+w
a=1/2(l*w)
`
so with python it can be executed as

```
length=float(input("Enter length : "))
width =float(input("Enter width : "))
height=float(input("Enter height: "))

print("the perimetre of the triangle is : " +str(length+width+height))
print("the area of the triangle is : " +str(1/2*(length*width)))
```
and the output will be
``
Enter length : 2
Enter width : 3
Enter height: 4
the perimeter of the triangle is : 9.0
the area of the triangle is : 3.0
``

### Perimeters and areas of rectangle
the mathematical equation to calculate the perimeter and area of a Rectangle with length(l) and width(w) is :
p= 2l + 2w
a= l*w
**and the code will be**
```
length=float(input("Enter length : "))
width =float(input("Enter width : "))

print("the perimeter of the rectangle is : "+str(2*length+2*width))
print("the area of the rectangle is : "+str(length*width))
```
and the output will be
``
Enter length : 2
Enter width : 3
the perimeter of the rectangle is : 10.0
the area of the rectangle is: 6.0
``

### Perimeters and areas of Circle
the mathematical equation to calculate the perimeter and area of a Circle with radius(r) is :
`p= 2*PI*r
a=PI*r**2
`
so with python it can be executed as

```
from math import pi
r=float(input("Enter radius : "))
print("the Perimetre of the circle with radius "+str(r)+" is : " +str(2*pi*r))
print("the area of the circle with radius "+str(r)+" is : " +str(pi*r**2))
```
and the output will be

`Enter radius : 3
the Perimeter of the circle with radius 3.0 is : 18.84955592153876
the area of the circle with radius 3.0 is : 28.274333882308138`
Dec 24: Dev Holidays Guide ⛄️
Tags: stateofdevs, bahhumbugtip, mentalhealth, tips
Published: 2021-12-24 18:33:02

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

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

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

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!
Apama Advent Calendar - 17 Dec 2021 - Enhancing Cloud Fieldbus using Apama
Tags: apama, iot, cumulocity, streaminganalytics
Published: 2021-12-20 08:34:19

---
title: Apama Advent Calendar - 17 Dec 2021 - Enhancing Cloud Fieldbus using Apama
published: true
date: 2021-12-17 23:54:35 UTC
tags: apama, iot, cumulocity, streaminganalytics
canonical_url: https://tech.forums.softwareag.com/t/apama-advent-calendar-17-dec-2021-enhancing-cloud-fieldbus-using-apama/253984
---

_This is Day #17_ _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._  

Cumulocity IoT Cloud Fieldbus is the standard approach to connect Fieldbus devices (e.g. Modbus) to Cumulocity IoT in a consistent manner. Cloud Fieldbus only supports integer values to be read from registers. Some devices are reporting floating point numbers though (e.g. temperatures like 25.1 °C). There is no standardized way of doing this but typically IEEE-754 (Wikipedia) encoded floating point numbers are used. In today article, we will show you how to tackle the IEEE-754 decoding using Apama within Cumulocity IoT. So go check it out in the [Software AG Tech Community](https://tech.forums.softwareag.com/t/apama-advent-calendar-17-dec-2021-enhancing-cloud-fieldbus-using-apama/253984).

_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!_
Path aliases in Nextjs
Tags: react, nextjs, javascript
Published: 2021-12-18 05:31:45

Tired of writing such imports?

```js
import test from '../../../components/Test.tsx';
```

If you're using a typescript, you can create a path alias instead:

```json
{
  "compilerOptions": {
    "baseUrl": "src",
    "paths": {
      "@/*": ["./*"] 
    }
  }
}
```

Then you can import more conveniently:

```js
import test from '@/components/Test.tsx';
```

**Don't forget to restart your running task to affect changes.**
Dev.to looses 3000 views per month (at least)
Tags: meta
Published: 2021-12-18 09:21:33

My last post with a video got 120 readers. Six reactions and I got 108 followers.

My plan was to publish one video per day. What gives at least 3000 views per month, 180 reactions and over 3000 followers.

However, it won't happen. Why?

I was told by the moderator of dev.to that video posts are not welcome on dev.to. And I should add texts and snippets (that are in the video...) also as text.

I can not do it because it is additional work I rather spend on making videos.

Moreover, video section of dev.to is not working and it is impossible to upload videos there. It is still in beta BTW.

The result is that I can not publish my videos on dev.to.

The question is what is the plan of dev.to? People clearly like videos here, what can be seen by statistics. But because of a ban on video posts and not working video section dev.to users loose access to something they like.

Since that said, as a dev mentor with 16 years of experience in education I just can say sorry to everyone who is affected by this. I wished I'd be able to share knowledge with you here. Short videos are great in explaining things. You like it. But nor me, not you decide what we can do on dev.to....
Create simple calculator in javascript
Tags: javascript, beginners, programming, tutorial
Published: 2021-12-18 16:58:02

A simple calculator in javascript and html. This is the basic simple calculator in javascript which is made using a simple class in javascript. It also demonstrates how you can create a class for simple tasks and instantiate it.

**HTML**

```
<div id="calc">
    <input type="number" id="num1" placeholder="Enter a number"/>
    <select id="operator" >
        <option value="+">+</option>
        <option value="-">-</option>
        <option value="*">*</option>
        <option value="/">/</option>
    </select>
    <input type="number" id="num2" placeholder="Enter a number" />
    <button id="calc">=</button>
    <input type="number" id="result" placeholder="Result" />
</div>
```


**Javascript**
```
class Calculator{
  // Properties

  num1
  num2
  result

  num1Input
  num2Input
  resultInput
  operatorSelect

  // member functions

	constructor(){
		// initialization of the calculator
	}

	setEvents(){
		// set events on button
	}

	add(){
		// add numbers
	}
	subtract(){
		// subtract numbers
	}
	multiple(){
		// multiple numbers
	}
	divide(){
		// divide numbers
	}
	
	output(){
		// output the results
	}
}
```

For detailed tutorial on (this code) simple calculator in javascript, please follow this link: 
https://10code.dev/javascript/a-simple-calculator-in-vanilla-javascript/
Generators and yield in python 🤓
Published: 2021-12-18 20:48:38

## Generators

Generators are functions that can be stopped while running and then resumed. These functions return an object that can be scrolled. Unlike lists, generators are lazy, which causes the calculation and evaluation of a phrase to be delayed as much as possible and to be calculated as soon as it was needed. These functions make memory usage more efficient when working with large data sets.

## Differences between generators and normal Python functions:

- To call the next values ​​in the generator, we use the next () method.

- In normal functions we use return to return values, but in generator we use yield (the yield statement acts to stop the function and save its status to continue working in the future from where it left off).

- Generators are also iterators, meaning that the classes we define have the __ (iter__) method defined in them.


## Example of generator
In the following code we have a generator function that takes the list as an argument and returns the sum of the numbers of its elements:

```
def myGenerator(l):  
     total = 0
     for n in l:
       total += n
       yield total
mygenerator = myGenerator([15,10, 7])
print(mygenerator)
print(next(mygenerator))
print(next(mygenerator))
print(next(mygenerator))
```
Output:

`<generator object myGenerator at 0x0000026B84B6C150>
    15
    25
    32`


We see that a new value is displayed for each call of the next method. If you re-read the function, you will get an error saying "You can not navigate".

`Traceback (most recent call last):
  File "generators.py", line 13, in <module>
    print(next(mygenerator))
StopIteration`

Do not forget to like!
Bye until the next post👋😘