teleren/devto huggingface dataset:
National Geographic Earth Day 2024
Tags: frontendchallenge, devchallenge, css
Published: 2024-04-25 17:02:41

_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), CSS Art: Earth Day._

## Inspiration
I was inspired by a [video from National Geographic](https://www.youtube.com/watch?v=edi9gRIHLss). And decided to recreate it, but in a CSS manner.
I wanted people to watch this video through my website.

## Demo 

![National Geographic Earth Day 2024](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ihyinpyrewrr7jihzyyx.png)
You can view the live demo on Vercel.
[Project Demo](https://sergomen.github.io/ng_earth_day/)
[Source Code](https://github.com/sergomen/ng_earth_day/tree/master)

## Journey

At first, I wanted to recreate the image in the form of pixels. But it turned out to be tedious and not very high quality.

![Pixel Earth Day](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pu15qrtefi5o42ruydjw.png)

Then I decided to base the images on rollers. And then I was very excited, because my persistence knew no bounds then. To make the pictures fit exactly around the circle, I created a circle class in CSS.


![Support Circle 1](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/eogneu5lo5vlc061zw3u.png)

![Support Circle 2](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/338lb72omq1o4sa926yn.png)

In the end, it turned out pretty well.

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

But it was not enough for me, and I decided to do something responsive. And then I realized that my persistence was quickly fading. Because everything was done manually.

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

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

I had to change each parameter of the image, selecting the anchor circles. And even then, I did not cover many sizes.

A few days ago I wanted to add more animations, like a butterfly waving its wings, or a fish twitching in its own way, but... I'm going to stop for now. I need a break after all the manual work.

Thank you for this challenge!
Performance Improvement Plans
Tags: career, coding, discuss
Published: 2024-04-25 16:23:45

One of my friends is a programmer too and she works at a company where they told her and her team that if there are too many bugs in their code, they will be put on a performance improvement plan. My friend thinks this is too extreme and that such things create massive job insecurity. Does this happen everywhere or is it just this company? Tell me in the comments!
A-24 Hour Door National Inc
Published: 2024-04-25 16:07:26


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


Looking for 24-hour emergency door repair services? Look no further than A-24 Hour Door National! We specialize in commercial door repair and offer round-the-clock assistance for all your door-related emergencies. Whether it's a malfunctioning garage door or a broken business entrance, our team is here to help. With our prompt and reliable service, you can trust us to get your doors back in working order quickly and efficiently. Contact us now for all your door repair needs!

A-24 Hour Door National Inc
Address: [Cincinnati, OH](https://www.google.com/maps?cid=7687823980663967548)
Phone: 513-821-7500
Website: [https://a24hour.biz/locations/cincinnati/](https://a24hour.biz/locations/cincinnati/)
Contact email: access@growthfoundry.com

Visit Us:
[A-24 Hour Door National Inc Facebook](https://www.facebook.com/24hourdoor/)
[A-24 Hour Door National Instagram](https://www.instagram.com/a24hourdoor/)
[A-24 Hour Door National Inc Twitter](https://twitter.com/a24hrdoor)

Our Services:
Commercial Door Repair 
Emergency Door Services
24-Hour Door Repair
Commercial Door Installation
Episode 24/16: New Template Compiler, Zoneless in Angular 18
Tags: webdev, javascript, angular, programming
Published: 2024-04-25 15:57:58

A new - and already running - template compiler was presented, and we got new information about the upcoming Angular 18.

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

## New Template Compiler

Dylan Hunn and Miles Malerba from the Angular team presented a new approach to compiling the template. In the past, the compiler was just a big "monolithic chunk," making it hard to maintain or add new features.

The new version is a more structured pipeline that should speed up internal development.

For obvious reasons, that talk was more than just a deep dive. Nevertheless, you still get a feeling about the internals and understand what challenges the Angular team faces.

It was interesting to hear that the template compiler is performing quite a lot of optimization tasks that we would expect more in the area of webpack or esbuild.

However, because the compiler understands Angular and its context, it can better apply optimizations.

It was not part of the template compiler, but Dylan had a slide showing all the new features they were working on. One of them was selectorless, which means components without selectors.

The Pipeline is set to default since Angular 17.3.

{% embed https://youtu.be/QDfjln0QJAY?si=hgsfmxXmR0VHA6B_ %}

## Zoneless in Angular 18

One of the main goals of Signals is to have applications without zone.js. Originally, that would have only been possible with Signal Components. In the meantime, things have changed. It will also be possible without the Signal Component and already in Angular 18, which will arrive next month.

Matthieu Riegler and Enea Jahollari published two articles that focus on that topic.

Matthieu discusses the new hybrid change detection, where a Signal change, an async pipe, or anything else that calls markForCheck now also automatically triggers the Change Detection, even if the code runs outside zone.js (edge case).

Enea's article is all about disabling zone.js and relying only on these new trigger mechanisms.

{% embed https://riegler.fr/blog/2024-04-17-zoneless-with-zoneless-hybrid %}

https://justangular.com/blog/a-new-era-for-angular-zoneless-change-detection

## Modern Angular

Angular is moving very fast, so it is important to stay updated. Manfred Steyer has released the second edition of his book Modern Angular and it is available for free.

{% embed https://www.angulararchitects.io/en/ebooks/modern-angular/ %}
Understanding TypeScript Method Decorators
Tags: typescript, decorators, errors, cleancode
Published: 2024-04-25 15:34:12

TypeScript provides decorators as a way to modify classes, methods, accessors, properties, or parameters at design time. Method decorators, in particular, allow you to intercept calls to methods within a class and modify their behavior or metadata.

### What are Method Decorators?

Method decorators are functions that are prefixed with the `@` symbol and placed immediately before a method declaration in a class. They can be used to modify the behavior of methods or to add metadata to them. 

### Syntax
```typescript
const required: MethodDecorator = (
    target: Object,
    key: string | symbol,
    descriptor: TypedPropertyDescriptor<any>
) => {
    // Decorator logic here
}
```

- `target`: The prototype of the class for a static method, or the constructor function of the class for an instance method.
- `methodName`: The name of the method being decorated.
- `descriptor`: An object containing the property descriptor of the method being decorated.

### Example: Required Property Decorator

Let's create a simple example to illustrate the usage of method decorators. Consider a scenario where we want to ensure that certain properties in a class are required and must be set before accessing them.
```typescript
const required: MethodDecorator = (
    target: Object,
    key: string | symbol,
    descriptor: TypedPropertyDescriptor<any>
) => {
    const originalMethod = descriptor.get
    descriptor.get = function () {
        if (this[key] === undefined) {
            throw new Error(`Property ${String(key)} is required, but not set.`);
        }
        return originalMethod!.call(this);
    };
}

class MyClass {
    constructor(
        private readonly _name: process.env.NAME
    ) {}

    @required
    get name(): string {
        return this._name;
    }
}

// Set the environment variable
process.env.NAME = "John";

// Create the object
const myObject1 = new MyClass();
console.log(myObject1.name); // Outputs: "John"

// Delete the environment variable
delete process.env.NAME;

// Create another object
const myObject2 = new MyClass();
console.log(myObject2.name); // Throws an error since NAME is not set
```

In this example, the `required` decorator ensures that the `name` property must be set before accessing it. If it's not set, an error is thrown.

### Conclusion

Method decorators in TypeScript provide a powerful way to modify the behavior of methods or add additional functionality to them. They allow you to enforce certain rules or conditions on method access, add logging, caching, or any other cross-cutting concerns to your classes. Understanding decorators can greatly enhance the flexibility and maintainability of your TypeScript codebase.
Is Comparison the Thief of Joy?
Tags: discuss
Published: 2024-04-25 15:32:57

Have you experienced the negative impact of constant comparisons on your journey to success? If everyone's journey is unique, why do we compare so much? Is there any benefit to comparison, and if not, how do you stop? 
<br>
Follow The DEV Team for more discussions and online camaraderie!
{% embed [https://dev.to/devteam](https://dev.to/devteam) %}
Navigating Digital Marketing in Chicago
Published: 2024-04-25 15:31:39


In this post, we explored strategies for successful [digital marketing in Chicago](https://wizspeed.com/services/pay-per-click-ppc/). Key points include embracing the city's unique culture and identity, tapping into local events and festivals, prioritizing mobile optimization, fostering local partnerships, and leveraging data to inform strategy. By integrating these tactics into their [digital marketing efforts](https://wizspeed.com/services/seo-services/), businesses can effectively engage with the diverse and dynamic audience in Chicago, driving brand awareness and fostering meaningful connections within the local community.
Sloan's Inbox: How to Approach Beginners Writing On Worn-Out Topics?
Tags: discuss, beginners, writing
Published: 2024-04-25 15:23:18

Hey y'all! Sloan, DEV Moderator and mascot. We're coming back at ya with another question submitted by a DEV community member. 🦥

For those unfamiliar with the series, this is another installment of Sloan's Inbox. You all send in your questions, I ask them on your behalf anonymously, and the community leaves comments to offer advice. Whether it's career development, office politics, industry trends, or improving technical skills, we cover all sorts of topics here. If you want to send in a question or talking point to be shared anonymously via Sloan, that'd be great; just scroll down to the bottom of the post for details on how.

Let's see what's up this week...

### Today's question is:

> Frequently, I see beginner dev writers being bashed for sharing posts on topics that have already been written on time and time before. Perhaps they're recreating a Tic-Tac-Toe app or posting yet another tutorial about how to create a pull request in GitHub... and often, there is someone (who claims to be more senior) leaving a snide remark about how they're fed up with seeing this subject be written on and pushing the writer to stop re-treading this worn out subject. 
>
> My question is two-part: 
> 1. Do you think it's okay for beginners to write on topics that have already been written on?
> 2. What constructive advice can we give to beginner devs to encourage them to think outside the box and come up with new topics? How might we approach them in a friendly way? 
 
Share your thoughts and let's help a fellow DEV member out! Remember to keep kind and stay classy. 💚

---

*Want to submit a question for discussion or ask for advice? [Visit Sloan's Inbox](https://docs.google.com/forms/d/e/1FAIpQLSc6wgzJ1hh2OR4WsWlJN9WHUJ8jV4dFkRDF2TUP32urHSAsQg/viewform)! You can choose to remain anonymous.*
MambaBit. The most cursed LLM?
Tags: machinelearning, llm
Published: 2024-04-25 15:12:59

Modern tokenizers come in all form! Some, like qwen, support ~150 000 tokens.

Byte level models support 256 tokens.

Can we go lower?

(There should be "you were so busy asking if you could" meme, but dev.to complains)

But the answer is yes. MambaBit comes with just 2 tokens. One token for bit `0`, one token for bit `1`. That's it. Yet somehow it still produces something which is not completely random.

`Behold the most cursed` becomes

```
Behold the most cursed of men.

LEONTES:
Now means means me not so much as my father,
In the good many lord, and my father come.
```

It still learned words! And line breaks, names that precede normal text! Yet, even on bit level it produces words rather than words! It's too cursed!


Also we can go even lower and fully embrace the bitness: layers like nn.LayerNorm have built-in bias, which means bit 1 can be encoded as  `parms_for_1 + bias from normalization` and bit 0 = `bias from normalization`. Say bye to nn.Embedding!

Same with lm_head. As of now model produces output which is essentially `[X, -X]` where usually is in range `-3...3`.
The Design Philosophy of Great Tables
Tags: webdev, beginners, programming, python
Published: 2024-04-25 15:12:40

Tables are one of the great ways to present data. There are a good number of Python packages to do that one of them is great-tables. In [this article](https://posit-dev.github.io/great-tables/blog/design-philosophy/), Rich Iannone and Michael Chow covered it in a very interesting way. They started from the early history of tables to the present time and how to create tables using great-tables.
IOS App Development Company In USA
Published: 2024-04-25 15:11:11

Elevate your iOS app experience with TechnBrains, the leading [iOS app development agency](https://www.technbrains.com/ios-app-development). Our team is dedicated to creating high-performance apps that not only meet but exceed the expectations of Apple users. With our expertise and innovative approach, we'll collaborate with you to develop custom solutions that captivate your audience and elevate your brand. Let's work together to bring your vision to life and create an app that stands out in the competitive app market.
Top JavaScript Game Engines
Tags: javascript, gameengines, javascriptlibraries, gaming
Published: 2024-04-25 15:05:16

**Getting to Know JavaScript Game Engines**

[JavaScript game engines](https://bluebirdinternational.com/javascript-game-engines/) are frameworks providing essential tools like graphics rendering, physics engine, audio management, and more. They simplify the development process, allowing creators to focus on the game's creative aspects.

**Highlighting Major JavaScript Game Engines**

<u>Phaser:</u>

- Pros: User-friendly API, extensive documentation, active community.
- Cons: Limited to 2D development, may struggle with complex games.
- Ideal for: Developers seeking to create interactive 2D games.

<u>Babylon.js:</u>

- Known for: Robust 3D development capabilities using WebGL and WebVR.
- Strengths: High flexibility, superior performance on low-end devices, comprehensive tool integration.
- Ideal for: Developers aiming for immersive 3D gaming experiences.

<u>Cocos2d-JS:</u>

- Features: Supports both 2D and 3D development, integrated physics engine, animation system, and visual editor.
- Unique Offering: Exceptional cross-platform support, including HTML5, iOS, and Android.
- Ideal for: Novice and experienced developers looking for versatility in deploying across multiple platforms.

**Advantages of Using JavaScript Game Engines**

- Simplified Coding: These engines streamline coding, reducing the complexity of game development.
- Cross-Platform Compatibility: Essential for today’s mobile-centric gaming market, ensuring games perform seamlessly across various devices.
- Built-In Libraries: Speed up development with ready-to-use physics engines, animation systems, and more.

**Choosing the Right JavaScript Game Engine**

Assess Project Requirements: Match engine capabilities with the specific needs of your game.

**Best Practices for Optimal Development**

- Optimize asset management to enhance load times and performance.
- Utilize state management to streamline transitions and gameplay logic.
- Use the engine's built-in features for physics and animations to create engaging gameplay.
Create a Pong Game with JavaScript (OOP)
Tags: webdev, javascript, beginners, programming
Published: 2024-04-25 15:04:04

Create a pong game using classes and Object Oriented Programming in JavaScript.

[Design Inspiration](https://dribbble.com/shots/16962160-Pong-49th-Birthday-Design)
[Project Inspiration](https://www.amazon.com/JavaScript-Crash-Course-Nick-Morgan/dp/1718502265/ref=sr_1_1?crid=29OGR8JHAVMCK&dib=eyJ2IjoiMSJ9.QcKC8qKaFoAkVcG9Y5LLWbiNuGfQcdb6uiAbyNsAyck_hl6Zs4NSsUQLMXGNjOc2atQcqIpZTHwjSwcRj69OGKaWuEp0pd_IuQHvIeCXaAZ5XnGafb9dkQLt_8C754OFtZ6ZB2e76xPpI4tqZuXK-Ar3763UGx8S83QaPF-UIhg5AluiY5njYbwmohUhrk_sq9RVcanV8qKati77isjSmzGWQYWyUUj1AtKioZQ_5Lc.to-Sqb1yWGTJjF1axjPcPx_WYOMqHYE9uf9C322df1U&dib_tag=se&keywords=javascript+crash+course&qid=1714056832&sprefix=javascript+crash+course%2Caps%2C258&sr=8-1)


**Result**
{% embed https://codesandbox.io/embed/7rpdqd?view=editor+%2B+preview&module=%2Fsrc%2Fscript.js"
     style="width:100%; height: 500px; border:0; border-radius: 4px; overflow:hidden;"
     title="ping-pong-game-OOP"
     allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
     sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts %}
Paito SGP – Paito Warna Sgp – Paito Singapore Pools Lengkap
Published: 2024-04-25 14:56:29

[Paito SGP](https://vivaruiz.com/) – Paito Warna Sgp – Paito Singapore Pools Lengkap
Paito Sgp, Paito Warna Sgp, Paito Singapore adalah kumpulan data angka paito Singaporepools yang di sempurnakan atau di lengkapi dengan bentuk tabel Paito Warna Singapore. Kami menyediakan tabel paito warna agar lebih memudahkan untuk memprediksi angka angka yang akan keluar berikutnya. Paito Sgp ini akan update tercepat dan akurat di jam keluaran 18.00 wib sesuai jadawal bandar Singaporepools mengocok undian, berikut kami sajikan angka angka togel Singapore yang telah keluar di bawah.

Dengan bantuan tabel paito warna sgp para pemain pasti akan memperhitungkan terlebih dahulu dalam bertaruh di togel Singapura sebelum mereka memasangnya angka 4d 2d maupun 3d, Paito ini sering sekali di gunakan oleh pemain senior untuk membangun sebuah prediksi dengan manual.

 

**[Paito warna hk
](https://vivaruiz.com/paito-hk/)**Data Paito Warna Sgp sangat di kenal oleh masyarakat lokal indonesia karena sangat di yakinkan ketika membangun sebuah pola warna mereka akan mengetahui angka yang akan di perkirakan akan keluar berikutnya, namun ini hanyalah sebuah prediksi banyak yang percaya juga banyak yang tidak percaya dan angka yang di keluarkan dari bandar yaitu acak, jadi semoga hoki dalam membuat prediksi menggunakan data warna Paito Sgp salam jp pauss.

Rangkuman hasil Paito Singapore akan diperbarui secara langsung setiap harinya sesuai dengan jadwal hasil pengundian togel Singapura. **[Data Paito Warna Sgp](https://vivaruiz.com/paito-sdy/)** yang kami tampilkan di atas dapat memberikan manfaat besar bagi semua anggota yang mengerti cara menggunakan alat-alat berwarna di atas serta pilihan alat di bawah tabel. Kami juga menyediakan kolom hari untuk memudahkan anggota dalam mengetahui apakah hasil yang dicari telah diperbarui pada hari tertentu.
Hit Club: Cổng Game Bài Đẳng Cấp | Chơi Hay, Thắng Lớn
Published: 2024-04-25 09:35:35

Hitclubb là một câu lạc bộ dành cho giới trẻ yêu thích âm nhạc và văn hóa hip hop. Câu lạc bộ này được thành lập vào năm 2020 tại Hà Nội với sứ mệnh mang đến một không gian giải trí mới lạ, trendy cho những bạn trẻ yêu thích âm nhạc hip hop.
Hitclubb có không gian rộng rãi, thoáng mát, được thiết kế theo phong cách công nghiệp với những bức tường gạch và ống nhựa màu đen tạo cảm giác hiện đại, đầy mạo hiểm. Quán có sân khấu âm nhạc rộng và hiện đại cùng hệ thống âm thanh ánh sáng tối tân để phục vụ các hoạt động biểu diễn âm nhạc và DJ.
Bên cạnh đó, quán có khu vực chillout được thiết kế riêng biệt với phong cách thanh lịch, ấm cúng hơn phù hợp cho việc giao lưu, trò chuyện giữa bạn bè. Tại đây, khách có thể thưởng thức những món ăn nhẹ như bánh mì kẹp thịt nướng, sandwich, bánh ngọt cùng các loại đồ uống nhẹ nhàng như nước trái cây, trà sữa,...
Hitclubb thường xuyên tổ chức các sự kiện âm nhạc như live performance, hiphop battle, DJ mix của các nghệ - lamgc9y4q6 - https://hitclub.com/
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/la77smg6q5ekba2cv726.jpeg)
Day 25/366
Tags: 1percentplusplus, 100daysofcode
Published: 2024-04-25 14:54:21

🚀 **Today's Learning:**

🌟 DSA
- check if 2 strings are anagram
- print all anagrams

🌟 Dev
- Load balancer

🔍 **Some Key Highlights:**

DSA

To check whether two strings are anagrams of each other, you iterate through each character in both strings, counting the frequency of each character. Then, you compare the frequency counts of both strings. If the counts match for every character, the strings are anagrams; otherwise, they aren't.

To print all anagrams together, you can use a hash map where the key is a sorted version of each word, and the value is a list of words with the same sorted characters. Then, iterate through the hash map and print each list of anagrams together. This groups all anagrams together based on their sorted character representation.

DEV

A load balancer distributes incoming network traffic across multiple servers to ensure no single server is overwhelmed. It typically operates at the application or transport layer of the OSI model. The load balancer continuously monitors the health of servers and directs traffic away from failed or overloaded servers. It can use various algorithms to determine how to distribute traffic, such as round-robin, least connections, or weighted algorithms. Overall, a load balancer ensures efficient resource utilization and high availability of services by evenly distributing incoming requests.

 #100daysofcode #1percentplusplus #coding #dsa