teleren/devto huggingface dataset:
Celebrating the First Week of Contributors to Before I Die Code 👏🏻
Tags: opensource, contributorswanted, showdev
Published: 2023-08-23 22:35:53

Hi everyone! 🎉 I’m excited to thank my contributors to my open source project Before I Die Code 🙌 in video format💪🏻, where developers share what they want to do before they die.

{% embed https://www.youtube.com/watch?v=-RPegKp4zSc %}

👉 [Before I Die Open Source Repository](https://github.com/BeforeIDieCode/BeforeIDieAchievements/)

The contributors from the first week of the project being live are as follows:
👨‍💻 Artis Lotko from Riga, Latvia
His before he dies statement is to emigrate to New Zealand 🇳🇿

👩‍💻 Addie Lopshire-Bratt
From Denver, Colorado 🇺🇸
Her, before I die statement, is to live in Amsterdam and explore the Netherlands and Europe. 🇳🇱🇪🇺

👨‍💻 George Halterman from California USA
His before I die statement is to do every 4 star hike in Yosemite and live in the Eastern Sierras of California. 🏞️

And last...

👨‍💻 Sahil Chalke from Mumbai, India 🇮🇳
His before he dies statement is to spend time in the beautiful Maldives. 🏝️

Thank you Artis, Addie Lopshire-Bratt, George Halterman, and Sahil Chalke for contributing this week to the growth of Before I Die Code 🚀.

Together, we can share and reflect on what we are doing in life, while helping developers learn to contribute with Git flow and co-contribute to open-source projects. We will be adding more open issues to Before I Die Code to give more opportunities to evolve and improve the user interface, technology stack, and value creation of the project for the developer community.

👉 I encourage you to check out the [Before I Die Code repository link](https://github.com/BeforeIDieCode/BeforeIDieAchievements/) in this post, star the repository, and fork🍴 it to contribute to the growth of this project.

Thank you for your time, and have a great rest of your week! 😊
Unity Game Hacking
Tags: unity3d, gamehacking, reverseengineering
Published: 2023-08-23 22:23:35

### Hacking Unity Games

Unity, a popular game engine, is frequently targeted by those looking to reverse-engineer or manipulate games. One of the primary techniques to achieve this is [Mono Injection](https://guidedhacking.com/threads/the-top-5-best-mono-injectors.19887/).

#### Mono Injection

Mono injection, as the term suggests, involves injecting scripts or code into the Mono runtime. Mono, in Unity's context, is a cross-platform .NET runtime. By injecting code, one can modify game behavior or introduce additional functionalities. Mono injections have been popular due to the flexibility they offer, but they also come with challenges like bypassing anti-cheat mechanisms.

For engineers looking to get started with Mono Injection, a thorough guide is available at [tutorial on Unity Game Hacking](https://guidedhacking.com/threads/unity-game-hacking-guide-tutorials.12579/). It offers comprehensive steps and insights, catering specifically to those looking to modify Unity games.

#### Best Mono Injectors

Once we understand the theory and challenges of Mono Injection, having the right tools can be the game-changer. Two notable tools have made a significant impact in this space:

1.  MInjector: A robust Mono Injector, MInjector is a favored choice amongst many professionals in the field. Its ease of use combined with a range of features makes it a must-have. Engineers interested in exploring this tool further can find more details and download options at this [minjector download page](https://guidedhacking.com/resources/minjector-download-the-best-mono-injector.671/).

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

2.  SharpMonoInjector: A versatile tool that's tailored for injecting assemblies into Mono processes, SharpMonoInjector's strengths lie in its user-friendly interface and efficiency. For those keen to deep dive into its capabilities, [this Sharp Mono Injection page](https://guidedhacking.com/resources/sharpmonoinjector-download.697/), including its download options.

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

#### CodeStage Anti-Cheat

Many Unity games come armed with the CodeStage Anti-Cheat mechanism. Bypassing this system can be tricky, but not impossible. For those interested, [a detailed anticheat guide](https://guidedhacking.com/threads/how-to-hack-unity-mono-injection-codestage-anticheat.17915/) sheds light on how one can navigate around this anti-cheat system using mono injection techniques.

{% embed https://www.youtube.com/watch?v=XH4lePNqiHc %}

#### In Summation

Manipulating Unity games, particularly through Mono Injection, can be a challenging yet rewarding endeavor. However, with the right resources, tools, and an understanding of the underlying mechanisms, one can navigate this terrain with greater ease. As always, wielding such knowledge should come with a sense of responsibility, ensuring the ethical use of these techniques.
C++ Filesystem
Tags: cpp, rust, programming
Published: 2023-08-23 22:07:08

In normalizing c++17 filesystem use in my code, I found it much nicer than my experiences with rust's equivalent might suggest.  From rust I kept having to unwrap layers and convert string types a lot.  std::filesystem::path and directory_entry may even have as many layers and complexity as rusts, but it feels much easier and more automatic to actually work with. I especially appreciate I can write a directory scan as a stl algorithm and execute filenames in a lambda.  For example:

```cpp
namespace fsys = std::filesystem;
inline auto scan_dir(const fsys::path& path, std::function<bool(const fsys::directory_entry&)> proc) {
    auto dir = fsys::directory_iterator(path);
    return std::count_if(begin(dir), end(dir), proc);
}
```

What kept me from using c++17 filesystem support was poor gcc support for a long time, including having it as a separate runtime library, and it's similarly late introduction in clang.  I currently have similar problems with adapting use of c++20 modules, but probably will rewrite things using that in a few years, as, like header libraries, it makes auto type deduction much more valuable.  Header-less code means less duplication, and to me it would make c++ even more preferable to coding than rust.

Whats important to remember is that many enterprise gnu/linux distros have very long lifespans. They keep older compilers and versions of languages alive a lot longer with them, too.  I now target bullseye (debian 11/gcc 10) or later, though my code can still build on suse (including openSUSE leap) and netbsd 9, both of which still default with gcc < 10 and c++ libraries built from that.  Old system releases never die...
Agile or not Agile
Tags: agile, projectmanagement, career, teamwork
Published: 2023-08-23 22:06:21

On the projects I've worked on so far, everyone implemented Agile ways of working, or at least tried to. I always found them not agile enough because things weren't as smooth as in books and tutorials; **there were always exceptions like:**

- longer sprints

- reduced daily stand-ups

- limited client involvement
 

And then I realized, just like there's no perfect clean code, there's no perfectly by-the-book implemented way of agile working either... so **what's the secret then ?**


## Problem
A lot of books and tutorials tend to overlook the fundamental essence of Agile in their focus on tools and methodologies. They outline the steps, the frameworks, the processes, but they miss the heart of what Agile truly represents. It's not just about daily stand-ups, backlogs, and sprints.

## Back to the reality
The reality of projects is often messier, with unexpected roadblocks, changing priorities, and unique team dynamics. This made me realize that the key to successful Agile implementation isn't about sticking to a rigid formula; it's about understanding the principles and creatively applying them to fit the context.

Just as clean code principles guide us towards writing maintainable and efficient code, Agile principles guide us towards delivering value and responding to change effectively. It's about finding that balance between structure and flexibility, between following a plan and adapting to new insights.

So, the secret lies in truly grasping the essence of Agile—embracing its values of collaboration, communication, and iteration. It's about being agile in your thinking, not just in your processes.

So here’s my recipe for working in an agile way:

1. where are your
2. one step toward where you want to be
3. evaluate and fix if broke

## For the end
In the end, it's not about rigidly adhering to a specific set of rules, but about applying the Agile mindset. That's where the magic happens—where the tools and methodologies become vehicles for delivering impactful results, and where each project's Agile journey becomes an authentic and dynamic story of adaptation and success.
How to mirror GitLab repo to GitHub
Tags: gitlab, github, git
Published: 2023-08-23 21:56:01

If you have a [GitLab](https://gitlab.com) repo and would like to mirror it in your [GitHub](https://github.com) account, it can be set up directly in the GitLab repo settings. Note that here we use new fine-grained tokens functionality of GitHub (which is currently in beta, as of May 2023).

Go to the project's settings (Settings -> Repository) and expand "Mirror repository". You will see the following form:
![Mirror repository form on GitLab](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/36gr1b8ts4u8xsdnjfx3.png)

In the "Git repository URL", you need to specify the HTTPS URL for the repo on GitHub in the following format:<br /> `https://github-username@github.com/github-username/repo.git` 
Note the added username part between `//` and `@` in the above URL --- when you create a repository on GitHub, the generated URLs do not have this, so you need to add it manually!

Now, for a password, we use [fine-grained tokens](https://github.com/settings/tokens?type=beta). Press "Generate new token" button and choose read and write permissions for "Contents".

Copy the generated token and paste it into the "Password" field in GitLab. Finally press "Mirror repository" button. Once you see a table with mirrors appeared, you can press "Update now" (two arrows) button to check if everything works correctly.

Right now, usability is a bit off, as if something is not working, you have to delete the mirror and start over again. It would be a better user experience, if GitLab allowed to edit the mirror settings.

Hopefully, these instructions work good for you. Enjoy!

P.S. This two StackOverflow posts were really helpful to write the above instructions:

-   <https://stackoverflow.com/questions/30268549/mirroring-from-gitlab-to-github>

-   <https://stackoverflow.com/questions/63906613/minimal-set-of-scopes-to-push-to-github-using-an-access-token>
Day 811 : Better
Tags: hiphop, code, coding, lifelongdev
Published: 2023-08-23 21:47:36

_liner notes_:
- Professional : So I woke up early in the morning feeling sick. Basically spent the next hour blowing my nose. Good news is that I think I'm getting better. I think I'm through the worst of it. Rather get it out now instead of when I go overseas for a month. Took it easy today. Finally booked the final hotel for my trip and put in my time off into the system.

- Personal : So I ordered another mattress for my van. The one I purchased before is falling apart and I think is messing up my back. The new mattress can fold up into like a couch thing so I'll be able to set it up so I can sit up in the van. Should be more comfortable when I work during the day. I went through tracks for the radio show. And finished up the demo application for work and got it uploaded to GitHub. I watch the latest Bleach episode.

![Aerial view of a beach in Herzliya, Israel with a rocky shore and turquoise blue water.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/bpvplclxg9ojcp9cuhs9.jpg)

Going to take it easy tonight and focus on getting better. Drink lots of water and get to bed early. There's a super early meeting that I want to show my demo in. Probably go through some tracks and see if I can fix the authentication issue I'm running into with my side project.

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube k5iYDmD-AX0 %}
React Custom Hook: useOnScreen
Tags: webdev, javascript, programming, react
Published: 2023-08-23 21:00:00

In this article series, we embark on a journey through the realm of custom React hooks, discovering their immense potential for elevating your development projects. Our focus today is on the "useOnScreen" hook, one of the many carefully crafted hooks available in the collection of React custom hooks.

Github: https://github.com/sergeyleschev/react-custom-hooks
```javascript
import { useEffect, useState } from "react"

export default function useOnScreen(ref, rootMargin = "0px") {
    const [isVisible, setIsVisible] = useState(false)
    useEffect(() => {
        if (ref.current == null) return
        const observer = new IntersectionObserver(
            ([entry]) => setIsVisible(entry.isIntersecting),
            { rootMargin }
        )
        observer.observe(ref.current)
        return () => {
            if (ref.current == null) return
            observer.unobserve(ref.current)
        }
    }, [ref.current, rootMargin])
    return isVisible
}
```
The **useOnScreen** hook leverages the power of the Intersection Observer API, making it efficient and reliable. By simply providing a ref to the element you want to monitor, useOnScreen will notify you when it enters or exits the viewport.

One of the key advantages of useOnScreen is its simplicity. With just a few lines of code, you can detect if an element is visible and respond accordingly. This can be immensely useful in scenarios where you want to trigger animations, lazy load images, or load additional content as the user scrolls.

To use this hook, first import it into your component file. Then, create a ref using the useRef hook to target the desired element. Pass the ref as the first argument to the useOnScreen hook, and you're all set! You can also provide an optional rootMargin value to adjust the visible threshold.

```javascript
import { useRef } from "react"
import useOnScreen from "./useOnScreen"

export default function OnScreenComponentComponent() {
    const headerTwoRef = useRef()
    const visible = useOnScreen(headerTwoRef, "-100px")
    return (
        <div>
            <h1>Header</h1>
            <div>
              ...
            </div>
            <h1 ref={headerTwoRef}>Header 2 {visible && "(Visible)"}</h1>
            <div>
              ...
            </div>
        </div>
    )
}
```
In our example code, the OnScreenComponentComponent demonstrates how to use the _useOnScreen_ hook. By attaching the ref to the second header element, we can display a "(Visible)" text when it enters the viewport. Feel free to customize the logic within your component to suit your specific needs.

Full Version | React Custom Hooks:
https://dev.to/sergeyleschev/supercharge-your-react-projects-with-custom-hooks-pl4
Running Bar Chat - Power BI
Tags: powerbi, visualization, powerfuldevs
Published: 2023-08-23 20:42:35

One of my previous blog was to visualize data walking through a small python code that created an animated visual to depict the price fluctuations as a continuous flow of information over the time period. [Running Bar Chart](https://dev.to/balagmadhu/running-bar-chat-5g2)

Stumbled across a similar Power BI visual plugin that transforms static time series data into dynamic animations. 

**Data Source**:
I have leveraged the same data source as the Running bar chart blog. 

Base visual we just leverage the standard Stacked bar chat to pull how the average house price varies by each region.

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

One you import the **<u>Play Axis</u>** Plugin, you need to select the field against which you wanted the bar chart to be animated. In our case I had selected the Year field

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

Ta-da! 🎩✨ With the base visualization all set and a dash of magic by plugging in the play vis with the right references, behold our creation: a captivating animated visual that brings your time series data to life! 📈🎬 #DataMagic #AnimatedVisuals #PowerBI


![PowerBI Visual](https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExcHd4dW4xeXZtZzc1ZmNkZTZqYngxbXIzY2F6MmRuNGl5NTVncmo3eiZlcD12MV9pbnRlcm5hbF9naWZfYnlfaWQmY3Q9Zw/lKdj0Bv8vAo3HsvZ2K/giphy.gif)


**<u>Further Notes</u>**:
[Play Axis](https://github.com/mprozil/PlayAxis) Plugin Git
Wednesday Links - Edition 2023-08-23
Tags: java, jvm, spring, chatgpt
Published: 2023-08-23 20:42:05

Tackling the OAuth2 Client component model in Spring Security (5 min)
https://spring.io/blog/2023/08/22/tackling-the-oauth2-client-component-model-in-spring-security

Bottleneck #05: Resilience and Observability (30 min)🍾
https://martinfowler.com/articles/bottlenecks-of-scaleups/05-resilience-and-observability.html

Opt-out from ChatGPT (3 min)🚪
https://www.linkedin.com/posts/gergelyorosz_i-updated-my-blogs-robotstxt-to-opt-out-activity-7094762821527171072-8DYn/

Pi4J OS (2 min)🥧
https://pi4j.com/blog/2023/20230731_pi4j_os/
The 65th Day of the 100 Days of Code Challenge
Published: 2023-08-23 20:35:50

Hey everyone, the days are flying by!

Today, I focused some more on the DTMF thing, and it seems like it won't be possible with Twilio. The most annoying thing is their encoding, I followed the exact steps as another function in the application which sends audio to an ongoing Twilio call but still couldn't get it to sound right. Testing some options and exploring what the best telephony solution for this personal assistant project is.

I'm considering Vonage and Twilio, the one that works best while also handling this efficiently will be the one I'll use. After this, I'm sure that the project will be running in terms of progress!

Happy coding everyone :)
Twisty brings open source video AI to creators on the Web
Tags: videoai, ai
Published: 2023-08-23 20:32:15

I am a big believer in the power of open source, especially when it comes to progress in AI. The rapid development of 100s of 2D image generators and models, LLMs to rival chatCPT, music generators like MusicGen and now video generators tell me that placing a bet on open source to offer more power, more creative range and more innovation is a safe bet to make!

Over the last few months a few of us at Twisty have been pulling together the best of the open video generators onto a browser based platform. This platform now offer 5 generators for creating interesting animations (Deforum, nateraw, txt2video) and video first (AnimationDiff, Zeroscope) results of up to 10 seconds in most cases.

We also integrated MusicGen from Meta to add original music scoring on top of any generated clip. 

Use Twisty for free. Gems are the internal rendering currency. Eventually we will charge to cover costs and will rev share with the creators of the generators and model styles based on usage.

[Mac Miller Dancing](https://twisty.ai/m/ulEuUikgPYp6ehU1IYt5)

[Twisty](https://twisty.ai)
How to Increase Website Traffic
Published: 2023-08-23 20:16:55

n today’s world, creating a website is one of the most important steps toward small business success. It’s the foundation that allows you to build an online presence and grow your business.

After all, you can learn alot about the people who visit your website and turn them into an advocate, partner, or client with the right set of tools. If any of these things happen, it’s a win. Now, how do you get visitors to your website?

Try the following approaches to learn how to increase website traffic.

How to get more brand traffic on your website
1. Optimize your content with keywords
When you optimize your content with keywords relevant to your business, the process is known as search engine optimization (SEO). Many business relationships are formed after someone types a word or phrase into a search engine to find a website. Knowing the search terms people use to discover your website makes it easier to draw in more visitors. Certain terms may be specific to you, such as a brand or product name. Or, they can be attributes or benefits like “all-natural,” “free delivery,” or something else that sets you apart.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qusmva0uuxu148prtpf7.jpeg)
Read More https://shorturl.at/EFZ48
5 Tips for Next.js developers.
Tags: nextjs
Published: 2023-08-23 20:13:46

Here are 5 tips for building powerful apps with Next.js and an example mentioning your app.

Use File-Based Routing 
Next.js allows you to define routes via files and folders in the pages directory. This makes routing intuitive.

Optimize with Automatic Code Splitting
Next.js splits code automatically to allow faster page loads. Less code is loaded upfront.

Go Serverless with API Routes
Leverage API routes to build app backends with serverless functions. Simple yet powerful.

Make it SEO-Friendly 
Next.js follows universal rendering for optimizing search engine results. Pages load fast and indexed easily.

Deploy Easily 
Thanks to its server-side rendering approach, Next.js apps can be deployed like static apps. No complex configuration needed.
Apps like [Pesco Bill Onlline](https://checkbill.pk/pesco-online-bill/) highlight the capabilities of Next.js. It uses modern web capabilities while optimizing for performance and SEO. Power your next idea with the potential of Next.js!
For example i have a app [Ke Duplicate Bill](https://checkbill.pk/k-electric-duplicate-bill/) it is completely based on Next.js
Encapsulate conditionals. Clean code.
Tags: laravel, php, cleancoding
Published: 2023-08-23 20:09:56

Encapsulating conditionals is a crucial aspect of writing clean and maintainable PHP code. It involves structuring your code in a way that reduces complexity, improves readability, and makes it easier to extend and modify. Here are some principles and techniques for encapsulating conditionals in PHP code:

```
#BAD
if($article->state == 'published'){
 // ...
}

#GOOD
if($article->isPublished()){
  // ...
}

# in Article Model 
const PUBLISHED = 'published';
public function isPublished(){
   return $this->state == self::PUBLISHED;
}
     
```