teleren/devto huggingface dataset:
data augmentation
Published: 2024-03-17 18:47:28

Veri artırma (data augmentation), evrişimli sinir ağı (CNN) projelerinde sıkça kullanılan bir tekniktir ve birkaç ana nedenle yapılır:

Veri Çeşitliliğini Artırma: CNN modellerinin doğru ve genelleştirilebilir şekilde öğrenmesi için geniş ve çeşitli bir veri kümesine ihtiyaç vardır. Ancak bazen elinizde yeterince fazla veri yoktur veya veri kümeniz sınırlıdır. Veri artırma, mevcut veri kümesini çeşitlendirerek modelin daha fazla örüntü öğrenmesini sağlar.

Aşırı Uyumu (Overfitting) Azaltma: Eğitim veri seti küçük olduğunda veya model karmaşıklığı yüksek olduğunda, model eğitim verisine çok fazla uyum sağlayabilir ve yeni veriler üzerinde kötü performans gösterebilir. Veri artırma, modelin daha genelleştirilebilir olmasını sağlayarak aşırı uyumu azaltabilir.

Daha İyi Genelleştirme: Farklı görüntü düzenleri, boyutları ve rotasyonlar gibi gerçek dünya senaryolarını daha iyi yansıtan veri, modelin gerçek dünya verileri üzerinde daha iyi performans göstermesine yardımcı olur. Veri artırma, modelin genelleştirme yeteneğini artırır.

Sınıf Dengesizliğini Düzeltme: Veri kümenizdeki farklı sınıflar arasında dengesizlik varsa, yani bazı sınıflar diğerlerinden daha fazla örneğe sahipse, model bu sınıfları yanlış öğrenebilir veya diğer sınıfları ihmal edebilir. Veri artırma, sınıf dengesizliğini düzeltebilir ve modelin daha dengeli bir şekilde öğrenmesini sağlar.

Doğruluk ve Performansı Artırma: Daha çeşitli ve genişletilmiş bir veri kümesi, modelin doğruluğunu ve performansını artırabilir. Özellikle sınırlı veri kümesiyle çalışıyorsanız, veri artırma bu durumu hafifletebilir ve modelinizin daha iyi sonuçlar vermesini sağlayabilir.

Bu nedenlerle, veri artırma CNN projelerinde yaygın bir şekilde kullanılır ve genellikle modelin daha iyi performans göstermesine ve daha iyi genelleştirme yeteneğine sahip olmasına yardımcı olur.
This Week In Python
Tags: python, thisweekinpython
Published: 2024-03-17 18:16:52


**Fri, March 15, 2024**

![](/media/twip.png)


This Week in Python is a concise reading list about what happened in the past week in the Python universe. 


## Python Articles



- [Understanding Context Manager and its Syntactic Sugar](https://bjoernricks.github.io/posts/python/context-manager/) 
- [Python deque tutorial](https://mathspp.com/blog/python-deque-tutorial) 
- [Parsing URLs in Python](https://tkte.ch/articles/2024/03/15/parsing-urls-in-python.html) 
- [Go, Python, Rust, and production AI applications](https://ajmani.net/2024/03/11/go-python-rust-and-production-ai-applications/) 
- [Generic functions and generic classes in Python](https://guicommits.com/python-generic-type-function-class/) 

<!-- 
Understanding Context Manager and its Syntactic Sugar
https://bjoernricks.github.io/posts/python/context-manager/

Python deque tutorial – by @mathsppblog
https://mathspp.com/blog/python-deque-tutorial

Parsing URLs in Python
https://tkte.ch/articles/2024/03/15/parsing-urls-in-python.html

Go, Python, Rust, and production AI applications
https://ajmani.net/2024/03/11/go-python-rust-and-production-ai-applications/

Generic functions and generic classes in Python – by @guilatrova
https://guicommits.com/python-generic-type-function-class/

 -->


## Projects


- [PikaPython](https://github.com/pikasTech/PikaPython) – ultra-lightweight Python interpreter that runs with only 4KB of RAM, zero dependencies
- [taichi](https://github.com/taichi-dev/taichi) – Productive, portable, and performant GPU programming in Python
- [ibis](https://github.com/ibis-project/ibis) – portable Python dataframe library
- [sqlglot](https://github.com/tobymao/sqlglot) – Python SQL Parser and Transpiler
- [deptry](https://github.com/fpgmaas/deptry) – Find unused, missing and transitive dependencies in a Python project 

<!-- 

PikaPython – ultra-lightweight Python interpreter that runs with only 4KB of RAM, zero dependencies
https://github.com/pikasTech/PikaPython

taichi – Productive, portable, and performant GPU programming in Python – by @TaichiGraphics
https://github.com/taichi-dev/taichi

ibis – portable Python dataframe library – by @IbisData
https://github.com/ibis-project/ibis

sqlglot – Python SQL Parser and Transpiler – by @captaintobs
https://github.com/tobymao/sqlglot

deptry – Find unused, missing and transitive dependencies in a Python project 
https://github.com/fpgmaas/deptry
-->
Brain Tumor Classification using Deep learning
Tags: python, cnn, deeplearning
Published: 2024-03-17 18:02:24



Welcome to Brain tumor beginner tutorial, where we delve into world of CNNs (Convolutional Neural Networks) and their groundbreaking applications in image classification and brain tumor detection.
This is a simple tutorial convolutional neural network tutorial that demonstrates how to brain tumor in a dataset of images.
We will build and train a model using CNN and see the model accuracy & loss, and then we will test and predict a tumor using new images.

Here is a link to the video: https://youtu.be/-147KGbGI3g

Enjoy

Eran

#cnnforimageclassification #cnnmachinelearningmodel #cnnml #deeplearningbraintumorclassification #aidetectbraintumor
Adding new feature through small changes
Published: 2024-03-17 17:46:50

This week, I made a [PR](https://github.com/tarasglek/chatcraft.org/pull/493) for [ChatCraft](https://chatcraft.org/) that allows users to generate images (by the [DALL·E](https://openai.com/dall-e-3) 3 model). Currently, the way to generate images is by using the 'image' command, for example: `/image treasure map`, 

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

In contrast to my previous PR that introduced support for the  [vision model](https://dev.to/mingming-ma/a-55-commit-pr-5d7o),  this PR did not require significant changes.  This allows us to steadily enhance it without causing many disruptions. And thanks to the valuable feedback, here are the following up PRs need to be submitted : such as changing the size of the generated image ([issue#499](https://github.com/tarasglek/chatcraft.org/issues/499)), adding a loading info when generating images ([issue#504](https://github.com/tarasglek/chatcraft.org/issues/504)), etc. I will write about some of the problems or thoughts they encountered in subsequent blog posts.

In general, this feeling is great. Small changes make the system more stable, and modifications based on review feedback are also easier, which benefits both. Moreover, I found that in this PR, despite being small changes, the reviewer proposed lots of suggestions or new ideas, This leaves lots of room for subsequent development work and allows for a greater sense of accomplishment. Therefore, I say this feeling is great.

Currently, this feature relies on command-based interaction, but most users may not use this type of interaction. One of the challenges for the future is how to make users know this feature. As I ponder over this challenge, I eagerly anticipate sharing my thoughts and progress with you in the next blog post. Stay tuned!
The Smart Revolution: Exploring the Popularity of Smart Card Readers in Dubai and the UAE
Published: 2024-03-17 17:40:49



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

**Introduction:**
Smart card readers have become ubiquitous in our daily lives, offering convenience and security in various transactions. In Dubai and the UAE, these devices have gained immense popularity, revolutionizing the way businesses and individuals manage access and payments.

**Understanding Smart Card Readers:**
A smart card reader is a device that reads information stored on a smart card, a small plastic card embedded with a microchip. This microchip contains data that can be accessed and processed by the reader, enabling secure transactions and access control.

**Key Features and Benefits:**
Smart card readers offer a range of features that make them popular in Dubai and the UAE. These devices are highly secure, using encryption and authentication to protect data. They also offer convenience, allowing users to access multiple services with a single card. Additionally, smart card readers are versatile, with applications in various industries such as finance, healthcare, and transportation.

**Popularity in Dubai and the UAE:**
The popularity of smart card readers in Dubai and the UAE can be attributed to several factors. One of the key reasons is the emphasis on security in the region. Smart card readers offer a secure way to process transactions and manage access, making them ideal for businesses and individuals.

**Role of General Trading Companies in Dubai:**
[General trading companies in Dubai](https://chiyo-gt.com/), like CHIYO GENERAL TRADING CO. L.L.C, play a crucial role in the distribution and promotion of smart card readers. These companies ensure that smart card readers are readily available and meet the diverse needs of businesses and individuals in Dubai and the UAE.

**Conclusion:**
In conclusion, smart card readers have become an integral part of daily life in Dubai and the UAE, offering secure and convenient solutions for transactions and access control. With the support of general trading companies like CHIYO GENERAL TRADING CO. L.L.C, the popularity of smart card readers is expected to continue to grow, further enhancing the region's reputation as a leader in technological innovation.
The Environmental Impact of Different Fencing Materials
Tags: fence, security, privacy
Published: 2024-03-17 17:36:46

In our modern world, environmental consciousness is becoming increasingly important. When it comes to choosing fencing materials for your property, considering the environmental impact is crucial. Different fencing materials have varying levels of sustainability and environmental friendliness. In this article, we'll explore the environmental impact of various fencing materials to help you make an informed decision.

Wood Fencing
Wood fencing is a popular choice due to its natural aesthetic and versatility. However, the environmental impact of wood fencing depends on several factors. Opting for sustainably sourced wood, such as bamboo or cedar from certified forests, can mitigate environmental concerns. Additionally, choosing untreated or naturally treated wood reduces the use of harmful chemicals.

Vinyl Fencing
Vinyl fencing is known for its durability and low maintenance requirements. While vinyl fences are not biodegradable and rely on petroleum-based materials for production, they have a long lifespan, reducing the need for frequent replacements. However, the manufacturing process of vinyl fencing involves the release of toxic chemicals, making it less environmentally friendly compared to other options.

Metal Fencing
Metal fencing, such as aluminum or steel, is prized for its strength and security. While metal fences are highly durable and recyclable, the production process involves significant energy consumption and emissions. However, opting for recycled metal or choosing eco-friendly coatings can minimize the environmental impact of metal fencing.

Chain Link Fencing
Chain link fencing is renowned for its affordability and versatility. While the production of chain link fences involves energy-intensive processes, they have a long lifespan and are fully recyclable at the end of their use. Additionally, chain link fences allow for natural airflow and vegetation growth, minimizing disruption to the surrounding environment.

Composite Fencing
Composite [fencing](https://atlanticfence.ca/commercial-fence) combines wood fibers and recycled plastics to create a durable and eco-friendly alternative to traditional wood fencing. Composite materials are resistant to rot, insects, and decay, eliminating the need for chemical treatments. Additionally, composite fencing reduces the demand for virgin wood and plastic, making it a sustainable choice for environmentally conscious homeowners.

Conclusion
In conclusion, the environmental impact of different fencing materials varies depending on factors such as sourcing, production methods, and lifespan. While no fencing material is entirely devoid of environmental consequences, opting for sustainable and eco-friendly options can help minimize negative effects. Consider factors such as durability, recyclability, and chemical treatments when choosing fencing materials for your property to reduce your environmental footprint.
Unleashing the Power of Narration and Storytelling in Your Journey to Becoming a 10X Software Engineer
Tags: 10xengineer, storytellingintech, narrativeincode, softwareengineering
Published: 2024-03-17 17:33:54

In the realm of software engineering, technical skills are undoubtedly crucial. However, the ability to narrate and tell stories is an often overlooked skill that can propel you towards becoming a 10X engineer.

Narration and storytelling are not just about communicating effectively. They are about creating a vision, inspiring others, and making complex ideas understandable. As a software engineer, you are not just writing code, but you are also crafting stories. Each line of code is a sentence, each function is a paragraph, and each software is a chapter in the story of solving a problem.

By mastering the art of narration and storytelling, you can better articulate your ideas, making it easier for others to understand your code and the solutions you propose. This not only enhances collaboration but also fosters innovation.

So, as you strive to become a 10X engineer, remember to hone your narration and storytelling skills. After all, the most impactful software are those that tell the best stories.
Task 17-What is selenium and why using selenium for automation
Published: 2024-03-17 17:28:34

**Selenium:**
     Selenium is an open-source tool and libraries that is used for browser automation.
     Selenium used to allows user to test their websites functionally on different browsers and perform cross browser testing to check if the website functions consistently across different browsers.
     It enables testers to write automated tests in various programming languages(like Javascript, Python, Ruby, Java, Kotlin & C#) to test the functionality of web applications.

**Components of Selenium**

1. Selenium Webdriver
2. Selenium IDE
3. Selenium GRID
4. Selenium RC

**Selenium Webdriver**
     It is a web framework that permits you to execute cross-browser test.
     This tool is used for automating web-based application testing to verify that it performs expectedly.
     It allows to choose a programming language to create test scripts.
     It is more powerful and flexible at a higher cose.

**IDE:Integrated Development Element**

     It is primarily a record/run tool that a test case developer uses to develop selenium test cases
     It offers simple installation and it is easy to learn.
     It does not require any programming logic to write its test scripts.

**Selenium GRID**

     Selenium grid is a smart proxy server that makes it easy to run tests in parallel across multiple machines and browsers simultaneously.
     It is done by routing commands to remote web browser instances, where one server acts as the hub.

**Advantages of Selenium**

     Cross browser testing, work on multiple browser like Chrome, Internet explore, Mozilla firefox, microsoft edge, Safari, etc,.
     Platform independent like windows, Linux, Mac.
     Language support like Javascript, Python, Ruby, Java, Kotlin & C#.
     Flexibility
     Jenkins, Git & Appium.

**Jenkins**
     It is like a different cloud machine and remote testing tool.
     
**Git**
     It acts as same as Jenkins
     It is like CICD(continuous Integration & Continuous Development) pipeline.

**Appium**
     It acts as a server/assistance between selenium script /tablet/android machine.

**Disadvantages of Selenium** 

-      Limited support for desktop applications
-      Maintenance efforts for test scripts
-      Limited support for mobile testing
-      Dependency on browser updates
-      No support for image-based testing
-      Dependency on browser automation
Looking for a Python/Datascience/Javascript/Java Course Creator/Developer
Published: 2024-03-17 17:17:24

I require a person to assist us with a Python/Datascience/Javascript/Java Udemy Course. If the person has the training videos ready, it's the best. If not, the person should be willing to create a course. The person has to create the full course. I will then optimize it and use other Udemy tactics to get the course to rank. Udemy Course - Current Max Earning Monthly
Python - $111,423
Javascript - $32,102
Java - $19,358
Data Science - $39,084 

Please email gerardyadgg1@gmail.com if interested.
One Minute: Lowdefy
Tags: declarative, lowcode, frontend, yaml
Published: 2024-03-17 17:03:07

**Lowdefy** is a declarative low-code front-end framework for internal tools or [CRUD](https://en.wikipedia.org/wiki/Create,_read,_update_and_delete) apps defined via [YAML](https://yaml.org/) or [JSON](https://www.json.org).

* **Block Types:** Input, Display, Container, List
* **Connections:** Redshift, S3, HTTP, ElasticSearch, Google Sheets, Knex, MariaDB, MongoDB, SQL Server, MySQL, PostgreSQL, Redis, SendGrid, SQLite, Stripe
* **Features:** [AgGrid](https://www.ag-grid.com), [ECharts](https://echarts.apache.org), [Markdown](https://daringfireball.net/projects/markdown/) (Display Blocks)
* **Modes:** Development, Production
* **Written In:** Javascript
* **Layout**: [Flexgrid](https://flexgrid.io)
* **Build On:** [Next.js](https://nextjs.org)
* **Requires:** [PNpM](https://pnpm.io)
* **Deploy Via:** Docker
* **License:** [Apache-2.0](https://www.apache.org/licenses/LICENSE-2.0)
* **Website:** https://lowdefy.com
* **Documentation:** https://docs.lowdefy.com/introduction
* **Repository:** https://github.com/lowdefy/lowdefy
* **NPM Package:** https://www.npmjs.com/package/lowdefy
AudiPlay : Custom HTML5 Audio Player
Tags: audio, html, javascript, css
Published: 2024-03-17 16:52:16



[![](https://data.jsdelivr.com/v1/package/gh/SH20RAJ/AudiPlay/badge)](https://www.jsdelivr.com/package/gh/SH20RAJ/AudiPlay)

# AudiPlay - HTML5 Audio Player

AudiPlay Integration - Free HTML5 Audio Player

---

{% codepen https://codepen.io/SH20RAJ/pen/YzMpONX %}
{% github https://github.com/SH20RAJ/AudiPlay %}

AudiPlay version 2 with multiple audio support <3 :- [Documentation](https://www.youtube.com/watch?v=wyaoy8uB3aE) | [GitHub Repo](https://github.com/SH20RAJ/AudiPlayV2/)

---

## See GitHub

[https://github.com/SH20RAJ/AudiPlay](https://github.com/SH20RAJ/AudiPlay)

## Integration Article

[https://codexdindia.blogspot.com/2021/02/audiplay-integration-free-html5-audio.html](https://codexdindia.blogspot.com/2021/02/audiplay-integration-free-html5-audio.html)

---

## Steps To Integrate

### Step 1: Use `class="audioplay"` in Your Audio Tag

```html
<audio controls class="audioplay">
    <source src="https://cdn.jsdelivr.net/gh/sh20raj/AudiPlay/Ark.mp3" type="audio/mp3">
</audio>
<!-- Here is the Audio Tag Library -->
```

### Step 2: Add JavaScript CDN Just Before `</body>` Tag

```html
<script src="https://cdn.jsdelivr.net/gh/sh20raj/AudiPlay/audiplay.min.js"></script>
<!-- Here is the JavaScript Library -->
```

### Optional: Use Style Attribute for Responsive Audio Player

You can use the `style` attribute in your Audio tag for a responsive audio player.

```html
<audio controls class="audioplay" style="width: 700px;">
    <source src="Ark.mp3" type="audio/mp3">
</audio>
```

---

## Additional Features

### Disable Download Button

Add `nodownload` attribute to your Audio Tag to disable the Download Button.

#### Example:

```html
<audio controls class="audioplay" nodownload>
    <source src="Ark.mp3" type="audio/mp3">
</audio>
```

---

## Preview

### Before Adding AudiPlay

![Before Adding AudiPlay](https://1.bp.blogspot.com/-az7XMaTr12Y/YDEsxAKNOAI/AAAAAAAAAj4/3np_RXRA3-gC9OQaLN-L73dPij8mEubUACLcBGAsYHQ/w640-h132/Before%2BAdding%2BAudiPlayer.PNG)

### After Adding AudiPlay

![After Adding AudiPlay](https://1.bp.blogspot.com/-Z_cISx35hIY/YDEsyM0PtII/AAAAAAAAAj8/_KuMVOonOzUSqIeJvpFR-dTeajhTZ5WAQCLcBGAsYHQ/w640-h102/After%2BAdding%2BAudiPlayer.PNG)

### After Disabling Download with `nodownload` Attribute

![After Disabling Download](https://1.bp.blogspot.com/-E3teJdXvoVI/YDEt_6Z9QEI/AAAAAAAAAkM/9LZVcPD12Hg3bzAlbDl-W_XcIetE44yPACLcBGAsYHQ/w523-h123/After%2BDisableing%2BDownload%2Busing%2Bnodownload%2BAttribute.PNG)

---

## Full HTML Example

```html
<audio controls class="audioplay" style="width: 700px;">
    <source src="Ark.mp3" type="audio/mp3">
</audio>

<script src="https://cdn.jsdelivr.net/gh/sh20raj/AudiPlay/audiplay.min.js"></script>
```

---

## License

This project is licensed under the [MIT License](LICENSE).

---

Feel free to modify this Project as needed for your project!
Learning AWS Day by Day — Day 8 — Introduction to EFS (Elastic File System)
Tags: aws, cloud, cloudcomputing, learning
Published: 2024-03-17 16:47:10

Exploring AWS !!

Day 8:

Introduction to EFS (Elastic File System):

Cloud based file storage service for applications and workloads that run in AWS public cloud.
Why? If our application is running on Amazon EC2 and needs a file system or any case where file system is needed.
EFS cannot connect to Windows, only to Linux.
For Windows, shared storage will be FSx.


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

Benefits: Highly available, Elastic, Shared FS, High performance.

Creating and Mounting EFS:
— Creating EFS:
1. Open AWS, click on Services drop down, choose EFS.
2. Choose Create FS.
3. Choose Default VPC from VPC list.
4. Tick off all checkboxes for Availability zones, and click Next.
5. Name and tags.
6. Select General Purpose and Bursting for High performance.
7. Review file system properties once and then choose Create FS.
8. Note FS ID.

— Mounting EFS onto an EC2 instance:
1. Connect Ubuntu using Putty.
2. Install NFS using:
sudo apt-get -y install nfs-common
3. Proceed with below commands:
sudo mkdir efs
sudo mount -t efs fs-abcd123456789ef0 efs/
cd efs
sudo mkdir getting-started
sudo chown ec20user getting-started
cd getting-started
touch test.txt
ls -al

— Connecting multiple instances with shared EFS:
1. Create another EC2 instance(Ubuntu).
2. Mount previously created EFS onto it.
3. Create a file in EFS directory in second instance.
4. Verify in first instance whether file created in second instance is available.

To check → Connect to putty using instance → On account search EFS → Create FS → Click on FS → View details → Attach → Mount via IP → enter zone → Copy command → mkdir efs → sudo apt-get -y install nfs-command → paste the commands.