teleren/devto huggingface dataset:
Hello there, alchemy is almost here!
Tags: web3, cryptocurrency, newbie
Published: 2024-01-13 09:53:04

Was wandering how to do alchemy and get paid with new crypto?
We can help you! 
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ubznul4ssq5udaqukocr.png)
Follow for more!
Audiencer.io
Tags: webdev, javascript, beginners, programming
Published: 2024-01-13 09:46:55

Audiencer là tôi sẽ nói một cách đơn giản nhất để bạn hiểu về phần mềm này.
[Audiencer.io](https://www.wsovn.net/audiencer-otos) là một ứng dụng hoàn toàn dựa trên đám mây. Nó hoạt động giống như một cộng đồng, nơi tất cả chúng ta đều được hưởng lợi. Bạn chỉ cần 3 cú nhấp chuột để đăng nhập Audiencer là có thể kiếm được lợi nhuận tuyệt đối.
Bạn chỉ cần nhập một từ khóa bạn muốn; thì phần mềm này sẽ tự động đào tạo ra doanh thu cho bạn.
FE – Audiencer – $79
Mỗi sản phẩm đều mang đến những tính năng tuyệt vời cho người dùng. Hãy cùng tìm hiểu về các tính năng và lợi ích của Audiencer
Để hiểu đối tượng mặc định trên Facebook, bạn sẽ cần những lời khuyên đắt giá từ những người khác như Jon Loomer. Nhưng với Audiencer, bạn có thể làm việc với một vài cú nhấp chuột. Tất cả những gì bạn cần làm là nhập từ khóa bạn muốn tìm kiếm. Audiencer sẽ tự động tích hợp và đào sâu thông tin cho bạn. Bạn sẽ tiết kiệm được vô số thời gian và tiền bạc với tính năng này.
Mua ngay tại: [https://www.wsovn.net/audiencer-otos](https://www.wsovn.net/audiencer-otos)
Exploring New Horizons: Choosing the Right Stack for Web Development in 2024
Tags: webapp, php, backend, fullstack
Published: 2024-01-13 09:36:03

Hey fellow developers! 👋 I've been on an exciting journey in web development, starting with HTML and CSS and progressing to PHP. Now, I'm considering diving into a new stack to enhance my skills further and explore fresh possibilities.

The question is: What framework or language should I focus on this year? 🚀 I'm looking for something that's easy to learn, understand, and deploy. Additionally, I want to transition away from the JavaScript ecosystem while being able to create web apps with both backend and frontend components.

Here are some factors to consider in my quest for a new stack:

1. **Ease of Learning:** As someone who started with PHP, I appreciate a language or framework that is beginner-friendly and has ample resources for learning.

2. **Deployment Simplicity:** It's crucial that the chosen stack allows for easy deployment, reducing the complexities often associated with launching web applications.

3. **Full-stack Capabilities:** Since I want to work on both backend and frontend, finding a solution that seamlessly integrates these aspects is key.

Now, I'd love to hear your thoughts and recommendations! What stack are you currently enjoying, and why do you find it valuable in 2024? Let's embark on this coding adventure together and explore the exciting possibilities that lie ahead.
Set up a separate connection pool for reader and writer DB access | SpringBoot JOOQ
Published: 2024-01-13 09:35:46

> **🔍 Disclaimer:**
>
> The following is based on my experience and knowledge, and may not represent the best approach or most up-to-date information. Please feel free to share your insights and correct any outdated information.
>
> *This is an open dialogue; let's learn and improve together.* 🚀

You might be using DB in your corporate application and may need a separate connection pool for the reader and writer DB connection.

One of the advantages of using this is that you can measure the no of requests your reader and writer handle.

## Note: Problem with existing migration
In the initial setup, you might enter a problem where you will see your reader and writer connection are going from the connection. So, what's the cause!!

The cause is simple - existing queries, you need to check if your existing queries follow some pattern to not get into this problem. This happens when you write in db and then return, this causes that reader connection to connect to the writer, make sure to make your reader and writer queries go through separate queries.

## Setting up in SpringBoot a different pool connection for JOOQ

To set up this make two different instances of DSlContxt, one for select queries and one for writing queries like insert, and update.

```
import org.jooq.DSLContext

class DSLContextResolver(
    private val reader: DSLContext,
    private val writer: DSLContext
) {
    fun getReaderContext(): DSLContext = reader

    fun getWriterContext(): DSLContext = writer
}
```
Instead of using direct DSLContext we will be using our custom DSLContextResolver class. For ex:-
```
private val readerContext = dslContextResolver.getReaderContext()
private val writerContext = dslContextResolver.getWriterContext()

    fun getBookById(id: Long): Book {
        return readerContext.selectFrom(Tables.BOOK)
            .where(Tables.BOOK.ID.eq(id))
            .fetchOne()

    fun addNewBook(book: Book): Book {
        return writerContext.insertInto(Tables.BOOK)
            .set(
                Book(
                    name = book.name,
                    author = book.author,
                    pages = book.pages,
                    ratings = book.ratings,
                )
                    .toBookRecord
            )
            .returning()
            .fetchOne()!!
            .toBook
    }
}
```
So this is how we can achieve our target. and as earlier I discussed the problem, we can solve this by using returning, if you want to read after inserting or updating. Or, you can use your reader context separately.
xem tuổi hợp nhau để kết hôn
Tags: webdev, javascript, beginners, programming
Published: 2024-01-13 09:28:10

Mỗi con người chúng ta luôn tự hỏi rằng, làm sao để xem tuổi hợp? Không biết các tuổi hợp nhau là tuổi nào? Các tuổi khắc nhau là tuổi nào? Nắm bắt được những điều này, chúng tôi đã xây dựng nên bộ công cụ Xem Tuổi Hợp Nhau để giúp quý bạn có thể bói tuổi hợp của mình, biết được các tuổi hợp nhau trong cuộc sống, hôn nhân cũng như trong lĩnh vực kinh doanh.
Công cụ [xem tuổi hợp nhau để kết hôn](https://tuvi.vn/xem-tuoi-hop-nhau) được xây dựng thông qua ngày tháng năm sinh của quý bạn, đồng thời kết hợp với các phép luận giải về Thiên Can, Địa Chi, Ngũ Hành, Kinh Dịch,... để đưa ra kết quả nhanh nhất và chính xác nhất về vấn đề xem tuổi hợp nhau.
Xem thêm tại: [https://tuvi.vn/xem-tuoi-hop-nhau](https://tuvi.vn/xem-tuoi-hop-nhau)
My contribution to Hacktoberfest 2023
Tags: hack23contributor
Published: 2024-01-13 09:21:57

### Intro
{% embed https://github.com/martinez-hugo %}

### Highs and Lows
My 4 PRs :
- https://github.com/wolfi-dev/os/pull/7683
- https://github.com/amplication/amplication/pull/7300
- https://github.com/amplication/amplication/pull/7143
- https://github.com/amplication/amplication/pull/7128

### Growth
I love to contribute on OSS project
How to integrate Imagen2 AI in NodeJS
Published: 2024-01-13 09:08:24

Imagen is Google's new state-of-the-art image generation AI model. In this post, we'll look at how to integrate Imagen into a Node.js application to generate images from text prompts.

What's great about Imagen2 is that anyone can access it without needing to apply for trusted tester access. This means it's effectively generally available to the public already.

So you don't need to go through an application process or be approved to generate images with Imagen2. As long as you have a Google Cloud account and authentication set up, you can start building imaginative applications powered by this new state-of-the-art AI today.

We'll be using the Google Cloud AI Platform to access Imagen. So first we need to set up authentication and get an ID token:

```js
import { JWT } from "google-auth-library";
import dotenv from "dotenv";

dotenv.config({override: true});

const client = new JWT({
  keyFile: "./google.json",
  scopes: [
    "https://www.googleapis.com/auth/cloud-platform",
  ],  
});

const idToken = await client.authorize();
```

This uses a service account key file to get OAuth credentials and request an ID token we can use to call the Imagen API.

Next we set up the API endpoint and headers:

```js 
const API_ENDPOINT = "us-central1-aiplatform.googleapis.com";
const IMAGEN_URL = `https://${API_ENDPOINT}/v1/projects/${process.env.GOOGLE_KEY}/locations/us-central1/publishers/google/models/imagegeneration:predict`;


const headers = {
  Authorization: `Bearer ${await getIdToken()}`,
  "Content-Type": "application/json",
};
```

To generate an image, we need to send a JSON payload with the prompt text:

```js
const data = {
  instances: [
    { 
      prompt: "a cute baby sea otter",
    },
  ],
  parameters: {
    sampleCount: 1,
  },
};
```

We can then call the API and get the image data in Base64 encoding:

```js
const response = await fetch(IMAGEN_URL, {
  method: "POST",
  headers,
  body: JSON.stringify(data),  
});

const result = await response.json();

return Buffer.from(result?.predictions?[0]?.bytesBase64Encoded, "base64");
```

And that's it! With just a few lines of code we can now generate images from Imagen right inside our Node.js applications.

Some ideas for using this:

- Generative art 
- Automatically creating images for blog posts
- Making profile pictures
- And more!

Examples:

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


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


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

Full story generated by my service (Manga TV) here: https://mangatv.shop/story/dune-battle-fremens-vs-sarduckars


Let me know in the comments if you end up building something cool with the Imagen2 API.
The best Angular 17 Starter Project
Tags: webdev, angular, beginners, javascript
Published: 2024-01-13 09:04:52

This is an Angular 17 Starter with Material, Transloco, Jest, Compodoc, Docker Support, ESLint & Prettier.

**GitHub: https://github.com/wlucha/angular-starter**

✅ [Angular 17](https://angular.io/)
✅ [Angular Material](https://material.angular.io/)
✅ Unit Testing with [Jest](https://jestjs.io/)
✅ End-to-End Testing with [TestCafé](https://testcafe.io/)
✅ Internationalization with [Transloco](https://github.com/ngneat/transloco)
✅ Auto documentation with [Compodoc](https://compodoc.app/)
✅ Provide component examples with [Storybook](https://storybook.js.org/)
✅ Analyse your project with [source-map-explorer](https://www.npmjs.com/package/source-map-explorer)
✅ [Docker](https://www.docker.com/)
✅ [ESLint](https://eslint.org/)
✅ [Prettier](https://prettier.io/)
✅ [Commit Linting](https://github.com/conventional-changelog/commitlint)
✅ [AuditJS](https://www.npmjs.com/package/auditjs) Audit this application using Sonatype OSS Index
✅ Auto-generate a CHANGELOG with [auto-changelog](https://github.com/cookpete/auto-changelog)


## Deploy
[![Deploy](https://www.herokucdn.com/deploy/button.png)](https://heroku.com/deploy)


## Install / Development
```bash
# Clone the project
$ git clone https://github.com/wlucha/angular-starter
$ cd angular-starter

# Install dependencies
$ npm install

# Start server
$ npm run start

# Open in browser: http://localhost:4200
```

## Docker Deployment

```bash
# Build Docker image
$ docker build . -t angular-starter

# Run Docker Container
$ docker run -p 3000:80 angular-starter
```

## Docker Hub

https://hub.docker.com/r/wlucha/angular-starter

## Commands
```
- `npm run start` - Start the app
- `npm run lint` - Lint the project
- `npm run test` - Run unit tests
- `npm run build` - Build the project
- `npm run build:prod` - Build the project in production mode
- `npm run build:prod:stats` - Build the project in product mode with stats
- `npm run analyse` - Analyse bundle with [webpack-bundle-analyzer](https://github.com/webpack-contrib/webpack-bundle-analyzer)
- `npm run compodoc` - Generate [compodoc](https://github.com/compodoc/compodoc) documentation
- `npm run version` - Generate changelog
- `npm run prettier` - Format the whole project
- `npm run audit` - Audit this application using Sonatype OSS Index
```

## License

MIT License

Copyright (c) 2024 Wilfried Lucha

**GitHub: https://github.com/wlucha/angular-starter**
Ensuring Swift and Reliable Car Recovery Coventry with G60 Rescue Recovery
Published: 2024-01-13 08:31:24

In the bustling city of Coventry, where the roads are always alive with activity, the unexpected can happen at any moment. Car breakdowns and accidents are unfortunate events that can catch us off guard. This is where G60 Rescue Recovery steps in, providing unparalleled services of Car Recovery Coventry to ensure you're back on the road in no time.
Prompt and Efficient Car Recovery:
G60 Rescue Recovery takes pride in its prompt and efficient car recovery services. With a fleet of well-equipped recovery vehicles and a team of skilled professionals, we are committed to reaching your location swiftly. Whether you're stranded on the side of the road or in the heart of Coventry, our team is just a call away, ready to assist you 24/7.
Wide Range of Recovery Services:
Our comprehensive car recovery services go beyond mere breakdown assistance. We specialize in recovering vehicles from various situations, including accidents, flat tires, engine failures, and more. G60 Rescue Recovery is your reliable partner in handling unexpected automotive challenges, providing a one-stop solution for all your recovery needs.
Experienced and Trained Professionals:
At the heart of our service is a team of highly experienced and trained recovery professionals. Our experts are well-versed in the latest recovery techniques and use state-of-the-art equipment to ensure the safety of your vehicle during the recovery process. You can trust us to handle your car with the utmost care and precision.
Affordable and Transparent Pricing:
G60 Rescue Recovery believes in transparency when it comes to pricing. We offer competitive and affordable rates for our services, without compromising on the quality of assistance provided. Our pricing structure is straightforward, ensuring that you know exactly what to expect without any hidden costs.
Local Knowledge Advantage:
Being based in Coventry, G60 Rescue Recovery possesses invaluable local knowledge. This allows us to navigate the city efficiently, reaching your location with minimum delay. Our familiarity with the area ensures that we take the quickest and most effective routes to provide timely assistance.
Customer Satisfaction Guaranteed:
Our primary goal is customer satisfaction. We understand the stress and inconvenience a car breakdown can cause, and we strive to alleviate that burden by delivering top-notch recovery services. G60 Rescue Recovery is dedicated to not only meeting but exceeding your expectations, leaving you with peace of mind.
Conclusion:
In the fast-paced city of Coventry, G60 Rescue Recovery stands out as the go-to choice for reliable and swift car recovery services. With our experienced team, well-maintained fleet, and commitment to customer satisfaction, we ensure that you're never stranded for long. Trust G60 Rescue Recovery to be your dependable partner on the roads of Coventry, providing unparalleled car recovery services when you need them the most.

Visit Us: https://g60rescuerecovery.co.uk/2024/01/12/car-recovery-coventry/
The End Game to #30days50question Challenge
Tags: beginners, programming, learning, algorithms
Published: 2024-01-13 08:31:16

#Update #Day28 of #30days50question challenge. I can see the finish line right in front of me. Just 2 more questions to go. See you at the finish line.

🔥🔥💯Scoreboard: 48/50 questions ,28/30 days 
#coding #tech
ONBET - ONBET88 LINK TRUY CẬP ONBET TẶNG 100K
Published: 2024-01-13 08:30:26

Kham pha Onbet – Dia chi ca cuoc dinh dam 2023 Nha cai mang den nhung tro choi doi thuong truc tuyen hap dan chuyen nghiep mang tam dang cap quoc te
Dia Chi: 255 Pham Van Chieu Phuong 9 Go Vap Thanh pho Ho Chi Minh Viet Nam
Email: empyreanpeliel8393@gmail.com
Website: https://onbeton.net
Dien Thoai:  (+63 ) 9453074034
#onbet #onbet88 #nhacaiuytin_onbet #onbet88_casino
Social Links:

https://onbeton.net/
https://onbeton.net/gioi-thieu-onbet/
https://onbeton.net/bao-mat-onbet/
https://onbeton.net/huong-dan/
https://onbeton.net/the-thao/
https://onbeton.net/xo-so/
https://onbeton.net/casino/
https://onbeton.net/lien-he-onbet/
https://onbetonnet.blogspot.com/
https://wellfound.com/u/onbeton-net
https://www.facebook.com/onbetonnet/
https://twitter.com/onbetonnet
https://www.youtube.com/channel/UC7VibC6tvuNRPnQ-jddV-wg
https://scholar.google.com/citations?hl=vi&user=oICT8HoAAAAJ
https://www.pinterest.com/onbetonnet/
https://500px.com/p/onbetonnet
https://social.msdn.microsoft.com/Profile/onbetonnet
https://social.technet.microsoft.com/Profile/onbetonnet
https://soundcloud.com/onbetonnet
https://draft.blogger.com/profile/00582440215687644621
https://twitback.com/onbetonnet
https://favinks.com/profile/onbetonnet
https://www.blogger.com/profile/00582440215687644621
https://onbetonnet.blogspot.com/
https://www.reddit.com/user/onbetonnet
https://gravatar.com/empyreanpeliel8393
https://medium.com/@onbetonnet/about
https://www.flickr.com/people/onbetonnet/
https://www.tumblr.com/onbetonnet
https://empyreanpeliel8393.wixsite.com/onbetonnet
https://onbetonnet.weebly.com/
https://wellfound.com/u/onbeton-net
What if ...?
Tags: ai, mobile, development, api
Published: 2024-01-13 08:24:34

## Preamble

After witnessing the Rabbit R1 presentation at CES 2024, I couldn't help but question the necessity of a new device when our current smartphones boast impressive capabilities. While the R1 showcased less powerful hardware compared to modern phones, its software left a lasting impression. 

It made me ponder why mobile developers, over the extensive history of Android and iOS, haven't presented similarly innovative concepts. With this in mind, I'd like to share an idea that has been brewing.

## Idea

What if collectively, all mobile and web developers unite to create a standardized interface for AI? Imagine a single file, a straightforward JSON, where developers instruct AI on how to interact with their respective applications. By implementing just one method to retrieve this JSON, we could enable seamless interaction between AI and apps.

I acknowledge that this idea is in its early stages and might have challenges, but I believe it holds merit. I welcome your thoughts and any potential enhancements to this concept.
Getting Started with AWS
Tags: aws, certification, learning, cloud
Published: 2024-01-13 08:19:14

"Excited to announce that I've successfully completed the 'Getting Started with AWS' course through Simplilearn! 🚀 Grateful for the knowledge gained and looking forward to applying it in real-world scenarios. Ready to embark on the cloud journey with AWS! 💻🌐 #AWS #CloudComputing #Simplilearn #CertificationAchieved"
Amazon Web Services (AWS)AWS CanadaSimplilearn
#Upskilling #CloudComputing #Certification #JobReady #SkillUpBySimplilearn"
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ztmr55oicanefurc32c8.jpg)
The SOLID Principles in C#
Tags: csharp
Published: 2024-01-13 08:17:40

The SOLID principles are a set of design principles for software development that aim to make software systems more maintainable, flexible, and easier to understand. These principles were coined by Robert C. Martin (also known as Uncle Bob) and have become a widely adopted set of guidelines for writing clean and robust code.

C# is a versatile programming language that allows developers to implement the SOLID principles effectively. Let's take a look at each principle and see how it can be applied to C# programming:

1. Single Responsibility Principle (SRP): This principle states that a class should have a single responsibility. In C#, it's important to define classes that focus on one task, allowing for better organization and maintenance of code. By following SRP, we avoid creating classes that are bloated with multiple responsibilities.

2. Open-Closed Principle (OCP): The OCP principle suggests that software entities (classes, modules, functions, etc.) should be open for extension but closed for modification. In C#, we can achieve this by using interfaces, abstractions, and inheritance. By adhering to OCP, we can extend the behavior of our code without modifying the existing implementation, promoting code reuse and reducing the risk of introducing bugs.

3. Liskov Substitution Principle (LSP): LSP emphasizes that derived types must be substitutable for their base types. In C#, this can be achieved by carefully designing class hierarchies and ensuring that derived classes do not violate the contracts defined by their base classes or interfaces. By following LSP, we can write code that relies on abstractions rather than specific implementations, making our code more flexible and allowing for easier composition and testing.

4. Interface Segregation Principle (ISP): ISP states that clients should not be forced to depend on interfaces they do not use. In C#, we can achieve this by segregating interfaces into smaller and more specialized interfaces. This allows clients to depend only on the interfaces they need, preventing them from being burdened with unnecessary dependencies.

5. Dependency Inversion Principle (DIP): DIP suggests that high-level modules should not depend on low-level modules, both should depend on abstractions. In C#, we can achieve this by using inversion of control (IoC) containers and dependency injection (DI). By adhering to DIP, we promote loose coupling between components, making it easier to replace or swap dependencies with minimal changes to our code.

By applying the SOLID principles in C#, developers can create code that is easier to understand, maintain, and extend. These principles promote good software design practices, allowing for cleaner and more robust codebases. So, if you want to write better C# code, make sure to keep the SOLID principles in mind!
maithanhthang
Published: 2024-01-13 08:15:43

Mai Thanh Thắng, người sáng lập và giám đốc điều hành của Hitgame.live, đã tạo nên một trang web game trực tuyến độc đáo và đầy tham vọng. Với sự đam mê mãnh liệt về game và tầm nhìn sáng tạo, anh đã xây dựng nền tảng này nhằm mang đến cho người chơi những trải nghiệm tuyệt vời và đa dạng.Mai Thanh Thắng không chỉ đơn thuần là một người sáng lập, mà còn là một nhà lãnh đạo tài ba và tận tâm. Anh đã đặt nền móng cho Hitgame.live với mục tiêu tạo ra một môi trường chơi game an toàn, công bằng và hấp dẫn cho người dùng.#maithanhthang #thanhthanghitgame #adminhitgamelive #ceohitgameliveThông tin chi tiết:Email:  maithanhthangceohitclub@gmail.comĐịa chỉ: 45 P. Nguyễn Quốc Trị, Trung Hoà, Cầu Giấy, Hà Nội, Vietnam [https://hitgame.live/ceo-hitclub/](https://hitgame.live/ceo-hitclub/)
List Azure blobs based on the creation date property
Published: 2024-01-13 08:09:32

This article provides you with a sample code snippet to list all blobs created in the past X days using Azure Python SDK.

```python
from azure.identity import DefaultAzureCredential
from azure.storage.blob import BlobServiceClient
import pytz
from datetime import datetime, timedelta

CREDENTIAL = DefaultAzureCredential()
ACCOUNT_NAME = 'yourstorageaccountname'
CONTAINER_NAME = 'yourcontainername'
RETENTION_IN_DAY = 3

blob_service_client = BlobServiceClient(
    account_url = 'https://' + ACCOUNT_NAME + '.blob.core.windows.net/',
    credential=CREDENTIAL
)  

past_date = (datetime.now() - timedelta(days=RETENTION_IN_DAY)).replace(tzinfo=pytz.utc)
container_client = blob_service_client.get_container_client(container=CONTAINER_NAME)
for blob in container_client.list_blobs():
    blob_creation_time = blob.creation_time.replace(tzinfo=pytz.utc)
    if blob_creation_time > past_date:
          print(blob.name)
```