teleren/devto huggingface dataset:
DevX Status Update
Tags: community, puppet
Published: 2023-11-17 17:55:25

---
title: DevX Status Update
published: true
date: 2023-11-17 00:00:00 UTC
tags: community, puppet
canonical_url: https://puppetlabs.github.io/content-and-tooling-team/blog/updates/2023-11-17-devx-status-update/
---

## Hello!

Hello! Happy Friday! That’s another week done and dusted, and if you live in the US all of us here in the DevX team would like to wish you a safe and happy thanksgiving next week. Make sure to eat plenty, and enjoy your time with some family and friends.

Meanwhile, here in Belfast, you can’t help but smell christmas in the air. Amplified by the arrival of the much anticipated annual christmas markets at City Hall this weekend. We have an office planned outting next week to sample some of the food, (and who knows maybe even a beer or some mulled wine?) which come from all around the globe.

 ![Belfast Christmas Market](https://puppetlabs.github.io/content-and-tooling-team/images/belfast-christmas-market-4.jpg)

### Puppet.Dsc & Puppet 8

Now, back to a more professional note, this is an exciting announcement for all of you Puppet Dsc module users.

All [puppet dsc modules](https://forge.puppet.com/modules/dsc) generated by [Puppet.Dsc](https://github.com/puppetlabs/Puppet.Dsc) will now ship with Puppet 8 support by default, and naturally, this means Puppet 6 is no longer supported in these new releases. So, if you are unable to make the upgrade to Puppet 8, we recommend to pin your modules in your Puppetfiles, metadata.json and elsewhere to help ensure you don’t see any unexpected behaviour in your environemnts.

## New Gem Releases

- [`puppet_litmus`](https://rubygems.org/gems/puppet_litmus) (`1.2.1`)
How to use Self-Service Onboarding in Harness Internal Developer Portal
Tags: idp, backstage, platformengineering, productivity
Published: 2023-11-17 16:57:36

In this tutorial, [Debabrata](https://www.linkedin.com/in/debanitr/) a Developer Relations Engineer at Harness, dives into the essentials of creating a basic service onboarding pipeline within the [Harness Internal Developer Portal (IDP)](https://www.harness.io/products/internal-developer-portal), that runs on Backstage v1.17. This feature is a game-changer for platform engineers and developers looking to streamline their application development processes.


**What You'll Learn:**

1. **🛠️ Setting Up the Pipeline:** We start by guiding you through the process of creating a Harness pipeline for service onboarding, including the creation of Build or Custom stages.
2. **📝 Using Software Templates:** Learn how to interact with software templates to collect user requirements efficiently.
3. **🔄 Automating Service Onboarding:** Discover how the Harness pipeline automates the onboarding of new services, from fetching skeleton code to creating new repositories.
4. **🐍 Scripting with Cookiecutter:** We'll show you how to use a Python CLI, cookiecutter, to generate a basic Next.js app and set up a repository.
5. **🌐 Managing Variables and Authentication:** Understand how to manage pipeline variables and authenticate requests within the pipeline.
6. **🎨 Creating a Software Template Definition:** We guide you through creating a template.yaml file in IDP, powered by Backstage Software Template.

{% youtube 0GoK3SD1rxs %}
Understanding the Essence and Benefits of Massagepraxis
Published: 2023-11-18 06:45:45

**Introduction :**
**[Massagepraxis](https://www.weekly-massagen.ch/)** embodies the art and science of massage therapy, offering a gateway to holistic well-being. Delving deeper into the world of massagepraxis unveils a multitude of techniques, benefits, and considerations that contribute to its profound impact on physical, mental, and emotional health.
**
History and Evolution :**
The origins of massagepraxis date back centuries, rooted in ancient cultures like China, Egypt, and India. From its early ritualistic and medicinal use to its evolution into a structured therapeutic practice, massagepraxis has seamlessly integrated into modern wellness regimens. Techniques have evolved, drawing from diverse cultural practices, resulting in a rich tapestry of methodologies.
**
Techniques and Modalities :**
Massagepraxis encompasses various techniques tailored to address specific needs. From Swedish and deep tissue massages to reflexology, aromatherapy, and Shiatsu, each modality employs distinct methods and pressures to alleviate tension, improve circulation, and enhance relaxation. These techniques not only target physical ailments but also foster mental tranquility, aligning with individual preferences and therapeutic goals.

**Health Benefits**
The benefits of massagepraxis extend beyond mere relaxation. Studies consistently highlight its efficacy in reducing stress, alleviating muscle tension, and enhancing flexibility. Moreover, it aids in managing chronic pain conditions, improving posture, and boosting immune function. Beyond physical benefits, regular sessions contribute to mental wellness by reducing anxiety, promoting better sleep, and elevating mood—a holistic approach to overall health and vitality.

**Considerations and Safety :**
While massagepraxis offers numerous benefits, it's crucial to consider individual health conditions, allergies, and preferences. Consulting a qualified practitioner ensures a tailored approach, minimizing risks and optimizing outcomes. Understanding contraindications, such as certain medical conditions or recent injuries, helps in customizing sessions for maximum safety and efficacy.

**Conclusion :**
In essence, massagepraxis stands as a testament to the profound synergy between ancient wisdom and modern therapeutic practices. Its multifaceted benefits, encompassing physical, mental, and emotional well-being, position it as a cornerstone of holistic health. Embracing massagepraxis not only nurtures the body but also fosters a harmonious connection between mind, body, and spirit, contributing to a balanced and fulfilling lifestyle.
Toystack for deployments
Tags: javascript, node, webdev, python
Published: 2023-11-19 06:13:45

You Code. We Deploy.

My name is Sravan from toystack, co-founder of a startup named toystack.ai where we built a platform for deployments, we have tailored it for Node.js backend, we are giving 700 hours for free deployments per month, I would like everyone to evaluate this product and give us the feedback, please https://forms.gle/kzdKiWc9JLpn9ckN9 use this form we will quickly onboard you on to us. This is our product: https://toystack.ai/
Python Developer Track for Oracle JSON and Duality Views
Tags: python, programmers, beginners, tutorial
Published: 2023-11-20 11:26:37

Do you want to take advantage of JSON and Relational combined, while avoiding the limitations of each? This workshop is for you!

In this new workshop, you are going to learn how to develop against an Oracle 23c and how to create advanced data models using Duality Views. The full content of the workshop is the following:

1. Create and configure your Oracle 23c
2. First steps with Oracle and Python
3. CRUD operations
4. Queries by example
5. Indexing
6. Database Actions, GUI for JSON
7. Data Modeling, including Duality Views
8. Run SQL over JSON
9. MongoDB API against Duality Views

I will be creating a blog post for each of the labs and I will share all the code at GitHub. Stay tuned! 

Here you have all the direct links to all the chapters:

1. Create 23c:https://dev.to/javierdelatorre/python-developer-track-for-oracle-json-and-duality-views-part-1-create-and-configure-your-oracle-23c-13hl 
2. First steps:https://dev.to/javierdelatorre/python-developer-track-for-oracle-json-and-duality-views-part-2-first-steps-with-oracle-and-python-2c0m
3. CRUD operations: https://dev.to/javierdelatorre/python-developer-track-for-oracle-json-and-duality-views-part-3-crud-operations-2oji
4. Queries by example: https://dev.to/javierdelatorre/python-developer-track-for-oracle-json-and-duality-views-part-4-queries-by-example-57ho
5. Indexing: https://dev.to/javierdelatorre/python-developer-track-for-oracle-json-and-duality-views-part-5-indexing-51fe
6. Database Actions: https://dev.to/javierdelatorre/python-developer-track-for-oracle-json-and-duality-views-part-6-database-actions-gui-for-json-5756
7. Data Modeling: https://dev.to/javierdelatorre/python-developer-track-for-oracle-json-and-duality-views-part-7-data-modeling-including-duality-views-10l3
8. SQL: https://dev.to/javierdelatorre/python-developer-track-for-oracle-json-and-duality-views-part-8-run-sql-over-json-5eib
9. MongoDB API: https://dev.to/javierdelatorre/python-developer-track-for-oracle-json-and-duality-views-part-9-mongodb-api-against-duality-views-9a2
Some functional utilities
Tags: javascript
Published: 2023-11-21 11:07:51

Here are some utilities I use, when I don't want to rely on any external libraries :

```js

const curry = function (fn) {
  const curried = (...args) => {
    if (args.length >= fn.length) {
      return fn.apply({}, args)
    }
    else {
      return (...vargs) => curried.apply({}, args.concat(vargs))
    }
  }
  return curried
}

const compose = 
    (...fns) => arg => fns.reduceRight((acc, f) => f(acc), arg);

const pipe = 
    (...fns) => arg => fns.reduce((acc, f) => f(acc), arg);

const asyncpipe = 
    (...fns) => arg => fns.reduce((p, fn) => p.then(fn), Promise.resolve(arg));

const pickprop = (prop) => (obj) => obj[prop] ?? null; 

const map = (f) => (arr) => arr.map(f);

const filter = (f) => (arr) => arr.filter(f);

```

The function passed to the reduce method is called a **reducer**.

A reducer is a function which has two arguments, the first of type A, the second of type B and the returned type is of type A.

As long as any function has this signature, it can be passed to a reduce method.
Master React With These 10 Hooks 🔥
Tags: react, webdev, javascript, programming
Published: 2023-11-21 13:17:58

Hooks are a major part of modern React and for that I created a video series explaining the most important 10 React Hooks in details. Understanding these hook will really help you to level up your react game.

Below are the 10 major react hooks explained with examples.

Enjoy! ✌️

>- [Follow video series on YouTube](https://youtube.com/playlist?list=PL63c_Ws9ecIT9M-legDiBCNUs1vNQsOAa&si=9kq-e-OeB3KnFUZJ)
>- [Subscribe to my YouTube channel] (https://www.youtube.com/c/chaoocharles)
>- [Follow me on twitter](https://twitter.com/ChaooCharles)

## 0. The Rules of Hooks
- Hooks should be called at a top level of a component. Do not call hooks inside conditions, loops or nested functions.
- Hooks are only usable in react `functional components` and `custom hooks`. Do not use hooks in class components.

## 1. useState
The `useState hook` let's you add state variable to a component.

{% youtube tJxFGwHaFxo %}
## 2. useEffect
The `useEffect hook` is use to synchronize a component with an external system (also know as _side effects_). Good examples of side effects are, `data fetching`, `subscriptions/event listeners` and `timer/intervals`.

{% youtube 4rhrWpPDVtE %}
## 3. useCallback
The `useCallback hook` helps you to optimize functions between re-renders.

{% youtube lB-pVjsk2no %}
## 4. useMemo
The `useMemo hook` is used in a similar way as the useCallback hook, only that useMemo is used to optimize values while useCallback is used to optimize functions.

{% youtube pzXcZk5DwZg %}
## 5. useRef
The `useRef hook` is used to create a reference to a value(or element). The `ref` persists across renders and does not cause the component to re-render when its value changes.

{% youtube qe5h6E656ZI %}
## 6. useReducer
The `useReducer hook` is an alternative to useState hook. It is often favored for more complex state management scenarios.

{% youtube 9R4xwI7AbkQ %}
## 7. useContext
The `useContext hook` is used to consume a **context.**  Context in React is a way to pass data through the component tree without having to pass props manually at every level. useContext hook together with the react context are used to manage some form of global state, e.g a user/auth state.

{% youtube cvzTMogKysY %}
## 8. useId
The `useId hook` is used to generate unique IDs that can be passed to accessibility attributes.

{% youtube wQwc4ewus-k %}
## 9. use (new)
The `use hook` lets you read the value of a resource like a **Promise** or **context**. This hook is unique because it does not follow all the rules of hooks. You can call it inside loops or even conditions like in `if else` statements.

{% youtube b0ClttC6d3I %}
## 10. useTransition
The `useTransition hook` lets you update the state without blocking the UI.

{% youtube IoVOVCq4WS8 %}
Why do we NOLOCK in SQL server with an example
Tags: sql, sqlserver, database, softwaredevelopment
Published: 2023-11-21 17:47:18

In SQL Server, the `NOLOCK` hint, also known as the `READUNCOMMITTED` isolation level, allows a SELECT statement to read data from a table without acquiring shared locks on the data. This means it can potentially read uncommitted changes made by other transactions, which can lead to what's called "dirty reads." 

Here's an example:

Let's say you have a table named `Employee` with columns `EmployeeID` and `EmployeeName`.

```sql
CREATE TABLE Employee (
    EmployeeID INT,
    EmployeeName VARCHAR(100)
);

INSERT INTO Employee (EmployeeID, EmployeeName)
VALUES (1, 'Alice'), (2, 'Bob'), (3, 'Charlie');
```

Now, if two transactions are happening concurrently:

Transaction 1:
```sql
BEGIN TRANSACTION
UPDATE Employee
SET EmployeeName = 'David'
WHERE EmployeeID = 1;
```

Transaction 2:
```sql
SELECT EmployeeName
FROM Employee WITH (NOLOCK)
WHERE EmployeeID = 1;
```

If Transaction 2 uses `WITH (NOLOCK)` when reading the `Employee` table, it might read the uncommitted change made by Transaction 1 and retrieve `'David'` as the `EmployeeName` for `EmployeeID` 1. However, if Transaction 1 rolled back the update, Transaction 2 would have obtained inaccurate or non-existent data, resulting in a "dirty read."

Using `NOLOCK` can be helpful in scenarios where you prioritize reading data speed over strict consistency. However, it's essential to be cautious since it can lead to inconsistent or inaccurate results, especially in critical transactional systems.

Other considerations like potential data inconsistencies, increased chance of reading uncommitted data, and potential performance implications should be weighed before using `NOLOCK`. In many cases, alternative isolation levels or database design improvements might be more suitable to achieve the desired performance without sacrificing data integrity.
Is Sam Altman’s Hiring at Microsoft Going to Make an Unveiling Change in the Industry?
Tags: news, startup, openai, microsoft
Published: 2023-11-21 23:10:22



Sam Altman’s recruitment at Microsoft has stirred a buzz in the tech world, sparking curiosity about the potential transformation it might usher in. This article delves into the details surrounding this significant move, analyzing its potential impact, Altman’s background, and the implications for both Microsoft and the broader industry.

[Read More!](https://muhtalhakhan.medium.com/is-sam-altmans-hiring-at-microsoft-going-to-make-an-unveiling-change-in-the-industry-7d175dd7b425)
Php laravel developer
Published: 2023-11-22 08:24:33

"Unlocking Digital Excellence! 💻✨ With 3 years of hands-on experience, I specialize in crafting seamless web solutions. From robust Laravel applications and API integrations to dynamic front-end development using Vue.js, React.js, and more, I bring your ideas to life. Dive into a world of innovation with my expertise in PHP, MySQL, HTML, CSS, and JavaScript. Let's build something extraordinary together! 🚀 #WebDevelopment #LaravelExpert #TechInnovation"
Enhancing Home Comfort: Retractable Fly Screens in Sydney
Published: 2023-11-22 09:02:08

Sydney, known for its picturesque landscapes and warm climate, invites a desire for uninterrupted views and fresh air circulation indoors. However, the presence of flies and insects can disrupt this desire, prompting the need for effective solutions like retractable fly screens in sydney.

**Retractable Fly Screens: A Versatile Solution**
Retractable fly screens provide a versatile and practical solution to keep insects at bay while enjoying unobstructed views and fresh air flow. These screens are seamlessly integrated into doorways and windows, offering an unobtrusive way to safeguard your living spaces in Sydney.

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

**Unmatched Convenience and Functionality**
One of the key benefits of retractable fly screens lies in their functionality. These screens effortlessly retract when not in use, preserving the aesthetics of your home in Sydney. Moreover, they are easily manoeuvrable, allowing you to control their operation based on your requirements, whether it's to keep insects out or let the breeze in.

**Customised to Your Needs**
Retractable fly screens come in various sizes and designs to suit different types of doors and windows. Their customizable nature ensures a perfect fit, enhancing both the functionality and aesthetic appeal of your home in Sydney.

**Aesthetic Enhancement and Protection**
Besides their functional benefits, retractable fly screens contribute to the overall visual appeal of your property. They not only complement the existing architecture but also act as a protective barrier, preventing unwanted pests from entering your home.

**Conclusion**
[Retractable fly screens in Sydney](https://highlandsbsa.com.au/retractable-fly-screens-sydney/
) are an excellent addition to any home, providing an effective solution to maintain comfort, airflow, and protection from insects. Consider these screens as an investment in enhancing your living spaces, allowing you to relish the beauty of Sydney while keeping pesky insects at bay.
Custom Software Development Company In USA
Published: 2023-11-22 14:14:43

Unlock limitless possibilities with TechnBrains, a leading [custom software development company](https://www.technbrains.com/web-application/custom-software-development/). From sleek designs to intricate systems, we deliver top-quality, scalable solutions globally.

**Services Offered:**

Ecommerce Stores
Basic Information Websites
iOS and Android Development
Desktop Software

**Why Choose Us?**

Experienced Team
Unmatched Quality
Transparent Process
On-time Delivery

**Key Features:**

Payment Gateways
Live Chat
Location-Based Services
Online Delivery
Ecommerce Features

**Join us in redefining software development standards. TechnBrains - Where Innovation Meets Excellence.**
Hacktoberfest 2023 🏆
Tags: hack23contributor, hacktoberfest, hacktoberfest23, hacktoberfest2023
Published: 2023-11-22 20:26:33

I have just completed the #hacktoberfest2023 challenge with 10 Pull Requests successfully merged. **
It is with great pleasure to be involved in Hacktoberfest and contribute on several people projects.
DONE #Hacktoberfest #OpenSource #hacktoberfest10

@hacktoberfest

Badge awarded on holopin as follows:

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

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

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


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

PR links: 
1.https://github.com/hellofaizan/xprofile/pull/135
2.https://github.com/illacloud/illa-builder/pull/2801
3.https://github.com/Karamraj/BookTown/pull/177
4.https://github.com/illacloud/illa-builder/pull/3324
5.https://github.com/illacloud/illa-builder/pull/3325
6.https://github.com/illacloud/illa-builder/pull/3326
7.https://github.com/illacloud/illa-builder/pull/3327
8.https://github.com/illacloud/illa-builder/pull/3350
9.https://github.com/illacloud/illa-builder/pull/3351
10.https://github.com/illacloud/illa-builder/pull/3352
Image Upload in React Native
Published: 2023-11-22 20:55:59

The ImagePicker is an Expo plugin designed to simplify the process of uploading images or capturing photos using the camera without the need to directly handle complex camera or gallery APIs.

### Compatibility
The ImagePicker is compatible with the following platforms:

- Android Device
- Android Emulator
- iOS Device
- iOS Simulator
- Web Platform

### Installation

```bash
npx expo install expo-image-picker
```

### Configuring the plugin

To configure the plugin, we will go to the app.json file and add the following configuration:

```json
{
  "expo": {
    "plugins": [
      [
        "expo-image-picker",
        {
          "photosPermission": "The app need accesses your photos."
        }
      ]
    ]
  }
}
```

In the photosPermission property, we will set the message displayed to the user, requesting approval to access the camera feature.

### Implementing Image Upload Using the Mobile Gallery

```tsx
import react, { useState } from "react";
import { Button, Image, View } from "react-native";
// Let's import the library.
import * as ImagePicker from "expo-image-picker";

export default function App() {
  const [image, setImage] = useState<string>();

  const pickImage = async () => {
    // No permission is required to open the gallery.
    const result = await ImagePicker.launchImageLibraryAsync({
      // The mediaTypes property defines which type of file is allowed.
      mediaTypes: ImagePicker.MediaTypeOptions.All,

      // Quality sets the image quality and accepts values from 0 to 1.      
     // 0 represents lower quality/smaller size, and 1 represents higher quality/larger size.
      quality: 1,
    });

    console.log(result);

    // Let's receive the image if the user doesn't close the photo gallery.
    if (!result.canceled) {
      const { uri } = result.assets[0];
      setImage(uri);
    }
  };

  return (
    <View style={{ flex: 1, alignItems: "center", justifyContent: "center" }}>
      <Button title="Pick an image from camera roll" onPress={pickImage} />
      {image ? (
        <Image
          source={{ uri: image as string }}
          style={{ width: 200, height: 200 }}
        />
      ) : null}
    </View>
  );
}
```

GitHub with the complete project code: https://github.com/joeyclapton/image-picker-example




#### References

- https://docs.expo.dev/versions/latest/sdk/imagepicker/
- https://docs.expo.dev/tutorial/image-picker/
Typescript postman install in ubuntu/linux
Tags: postman, webdev, express, typescript
Published: 2023-11-23 06:54:35

postman-linux-x64.tar.gz

Great! If you have a new version of the Postman application in the form of a `postman-linux-x64.tar.gz` file, you can follow these steps to install and run it:

1. **Extract the Tarball:**
   Navigate to the directory where the tarball is located and extract its contents:

   ```bash
   tar -xzf postman-linux-x64.tar.gz
   ```

   This command will extract the contents of the tarball into a new directory, likely named something like `Postman`.

2. **Navigate to the Postman Directory:**
   Change into the newly created directory:

   ```bash
   cd Postman
   ```

3. **Run Postman:**
   Inside the `Postman` directory, you should find the executable file. Run it:

   ```bash
   ./Postman
   ```

   If you encounter any permission issues, you might need to add execute permissions to the Postman executable:

   ```bash
   chmod +x Postman
   ```

   Then try running it again.

4. **Optional: Create a Desktop Shortcut:**
   To make it easier to access Postman, you can create a desktop shortcut. You can do this manually or check if the installation provides an option to create a shortcut during the installation process.

   ```bash
   cp Postman.desktop ~/.local/share/applications/
   ```

   This command copies a desktop file to the appropriate location for desktop shortcuts.

Now, you should have the Postman application running on your system. If you encounter any issues during the installation or have specific instructions provided with the new version, make sure to follow those instructions for the best results.

If you have any further questions or run into any issues, feel free to let me know!