teleren/devto huggingface dataset:
Day 952 : Numb
Tags: hiphop, code, coding, lifelongdev
Published: 2024-04-25 22:47:38

_liner notes_:
- Professional : Got up super early to attend a team meeting that was scheduled for the folks in the Asia time zones. I still attend these when I can because I don't want to have to watch the recordings later. haha. Went back to sleep after the meeting. Got up for another meeting. Then I started knocking out some "quick" tasks for my upcoming trip. Some of them were to finish booking a flight and hotel, submit for a lightning talk and other forms. Then there was another meeting. then it was lunch time and I went to the dentist to get some fillings. Left there all numb, picked up some food and returned to my spot and got back to work for the rest of the day. I coded a new Class in the library I'm building to remove some issues I tried to include a third party library. Got that done, but now I'm running into another issue about something on being a function. The numb feeling is starting to turn into a sore feeling so I'm calling it a day.

- Personal : Don't really remember what I did last night. I did go through tracks on Bandcamp for the radio show. Don't think I bought anything though. I kind of remember researching some stuff for my side project. I remember watching some episodes of "X-Men: The Animated Series" or that could have been the night before. I have a to-do list, but there's so much finished stuff from before that I don't know when I did what. haha

![South Stack Lighthouse in Lladdwyn Island, Wales at sunset. A small white lighthouse sits on a rocky headland overlooking the Irish Sea. There is a rugged coastline with large rocks and a stone staircase leading up to the lighthouse. The sky is a gradient of orange and yellow, and the sun is setting over the horizon.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/m1d56c9lgid1mip1sa04.jpg) 

Definitely need to pick up tracks off of Bandcamp and put together my social media posts for tomorrow. I need to look into hotels for my trip to Japan and purchase my ticket back home. I think I'll need to pick up some SD cards and maybe another USB-C hub. I also thought of how I want to layout my new side project. I still need to fork the starter project I made previously and get it up and running. Need to make sure I right these done so I can remember tomorrow. haha. Going to eat dinner.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube Odf3j6sw3A0 %}
Create a linked list in Rust: The RC smart pointer
Tags: rust, dsa, tutorial
Published: 2024-04-25 22:35:40

{% embed https://youtu.be/W1NCW3dVDrM %}

Hey guys. In this tutorial, I implement a linked list in Rust utilizing the RC smart pointer. You will learn about the linked list data structure as well as the Box and RC smart pointers in Rust.

There are many other things to learn here, such as the Iterator trait, setting up a test in Rust, and much more.

Here are the key highlights of the video 

- Linked list explained 
- The Box smart pointer 
- Getting the head of a linked list list
- Pushing an element to a linked list list
- The RC smart pointer
- Popping an element from a linked list list
- Iterating through the elements in a linked list list
- Verifying if an element is contained in a linked list list
- Inserting an element in a linked list
- Removing an element from a linked list
- Reversing a linked list

You can code along with me while watching the video and remember to give your feedback in the comments. Thank you 

{% embed https://youtu.be/W1NCW3dVDrM %}
How to create a smart contract
Tags: blockchain, ethereum, cryptocurrency
Published: 2024-04-25 22:31:00

Hi, people. Im currently founding a collaborative project on storytelling. Our goal is to create a free community of story writers, with the main objective of working in a collective way of developing a work of literature, illustrations and/or move scripts. My goal is to revolutionize the quality of the content available, wich I believe it has been declining since the excessive offer of writers or creators, and the approach of the big companies (take Netflix for example) of offering quantity over quality. The whole is greater than the sum of it's parts.

The main issue I'm facing is the lack of capital. I'm from a country (Argentina) whose currency is too weak to be able to offer a competitive (internationally speaking) monetary retribution to anyone working in the projects involved around our incipient group called "La Compañia de Cuentos" (The Storytelling Company, would be a rough translation). So I devised a way of retribuiting the contribution, in a money wise way, despite not having actual funds.

The main idea is to create a Token, in orden to compensate the work of every collaborator. This Token will guarantee it's owner the right to collect the royalties, the percentage of income, according to the percentage of of tokens owned divided by the tokens in existence. The same way a shareholder is entitled to some percentage of a company's profits. I see a lot of advantages in this method of profit distribution system, such as transparency, the possibility of, easily, sell your Token of representation (in a more competitive and accesible market that will allow a better appreciation of the Token itself), wich, of course, will make the seller Token holder loose the right to receive the future royalties, granting it to the new owner. Also a governance system will allow to the community become more democratic, and many other perks of different natures, wich I believe them to be essentials to secure the sustainability and success of our project.

The second difficulty I'm dealing with, in this case in particular, it's that my knowledge in programming and coding is closer to zero than anything else. I'm aware that there are some platforms that allows you to create basic tokens, but the specific needs of this project makes it indispensable to code a smart contract beyond the basic.

So, to conclude, my question here, is how can I develop and code the smart contract with limited programming abilities and without money. Of course, it would be delusional to expect for someone to do it for free, or over optimistic to believe that people would volunteer to do small contributions. So, I'm willing to offer, in the same way of the content creators, a percentage of the generated tokens, and the incomes in form of royalties that our work would yield.

Thanks for the patience. Any kind of suggestions would be deeply appreciated.
Lógica de programação
Tags: lógica, algoritmo, fluxograma, algorithms
Published: 2024-04-25 22:19:36



Nas últimas semanas eu vi vídeos de jovens estudantes dizendo que não conseguem entender o que é a lógica de programação.

A lógica de programação é você escrever no passo a passo (detalhado) como cada pedaço (item) do que você quer criar tem que funcionar, mostrando tudo o que pode ocorrer dentro do que você está criando. Você tem que apontar tudo de certo e errado que pode ocorrer (existir) dentro do que você está criando. Você tem que detalhar o fluxo completo de execução de como cada item tem que funcionar.

Ana M Gauna | anagauna.eti.br

http://mulhertech.blogspot.com/2024/04/logica-de-programacao.html
Level Up Your Coding Game: Contribution Trackers for Open Source and Personal Growth
Tags: opensource, codinghabits, contributiontracker, devto
Published: 2024-04-25 22:16:32

## Open Source Newbie? Build Your Portfolio & Habits with Contribution Trackers!

**Tagline:** Unleash your inner coding beast: Track contributions, build consistency, and impress the open-source world!  (SEO Keywords: open source contribution, portfolio building for developers, online github contribution tracker, contribution tracker, coding habits, open source for beginners, personal coding streak tracker)

Hey there, fellow coding enthusiasts! So, you've heard the siren song of the open-source world—that incredible land where you can collaborate with brilliant minds, learn tons from experienced pros, and **actually** put your coding skills to the test on real-world projects. Pretty awesome, right? But hold on, before you dive headfirst into the GitHub abyss, there's one hurdle everyone (not just newbies!) stumbles over: building a track record of consistent coding. 

Think of it like this – when you're applying for a job, you wouldn't show up with just a resume, would you? You'd bring your best work samples, the projects that showcase your talent and dedication. Open source works the same way. Potential collaborators and employers want to see what you've done, what kind of coder you are. 

Here's where things get exciting. Enter contribution trackers – your secret weapon for conquering the open-source world (or just staying on top of your coding goals)!  Imagine a tool that not only helps you **kickstart your open-source journey** but also turns you into a **coding consistency machine**.  That's exactly what contribution trackers do. 

Think of [Svelte-MiniApps' GitHub Contributions Tracker] (https://svelte-mini-apps.netlify.app/Apps/GitHub-Contribution-Tracker) like a personal cheerleader for your coding life. It's got a built-in **streak tracker** that celebrates your daily contributions (because seriously, consistency is key!), a **heat map** that visualizes your coding intensity over time (think of it as your own personal coding fire!), and a detailed breakdown of your contributions by month and even by day (because every line of code counts!). Plus, it doesn't stop there! We've got a whole toolbox of awesome features you can explore and use to streamline your open-source experience. 

And the best part? We're open source too! So, if you ever have an idea to make our tracker even more epic, you can totally contribute. Just jump on over to our [Github repo] (https://github.com/Michael-Obele/Svelte-MiniApps), make an "issue" (think of it like a suggestion box), and bam! You could be part of making this tool even better for the entire coding community.
DevLog #18 - Definition of Done
Tags: agile
Published: 2024-04-25 21:56:20

Definition of done (DoD) is a set of rules that should be satisfied when the new feature of the product is ready for deployment. These criterias touch different angles such as functional criteria, non functional criteria, technical criteria, quality criteria etc… Those will increase the quality and increase the usability of the product.

According to our project, we defined technical, quality and functional criterias to define the completeness of a new feature. Actually, with the time constraints and the team capacity, we could not consider extra criterias like non functional, integration and approval criterias. My opinion is that If we could satisfy those criterias, our product would be more solid than this because to satisfy all those criterias, the product should be improved to that extent from every aspect.
🚀 Welcome to my digital world! 🌟
Tags: webdev, beginners, tutorial, react
Published: 2024-04-25 21:38:27

🚀 Welcome to my digital world! 🌟

🔍 Looking for a dose of creativity, inspiration and knowledge sharing? Then you've come to the right place! I'm passionate about IT, digital marketing and digital in general , and I'm delighted to share this passion with you on social networks.

🌐 On my page, you'll discover a captivating mix of content: practical tips, innovative ideas, thought-provoking reflections and much more. Whether you're a seasoned professional or a curious amateur, there will always be something for you here.

📢 Join me on my various social networks to stay connected and not miss any of my latest publications:

🔹 Facebook: https://www.facebook.com/alibia2023/
🔹 Twitter: https://twitter.com/alibia2023
🔹 Instagram: https://www.instagram.com/alibia_2023/
YouTube: https://www.youtube.com/channel/UCwoR4uunt57Ey8qiZDQoVRg/?sub_confirmation=1
🔹 GitHub: https://github.com/alibia-phanuel
🔹 Dev Community: https://dev.to/alibiaphanuel
🔹 LinkedIn: https://www.linkedin.com/in/phanuel-tsopze-8a33a52a4/
🔹 Discord : https://discord.gg/ENHW9RWyDG

👥 Join me now and let's be partners in this exciting digital adventure! 💫

Translated with DeepL.com (free version)
Java Strings: Understanding string literal and new operator
Tags: java, string, stringpool, stringliteral
Published: 2024-04-25 21:16:59

In java there are two ways of creating a string:

- using string literal `String str = "Hello world";`
- using new operator `String str = new String("Hello world")`

Lets dig deep into what happens when each of the above syntax is used to create a string.

String Template

```java
String str = "Hello World";
```

In java this is equivalent to 

```java
String str = "Hello World".intern();
```

Let’s see what `intern()` method does

- on invoking this function it checks if the string content “Hello World” exists in the String pool.

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

if it does not find same string content in the pool, it will create a new String object in heap. Since we are using string literal, java will then add this string to the string pool for reusing and return the memory address of the string object. let's assume this memory address is `50`.

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

Next time if we add another string with string literal and the content of the string is same, then java will return the memory address of the previous string object.

```java
String newStr = "Hello World";
```
![adding_new_string_with_template_literal](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0fqwc2uskngpjsg9w24j.png)

But if you create a string using the new operator, it will not use the string pool, instead it will create another string object in the heap. let's assume the new memory address is `100`.

```java
String thirdString = new String("Hello World");
```

![adding_string_with_new_operator](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1xnoget90btavhd2wyx7.png)

We can verify this with the `==` operator, since String checks the memory address if we try to confirm equality with `==` operator.
```java
String str = "Hello World".intern();
String newStr = "Hello World";
String thirdString = new String("Hello World");
System.out.println(str == newStr); // true
System.out.println(newStr == thirdString); // false
```

If you want to check if the string contents are same then you would need to use `equals` method available in string object.
```java
String str = "Hello World".intern();
String newStr = "Hello World";
String thirdString = new String("Hello World");
System.out.println(str.equals(newStr)); // true
System.out.println(newStr.equals(thirdString)); // true
```
> Why does java do this ?
String is `immutable` Object, so everytime you perform some operation on string a new string object is created. and creating new string object everytime is very expensive, so java added this functionality to reuse the already existing string contents. But this is applicable only if you are using string literal to create string objects.
React 19 Beta: Fine I Guess Web Standards Are Okay
Published: 2024-04-26 12:22:17

---
title: React 19 Beta: Fine I Guess Web Standards Are Okay
published: true
date: 2024-04-25 21:02:43 UTC
tags: 
canonical_url: https://alex.party/posts/2024-04-26-react-19-beta-fine-i-guess-web-standards-are-okay/
---

This post is gonna be salty, but after years and years of teaching developers to add click handlers to divs, add inputs with no labels, and generally insisting that they know better than you, react has released their [version 19 beta](https://react.dev/blog/2024/04/25/react-19) and it includes support for web components and form actions.

React has had the ability to add support for custom elements for [LITERALLY YEARS](https://github.com/facebook/react/issues/11347), as there has been a separate experimental branch that was kept up to date and ready to be merged, but never was. So 6 YEARS after custom elements are generally available in every modern browser the react team has decided to BLESS us with the ability to use a native browser feature. After years and years of damage to the ecosystem, and now that pretty much every library that wants to make something, makes things react first, they throw an olive branch to say “Alright peasants, we will support your silly little elements.”

Similarly, after years and years of saying “Bind a value to every input and don’t worry about using forms” SUDDENLY, it’s now going to be best practice to use forms. How many projects will never implement this? How many countless hours have people spent making pointless click handlers and extra event listeners so that they could replicate a form’s functionality, for the react team to say “Ok, yeah, maybe this web standard is a good idea.”

The damage from React has already been done, and no amount of “Oh look at this thing we can do” will fix it.
HOW TO CREATE VIRTUAL MACHINE SCALE SET
Published: 2024-04-25 20:54:34

A Azure Virtual Machine Scale makes it easier for creating and managing a group of load balanced Virtual machines. The number of Virtual machines  instances can automatically increase or decrease in response to demand or a defined schedule. 
    **BENEFITS OF VIRTUAL MACHINE SCALE SET**
1. Easy to create and manage multiple VMs
2. Provides high availability and application resiliency by 
   distributing VMs across availability zones or fault domains
3. Allows your application to automatically scale as resource 
   demand changes
STEPS TO CREATING A HEALTHY VIRTUAL MACHIONE SCALE SET
On the azure portal
🌎 Earth Day Frontend Challenge landing page
Tags: devchallenge, frontendchallenge, css, javascript
Published: 2024-04-25 20:41:37

_This is a submission for [Frontend Challenge v24.04.17](https://dev.to/devteam/join-us-for-the-next-frontend-challenge-earth-day-edition-52e4), Glam Up My Markup: Earth Day Celebration Landing Page_

## What I Built

<!-- Tell us what you built and what you were looking to achieve. -->

_Let's celebrate **Earth Day** 2024 together!_

This project is a simple landing page that presents the idea behind Earth Day, why it is important to be aware of what is going on in our home, and how to spread that information around the world!
 
## Demo
<!-- Show us your project! You can directly embed an editor into this post (see the FAQ section from the challenge page) or you can share an image of your project and share a public link to the code. -->

🌎 [Earth Day landing page demo →](https://earth-44u4npi8s-marielasags-projects.vercel.app/)

[![Earth Day home page](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/da91l50o56hzatzx00lm.png)](https://earth-44u4npi8s-marielasags-projects.vercel.app/)

🌎 [Earth Day GitHub Project →](https://github.com/marielaSAG/earth-day)

## Journey
<!-- Tell us about your process, what you learned, anything you are particularly proud of, what you hope to do next, etc. -->

I started with the idea of creating a page navigation that facilitates the movement across the page. As an addition to the navigation, I also added a back to top button.

After the navigation, I continued with building each section. I tried to make them fun and catchy but consistent and engaging enough. 


----

**MIT License**
Copyright (c) [2024] [Mariela Dimitrova]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
ONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

<!-- Team Submissions: Please pick one member to publish the submission and credit teammates by listing their DEV usernames directly in the body of the post. -->

<!-- We encourage you to consider adding a license for your code. -->

<!-- Don't forget to add a cover image to your post (if you want). -->


<!-- Thanks for participating! -->
IPCalculator Coze AI
Tags: cozechallenge, devchallenge, ai, machinelearning
Published: 2024-04-25 20:26:52

*This is a submission for the [Coze AI Bot Challenge](https://dev.to/devteam/join-us-for-the-coze-ai-bot-challenge-3000-in-prizes-4dp7): Bot Innovator.*

## What I Built
<!-- Tell us what your bot does, who it's for, and what problem it solves -->

Everyone knows that time and energy are great resources. Discovering solutions in the quickest time possible and in an accurate manner creates room for actually accomplishing other tasks or, why not, **relaxing**.🥳

One of the tasks I thought of was IP calculation. Based on this need, I created IPCalculator AI bot.

## Demo

<!-- Share a link to your bot in the Coze Bot Store and include screenshots or recordings showcasing a user's chat interface with your bot. -->

Meet IPCalculator https://www.coze.com/store/bot/7361882283944558597?bot_id=true

## Your Configuration

<!-- Screenshot or record your bot's configuration, including prompts and skills used.  -->

_Who is IPCalculator_:


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

_What skills IPCalculator has_:



![s](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/438jbkahp8koowgr0jyb.png)



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


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



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

Did you see the voices? Yeah, let's take it as a metaphor. 😉 This bot can read the content in English and in Portuguese. Hear it! Enjoy! 🌟

And yes, it can also perform Reverse DNS Lookup, thanks to plugin [iURL](https://www.coze.com/space/7359712540131409925/plugin) that I wrote about [in a previous article](https://dev.to/yowise/update-vulnhunterdb-1935). While the defang/ refang tool is not included, you can still use the plugin for your other projects!


## Journey

<!-- Tell us about your process, what you learned, anything you are particularly proud of, what you hope to do next, etc. -->

This tool is handy for anyone who is interested to learn about IP Calculations and also for those who want to spare their time.
I really appreciate this tool and I hope it will be of a great use for everyone.

What do you think? 💭

<!-- Team Submissions: Please pick one member to publish the submission and credit teammates by listing their DEV usernames directly in the body of the post. -->

<!-- Don't forget to add a cover image (if you want). -->

<!-- Thanks for participating! -->
AWS Community Builders partnership with Techne Summit Cairo 2024
Tags: aws, summit, community, awscommunitybuilders
Published: 2024-04-25 20:03:42

AWS Community Builders are proud to announce our partnership with Techne Summit Cairo 2024. Techne Summit is coming to you on MAY. 25 - 27. There will be lots of exciting things planned for you with a lot of Content planned, over several Industry-Focused Tracks! Hurry up and book your ticket now.
https://cairo.technesummit.com/2024
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vxi5i0esibmxecyruhhr.jpg)