teleren/devto huggingface dataset:
Go versus Rust in 2024: Measuring the Best with 15 Benchmarks for Everyday Tasks
Tags: go, rust, programming, bench
Published: 2024-07-13 13:24:38

This post idea was born in last several public and personal discussions with highlighting a lof of technical, political, personal and religious aspects. Both programming languages got success in last decade, but released in different times: Go in 2009 and Rust in 2015.

![Go logo, ©Wikipedia](https://upload.wikimedia.org/wikipedia/commons/thumb/0/05/Go_Logo_Blue.svg/800px-Go_Logo_Blue.svg.png)

Some people think that Go and Rust are not direct competitors, but this is not quite true: they cross very often: console tools, desktop applications, web services, and more. The only non-crossing area is embedded, but here Rust is not very strong due to static linking and strong competition from C/C++. This means that in many cases you will have to choose between Go and Rust as the main language for your next project.

![Rust logo, ©Wikipedia](https://upload.wikimedia.org/wikipedia/commons/thumb/d/d5/Rust_programming_language_black_logo.svg/800px-Rust_programming_language_black_logo.svg.png)

The tests were not selected by code complexity or level of extravagance, the main pattern is popular tasks. Even in radically different projects like machine learning, networking, or audio processing, you can't escape the main building block: basic math like addition, string concatenation, sorting, hashing, parsing, and more. So let's dive deep and figure out what the code looks like and which is faster. Time is the most important here - the faster the better.

Check the benchmarks and final score at [Nix Sanctuary](https://nixsanctuary.com/go-versus-rust-in-2024-measuring-the-best-with-15-benchmarks-for-everyday-tasks/).
Don't forget to subscribe and never miss [new NS programming posts](https://nixsanctuary.com/tag/programming/).
Gitleaks: Find forgotten codes in your repositories
Tags: git, github, security
Published: 2024-07-13 13:30:55

One of the problems you can face either when you are new to programming or when you have more experience is to forget somewhere in your code or in a file that you upload to git, codes or other data that should not be public. Obviously, no one will inform you that somewhere in public you have exposed your email username and password or the token with which you request data from some service and they are charging you for it. Not even git will tell you, when you commit your code, that you are going to make a big mistake.

Gitleaks was developed for this purpose. Gitleaks is a fast, lightweight and open source scanner for git repositories that can alert you abbout forgotten passwords or tokens. You can either run it autonomously in one of your repositories or integrate it automatically so that when you commit will inform you if it found a code leak. The tool is available for linux, mac and windows.

- Official page [here](https://gitleaks.io/)
- github repository [here](https://github.com/gitleaks/gitleaks)
- video demonstration [here](https://www.youtube.com/watch?v=hux-W8PAxYE&ab_channel=geralexgr)
JOJOBET GÜNCEL GİRİŞ ADRESİ
Published: 2024-07-13 13:32:18

[JOJOBET GÜNCEL GİRİŞ](https://cutt.ly/eehgIe1q)

Jojobet'e giriş yapabilmek için aşağıda ki turuncu yazılı cümleye tıklayınız.

-> [JOJOBET GÜNCEL GİRİŞ ADRESİ](https://cutt.ly/eehgIe1q) <-

-> [JOJOBET GÜNCEL GİRİŞ ADRESİ](https://cutt.ly/eehgIe1q) <-

-> [JOJOBET GÜNCEL GİRİŞ ADRESİ](https://cutt.ly/eehgIe1q) <-

-> [JOJOBET GÜNCEL GİRİŞ ADRESİ](https://cutt.ly/eehgIe1q) <-

-> [JOJOBET GÜNCEL GİRİŞ ADRESİ](https://cutt.ly/eehgIe1q) <-

Jojobet casino ve canlı bahis sitesi resmi Tumblr blog adresidir. Buradan Jojobet yeni giriş adresini öğrenebilir ve Jojobet sitesine giriş yapabilirsiniz.
Luminous Wicks: Enchanting Aromas and Elegant Candles with Wix Studio
Tags: devchallenge, wixstudiochallenge, webdev, javascript
Published: 2024-07-13 13:37:38

This is a submission for the [Wix Studio Challenge].

## What I Built
I have developed a dynamic ecommerce website from scratch using the Wix platform, specializing in offering a curated selection of candles and aromas. Leveraging Wix's powerful design tools and customizable features, I created a visually appealing and intuitive online store. The website showcases a diverse range of high-quality products, each chosen for their unique scents and therapeutic benefits. With a focus on user experience, I implemented seamless navigation and engaging product displays to enhance customer interaction and satisfaction. This project highlights my ability to utilize Wix's robust capabilities to build a sophisticated ecommerce solution tailored to meet the needs of candle and aroma enthusiasts.

## Demo
https://syednasreen1506.wixstudio.io/candles


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

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

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

## Development Journey
My journey with the candles and aromas ecommerce project began by curating a specialized product collection through thorough market research. Using the versatile Wix platform, I swiftly designed and launched a visually captivating and user-friendly ecommerce website from scratch. Wix's intuitive tools enabled me to optimize performance and enhance user experience, ensuring seamless navigation and highlighting the unique qualities of each product. This project highlights Wix's effectiveness in empowering me to create a professional online shopping experience tailored for candle and aroma enthusiasts.

<!-- Which APIs and Libraries did you utilize? -->
• Integrated a fully functional store for showcasing products.
• Implemented a dynamic blog to engage customers with updates and 
  insights.
• Established a loyalty program to reward and retain returning 
  visitors.
• Developed a members area for exclusive content and personalized user 
  experiences.
Shopping Site
Tags: devchallenge, wixstudiochallenge, webdev, javascript
Published: 2024-07-13 13:46:04

*This is a submission for the [Wix Studio Challenge ](https://dev.to/challenges/wix).*

## What I Built

using wix studio to build this website

## Demo
[preview](https://karthikdevacc.wixstudio.io/fashion-store)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/f2vcwibj2onz389zb6fn.png)
I am developing a Text Input Component based on Skia and Canvas
Tags: javascript, webdev
Published: 2024-07-13 13:49:33

[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.
How to Handle Frames and Windows in Selenium WebDriver #InterviewQuestion
Tags: java, selenium, interview
Published: 2024-07-13 13:55:20

Interview Question: Handling Frames and Windows in Selenium WebDriver

Handling Frames and Windows in Selenium WebDriver
-------------------------------------------------

**Handling Frames:**

Frames in HTML are used to divide a web page into multiple sections, where each section can load its own HTML content. To interact with elements inside a frame using Selenium WebDriver with Java, you need to switch the WebDriver focus to that frame.

**Example Scenario:**
```java
// Assume 'driver' is an instance of WebDriver

// 1. Switch to a frame by index
driver.switchTo().frame(0);

// 2. Switch to a frame by name or ID
driver.switchTo().frame("frameNameOrId");

// 3. Switch to a frame by WebElement
WebElement frameElement = driver.findElement(By.id("frameId"));
driver.switchTo().frame(frameElement);

// 4. Switch to the parent frame (i.e., switch back to the previous frame level)
driver.switchTo().parentFrame();

// 5. Switch to the default content (i.e., switch back to the main document)
driver.switchTo().defaultContent();
```

**Handling Multiple Windows/Tabs:**

When a web application opens a new window or tab, Selenium WebDriver treats each window or tab as a separate window handle. To switch between these windows or tabs, you can use the window handles provided by WebDriver.

**Example Scenario:**
```java
    // Assume 'driver' is an instance of WebDriver
    // Get all window handles
    Set<String> windowHandles = driver.getWindowHandles();
    
    // Switch to a new window/tab
    for (String handle : windowHandles) {
        driver.switchTo().window(handle);
        // Perform actions on the new window/tab
    }
```    

**Challenges Faced:**

One common challenge is synchronizing WebDriver actions when dealing with frames and multiple windows. For example, when switching between frames or windows, WebDriver may need to wait for the new content to load, which can lead to synchronization issues if not handled properly.

**Resolution:**

To address synchronization issues, I implemented explicit waits using WebDriverWait and ExpectedConditions in Selenium. This ensures that WebDriver waits until certain conditions (like element visibility or presence) are met before proceeding with the next action, thus preventing synchronization errors.
Build a ChatGPT on AWS
Published: 2024-07-13 14:02:03

**_Introduction_**
ChatGPT is based on OpenAI's GPT (Generative Pre-trained Transformer) architecture. It leverages deep learning to understand and generate human-like text based on the input it receives. Building a ChatGPT involves setting up a similar environment where your model can learn from data and interact with users in a conversational manner.

_Service used:_

API Gateway
lambda function
Bedrock
IAM Role

1. _**Create a bedrock:**_

It provides a foundation models:
- base models
- custom models
- imported models
the request access should be provided before using.

click on base model
- no access to any model

_Step 1:_
To providing access click on 'enable all models'

_Step 2:_
 uncheck the Anthropic models.

2.**_create an IAM role_**

- click roles
- choose lambda function as service.
- add permissions (bedrockFullAccess)(cloudwatchlogFullAccess)

- provide role name.
 
3._**create a lambda function:**_

- create a function name.
- set the run time
- choose existing role.
function is created and click configuration to increase the timeout.

this is our request body the AI model 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6lzoyscxlqzyay8ohrq2.jpg)

create a lambda code and paste it on the lambda_function.


4.**_create a API Gateway:_**
-create a API gateway to create a endpoints
- click on restAPI
- provide a name.

click regional and create a resource.
- create a method.
- choose method type "POST"
- check the lambda proxy 
- choose the lambda function.
- click create the method.

_Deploy the APT_
- deploy the API to a new stage
the API endpoint is create!

this API endpoint will call the lambda function to generate the response.

 - copy the lambda endpoint and paste it in the POSTMAN tool.
 - select the method as post.
Velo Credit Loan App Customer Care Helpline Number +91) //-9831170350-}= 7864967058 call now.
Tags: webdev
Published: 2024-07-13 14:04:01

Velo Credit Loan App Customer Care Helpline Number +91) //-9831170350-}= 7864967058 call now.Velo Credit Loan App Customer Care Helpline Number +91) //-9831170350-}= 7864967058 call now.Velo Credit Loan App Customer Care Helpline Number +91) //-9831170350-}= 7864967058 call now.
Velo Credit Loan App Customer Care Helpline Number +91) //-9831170350-}= 7864967058 call now.ppp
Tags: beginners
Published: 2024-07-13 14:04:50

Velo Credit Loan App Customer Care Helpline Number +91) //-9831170350-}= 7864967058 call now.Velo Credit Loan App Customer Care Helpline Number +91) //-9831170350-}= 7864967058 call now.Velo Credit Loan App Customer Care Helpline Number +91) //-9831170350-}= 7864967058 call now.
![Uploading image](...)
Case Study: Counting Keywords
Tags: java, programming, learning, beginners
Published: 2024-07-13 14:35:39

This section presents an application that counts the number of the keywords in a Java source file. For each word in a Java source file, we need to determine whether the word is a keyword. To handle this efficiently, store all the keywords in a **HashSet** and use the **contains** method to test if a word is in the keyword set. The code below gives this program.

```
package demo;
import java.util.*;
import java.io.*;

public class CountKeywords {

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		System.out.print("Enter a Java source file: ");
		String filename = input.nextLine();
		
		File file = new File(filename);
		if(file.exists()) {
			try {
                System.out.println("The number of keywords in " + filename + " is " + countKeywords(file));
            } catch (Exception e) {
                System.out.println("An error occurred while counting keywords: " + e.getMessage());
            }
        } else {
            System.out.println("File " + filename + " does not exist");
        }
	}
	
	public static int countKeywords(File file) throws Exception {
		// Array of all Java keywords + true, false and null
		String[] keywordString = {"abstract", "assert", "boolean", "break", "byte", "case", "catch", "char", "class", "const", "continue", "default", "do", "double", "else", "enum", "extends", "for", "final", "finally", "float", "goto", "if", "implements", "import", "instanceof", "int", "interface", "long", "native", "new", "package", "private", "protected", "public", "return", "short", "static", "strictfp", "super", "switch", "synchronized", "this", "throw", "throws", "transient", "try", "void", "volatile", "while", "true", "false", "null"};
		
		Set<String> keywordSet = new HashSet<>(Arrays.asList(keywordString));
		int count = 0;
		
		Scanner input = new Scanner(file);
		
		while(input.hasNext()) {
			String word = input.next();
			if(keywordSet.contains(word))
				count++;
		}
		
		return count;
	}

}

```

`Enter a Java source file: c:\Welcome.java
The number of keywords in c:\Welcome.java is 5`


`Enter a Java source file: c:\TTT.java
File c:\TTT.java does not exist`


The program prompts the user to enter a Java source filename (line 9) and reads the filename (line 10). If the file exists, the **countKeywords** method is invoked to count the keywords in the file (line 15).

The **countKeywords** method creates an array of strings for the keywords (lines 26) and creates a hash set from this array (lines 28). It then reads each word from the file and tests if the word is in the set (line 35). If so, the program increases the count by 1 (line 36).

You may rewrite the program to use a **LinkedHashSet**, **TreeSet**, **ArrayList**, or **LinkedList** to store the keywords. However, using a **HashSet** is the most efficient for this program.
Resolving Module Version Chaos: Locking Down Dependencies in Python Projects with Poetry
Tags: python, pip, poetry, bash
Published: 2024-07-13 14:35:49

Hey there! 👋 I've got a nifty trick to share about managing Python dependencies, especially when they're not version-locked. Let me walk you through how I tackled it using **Poetry**.

## Problem 🤔

Ever faced a `requirements.txt` that looks like this?

```txt
tqdm
matplotlib
```

No version numbers can be a recipe for chaos during builds or at runtime due to inconsistencies. I needed to lock these dependencies to specific versions to keep things smooth and reliable, like this:

```txt
tqdm==4.64.0
matplotlib==3.5.3
```

## Solution ✨

### Why Poetry?

I chose **Poetry** because it's like the npm of the Python world—it respects semantic versioning and creates a lock file so every install is consistent. No more "works on my machine" issues!

### Step-by-Step Guide

#### 1) **Install Poetry:**
   ```sh
   curl -sSL https://install.python-poetry.org | python3 -
   ```

#### 2) **Grab a simple `pyproject.toml` template:**
   ```sh
   wget https://gist.githubusercontent.com/ma7dev/7298ffc4409032edd4d18a57b4c38f3a/raw/1c32efcbde31aaf896c6d47b32dac19ed44d14a4/pyproject.toml
   ```

#### 3) **Install those unversioned dependencies:**
   ```sh
   cat requirements.txt | xargs poetry add
   ```

#### 4) **Export the installed dependencies in a more structured format:**
   ```sh
   poetry export -f requirements.txt --output long_requirements.txt --without-hashes
   ```

#### 5) **Clean up the exported file:**
   ```sh
   # Strip unwanted python version constraints
   cat long_requirements.txt | cut -d ";" -f 1 > with_dep_requirements.txt
   # Filter out extraneous dependencies
   cat requirements.txt | while read line   do echo $(grep -n $line'==' with_dep_requirements.txt | cut -d ":" -f 2) >> final_requirements.txt done
   ```

### Result 🚀

Here’s what you end up with, all dependencies neatly versioned (`final_requirements.txt`):

```txt
tqdm==4.64.0
matplotlib==3.5.3
... (rest of your dependencies)
```

This setup ensures that all packages are locked to specific versions, making your project stable and reproducible wherever it goes. 🌐

---

If you enjoyed reading this article, check my other articles on [ma7.dev/blog](https://ma7.dev/blog).
Trendz-An Ecommerce Site Using Wix
Tags: devchallenge, wixstudiochallenge, webdev, javascript
Published: 2024-07-13 14:52:46

*This is a submission for the [Wix Studio Challenge ](https://dev.to/challenges/wix).*

## What I Built

Trendz is a comprehensive eCommerce website featuring sections such as Home, About, Services, and Products. The site is designed to provide users with a seamless and personalized shopping experience. Utilizing Wix Stores and Wix Member Area for login and signup, Trendz ensures secure and efficient user management.

## Demo

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

Demo: [https://itxnargiskhatun.wixstudio.io/trendz](https://itxnargiskhatun.wixstudio.io/trendz)


## Development Journey

Trendz focuses on providing a seamless shopping experience for users, featuring a variety of products. Creating Trendz was a fulfilling journey, especially since I started with no prior knowledge of Wix.  My first task was to create the header and footer sections. I focused on making these sections clean and user-friendly to ensure easy navigation. The website includes a dynamic homepage with sections for Home, About, Services, and Products, as well as a robust user authentication system through the Wix Member Area for login and signup.


**Wix Stores API:** Integrated to manage product data and display information on the website. This allowed for easy addition, categorization, and management of products, as well as the creation of dynamic product pages.

**Wix Member Area API:** Implemented to facilitate user login and signup, enabling users to create accounts, save preferences, and track orders.
Burden Of Proof
Tags: metaphilosophy, philosophy, epistemology, burdenofproof
Published: 2024-07-13 14:53:08

> Page: [METAPhilosophy](https://dev.to/metaphilosophy)
> Relevance: [Justified Cognitive](https://dev.to/metaphilosophy/justified-cognitive-313m)

Just because someone denies something, does that mean there's no burden of proof?

Many try to evade by saying, 'If it exists, then prove it.' But if I believe it doesn't exist, how do I prove it? So, is there no burden to prove for those who deny the existence of something? Is that it?

If you reject something, it doesn't mean you're free to claim, 'No need to prove something that consider doesn't exists.'

<u>BUT, PROVE THAT IT'S IMPOSSIBLE TO BE EXISTS❗️</u>

Actually, when someone asserts something, there should be a reason.

And asserting the absence of something also requires a reason (burden of proof). It's just generally not understood.

If someone rejects something, at the very least there should be evidence showing the impossibility of 'its existence.'

**Simply put, prove the absence of traces of something considered non-existent.**

✅ Let's avoid speaking without evidence, assuming proof isn't necessary; that's how it is.

❇️ For example, 'There was a duck-headed apple strolling along the roadside this morning.'

Then someone refutes it by asserting, 'That didn't happen.'

I would counter with, 'Prove your denial.'

They should then say, 'There are no signs characterizing an apple (here, they must show the absence of signs - apple tracks, head tracks, etc.).'

✅ In short, denial still requires proof. Specifically, proof of 'impossibility,' because those making the claim are proving 'possibility of existence,' thus those refuting the claim need to prove the impossibility of its existence.

❇️ This doesn't mean those who reject don't need to prove; they still need to prove the absence of its traces, its impossibility.
Qaushey: A 100% handloom brand!
Published: 2024-07-13 15:04:43

Qaushey did not start as Qaushey. About 9 years ago, it was actually a faint idea of what was going to turn into a passion for creativity, love for Indian Handlooms and the whole wide world to take this idea to. One of the weekends, on a rainy Mumbai afternoon, the topic of how the Indian way of living is the best way to live sustainability started. It led to the food, the Yoga, the Ayurveda and so many more snippets of our culture. One of the important aspects of our culture is clothing. And there are so many varieties of them that we can go on forever and still not be done with the diversity it bring to us. The advent of “Handloom” dates back to the Indus Valley civilization. The art was appreciated in every nook and corner of the world including faraway lands of Romans, Mesopotamians, and Egyptians. 

This is where the inspiration for the idea of Qaushey came into being. Shruti and Jaspreet decided they would take this to the world one day. Almost always, it takes a lot of courage to step out of your zone of comfort and start building something from scratch. Time went by and their conviction to make Qaushey known to everyone around the world got stronger. Someday in the year 2023, they decided to go all in and make this a reality. There was no eureka moment because they were so convinced that this is the right thing to do for our artisans, customers around the globe and for our beloved country above all. October 16th, 2023 Qaushey had its genesis. 


https://qaushey.com/
events.wordpress.org - all over the world: 3,925 events this year :: 108 countries :: 540,537 participants
Published: 2024-07-13 15:06:50


Meet the community - behind WordPress: https://events.wordpress.org - all over the world:  3,925 events this year :: 108 countries :: 540,537 participants

All over the world contributors meet to share, learn, and collaborate on the WordPress project.



Where WordPress contributors meet

see a full list of events:  Meet the community - behind WordPress: https://events.wordpress.org 

a. Wordcamp: https://central.wordcamp.org/  Wordcamps all arount the world
b. https://www.meetup.com/pro/wordpress  WordPress-Meetups 
c. https://doaction.org/ - do action hackatons :