teleren/devto huggingface dataset:
LaTeX & Maths: Advanced Operators
Tags: codenewbie, latex
Published: 2021-08-19 02:01:24

Hello, how are you? :) 

In this post I explain some advanced operators for Calculus and some other useful operators. Let's start!!!

**Limits** This operation has its own command and it is shown according with the mode that you are using

![code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3iri7doi9i8p8x9jh91a.png)

Produces 

![Screenshot from 2021-08-18 20-46-19](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g7usfc2ktjgl8mia66z4.png)

**Sum** This is a common operation in math, the operator is denoted by capital Sigma, but the operator is given by `\sum`. You can put more *details* with `\substack` 

![code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xhbku3v7nb6nxovxf26i.png)

Produces 

![Screenshot from 2021-08-18 20-49-48](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pxgf6jayn6oz9i9g09kc.png)

**Integrals** There are different ways to produce an integral in LaTeX

- Sometimes we need to operate with *multiple integrals*, my suggestion is that you just put one integral symbol and distinguish between the integrals by the differential (line, surface or volume)

![code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/czfmf8uot4zen6gu3jj6.png)

Produces 

![Screenshot from 2021-08-18 20-54-48](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/776fq4k3vfhgbk51egaa.png)
  
**Product** As the *sums*, the product symbol is a capital Pi, however, the symbol for this operator is `\prod` 

![code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sjs3o0uff6tby61wevkp.png)

Produces 

![Screenshot from 2021-08-18 20-57-24](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wg178xz6bgr76u5j8run.png)

**Sets** There are two common operations 

![code](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ax4xoaux5uokwik18chd.png)

Produces 

![Screenshot from 2021-08-18 20-59-47](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/g0pe4uj3fr6fys65sg10.png)

This is all for today, Greetings

Do not forget to follow me on Twitter `@latexteada`
Releasing rss-update-0.1-beta.2
Tags: rust, programming, productivity, showdev
Published: 2021-08-19 01:51:48

I recently setup neovim editor as my sole IDE. It was fun setting up an IDE with only the things that you care about, and get excellent speedups for both autocomplete and type hints. If you are interested in my current neovim conf, you can check it out at [github](https://github.com/satylogin/UbuntuSetupHelpers/blob/main/init.vim).

Since I had my IDE setup, I wanted to take it out to a test drive, so I started writing a CLI util for something that I wanted to have for few months now. A way to track updates on blogs that I follow with no upper cap on number on blogs. And I recently learned rust, so it was time that I built something using both.

Presenting [rss-update](https://github.com/satylogin/rss-update) cli, an util for tracking rss/atom feeds and get updates on them, when you want to. 

* To add new feeds: `rss-update add --feed <FEED>`
* To fetch new posts in feed: `rss-update`
* To show unread posts: `rss-update unread`
* To mark posts as read: `rss-feed read --post <URL>`
* To list tracking feeds: `rss-feed tracking`
* To remove feed from tracking: `rss-feed remove --feed <FEED>`

In case you try it out and have some feed-back / request, feel free to open an issue or reach out to me.
Labsynth - Ready to Download
Tags: gamedev, unity3d, puzzle, maze
Published: 2021-08-19 01:22:40

Available on play store: https://play.google.com/store/apps/details?id=com.UnmaadGames.Labsynth

LabSynth is a puzzle game with a unique story, developed by Unmaad Games, an Indian indie studio of two passionate developers making games that they want to play.

In LabSynth you play as a light on a Hero's Journey. Going through different phases as you progress. Discover addictive challenges and hours of entertainment with 15 different levels with progressive difficulty. The puzzles range from easy mazes to harder and advanced mazes to keep the challenges interesting.

Player controls are simple and straightforward: just tap the screen and move your finger around to guide the light (player avatar) through.
NodeJS-Encoder-Decoder
Tags: node, javascript
Published: 2021-08-19 01:18:03

# What is NodeJS-Encoder-Decoder:
 It's base64 based encryption method that performs some operations on base64.

# What can i do with this?
I told all things on repo page on [Github](https://github.com/CrawLeyYou/NodeJS-Encoder-Decoder) but you can make actually everything u want like:

* You can encrypt important links or strings that need to be protected in your node program
* Same thing but you can use it in any language with API
* Use with electron

and more!

# Usage with Electron UI

<img src="https://camo.githubusercontent.com/8ae03333f5ef28705adeee6956afb555682b52598c68544351017eefc015514e/68747470733a2f2f63646e2e646973636f72646170702e636f6d2f6174746163686d656e74732f3733313234383431323938383637303130332f3837373130373237373035383933363835322f665865343074514571502e676966"></img>

# Comments
If you use repetitive sentences / special letters, the program may fail because "/" will occur in between, I haven't fixed it yet because I don't want to spend all my day on this. And sometimes the encrypted string is semi-readable in base64 decoding in 1.0.0 and 1.3.0 If you want the resulting string to be fully encrypted, you can check from any online base64 decoder. Also, you can use libs in the server as a node module. And yes I didn't find a better name for this project.
How are you protecting your staging environment(s) for your web apps?
Tags: devops, webdev, security, programming
Published: 2021-08-19 01:09:36

By "staging environment" I'm referring to any non-production environment that you need to access over HTTPS, either ephemeral or long-lived and potentially shared. I’m curious what you all are using to protect these environments.

Are you using basic auth? If so, how are you managing usernames & passwords?

Are you using a VPN?

Are you using something else?
Journey into Kodecamp Internship
Published: 2021-08-18 23:52:36

I learnt about the Kodecamp internship two weeks to concluding my bachelor’s degree from a friend. He sent me a link to register and told me to follow kodecamp Internship on Twitter. I went on Twitter, followed and learnt more about the internship following @kodecamp .

I had started learning about programming from W3schools and Youtube during Covid-19 lockdown last year. Youtube tutorials were more profound in my journey because I learn more visually.
The HTML course from Brad Traversy  was very fundamental to my journey, after that I moved to a Python course by Freecodecamp  from which I learnt some programming concepts and figured out If I had to create projects which was imperative and share online I needed to know how to use Git. I then had to learn Git through a crash course which lasted for 33mins which can be found here . .
As I progressed in my web development journey I figured out I was more inclined to the backend side, which was more of the server side of Software Engineering.  The front-end and back-end were important in creating a great website but what spoke more for a first timer visiting a site was the user interface, I figured out a good website had to have a very good layout which was the job of the UI/UX designer and the front end programmer.

At the end of my 16 weeks internship with kodecamp, I want to have achieved some goals. Some of which are:
1.	Build a strong network of likeminded people who are driven, lifelong learners, problem solvers and who believe they can cause a change in the world using disruptive technologies.
2.	To gain from the wealth of experience of mentors to fast track my learning journey.
3.	To have access to resources that may not be easily accessed on the internet.
4.	To move from an intermediate level to an advanced level by tackling real live projects.
5.	To be able to broaden my stack and be confident using certain languages and frameworks. 

All of these and even more are what I believe the kodecamp internship has to offer. My stack includes Java, Python – Django framework, and Sql.
#003: Buscando todos os documentos no Elasticsearch
Tags: elasticsearch, search, filter, documents
Published: 2021-08-19 00:05:45

No artigo anterior vimos como indexar os documentos no elasticsearch e hoje vamos aprender a retornar todos os registros indexados. Se você ainda não leu segue a referência [#002: Indexando o primeiro documento](https://dev.to/brunoflegler/002-indexando-o-primeiro-documento-no-elasticsearch-2p2g)
É importante indexar mais de um documento para conseguir observar os resultados da pesquisa.

*...five minutes later*

Use o `curl` para pesquisar os documentos. O intuito nesse momento não é obter performance na query é apenas entender como fazer uma busca total sem filtro e identificar os atríbutos principais.

```sh
$ curl -X GET "http://localhost:9202/customers/_search?pretty" -H "Content-Type: application/json" -d '
{
  "query": {
    "match_all": {}
  }
}'
```

```json
{
  "took": 524,
  "timed_out": false,
  "_shards": {
    "total": 1,
    "successful": 1,
    "skipped": 0,
    "failed": 0
  },
  "hits": {
    "total": {
      "value": 3,
      "relation": "eq"
    },
    "max_score": 1.0,
    "hits": [
      {
        "_index": "customers",
        "_type": "_doc",
        "_id": "1",
        "_score": 1.0,
        "_source": {
          "id": 1,
          "name": "Christopher M. Bass",
          "age": 45,
          "createdAt": "2021-08-17T02: 36: 39.104"
        }
      },
      {
        "_index": "customers",
        "_type": "_doc",
        "_id": "2",
        "_score": 1.0,
        "_source": {
          "id": 2,
          "name": "Alberto D. Wilson",
          "age": 77,
          "createdAt": "2021-08-18T17: 36: 39.104"
        }
      },
      {
        "_index": "customers",
        "_type": "_doc",
        "_id": "3",
        "_score": 1.0,
        "_source": {
          "id": 3,
          "name": "Darla G. Barney",
          "age": 19,
          "createdAt": "2021-08-18T17: 40: 39.104"
        }
      }
    ]
  }
}
```

O resultado retorna dentre eles o atributo `total` onde identificamos o total de documentos encontrados de acordo com o filtro. Nesse exemplo foram retornados 3 documentos.

```json
"total": {
  "value": 3,
  "relation": "eq"
},
```

Por `default` o cluster irá retornar 10 documentos, mesmo que o total seja maior. Para aumentar esse valor precisamos adicionar a propriedade no corpo da requisição, mas por questão de performance o valor limite é 10000.

```sh
$ curl -X GET "http://localhost:9202/customers/_search?pretty" -H "Content-Type: application/json" -d '
{
  "query": {
    "match_all": {}
  },
  "size": 100,
}'
```

Nos próximos artigos iremos entender mais sobre atributos retornados na pesquisa, além de entender como filtrar por um atributo simples. Até lá pratiquem!
Automatic Unstructured and Anisotropic Grid Generation with Scaling
Tags: mesh, cae, fea, simulation
Published: 2021-09-03 16:38:00

---
title: Automatic Unstructured and Anisotropic Grid Generation with Scaling
published: true
date: 2021-08-19 00:00:00 UTC
tags: mesh, cae, fea, simulation 
canonical_url: https://www.featool.com/tutorial/2021/05/03/Grid-Generation-with-Scaling.html
---

Script to easily generate stretched meshes and grids for physics, #FEA, and #CAE simulations adapted to the size of the geometry objects.

![Anisotropic mesh generation](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vu4jarujc08kyw9v5w2t.jpg)

For models and geometries where either one axis direction dominates, such as for long or tall geometry objects, or simulations where the solution is expected to not to vary in certain directions, such as some flow situations, it can be very beneficial to use anisotropic grids. By using elongated mesh elements the total mesh size can be reduced resulting in significantly faster simulations (especially for full 3D simulations). Unfortunately, most automatic mesh generation algorithms try to avoid anisotropic mesh elements, so if the geometry allows for it, the best way to generating such anisotropic meshes is by manually generating structured meshes.

Visit https://www.featool.com/tutorial/2021/05/03/grid-generation-with-scaling for more information and script download.
How to get only the current month number using JavaScript?
Tags: javascript
Published: 2021-08-19 00:00:00

---
  title: How to get only the current month number using JavaScript?
  published: true
  tags: JavaScript
  date: Thu Aug 19 2021 05:30:00 GMT+0530 (India Standard Time)
  canonical_url: https://melvingeorge.me/blog/get-only-current-month-number-using-javascript
  cover_image: https://melvingeorge.me/_next/static/images/main-71c4e07d69cf8633659ad4c455850728.jpg
  ---
  [Originally posted here!](https://melvingeorge.me/blog/get-only-current-month-number-using-javascript)
  
To get only the current month number, we can use the `getMonth()` method from the global `Date` object in JavaScript.

### TL;DR

```js
// Make an instance or object of the Date constructor
const currentDate = new Date();

// get the current month number
const monthNumber = currentDate.getMonth();

console.log(monthNumber); // eg: 8
```

First, let's make an object (or instance) from the global `Date` constructor using the `new` keyword like this,

```js
// Make an instance or object of the Date constructor
const currentDate = new Date();
```

Now we can use the `getMonth()` method from the `currentDate` object to get the month number like this,

```js
// Make an instance or object of the Date constructor
const currentDate = new Date();

// get the current month number
const monthNumber = currentDate.getMonth();

console.log(monthNumber); // eg: 8
```

- **IMPORTANT: Since the month number starts from 0, you may see the above output as an error, but it is correct. For example, for `September` one would expect an output of number `9` but the method gives an output of `8`. This is done to keep it easy when working arrays and other native data structures in JavaScript. So keep this little thing in mind while working on this specific method 🤓.**

See the above code live in [JSBin](https://jsbin.com/ceheliwopu/2/edit?js,console).

That's all 😃!

### Feel free to share if you found this useful 😃.

---
Reader response to "Monolithic success story"
Tags: staging, testing, pii, testdata
Published: 2021-08-24 11:52:21

---
title: Reader response to "Monolithic success story"
published: true
date: 2021-08-19 00:00:00 UTC
tags: staging,testing,pii,testdata
canonical_url: https://jhall.io/archive/2021/08/19/reader-response-to-monolithic-success-story/
---

In response to last Friday’s email, [A monolithic success story](https://jhall.io/archive/2021/08/13/a-monolithic-success-story/), Rick Yust responded with the following on LinkedIn:

> I love new test environments for every deployment; for every PR is even better, and again even better for the manual testing in isolation.
> 
> That said, there’s also room for long running environments since often times there are stale data or configurations which don’t become visible in fresh environments. Large data sets (eg: companies with thousands of users) might not be adequately tested when a fresh test environment creates sample companies with a handful of users. Similarly, missing or changed objects or properties or fields of database or json payloads can cause responses to behave unexpectedly before recordsets are fully migrated. These kinds of details can easily be missed when you’re working with freshly built environments, but can quickly become apparent when you’re working with large sets of existing or historical data.
> 
> There are development approaches I’m sure can mitigate those risks, but I will always believe there’s a good reason to have at least 1 long running, non-production but production-like environment to run manual or automated tests against prior to production deployment.

Rick brings up some great points!

One approach that can sometimes help with the issue of needing realistic data in a test environment is to seed each new environment with data from production, or with a curated data set. When seeding from production, this can often raise privacy concerns, if you’re dealing with [PII](https://en.wikipedia.org/wiki/Personal_data), credit card numbers, or other sensitive data. Some teams have set up auto-scrubbing and/or randomization to help solve this. YMMV.

I’m also fully in favor of a long-running staging or test environment for other reasons. One is [dog-fooding](https://en.wikipedia.org/wiki/Eating_your_own_dog_food) for products where it’s not possible or reasonable for employees to use the production system. It’s also great to use a staging server for demos and exploratory testing or configuration.

In summary, there’s no single one-size-fits-all solution to all testing needs. Ephemeral review environments are great, and I believe should be used more. But that doesn’t mean they solve all problems. Most teams will also want a dedicated, long-lived staging or test environment in addition!

* * *
_If you enjoyed this message, [subscribe](https://jhall.io/daily) to <u>The Daily Commit</u> to get future messages to your inbox._
How I Opened up my new entire project and all of it's files from Git Bash to VSCode.
Tags: git, vscode, php
Published: 2021-08-18 23:19:11

Remembering I had a task to work on, whilst using Git, I started of with firstly navigating to the directory where my projects usually are i.e xammp/htdocs, since I'm working with PHP. Then created my project folder "mkdir folder name", later created the project file and it's extension using "touch project file.extension".

Finally, opened the newly created file in VSCode using "code space and then the name of the project folder" i.e "code project_folder/" to open up the project folder and files in VSCode.😊😊
JS13K: My First Day (Day 6 😊)
Tags: javascript, gamedev, challenge, devjournal
Published: 2021-08-18 23:15:03

I am continuing the way of making a rhythm game. Want to make this a bit more different than normal because you can see one note at a time and you can click one of the four notes below for doing an action. You can lower the enemy's life, increasing more points, reload actions and charging an attack. We will see if that will be good on next days.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7cgglm9pso6kejwe21q6.gif)

<figcaption> Rudimentary notes and enemy bar, but still notes and an enemy bar. </figcaption>
Update on My Python Journey
Tags: beginners, python
Published: 2021-08-18 23:06:33

This entry isn't a long one. I've been steady going along with the python udemy course and came across something very small, but so helpful. One of the recent projects I've worked on was a tip calculator. The program receives the input of the price, the options to tip 10, 12 or even 15 percent and then asks how may ways would you want to split the bill. I won't go into the details of it in this post, but there is a good bit of math that goes on with this program using integers and floats. While it seems these numbers should be able to be added, that isn't the case. Attempting to mathematically combine the two data types will result in an error. 

So because of this, inputs that the user may put in have to be converted as the program runs to successfully get the output. I was able to successfully complete this project through the use of the type() function.  A simple but helpful function, type() gives us the information of what the data type of that piece of information may be, allowing the programmer to be able to convert the information to a more useful data type that will allow for the program to run successfully. 

Since learning about this function, I've been using is so much more along with the print() function. Being able to see the data type one may be working with helps so much. If you have some time, make use of it and see what you're able to learn. 

Happy Coding.
Day 433 : Turning Remix
Tags: hiphop, code, coding, lifelongdev
Published: 2021-08-18 21:49:57

_liner notes_:
- Professional : Had a pretty solid day of just doing work. Only had a small townhall, but that was it. I removed a dependency from a Web Component I built and added some styling. Reviewed a team member's blog post. Also made a small addition to my own blog post that I wrote. Not a bad day.

- Personal : Last night, I went through some tracks for this week's radio show. Watched an episode of "Invincible". Did a bunch of research on media servers, specifically some other alternatives just in case my deployed server can't keep up or my side project gets pretty big. Also looked at some companies that offer RTMP servers and how much they cost. I also found a blog post with a Glitch project that I ended up turning a remix and get a Webcam feed and canvas to stream to my RTMP server and it worked.

![Aerial view of a mountain range in Turin, Italy with some lakes in the valley](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pm3jf1jgwy7f3kg5tx4l.jpg)

Going to check out some more tracks for the radio show. There's a new episode of Marvel's "What If". Probably watch that during lunch. I'm going to see if I get one of my cameras to stream to my media server. I also want to see if I can get FFMPEG working on the server to transcode to an HLS stream. I want to see if that can maybe fix the audio sync issue.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube ZhLSbrVsL20 %}
Pattern-matching in JavaScript
Tags: javascript, conditionals, select, case
Published: 2021-08-18 21:41:59

Photo by <a href="https://unsplash.com/@graham1384?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Parham Moieni</a> on <a href="https://unsplash.com/?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText">Unsplash</a>

Pattern-matching is something I've leaned-on a lot recently, and I'm starting to anticipate its inclusion in the language more and more. It's currently a [Stage 1 proposal](https://github.com/tc39/proposal-pattern-matching).

Well, maybe to help it along I can share this little library I've been tinkering with.

I've tried to, ahem, *match* the TC39 spec as closely as I could in anticipation of the hopeful day when I don't need to use it anymore:

```js
import { match, when, otherwise } from 'match-iz'

let result = match(data)(
  when(pattern, result || handler),
  when(pattern, result || handler),
  otherwise(result || handler)
)
```

If pattern-matching is new to you, it's essentially a declarative version of `if` and `switch`, where you describe the expected shape of your data using "patterns".

Patterns are a combination of both functions and data, and because of this certain assumptions can be made to help reduce the amount of boilerplate normally required to check that your data looks a certain way:

```js
// Imperative:
if (typeof res?.statusCode === 'number') {
  if (res.statusCode >= 200 && res.statusCode < 300) {
    return res.body
  }
}

// Declarative:
return match(res)(
  when({ statusCode: inRange(200, 299) }, () => res.body),
  otherwise(() => {})
)
```

1. `match-iz` will check that `statusCode` is a key of `res` by implication of the `when()` being passed an object-literal `{ ... }`.

2. The `inRange()` pattern-helper guards against non-numbers before trying to determine if its input is within a certain range.

I think [match-iz](https://www.npmjs.com/package/match-iz) (along with many [similar libraries](https://www.npmjs.com/search?q=keywords:pattern-matching)) is a reasonable tool for constructing some of the more complex conditional logic we use in our JavaScript. Stuff that's usually a mess of `if`/`else`/`switch` statements.

If you'd like to see pattern-matching used "in the wild", I've used `match-iz` myself for these other little projects: [sift-r](https://github.com/shuckster/sift-r/blob/master/src/sift-r.mjs) and [viddy](https://github.com/shuckster/viddy/blob/master/src/viddy.mjs)