teleren/devto huggingface dataset:
Okrolearn
Tags: machinelearning, pytorch, python, analytics
Published: 2024-07-09 14:53:12

Checkout my machine learning library, which is a raw implementation of combining pytorch with scikit-learn.
https://github.com/Okerew/okrolearn
Why did I make this project? I made it as I saw problems with pytorch, there weren't any data analasys featurues, some more algortihms could be implemented, better support for sparse tensors with scipy, use of cupy, easier creation of cuda kernels. A view to simplify, use a lot more of python, create better support for cpus and MacOS.

Can be installed with `pip install okrolearn`
________
Example usage
--------
``` python
from okrolearn.okrolearn import *


def print_epoch_start(epoch, total_epochs):
    print(f"Starting epoch {epoch + 1}/{total_epochs}")


network = NeuralNetwork(temperature=0.5)
network.add(DenseLayer(3, 4))
network.add_hook('pre_epoch', print_epoch_start)
network.add(ReLUActivationLayer())
network.add(DenseLayer(4, 4))
network.add(LinearActivationLayer())
network.add(LeakyReLUActivationLayer(alpha=0.1))
network.add(DenseLayer(4, 3))
network.add(ELUActivationLayer())
network.add(SoftsignActivationLayer())
network.add(HardTanhActivationLayer())
network.remove(2)
network.add(SoftmaxActivationLayer())

inputs = Tensor(np.random.rand(100, 3))
targets = Tensor(np.random.randint(0, 3, size=(100,)))
loss_function = CrossEntropyLoss()
optimizer = SGDOptimizer(lr=0.01, momentum=0.9)

losses = network.train(inputs, targets, epochs=100, lr=0.01, batch_size=10, loss_function=loss_function)

# Plot the training loss
network.plot_loss(losses)

network.save('model.pt')

test_network = NeuralNetwork()
test_network.add(DenseLayer(3, 4))
test_network.add_hook('pre_epoch', print_epoch_start)
test_network.add(ReLUActivationLayer())
test_network.add(DenseLayer(4, 4))
test_network.add(LinearActivationLayer())
test_network.add(LeakyReLUActivationLayer(alpha=0.1))
test_network.add(DenseLayer(4, 3))
test_network.add(ELUActivationLayer())
test_network.add(SoftsignActivationLayer())
test_network.add(HardTanhActivationLayer())
test_network.remove(2)
test_network.add(SoftmaxActivationLayer())

test_network.load('model.pt')

test_inputs = Tensor(np.random.rand(10, 3))
test_outputs = test_network.forward(test_inputs)
print(test_outputs)

```
Mastering Kubernetes: Top 10 Commands You Should Know
Tags: kubernetes, devops
Published: 2024-07-09 14:54:43

Kubernetes is essential for container orchestration. Here are the top 10 most used Kubernetes commands to help you manage your clusters efficiently:

**kubectl get: Display a list of resources in your cluster.**
```bash
🌱 kubectl get pods
```

**kubectl describe: Show detailed information about a specific resource, including events and status.**
```bash
🌱 kubectl describe pod [pod_name]
```

**kubectl logs: Retrieve and display the logs from a container within a pod.**
```bash
🌱 kubectl logs [pod_name]
```

**kubectl apply: Apply a configuration file to create or update resources.**
```bash
🌱 kubectl apply -f [filename]
```

**kubectl delete: Remove resources from your cluster by name, type, or label selector.**
```bash
🌱 kubectl delete pod [pod_name]
```

**kubectl exec: Execute a command directly inside a running container.**
```bash
🌱 kubectl exec -it [pod_name] -- [command]
```

**kubectl config: View and modify kubeconfig files, which define cluster access settings.**
```bash
🌱 kubectl config view
```

**kubectl scale: Adjust the number of replicas for a deployment, replica set, or stateful set.**
```bash
🌱 kubectl scale --replicas=[number] deployment/[deployment_name]
```

**kubectl port-forward: Forward one or more local ports to a port on a pod, allowing access to internal services.**
```bash
🌱 kubectl port-forward [pod_name] [local_port]:[pod_port]
```

**kubectl rollout: Manage the rollout of a deployment, including checking status and undoing changes.**
```bash
🌱 kubectl rollout status deployment/[deployment_name]
```

What are your favorite Kubernetes commands? Share in the comments!
How to Create Stunning Custom Greeting Cards: Tips and Tools
Published: 2024-07-09 15:00:38

Are you looking to create beautiful, custom greeting cards that leave a lasting impression? Whether it's for birthdays, anniversaries, holidays, or just to say thank you, a well-designed card can make all the difference. At CardMakerz.com, we specialize in helping you craft personalized greeting cards that stand out. In this post, we’ll share some tips and tools to help you design the perfect card for any occasion.

**Why Personalized Greeting Cards Matter**

In an age of digital communication, a physical greeting card feels even more special. It shows that you took the time to think about the recipient and put in the effort to create something unique. Personalized cards can:

1. **Strengthen Relationships**: A thoughtful card can show friends and family that you care.
2. **Express Your Creativity**: Designing your own cards allows you to express your artistic side.
3. **Make Memorable Keepsakes**: Custom cards are often kept as cherished mementos.

**Tips for Designing Custom Greeting Cards**

1. **Know Your Audience**
   - Consider the recipient’s interests and personality. Are they into nature, modern art, or vintage designs? Tailor your card to their tastes.

2. **Choose the Right Theme**
   - Select a theme that suits the occasion. For example, use bright colors and playful fonts for a birthday card, or elegant and subtle designs for a wedding invitation.

3. **Use High-Quality Images**
   - Whether you’re using personal photos or stock images, ensure they are high resolution. Blurry or pixelated images can detract from the overall look of your card.

4. **Incorporate Personal Touches**
   - Add elements like handwritten messages, custom illustrations, or even small mementos to make your card truly unique.

5. **Keep it Simple**
   - Sometimes, less is more. Avoid overcrowding your card with too many elements. Focus on a clean, cohesive design.

### Why CardMakerz.com?

At CardMakerz.com, we provide an extensive library of templates and design resources to help you create the perfect card. Our platform is designed for both beginners and experienced designers, offering easy-to-use tools and professional-quality results. Plus, our community of card makers is always ready to share tips, inspiration, and feedback.

### Join Our Community

Ready to start creating? Visit [CardMakerz.com](https://www.cardmakerz.com) to explore our tools and resources. Join our community to share your creations, get inspired by others, and take your card-making skills to the next level.

---
Is Next.js 14 ready to be used in production for full ecommerce app??
Tags: nextjs, explainlikeimfive, frontend, beginners
Published: 2024-07-09 15:09:51

Hi Fellow Coders, I am to write an ecommerce website which should have good SEO, I don't know if developing a full fledged application in Next.js (with Redux,SSR, third party api calls, image storage or using S3 bucket, forms and all) is a good idea. Whats the experience with Next.js 14 with new app router... I am waiting for the answer ..46 people have already seen the post..but nobody has answered :(
Win2Asia: Agen Hiburan Online Terdepan di Asia
Tags: win2asia, win2, hiburan, hiburanonline
Published: 2024-07-09 15:54:59

Selamat datang di [Win2Asia](https://kampret.online), destinasi utama Anda untuk hiburan online terbaik di Asia! Win2Asia dikenal sebagai agen hiburan online terdepan yang menawarkan berbagai pilihan permainan dan pengalaman yang tak tertandingi bagi para penggemar judi online. Dengan layanan yang luar biasa dan platform yang user-friendly, kami memastikan setiap pemain merasakan sensasi dan kenyamanan bermain yang maksimal.

Link Daftar dan Login : **[Win2Asia](https://s.id/win2-asia)**

Mengapa Memilih Win2Asia?

1.  Koleksi Permainan Lengkap Kami menyediakan berbagai jenis permainan mulai dari taruhan olahraga, kasino online, permainan slot, hingga poker. Setiap permainan dirancang dengan grafis berkualitas tinggi dan gameplay yang menghibur untuk memberikan pengalaman bermain yang mendalam.
    
2.  Keamanan Terjamin Keamanan adalah prioritas utama kami. Dengan sistem enkripsi canggih, Anda dapat yakin bahwa data dan transaksi Anda terlindungi dengan baik. Kami juga memiliki lisensi resmi dari otoritas judi terkemuka yang menjamin operasional kami yang sah dan transparan.
    
3.  Layanan Pelanggan 24/7 Tim layanan pelanggan kami siap membantu Anda kapan saja, 24 jam sehari, 7 hari seminggu. Kami berkomitmen untuk memberikan solusi cepat dan efektif untuk setiap pertanyaan atau masalah yang Anda hadapi.
    
4.  Promosi dan Bonus Menarik Nikmati berbagai promosi dan bonus menarik yang kami tawarkan. Mulai dari bonus sambutan bagi pemain baru, bonus deposit, hingga program loyalitas bagi pemain setia. Semua dirancang untuk memberikan nilai tambah bagi pengalaman bermain Anda.
    
5.  Transaksi Mudah dan Cepat Kami menyediakan berbagai metode pembayaran yang aman dan cepat. Proses deposit dan penarikan yang mudah memastikan Anda dapat fokus pada permainan tanpa khawatir tentang transaksi.
    

Bergabunglah dengan Komunitas Win2Asia Tidak ada waktu yang lebih baik untuk bergabung dengan Win2Asia! Rasakan keseruan dan keuntungan bermain di platform hiburan online terdepan di Asia. Kunjungi situs kami hari ini dan mulailah petualangan bermain Anda dengan Win2Asia. Temukan mengapa ribuan pemain memilih kami sebagai agen hiburan online favorit mereka.

Win2Asia - Sensasi Bermain Tanpa Batas!
---------------------------------------

Jangan lupa untuk mengikuti media sosial kami untuk mendapatkan update terbaru tentang promosi, event, dan berita menarik lainnya.
Every JS13K gadget all at once!
Tags: js13k, competition, prizes, swag
Published: 2024-07-09 15:16:19

---
title: Every JS13K gadget all at once!
published: true
date: 2024-07-09 14:58:10 UTC
tags: js13k,competition,prizes,swag
canonical_url: https://medium.com/js13kgames/every-js13k-gadget-all-at-once-8942e59e0c95
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bel54yj6rrs2zebq2ix7.jpg
---

We’re celebrating the **thirteenth** edition of the [js13kGames](https://js13kgames.com) competition this year - one of the ways to do that is to offer you **ALL the swag** we have left from previous years like floppy disks, VR cardboards, CDs, magnets, pens, keychains, and more.

Top 100 winners will get a unique t-shirt as always (more on that later), and while we usually add one gadget to the package, this year we’ll pack **AS MANY GADGETS AS WE CAN** from the remaining stash until it runs out to zero, because why not? Those are:

- 10 floppy disks (2014)  
- 13 medals (2023)  
- 20 VR cardboards (2017)  
- 40 CDs (2018)  
- 70 keychains (2021)  
- 100 old-school stickers (2013)  
- 100 magnets and bottle openers (2019)  
- 100 pens (2020)  
- 100 coasters (2022)  
- 100 glitter stickers (2022)  
- 100 pins (2023)  
- 100 patches (2023)  
- 100 hologram stickers (2024)

So, if you’ll end up in top10, adding the brand new holo stickers this year, you’ll get **THIRTEEN different gadgets in your swag package**!

![js13kGames swag](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9kd0li4dxxz9f9ofmnad.png)

Those will be awarded based on the overall standings, and WebXR category will get VR cardboards exclusively. You’ll have a unique opportunity to grab those and expand or complete your collection, as they’re manufactured only for the [js13kGames](https://js13kgames.com) competition winners and are not available anywhere else.

Ps. Floppy disks (with all the 2014 games on them) might not work anymore given how old they are, no idea about CDs though - you’ll have to check that yourself.

* * *
GPT-40 instantly processed visual information
Tags: ai, chatgpt, openai, gpt3
Published: 2024-07-09 15:23:02

Using a webcam, GPT-40 instantly processed visual information, reading text and providing accurate summaries far faster than humans, proving its advanced capabilities.

please subscribe to my [YouTube channel](https://www.youtube.com/@DevDivewithDipak?sub_confirmation=1
) to support my channel and get more web development tutorials.
Git branch upstreaming
Tags: git, upstream, webdev
Published: 2024-07-09 15:16:30

hey folks, if you tried to do a `git pull` and you came across such a response where the command did not worked and asked you to set the upstream branch then you are at right place.

git pull error message

```
You asked me to pull without telling me which branch you
want to merge with, and 'branch.uat.merge' in
your configuration file does not tell me, either. Please
specify which branch you want to use on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details.

If you often merge with the same branch, you may want to
use something like the following in your configuration file:

    [branch "test22"]
    remote = <nickname>
    merge = <remote-ref>

    [remote "<nickname>"]
    url = <url>
    fetch = <refspec>

See git-config(1) for details.
```

here are the following steps to fix it:

```
git branch --set-upstream test02 origin/test02 
```

and after that try this command again

```
git pull
```

:tada: here you go with a working upstream branch
Code Smell 257 - Name With Collections
Tags: webdev, beginners, programming, rust
Published: 2024-07-09 15:17:18

*Avoid Using the Prefix "Collection" on Properties*

> TL;DR: Drop "collection" prefix for clarity.

# Problems

- Redundant Naming

- Verbose Code

- Reduced Readability

- Refactoring Challenges

- Coupled to implementation

# Solutions

1. Use Simple Names

2. Remove 'collection' [from the name](https://dev.to/mcsee/what-exactly-is-a-name-part-ii-rehab-20gd)

3. Use plural names without the word 'collection'

# Context

When you prefix properties with terms like "collection," you introduce redundancy and verbosity into your code. 

This makes your code harder to read and maintain and adds unnecessary complexity. 

Coupling the name to a collection implementation prevents you from introducing a proxy or middle object to manage the relation.

# Sample Code

## Wrong

[Gist Url]: # (https://gist.github.com/mcsee/b929bfe2ee406a7d9a822c5318db5b61)

```rust
struct Task {
    collection_of_subtasks: Vec<Subtask>,
    subtasks_collection: Vec<Subtask>,
}

impl Task {
    fn add_subtask(&mut self, subtask: Subtask) {
        self.collection_of_subtasks.push(subtask);
        self.subtasks_collection.push(subtask);
    }
}
```

## Right

[Gist Url]: # (https://gist.github.com/mcsee/1c4c774f018e5f6cde339148962a4562)

```rust
struct Task {
    subtasks: Vec<Subtask>,
}

impl Task {
    fn add_subtask(&mut self, subtask: Subtask) {
        self.subtasks.push(subtask);
    }
}
```

# Detection

[X] Automatic 

You can add rules to your linter preventing these redundant names.

# Tags

- Naming

# Level

[X] Beginner

# AI Generation

AI code generators produce this smell if they try to over-describe property names. 

They tend to generate overly verbose names to be explicit, which can lead to redundancy.

# AI Detection

AI tools can fix this smell if you instruct them to simplify property names. They can refactor your code to use more concise and clear names.

# Conclusion

Simplifying property names by removing prefixes like "collection" leads to more readable and maintainable code.

It would be best to focus on clear, direct names that communicate the purpose without redundancy.

# Relations

{% post https://dev.to/mcsee/code-smell-38-abstract-names-34ng %}

{% post https://dev.to/mcsee/code-smell-171-plural-classes-3d0i %}

{% post https://dev.to/mcsee/code-smell-113-data-naming-1bm9 %}

# More Info

{% post https://dev.to/mcsee/what-exactly-is-a-name-part-ii-rehab-20gd %}

# Disclaimer

Code Smells are my [opinion](https://dev.to/mcsee/i-wrote-more-than-90-articles-on-2021-here-is-what-i-learned-1n3a).

# Credits

Photo by [Karen Vardazaryan](https://unsplash.com/@bright) on [Unsplash](https://unsplash.com/photos/die-cast-car-collection-on-rack-JBrfoV-BZts)
   
* * *

> Good design adds value faster than it adds cost.

_Thomas C. Gale_
 
{% post https://dev.to/mcsee/software-engineering-great-quotes-26ci %}

* * *

This article is part of the CodeSmell Series.

{% post https://dev.to/mcsee/how-to-find-the-stinky-parts-of-your-code-1dbc %}
imported auto parts
Published: 2024-07-09 15:18:24

[https://drive.google.com/drive/folders/17nFFcdluc7DL3obJBH2qfzbJgMXieKsz?usp=drive_link](https://drive.google.com/drive/folders/17nFFcdluc7DL3obJBH2qfzbJgMXieKsz?usp=drive_link)
Top 7 Featured DEV Posts of the Week
Tags: top7
Published: 2024-07-09 15:28:41

_Welcome to this week's Top 7, where the DEV editorial team handpicks their favorite posts from the previous week._

Congrats to all the authors that made it onto the list 👏

{% embed https://dev.to/huijing/how-to-try-experimental-css-features-f0 %}

Hui Jing walks through the steps to enable experimental CSS features in different browsers, while giving us a glimpse of CSS and browser history.

---


{% embed https://dev.to/isaachagoel/you-dont-know-undoredo-4hol %}
Isaac dives deep into the complexities of implementing undo/redo functionality in applications.

---

{% embed https://dev.to/opensauced/the-silent-crisis-in-open-source-when-maintainers-walk-away-1m81 %}
Bekah highlights the growing issue of burnout among open source maintainers, discussing its impact on the community and potential solutions.

---

{% embed https://dev.to/alvaromontoro/css-one-liners-to-improve-almost-every-project-18m %}
Alvaro  shares powerful CSS one-liners that can enhance the functionality and aesthetics of web projects with minimal code. Before and after pics included!

---

{% embed https://dev.to/babichweb/mythbusting-dom-was-dom-invented-alongside-html-3fme %}
Serhii debunks common myths about the Document Object Model (DOM), clarifying its history and evolution in web development.

---


{% embed https://dev.to/ymtdzzz/otel-tui-a-tui-tool-for-viewing-opentelemetry-traces-2e7n %}
Y.Matsuda introduces OTel-TUI, a text-based user interface tool designed for visualizing OpenTelemetry traces, making it easier to debug and monitor applications.

---

{% embed https://dev.to/cassidoo/the-productivity-apps-i-use-in-2024-41h5 %}
Cassidy lists her favorite productivity apps for 2024, explaining how each one keeps her organized and efficient.

---

_And that's a wrap for this week's Top 7 roundup! 🎬 We hope you enjoyed this eclectic mix of insights, stories, and tips from our talented authors. Keep coding, keep learning, and stay tuned to DEV for more captivating content and [make sure you’re opted in to our Weekly Newsletter] (https://dev.to/settings/notifications) 📩 for all the best articles, discussions, and updates._
Chamada de Trabalhos do SBQS 2024
Published: 2024-07-09 15:28:27

"Olá, Pessoal!

Com o adiamento do deadline do SBQS, ainda há tempo para escrever e enviar seus artigos. Já pararam para pensar se a pesquisa de vocês pode ser submetida ao SBQS? Imagino que alguns de vocês pensam que o SBQS é 100% voltado para modelos de qualidade de software, mas não é bem assim! 😊

O SBQS abrange pesquisas que contribuem tanto para a qualidade do processo de desenvolvimento quanto para a qualidade do produto de software.

🔹 Sua pesquisa contribui para a qualidade do produto de software? Assuntos como Segurança, UX, Usabilidade e Manutenibilidade são extremamente relevantes para o SBQS.

🔹 Sua pesquisa apoia uma melhor qualidade do processo de desenvolvimento? Melhorias em engenharia de requisitos, testes ou arquitetura de software também são de grande interesse para o SBQS.

Dê uma olhada na nossa chamada de trabalhos: 

https://sbqs.sbc.org.br/2024/index.php/pt/chamada-de-trabalhos/trilha-de-trabalhos-tecnicos 

Além da trilha de Trabalhos Técnicos (Research Track), temos a trilha de Relatos de Experiência (que você pode escrever sobre experiência em projetos com a indústria, e trilha de Educação em Qualidade de Software.

Lembrem-se: o SBQS é um simpósio sério e consolidado, agora em sua 23ª edição! Todos os artigos aceitos são indexados na DBLP – o que significa visibilidade para as nossas pesquisas.

Se ainda precisam de mais motivos para submeter seus artigos: este ano o evento será em Salvador! Teremos Keynotes incríveis, incluindo Alexander Serebrenik, Márcio Ribeiro e Sheila Reinehr. E os chairs defendem fortemente a inclusividade, mantendo sempre a qualidade ;-)

Estamos ansiosos para ver seus trabalhos. Queremos a comunidade crescendo. Somos muitos e queremos ver mais pessoas, conhecer mais pessoas de ES no SBQS. Preparem seus artigos e submetam! 🚀

Abs dos chairs do SBQS 2024,
Tayana, Maldonado, Edna, Johnny, Patricia e Breno"
Get Italy Visa From Dubai - Easy Application | worldtripdeal.com
Tags: visa, italy, dubai
Published: 2024-07-09 15:33:17

Get your Italy Visa From Dubai quickly and easily with worldtripdeal.com. Submit your documents including passport, UAE visa, Emirates ID, photos, NOC letter. Call Now or Visit [](https://www.worldtripdeal.com/en/visa/italy/visa-to-italy-28)
veterinary
Published: 2024-07-09 15:47:40

[https://drive.google.com/drive/folders/1Xxwu3c_AM4mLu9mmSc99qD2YZDiYW6eo?usp=sharing](https://drive.google.com/drive/folders/1Xxwu3c_AM4mLu9mmSc99qD2YZDiYW6eo?usp=sharing)
screw house
Published: 2024-07-09 15:59:02

[https://drive.google.com/drive/folders/1wtbVn6qv3Zoj3oi1cDl_b7fd8nJPuXi5?usp=sharing](https://drive.google.com/drive/folders/1wtbVn6qv3Zoj3oi1cDl_b7fd8nJPuXi5?usp=sharing)
Win2 Link Alternatif
Tags: win2, win2link, alternatifwin2, win2alternatif
Published: 2024-07-09 15:59:17

Temukan pengalaman bermain yang lancar dengan Win2Asia melalui link alternatif terbaru. Kami memahami pentingnya akses yang stabil dan bebas hambatan bagi para pemain. Oleh karena itu, kami menyediakan link alternatif yang selalu diperbarui untuk memastikan Anda dapat menikmati permainan favorit Anda tanpa gangguan. Klik [link alternatif Win2Asia](https://s.id/win2-asia) sekarang dan nikmati layanan hiburan online terdepan di Asia!

## Keunggulan Link Alternatif Win2Asia:

Akses Cepat dan Stabil: Tidak ada lagi kendala akses. Link alternatif kami memastikan Anda dapat masuk dengan cepat dan lancar.
Keamanan Terjamin: Semua link alternatif dilengkapi dengan sistem keamanan tingkat tinggi untuk melindungi data dan privasi Anda.
Update Berkala: Kami selalu memperbarui link alternatif untuk menghindari pemblokiran dan menjaga kenyamanan bermain Anda.
Kunjungi link alternatif Win2Asia dan mulai petualangan bermain Anda tanpa batas!
Lists, Stacks, Queues, and Priority Queues
Tags: java, programming, learning, beginners
Published: 2024-07-09 16:14:09

Choosing the best data structures and algorithms for a particular task is one of the keys to developing high-performance software. A data structure is a collection of data organized in some fashion. The structure not only
stores data but also supports operations for accessing and manipulating the data.

In object-oriented thinking, a data structure, also known as a _container_ or _container object_, is an object that stores other objects, referred to as data or elements. To define a data structure is essentially to define a class. The class for a data structure should use data fields to store data and provide methods to support such operations as search, insertion, and deletion. To create a data structure is therefore to create an instance from the class. You can then apply the methods on the instance to manipulate the data structure, such as inserting an element into or deleting an element from the data structure.

[This Section](https://dev.to/paulike/the-arraylist-class-abb) introduced the **ArrayList** class, which is a data structure to store elements in a list. Java provides several more data structures that can be used to organize and manipulate data efficiently. These are commonly known as _Java Collections Framework_.
Otolaryngologist
Published: 2024-07-09 16:20:29

[https://drive.google.com/drive/folders/1Jwk9GPJu8tEq2iLaORSCylfxxqdtmkj-?usp=sharing](https://drive.google.com/drive/folders/1Jwk9GPJu8tEq2iLaORSCylfxxqdtmkj-?usp=sharing)