teleren/devto huggingface dataset:
Comandos Avanzados
Tags: cmd, windows
Published: 2024-07-13 22:50:34

## `SYSTEMINFO`
Muestra información detallada del PC y del sistema.

```bash
systeminfo
```

## `TASKLIST`
Muestra un listado de los programas y tareas que se están ejecutando.

```bash
tasklist
```

## `TASKKILL -IM`
Permite cerrar un programa.

```bash
taskkill -im nombre_del_programa.exe
```

## `CONTROL KEYBOARD`
Muestra las propiedades del teclado.

```bash
control keyboard
```

## `DESK.CPL`
Abre las propiedades de la pantalla.

```bash
desk.cpl
```

## `CONTROL FONTS`
Muestra las fuentes que están instaladas en el sistema.

```bash
control fonts
```

## `CONTROL INTERNATIONAL` - `INTL.CPL`
Abren la configuración regional de fecha y hora.

```bash
// Opción 1
control international

// Opción 2
intl.cpl
```

## `APPWIZ.CPL`
Abre el programa especificado.

```bash
appwiz.cpl programa.exe
```

## `SYSDM.CPL`
Abre las propiedades del sistema.

```bash
sysdm.cpl
```

## `FSMGMT.MSC`
Abre las carpetas que estén compartidas.

```bash
fsmgmt.msc
```

## `SHUTDOWN`
Apaga el equipo.

```bash
shutdown
```
Remove Nth from end of linked list
Tags: go, interview, programming
Published: 2024-07-13 22:56:45

In this post, I explore another linked list algorithm. This one is a bit harder.

Create a function to remove the nth node from the end of a linked list.

This comes from a leetcode problem. As in the leetcode problem, 'n' is one-based and can go from 1 to the length of the list. 

```
func (ll *LinkedList[T]) RemoveNthFromEnd(n int) *Node[T] {
	if n == 0 {
		return nil
	}
	fast := ll.Head // this moves to the end
	slow := ll.Head // this should be one behind the nth from end

	for count := 0; count < n; count++ {
		if fast == nil { // list is too short
			return nil
		}
		fast = fast.Next
	}
	if fast == nil { // special case, removing head
		res := ll.Head
		ll.Head = ll.Head.Next
		return res
	}
	for fast != nil && fast.Next != nil {
		slow = slow.Next
		fast = fast.Next
	}
	res := slow.Next
	slow.Next = slow.Next.Next
	return res
}
```
The key to this is using dual pointers. We start by initializing a fast and a slow pointer to the head of the list.

Next, we move the fast pointer n nodes forward. In this way, the slow pointer is now 'n' behind the fast pointer. Now, we can move both pointers in lock step until fast is at the end. 

We can then remove the nth to last node and return it.

Is there a better way? Let me know in the comments.

Thanks!

_The code for this post and all posts in this series can be found [here](https://github.com/johnscode/gocodingchallenges)_
How to Remove Duplicate Paths in ZSH on MacOS
Tags: terminal, zsh, developer
Published: 2024-07-13 23:42:42

Having duplicate paths in your PATH variable can clutter your environment and lead to unexpected behavior when running commands. On macOS, using the ZSH shell, you can easily remove these duplicates to ensure a clean and efficient path configuration. Here’s a quick guide on how to do it using the typeset -U PATH command.

#What is the PATH Variable?

The PATH variable is a crucial component of your shell environment. It defines the directories in which the shell looks for executable files in response to commands issued by the user. Over time, you might accumulate duplicate entries in your PATH, leading to inefficiencies and potential conflicts.

#Why Remove Duplicates?
- Efficiency: A cleaner PATH means the shell can locate executables faster.
- Avoid Conflicts: Prevents potential issues where the shell might pick the wrong version of an executable.
- Maintainability: Easier to manage and understand your environment settings.

#Step-by-Step Guide to Remove Duplicate Paths in 
1. Open Your Terminal:
Start by opening your terminal application.
2. Add the Command to Remove Duplicates:
Insert the following line into your .zshrc file. This command will ensure that your PATH variable contains unique entries.

ZSH
```
typeset -U PATH
```

#Verification

To verify that the duplicates have been removed, you can print the PATH variable and inspect it:
```
echo $PATH
```

You should see that all the paths listed are unique.

#Conclusion

You can keep your PATH variable clean and efficient by running the command typeset -U PATH in your terminal. This simple step ensures that your shell environment remains optimized, preventing potential conflicts and improving command lookup times. Maintaining a tidy PATH is a small but significant aspect of system administration and personal environment management.
Founders Academy Workbook
Tags: founder, startup, capital, resources
Published: 2024-07-14 00:01:01

Founders Academy Workbook is given out on after the last day of the workshop. It summarizes the presentation content in reading format.

[Founders Academy Essentials Workbook](https://docs.google.com/document/d/170QE8T5DllHhABS5ZBAWFMCKiGt6omMeQBGvBofRpAM/edit?usp=sharing)

Gordon Daugherty, www.shockwaveinnovations.com
Founders Academy Day 1
Tags: startup, founder
Published: 2024-07-14 00:17:02

At the start

Start with a list of assumptions 
I believe, we believe
Audience experiences pain
They want to eliminate pain for benefit
They would choose us over alts for reasons
We believe audience would spend money to eliminate pain
Etc

Add how important is it this this true

Next question
How many potential users do you need to talk to
As many as necessary until you start getting similar response from most/many (hundreds or so)
Questions should be open-ended
(Do you agree that…)is closed ended. Injects opinion etc
How do you… Tell me about a time when… are open ended, less likely bias injected

If you are fortunate you will solve a problem that is Top 3 pain in the ass problem, not 8 or 15.

To ask people this question, get off the phone and out of the office, visit prospective customers in their natural environment
(you will find them more honest, open, you’ll be amazed at discovering new things, have them walk through their current process or solution)
Don’t just thank them for their time,
At the end of interview, recap what you heard and ask them to confirm you’ve got it right.
Show you were paying attention, give opportunity for clarify, ask if they want to be notified of release and/org beta test)

Feasibility
When start building think minimal, manual, crappy, local, throwaway, redo

MVP
Visually: it is not car tire, then axel, then cabin then running car
It is skateboard, scooter, bike, motorcycle, car
I.e minimum viable product entirely viable for problem
If it’s a “Top 3 pain in the ass”, the people will use the skateboard

Idea development homework
1. Business plan assumption: tell me which assumptions are already validated (investors want to hear what assumptions money is going toward validating)
2. Customer discovery interviews: if you cannot get to who you need to talk to, it is a survivability test. Pharmaceutical reps practice like lobbyists.

Bias influences your pen on the paper (when interviewing)
QR Code Component for Spotify Playlist
Tags: webdev, javascript, css, html
Published: 2024-07-14 00:37:02

Hello Dev.to community!

I've recently developed a QR Code Component for Spotify Playlist using HTML, CSS, and JavaScript. It allows users to easily scan a QR code and access my curated 'Top Music' playlist on Spotify.

Check out the full project on GitHub: [GitHub Repository](https://github.com/Der12kl/QRcodecomponent) and see the live version here: [Live Version](https://der12kl.github.io/QRcodecomponent/).

I'm looking forward to hearing your thoughts and suggestions!
Understanding Higher-Order Functions in JavaScript
Tags: javascript, webdev, programming, tutorial
Published: 2024-07-14 00:37:29

## Introduction

Higher-order functions are an important concept in JavaScript programming. They allow for more efficient and dynamic coding by treating functions as first-class citizens and passing them as arguments or returning them as values. Understanding higher-order functions can greatly improve one's proficiency in JavaScript programming. In this article, we will discuss the advantages, disadvantages, and features of higher-order functions in JavaScript.

## Advantages of Higher-Order Functions

One of the main advantages of higher-order functions is code reusability. By passing functions as arguments, we can avoid repeating code and make our codebase more maintainable. Higher-order functions also allow for the creation of more dynamic and flexible code. For example, we can pass in different functions to perform a task based on certain conditions.

## Disadvantages of Higher-Order Functions

While higher-order functions offer many benefits, they can also lead to more complex and difficult to understand code. Care must be taken when using higher-order functions to ensure that the code remains readable and maintainable. Additionally, working with multiple nested higher-order functions can sometimes result in performance issues.

## Features of Higher-Order Functions

Higher-order functions have four key features:
1. **Take Functions as Arguments:** They can accept functions as parameters, allowing for flexible code structures.
2. **Return Functions as Values:** They can return functions, enabling the creation of function factories.
3. **Assigned to Variables:** They can be assigned to variables, enhancing the dynamic use of functions.
4. **Nested Inside Other Functions:** They can be nested, which allows for creating complex function compositions.

### Example of Higher-Order Functions in JavaScript

```javascript
// A higher-order function that takes another function as an argument
function repeat(n, action) {
    for (let i = 0; i < n; i++) {
        action(i);
    }
}

// Using the higher-order function
repeat(3, console.log);

// A higher-order function that returns another function
function greaterThan(n) {
    return m => m > n;
}

let greaterThan10 = greaterThan(10);
console.log(greaterThan10(11));  // Outputs: true
```

## Conclusion

In conclusion, higher-order functions are a powerful feature in JavaScript that can greatly enhance the functionality and maintainability of our code. By understanding their advantages, disadvantages, and features, we can utilize them effectively in our programming. With practice and proper implementation, higher-order functions can greatly improve the efficiency and scalability of our JavaScript projects.
Find something worth solving, not what you can solve.
Tags: motivation, programming, productivity, learning
Published: 2024-07-14 00:52:58


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

I follow how software and programs were developed back in the day; one of my favorites is the creation of VisiCalc. When the computer keyboard used to have only left and right keys, no up and down keys, they developed a spreadsheet software. Isn't that amazing?

After reading a couple of articles and watching some videos, I wrote the calculation in my personal-tech diary:
"Don't think of it as if the problem is actually solvable by you or not. Or it must be easy, there could be a possibility that you need to go extra mile to bring it to life." 
"The only thing you need to think about is that the problem actually exists and people are willing to pay to get it solved" 20th December 2023

Consider it as a signal to start working on the idea that you think it's too big for you.

Cheers.
PS: Pardon my handwriting, I am better at typing. :)
Understanding Cohesion
Tags: architecture, designpatterns
Published: 2024-07-14 01:05:12

I just finished learning about Cohesion and it's part and here is a summary.

## What is it?

It is how your module is structured, not how it communicates/integrates with another module. That is a couple. 

## There are 7 types of Cohesion
The best one is **Function Cohesion**, where everything that helps do a specific well-defined task is kept in one module. Like an Authentication Module, which offers functionality like login, logout, forgot password, etc

The worst one is **Coincidental Cohesion**, where there is no specific relation between the elements, except that they are at the same place. Consider a Utility module that has all sort of functions like String Format, Printing Log, Creating New File, etc. 

The other ones didn't look interesting to me, they were like different sides of the same coin.
Configuring Routes for Azure Firewall (Part 4)
Tags: azure, cloud, network, security
Published: 2024-07-17 21:59:22

**Introduction:**

In the [previous part](https://dev.to/jimiog/securing-your-azure-web-application-with-azure-firewall-part-3-2j2d), we configured basic firewall rules for your Azure web application. Now, we'll establish routes to ensure all outbound traffic from your application subnets is directed through the Azure Firewall for enhanced security.

### Recording Firewall IP Addresses

1. In the Azure portal search bar, type **Firewall** and select **Firewall**.
2. Choose your application firewall.
3. On the firewall's overview page, locate the **Private IP address**. Copy and paste this address into a secure notepad for later use.

    ![Locating Private IP](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/in189vh1x1fjrjj5r9en.jpg)

### Creating a Route Table

1. Search for **Route Tables** in the portal and click **+ Create**.

    ![Creating Route Table](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vfz9x6uz1xyxafou6ujk.jpg)

2. Configure a name for your route table (e.g., **App-Vnet-Route-Table**).
3. Click **Review + create** and then **Create** to deploy the route table.

    ![Configuring Route Table](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mxvht6mg46s6i8c6eymd.jpg)

### Associating Subnets with the Route Table

1. Navigate to the newly created route table and click on **Go to resource**.
2. Under **Settings**, select **Subnets** and then click **Associate**.

    ![Associating Subnet](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/08wfsilaefxsmx19hlnt.jpg)

3. In the association window, choose your application virtual network and select both the **frontend subnet** and **backend subnet**. Click **OK** to associate them.

    ![Associated to the Subnet](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1xfs83bvpxwnz5gffmy5.jpg)

### Creating a Route for Firewall Traffic

1. Within the route table settings, navigate to **Routes** and click **Add**.

    ![Adding a Route](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1wg927vm19uye9zjtxzg.jpg)

2. Configure the route details as follows:
    * Name: Choose a descriptive name (e.g., **Route-to-Firewall**)
    * Destination type: Select **IP addresses**
    * Destination prefix: Enter **0.0.0.0/0** (this captures all outbound traffic)
    * Next hop type: Choose **Virtual appliance**
    * Next hop IP address: Paste the private IP address of your Azure Firewall copied earlier.
3. Click **Add** to create the route.

    ![Associating Route](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/41edlh4g1kp9zsfnjeso.jpg)

**Conclusion**

By associating the route table with your application virtual network subnets and creating a route with the firewall's private IP as the next hop, we've ensured that all outbound traffic from your application will be directed through the Azure Firewall for inspection and filtering. This strengthens the overall security posture of your web application.
Topics I Post About
Tags: todayilearned, todayisearched, devjournal, webdev
Published: 2024-07-14 01:39:44

**Classic Software - Software Technology like I learned in 2009**

https://dev.to/theholyspirit/display-a-text-file-in-a-browser-5202
https://dev.to/theholyspirit/manifestjson-13i

**Human Software - Metaphysical Technology Which Runs The Simulation**

https://dev.to/theholyspirit/the-quantification-of-perception-3iff
https://dev.to/theholyspirit/written-formatting-is-a-technology-36pb
https://dev.to/theholyspirit/a-product-engineering-understanding-332k
https://dev.to/theholyspirit/i-make-techno-1llb
https://dev.to/theholyspirit/conference-annoucement-template-18k4

**Technology Startup - Going Pro With Software And Business**

https://dev.to/theholyspirit/business-development-33i
https://dev.to/theholyspirit/founders-academy-day-1-pa4
https://dev.to/theholyspirit/founders-academy-workbook-3370
https://dev.to/theholyspirit/just-got-back-1kln
https://dev.to/theholyspirit/immediately-i-am-hiring-an-apprentice-379p
Elevator Pitch
Published: 2024-07-14 02:08:51

**Elevator Pitch**
Elevator pitch secrets

The average non task-oriented attention span of a human being is about 8 seconds.

So how to 8 second elevator pitch

1-2 sentences that description
1. The audience the solution helps
2. The problems solved
3. The benefit your customers receive

**Primary objective**
Your elevator pitch only needs to accomplish one thing
Generate e out interest to get asked any question that lets you expand a little further

A good elevator pitch (one that generates a questions) might lead to a question

Another definition: who i help + why should someone care
Another definition of EP
We help (customer) (solve problem) (for benefit).

Answer the “so what”
Make a bold claim or prediction (the more tantalizing the better)
Quantify, where possible
You objective is to generate enough internet to get any question

Strategy is to start with the end answer of “So what” and allow further questions to draw out the details.

“Doggie drone is an innovative dog-walking solution for the elderly. Our drones have completed 20,000 dog walks for more than 250 elderly and deserving dog owners”

Super mode: Only have 5-6 words. then can add 5-6 more.
Our drone walks your dog.
Our drone walks your dog so you don’t have to.

Then test with 20 people that dont know much about your venture.
1. Ask them to react with the first question that comes to mine (do not answer right away)
2. Ask them to tall you what they think your company does.

Might end up with multple versions segmented, e.g., investors vs prospects. Market A vs market b, product 1 versus product 2

**Evangelize**
All co-founders and employees must memorize the elevator pitch (at least the first sentence). At random times, ask an employee what your elevator pitch is.
“What’s our elevator pitch?”

**Homework:** write out elevator pitch and take it for a test drive  

---

These notes are inspired by Founders Academy. I've added some of my own understandings, and the gatherings of other participants.

Founder's Academy was a 3 day workshop for founders at any stage in the journey. It was hosted by Capital Factory and Gordon Daugherty July 2024.

[Archive of Founders Academy](https://dev.to/theholyspirit/just-got-back-1kln)
I am developing a Text Input Component based on Skia and Canvas
Tags: webdev, javascript, programming, opensource
Published: 2024-07-14 02:25:12

[visit github
](https://github.com/gezilinll/TextMagic)

TextMagic is the next generation text component. Unlike native input and textarea components, it supports richer text effects and typesetting capabilities. By controlling text layout autonomously, it ensures consistent text display across different platforms and browsers. TextMagic follows a modular design approach, offering both an integrated component(@text-magic) for seamless integration and standalone components for specific needs: @text-magic/input for text input and @text-magic/renderer for text typesetting and rendering.

If anyone shares an interest in text or related fields, I welcome discussion and collaboration. I'm also in the process of learning in this area and would appreciate more feedback and assistance.
Business Development
Tags: startup, technology, webdev, business
Published: 2024-07-14 02:30:25

**Business Development**
Can mean different things

**Strategic Partnerships**
Strategic partnerships are you partnering with a big player in the industry for mutually beneficial business agreement. As an exercise, make a list of the top 25 market revenue leaders. A Strategic Partner is on that list.

They think they are big and you are small. The newer business must think on the level of the big player, a different context of significance. So keep in mind their answer to the question "What is this little company doing for me?"

I must answer “What can I do for them?”

**How to provide value to Strategic Partners**
Provide revenue leverage, i.e. trigger meaningful revenue generation for them.

**Handling Exclusivity Requests** 

A Strategic Partner may request you only partner with them exclusively. 

Measure the business impact of agreeing with their agreement. If maintaining open accessibility favors the market, engage in shaping of the exclusivity request.

* Ensure they will announce the partnership publically
* Ensure they engage in co-marketing to generate awareness
* Detail how many HR (program managers) they will be giving for partnership
* Tie the agreement to business results -- get specific
* Limit the time frame of agreement
* Limit exclusivity to specific list of competitors
* Limit to specific geography
* Limit to specific applicaiton use case
* Consider reversing the table, and ensure exclusivity in return


**White Dabel Deal**

In a white label deal, the partner uses your product, but labels it as their own brand. Or potentially uses your component within their larger, named product. Also termed “Licensing.” They should pay R&D.

**Letter of Intent**

A Letter of Intent (LOI) is a descriptive contract of agreement between two parties, e.g. one's self and strategic partner.

A letter of intent is used to set a foundation that is later used by the lawyers to paper up details. It just states the decisions and intents of the business people, to be sent with lawyers as statements of representation.

LOIs are non-binding. Maximize the "credit" one is worth by including the motivations for its existence, expected value for the customer, and having it signed by an executive. Triggered outcomes, if this then that

Bring LOIs Letters of Intent to investors
Anecdote 1 startup has 15 LOIs worth 150M a year

---

These notes are inspired by Founders Academy. I've added some of my own understandings, and the gatherings of other participants.

Founder's Academy was a 3 day workshop for founders at any stage in the journey. It was hosted by Capital Factory and Gordon Daugherty July 2024.

[Archive of Founders Academy](https://dev.to/theholyspirit/just-got-back-1kln)
The process of setting up a Mysql container with Docker Desktop and connecting from the host machine
Tags: docker
Published: 2024-07-14 03:40:58

Docker Desktop version is `4.32.0`

## Get Mysql Image
There is a search bar at the header.
Input `mysql` and you will see a list containing mysql.
Click on it.
![A search bar](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b838lemrmojfcs8rqepu.png)


![A list containing mysql](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lmc9g570hog7jgu6f3gb.png)

You will see the `Pull` button and click it.
If you wanna pull the image via the terminal, use the following command:
```bash
docker pull {image_name}
```
![The Pull button](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cz32nph26twqilxaigbp.png)

## Set Up Environmental Variables

After the image is downloaded, go to the images page from the drawer and you will see the MySQL image listed.
Click the `run` buttn.

![The MySQL image listed](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qydczanc5u08lmk30je3.png)

In the Optional settings, input the values as below and click the `Run` button

![The Optional settings](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ajavula8qiv2y7daycno.png)

The command is as follows:
```bash
docker run --name mysql-container -e MYSQL_ROOT_PASSWORD=password -p 3306:3306 -d mysql:latest
```

## Connect To The Mysql Container From The Host Machine
You might think that you can connect with the following command:   
```
mysql -u root -p
```
But actually you can't.
The error message will be: 
`ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
`
I asked ChatGPT about the reason for the error and the answer is you need to add the host IP as below.
```
mysql -u root -p -h 127.0.0.1
```
And now you can connect to it.
Thank You!!