teleren/devto huggingface dataset:
Creating a minimal python development environment under Windows
Tags: import, pip, python, windows
Published: 2024-03-09 18:00:15

<p>This article explains how to get a minimal running Python environment under Windows.

After exploring several alternatives, like using micromamba script which is based in anaconda, I went on researching to obtain a stripped version of Python to use as a stub for running non compiled code under Windows.
Python.org has the embedded Python distribution on Windows (<a href="https://www.get-python.org/downloads/windows/">see download page</a>). The 64-bit 3.11.8 version zip distribution is 11 MB (40 MB expanded). If you analyse its contents, you'll se binaries <code>python</code> and <code>pythonw</code> there. What you don't have is the <code>pip</code> executables, which you can add later.
So, extract the <code>python-x.y.z-embed-amd64.zip</code> in a directory of your choice. In the extracted files, find the file <code>pythonXy._pth</code> which has the following contents:</p>

<pre>
<code>pythonxyy.zip
.

# Uncomment to run site.main() automatically
#import site
</code></pre>

<p>Uncomment the last line and save the file.

Download the script <code>get-pip.py</code> from <a href="https://bootstrap.pypa.io/get-pip.py">https://bootstrap.pypa.io/get-pip.py</a> and save it inside the python directory.
Open a command line inside the directory and run <code>python get-pip.py</code>.
When the execution fininshes, you should now have a running python environment ready to be used.
Add the created <code>Scripts</code> directory to the front of your PATH environment variable :</p>
<pre><code>set PATH=%CD%\scripts;%PATH%</code></pre>
<p>to ensure you are running the right  <code>pip</code> to install what you need.
For example I like to install the <a href="https://pypi.org/project/pip-search/"><code>pip_search</code></a> module which provides the deprecated <code>pip search</code> functionality. </p>
Supercharge Your Productivity: Top 7 AI Tools for March 2024
Tags: productivity, ai, opensource
Published: 2024-03-09 17:42:42

In this post, I have curated a list of the best AI productivity tools designed to help you get more done in less time.

## 1. [MindMeister](https://www.mindmeister.com/)

MindMeister uses AI to enhance mind mapping, allowing you to brainstorm and organize ideas more effectively. Leverage intelligent features for better visualization and planning.

![MindMeister](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/06ynbcblzo23mp8aof4s.png)


## 2. [Copy.AI](https://www.copy.ai/)

Copy.ai is a valuable AI tool for content creators: marketers and sales teams looking to leverage the full power of AI to create top-notch content that resonates with their target audience.


![Copy.AI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jyuk0tl5kztxy9adu01r.png)



## 3. [Mem.AI](https://mem.ai/everything/)

Mem.ai is an efficient AI tool that helps you organize and retrieve your team’s collective knowledge effortlessly. Smart suggestions and automatic organization enhance your note-taking experience.


![Mem.AI](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8x94q84wl1k4w1eu7fhd.png)



## 4. [Descript](https://www.descript.com/)

A powerful AI-powered tool for video and audio editing that includes features like transcription, voice cloning, collaborative editing, multitrack editing, and screen recording.


![Descript.png](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sydu7fpqpuxf8vcea3lk.png)

## 5. [DALL·E 3 by OpenAI](https://openai.com/dall-e-3)

DALL·E 3 is a new AI system that can easily translate your ideas into realistic images and art from a description in natural language.


![OpenAI.png](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xojbt0ybwx9pj06esrk2.png)



## 6. [Midjourney](https://www.midjourney.com/home?callbackUrl=%2Fapp%2F)

Midjourney is an independent research lab exploring new mediums of thought and expanding the imaginative powers of the human species—AI Art Generator.


![Midjourney](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/gvd7kkj8ovgdtrjw9id1.gif)


## 7. [Genei.io](https://app.genei.io/summarise)

Genei.ai is an AI-powered research tool that enhances summarization and produces blogs, articles and reports faster.


![Genei.io](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/v9ypd6702i3nd3688aqi.png)



## Recap
If you’ve read this far, first of all, thank you! Please let me know if I have missed any or if you believe that you have your own AI tool that should be listed here.
zig vscode세팅
Published: 2024-03-09 17:40:50

vscode 완전삭제 명령어

rm -fr ~/Library/Preferences/com.microsoft.VSCode.helper.plist
rm -fr ~/Library/Preferences/com.microsoft.VSCode.plist
rm -fr ~/Library/Caches/com.microsoft.VSCode 
rm -fr ~/Library/Caches/com.microsoft.VSCode.ShipIt/ 
rm -fr ~/Library/Application\ Support/Code/ 
rm -fr ~/Library/Saved\ Application\ State/com.microsoft.VSCode.savedState/ 
rm -fr ~/.vscode/ 
rm -fr ~/.vscode/extensions

몇번을 지웠다 깔았다 했는지 모르겠다

확장 프로그램
CodeLLDB
ZLS
Structure
Published: 2024-03-09 17:38:47


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




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




![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0g89t4imps9sd6vzbpte.jpeg)
Cinco novidades bem legais do PHP 8
Tags: webdev, php, programming, productivity
Published: 2024-03-09 17:19:52

Resolvi separar as cinco atualizações que achei mais legais e úteis do PHP 8.

**1. Declaração de Variáveis no Construtor:**

Antes:
```php
class Cliente {

    private $nome;

    private $idade;

    public function __construct($nome, $idade) {

        $this->nome = $nome;

        $this->idade = $idade;

    }

}
```
Em PHP 8:
```php
class Cliente {
    public function __construct(
        private string $nome, 
        private int $idade
    ) {}
}
```

**2. Named Arguments:**

Antes:
```php
function calculoPreco(
    $liquido = 0, 
    $bruto = 0, 
    $impostos = 0
) {}

// para passar apenas o imposto seria necessário fazer assim
calculoPreco(
    null, 
    null, 
    200
)
```
Em PHP 8:
```php
calculoPreco(impostos: 200);
```

**3. Union Types:**

```php
function calculoPreco(
    $liquido, 
    $bruto, 
    $impostos
): int|float|null {}

function soma(
    int|float $numero1, 
    int|float $numero2
) {}
```

**4. Função `str_contains()`:**

```php
$frase = 'me ache aqui';
echo str_contains($frase, 'ache');
```

**5. Captura de Erros Sem Variáveis:**

Antes:
```php
try {
    soma(2, 3);
} catch (Exception $error) {
    echo "Erro na soma";
}
```
Em PHP 8:
```php
try {
    soma(2, 3);
} catch (Exception) {
    echo "Erro na soma";
}
```

Fiquei animado com essas atualizações, que certamente facilitarão meu cotidiano como desenvolvedor e o de outros também. É ótimo ver o PHP sempre evoluindo! E você? Acredita que o PHP vai morrer? Qual foi a novidade que mais te agradou? Manda aí nos comentários.
Full Backend Project Connect MongoDB Atlas in NodeJS Part - 2
Published: 2024-03-09 17:15:44

If you complete the first part of this blog series then lets get start with mongoDB. [read part-1](https://dev.to/shaon07/full-backend-project-setup-and-structure-in-nodejs-part-1-188g)

- first of all goto: [MONGODB ATLAST](https://www.mongodb.com) login with your email then create a project.

- then create a cluster and fill-up the form and save the **username** and **password** after saving scroll down and allow the **IP Address: 0.0.0.0/0** for testing perpose

- then all done save and click on connect button and click on on the **VSCODE** option and copy the connection string.

after that open **VSCODE** select **.env** file and add the following code with your **username** and **password**

```
PORT=8000
MONGO_URI=mongodb+srv://username:password@cluster0.zvswttn.mongodb.net
```
save the files.

- then open the **constants.js** file and add the following code:

```
export const DB_NAME = "choose_a_name";
```

- then save all the following files

- then open your terminal and install this following **NPM packages** **mongoose express dotenv**

> copy the following snippets in your terminal and past 

```
npm i mongoose express dotenv 
```

- after successfully installed done **open db/index.js** file
and copy the following code:

```
import {DB_NAME} from "../constants.js";
import mongoose from "mongoose";

const connectDD = async () => {
    try {
        const connectionDB = await mongoose.connect(`${process.env.MONGO_URI}/${DB_NAME}`);
        console.log(`MONGODB Connected: ${connectionDB.connection.host}`);
    } catch (error) {
        console.log(`MONGODB Connection Error: ${error.message}`);
        process.exit(1);
    }
}

export default connectDD;
```

- then save the file and open **index.js** root file and copy the following code:

```
import dotenv from "dotenv";
import connectDD from "./db/index.js";

dotenv.config();
connectDD();
```

- then save the files and **open your terminal** and run 

```
npm run dev
```

Congratulation your database successfully connected with your server
Testing fundamentals
Published: 2024-03-09 16:51:08

Some notes from the Frontendmasters' workshop `Testing Fundamentals` by Miško Hevery.

### Theory

- We test because it is the path of least resistance.
- Micro development model: develop - test - develop - test, etc. The question becomes: are tests are automated?
- The magic of testing is how I design my code so it is easy to test. It is not about the tools or knowledge. 

#### Kind of tests

- Testing level: unit tests, integration tests (functional), system test (e2e), acceptance tests.
- Automation: automated tests, manual tests.
- Functionality: functional, performance, security, usability, a11y. 
- Other: regression (add tests when a bug is found and fixed to avoid the regression again), smoke (large system but running all tests takes hours, so you select a subset of tests for a sanity check).

### Code

#### Unit testing (tools, TDD, mocking, dependencies, coverage, benchmark)

- They use `vitest` in the course, but I guess it is a similar test runner to say `jest` syntax-wise.
- You may have a function to test that calls an external service. It would work if you make the api call in the test, but it will get expensive (what if you are testing a card transaction..) and flaky (what if the service is down..). So `mocking` is like inserting a collaborator on the other side of the api call that returns the stuff you want for your test.
- So to test `fetch`, instead of importing and calling it in the function, you pass it to the function so you can mock that function. Like:

```
const functionToTest = async (arg1, fetch) => {
    const response = await fetch(whatever)

    return response
}
```

So the test will have:

```
it('whatever', async () => {
    // This is the "pretend" fetch, but it doesn't know what to do yet
    const mockFetch = jest.fn<Type>()

    const response = functionToTest(whatever, mockFetch)

    expect(response).toWhatever()
})
```

- You can do `it.todo()` while you are writting tests, they won't error out.
- `expect(object).toMatchObject(anotherObj)` I think it is similar to the `expect.objectContain(anotherObj)`. << TBD, I forgot the exact syntax.

#### Integration testing
#### Component testing (UI)
#### E2E testing
KIVE9EVIK 0.2
Tags: codepen
Published: 2024-03-09 16:34:10

[](https://codepen.io/Ceyeas/pen/bGZJQmM

```
https://codepen.io/Ceyeas/pen/bGZJQmM
```
)

{% codepen https://codepen.io/Ceyeas/pen/bGZJQmM %}
Introducing data-standards: Simplifying Data Standardization
Tags: iso, github, javascript, javascriptlibraries
Published: 2024-03-09 15:48:32

Hey there, fellow developers! 🖐️ Are you tired of wrestling with data standards like ISO, ANSI, and others in your projects? Do you wish there was an easier way to manage and parse those pesky standard codes? Well, fret no more because we've got just the solution for you – introducing data standards, your new best friend for simplifying data standardization in your projects!

## Why Data Standards Are Your Jam

Before we dive into the library, let's take a quick second to talk about why data standards library. First Most data-standard libraries focus more on countries and currencies, and I faced that I needed countries' data related to Football Abbreviations,  so I decided to learn more about web scrapping and data collecting and finished by making a small library provides this data in addition to basic iso data like currencies, languages and looking to add more standards data.

## Let's take a look at how the library works
First **[@desoukysvyc/data-collector](https://www.npmjs.com/package/@desoukysvyc/data-collector)** package is a comprehensive collection of data related to ISO standard codes. It provides a simple and efficient way to access information about countries, languages, currencies, and more, based on ISO standards. Also, each standard has its own package

- [**Countries**](https://www.npmjs.com/package/@desoukysvyc/countries)
- **[Currency](https://www.npmjs.com/package/@desoukysvyc/currency)**
- **[Language](https://www.npmjs.com/package/@desoukysvyc/languages)**
- **[Other ISO data](https://www.npmjs.com/package/@desoukysvyc/iso-data)**

### All you need to do to get start
```bash
npm i  @desoukysvyc/data-collector 
npm i {data-library}
```
Once installed, you can start using the library in your projects right away. Check out the documentation for detailed usage instructions and examples.

## Future Plans

I'm committed to continuously improving and expanding data standards to meet the evolving needs of users. In the future, we plan to add support for additional data standards.


Thank you for your interest in data standards. I welcome your feedback and suggestions for further improvements. Happy coding!

[Github Repository](https://github.com/desouky95/data-standards)
Giới thiệu trang web so sánh giá 2momart - Địa chỉ mua sắm đáng tin cậy
Tags: writing, ecommerce
Published: 2024-03-09 15:44:42

Biết được người tiêu dùng hiện nay vẫn còn những rủi ro và lo ngại bất cập khi tiếp cận mua sắm trực tuyến, 2momart ra đời đóng vai trò là công cụ so sánh giá giúp khách hàng mua sắm nhanh chóng và thuận tiện hơn. Cùng theo dõi bài viết dưới đây để hiểu hơn về cách hoạt động và những lợi ích của website so sánh giá này nhé.

**Giới thiệu tổng quan về website so sánh giá 2momart**

Trang so sánh giá trực tuyến 2momart này hoạt động như một trang tiếp thị liên kết đóng vai trò là cầu nối giữa nhà cung cấp và người mua hàng. Trên trang web này, chúng tôi giới thiệu những người bán hàng đáng tin cậy cho bạn và cung cấp thông tin chi tiết về từng mặt hàng để bạn có thể dễ dàng đưa ra lựa chọn tốt nhất.

Web so sánh giá 2momart là một trong những cầu nối quan trọng giữa người bán và người mua hàng

Khách hàng sẽ tìm thấy rất nhiều sản phẩm, dự án thuộc nhiều lĩnh vực khác nhau: hàng công nghệ, gia dụng, điện máy, thiết bị nhà bếp, thiết bị văn phòng, gia dụng, nội thất, thể thao, ô tô, mỹ phẩm - làm đẹp...

Trang so sánh giá uy tín 2momart còn mang đến cho bạn nhiều trải nghiệm tuyệt vời liên quan đến mặt hàng, cách sử dụng sản phẩm hay các chương trình khuyến mãi hấp dẫn. Tất cả đều có mục tiêu chung là giúp bạn mua hàng nhanh hơn và dễ dàng hơn.

**Những lợi ích đặc biệt của các trang web so sánh bạn nên biết**

Như đã nói ở trên, khi so sánh giá, một trong những yếu tố thu hút khách hàng nhất chính là lợi thế về giá. Những địa điểm này thường đưa ra mức giá chính hãng một cách nhanh chóng, giúp khách hàng tiết kiệm được nhiều chi phí.

Các trang web so sánh giá uy tín này không chỉ tập trung vào các sản phẩm chính hãng với mức giá thấp mà còn có sự cam kết cao về uy tín của người bán, đảm bảo rằng các sản phẩm bạn mua trên trang web là hoàn toàn chính hãng và xác thực. 

Web so sánh giá sẽ đảm bảo sự an toàn, uy tín giữa những người bán và chất lượng sản phẩm

Ngoài ra, một số trang so sánh giá uy tín trên thị trường cũng sẽ cung cấp nhiều thông tin thú vị cho khách hàng trước khi mua. Đây được coi là thời điểm tuyệt vời của khách hàng, giúp họ đưa ra quyết định mua sắm nhanh chóng.

**Chẳng hạn, mua sắm trực tuyến qua trang so sánh giá**

2momart.vn sẽ mang đến cho bạn nhiều thông tin thú vị vì có hệ thống bài viết cung cấp thông tin khoa học, phù hợp với quá trình mua sắm của khách hàng Việt Nam.

Tại đây cũng có rất nhiều loại mã giảm giá đặc biệt, giúp khách hàng vốn đã mua sắm giá rẻ nay sẽ rẻ hơn rất nhiều sau khi áp mã giảm giá thành công ở khâu thanh toán. Ghé vào website so sánh giá 2momart để hiểu rõ hơn về ưu điểm của việc so sánh giá trực tuyến nhé!
Time to intercept...
Tags: javascript, typescript, webdev, programming
Published: 2024-03-09 15:35:58

Why say _Time to intercept_? 

This good time to let `MR.HTTP` to be intercepted. But why and how, with what?

Let's break this down like a plan to rob a bank rather borrow the bank, we'll return the 💰 once we are pleased 🤣. 

The `Why`: 

> An intercept is required or necessary to get us our money, but the only way to do so requires someone from the team to make our key victim to be intercepted. The victim being the bank manager (API endpoint). The receiver of all the good things. 

The `How`:

> We can buy our bank manager (API endpoint) with a delay 🎂. The cake is the interceptor, we magically add some sleep to it then the rest is a dream. What all this mean is our package called [em-interceptor](https://www.npmjs.com/package/em-interceptor). 

The `What`:

> Once we have our master sleep, the rest is to let DR.🎂 to work the best out to get us codes, do some appends and return the potion for master sleep to wake up. That is it. We just got helped by the bank manager to borrow 💰. Once we outside, we'll send a good call.

The `With`:

> Check out the newest but always used transaction. HTTP Interceptor [em-interceptor](https://www.npmjs.com/package/em-interceptor), well this one uses `axios`. By default, it was supposed to hack any http client to intercept and add bearer token on the header. Not a good way to approach but then saw `axios` is used on most basis and why not just add some recipe.

**Break a leg not the bones. Keep breathing but suffocating.**
Don't forget to do the basics. 

🎈 again next time.
Airport Transportation: Your Stress-Free Journey Starts Here
Published: 2024-03-09 15:23:01

Traveling can be an exciting experience, but getting to and from the airport can often be a source of stress and inconvenience. Whether you're a frequent flyer or embarking on a special trip, [Raritan Limousine Service in Hillsborough Township, NJ](http://www.raritanlimousineservice.com), can make your journey smooth and hassle-free. With their professional services and experienced drivers, they ensure that you reach your destination on time and in comfort.

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



Here are some reasons why you should consider airport transportation services in Hillsborough Township, NJ:

Convenience and Timeliness
When it comes to catching a flight, every minute counts. With airport transportation services in Hillsborough Township, NJ, you can eliminate the hassle of finding parking or relying on public transportation. Professional drivers will pick you up from your home or any other location, ensuring that you arrive at the airport well ahead of your departure time. They stay updated with flight schedules and traffic conditions, helping you avoid unnecessary delays.

Comfortable and Reliable Vehicles
Raritan Limousine Service, provides well-maintained and comfortable vehicles to ensure a pleasant journey. Whether you're traveling alone or with a group, they have a range of vehicles to accommodate your needs. From sedans to spacious vans, you can choose a vehicle that suits your preferences and travel requirements. These vehicles are regularly serviced and equipped with amenities to make your ride as comfortable as possible.

Professional and Experienced Drivers
Trusting your airport transportation to experienced and professional drivers gives you peace of mind. The drivers employed by Raritan Limousine Service, are knowledgeable about the local area and are well-versed in providing efficient and safe transportation. They undergo thorough background checks and are trained to prioritize customer service, ensuring that you have a pleasant experience from start to finish.

Cost-Effective Option
Contrary to popular belief, airport transportation services in Hillsborough Township, NJ, can be a cost-effective option, especially when compared to other forms of transport or parking fees. With fixed rates and transparent pricing, you can plan your travel budget accordingly. Additionally, by avoiding the stress of driving in traffic or searching for parking, you can save valuable time and energy to make the most of your journey.

Conclusion
[Raritan Limousine Service](http://www.raritanlimousineservice.com) offers a convenient and stress-free way to travel to and from the airport. With their focus on convenience, comfort, and punctuality, they ensure that you start and end your journey with ease. Take advantage of their professional services, experienced drivers, and cost-effective options to make your travel experience more enjoyable. Contact us now for your next trip and enjoy the benefits of a stress-free journey.
🔥 Top 10 Best Websites to Learn Coding for Free! 💻
Tags: webdev, javascript, beginners, programming
Published: 2024-03-09 15:18:01

Are you considering taking a coding course but are unsure where to begin? Fear not! Numerous helpful, free websites are available. Now let's look at a few of the top ones:

1. **[Programiz](https://www.programiz.com/)**: This website offers comprehensive tutorials and examples for various programming languages, including Python, C/C++, Java, and more. It's a great resource for beginners and experienced programmers alike.

2. **[Codecademy](https://www.codecademy.com/)**: This website offers engaging projects and quizzes to help you learn coding languages like Python and JavaScript.

3. **[edX](https://www.edx.org/)**: This platform provides online courses from prestigious universities in computer science and other areas.

4. **[Exercism](https://exercism.io/)**: Experience coding in several languages and receive mentor feedback here.

5. **[freeCodeCamp] (https://www.freecodecamp.org/)**: This website offers a comprehensive curriculum covering HTML, CSS, and JavaScript for web programming.

6. **[Dash](https://dash.generalassemb.ly/)**: Use interactive lessons to learn JavaScript, HTML, and CSS.

7. **[Web Docs for MDN](https://mozilla.org/developer)**: With tutorials on HTML, CSS, and JavaScript, it's a useful tool for web developers.

8. **[SoloLearn](https://www.sololearn.com/)**: This software, which provides quick lessons and tests, lets you learn coding on the move.

9. **[The Odin Project](https://www.theodinproject.com/)**: This website provides web developers with an extensive curriculum.

10. **[W3schools](https://www.w3schools.com/)**: A well-known site providing simple-to-follow courses for learning web programming.

Both novices and experts will love these websites. So why not give them a shot and begin learning to code right now? Remember to share these fantastic resources with your friends!