teleren/devto huggingface dataset:
It's all in the details! (.com)
Tags: ci, jenkins, bug, testing
Published: 2022-08-26 00:20:03

## When is “none” not really empty - this time, in DNS (it’s always DNS, right?)

Last week we had an interesting issue pop up on Lagoon. We use continuous integration (CI) widely, and it didn’t seem to be working. Troubleshooting the usual suspects (ahem, Jenkins), told us nothing. Jobs just hung indefinitely until they were killed, in both Jenkins and Github Actions.

We managed to narrow down the issue to Lagoon waiting an excessive amount of time when it created a project, causing subsequent API requests to timeout without an error message, but this couldn’t be reproduced locally, or in another similar setup in a different CI repo.

It turns out that we were using “none.com” as the placeholder URL for a deprecated Harbor configuration (installing Harbor connected to lagoon-core) - which used to work just fine! Until, it would seem, the owners of that domain set it to just eat any requests for 5 minutes, instead of returning a value, or returning nothing at all. Neither the alternate (and local) configurations we tested were using the none.com domain set as a fallback, hence their success!

From now on, we’ll be using the .invalid domain - it’s guaranteed to never return a value (https://www.rfc-editor.org/rfc/rfc6761#section-6.4)! We’re also working hard to remove this now obsoleted code from the codebase.

On the bright side, we’ve been able to update a lot of the test harness to add in useful debug and failure options, and have also identified an additional (unrelated) stability issue.
Blog: 2022-08-26: Content & Tooling Team Status Update
Tags: puppet, content, updates
Published: 2022-09-09 14:47:09

---
title: Blog: 2022-08-26: Content & Tooling Team Status Update
published: true
date: 2022-08-26 00:00:00 UTC
tags: puppet, content, updates
canonical_url: https://puppetlabs.github.io/content-and-tooling-team/blog/updates/2022-08-26-status-update/
---

## Take it easy, it’s Friday!!

Hey guys, back again with another friday update. As the end of summer starts to approach, we have been busy working on a few important updates. Firstly, as part of our latest maintenance patch, we have merged a few important changes on the MySQL and Docker modules and released a new major version for them. Be sure to check them out!

We also want to take this chance to remind the community that our team is moving away from the MODULES project and, as such, any (new or old) issues or bug reports with our modules should be raised in GitHub at the appropriate section. This helps us keep better track of our current workload and be more efficient around the issue resolution area.

Finally, it’s worth mentioning that, due to the bank holiday, we are not going be holding a community day on Monday 29th.

And that’s it, folks. See you next Friday and enjoy your weekend!

## Community Contributions

We’d like to thank the following people in the Puppet Community for their contributions over this past week:

- [`puppetlabs-apache#2289`](https://github.com/puppetlabs/puppetlabs-apache/pull/2289): “Add support for all proxy schemes, not just https://”, thanks to [canth1](https://github.com/canth1) and the following people who helped get it over the line ([ekohl](https://github.com/ekohl))
- [`puppetlabs-postgresql#1363`](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1363): “Fix puppet-strings documentation”, thanks to [ekohl](https://github.com/ekohl)
- [`puppetlabs-postgresql#1356`](https://github.com/puppetlabs/puppetlabs-postgresql/pull/1356): “Only require password when used”, thanks to [arjenz](https://github.com/arjenz) and the following people who helped get it over the line ([ekohl](https://github.com/ekohl))
- [`puppetlabs-tomcat#491`](https://github.com/puppetlabs/puppetlabs-tomcat/pull/491): “Allow usage of Context/Resources”, thanks to [tuxmea](https://github.com/tuxmea)

## New Module / Gem Releases

The following modules were released this week:

- [`puppetlabs-docker`](https://github.com/puppetlabs/puppetlabs-docker) (`5.0.0`)

- [`puppetlabs-postgresql`](https://github.com/puppetlabs/puppetlabs-postgresql) (`8.2.1`)

- [`puppetlabs-sqlserver`](https://github.com/puppetlabs/puppetlabs-sqlserver) (`3.2.0`)

- [`puppetlabs-mysql`](https://github.com/puppetlabs/puppetlabs-mysql)(`13.0.0`)
Chrome插件开发 - Popup weather extension
Published: 2023-08-13 02:18:12

---
title: Chrome插件开发 - Popup weather extension
published: true
date: 2022-08-26 00:00:00 UTC
tags: 
canonical_url: https://manon.icu/blog/translate/build-chrome-extensions/popup-weather-extension
---

在上一篇文章，当创建新菜单的时候，可以加载当前位置的天气数据，这章将学习创建弹窗插件。

## 创建小工具

新建`src/Weather.jsx`

```jsx
import {useEffect, useState} from 'react'

export default function Weather() {
  const [latLng, setLatLng] = useState({})
  const [data, setData] = useState(null)
  useEffect(() => {
    if (!latLng.lat && !latLng.long) {
      navigator.geolocation.getCurrentPosition(function (position) {
        setLatLng({
          lat: position.coords.latitude,
          long: position.coords.longitude
        })
      })
      return
    }
    if (!data) {
      fetch(
        `${import.meta.env.VITE_APP_API_URL}/weather/?lat=${latLng.lat}&lon=${
          latLng.long
        }&units=metric&APPID=${import.meta.env.VITE_APP_API_KEY}`
      )
        .then((res) => res.json())
        .then((result) => setData(result))
    }
  }, [latLng])

  return (
    <div>
      <h2>The weather today ☁️</h2>
      <br />
      {!data ? (
        <p>Loading...</p>
      ) : (
        <>
          <p>Weather for: {data.name}</p>
          <p>
            Temp: {data.main.temp}° ({data.weather[0].main})
          </p>
        </>
      )}
    </div>
  )
}
```

更改`App.jsx`

```jsx
import Weather from './Weather'

export function App() {
  return (
    <div className="flex flex-col items-center justify-center w-screen h-screen bg-indigo-400 text-6xl font-bold text-white">
      <Weather />
    </div>
  )
}
```

![Xasl2s](https://cdn.jsdelivr.net/gh/manonicu/pics@master/uPic/Xasl2s.jpg)

在弹窗点击右键，会显示开发者工具，提示未获取`地理位置`权限，在`manifest.json`中添加如下:

```json
{
  "permissions": ["geolocation"]
}
```

重新构建并加载即可。

![XEu6jl](https://cdn.jsdelivr.net/gh/manonicu/pics@master/uPic/XEu6jl.jpg)

## Source Code

[【Source Code】](https://github.com/rebelchris/popup-extension/tree/weather)
Day 622 : I Remember
Tags: hiphop, code, coding, lifelongdev
Published: 2022-08-25 22:53:07

_liner notes_:
- Professional : Spent the day learning some technology that I have not either used or seen for a long time. Got a sample demo started but it looks like an SDK may not be compatible with the platform. I'll do some more research.

- Personal : Last night, I got the translation of the result from the speech to text working. Created a serverless function that will do the translations. In the admin dashboard, I can set the target language. I'm saving the translations and speech to text results. Studied a bunch of Japanese. Getting some high scores so it looks like I remember a lot of the characters. Also watched a couple of episodes of "Sandman" before going to sleep.

![Wooden walkway path with a wooden handrail on the left going through a forest in Lynn Canyon, BC, CAN](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7vp1o5py2yqb8y1a3c7d.jpg)

Going to go through some tracks for the radio show. I'll need to load up on tracks since I won't be taking the large laptop that I use to edit tracks. Now that the backend/admin dashboard has the translation functionality working, I just need to show it on the front-end of my side project. Once I get that working, it shouldn't be much more work to get it working on another side project. I think the new episode of "She Hulk" is live so I'll watch that and an episode of "Sandman" to end off the night.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube 2dp8PCKlHZs %}
Some advices for working market
Tags: beginners, career, feedback, discuss
Published: 2022-08-25 23:35:00

Hello my name is Hamklien, so I'm near to finish my career (4 months to be exact), i have tried to take courage to apply as intern in some companies, but i don't have enough confidence, i want to apply in some companies in contries like USA or even in my country  Costa Rica, I've been learning technologies like react and node to improve my hard skills.

Can someone gimme some advices? I will be so glad (≧▽≦)
Paracetamol.js💊| #183: Explica este código JavaScript
Tags: javascript, webdev, spanish, programming
Published: 2022-08-25 23:12:49

## **<center>Explica este código JavaScript</center>**
#### <center>**Dificultad:** <mark>Básico</mark></center>

```js
const obj = {
  ["HELLO".toLowerCase()]: "hola mundo",
  ['----prop'.slice(4)]: "hi",
}

console.log(obj?.hello)
console.log(obj.prop)
```

A. `null`, `hi`
B. `undefined`, `hi`
C. `hola mundo`, `hi`
D. `hola mundo`, `undefined`

Respuesta en el primer comentario.

---
How to add custom CSS to the admin area in WordPress
Tags: css, wordpress
Published: 2022-08-27 16:35:50

---
title: How to add custom CSS to the admin area in WordPress
published: true
date: 2022-08-25 22:36:15 UTC
tags: CSS,WordPress
canonical_url: https://davidloor.com/2022/08/25/how-to-add-custom-css-to-the-admin-area-in-wordpress/
---

1.- Create a css file in your custom theme where you want to add the styling.

2.- Implement the **admin\_enqueue\_scripts** action in a custom plugin or the functions.php file of your theme, like this:

```
/**
 * @return void
 */
function admin_style() {
	wp_enqueue_style('admin-styles', get_stylesheet_directory_uri().'/assets/css/admin-style.css');
}
add_action('admin_enqueue_scripts', 'admin_style');
```
Golang perk series : underlying type #8
Tags: webdev, javascript, node, go
Published: 2022-08-25 22:17:47

Just like for you, underlying types is a new subject for me as well . For a starter I am sharing this codebase , whereas I defined a function & method as 2 in 1 in order not only to touch each case at once, but show that they technically could be method & function simultaneously :

{% replit @projektorius96/underlyingtypesgo %}

---

Yes, I know, I have promised you interfaces, they coming for sure soon !
10 lines of code that will save your life
Tags: elasticsearch, monitoring, database, tutorial
Published: 2022-08-25 22:03:00

Do you really control how much your Web application is going to cost in terms of bandwidth being used? Have you anticipated potential huge bills?
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/45k5bcd2o090c3k1gic5.gif)
 
Most of the cloud providers are now basing their pricing on bandwidth usage, which is really smart as this is not something as a developer we usually handle and monitor...

Unless you do the following below, you will never have any clue about how much data your application is retrieving from the database or from any server every day and so how much the bill will be for your boss at the end of the month for such database or server.

If bad things happen, it will be also very difficult for you to understand which query from the hundreds you do is generating too much traffic…

Here is an example of what you could do when querying a Firebase database. It could be another database or a server instead, the logic would be exactly the same:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hk3c2pijdye8wsa7horw.png)

**What we do here is that for each query we do to the DB, we track the path of such query (could be the table name for a SQL DB) and how much data in Bytes we are retrieving from such query.**

Then every 3 minutes, we build an JSON object with all these different path values we queried and for each, the total number of Bytes of data we retrieved from it.

Such JSON is then sent to Elasticsearch Cloud.

We can also add the information regarding the total session usage of the user and the user ID.

This way you can easily build a visualization in Elasticsearch giving you per user (or for all) how much data is being retrieved from the DB.

**You can build a monitoring dashboard this way, and also set email alerts based on a total bandwidth threshold you may not want to go over.**

**When something bad happens, you can easily retrieve the usage peak, which query generated it and which user too.**

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pdljknnojh556phnp8m0.png)

You can get an Elasticsearch cloud instance for 20US$ and this will really save your life when things get bad…

If you are interested in understanding more about the Elasticsearch configuration part, let me know!

I hope this article helped.

Feel free to visit our meeting and collaboration platform [tipicalls.com](https://tipicalls.com/)

Bye
SubDomain/SubFolder Website Traffic
Published: 2022-08-25 21:51:19

I'm wanting to create a website that lets user look at the popularity of webnovels/translated novels. I'm trying to integrate website traffic API's into ASP.NET, the goal of this is to get an accurate popularity and ranking on certain webnovel website pages. None of the API's that I have looked into track subdomains, they only seem to track the actual website. Most of them require subscriptions as well.

Is there an API that can do this?
Treating Dev Bandwidth as Your Most Valuable Resource w/ Stripe’s Head of Engineering, Smruti Patel
Tags: podcast, productivity, management, devops
Published: 2022-08-25 21:32:35

The unofficial first rule of engineering: When the minds behind the world’s most valuable startup, Stripe, want to talk about making better dev orgs, you listen.

In this episode of Dev Interrupted, Stripe’s Head of Engineering Smruti Patel joined us to talk about the daily, weekly and yearly engineering decisions that have engineered the company’s meteoric success.

Smruti has a gift for making the logic behind make-or-break strategic decisions digestible for every engineer, regardless of where they are on the company ladder.

With a breadth of wisdom on what it takes to make tough decisions based on tradeoffs, opportunity cost and developer bandwidth, Smruti Patel’s insights can be applied to any org – even ones worth less than $100 billion!

{% spotify spotify:episode:6NBLBiIEcnIrF0jOMmP3bl %}

## Episode Highlights Include:
* (1:53) Smruti's road to Stripe
* (4:49) Engineering resource & bandwidth decision making
* (9:37) Opportunity cost checklist
* (15:03) Framework checks & balances
* (20:28) How to think about tradeoffs
* (30:38) Current macroeconomic environment 
* (34:29) What motivates teams at Stripe?
* (39:01) Smruti's self-evaluation initiative 

While you’re here, check out this video from [our YouTube channel](https://www.youtube.com/c/DevInterrupted?sub_confirmation=1), and be sure to like and [subscribe](https://www.youtube.com/c/DevInterrupted?sub_confirmation=1) when you do!

{% youtube zv4O2x1fehs %}

## [You’re invited to Interact on October 25th!](https://devinterrupted.com/event/interact/?utm_source=dev.to&utm_medium=referral&utm_campaign=202210%20-%20Event%20-%20Interact%20-%20Referral%20-%20Distro%20-%20Podcast%20Blog)

*Want to know how engineers at Slack and Stripe connect their dev teams’ work to the business bottom line? Or how team leads at Shopify and CircleCI keep elite cycle time while minimizing dev burnout and maximizing retention?*

*These are just two of the topics we’ll tackle at [Interact](https://devinterrupted.com/event/interact/?utm_source=dev.to&utm_medium=referral&utm_campaign=202210%20-%20Event%20-%20Interact%20-%20Referral%20-%20Distro%20-%20Podcast%20Blog) on October 25th.* 

*A* ***free, virtual, community-driven engineering leadership conference,*** *[Interact](https://devinterrupted.com/event/interact/?utm_source=dev.to&utm_medium=referral&utm_campaign=202210%20-%20Event%20-%20Interact%20-%20Referral%20-%20Distro%20-%20Podcast%20Blog) is a one-day event featuring over 25 of the most respected minds in development, all selected by the thousands of engineering leaders in the Dev Interrupted community.* 

## [Register now!](https://devinterrupted.com/event/interact/?utm_source=dev.to&utm_medium=referral&utm_campaign=202210%20-%20Event%20-%20Interact%20-%20Referral%20-%20Distro%20-%20Podcast%20Blog)


![Register now!](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p9xpvwbw5xfawom98qga.jpg)
Why you should switch to pNpM?
Tags: webdev, npm, programming
Published: 2022-08-25 21:28:00

If you are a developer, you know the hardships one faces while installing all the dependencies for a project and the amount of time it takes. 
Worry not, pNpM is here with a solution.

## What is pNpM?
Performant NPM is a fast, disk space efficient package manager.

You can install pnpm in your system using:
`npm install -g pnpm`

You can use all the npm commands by using pnpm equivalent. 
Example: `pnpm i`

## pnpm is better than yarn and npm 
1. - It is 3x faster and more efficient than npm and yarn 
2. - pnpm has better disk space efficiency.
3. - It creates non-flat node_modules directly which allows you to share dependencies of the same versions across projects.
4. - It is more secure as compared to yarn and npm.

[![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hqmyq1twcon9ndguelyd.png)](https://www.buymeacoffee.com/hardiquedasore)

Follow us on [Instagram ](https://www.instagram.com/commitandpush/)
insert a <script><script/> tag in react
Published: 2022-08-25 21:01:01

I tried inserting the script tag in the body below the "root" id div like below and it worked.


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/3h9x1gai5gcqc0jqxog2.png)



However I would rather insert it into a component to be able to manipulate it and when I insert this tag into a component like this it doesn't work.



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5jaoxxd2gdnm7q8dw3m1.png)
A Star Algorithm with UI
Tags: java, swing, programming, algorithms
Published: 2022-08-25 20:52:52

#What is A Star Algorithm?
A* algorithm is a search algorithm usually used in path finding. It guarantees to find a complete and optimal path if there is one (the target is not surrounded by walls on all sides). Since it is an informed search, we have the control over where the target is and the distance between each nodes.

#Why did I do it?
A* algorithm is one of the most frequent algorithms that I used during my undergraduate study. The map system for the hospital app, robot which explores the maze, and other projects all uses A* for path finding. Since I lost access to most of the project code, I would really like to rewrite the algorithm. I could also use this algorithm in the future projects if needed.

#How did I do it?
I first implemented A* on nodes connected with edges. This was represented using a graph. I used priority queue for the algorithm because this data structure perfectly blends with A*'s property(v.0.1.0 release on GitHub).
##Part 2
A* is cool in action. I decided to visualize the A* using a simple interactive UI. The Swing library was my first UI library, it's enough for a simple UI to use.

#The Program
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bo6c7yj9v3sqfz7f88po.PNG)
(The start of the program.)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/szq9f95aedhf6c0qmgoe.PNG)
(When we click on the Manual A* button, it proceeds with 1 step of A* search.)
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xxsgx2unwxh8qrzd0xsc.PNG)
(This is A* auto mode. This finds the path with 1 click.)

# Time & Space Complexity
## Time Complexity
In the worst case scenario, the time complexity is O(b^d), where b is the branching factor, and d is the depth of the solution. The branching factor is how many nodes we are comparing in an iteration. The depth is the the minimum number of nodes we need to take to reach the target(shortest path). The time complexity is exponential, because each node has 4 (or 8 if including diagonal nodes) neighbors to expand.
## Space Complexity
The space complexity is the same as Time Complexity; O(b^d).
Day 138: Bittersweet...
Published: 2022-08-25 20:49:33

Hi!
Today after a long time I published another tutorial article about setting up Jasmine testing framework in node and it was good since I worked on most of it today so I was busy writing and researching

it was a bittersweet day due to the fact I fell too ill in the afternoon to work on anything else and If it remain the case tomorrow it will be the same tomorrow so hopefully I will get better

see you soon...

Signing off...
Is there a feature extraction process that can apply to SVR, RNN and Random Forests?
Published: 2022-08-25 20:49:22

My aim is to find the optimal of  3 models, RNN, Random Forests and SVM. My data set is classic stock price with variables  Open, Close, High, Low, Adj Close and Volume

I need a feature extraction process that'll help me apply the same features to train the 3 different models, so that I can compare the results.
Developers join to get $35,000 for your future project in September!
Tags: developers, web3
Published: 2022-08-25 20:45:00

All you have to do is suggest a cool project for Axelar and get a grant!

Even if you don’t win, you’ll earn $500 just for submitting a valid project.

Why should you join?

Well besides *money* and ✨ f o l l o w i n g  y o u r  d r e a m s ✨, there’s:

- Getting in front of the Axela
 grants program
- Accessing the best data in Web3 with Flipside Crypto
- Meeting other builders and growing your team
- Making Web3 useful

Event details:

Registration opens August 30th and closes at midnight PT on September 13th.

All information is available here - https://flipsidecrypto.xyz/buildathon
Jason Ma from Axelar about the future of web3 interconnectivity
Tags: web3, blockchain, developer, crosschain
Published: 2022-08-25 20:34:58


CryptoSlate caught up with Jason Ma of Axelar to discuss the future of cross-chain interoperability within web3. Jason explains how cross-chain NFTs could provide new opportunities within the metaverse and a wealth of other alpha from the space.

Watch the [full video here](https://cryptoslate.com/videos/is-the-future-of-web3-cross-chain-interoperability-jason-ma-from-alexlar-answers/#:~:text=Watch%20the%20full-,video%20here,-.).
red pill or blue pill?
Tags: devjournal, programming, beginners
Published: 2022-08-25 20:33:52

I've had recent stories regarding two options we DEVs tend to have throughout our career. Most of us know that it's "an easy decision", but it's a "little more complicated than that.

Recently, one situation was regarding being backed with complements and being "trusted" with your role by none other than the company's president. - I have to be honest. It feels good getting such good feedback.

the other is being noticed by a famous tech juggernaut and being invited to an interview. - I also admit this feels fantastic! :D

Both has happened, but,  which one to take? - I guess next week we'll find out.
Have you ever used ArangoDb? Why? Why not?
Tags: discuss, database
Published: 2022-08-25 20:33:07

Hi! I recently came across [ArangoDb](https://www.arangodb.com/) and used in some POCs, but I really want to know if someone here already used it in a Real World environment or even if chose to not use in a production environment. So... have you ever used ArangoDb? Why? Why not?