teleren/devto huggingface dataset:
Store and Secure Sensitive Data in Web Applications
Published: 2020-10-14 11:16:09

Software security is utterly essential. A secured web application is the most essential requirement for any online business. If the web application has any security vulnerabilities, it’s prone to attacks.

Before a web application host is hosted on a web server and exposed to the external world, it must be secured  properly. Architects, developers, database administrators - everyone plays a key role in choosing  the most secure mechanisms suitable for a particular application. Testers with expertise in  cyber security should perform security tests on the application. Whatever security measures that are going to be implemented, should be reviewed thoroughly and should conform to industry best practices.

Understanding the necessary data that needs to be stored and encrypting them is one of the most important things to be followed by every web developer. Securing data is the most significant aspect of application security. These data can include any information like:
* *Passwords*
* *Encryption keys*
* *Passphrases*
* *Credit card numbers*
* *OAuth tokens*
* *Personal contact information such as names, email addresses, phone numbers, user accounts, physical addresses, etc*

Data security involves the security of: Data-at-rest, Data-in-transit and  for storing these data, the right storage mechanisms should be chosen.


***How to secure this sensitive information?***

*Authentication* : Authentication is the process of recognizing the identity of a user. Traditionally, authentication was accomplished by the systems or resources by using a combination of username and password to authenticate a user. User authentication takes several forms, but all are based on the combination of authentication factors. 

*Access control* : The purpose of authentication is to let the application know who you are, thus by identifying the identity, privileges are given to users. Access control, grants the necessary privileges, described as discretionary or non-discretionary. The access control models grant access privileges to users based on the work that they do within an organization.

*Encryption* : There are many ways for encrypting data at rest and data in motion. Data can be encrypted  in many ways - Full disk encryption of data at the disk level, Directory level (or Filesystem), File level and Application level.

Refer the blog for more information : https://beaglesecurity.com/blog/article/how-to-store-and-secure-sensitive-data-in-web-applications.html
Wednesday Links - Edition 2020-10-14
Tags: java, spring, kotlin, jvm
Published: 2020-10-14 10:25:31

Project Panama and jextract ( 4 min read ) 🌴
https://inside.java/2020/10/06/jextract/

JDK 15 Security Enhancements ( 6 min read ) 🔒
https://seanjmullan.org/blog/2020/10/13/jdk15

JEP 395: Records ( 14 min read ) ⏺️
https://openjdk.java.net/jeps/395

Shebang Mechanism Support in IntelliJ IDEA 2020.3 ( 1 min read ) 🥊
https://blog.jetbrains.com/idea/2020/10/shebang-mechanism-support-in-intellij-idea-2020-3/

Scripting Java with a jBang ( 3 min read ) 🥊
https://www.infoq.com/news/2020/10/scripting-java-jbang/

Sealed Java State Machines ( 2 min read ) 📩
https://benjiweber.co.uk/blog/2020/10/03/sealed-java-state-machines/

A Hitchhiker's Guide to Containerizing Spring Boot Java Apps ( 8 min read ) 📦
https://blog.frankel.ch/hitchhiker-guide-containerizing-java-apps/

Junit 4.13.1 Released ( 30 sec read ) 🧪
https://github.com/junit-team/junit4/blob/main/doc/ReleaseNotes4.13.1.md

Spring Framework v5.3.0-RC2 Released ( 2 min read ) ⛱️
https://github.com/spring-projects/spring-framework/releases/tag/v5.3.0-RC2

WebFlux support for kotlinx.serialization and Spring MVC support for Coroutines ( 20 sec read ) ➰
https://twitter.com/sdeleuze/status/1316063126056513538

Why Reactive Principles Ensure System Scalability: A Conversation with Josh Long ( 10 min read ) 🚎
https://www.reactive.foundation/post/why-reactive-principles-ensure-system-scalability-with-josh-long

New Release Cadence for Kotlin and the IntelliJ Kotlin Plugin ( 2 min read ) 📅
https://blog.jetbrains.com/kotlin/2020/10/new-release-cadence-for-kotlin-and-the-intellij-kotlin-plugin/

How Kotlin implement lambda under the hood ( 2 min read ) λ
https://medium.com/@yangweigbh/how-kotlin-optimize-lambda-under-the-hood-3f7eb286736c
How To Exit Press-To-Test on TI Nspire CX (CAS)
Published: 2020-10-14 11:08:37

This how-to is a description of the solution in this [video](https://www.youtube.com/watch?v=Eoi3PJlLICg).

I don't remember clearly but I think I got this TI-Nspire CX CAS calculator as a gift from my library tutoring job. While I was tinkering with it I got it into the Press-To-Test mode. I thought the "test" means some system self-evaluation stuff, but turns out it means an exam at school or something like SAT. The mode heavily restricts the available features on the calculator as required by testing institutions.

To get out of it we need to use [TI-Nspire Computer Link](https://education.ti.com/en/products/computer-software/ti-nspire-computer-link). TI provides installers for Windows and macOS.

1. Create an empty Note on the calculator, save it as "Exit Test Mode".
2. Install TI-Nspire Computer Link on the computer and open it.
3. Connect the mini-USB socket on the calculator to a USB socket on the computer.
4. Refresh the device list and choose the calculator.
5. Drag and drop the "Exit Test Mode" Note file to anywhere on the computer.
6. Drag and drop the "Exit Test Mode" Note file from the computer to the "Press-To-Test" folder.

If successful, we should see the "Press-To-Test" folder disappear, and Press-To-Test mode gone.
Fill Gaps and Learn Faster
Tags: codenewbie, beginners
Published: 2020-10-14 11:06:05

>"I know that I know nothing."

\- Socrates

We all have gaps. That's not a problem. The problem is we can't see most of these gaps.

I'll give you an example from my liberal arts background. Many scholars think St. Augustine's pneumatology was influenced by Neo-Platonism, but he was in fact more influences by Hilary of Poitiers and Ambrose of Milan.
![Augustine Undergrad Thesis](https://dev-to-uploads.s3.amazonaws.com/i/7ctu3f95naomn9sqmo2x.jpg)
<figcaption>I'll shamelessly plug <a href="https://github.com/cpustejovsky/thegiftofgod" target="_blank" rel="noreferrer noopener">my undegraduate thesis</a> on St. Augustine here.</figcaption>

I can almost guarantee there is at least one name or term you'd need to look up to even understand that statement. That's ignorance, that's a gap, and that's okay! You are **not** stupid for not knowing terms you'd never heard about. You're not stupid for not knowing whether to agree or disagree with that statement (I spent my senior year of college figuring it out). 

But I've exposed a gap. It's not a gap you likely have any desire or reason to fill, but I, an outside influence, exposed it. That's what you need.

You will expose few gaps on your own. That's why you need to talk to others. My recommendation is conferences and recorded talks from conferences. 

You may find that you don't understand everything the speaker is saying. Good! Write them down. Google them later.

![GoWest Conference](https://dev-to-uploads.s3.amazonaws.com/i/c0mg2ucdeumo2v7gmo48.png)
<figcaption>Forge Utah has these talks from the GoWest Conference up on their <a href="https://www.youtube.com/channel/UC7aCz1ur-s48fwm8Zfhjlbg" target="_blank" rel="noreferrer noopener">YouTube channel</a> now.</figcaption>

As an example, I attended a talk on cloud computing in Go two weeks ago. I had to write down so many terms and acronyms and tools I'd never heard of before. After the talk and after Googling what everything meant, I have a much clearer idea of what I need to learn to excel with cloud computing in Go. 


**If you know of any groups, conferences, videos, and the like that have helped you fill in gaps, share them in the comments below.**
Dotenv-linter v2.2.0: find and fix problems in .env files
Tags: rust, opensource, webdev, github
Published: 2020-10-14 11:02:35

We have developed dotenv-linter — a useful tool for checking .env files. It helps to find problems in .env files that you might miss at first, but which later may result in incorrect work of applications. We have made the tool universal, it can be connected to any project regardless of the programming language.

We've just released a new version of dotenv-linter — v2.2.0, and here is an overview of the key changes included in this release!

https://evrone.com/dotenv-linter-v220
How did you exit "tutorial hell"?
Tags: discuss, beginners
Published: 2020-10-14 10:56:44

For me, it was pretty simple. As I mentioned in another post, I've created a plan on how I will approach web development. By doing the research before starting out, I came across this term and I've adjusted my plan accordingly. 

I still watch tutorials and probably I will do this my whole life, either programming or something else. But to practice programming, in the first phases I decided to focus on exercises, and from time to time, just to replicate web pages that I like. 

What was your exit strategy?
default vs null - which is a better choice, and why?
Tags: csharp, dotnet, discuss
Published: 2020-10-14 10:50:53

Some background:
Some of the projects I'm in charge of at work are basically mapping projects - we consume data from somewhere, and map that to our own types.  
This is a part of a bigger process that ultimately unifies and translates data from different sources into a single data repository.

As a part of the mappings, we often have methods like this:

```csharp
NormalizedData Normalize(RawData rawData)
{
    return new NormalizedData()
    {
        PropA = rawData.A,
        PropB = rawData.B,
        // more of the same here
    };
}
```
As more data sources are being normalized, the structure of the `NormalizedData` changes (Unfortunately, not my design) and so in an attempt to make things easier to handle new properties being added, I've decided to populate all the properties of the normalized data - even if they are irrelevant to the specific data source:

```csharp
NormalizedData Normalize(RawData rawData)
{
    return new NormalizedData()
    {
        PropA = rawData.A,
        PropB = rawData.B,
        PropC = default,
        PropD = default,
        PropE = rawData.E,
        // more of the same here
    };
}
```

Now - the question is this:
### Should I use `PropC = default,` or `PropC = null,`?

As a side note - leaving all these properties uninitialized is also an option I would consider, but only if the system will ever become stable enough. Currently, I'm forced to revisit projects that are already in production and add some more properties to the normalization process, so it's much easier to see what properties I have to add when all of the previous properties are already listed.
Pros of Using Cloud Migration Services
Tags: devops, development, cloud, cloudmigrationservices
Published: 2020-10-14 10:43:05

These days many companies are looking to switch to cloud based services and solutions. These include switching to cloud based apps like Google Cloud, Microsoft 365, Google drive etc. Although on regular basis on market improvement going on cloud based solutions which lead to consistent success of cloud.

As migrating to cloud based solutions from traditional solutions is confusing and stressful task. That’s the reason that many small or mid sized business owners are looking for independent IT infrastructure and [guest post service providers](https://www.marketlancing.com/categories/guest-post/). Below are some of the pros of getting help of professionals to make this move.

The first advantage of using professional google or Microsoft office for migration services is that they take the complete stress and responsibility from the hands of business owners to effectively manage all the operations.

As compared to larger businesses, which have IT department or professionals carrying out these cloud solutions on a regular basis. What affects the smaller companies?

Tight budget restrictions and less manpower affects the smaller companies. But calling the professional or expert who truly knows about the [cloud migration services](https://cloudeq.com/project-cloud-services/cloud-migration/) is a great idea.

Many business users who don’t have any technical knowledge often recount switching to cloud solutions is a simple task but it’s a time consuming and confusing task if you are not technically good. For this reason software’s like  Microsoft and Google for migration services have become popular.

From this mistakes will be avoided and a smoother throughout strategic plan put into place by the experts and it won’t take business owners time. Zero mistakes with perfect efficiency means smoother transition of your business through cloud services.

The next important point to consider hiring a professional to complete migration process which means company will incorporate several cloud solutions at once.

In several cases, many businesses might get benefit by integration several cloud solutions into their business and a professional [cloud application development](https://cloudeq.com/application-development/cloud-application-development/) company will help and plan things accurately and efficiently without any mistake.
How to find hectoberfest label repos on github?
Tags: github, computerscience
Published: 2020-10-14 10:42:43

I am new to open source world and I will participate hectoberfest challange and I was contribute almost 5 ripos but my hectoberfest progress bar seems it doesn't go anywhere, my contribution still count's 0 then I read contribution guide I was found that I need to contribute under hectoberfest label repos but How do I find hectoberfest label repos for newbie developer.

Thank you in advance:D
Blockchain is the most spending technology these day, choose network carefully. 
Tags: blockchain, news
Published: 2020-10-14 10:42:29

Ethereum creates new blocks every 10 to 20 seconds compared to XinFin’s 2 seconds. Ethereum completes 15 transactions per second to XinFin’s 2000+ per second. And XinFin’s transaction fees are about 1% the cost of Ethereum’s.
This is why some in the community call XinFin, “Ethereum on steroids.” But since XinFin is a fork of Ethereum, it is compatible with the Solidity programming language. That means that any smart contracts that work on Ethereum will also work on XinFin.
Source: https://academy.ivanontech.com/blog/xinfin-explained-exploring-xinfin-s-hybrid-blockchain #other
Excel Formula to Convert Seconds to HH:MM:SS Time Format!!
Tags: excelformula, excelformulas
Published: 2020-10-14 11:50:11

---
title: Excel Formula to Convert Seconds to HH:MM:SS Time Format!!
published: true
date: 2020-10-14 09:10:16 UTC
tags: ExcelFormula,Excelformulas
canonical_url: https://geekexcel.com/excel-formula-to-convert-seconds-to-hhmmss-time-format/
---

## Formula to Convert Seconds to HH:MM:SS Time Format in Excel 365:

In this article, we will explain how to use the **Formula in Excel to Convert the Seconds to HH:MM:SS Time Format**. Get an official version of **MS Excel** from the following link: [https://www.microsoft.com/en-in/microsoft-365/excel](https://www.microsoft.com/en-in/microsoft-365/excel)
## Formula Syntax:

To Convert the Seconds to

Time Format in Excel, use the below formula.

**=[TIME](https://geekexcel.com/how-to-use-time-function-in-excel-365/)([INT](https://geekexcel.com/how-to-use-excel-int-function-in-office-365-with-examples/)(B3/3600),INT([MOD](https://geekexcel.com/how-to-use-excel-mod-function-in-office-365-with-examples/)(B3,3600)/60,MOD(MOD(B3,3600),60))**

### Example:

- In the below screenshot, the input seconds are given in **Column B**.
- After applying the formula, we will get the result in Time Format as shown in the image.

![](https://eadn-wc04-371788.nxedge.io/cdn/wp-content/uploads/2020/07/ma19.png)

## Explanations for Syntax:

- **TIME ** -This function will create time on your worksheet to calculate the correct time from the given input.  The**[TIME function](https://geekexcel.com/how-to-use-time-function-in-excel-365/)**will return the time in Hours. Minutes AM or PM format only.
- **INT ** – In Excel, the [**INT Function**](https://geekexcel.com/how-to-use-excel-int-function-in-office-365-with-examples/) is used to get the integer part of a decimal by rounding down.
- **MOD** – The Main purpose of this function is to return the remainder of the two numbers after division. Read more on the [**MOD**  **Function**](https://geekexcel.com/how-to-use-excel-mod-function-in-office-365-with-examples/).

## Verdict:

From this article, you can get to know about how to use the **formula for Converting Seconds to HH:MM:SS Time Format in Excel Office 365**. Drop your feedback in the comment section. Thanks for visiting **[Geek Excel!!](https://geekexcel.com/)** Keep Learning!!

### Related Articles:

- [**Excel formulas to count unique values in a column!!**](https://geekexcel.com/excel-formulas-to-count-unique-values-in-a-column/)
- [**Excel formulas to Extract Nth word from a text string!!**](https://geekexcel.com/excel-formulas-to-extract-the-nth-word-from-a-text-string/)
- [**Excel formulas for counting comma separated values in a single cell!!**](https://geekexcel.com/excel-formulas-for-counting-comma-separated-values-in-a-single-cell/)
Get up and running with Rails and Travis CI
Tags: devops, ruby, rails, opensource
Published: 2020-10-14 10:28:31

---
title: Get up and running with Rails and Travis CI
published: true
description: How to set up Rails with Travis CI
tags: devops,ruby,rails,opensource
//cover_image: https://blog.travis-ci.com/images/Rails-Cookbook-Blog-Head.png
---

Ruby on Rails, or just Rails, is one of the most popular model-view-controller frameworks in use on the web today. Developed in 2005 by David Heinemeier Hansson (co-founder of [Basecamp](https://basecamp.com/)), it set the precedent for a number of features found in most other MVC frameworks, such as database table creating and view scaffolding, allowing apps to be rapidly created from the structure of the database.

Rails works amazingly with Travis CI, so let's get you building even faster!

# Let's put Travis on Rails! 
You'll obviously want to signup for Travis, be sure to sync your account, open your `Gemfile` and add: 
```ruby
gem 'travis' 
```
Run any migrations you may need to make, then: 

```ruby
bundle install
```
In this use case, we are creating the `.travis.yml` via:

```bash
travis init
```
You don't in theory need to specify a Ruby version, Travis will look at your `ruby-`, but you can definitely specify a Ruby version if you chose to:

```yaml

language: ruby
dist: xenial
rvm: 2.5.8
``` 
That tells Travis what language (Ruby), what `dist` you'll be using (also can be changed) and `rvm` the version of Ruby you'll be using. You can now add `script` which is commands you're telling Travis to run when you triggered a build, so it could look like the following: 

```yaml
script:
 — bundle install — jobs=3 — retry=3
 — bundle exec rake db:create
 — bundle exec rake db:migrate
 — bundle exec rspec
 ```
 
 You can then check your `.travis.yml`'s validity via the linting online application [Travis Lint](http://lint.travis-ci.org/), or do it manually: 
 
 ```bash
 travis lint
 ``` 
 
 Then commit changes and see your Rails app build! We push to GitHub, we'll be doing this in a variety of different ways in the upcoming Cookbook entries, so you'll have a choice on how you'd like to deploy!
 
  ```git
  
 git init
 git add . 
 git commit -m "Travis build" 
 git remote add origin remote repository URL
 git remote -v 
 git push -u origin master
 ```
 
 That's it, you're setup. Travis is on Rails. We have new recipes every other week, so make sure you come back next week for a practical way of using Travis CI!

Originally posted on the [Travis CI blog](https://blog.travis-ci.com/rails-cookbook)
Auth0: How to add custom properties to UserObject?
Tags: javascript, react, webdev, discuss
Published: 2020-10-14 10:04:17

Hello dear community,
i don't know much about Auth0 and need help. And I wonder how to add my own properties when creating a user. just for info i have connected Auth0 to my own MongoDB atlas database.

i want to add a **customId** when creating a user, and this should be a 16-digit random number.

And my userObj should then look something like this:

    {
    _id: ObjectId("5f720126054c87001662a138"),
    connection:"MongoDB"
    client_id:"zoClZ3gZE56iwblHXQ1vgwEcLfYr81Bx"
    email:"gustek@gustek.com"
    username:"gustek"
    password:"$2b$10$dE69gGsDqVfWtmnXZ6EaKetILU"
    tenant:"dev-test"
    email_verified:false
    !!!customId:"9829539769841530"!!!
    }



I mean I found something in the documentation but I do not know how to implement it:
https://auth0.com/docs/users/set-metadata-properties-on-creation

Do I have to do it over this surface?

![Surface](https://dev-to-uploads.s3.amazonaws.com/i/2ax0fd6so08eknfvpiei.png)

As I said before, I have no idea how I could achieve this. I am grateful for every answer!
Saltos duplos
Tags: monitoring, zabbix, zabbixagent, monitoramento
Published: 2023-05-13 18:04:09

---
title: Saltos duplos
published: true
date: 2020-10-13 16:53:13 UTC
tags: monitoring,zabbix,zabbixagent,monitoramento
canonical_url: 
---

![](https://cdn-images-1.medium.com/max/1006/1*dqdxq1rjSSgvXSqLlqvBRQ.png)

Creio que todos temos aquele arquivo .conf de estimação, que guardamos com carinho e usamos sempre que temos liberdade, seja para o Zabbix-Server, Proxy ou Agent. E ontem me deparei com um problema que sua solução me fez adicionar uma ou duas linhas no meu arquivo, e queria compartilhar essa dica por aqui.

Como a grande maioria dos meus clientes são bancos ou financeiras, tenho muitos problemas em questão de liberações internas para que meu proxy alcance redes distintas para validar uma disponibilidade de host ou serviço, visto que para todo tipo de alteração é necessário todo uma burocracia com RDM’s e envolvimento de diversas áreas envolvendo redes, segurança da informação, firewalls de terceiro e etc…

Então nasceu a necessidade de validar a disponibilidade de um link sip para 3 hosts específicos de dentro da rede do cliente.

![](https://cdn-images-1.medium.com/max/659/1*2y-iOUxpgyoBBBQKWCaKuA.png)
_Representação_

O link SIP é enxergado pelos hosts, mas não pelo proxy… e agora?

Para verificar a disponibilidade desse link sip, crio um item como se fosse um “ping extendido”. E para isso, utilizo o marametro “UserParameter”.

Dentro do arquivo de .conf do agent, encontramos o UserParameter e o UnsafeUserParameters.

![](https://cdn-images-1.medium.com/max/668/1*Dh9qgk9MaYSOX4JMfs8AQQ.png)

Para criar o item mencionado, eu adicionei o seguinte texto no meu “UserParameters”

_UserParameter=customping[\*],ping -n 2 -w 1 -4 $1 >nul && echo 1 || echo 0_

Como podemos ver, criei a chave “customping[\*]” no parâmetro, sendo assim, dentro do host, você deve criar um item “Zabbix agent — Ativo” com a chave customping[\*], com o IP destino no lugar do \*. Como o parâmetro possui caracteres especiais, habilito também o UnsafeUserParameters para que não tenha problemas na checagem.

Dessa forma, o valor retornado sera 1 para UP e 0 para Down, sendo assim pode ser usado o “Service State” no mapeamento de valores.

Qualquer duvida sobre a criação do monitoramento, estou sempre a disposição. Até mais !!!