teleren/devto huggingface dataset:
Đăng Ký Thi A1 Tại HCM
Tags: hocbanglaixemay, dangkythia1, thibanga1, hoclaixea1tphcm
Published: 2024-07-11 06:57:57

Trung tâm Thi bằng lái xe A1 là một trong những trường dạy lái xe hàng đầu tại TPHCM chuyên: Tuyển sinh - Đào tạo - Sát hạch GPLX Hạng A1, A2. Phương châm của chúng tôi đó chính là "UY TÍN TẠO NÊN THƯƠNG HIỆU", chúng tôi sẽ luôn nỗ lực không ngừng nghỉ để có thể mang đến cho học viên những trải nghiệm tốt nhất, đạt kết quả như mong muốn trong ky thi lấy bằng. Đội ngũ giáo viên tại trường giàu kinh nghiệm, chuyên môn cao và luôn tận tâm với học viên, có khả năng truyền đạt một cách dễ hiểu, luôn sẵn sàng giải đáp mọi thắc mắc của học viên. Tại đây, lịch học được sắp xếp linh động, phù hợp với nhiều đối tượng học viên, bất kỳ ai cũng có thể sắp xếp thời gian tham gia khóa học. Điểm đặc biêt là trung tâm thu mức học phí trọn gói, cam kết sẽ không phát sinh bất kỳ chi phí nào khác cho tới khi có bằng. Chúng tôi đầu tư mạnh mẽ vào các trang thiết bị hiện đại, tiện nghi, bao gồm các phòng học lý thuyết với đầy đủ phương tiện giảng dạy như máy chiếu, dàn máy tính,... Bên cạnh đó, trung tâm còn có các sân tập lái rộng rãi, được thi thử miễn phí tại sân sát hạch. Lộ trình học được tổ chức chặt chẽ, khoa học, kỳ thi diễn ra theo đúng lịch, đúng quy định của Sở. Khi đến đây, bạn sẽ được hỗ trợ một cách tận tình nhất từ bước ghi danh cho đến khi nhận được bằng. Văn phòng tuyển sinh của trường sẽ hỗ trợ tư vấn, giải đáp thắc mắc và hướng dẫn chuẩn bị thủ tục đăng ký thi để đảm bảo học viên không gặp phải bất kỳ khó khăn nào trong suốt khóa học. Trung tâm sẽ luôn đặt quyền lợi và sự an toàn của học viên lên hàng đầu. Sứ mệnh của chúng tôi chính là mang đến cho học viên dịch vụ đào tạo chất lượng cao, trung tâm sẽ không ngừng cải tiến và nâng cao chất lượng giảng dạy. Hãy tham gia đăng ký khóa học lái xe máy tại TPHCM ngay hôm nay để trải nghiệm dịch vụ với chất lượng tốt nhất mà chúng tôi mang lại nhé. [Trung tâm thi bằng lái xe A1](https://thibanglaixea1.vn/lien-he/)
Day 10 of 100 Days of Code
Tags: 100daysofcode, webdev, javascript, beginners
Published: 2024-07-11 06:59:16

Wed, July 10, 2024

Nicely mixed outcomes today. While end-of-day posts are more coding-relevant, I'd like more prospective morning posts to jump-start the day, but I'm not yet sure how to achieve that.

Good news is that my confidence and consistency are building, and today there were many simulated websites to problem solve and think through, and I believe experience attacking problems is a great habit, as this is where I learn to be eager and hunt for targets and think through options. Also, the simulations are pretty complete for this level of the Full Stack Engineer program, which I'm showing at 10% on my Codecademy dashboard.
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/lhs6qin0e6w25ivf8olb.png)

Today's lesson was more than anticipated. I pushed to get through most of Secondary Navigation (breadcrumbs) topic, but didn't get to the last topic, Wireframing, and there are two projects remaining in this lesson. I'm going to see how early I can complete these assignments tomorrow before moving on to the last lesson of the course, Making Responsive Websites and I'm aiming to crush this first course assessments Sat/Sun.
AJCDN cloud server
Tags: cloud, cloudcomputing, linux
Published: 2024-07-11 07:01:17

AJCDN全球服务器：打破边界，连接世界


🏆 海外公司——不限内容——免实名——免备案 👍


🔒反溯源系统             👍高防CDN

📈量化策略               ☁️云服务器

📌大带宽服务器           🎭伪造源服务器

🚀高防服务器             显卡服务器

✈️海外专线服务器           🎮游戏盾

🏠国内普通服务器          ✨国内免备案服务器

🏆开25端口的服务器.       ☄️抗投诉服务器

😍云服务代充              🌐站群服务器

🔍算力服务器              🔄转发服务器

▶️直播推拉流服务           各国拨号服务器

☄️Kali服务器系统          🚀高防IP转发

🌐Web应用防火墙          🔒渗透测试服务

🤖机器人定制             ⚙️源码开发

🔗网站搭建               📱APP开发


欢迎咨询TG：@ajcdn019

官网：www.ajcdn.com

更多产品：https://doc.ajcdn.com/
Where C and C++ Are Used
Tags: webdev, beginners, programming, learning
Published: 2024-07-11 07:14:15

These are lower level languages.

What do I mean by lower level languages? This means they are closer to the CPU. This means that they basically run really really fast.

So, people use C and C++ to create either little apps that control devices like watches or thermostats.

Devices that don't have a lot of horsepower, or a lot CPU. So, you need a very fast and efficiently language. So, when you are writing C or C++, you are writing for those kind of devices. You may be writing a gaming engine like the Unreal engine.

These languages are not great for freelancers. They are for people who want to work for a company. 

They are used to build software that are not client facing.

This means that you will be writing software that people won't be interacting with. There may be exceptions when you write apps like Adobe Photoshop in C++ but you have to go work at Adobe.

C and C++, you will be working for big companies for highly-performant apps.

---

P.S. [Follow me on X](https://x.com/thekarlesi), for more tech contents!
The Fino Partners
Tags: thefinopartners, accoutingservicesinusa, bookkeepingservicesinusa
Published: 2024-07-11 07:15:48

**[The Fino Partners](https://thefinopartners.com/)** excels in Bookkeeping Services and Financial Accounting USA, Financial Reporting Services, Accounts Payable Services USA, and outsourced accounting services. With 15+ years of expertise, we enhance financial efficiency. Our services include audit, tax advice, and robust data security, ensuring comprehensive solutions for your business needs.
How to Display Dates Easily ? #eg9
Tags: sql, development, esproc, puzzle
Published: 2024-07-11 07:17:42

We have a database table TBLDATES as follows:

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

We are trying to group the dates by year and month, and in each group, separate continuous dates with the hyphen and the discontinuous dates with the comma. Below is the desired result:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7cvnu71j0xywvbub49qa.png)
The result table is ordered by dates which are grouped by year and month. Continuous dates are connected by the hyphen (-) and discontinuous ones are connected by the comma.

SQL in MySQL:

```
with_counter AS (

  SELECT

    *

  , CASE WHEN LAG(DATES) OVER(PARTITION BY MONTH(DATES) ORDER BY DATES) + 1 < DATES 

           OR LAG(DATES) OVER(PARTITION BY MONTH(DATES) ORDER BY DATES) IS NULL

      THEN 1

      ELSE 0

    END AS counter

  FROM TBLDATES

)

,

with_session AS (

  SELECT

    *

  , SUM(counter) OVER(ORDER BY MONTH(DATES), DAY(DATES)) AS session

  FROM with_counter

)

 

SELECT

    CAST(MIN(DAY(DATES)) AS VARCHAR(2)) ||CASE WHEN COUNT(*) = 1

      THEN ''

      ELSE '-'||CAST(MAX(DAY(DATES)) AS VARCHAR(2))

    END

  AS daylit

, DAY(MIN(DATES)) AS d

, MONTH(MIN(DATES)) AS mn

, TO_CHAR(MIN(DATES),'Month') AS mth

, YEAR(MIN(DATES)) AS yr

FROM with_session

GROUP BY session

ORDER BY 3,2;
```
The task is not difficult. We can first group dates by year and month and then dates in each month by whether they are continuous or not (a date is continuous if the result of subtracting the previous date from it is 1, otherwise it isn’t). The dates in August, for instance, can be divided into three groups. The first group contains 8, the second contains 10, 11 and 12, and the third contains 16. Then we find the subgroup containing more than one number (which is the second group for August), join numbers with the hyphen (-), and connect members in the group by comma. The problem is that SQL can only perform equi-grouping by a specific column and that does not support grouping by continuous conditions. The language’s solution is rather tricky by inventing a specific column and performing grouping by it.

It is easy and simple to do it with the open-source esProc SPL:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1h89se6r28j67m6tx3xe.png)
SPL supports grouping by the continuous conditions. It is convenient to perform such a grouping operation (like this task) with SPL.
Major Update of VidAU.AI: Revolutionize Video Creation with One-Click URL Integration!
Tags: ai, videocreation, contentmarketing, free
Published: 2024-07-11 07:20:26

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

Since the launch of [VidAU.AI](https://www.vidau.ai/), it has received a wave of praises at home and abroad. As the industry's first tool that generates videos from e-commerce product links, VidAU.AI uses a rich digital human library and 30+ languages to generate videos within minutes, drastically cutting down costs and enhancing productivity.

After a full year of AIGC's computing power accumulation experience, all colleagues in the AI product line have devoted themselves to the game, deeply exploring the needs of the overseas short drama and cross-border e-commerce industries. VidAU.AI has finally ushered in an update of major functions.

Powered by AIGC with advanced functions, VidAU.AI can generate videos with one click from product links, thus triggering an exposure explosion around the globe. 


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ij8qgkkt7e71bso9egkv.png)
 
One-Click Video Generation: Import product links from platforms like Amazon, Shopify, and Etsy into VidAU.AI to generate videos within minutes. This user-friendly feature simplifies the video creation process, making it accessible to all businesses.

Hot Item Data Models: VidAU.AI collects essential data from URLs and combines it with training models of top-performing social video ads. This increases the chances of your videos becoming viral hits, enhancing your marketing efforts.

Diverse Digital Avatars: With a library of over 20 digital human avatars, VidAU.AI caters to various demographics, making your video content more engaging and relatable.

Multi-language Support: To support global marketing efforts, VidAU.AI offers translation in over 30 languages, breaking down language barriers and enabling effective localized marketing.

AI Face-Changing: Easily change faces in videos without professional skills, allowing products to be presented in diverse cultural contexts. 

AI Voice Translation: VidAU.AI provides automatic translation and dubbing, ensuring your videos resonate with audiences worldwide.

[VidAU.AI](https://app.vidau.ai/site/register?invite_code=sepsES73qW)’s latest feature update overcomes industry technical limitations, enabling more global companies to utilize this versatile and user-friendly AI video tool. This not only boosts productivity but also significantly lowers video production costs, fueling innovation and driving business growth worldwide!

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/om0hzb8hm44pjdchj9zu.png)
TRY VidAU.AI NOW:

VidAU AI Video & Audio Creator, Your Global Video Localization AI Power!
100 Days to Cloud Mastery: Launching My Cloud Odyssey!
Tags: aws, programming, 100daysofcode, cloudskills
Published: 2024-07-11 07:26:52

Hey there, tech enthusiasts! Buckle up, because I'm embarking on a 100-day adventure to conquer the vast and ever-evolving realm of cloud computing! This isn't your average sightseeing tour. We're talking hands-on exploration, building projects, and documenting every step of the way.

Three giants stand before us: the mighty Amazon Web Services (AWS), the innovative Google Cloud Platform (GCP), and the versatile DigitalOcean. Each offers a treasure trove of tools and services, and I'm determined to unlock their potential.

But why 100 days? Why this audacious quest? Simple. The cloud landscape is a dynamic beast, constantly evolving and demanding continuous learning. This journey is a commitment to push my boundaries, solidify my cloud foundations, and emerge a battle-tested cloud warrior (with hopefully fewer server meltdowns than victories!).

Day 1: Conquering Google Cloud Arcade!

Today was a day of conquering mini-challenges on the Google Cloud Arcade – a playground for aspiring cloud architects like myself.

First up: Traffic Management with Cloud Run.  Imagine a website handling a sudden surge of visitors. With Cloud Run, I learned how to scale applications seamlessly, ensuring a smooth experience  for everyone. Think of it as building in auto-scaling superpowers!

Next, I delved into the world of Flutter development on GCP. This futuristic framework allows building beautiful cross-platform apps in record time.  Let's just say, I'm one step closer to crafting that killer mobile app idea bouncing around in my head.

Finally, I explored the fiery realm of serverless applications with Firebase.  Gone are the days of managing servers – serverless lets me focus on the app logic, leaving the infrastructure headaches behind. It's like having a dedicated server crew working tirelessly in the background, freeing me to unleash my coding creativity.

The Journey Begins...

This is just the first step on my 100-day cloud odyssey. Each day will bring new challenges, exciting discoveries, and hopefully, a few epic cloud-related fails (because let's face it, learning happens best through both victories and lessons learned).

So, stay tuned!  I'll be sharing my experiences, code snippets, and project breakdowns here.

Who's coming along?

Whether you're a seasoned cloud pro or a curious newbie like me, join me on this adventure!  Let's build cool projects, share knowledge, and conquer the cloud together! Feel free to comment below with your own cloud goals or any advice you have for this aspiring cloud architect.

Together, let's make these 100 days epic!
CoderByte Interview Question
Tags: beginners, tutorial, algorithms, php
Published: 2024-07-11 07:28:56

......the question was something like this.......

**Question**: write a function that takes a string argument. The numerals used are I for 1, V for 5, X for 10, I for 50, C for 100, D for 500, M for 1000. Given IIIXXXVVVV is 200. Should return CC.


Solution:
```

function rommanToIntAndBack($s){
    $numerals = [
        'M' => 1000,'D' => 500,'C' => 100, 'L' => 50, 'X' => 10, 'V' => 5,'I' => 1, 
    ];

    $total = 0;
    
    for ($i = 0; $i < strlen($s); $i++) {
        $total += $numerals[$s[$i]];
    }

    $roman = '';
    foreach($numerals as $key => $val){
        while ($total >= $val) {
            $total -= $val;
            $roman .= $key;
        }
    }
    return $roman;
}
rommanToIntAndBack('IIIXXXVVVV')
```

## Explanation:

**Associative Array (HashMap):**
- The $numerals array is an associative array that maps Roman numeral characters to their corresponding integer values.
- This array provides constant time complexity 𝑂(1) for lookups, which is efficient for converting characters to their integer values.

## Algorithm Analysis

**Part 1: Roman to Integer Conversion**

**Algorithm:**
1. Initialize $total to 0.
2. Iterate through each character in the string $s:
3. Look up the integer value of the character from the $numerals array.
4. add the current value to $total.

**Time Complexity:**
The conversion from Roman to integer involves a single pass through the string, so the time complexity is O(n), where n is the length of the string.

**Space Complexity:**
The space complexity is O(1) as no additional space proportional to the input size is used (only a few variables are used).

**Part 2: Integer to Roman Conversion**

**Algorithm:**
1. Initialize an empty string $roman.
2. Iterate through the $numerals array:
3. For each numeral, while the integer value can be subtracted from $total, subtract it and append the numeral character to $roman.

**Time Complexity:**
The conversion from integer to Roman numerals involves iterating through a fixed set of numeral values and repeatedly subtracting them from $total.
In the worst case, the time complexity can be considered O(n), where 
n is the value of the integer. However, given the fixed number of Roman numeral symbols, it is more practical to consider it as O(1).

**Space Complexity:**
The space complexity is O(1) for the numerical operations and O(n) for the output string, where n is the length of the resulting Roman numeral string.
Is Bitcoin mining illegal?
Tags: bitcoin, cryptocurrency, asic, bitcoinmining
Published: 2024-07-11 07:35:43

**[Bitcoin ](https://asicmarketplace.com/blog/bitcoin-mining-myths-busted/)**is illegal in many countries. It is not valid. Some countries, including China, Bangladesh and Morocco have banned Bitcoins. In addition, Bitcoin is not regulated or legalized in most countries. In these countries, however, anyone can buy, sell or mine Bitcoin and use it if they wish.

The U.S. IRS also considers Bitcoin and cryptocurrency as digital assets like stocks and trading. The IRS has regulated its usage and now imposed taxes based on the length of time and how one uses the cryptocurrency. This marks the regulation and affirmation that Bitcoin is not illegal in all countries.
GSoC’24(CircuitVerse) Week 5 & 6
Published: 2024-07-11 07:35:59

Typescript Integration and Migration of JQuery to Vue's reactives was the focus in week 5, and in week 6 I had exams so not much was done just some extensions to week 5 work

### Some Typescript Integration and Migration of JQuery to Vue's reactives are :-

- plotArea
- Timing Diagram panel
- app.ts,
- arrayHelper.ts,
- backgroundArea.ts,
- data.ts,
- moduleSetup.ts,
- sequential.ts
- verilogHelpers.ts

### PlotArea and Timing Diagram Panel

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

plotArea.js file was converted to typescript which allowed me to created interfaces and types for the plotArea and moved all the DOM manipulation into the vue's reactives under Timing diagram panel component along with all the listeners.

Inside the Timing diagram component typescript was integrated and vue's reactives which were migrated from the plotArea file.

A new pinia store timingDiagramStore was implemented to maintain the data flow for the timing diagram.

### Typescript Integration in smaller files

some smaller files that were previously in javascript have been converted to typescript as the changes were very minimal, I committed them in a single branch only.

### PR Links

- PlotArea and Timing Diagram panel - https://github.com/CircuitVerse/cv-frontend-vue/pull/329

- ts integration in some files - https://github.com/CircuitVerse/cv-frontend-vue/pull/330

Next weeks i will be focusing on finishing all my integrations for vue + typescript and begin with the mobile version.
Javascript mixin
Published: 2024-07-11 07:38:11

---
title: Javascript mixin
published: true
description: 
tags: 
# cover_image: https://direct_url_to_image.jpg
# Use a ratio of 100:42 for best results.
# published_at: 2024-07-11 07:25 +0000
---

I'm an old PHP developer and I like traits.

I have to interact with a bank, the class in Bank that does login and add the traits to get and  commit requests.

```php
trait GetRequest {
   public function getRequest() {
      ...
   }
}
trait CommitRequest {
   public function commitRequest($data) {
      ...
   }
}
class Bank {
   use GetRequest;
   use CommitRequest;
   public function login() {
       ...
   } 
}
```

So I can split class traits in different parts.

I had to work on a Javascript project.
Ahhhh!!! The traits does not exists, what can I do?

Use the mixin

```javascript

class Bank {
   login() {
       ...
   } 
}
let GetRequest = {
   getRequest() {
      ...
   }
}
let CommitRequest {
   commitRequest($data) {
      ...
   }
}
Object.assign(Bank.prototype, GetRequest);
Object.assign(Bank.prototype, CommitRequest);

```
What is the capability of GPT-5?
Published: 2024-07-11 07:41:38

GPT-5 is the latest in OpenAI’s Generative Pre-trained Transformer models, offering major advancements in natural language processing. This model is expected to understand and generate text more like humans, transforming how we interact with machines and automating many language-based tasks.

These are the [GPT5](https://www.ongraph.com/gpt5/)'s ability :

- Larger context window
- More multimodality
- Better reasoning
- Trained on larger data sets for accurate and reliable results
Integrating Redis, MySQL, Kafka, Logstash, Elasticsearch, TiDB, and CloudCanal
Tags: mysql, kafka, redis, cloudcanal
Published: 2024-07-11 07:58:57

## **Here’s how these technologies can work together:**


**Data Pipeline Architecture:**

- **MySQL:** Primary source of structured data.
- **TiDB:** Distributed SQL database compatible with MySQL, used for scalability and high availability.
- **Kafka:** Messaging system for real-time data streaming.
- **Logstash:** Data processing pipeline tool that ingests data from various sources and sends it to various destinations.
- **Redis:** Caching layer for fast access to frequently accessed data.
- **Elasticsearch:** Search and analytics engine for querying large volumes of data.
- **CloudCanal:** Data integration tool used to synchronize data from various sources like MySQL to TiDB, Kafka, Redis, and Elasticsearch.



---


## **Workflow Details:**

**1. Data Ingestion:**

- Applications save data in MySQL.
- CloudCanal is used to sync data from MySQL to TiDB and Kafka.


**2. Data Streaming and Processing:**

**Kafka:**
- Kafka ingests data from MySQL via CloudCanal and broadcasts it to various topics.
- Topics contain streams of data events that can be processed by various consumers.

**Logstash:**
- Logstash acts as a Kafka consumer, processes data from Kafka, and sends it to various outputs such as Elasticsearch and Redis.


**3. Data Storage and Retrieval:**

**TiDB:**
- TiDB serves as a scalable and highly available database solution that can handle large volumes of data.
- TiDB is MySQL-compatible, making integration and migration from MySQL straightforward.

**Redis:**
- Redis is used as a caching layer for frequently accessed data from MySQL or processed events from Kafka.
- Applications can query Redis first before querying MySQL to speed up data retrieval.

**Elasticsearch:**
- Logstash can ingest data from Kafka and send it to Elasticsearch.
- Elasticsearch indexes the data for fast search and analytics.
- Applications can query Elasticsearch for advanced search capabilities and real-time analytics.


---



## **Example Data Flow:**


**Data Entry in MySQL:**
- A user inserts a new record into the MySQL database.
- CloudCanal monitors changes in MySQL and sends events to TiDB and Kafka topics.

**Real-Time Processing:**
- Kafka broadcasts the event to a topic.
- Logstash acts as a Kafka consumer, processes the event, and sends the parsed data to Elasticsearch for indexing.
- Simultaneously, Redis is updated to cache the new data.

**Data Access:**
- The application checks the Redis cache for the data.
- If the data is not in the cache, it queries MySQL or TiDB.
- For complex queries and analytics, the application queries Elasticsearch.



_This is just for my notes. CTTO_
NFT Calendar Development | An Introductory Guide
Tags: blockchain, web3, nft, development
Published: 2024-07-11 07:59:30

With the increasing popularity of non-fungible tokens (NFTs), creators are introducing an array of NFTs. Yet, it’s becoming challenging for investors to keep track of multiple NFT drops. An NFT calendar addresses this challenge for users and brings all the NFT airdrop events in one place. These calendars provide comprehensive information regarding upcoming NFT events, drops, and projects.
Delve into this blog to explore NFT calendars, their advantages, features, and more, in addition to our expertise in [NFT development](https://blockchain.oodles.io/nft-development-services/?utm_source=devto).

Blog Link: https://blockchain.oodles.io/blog/nft-calendar-development/?utm_source=devto
Programming analogies:- Conditional Statements
Tags: learning, webdev
Published: 2024-07-11 08:02:48

## Conditional Statements: 

Imagine you're a robot programmed to make decisions based on weather. If it's raining, you grab an umbrella. If it's sunny, you wear sunglasses. If it's snowing, you grab a snow shovel. You're like a human if-else statement!


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

You can also follow me on [X](https://x.com/learn_with_san) for Guides, Tips & Tricks.