teleren/devto huggingface dataset:
Azure Web app Kudu: overcoming api/zip built-in timeout
Published: 2021-09-15 11:55:49

Azure Web apps comes in with very interesting tool, called Kudu, which is web application itself, designed to service and configure your web application. It exposes several APIs to service you - for example, MsDeploy, zip, zipdeploy. In this post I wish to cover some differences between zip and zipdeploy and how I used zip API to deploy Sitecore Unicorn data.

First of all, I wish to describe my problem - we have huge Sitecore 9 web application, which required to deploy 18000 Unicorn files to CM instance in scope of every release outside of web root to solve issues with long paths (we were deploying at C:\home\N directory).

Initially, I tried to solve this problem with MsDeploy - it seems to be fast and reliable and it is designed to deploy you web application to remote server. It worked, but it took too much time due to retries in-between. As I discovered, deployment of 18000 tiny files would not be the best things MsDeploy is able to handle reliably. So, I started looking in other possibilities and discovered, that Kudu exposes 2 more APIs which could be used for deployment: Zip and ZipDeploy.

## Zip vs ZipDeploy

ZipDeploy have following possibilities

- Delivers files ONLY to webroot (there is some magic which one could do with NPM, but I never finished this exercise)
- Support both sync and async behaviors (async could be required to overcome built in app services hard-coded timeout of 230 seconds per request)
- Smart as MsDeploy - would not update files that have not changed; would remove files which is not present in archive

Zip have following possibilities

- Delivers files almost to any place of web app work drive
- Does not remove files which is not present in archive
- Have only sync behavior
- Continues execution in background even after request have timed out

Following up on my explanation where I required to deploy 18000 tiny yml files for Sitecore Unicorn outside of webroot - I have been left with only option: using zip API. But, most of my tries it required more than 230 seconds to deliver files on web app, which means that I was not able to reliably find out if unzip operation have been finished.

## Solution

I implemented following solution - in each archive with Unicorn files I am adding to the root of archive some unique text file (I am using build number as name and content). From my observations, this file would be extracted last. So, I am feeding api/zip with my Unicorn archive and then, if it fails with timeout, I will just keep asking api/vfs (virtual file system provider) for this file. When file appears there - it means that api/zip have finished it's work and I could proceed with Unicorn import routines. I shall note, that before starting deployment I have to clean up Unicorn folder, as zip API does not remove excessive files.

{% gist https://gist.github.com/akuryan/36ad6be7b943e7d6d9cb96f97c895818 %}

This small powershell script allowed me to solve my issue with deployment
How to display 
the time and date of a given location with PHP
Tags: php, beginners
Published: 2021-09-15 12:43:02

In this second article I try to summarize how to set and display the timestamp according to a given time zone.

Dans ce deuxième article je résume brièvement comment paramétrer et afficher l'horodatage suivant un fuseau horaire donné.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/px9l5b9ui0dnpo3a5qh2.png)
Include&&Require
Tags: difference, php, devweb
Published: 2021-09-15 12:32:23

Comprendre la fatalité entre le Include
et le Require (La différence ).
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ids71dn7aah9a3aua6nj.png)
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u1zdtgnhvlpq9tqp4xn3.png)
🛡🔑 Secretlint 4.0.0: Support ESM rule and secretlint-disable directive
Tags: security, node, tools
Published: 2021-09-15 12:23:05

---
title: "🛡🔑 Secretlint 4.0.0: Support ESM rule and secretlint-disable directive"
published: true
description: "Support ESM rule and secretlint-disable directive"
tags: 
- security
- Nodejs
- Tools
//cover_image: https://direct_url_to_image.jpg
---

[secretlint](https://github.com/secretlint/secretlint) is pluggable linting tool to prevent committing credential like SSH private key, GCP Access token, AWS Access Token, Slack Token, and npm auth token.

It is similar one of ESLint, but it is for security.

## New Features :new:

### ESM rule support [#187](https://github.com/secretlint/secretlint/pull/187)

Secretlint allow to load secretlint rule as ESM(ECMAScript modules).
You can write secretlint rule as ESM.

For more details, pleases see document.

- https://github.com/secretlint/secretlint/blob/master/docs/secretlint-rule.md

:memo: Currently TypeSript + Node.js ESM is hard to work.
Secretlint use some workaround for this. For more details, see next issue.

- [Use native dynamic import() · Issue #197 · secretlint/secretlint](https://github.com/secretlint/secretlint/issues/197)

### Support `secretlint-disable` directive [#195](https://github.com/secretlint/secretlint/pull/195)

[@secretlint/secretlint-rule-filter-comments](https://www.npmjs.com/package/@secretlint/secretlint-rule-filter-comments) support disable comment like `secretlint-disable`.

This rule is included in [@secretlint/secretlint-rule-preset-recommend](./packages/@secretlint/secretlint-rule-preset-recommend).

```
// secretlint-disable -- disable all rules

THIS IS SECRET A
THIS IS SECRET B
THIS IS SECRET C

// secretlint-enable -- enable again

// secretlint-disable-next-line @secretlint/secretlint-rule-secret-alphabet -- disable specific rule in next line
THIS IS SECRET D
THIS IS SECRET E // secretlint-disable-line -- disable current line
```

If you want to use this directive in shellscript, you can use `# secretlint-disable`.

```bash
# secretlint-disable-next-line
echo "THIS IS SECRET, BUT IT WILL BE IGNORED"
```

For more details, see <https://github.com/secretlint/secretlint/blob/master/docs/configuration.md>

## Breaking Changes

### use `export const creator` instead of `export default` [#190](https://github.com/secretlint/secretlint/issues/190)

Secretlint rule should use named export insteadof default export.
It is caused is thatDynamic Import in CommonJS is broken https://github.com/secretlint/secretlint/issues/190

If you have a secretlint rule, please change following.

```diff
- export default creator;
+ export { creator }
```

### Require Node.js 12 and update `engines` [#193](https://github.com/secretlint/secretlint/pull/193)

Now, Secretlint requires Node.js 12+
It aims to support ECMAScript modules.

Secretlint it-self is not [Pure ESM package](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c), but we will make it ESM.

---

Reaction will help us :heart:
Open AI codex
Tags: opensource, ai, machinelearning
Published: 2021-09-15 12:22:12

I got access to Open AI codex.  I was working on OpenAI application. Started created a sample application with input as examples and an question. You can check out at  my first openAI app (https://lnkd.in/ekB68NtV)

The demo is attached below for your reference:https://lnkd.in/eqqRFMGD

I am planning to create a neural sketch based application to generate code - AI Coder. The metadata which drives the application will be the input. Codex will be loaded with different templates for tech stack components. Neural sketch is about learning on generation of the code. The feedback is sent to the AI Coder and the neural sketch improves upon the code generation.
A Nice Developer Joke For Today
Tags: jokes, dailydeveloperjokes
Published: 2021-09-15 12:00:19

---
title: "A Nice Developer Joke For Today"
description: "Check out today's daily developer joke! (a project by Fred Adams at xtrp.io)"
series: "Daily Developer Jokes"
published: true
tags: #jokes, #dailydeveloperjokes
---

Hi there! Here's today's Daily Developer Joke. We hope you enjoy it; it's a good one.

![Joke Image](https://private.xtrp.io/projects/DailyDeveloperJokes/public_image_server/images/5e1259b9b89f4.png)

---

For more jokes, and to submit your own joke to get featured, check out the [Daily Developer Jokes Website](https://dailydeveloperjokes.github.io/). We're also open sourced, so feel free to view [our GitHub Profile](https://github.com/dailydeveloperjokes).

### Leave this post a ❤️ if you liked today's joke, and stay tuned for tomorrow's joke too!

_This joke comes from [Dad-Jokes GitHub Repo by Wes Bos](https://github.com/wesbos/dad-jokes) (thank you!), whose owner has given me permission to use this joke with credit._

<!--
Joke text:
___Q:___ What do you call optimistic front-end developers?

___A:___ Stack half-full developers.
 -->
Launching Public Status Pages for Uptime Monitoring on AppSignal
Published: 2021-09-15 11:56:00

Since the launch of [uptime monitoring](https://blog.appsignal.com/2021/05/20/more-in-one-uptime-monitoring-is-now-available-in-appsignal.html), we have received a lot of positive feedback. There were also a couple of much-requested additional features that we hope to address in this huge update.

## Configurable Regions for Uptime Monitoring

We started uptime monitoring from a few regions: Asia, North America, South America and Europe. But not every app has to be monitored from all regions. It doesn't really matter if performance is poor from South America for a Europe-centric app, for example.

That's why we're introducing an option to select the regions where you'd like to monitor your app:

![Screenshot of regions for AppSignal Uptime Monitoring](https://blog.appsignal.com/images/blog/2021-09/regions.png)

## Public Uptime Status Pages

The most requested feature was to somehow expose uptime monitoring metrics as public status pages.

Starting today, it's now possible to create public status pages for your uptime monitoring metrics:

![Screenshot of AppSignal Public Status Page](https://blog.appsignal.com/images/blog/2021-09/public-status-page.png)

You're able to select multiple uptime monitors across your organization to show your uptime on this status page:

![Screenshot of AppSignal Public Status Page Form](https://blog.appsignal.com/images/blog/2021-09/public-status-page-form.png)

These uptime monitors will be shown on the public status page, where customers can click to see specific details about each monitor:

![Screenshot of AppSignal Public Status Page Details Panel](https://blog.appsignal.com/images/blog/2021-09/public-status-page-details.png)

You can also post updates to this status page to let your customers know about any issues. The state of the page is determined by these updates, so you have full control over the status:

![Screenshot of AppSignal Public Status Pages](https://blog.appsignal.com/images/blog/2021-09/public-status-pages.png)

## Future Uptime Monitoring Features

Right now, status pages will run on a customizable subdomain of our `appsignal-status.com` domain (e.g. `<yourcompany>.appsignal-status.com`). We're planning to release custom domains in the near future.

Do you have any other ideas for public status pages? Don't hesitate to [let us know](mailto:support@appsignal.com).

## Uptime Monitoring Sprinkled with Stroopwafels

If you haven't had the chance to [test AppSignal and uptime monitoring](https://www.appsignal.com/tour/uptime-monitoring), here's what you need to know:

- Uptime monitoring is included alongside all of our features. 
- We have a free trial option that doesn't require a credit card.
- AppSignal supports Node.js, Ruby, and Elixir projects.
- We're free for open source & for good projects.
- We ship stroopwafels to our trial users on request.

Need we say more? 🍪
De-stress with Risk Analysis
Tags: softwaredevelopment, teamwork, agile
Published: 2021-09-15 11:34:21

---
title: De-stress with Risk Analysis
published: true
date: 2021-09-15 11:31:21 UTC
tags: softwaredevelopment,teamwork,agile
canonical_url: https://medium.com/chingu/de-stress-with-risk-analysis-275cafaf5995
---

Sprint 3 — Wednesday

![](https://cdn-images-1.medium.com/max/1024/1*dg-CEFVxCtizENgbVoLbBA.jpeg)<figcaption>Photo by <a href="https://unsplash.com/@punttim?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Tim Gouw</a> on <a href="https://unsplash.com/s/photos/stress?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption>

**_Risk analysis_** isn’t something we often think about as being a team building tool. In fact, it’s something we might normally read about if we’re having trouble getting to sleep.

But, it can be quite effective for not just mitigating risk, but also for defusing potentially stressful situations in a team.

> One source of stress is a problem with no clear path for resolution

Think about it. Many times stress is the results from a problem which has no clear path for a resolution. The team is confronted at that point of maximum stress with even more stress. Kind of like trying to put a fire out with gasoline.

Taking a short amount of time at the start of the project to list the things with the highest probability of “going wrong” and creating a _very very high-level plan_ for how you will solve them can bypass some of the stress if they do occur.

This shouldn’t be a lengthy exercise and keep in mind you aren’t coming up with all the technical steps to solve it. Only the plan or direction you’ll take if the situation materializes.

[Application Development: A Risky Business](https://medium.com/@jdmedlock/application-development-a-risky-business-eba4f74c8746)

### Before you Go!

Chingu helps you to get out of “_Tutorial Purgatory_” by transforming what you’ve learned into experience. The experience to boost your Developer career and help you get jobs.

You can learn more about **Chingu** & how to join us at [https://chingu.io](https://chingu.io/)

* * *
Wednesday Links - Edition 2021-09-15
Tags: java, jvm, spring, kotlin
Published: 2021-09-15 11:28:13

Java 17 is here: 14 JEPs with exciting new language and JVM features (8 min)🎉
https://blogs.oracle.com/javamagazine/java-jdk-17-generally-available

Kotlin type inference for recursive generic types (30 sec)🌀
https://twitter.com/sdeleuze/status/1435518813425049606

IntelliJ IDEA 2021.2.2 (10 min)🎉
https://blog.jetbrains.com/idea/2021/07/intellij-idea-2021-2/

JUnit 5.8 is released (1m)🎉
https://twitter.com/junitteam/status/1437131139194494976

@RunWith deprecated in JUnit 5.8 (30 sec)🎉
https://twitter.com/sam_brannen/status/1435959271745892353

Java 17 officially supported in Spring Boot 2.5.5 (30 sec)🎉
https://twitter.com/snicoll/status/1438009506135515136

TravisCI leak (1m)🦹
https://twitter.com/peter_szilagyi/status/1437646118700175360

TIL availableProcessors is dynamic during JVM lifetime (30 sec)🔌
https://twitter.com/mjduigou/status/1435748101784936448

Exploring 120 years of timezones (4 min)🕛
https://blog.scottlogic.com/2021/09/14/120-years-timezone.html

Ship / Show / Ask - A modern branching strategy (7 min)🫐
https://martinfowler.com/articles/ship-show-ask.html

Modern file input/output with the Java Path API and Files helper methods (12 min)📁
https://blogs.oracle.com/javamagazine/path-files-input-output

Efficient Parsing of Reactive Buffer Streams (4 min)🚿
https://spring.io/blog/2021/09/14/efficient-parsing-of-reactive-buffer-streams

The art of long-term support and what LTS means for the Java ecosystem (4 min)⚖️
https://blogs.oracle.com/javamagazine/java-long-term-support-lts

JDK 17 JFR improvements (30 sec)🪰
https://twitter.com/ErikGahlin/status/1437810320517513217

JDK 17 Security Enhancements (6 min)🔒
https://seanjmullan.org/blog/2021/09/14/jdk17

Moving Java Forward Even Faster (1 min)🚄
https://mreinhold.org/blog/forward-even-faster

Brief Intro to the Template Interpreter in OpenJDK (7 min)📄
http://albertnetymk.github.io/2021/08/03/template_interpreter/

Annotation-free Spring (6 min)✨
https://blog.frankel.ch/annotation-free-spring/

Design and Reality (8 min)🏗️
https://verraes.net/2021/09/design-and-reality/
UI Dev Newsletter #74
Tags: html, css, javascript, webdev
Published: 2021-09-15 11:18:41

[Less Absolute Positioning With Modern CSS](https://bit.ly/3Eb40Gb)
Ahmad Shadeed explores a few use-cases where absolute positioning isn’t needed anymore.


[Building a split-button component](https://bit.ly/3tyyj4N)
Adam Argyle shares a foundational overview of how to build an accessible split-button component.


[Vanilla JS is a web performance decision](https://bit.ly/3E2N2K2)
Chris Ferdinandi explains why you should use as little JavaScript as possible if you care about your users.


[How to optimize button microcopy](https://bit.ly/2YFWtyO)
Maria Panagiotidi shares seven suggestions with examples about how to write better call-to-action microcopy.


[4 Lesser-Known Emmet Tricks To Speed Up Your Coding](https://bit.ly/2VAuorz)
Mikael Ainalem shares helpful Emmet tips, including chaining CSS commands and setting the size of image elements.


[Pre-Selling a Programming Course and Making $550k in Revenue](https://bit.ly/3novUIK)
Nico Cerdeira shares an interview with a Successful Startup Founder Josh Comeau.


[Remote OK VS Code](https://bit.ly/3z6ks71)
Pieter Levels shares a fully-functional fake VS Code so, if you're a programmer, you too can browse remote jobs in your office without your boss finding out.


[Bonsai](https://bit.ly/3lfXTHV)
Web-browser for research that helps programmers think clearly.


## Twitter thread

[CSS resources (fonts, background images) are not requested by your CSS, but by the DOM node that needs them](https://bit.ly/3k6HaYt)
Harry Roberts explains how the speed of the DOM determines CSS-resource discovery, not the speed of the CSS itself.

## Self-promotion

[How to find and insert Unicode symbols in HTML](https://bit.ly/3nqKKyE)
I have published an article about my preferred way of inserting Unicode characters in HTML.


**Happy coding!**

[Subscribe to the newsletter here!](https://buttondown.email/starbist)
How Automation Testing Services Beneficial for Your Business

Published: 2021-09-15 11:18:15

As per demand and result, Automation Testing is the most trending and the client suggested technology of 2021. Test Automation has become the key to the development process, we can also say, adoption of automated testing has become the most priority task for companies who want to work on  Agile and DevOps methodologies. 

To overcome the challenges of manual software testing, <a href="https://www.testrigtechnologies.com/service/automation-testing/">Automation testing services</a> comes into the picture, but in many situations, manual software testing may lead to failure such as complex code, big projects, need multiple manual testers, etc. To avoid failures, a huge number of companies are rolling toward test automation software testing, where the testing result comes in good manner with fewer errors.

If you are still working on manual testing only, here’re the key benefits of performing test automation for your business.

<h3>Benefits of Automation Testing</h3>

1- You can save time and cost by running test automation again without any additional cost.
2- Improve work accuracy.
3- Improve quality with higher coverage.
4- Automated test cases can be reused.
5- No need to monitor, It can be performed remotely.
6- Better security.
7- Improve customer satisfaction 

<h3> Final Words:</h3>
Apart from the above points, Automation testing helps companies to improve the QA testing process and As a result, your team improves their confidence and skillets.
What is Web3? 
Tags: webdev
Published: 2021-09-15 09:56:07

There are a few fundamental differences between Web2 and Web3, but decentralization is at its core.

Web3 enhances the internet as we know it today with a few other added characteristics. Web3 is:

Verifiable
Trustless
Self-governing
Permissionless
Stateful
Native built-in payments
In Web3, developers don't build and deploy applications that run on a single server or that store their data in a single database (usually hosted on and managed by a single cloud provider).

Instead, Web3 applications either run on blockchains, decentralized networks of many peer to peer nodes (servers), or a combination of the two that forms a cryptoeconomic protocol. These apps are often referred to as dapps (decentralized apps), and you will see that term used often in the Web3 space.

To achieve a stable and secure decentralized network, network participants (developers) are incentivized and compete to provide the highest quality services to anyone using the service.

When you hear about Web3, you'll notice that cryptocurrency is often part of the conversation. This is because cryptocurrency plays a big role in many of these protocols. It provides a financial incentive (tokens) for anyone who wants to participate in creating, governing, or improving one of the projects themselves.
Socket.IO Zero To Hero | A Real-Time Chat Application
Tags: showdev, programming, javascript, computerscience
Published: 2021-09-15 10:21:09

Want to learn socket.io with a resume based project.
SO don't wait lets start in this video, I explain how sockets build and work.

In this video, we will learn how to made socket based project and we will made a chat app at end of this project which real time based or you can treat as public room where user can write message to all in that group.

Have fun and for tutorial link is given below:

link: https://youtu.be/1FR2hyNQw84

Thank you for reading!!
Roadmap to Oracle
Tags: computerscience, programming, javascript, oop
Published: 2021-09-15 10:15:21

Hi Everyone,Today me and Tushar Goel. He was placed at Oracle and also doing his intern at Juspay. So by the end of the video, we have a full roadmap and tips for Oracle.

Have a look a this:https://youtu.be/y4_rSeXarm8

Thanks for reading !!
calculator
Tags: calculator
Published: 2021-09-15 09:58:16

You probably heard about cryptocurrency calculators, but different types of calculators solve different tasks: quick profit calculations, converting coins, estimating your earnings from mining hardware, etc. Let’s see how each of them works and how you can use them.


Crypto trading profit calculators
The most straightforward way to calculate your profit is as follows:


Subtract the buying price from the selling price and multiply the result by transaction size.


E.g., you buy 2 Bitcoins (BTC) at $17.200 and sell them at a price of $19.800. 2 Bitcoins (BTC) is the size of your transaction.


($19.800-$17.200)*2=$5.200


This means you have $5.200 of profit. But this doesn’t account for fees or other details.


A profit calculator can save time if you often conduct a number of these calculations and reduces the chance of error. We’ll review just a couple of calculators just to show you what they do.


Sabe calculator
Sabe.io is an educational platform that offers a lot of tutorials, classes, and several tools. Among the provided tools you can find a simple profit calculator.


To calculate your profits, you just need to pick a currency, enter the amount and the price that you bought it for. The calculator will then use the current price from CoinMarketCap and calculate how much you gained or lost, depending on how the price has changed since your purchase.
https://arztoday.com/calculator/