teleren/devto huggingface dataset:
Nx - Project Crystal
Tags: podcast, webdev, javascript, beginners
Published: 2024-02-08 01:33:10


Original: https://codingcat.dev/podcast/4-8-nx-project-crystal

{% youtube https://youtu.be/o6ihJKJ23BQ %}

{% spotify spotify:episode:1xSAtPm69TmcafQuLcBjdV %}


- **Introduction of Project Crystal in NX**: Project Crystal is a new feature in NX, revolutionizing how NX is used. It enhances the functionality of NX plugins, making them more like VS Code or WebStorm extensions, providing subtle but helpful features for developers.

- **Automated Target Inference and Simplified Configuration**: Project Crystal automatically infers targets within a project, significantly reducing the size of project configuration files. This simplification eases adoption, especially in large-scale enterprise environments, and keeps configurations in sync with actual config files, treating them as a single source of truth.

- **Enhanced Developer Experience with NX Plugins**: The update introduces enhanced developer tools, such as automatic configuration of caching inputs and outputs, and streamlined integration with existing CLI tools like VLI and Remix CLI. This aims to improve productivity and transparency in the development process.

- **Easier Adoption and Migration Path**: Project Crystal facilitates easier integration into existing setups, like PMPM mono-repositories, by allowing seamless addition of NX and its plugins. This provides a smoother migration path for projects transitioning to an NX plugin-based workspace.

- **Advanced Testing and Distribution Features**: The update introduces advanced testing capabilities, such as fine-grained file-level test targeting and the ability to distribute tests across multiple machines. This can significantly reduce testing times and costs, especially in larger environments, and is complemented by NX Cloud features like NX agents.
MagicPrompts - Free Tool & Open-Source
Tags: promptengineering, opensource, productivity, chatgpt
Published: 2024-02-08 01:30:23

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

Working on ChatGPT to browse for new ideas or testing a prompt for your Generative AI application?

Try #MagicPrompts by Lyzr team.

Convert your ‘one line’ prompt to a ‘best practice’ prompt instantly.

Inspired by https://arxiv.org/pdf/2312.16171.pdf and https://promptingguide.ai

It’s free. Get started. And let us know what you think.

The base prompt is open-sourced here - https://github.com/LyzrCore/lyzr

#lyzr #prompts #chatgpt #promptingguide #generativeai
Discussion: Supabase vs. Firebase - What do you think?
Tags: firebase, backenddevelopment, backend, serverless
Published: 2024-02-08 01:28:48

Hey there, 
I want to keep this short. As a tech enthusiast, I love to try new things. My normal tech stack would be a Firebase backend and a Vercel NextJS frontend. 

Now I stumbled upon two things that I got recommended by others and haven't had the chance to test so I thought I would ask you :)

What are your experiences with Firebase? 
(Bonus: the second thing is Cloudflare Pages vs. Vercel but the more pressing question is the first)
Poker Analogy Series (3/3): What poker teaches you about the importance of longevity (and consistency)
Published: 2024-02-08 00:46:04

In this podcast episode, Krish Palaniappan draws parallels between poker and life, focusing on the importance of adapting to changing circumstances. He uses the example of playing poker and how even with the same players, position, and hand, the outcome can be different due to various factors. Krish applies this lesson to real-life situations, particularly in the workplace, where skills and approaches may not always transfer seamlessly between projects. He emphasizes the need to understand the context, culture, and dynamics of each new environment before making suggestions or changes. The key takeaway is to approach every situation as unique, even if it appears similar on the surface.

## Takeaways

- Adapting to changing circumstances is crucial in both poker and life.
- Skills and approaches may not always transfer seamlessly between different projects or work environments.
- Understanding the context, culture, and dynamics of each new situation is essential before making suggestions or changes.
- Approach every situation as unique, even if it appears similar on the surface.

## Chapters

00:00 Introduction and Setting the Context

00:58 The Impact of Changing Variables in Poker

03:20 Applying Poker Lessons to Real Life

04:14 Challenges of Transferring Skills to New Projects

06:05 Learning to Adapt in Different Work Environments

07:02 Being Mindful of Context in Making Suggestions

08:26 Establishing Reputation and Building Trust

09:21 Adapting Problem-Solving Approaches to Changing Dynamics

10:13 Reacting to Obvious Insights and Embracing Change

11:11 Recognizing Evolving Perspectives and Context

11:41 Conclusion

## Video

{% embed https://youtu.be/7wJSPnHttls %}

## Transcript

https://products.snowpal.com/api/v1/file/c22d7d56-457a-41f5-866e-701850527db7.pdf
Data Manipulation with Pandas in Python
Tags: python, machinelearning, datascience, beginners
Published: 2024-02-08 00:28:56

## Introduction

Pandas is an open-source data manipulation and analysis library in Python. It is designed to make data analysis and manipulation tasks easier and more efficient. With its powerful features and intuitive syntax, Pandas has become a popular tool for handling and processing large datasets. In this article, we will discuss the advantages and disadvantages of using Pandas for data manipulation in Python.

## Advantages

1. **Efficient Data Handling:** Pandas allows for efficient manipulation of structured, tabular data. It can easily handle large datasets with millions of rows and columns.

2. **Data Cleaning and Preparation:** Pandas offers various functions to clean, reshape, and transform data. It can handle missing data, duplicate values, and inconsistent data types.

3. **Easily Integrated with other Libraries:** Pandas can be easily integrated with other popular libraries such as NumPy, Matplotlib, and scikit-learn, making it a powerful tool for data analysis.

## Disadvantages

1. **Steep Learning Curve:** Pandas has a steep learning curve, especially for beginners. The syntax and concepts can be overwhelming for those new to data manipulation.

2. **Inefficient for Big Data:** While Pandas can handle large datasets, it can become slow and inefficient as the data size increases. In such cases, other tools like Spark or Dask may be more suitable.

## Features

1. **Data Structures:** Pandas provides two primary data structures - Series and DataFrame, which allow for easy handling and manipulation of data.

    ```python
    import pandas as pd

    # Creating a Series
    s = pd.Series([1, 3, 5, np.nan, 6, 8])

    # Creating a DataFrame
    df = pd.DataFrame({'A': range(1, 5), 'B': pd.Timestamp('20230101'),
                       'C': pd.Series(1, index=list(range(4)), dtype='float32'),
                       'D': np.array([3] * 4, dtype='int32'),
                       'E': pd.Categorical(["test", "train", "test", "train"]),
                       'F': 'foo'})
    ```

2. **SQL-like Operations:** Pandas supports SQL-like operations like SQL join, groupby, and merge, making it easier for those familiar with SQL to use.

    ```python
    # SQL-like join
    result = pd.merge(df1, df2, on='key')

    # Groupby operation
    df.groupby('A').sum()
    ```

3. **Flexibility and Ease of Use:** Pandas allows for a wide range of operations such as filtering, sorting, and aggregation, making it a versatile tool for data manipulation.

    ```python
    # Filtering
    df[df['A'] > 0]

    # Sorting
    df.sort_values(by='B')
    ```

## Conclusion

Pandas is a powerful tool for data manipulation in Python, with its various advantages such as efficient data handling, data cleaning capabilities, and integration with other libraries. However, it also has a few limitations, such as a steep learning curve and inefficiency for big data. Overall, Pandas is a valuable library for data manipulation, and its features make it a go-to tool for data analysts and scientists.
Phalcon v5.6.1 Released
Tags: phalcon, phalcon5, release
Published: 2024-02-16 13:14:03

---
title: Phalcon v5.6.1 Released
published: true
date: 2024-02-08 00:01:02 UTC
tags: phalcon,phalcon5,release
canonical_url: 
---

We are happy to announce that Phalcon v5.6.1 has been released!

This release fixes a few bugs and the oh so dreaded deprecation warning for “self” in callables!.

A huge thanks to our community for helping out with bug fixing and more importantly bug reporting!

## Changelog

### Changed

- Changed `Phalcon\Cli\Router::setDefaultAction` and `Phalcon\Cli\Router::setDefaultModule` to return the object back for a fluent interface [#16328](https://github.com/phalcon/cphalcon/issues/16328)

### Fixed

- Fixed `Phalcon\Db\Adapter\Pdo\Postgresql::describeColumns()` to return the correct string back [#16371](https://github.com/phalcon/cphalcon/issues/16371)
- Fixed `Phalcon/Filter/Validation::validate()` and `Phalcon/Filter/Validation/ValidationInterface::validate()` to return also `bool` [#16337](https://github.com/phalcon/cphalcon/issues/16337)
- Fixed `Phalcon\Mvc\Model::toArray` to ignore getters when the field name is `source`. [#16514](https://github.com/phalcon/cphalcon/issues/16514)
- Fixed `Phalcon\Http\Request::getPut` to correctly get form encoded data [#16519](https://github.com/phalcon/cphalcon/issues/16519)
- Fixed deprecation warning in callables `Use of "static" in callables is deprecated` for PHP 8.2+ [#16263](https://github.com/phalcon/cphalcon/issues/16263)

## Upgrade

Developers can upgrade using PECL

```
pecl install phalcon-5.6.1

```

To compile from source, follow our [installation document](https://docs.phalcon.io/5.6/installation)
Poker Analogy Series (2/3): What poker teaches you about the importance of adaptability
Published: 2024-02-07 23:53:33

In this podcast, Krish Palaniappan draws an analogy between poker and software development, focusing on the theme of longevity. He emphasizes the importance of committing to the game for extended periods of time in order to learn and make better decisions. This concept applies to both poker and software development, where time and experience play a crucial role in achieving success. Krish shares his personal experience with building a company and highlights the challenges and rewards of long-term commitment. He concludes by emphasizing the need for consistency, patience, and continuous improvement in both poker and software development.

## Takeaways

- Committing to the game for extended periods of time allows for better decision-making and learning in poker and software development.
- Time and experience are crucial factors in achieving success in both poker and software development.
- Building a successful company and reputation requires long-term commitment and overcoming challenges.
- Consistency, patience, and continuous improvement are key to achieving success in poker and software development.

## Chapters

00:00 Introduction and Overview

01:26 The Importance of Longevity in Poker

03:18 Applying Longevity to Software Development

05:13 The Role of Time in Business and Investing

06:09 Personal Experience with Longevity

07:31 Overcoming Challenges and Building Reputation

08:52 Consistency and Patience

09:51 Summary and Conclusion

## Video

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

## Transcript

https://products.snowpal.com/api/v1/file/ad01bd4f-c45a-451a-8a8e-2b03cf223d92.pdf
Create Shopify Themes with Figma
Tags: shopify, ecomm, figma, tutorial
Published: 2024-02-09 01:35:20

---
title: Create Shopify Themes with Figma
published: true
date: 2024-02-08 00:00:00 UTC
tags: ["shopify", "ecomm", "figma", "tutorial"]
canonical_url: https://joshuaakanetuk.com/blog/create-shopify-themes-with-figma/
---

Shopify seems to be all of the rage these days since everyone is creating small businesses. Creating Shopify themes can be extremely lucative. I created a [tutorial series](https://www.youtube.com/playlist?list=PLD__2TPFm0LhKkmssvmUIMKlKwpn3btVj) on YouTube on building themes and the attached video will walkthrough building a theme for Shopify in Figma. The video is a bit old, but should still hold up.

{% embed https://www.youtube.com/watch?v=VOzvNqPny98 %}
Experimenting with Architectural Testing
Published: 2024-02-16 20:36:30

---
title: Experimenting with Architectural Testing
published: true
date: 2024-02-08 00:00:00 UTC
tags: 
canonical_url: https://www.oliverdavies.uk/archive/2024/02/08/experimenting-with-architectural-testing
---

[In yesterday's email](https://www.oliverdavies.uk/archive/2024/02/07/running-tests-in-parallel-with-paratest), I mentioned parallel testing and speeding up your tests by running them in parallel.

Something else I've been experimenting with recently in architectural testing with PHPat.

For example, ensuring classes within a namespace are `final` or not, that Controller classes all extend `ControllerBase` and have the Controller suffix in their names.

Going forward, I'd like to ensure that each Drupal module only uses its own classes and is separated, as I recently had an issue where I deleted a class method in one module only to find it was used in a different module.

Here's what I have so far for my [testing course codebase](https://www.oliverdavies.uk/atdc):

```
final class ArchitectureTest {

  public function test_classes_should_be_final(): Rule {
    return PHPat::rule()
      ->classes(Selector::inNamespace('Drupal\atdc'))
      ->shouldBeFinal();
  }

  public function test_controllers_should_extend_ControllerBase(): Rule {
    return PHPat::rule()
      ->classes(Selector::inNamespace('Drupal\atdc\Controller'))
      ->shouldExtend()
      ->classes(Selector::classname(ControllerBase::class));
  }

  public function test_controllers_should_have_the_Controller_suffix(): Rule {
    return PHPat::rule()
      ->classes(Selector::inNamespace('Drupal\atdc\Controller'))
      ->shouldBeNamed(
        classname: '/Controller$/',
        regex: TRUE,
      );
  }

}

```

I plan to continue expanding this configuration as I become more familiar with PHPat, and because it's a PHPStan extension, it's already available to run within my projects locally and within the CI pipeline.

P.S. Do you need immediate access to an expert Drupal Developer? [With my Drupal development subscription](https://www.oliverdavies.uk/subscription), make unlimited requests for a fixed monthly price in less time than posting to a job board!
How To Use Open AI API with Node.js
Tags: openai, chatgpt, node, tutorial
Published: 2024-02-09 01:34:43

---
title: How To Use Open AI API with Node.js
published: true
date: 2024-02-08 00:00:00 UTC
tags: ["openai", "chatgpt", "nodejs", "tutorial"]
canonical_url: https://joshuaakanetuk.com/blog/how-to-use-open-ai-api-nodejs
---

ChatGPT has become one of the most popular web applications of all-time. The firm, OpenAI, that created ChatGPT actually has an API that allow access to the same models that ChatGPT uses and more. This article will demonstrate quickstart usage for OpenAI's API for Node.js.

> This requires a credit card, but you are provided $5 credits before you are change

1. First you'll need to create an API account via [OpenAI's platform](https://platform.openai.com/signup). It's free to create.

2. Create an [API key](https://platform.openai.com/account/api-keys) and save it securely somewhere as it is required to make requests to OpenAI.

3. Create a Nodejs project. Run `npm init` if you like.

4. Install the `openai` package:

```bash
npm install openai@^4.0.0
```

or

```bash
yarn install openai@^4.0.0
```

1. Create a `index.js` and paste the following code (sourced from [OpenAI docs](https://platform.openai.com/docs/api-reference/authentication)):

```javascript
import OpenAI from "openai";

const openai = new OpenAI({
  organization: 'YOUR_ORG_ID',
});
```

You are now ready to make other requests!
the programmer writer
Tags: gamedev, writing
Published: 2024-02-25 21:28:56

---
title: the programmer writer
published: true
date: 2024-02-08 00:00:00 UTC
tags: [ 'gamedev', 'writing' ]
canonical_url: https://onwriting.games/daily/20240208-839-the-programmer-writer/
---

Many writers have a bit of **aversion to technology**.

The same goes for many game designers.

I am of the opinion that if you are going to work on creating interactive experiences, you **have to learn how to code**.

Mind you, I'm not referring to learning how to build an operating system from scratch, with a bootloader and all.

No, I mean **understanding the mechanics of programming**.

Being able to express a logical idea in some kind of language.

The reason for this is that there are certain mental constructs that programming teaches that greatly help organize your ideas and **enable how to express them**.

You need to understand the basic mechanics of **decision making** (`if`), how to **express truth values** (`true`, `false`, `and`, `or`, `xor`), and grasp the foundation of **program flow** (`while`, `for`).

This is necessary to make good use of [variables](/daily/20231113-825-talking-in-code-variables/) and to [react to state](/daily/20231114-1127-talking-in-code-state/).

The ability to abstract in terms of decision logic is a very valuable tool for creating dynamic stories, and it needs to be trained.

If you know how to code, good, not much for you here.

But if you have no idea about programming, why not take a free introductory course, something simple? What do you have to lose?

Eventually the mental models will form, and things will be way easier.
How about a CSS/JavaScript plug & play marketplace for Developers to sell their code
Published: 2024-02-07 23:56:36

I am building a marketplace for front-end Developers (similar to YouTube for Content Creators). The idea is that with JS & CSS, a lot of websites can be improved - both functional and UI aspects. This platform will allow CSS & JavaScript developers to showcase and sell their code that websites can embed in their websites and pay based on usage. The Developers will earn one-time or residual income. If you are a CSS/JavaScript expert and interested in this ping me.
Tracing & Recovery Stolen Cryptocurrency: Daniel Meuli Web Recovery
Published: 2024-02-07 23:35:29

In recent years, cryptocurrency has become increasingly popular, not just among tech-savvy individuals, but also mainstream investors and businesses. The allure lies in its ability to bypass traditional financial institutions, providing users with more control over their money. Additionally, the potential for high returns on investment has attracted many who seek to capitalize on the volatile nature of cryptocurrencies. With great anticipation, you've seen the value of a promising cryptocurrency increase after investing your hard-earned cash in it. But then an unexpected catastrophe happens. Your money disappears out of thin air if your digital wallet is compromised. Unfortunately, many cryptocurrency fans can relate to this situation all too well. In my quest to recover the lost cryptocurrency, the heroic wizard employed the magical art of digital forensics. Equipped with mystical tools and techniques, they traced the nefarious activities of the hackers. By unraveling the cryptic chain, the wizard was able to follow the money and unearth the hiding places of the stolen cryptocurrency. Upon entering the battlefield, the wizard conducted a meticulous evaluation of the cyberattack's impact. They left no stone unturned in assessing the damage caused and determining the best course of action to reclaim what was rightfully mine. Similar to the internet's version of a mystical genie, Daniel Meuli Web Recovery focuses on finding lost bitcoins rather than fulfilling wishes. These guys are the ones to contact if you've ever found yourself cursing your fate and hoping for a solution while staring at a depleted bitcoin wallet. They are now the preferred option for bitcoin recovery due to their experience and track record of accomplishments. Call. Telegram (@) Danielmeuli
Day 911 : Yesterday Prayer
Tags: hiphop, code, coding, lifelongdev
Published: 2024-02-07 23:15:35

_liner notes_:
- Professional : Only had one meeting today. Rest of the day I worked on refactoring some Web Components to use a new client SDK. It's wild how so much could change in a new SDK. In order to make something work in a component I made today, I had to change some things in the one I made yesterday. There's a couple of other things that I thought would have been fixed but nope. Saying a silent prayer that more things don't pop up. I got like one and half Web Components done today (in addition to reworking the ones I made already). All things considered, not a bad day.

- Personal : Last night, I went through tracks for the radio show. Looked into some more properties. Reached out to a realtor. Did more research on KVs for my side project. Think I'm going to go ahead and include them in my project. Didn't even get a chance to watch "Rurouni Kenshin".

![A green hillside in the English countryside of Sutton Bank. There is a river in the valley and a small town in the distance. The sky is blue with hazy clouds and the sun is setting.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wztceond1142t0iexow9.jpg)

Think I may spend like another hour on this Web Component for work so that I can just get it done, demo it for my manager tomorrow and close the ticket. I'll be able to refine them at a later date. This was just more to see if I can get them done and report any hurdles I ran into. Going to try and get some data saved using KV from the admin dashboard. I think I can get the structure I want. We'll see. Probably pick up some projects off Bandcamp and put together the social media posts. Look to see if any new properties popped up. Probably call it an early night because I want to test my demo application with a large audience and the team meeting is early in the morning. Hopefully get an episode of "Rurouni Kenshin" before going to bed.

Also, today is the birthday of 2 of the DOPEST producers of ALL TIME, J Dilla and Nujabes!!!

Have a great night!

peace piece
Dwane / conshus
https://dwane.io / https://HIPHOPandCODE.com
{% youtube 55-Co24cEtA %}
{% youtube dxEvXdR5-Oc %}
📈📈📈Quick #BTC Analysis !!
Tags: bitcoin
Published: 2024-02-07 22:39:36


Bitcoin is sitting at breakout currently. We could expect a wild movement anytime, the way they made it move in specific area and the way it ate altcoins volume, i am now expecting more wild fire candles in coming days,
Everything i pretty logical and makes sense. Bitcoin went up to $48,000 with etf hype and later took correctional dump to 39,000 area, and now stabling around $43,000. Once we make a base line here which we have already made almost, next is to see $46,000 area leadinh us to $50,000. The next correction will be decided by then. Either it will happen from above $55,000 to $60,000 area or $53,000 area.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k7eyeg4fk6eirue4mulf.png)
First Post(test)
Published: 2024-02-07 22:23:55

Hello, 

This is my first post. More for me to see how it would display in my profile. Please ignore, I will just post some temporary stuff.

## Unknown

> Moon is shiny

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