teleren/devto huggingface dataset:
Understanding Interpolation in SASS
Tags: webdev, programming, tutorial, productivity
Published: 2022-09-05 18:02:32

Interpolation is essentially a code insertion. It allows us to interpolate SASS expressions into our code. We can use it to use a selector or property name, quoted or unquoted strings etc, as variables.

## The Syntax
To interpolate an expression we need to wrap the expression using `#{ }`.
```js
#{$variable_name}
```
Let’s see an example that shows how we could use interpolation with a mixin:
```js
@mixin interpolation($editable, $val, $val2, $prop1, $prop2)
{
    background-#{$editable}: $val;
    position: $val2;
    #{$prop1}: 0px; 
    #{$prop2}: 0px;
}
 
 
.block1{
    @include interpolation("image", url("img.png"), absolute, top, right);
}
 
.block2{
    @include interpolation("color", lightgray, absolute, top, left);
}
```
This will compile in CSS as follows:
```css
.block1 {
    background-image: url("img.png");
    position: absolute;
    top: 0px;
    right: 0px;
}
  
.block2 {
   background-color: lightgray;
   position: absolute;
   top: 0px;
   left: 0px;
}
```
As you can see, it’s quite easy to use this to create dynamically reusable code!

## Main Reasons to Use Interpolation

- We can use dynamically created names as a property name, a variable name or for other similar purposes.
- We can create highly reusable code!

In the next article, we’ll learn how to use placeholders in SASS.

## Conclusion
If you liked this blog post, follow me on [Twitter](https://twitter.com/RembertDesigns) where I post daily about Tech related things!
![Buy Me A Coffee](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ijinng8k7bf23v0o6gkj.png) If you enjoyed this article & would like to leave a tip — click [here](https://www.buymeacoffee.com/rembertdesigns)

### 🌎 Let's Connect

- [Portfolio](https://www.rembertdesigns.co/)

- [Twitter](https://twitter.com/RembertDesigns)

- [LinkedIn](https://www.linkedin.com/in/rrembert/)

- [Hashnode](https://rembertdesigns.hashnode.dev/)

- [Devto](https://dev.to/rembertdesigns)

- [Medium](https://medium.com/@rembertdesigns)

- [Github](https://github.com/rembertdesigns)

- [Codepen](https://codepen.io/rembertdesigns)
304 Not Modified
Tags: nextjs, vercel, http304
Published: 2022-09-05 17:49:59

This is a test with the integration of my portfolio (that's a NextJS app and is deployed in Vercel) and DEV.TO API, I'm using DEV.TO to register my journey in a dev carreer and to show in my portfolio what i'm writing here i did a integration using axios, it works fine in development enviroment, but when in production the GET in DEV.IO API returns a 304  HTTP status that means "Not Modified" even when I post something new. So, after puting headers setting 'cache-control' with 'no-cache', i'm posting this test to see if it's fixed.


![Print of a JS file](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gdlfv455bvzuucfafszg.png)


Link to the aplication: [https://arthur-candido.vercel.app/](https://arthur-candido.vercel.app/)
Flipping Bits Problem
Tags: javascript, hackerrank, programming, beginners
Published: 2022-09-05 17:45:05

This problem asks the solver to print the flipped bits of 32bit unsigned integer.<br/>
In detail, you would be provided an integer -
> 9 (base 10)

You have to write a function such that it returns the 32 bit unsigned decimal integer result -
> 4294967286 (base 10)

All code would be in Javascript but you can use any language to solve this problem.

How one goes from 9 to 4294967286?<br>

- first take the input and convert it a string using toString() function
```
 let s=n.toString(2);
``` 

- initialize a new variable and assign it to 32-(length of string)
```
 let temp=32-s.length;
```
Why temp is equal to 32-s.length - variable *s* stores the number in binary format i.e. *n*=9 in decimal and *s* would store "1001" in binary {datatype of *s* is string here}, you are asked in this case to generate a 32 bit integer so to add the remaining bits in s, we assign temp to the given formula.  

- initialize a new variable and assign it to an empty string
```
let temp_s="";
for(let i=0;i<temp;i++)
    temp_s+="0";
```
*temp_s* appends 0 to an empty string of length temp.

- *res_s* would hold the string full of 0 and the converted string of the number in binary format
```
let res_s=temp_s+s; 
``` 
> res_s=00000000000000000000000000001001

- *flip_s* would store the flipped string as 1 would convert to 0 and 0 to 1     
```
let flip_s="";
```

- we use *for of* loop to traverse through string *res_s*
```
for(let i of res_s) {
        if(i==="0")
            flip_s+="1";
        else if(i==="1")
            flip_s+="0";
    }
```
Here every element in the string is checked for 0 and 1 and assigned to 1 and 0 respectively.
> flip_s=11111111111111111111111111110110

- print the value of given expression on console/prompt screen    
```
console.log( parseInt(flip_s, 2));
```
Here, parseInt() method converts the *flip_s* variable to decimal form and output results in 
> 4294967286

This problem is the part of HackerRank's 1 Month Interview Prep Kit.
Discussion: Is dotnet CLI a required skill to be assessed in interviews?
Tags: dotnet, discuss, cli
Published: 2022-09-05 17:37:21

---
title: Discussion: Is dotnet CLI a required skill to be assessed in interviews?
published: true
description: Let's discuss about the importance of evaluate dotnet CLI in interviews 
tags: dotnet, discussion, cli
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
---

dotnet CLI is an amazing tool added in .NET Core that allow developers to use the terminal to create, compile, build, test and deploy .NET Applications. 

#### Why dotnet CLI is important? 

1. You can work with other IDEs with no dependency on Visual Studio

2. You can work on Linux and macOs 

3. You can use dotnet CLI to create all the steps for a pipeline in any DevOps tool like Jenkins, Azure Devops or Github actions. 

4. You can create script to automate tasks related to your projects. 

 
Even dotnet CLI is an important tool some .NET still don't know how to use it and they depend on Visual Studio to complete all the develop activities. 
This is an easy tool to learn but difficult to adopt in the short term.

Do you think we need to validate knowledge about dotnet CLI in interview or just teach about this tool internally as part of continuos improvement in the development teams?
Using the power of grep to find the PL/SQL procedures that are hard parsing from Alert Log.
Published: 2022-09-05 17:19:02



[](
      <style>
        .libutton {
          display: flex;
          flex-direction: column;
          justify-content: center;
          padding: 7px;
          text-align: center;
          outline: none;
          text-decoration: none !important;
          color: #ffffff !important;
          width: 200px;
          height: 32px;
          border-radius: 16px;
          background-color: #0A66C2;
          font-family: "SF Pro Text", Helvetica, sans-serif;
        { Abhilash Kumar Bhattaram : </style> <a class="libutton" href="https://www.linkedin.com/comm/mynetwork/discovery-see-all?usecase=PEOPLE_FOLLOWS&followMember=abhilash-kumar-85b92918" target="_blank">Follow on LinkedIn</a>) }

There are tons of issues with PL/SQL which may not be in the DBA scope to fix , but identifying what's failing is definitely a thing DBA's need to pass on the Developers 

Use the power of grep to identify what's failing 
grep -A 5 essentially means to filter out the next 5 lines that to the search condition , this comes in very handy to identify Procs causing hard parses.

```
## Find the number of hard parses 
$ grep -rw /path/to/alert.log -e"too many parse errors" | wc -l
1785

## Find the procs that are Hard Parsing
$ grep -rw /path/to/alert.log -A 5 -e"----- PL/SQL Call Stack -----" | awk '{ print $1" "$2" "$3" "$4 }' | grep procedure | grep IIMS_UWR.MYPROC | sort | uniq | tail -10
.
.

0xbaf6b858 293 procedure MYUSER.MYPROC1
0xbb90b0c0 268 procedure MYUSER.MYPROC2
0xbb90b0c0 285 procedure MYUSER.MYPROC2
0xbb90b0c0 293 procedure MYUSER.MYPROC3
0xbbd6ab98 285 procedure MYUSER.MYPROC4
0xbbf9b5a8 285 procedure MYUSER.MYPROC5
0xbbf9b5a8 293 procedure MYUSER.MYPROC6
0xbbfee8a8 268 procedure MYUSER.MYPROC7
0xbbfee8a8 285 procedure MYUSER.MYPROC8

.
.
```

The output basically says at which Line Number the Proc is Hard Parsing , looks like the issue is between lines 268 and 293 where these alerts are being logged in the Alert Log.

NOTE : The Below SR comes in handy , it basically says the Apps Teams should fix the code.

DB Alert log Filled With WARNING'S 'too many parse errors PARSE ERROR: ORA-00923' (Doc ID 2649163.1)	


# #oracle #oci #oracledatabase #plsql #oraclecloud #oracledba #nabhaas
Frequently asked Questions about JavaScript frameworks.
Tags: javascript, programming, webdev, beginners
Published: 2022-09-05 17:12:12

## 1. How many JavaScript frameworks ought to be familiar to a web developer?

Learning and working on a single framework will not advance your career as a developer. You should begin by learning JavaScript in general as this will provide you a strong foundation. Start with a couple of the more significant ones, such as Angular, Vue, and Node, and proceed to the less significant ones afterwards.
.
.
.

## 2. What are the top frameworks for newcomers to JavaScript? What are a few of the most well-liked ones?

The best framework for JavaScript novices include those that are SPA-based, such as Vue, Angular, and React. These are really worthwhile to master and can make it simple for developers to obtain employment.
.
.
.

## 3. How should a JS framework be chosen?

Before you and your team begin the development procedures, it is crucial that you make the best choice. If you choose a random framework, you probably won’t make it past the halfway point without becoming stuck and might even have to restart.

Have a brainstorming session to start and decide what your team needs. How scalable should the work be and what features will you need?

Consider the advantages and disadvantages as well as the features of each of the aforementioned frameworks before selecting one.
.
.
.

## 4. How much time may be saved by utilizing JavaScript frameworks?

When you master a JavaScript framework, you can speed up your job. The majority of seasoned developers concur on this.

In addition to speeding up the development process, these reduce the likelihood of mistakes and defects and entice additional developers to participate on the project.
.
.
.

## 5. The fastest JavaScript frameworks: which ones?

One of the current quickest JavaScript frameworks in the market is vue.js. One of the JS frameworks that is often used in the industry nowadays for its quickness is React.
.
.
.

## 6. How simple is it to change your JavaScript framework?

It may be simple to switch between one at first when developing an app or website. However, switching from one to another will be exhausting and time-consuming if you are halfway through and have spent weeks growing in a particular one. It’s possible that you’ll need to start over with everything.

Running two programs in two different frameworks side by side and gradually switching between them is the easiest approach to accomplish this. Although it is feasible, doing this takes time.

Therefore, it is best to choose an framework and conduct study before you begin producing.

> This whole JS comprehension guide comes to a conclusion now. Check out the official documentation of them for more in-depth information. Until then “keep learning, keep programming”.
First Real Dev Job
Published: 2022-09-05 17:06:51

Tomorrow I start my first software engineer job as a Java developer. I am kind of nervous, bc my background is c#/c++ tht I started 2 yrs ago in college. For the last 5 months I've work3d as a android developer intern. The app was mostly java and xml layouts. They were in the process of converting the app from Java go kotlin and jetpack compose. For the most part they had me fixing bugs. I spent most the time bouncing between Java and kotlin files. The last month ans half they had me actually code components of the app. So I used compose for the first time and actually dug in with kotlin. It was an agile team so I experience all those practices of working with stories, stand ups, pointing tickets, and taking requirements or figma designs and converting then to components of the app. This new job is for a newer company not a start up but they haven't been around real long maybe 10 yrs max, and they are growing rapidly. The reason I am worried is bc of what I am going to be doing, granite I will be taking courses for Java, javascript and other things through the compnay. I'll be working with clients on requirements and building figma designs which I've never used figma before besides as a reference for a component. Then I will be doing web dev with Java and I'm assuming spring boot which I've never used a web framework beside a little flask and asp.net. Plus my front end skills are very basic and that's why they want me to take these courses on js. The boss also said I would be doing some dba things, which I'm cool with bc my degree is for software dev with a database focus. All of the new languages and technologies are intimidating to me. Then when I was working as a android intern I seen all of the design patterns the app consisted of some where familiar or intuitive to understand but alot of them confused me. I guess the best way to summarize my worries is that I will have to create web apps and other things with new technologies from the ground up while trying designing/architecing the software both of which I have little to no knowledge of. I resigned from the android intern position to take this one and i am afraod that i will do horroble and then be out a job. Does anybody have any tips on how to go about learning all of this or any tips on in general? I would appreciate any help I can get to make the transition to my new job smooth as possible.
MNRN
Tags: blog
Published: 2022-09-05 17:02:35

Our tech stack is the very tried and true MERN stack, with one exception, instead of Express as our backend, we are using .NET. So the new acronym would be M.RN. Or MNRN. Or NNRM. Unfortunately, it doesn't flow off the tongue as well. Just as exchanging "E" for "." or "N" complicates the acronym, I was worried exchanging Express for .NET will complicate my understanding of our application. 

My partner and I decided to split up the backend and the frontend work, with myself as the frontend engineer and him as the backend engineer. That meant we each got to pick which tech we wanted to use. I chose React, and he chose .NET. As we began to build our program, naturally there was some work on the backend that I needed to do, as there will be work on the frontend that he may need to do. As I began with some of the backend work, I continued to run into confusion related to .NET. Confusion leading to feelings of inadequacy which led to frustration. It didn't help that in my attempt to solve certain .NET issues, I would search for the solution as if we were using Express, which always seemed like a simpler solution. 

However, as I have worked through those bugs and have begun to familiarize myself with .NET, I realize that it isn't that different from Express or any other API framework. Prior to this project and my exposure to .NET, .NET looked and seemed foreign. Now, it is becoming more familiar and I can say that I have another tool in my tool belt. 

As I continue as a software developer, there will be plenty of times (I would say more often than not) that I am be working with, not only a technology that I wouldn't have chosen, but a technology that I don't understand. Often those will be hand-in-hand. Yet it will always be my job to work through that initial frustration, stemming from miss-understanding, so that I can become of more diverse and experienced programmer.
Django 4.1 mod_wsgi httpd rhel/centos8/rocky
Published: 2022-09-05 16:41:10

Env:
Centos 8
Python 3.9
Django 4.1
Httpd 2.4.37
Mod_wsgi 4.6.4

Been programming for more than 25 years. Having said that new to using Django and mod_wsgi. Django
Pretty easy. The problem is setting up Django(virt env)and mod_wsgi served on httpd. Just does not work. I get gateway, server not found, encodings, mod_wsgi not loading or not found etc. I have followed django's website and 30+ more. Will not work with apache, always something. Have recreated the entire environment from os onward. Nothing. Most suggestions are outdated and commands / packages not good or available. If this was a happening thing with django it would not be this difficult.  Yes granted in the past all programmers will get stuck for many day or hours getting past something. Always made sense. This does not with everyone all over the map. Of this all comes down to my ignorance, I'm humble, help me. I know more info will be need from me, but wanting to see if any takers first. Thank you.
Reverse Doubly Linked List
Tags: javascript, leetcode
Published: 2022-09-05 16:36:31


Please consider we have doubly linked list already created...

```js
  reverseDoublyLinkedList() {
    let current = this.head;
    let prev = null;

    if (this.head === null || this.head.next === null) {
      return this.head;
    }

    while (current) {
      prev = current.previous;
      current.previous = current.next;
      current.next = prev;
      current = current.previous;
    }
    this.head = prev.previous;
  }
```
🔴 Save the date! Luos keynote live on Discord on September 15 at 9:00 am PT.
Tags: opensource, microservices, eventdriven, luos
Published: 2022-09-05 16:07:45

🔴 Save the date! Luos keynote live on Discord on September 15 at 9:00 am PT.

To participate ⏩ https://discord.gg/6TtMZMcdUm?event=1013835403465326683

Nicolas Rabault will present the new version 2.6!
Batch processing with Symfony and Docker
Tags: php, docker, symfony
Published: 2022-09-05 16:07:01

#### Context
We had a platform running with **Symfony** where we needed to execute a lot of heavy background jobs daily.

Initially we used a bundle which handles our jobs and their execution.
With the growing user base, it had started to let us down.
We were getting more and more jobs that are stuck, hung, etc…

#### Solution
To solve this, i developed a new bundle that offers a batch processing system with the Docker engine.

All jobs are executed separately in docker containers.

This way is more viable as Docker handles the execution of the started containers.

Neat thing with this bundle is, you can pretty much execute anything in those containers.
For example, say you need a downloader in your symfony application, rather than implementing it in PHP, you could leverage JS Async and make a quick node.js script with something like **bluebird** and package it into a Docker image.

**Monitoring UI**  
The bundle also offers a Monitoring user interface which you may choose to activate.
With this interface, you can:
— get an overview of your jobs
— inspect jobs
— stop jobs
— get usage info for each running job


> Job details page
![Docker jobs bundle - details page screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qu0t2ntppr1ti4rt5lj1.png)

> Dashboard page
![Docker jobs bundle - dashboard page screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lt5ouzylaw1littq1lpw.png)

Check out the [bundle](https://github.com/ibra-akv/docker-jobs-bundle), see if it's what you needed.

**Github:** [https://github.com/ibra-akv/docker-jobs-bundle](https://github.com/ibra-akv/docker-jobs-bundle)
Messi Wohnung entrümpeln - Kosten
Tags: messi, wohnung, entrmpeln, kosten
Published: 2022-09-05 15:46:41

Dies ist mein erster Beitrag auf dev.to. Um zu wissen, welche kosten auf Sie zukommen wenn sie eine Messi Wohnung entrümpeln wollen, dann lesen Sie folgenden Artikel. [Hier geht's zum Beitrag](http://ruempeloskar.de/messi-wohnung-entrümpeln-kosten)
Building software for cattle farmers. Week 1.
Published: 2022-09-05 15:44:52

###Introduction
- A while ago I created an android app for cattle farmers to keep track of their calves(baby cows) during calving season. However, I have decided to create a new version of that app instead of updating the old version.
- The new app can be found on the google play store [HERE](https://play.google.com/store/apps/details?id=com.elliottsoftware.calftracker2)

###Added Features
- This new version has two main updates:

**1) fancy delete animation**
**2) search functionality**

- I know these added features are not too interesting but I believe they are a good starting point.

### Why build a new app instead of updating old one?
- Very good question!! There were a number of reasons but the main two being, I wanted to switch from Java to Kotlin and my app was still small enough that a rebuilt was not too much extra work. Why Kotlin over Java? Google has made it clear that the Kotlin programming language is now its preferred language for Android app developers. So we must do what the all mighty Google tells us to. Of course you can still make Android apps with Java, however, moving forward Android will be a Kotlin first experience for mobile developers.

###Version 2
- Version 2 of my app, which is currently being review by Google, has what I like to call `sport mode`:



![Horizontal view of Android device](https://www.developmenthackers.com/uploads/articles/erqfz42q46gt4gqb3i5k.png)
 

- This `Sport mode` is activated when the user flips their phone horizontal(technically the screen width has to be greater that 580dp). This allows the user to rapidly add new calves, which is a much better UI experience that the vertical layout.

###Version 3
- The next version of this app is where I will introduce Firebase and networking to the app. Allowing the user to save, update and backup their data to a network.

###Competition
- Now its always a little bit of fun to put yourself into a competition and coding is no exception. So I have designated [My Cattle Manager](https://play.google.com/store/search?q=my+cattle+manager&c=apps) as the competition!! That app has 50K downloads and I do not actually think I will overtake then in terms of market share. I just think it will be fun to compete and try to deliver a superior product


###Updates
- I will be posting updates every Monday. If you want to follow along or are interested in Android development make sure to give me a follow.


###Conclusion
- Thank you for taking the time out of your day to read this blog post of mine. If you have any questions or concerns please comment below or reach out to me on [Twitter](https://twitter.com/PlebDevTristan).