teleren/devto huggingface dataset:
Sloan's Inbox: How Do You Balance Values and Professional Work?
Tags: discuss, career
Published: 2023-05-25 07:00:00

Hey there! It's your friendly neighborhood DEV Moderator, Sloan. 🦥 Welcome back to my cozy little corner of the tech universe! 

Here was can discuss all things tech-related, from those tricky career dilemmas to the ins and outs of office dynamics, and everything in between. As a sloth who appreciates the laid-back approach to life, I'm here to offer you some wise advice, share my slothful observations, and foster a warm and supportive community of eager learners and seasoned professionals.

So, let's dive into the question of the week:

> I recently got approached to work on a big project that kind of goes against my personal values. Should I turn down the opportunity and risk losing the respect of my colleagues -- or worse, my job? Or should I just try to separate my beliefs from my professional work?  

So, DEV Community: What's your take on this? Please leave your thoughts in the comments below and let's help a fellow coder work through the pros and cons of this dilemma.


*Want to submit a question for discussion or ask for advice? [Visit Sloan's Inbox](https://docs.google.com/forms/d/e/1FAIpQLSc6wgzJ1hh2OR4WsWlJN9WHUJ8jV4dFkRDF2TUP32urHSAsQg/viewform)! You can choose to remain anonymous.*
How to quickly refresh a ChatGPT plugin
Tags: chatgpt, programming, productivity
Published: 2023-05-25 06:55:07

Hello, I have a quick tip I discovered shortly after working on a plugin for ChatGPT.

## Steps

1. Open settings
2. Enable `Open plugin devtools`
3. Click the refresh button to reload your plugin, rather than manually reloading

Now instead of clicking through 3 different menus and entering your IP, you just click the refresh button.

Hope this helps someone out there!
plumber denver co
Published: 2023-05-25 06:36:31

King Rooter & Plumbing offers complete plumbing, drain, sewer, water heater, water line, and basement waterproofing services. So if you have a problem, our [plumber denver co](https://kingrooterandplumbing.com/), can fix it. From leaky faucets to water heaters, King Rooter and Plumbing has the experience, expertise, qualifications, and skill to handle each and every job with ease and efficiency.

Master Plumber License: MP-00600245 Insured – General Liability $2,000,000 BBB A+ Rated Accredited Business HomeAdvisor Approved Excellent Customer Reviews Locally Owned and Operated Great service is our priority!
Need help Inertia Vue Developer, this.$inertia.form
Tags: laravel, inertia, vue
Published: 2023-05-25 06:35:21


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8pavh1317sogt7xodnvh.PNG)

Good day programmers. I just wanna ask for help about my inertia vue 3 project little bit of typeScript. I have a create and update button with modal, now I made just one form(modal) for both of them and I use this.$inertia.form for storing and retrieving data, now my problem is that I cant seem to reset the form whenever I close the modal when I go first in editModal(display data) to createModal()- It still displayed the data in createModal() form, I tried the this.form.reset() in closeModal function but doesnt work. I know its kinda basic for you guys this kinda problem but I appreciate your answer Thanks. 




```
data(){
    form: this.$inertia.form({
                firstName: '',
                lastName: '',
                gender: 'Male',
                
            })}

methods:{
       editModal(rider: Rider) {

            this.form = this.$inertia.form(rider);

            //when assigning this.form to rider object, it cannot 
        be reset!
            this.showModal = true;

            this.editMode = true;
        },
        createModal(){
            this.showModal = true;
        },

        closeModal() {
            this.showModal = false;
            this.editMode = false;
            this.form.reset();

        },
}
```
How to Combine Javascript files in Magento 2
Tags: magetno, magento2, magento2tutorial
Published: 2023-05-25 06:16:54

In the realm of e-commerce, every fraction of a second counts. As an online store owner utilizing Magento 2, it is paramount to optimize your website's performance to ensure a seamless browsing experience for your customers. Among the various methods to enhance performance, combining JavaScript files proves to be highly effective. In this blog post, we will delve into the process of **_How to Combine Javascript files in Magento 2_** and explore the advantageous outcomes it bestows upon your website.

Combining JavaScript files is a widely embraced technique aimed at expediting page loading times by diminishing the number of HTTP requests required for JavaScript retrieval.

By consolidating all JavaScript files, you eliminate the need to load multiple individual modules and instead only load a single combined file.

For more information , please visit this :- **_[https://webguru.dev/how-to-combine-javascript-files-in-magento-2/](https://webguru.dev/how-to-combine-javascript-files-in-magento-2/)_**
Update ngx-dynamic-form-builder v2.4.1
Tags: angular, form, validations, transform
Published: 2023-05-25 05:50:01

Update ngx-dynamic-form-builder v2.4.1
Links
https://github.com/EndyKaufman/ngx-dynamic-form-builder

Features
update to Angular 16 and Nx 16

https://www.npmjs.com/package/ngx-dynamic-form-builder
How to Build Landing Pages in Magento 2 Store
Tags: webdev, magento, magento2tutorials
Published: 2023-05-25 05:31:11

Magento 2 is a thorough internet business stage that furnishes online storekeepers with a variety of devices and highlights to deal with their web-based business effortlessly. This stage improves on the most common way of making and dealing with a web-based store, from item the board to advancement systems and that's just the beginning.

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

In the present web-based commercial center, points of arrival are basic parts of any powerful showcasing methodology. They are explicitly intended to convey an unmistakable and succinct message to your main interest group, with a definitive objective of driving transformations. A very much created presentation page not just grandstands the special highlights of your item or administration, yet additionally gives guests the data they need to settle on informed buying choices.

In this blog, we will direct you through the most common way of making high-changing over points of arrival in Magento 2. From defining objectives and planning compelling designs, to improving web indexes and testing execution, our bit by bit guidelines and master tips will assist you with fitting your points of arrival to meet your business needs and accomplish ideal outcomes. Thus, how about we get everything rolling and investigate **_how to build landing pages in Magento 2 store_**.

For more info, visit **_https://webguru.dev/how-to-build-landing-pages-in-magento-2-store/_**
How To Change Default Placeholder Image In Magento 2
Tags: magento, magento2, magento2tutorial
Published: 2023-05-25 05:06:23

In the marketplace, you can find a variety of extensions designed for Magento 2 stores. It's undeniable that these powerful extensions offer numerous benefits for eCommerce stores. Once you have installed Magento 2 for your online store, it's common to install multiple modules with different functionalities on your website.

However, as your website grows, you may come to realize that certain modules are not suitable for your store or no longer meet the requirements of your website. In such cases, it becomes necessary to uninstall and remove these extensions from your Magento 2 store.

Additionally, having a large number of extensions in your Magento 2 store can lead to negative consequences for your website. These may include increased page load times, high memory consumption, conflicts between extensions, and a negative impact on overall store performance. Therefore, uninstalling and removing extensions in Magento 2 becomes crucial.

This article will provide you with a detailed explanation of **_How to remove Magento 2 extension_**. Make sure to read until the end, as the information will be highly beneficial for you.

For more information , please visit this :- **_[https://webguru.dev/how-to-remove-magento-2-extension/](https://webguru.dev/how-to-remove-magento-2-extension/)_**
5 Low-Code Development Best Practices for Building Applications Faster and More Efficiently
Tags: lowcodeapplication
Published: 2023-05-25 04:58:52

When it comes to [low code application development](https://newgensoft.com/platform/low-code-process-automation/low-code-application-development/), there are several best practices you can follow to build applications faster and more efficiently. Here are five key practices to consider:

1. Clearly Define Requirements: Before you start building an application, take the time to clearly define the requirements and scope of the project. This includes understanding the problem you're trying to solve, identifying the target audience, and defining the key features and functionalities. Having a well-defined roadmap will help you stay focused and avoid scope creep during development.

2. Plan the Application Architecture: Although low-code platforms provide a visual development environment, it's still essential to plan the application architecture. Identify the different components and modules you'll need, define their relationships, and determine how data will flow through the application. Planning the architecture upfront will ensure a solid foundation for your application and help you make better use of low-code development capabilities.

3. Leverage Pre-Built Components: One of the advantages of low-code development is the availability of pre-built components and integrations. Rather than reinventing the wheel, explore the component library provided by your low-code platform or consider third-party integrations. These pre-built components can save you time and effort, allowing you to focus on customizing and configuring them to fit your specific requirements.

4. Optimize for Reusability: Low-code platforms often emphasize reusability, allowing you to create reusable modules, templates, and components. Take advantage of this feature by designing your application with reusability in mind. Identify common functionalities or UI patterns that may be reused across different parts of the application and encapsulate them into reusable components. This approach will not only speed up development but also make maintenance and updates more efficient.

5. Continuous Testing and Iteration: Testing is crucial in any development process, and low-code development is no exception. As you build your application, perform regular testing to ensure its functionality, performance, and security. Use the testing capabilities provided by your low-code platform, and involve stakeholders and end-users in the feedback loop. Additionally, embrace an iterative development approach where you continuously refine and improve your application based on user feedback and evolving requirements.

Remember, while low-code development can accelerate application development, it's still important to follow established software engineering principles and best practices. These practices will help ensure the reliability, scalability, and maintainability of your applications, even with the efficiency gains offered by low-code platforms.
"Mastering the Art of Web Design: Unleash Your Creativity!"
Tags: devops, webdev, javascript, beginners
Published: 2023-05-25 04:51:33

"✨ Are you ready to embark on an exciting journey into the world of web design? Follow me on DEV.to for a regular dose of inspiration, knowledge, and practical advice. Let's transform your web design skills and create digital experiences that amaze! 🚀✨ 

(https://www.instagram.com/duo_webwizard/) for even more web design content and behind-the-scenes glimpses into my creative process. See you there!"
[Golang 02/30] Go declare variables
Tags: go, golang30days
Published: 2023-05-25 04:18:16

---
title: [Golang 02/30] Go declare variables
published: true
description: Learning Golang 30 days searies
tags: golang, golang30days
cover_image: https://i0.wp.com/meritocracy.is/blog/wp-content/uploads/2021/04/golang.jpg?fit=1280%2C710&ssl=1
---
```go
package main

import (
  "fmt"
)

func main() {
  // declare a variable with value "hello"
  var a = "hello"
  fmt.Printf("\na: %s", a)
  
  // shortcut for "var ab string"
  // it declares a variable named "ab", 
  // and auto-detect its type and assign the value "hello" to it.
  ab := "hello"
  fmt.Printf("\nab: %s", ab)
  
  // declare a variable with explicit type
  var abc string= "hello"
  fmt.Printf("\nabc: %s", abc)
  
  // declare multiple variables with type "int"
  var b, c int;
  fmt.Printf("\nb: %d, c:%d", b, c)
  
  // declare multiple variables and assign them the values
  // the types will be auto-detected
  var d, e = 1, "golang"
  fmt.Printf("\nd: %d, e: %s", d, e)
}

```

It prints the following content:
```
a: hello
ab: hello
abc: hello
b: 0, c:0
d: 1, e: golang
```


## Summary
In Go, we can declare variables using the `var` keyword or its shortcut `:=`.
Golang will assign the `default` value to the variables, which are not initialized.
For example:
- `string` default: empty string
- `int` default: `0`
- `bool` default: `false`
TcuNim
Tags: githubhack23
Published: 2023-04-29 12:14:56

## What I built 
TcuNim is an open-source video streaming app designed to offer users a similar experience to Tachiyomi but with video content. This app is developed to communicate with various API extensions to provide users with a range of content from different sources.

### Category Submission: 
Phone Friendly

### App Link
https://tcukawi.tech/TcuNim

### Screenshots 
![Application screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pqhuig0z0fxj3q72kppe.png)

### Description 
This project focus on the ease of use, you can watch anime where ever you like, just open the web and its ready to go

The webapp however is still in beta progress, the ammout of bugs and improvement it still needed, like for example the api, it currently only have 2 sources, and only me who maintain both of them, which both is on Indonesia Language

Feel free to contribute on the project

### Link to Source Code 
https://github.com/MoonLGH/TcuNim
https://github.com/MoonLGH/Tcunim-API

### Permissive License 
Like Tachiyomi wise, this Licensed under the Apache License [Apache 2.0](http://www.apache.org/licenses/LICENSE-2.0)

## Background (What made you decide to build this particular app? What inspired you?) 
Well its started on my contribution to [Aniyomi](https://github.com/jmir1/aniyomi-extensions) which actually the main reason i make it, Well Aniyomi is great but its lacking some things, a desktop accessibility, while a long time ago [Tachidesk](https://github.com/Suwayomi/Tachidesk-Server) used to support Aniyomi, it ended it support, and i need a way to not use my phone every time because its distracting



### How I built it (How did you utilize GitHub Actions or GitHub Codespaces? Did you learn something new along the way? Pick up a new skill?) 
I used gh-actions in this project to build it and deploy on the gh-pages branch because its a tailwind based project

and for the API, it uses typescript and express to create the api

Well now maybe you wonder, how do you keep these for free and ADS less, well for the web, i clearly uses github pages to host, and for the api i uses Railway.app to host(because it uses some puppeteer, and it needed more power than vercel)

for the Dev Enviroment, true and funny story is that i stopped using local vsc entirely started from early 2022, and i use first gitpod, and after Codespace release on indonesia, i find it easy to move developing there, i find codespace more powerful than gitpod in some ways, for example codespace support on github copilot

### Additional Resources/Info
This app is still on beta. please if you are interested, make a contribute to the api or the web, any contribution will be appreciated
Introducing Scripter's Rift API: Unlock Limitless Possibilities for Game Development
Tags: gamedev, typescript, javascript, programming
Published: 2023-05-25 03:58:31

Dear Developers,

We are thrilled to announce the release of our much-anticipated TypeScript/SR Lua API, now available to the public! With Scripter's Rift API, developers gain access to a powerful suite of tools designed to enhance game development and unleash their creativity.

**Developer-Friendly Integration**
Our API suite has been meticulously crafted with developers in mind, ensuring seamless integration with supported games and frameworks. Whether you're looking to create stunning graphical effects, control game mechanics, or implement custom behavior trees for characters, Scripter's Rift API empowers you to take your game development to new heights.

**Sell your Scripts**
Script Marketplace – a dedicated platform for developers to showcase and sell their scripts. It's never been easier to turn your passion for coding into a passive income stream.

**Privacy**
We prioritize the security and privacy of our sellers. That's why we offer comprehensive payment protection and full anonymity, ensuring your personal and financial information remains safe and secure.

**Documentation**
Ready to revolutionize your game development process? Dive into our comprehensive API documentation available at [docs.scriptersrift.gg](docs.scriptersrift.gg). It's a valuable resource that will guide you through every step of your development journey. (80% finished)

Moreover, we're excited to share our Core Framework, available at [https://git.scriptersrift.gg/SRIFT/Core](https://git.scriptersrift.gg/SRIFT/Core). Although it's not fully documented yet, we are actively working on providing complete documentation to further assist you in leveraging its power.

For a head start, check out our example repository at: [https://git.scriptersrift.gg/lucyx/demo](https://git.scriptersrift.gg/lucyx/demo)

Join us on this incredible adventure as we reshape game development together. Visit our developer panel at [https://dev.scriptersrift.gg](https://dev.scriptersrift.gg) to get started.

Scripter's Rift API – Where Imagination Meets Possibility.
Arrays-AI: Utilizing AI for Data Analysis in JavaScript
Published: 2023-05-25 03:55:58

The "arrays-ai" library is here to revolutionize JavaScript array manipulation using the power of artificial intelligence. With Arrays-AI, you can effortlessly perform operations like filtering, aggregation, sorting, and element removal on arrays of objects, all through natural language commands. The library leverages the OpenAI API to process these commands and apply the corresponding operations to your array.

Installation is a breeze. Simply use npm to install the library:

```bash
npm install arrays-ai
```

Alternatively, you can download the source code directly from the GitHub repository and incorporate it into your project.

To get started, import the library into your project:


```typescript
import { ArraysAi } from 'arrays-ai';

const arraysai = new ArraysAi();

```
Configure Arrays-AI with your OpenAI API key:


```typescript
arraysai.Configure({ apiKey: 'YOUR_API_KEY' });
```

Next, set the array data that you want to manipulate:

```typescript
const myArray = [collection_1, collection_2, ...];
arraysai.SetData(myArray);
```

By default, the library responds in English. However, you can set the language to Spanish or other supported languages using:


```typescript
arraysai.SetLanguage(Languages.SPANISH);
```

Now comes the exciting part—manipulating your array using natural language queries. For example, you can ask how many records have a null age in the first array:

```typescript
arraysai.Ask("How many records have a null age in the first array?", true)
  .then(answer => {
    console.log(answer); // There are two records in the first array that have a null age.
  });
```

The "Ask()" function employs OpenAI's artificial intelligence to interpret your query and perform the corresponding manipulation on the array. You can choose to receive a verbose response that includes the original question and answer for better understanding.

Arrays-AI also supports TypeScript and provides type checking at compile time for seamless integration into your projects.

If you're interested in contributing to the project, you can report bugs, suggest improvements, or propose new features through GitHub issues or pull requests.

Arrays-AI is released under the MIT license, so feel free to explore, use, and contribute. If you find the project useful, consider showing your support by making a donation via PayPal.

Let's unleash the power of artificial intelligence for JavaScript array manipulation with Arrays-AI!

 [Explore Arrays-AI on GitHub](https://github.com/alfredoaguiararce/arrays-ai )

 [NPM](https://www.npmjs.com/package/arrays-ai)
How to Delete an Order Programmatically in Magento 2
Tags: webdev, magento, magento2tutorials
Published: 2023-05-25 03:52:56

Magento 2 is a strong web based business stage that gives an abundance of elements and devices for dealing with an internet based store. One such instrument is the capacity to automatically erase orders. This can be helpful in different circumstances, for example, when a request should be dropped, or when you want to tidy up your request history. In this blog, we will give a bit by bit guide for erasing a request automatically in Magento 2.

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

We will cover the essential strides for stacking the request model, really looking at the request status, and making the request status noticeable on the frontend in Magento 2, erasing the request, tidying up related information, blunder taking care of, and logging. Whether you're a carefully prepared Magento 2 engineer or simply beginning, this guide will furnish you with the data you really want to know **_how to delete an order programmatically in Magento 2_** and with certainty.

For more info, visit **_https://webguru.dev/how-to-delete-an-order-programmatically-in-magento-2/_**
How to Use && in Windows-Based Terminal
Tags: windows, terminal, cli, programming
Published: 2023-05-25 02:15:02

This is a short article on how to use `&&` equivalent in Windows terminals (Powershell & command prompt).

If you try to use `&&` in Windows, you will face an error :

```
The token '&&' is not a valid statement separator in this version.
    + CategoryInfo          : ParserError: (:) [], ParentContainsErrorR
   ecordException
    + FullyQualifiedErrorId : InvalidEndOfLine
```

This happens because Windows does not support `&&` keyword.

What you can replace it with is `; aa`. For example :

```
vagrant up && vagrant ssh

\\ change to :

vagrant up ; aa vagrant ssh
```

That's it. 

Hope it helps !