teleren/devto huggingface dataset:
Creating an Empty Orphan Branch in Git
Tags: git, github, webdev, programming
Published: 2024-03-18 05:30:03

In the world of software development, starting a new project often means creating a fresh branch from the main codebase. However, sometimes, you might want to start from scratch without carrying over any history or code from the main branch. This is where Git's "orphan" branches come into play. In this article, we'll explore how to create an empty orphan branch in Git, providing you with a clean slate for your new projects or ideas.

### What is an Orphan Branch?

An orphan branch in Git is a branch that has no parent branch, meaning it doesn't contain any of the history from the main branch. This feature is particularly useful when you want to start a new project or test out new ideas without the baggage of the existing codebase.

### How to Create an Orphan Branch

Creating an orphan branch is straightforward. Here's a step-by-step guide:

1. **Create the Orphan Branch**: Use the command 

```
git checkout --orphan <branch_name>
```
 to create a new orphan branch. Replace `<branch_name>` with the name of your new branch.

2. **Clean the Working Directory**: Execute 
```
git rm -rf .
``` 
to remove all files from the current working directory. This ensures that the new branch starts completely empty.

3. **Add New Files**: Now, you can add any new files you want to include in your project.

4. **Commit the Changes**: Commit the new files to the repository with `git commit -m "Initial commit"`.

5. **Push the New Branch**: Make the new branch available on the remote repository by using `git push -u origin <branch_name>`.

### Conclusion

In conclusion, creating an empty orphan branch in Git is a powerful tool for developers looking to start a new project from scratch. By leveraging the "orphan" feature, you can ensure that your new project is completely independent of the main branch, allowing for a fresh start without the baggage of previous code or history. Whether you're embarking on a new project or testing out a new idea, an orphan branch offers a clean, isolated environment to work in.

So, the next time you're starting a new project, consider using Git's orphan branches to give yourself a fresh start. Happy coding!
New Bottom Bar - Flutter News 2024 #11 ʚїɞ
Tags: flutter, news, dart, discuss
Published: 2024-03-18 05:28:13

As a freetime Flutter developer it often comes to my mind:
**Did I missed some important Flutter news?**

Starting 2024 I want to stay up to date and want to give you a monday report every week ordered by importance.

---

## Mayor Flutter updates:

> There are no mayor flutter updates this week!
-> Currently [Flutter Version Valentine’s-Day-adjacent 3.19](https://docs.flutter.dev/release/whats-new)

## New Flutter Videos:

> The [Flutter YouTube Channel](https://youtube.com/@flutterdev?si=RZyl1nLVnSt373Vu) did not post any new Videos this week!

---

### New Dev-Posts

{% embed https://dev.to/akashpattnaik/the-new-bottombar-in-flutter-ifm %}

{% embed https://dev.to/codeparrot/react-native-and-flutter-a-developers-dilemma-214d %}

{% embed https://dev.to/erolkaftanoglu/hello-everyone-p7c %}

{% embed https://dev.to/chaoming/adding-location-and-device-type-features-in-flutter-apps-with-visitorapi-25k0 %}

{% embed https://dev.to/shahinalam02/getcli-unhandled-exception-on-flutter-project-4i0j %}


---

### New Medium-Posts

{% embed https://medium.com/@theshivamlko/enhance-your-dart-skills-understanding-the-factory-design-pattern-f32001827f49 %}

{% embed https://medium.com/@ren0112ngzk/how-to-separate-flavors-in-firebase-for-flutter-android-version-139a0aed0869 %}

{% embed https://medium.com/@osamaasif/how-to-use-the-flutter-cart-package-e6fad6db2fef %}

{% embed https://medium.com/@xemexpress/%E9%BB%9E%E6%A8%A3-flutter-%E5%81%9A-responsive-layout-b0d48a644b01 %}

{% embed https://medium.com/@ahmedmahdi.email/how-hard-is-it-to-make-a-button-in-go-as-a-flutter-developer-and-network-engineer-2be473f50ca8 %}


---

Last Flutter News: [Flutter News 2024 #10 ʚїɞ](https://dev.to/lucianojung/series/26008)
_Did I miss any recent updates? Feel free to share any important news I might have overlooked!_
Why ReactJS is the Popular Choice for Web App Development?
Tags: webdev, react
Published: 2024-03-18 05:24:59

ReactJS is a JavaScript-based library used for developing user interfaces (UI). It streamlines the development process by allowing developers to reuse components, thereby enhancing efficiency. Its appeal lies in facilitating the creation of visually appealing interfaces while employing an optimized coding language.

ReactJS boasts lightweight APIs supported by robust performance capabilities, contributing to swift and seamless development workflows. Noteworthy advantages of ReactJS web development include rapid performance, ease of comprehension, and scalability.

Shiv Technolabs being the best [ReactJS development company](https://shivlab.com/react-js-development/), our team of experienced ReactJS developers is dedicated to delivering high-quality, scalable, and innovative applications tailored to meet your unique business needs.
Unlocking a Healthier You, A Journey with Vibesheen
Published: 2024-03-18 05:20:38

In the fast-paced world we live in, prioritizing health and fitness can sometimes feel like a daunting task. Amidst the hustle and bustle, it's easy to neglect the very essence of what keeps us moving: our well-being. That's where [Vibesheen ](https://vibesheen.com)comes into play, a beacon of health, fitness, and overall wellness, designed to guide and inspire every step of your journey toward a healthier you.

At [Vibesheen](https://vibesheen.com), we believe in the power of knowledge, motivation, and community. Our platform is tailored to cater to the diverse needs of individuals at various stages of their fitness journey. Whether you're a beginner taking your first steps, or an enthusiast looking to level up, we have something for everyone.

What Sets [Vibesheen ](https://vibesheen.com)Apart?

    Personalized Guidance: Understanding that each body is unique, [Vibesheen ](https://vibesheen.com)offers personalized workout plans and nutrition advice tailored to meet your specific goals and needs.

    Science-Backed Information: Our content is crafted by experts in the field of health and fitness, ensuring you receive reliable, research-based information to guide your decisions.

    Community Support: At [Vibesheen](https://vibesheen.com), you're never alone. Join a community of like-minded individuals who share your passion for health and wellness. Exchange stories, tips, and encouragement to keep each other motivated.

    Innovative Tools and Resources: From interactive workout guides to nutritional planners, [Vibesheen ](https://vibesheen.com)equips you with the tools necessary to track your progress and stay on course.

Embark on Your Health Journey Today

A healthier you is not just about hitting the gym or following a diet. It's about making sustainable lifestyle changes that nourish your body, mind, and soul. With [Vibesheen](https://vibesheen.com), you have a partner on this journey, providing you with the knowledge, tools, and support to unlock your full potential.

Dive deeper into what [Vibesheen ](https://vibesheen.com)has to offer by visiting our site. Let's embark on this journey together, because when it comes to your health, every step counts.
Um pouco sobre mim, começando no Dev.to
Tags: beginners, productivity, java, braziliandevs
Published: 2024-03-18 05:01:13


Olá! Meu nome é Sandy Pirôpo e atualmente estou estudando Spring e React. Faz um pouco mais de um ano que comecei a me aventurar na programação, apesar de ser um sonho de infância. Java é, sem dúvida, minha linguagem favorita (galera, sem julgamentos). Apesar de minha grande vontade de me tornar uma desenvolvedora back-end usando Java, também gosto muito de explorar o front-end.

Pretendo usar esta plataforma para compartilhar meus conhecimentos com vocês, como se fosse um diário, o que pode ajudar outras pessoas que têm dúvidas de iniciantes, assim como eu.

Vocês podem me encontrar no GitHub https://github.com/sandypiropo e no Twitter https://x.com/sandevz (no momento está desativado, mas voltarei em breve)

Enfim, é isso. Sejam bem-vindos!
Máy lọc khí Daikin MCK70ZVM7-W: Khí sạch, sức khỏe vững mạnh 
Published: 2024-03-18 05:00:04

Chất lượng không khí đóng vai trò quan trọng đối với sức khỏe con người. Máy lọc không khí Daikin MCK70ZVM7-W sử dụng công nghệ lọc không khí tiên tiến để loại bỏ các hạt bụi, vi khuẩn, virus và mùi hôi trong không khí, giúp không gian sống và làm việc luôn trong sạch sẽ và an toàn. Đặc biệt, sản phẩm này còn có khả năng loại bỏ các hạt siêu nhỏ PM2.5, giúp người sử dụng tránh khỏi các tác động xấu của ô nhiễm không khí.

https://ndfloodinfo.com/threads/347864-may-loc-khi-daikin-mck70zvm7-w-khi-sach-suc-khoe-vung-manh.html#post387261​​​​​​​
MCK70ZVM7-W là sự lựa chọn thông minh cho người tiêu dùng
Published: 2024-03-18 04:54:36

Trong bối cảnh ô nhiễm không khí trở nên ngày càng nghiêm trọng, việc sử dụng máy lọc không khí đã trở thành một giải pháp không thể thiếu để bảo vệ sức khỏe cho bản thân và gia đình. Trong lạt sản phẩm máy lọc không khí hiện có trên thị trường, MCK70ZVM7-W của Daikin - lựa chọn thông minh - giải pháp đáng tin cậy. https://newhorizons.edu.vn/threads/179173-mck70zvm7-w-la-su-lua-chon-thong-minh-cho-nguoi-tieu-dung.html#post180362
Daikin MCK70ZVM7-W: Lọc và khử mùi hoàn hảo
Published: 2024-03-18 04:47:44

Máy lọc không khí Daikin MCK70ZVM7-W là một sản phẩm tiên tiến trong lĩnh vực làm sạch không khí, với khả năng lọc và khử mùi hoàn hảo. Trang bị công nghệ lọc mùi Plasma Ion và Active Carbon, sản phẩm này đã thu hút sự chú ý của người tiêu dùng bởi khả năng loại bỏ mùi hôi hiệu quả từ nhiều nguồn khác nhau, từ thuốc lá đến mùi thức ăn và cả mùi từ động vật.

https://vicraft.vn/threads/175494-daikin-mck70zvm7-w-loc-va-khu-mui-hoan-hao.html#post176913
Release 1.5 Contributions : ChatCraft.org
Published: 2024-03-18 04:47:42

## Follow Up Issue - Issue #489

Based on a feedback on my previous [PR #481](https://github.com/tarasglek/chatcraft.org/pull/481), I received a feedback from my peers regarding the functionality to share a single message in addition to the previous feature to share a chat. The issue was shared chat when shared via Share message button , the shared message on shared chat had the time of when the chat was shared. For example, Lets suppose I share a message from 2 days ago, I would see the time on shared chat of today(when I shared the chat).

![diff](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6ljtpge8yqit77vnp0s1.png)

{% embed https://github.com/tarasglek/chatcraft.org/issues/489 %}

## Pull Request - PR #490
For the above issue, I did some research on ChatCraftChat component that how the messages and mainly the time is being rendered in it. Based on my logic for this functionality, I was using message id to select the message I wanted to share and clone the only message into the messages array which is being rendered in a chat. 

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

I found that the clone function is creating a new object of the message which is storing the current time when object was created. I fixed the logic by just removing the clone and passing the original message object to the array for the chat.

Created the Pull Request Below

{% github https://github.com/tarasglek/chatcraft.org/pull/490 %}

## Debugging a bug - Issue #480

{% embed https://github.com/tarasglek/chatcraft.org/issues/480 %} 

Apart from the contributions above, I started working with one of my peers to find the cause of the bug and fix it. I brought this up in triage meeting for ChatCraft with all the contributors including the professor and shared my screen. I learnt some of browser debugging approaches including **debugger;** . This bug was something which we could not figure out yet but the outcome we came to from that meeting was this is something wrong with routing probably because when we try to open the same URL in the browser we are getting redirected properly but when its trying to getting loaded in react-dom component i.e chatcraft's web app, Its not redirecting and hence failing to find the route returning a 404 NOT FOUND error.

That's all for this week.

Happy Coding
Kotlin data class, 2024-03-18
Tags: kotlin
Published: 2024-03-18 04:44:31

```
data class DataTicket(val companyName : String, val name : String, var date : String, var seatNumber : Int )

class Ticket(val companyName : String, val name : String, var date : String, var seatNumber : Int )

fun main(){
   val ticketA = DataTicket("koreanAir", "example", "2024-01-01", 17)
   val ticketB = Ticket("koreanAir", "example", "2024-01-01", 17)
}
```
toString(), hashCode(), equal(), copy() 있음
클래스는 메모리 주소 값
데이터 클래스는 밸류 값이 나온다

_참조 : Code with Joyce_
Prettier for PHP File Formats in VSCode
Tags: vscode, php, prettier
Published: 2024-03-18 04:23:29

Hello, dev 👋

If you are a programmer in the PHP language, of course, you want to make your coding look neat so that it is easy for other programmers to read. In VS Code there is an extension to automatically tidy up coding called [Prettier](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode).

But it turns out that by default Prettier does not support PHP formatting language. Although there is a [PHP plugin for Prettier](https://github.com/prettier/plugin-php) created by the community. You can just read the [Use section](https://github.com/prettier/plugin-php#use) on the GitHub page to see how to use the plugin together with Prettier to format the PHP language. In my opinion, this method is quite complicated because it would be easier if the formatting was executed when the PHP file was saved (formatOnSave).

## PHP Intelephense
To format the PHP language, I suggest you use the VSCode extension called **[PHP Intelephense](https://marketplace.visualstudio.com/items?itemName=bmewburn.vscode-intelephense-client)** which was created by **[Ben Mewburn](https://marketplace.visualstudio.com/publishers/bmewburn)**. Install the extension first.

After the extension is installed, you can go to File -> Preferences -> Settings, then look for "default formatter"

![VSCode Default Formatter](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u1jfzqhcd71s70cs91tc.png)

Then change the Default Formatter to PHP Intelephense. Still in settings, look for "**_formatonsave_**" and then check **Format On Save** so that our PHP file is formatted automatically when saving the file.

## Multiple Formatter
Now this becomes confusing when we also work in languages other than PHP, such as Javascript, Typescript, or other programming languages.

When we choose the Default Formatter to PHP Intelephense, this means that all files will be formatted using PHP Intelephense, while this extension only supports PHP. Then, how?

The solution is to use the **_settings.json_** configuration file in VSCode to set the PHP language using PHP Intelephense.

Now go to settings and change Default Formatter to Prettier. Why Prettier? Prettier itself supports quite a lot of languages such as JavaScript, TypeScript, JSX, Angular, Vue, CSS, HTML, JSON, GraphQL, and others.

Then you create settings.json using **Ctrl + Shift + P** then search for "**_open user settings_**". Select the (JSON) one. Then the settings.json file will open. So here add the following configuration:

```
"[php]": {
    "editor.defaultFormatter": "bmewburn.vscode-intelephense-client"
}
```

This means that all files with the .php extension will be formatted using the PHP Intelephense extension. Don’t forget to save the settings.json.

Good luck 🍻
I created dev.to clone Using API + NextJS 🚀
Tags: javascript, nextjs, clone, programming
Published: 2024-03-18 04:07:13

Made it in a very short time, Used Dev.to API and NextJS to create it.


{% post https://dev.to/sh20raj/devto-apis-347l %}


> Website Link :- https://dev-art.vercel.app/

> See this post :- https://dev-art.vercel.app/sh20raj/i-created-devto-clone-using-api-nextjs-2ha7
How to Transpose Columns in Each Group to a Single Row
Tags: sql, database, coding, dataengineering
Published: 2024-03-18 04:01:50

We have a database table STAKEHOLDER as follows:


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/6y2otusterrm8eqb47p7.png)
We are trying to group the table by CLASS and convert all columns to a same row. Below is the desired result set:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/sgt2edgvkp72hna1iu86.png)
SQL code written in Oracle:

```
WITH CTE AS(
SELECT
            UP.CLASS,
            UP.NS || UP.RN AS NSR,
            UP.VAL
FROM
            (
            SELECT
                        ROW_NUMBER ()
         OVER (
           PARTITION BY S.CLASS
            ORDER BY
                        S.CLASS) RN,
                        S.*
            FROM
                        STAKEHOLDER S
            ORDER BY
                        CLASS,
                        SID) SS
UNPIVOT (VAL FOR NS IN (NAME, SID)) UP
)
SELECT
            *
FROM
            CTE
PIVOT(MAX(VAL) FOR NSR IN ('NAME1' AS NAME1,
            'SID1' AS SID1,
            'NAME2' AS NAME2,
            'SID2' AS SID2,
            'NAME3' AS NAME3,
            'SID3' AS SID3))
```
This is not difficult if we handle it with our natural way of thinking. After grouping the table by CLASS, we convert NAME and SID columns into rows and create names commanding values to be converted to columns. Format of names is the original column name + number of subgroups, like NAME1, SID1, NAME2, SID2，… for group 1 and NAME1, SID1, … for group2. Then we concatenate groups and transpose row to columns. The problem is SQL does not support dynamic row-to-column/column-to-row transposition. When the number of columns is small and columns are fixed, the language can mange to do the transpositions. As the number of columns increases, the scenario becomes more and more awkward. Enumerating all columns to be converted is complicated and SQL code becomes bloated. If columns are dynamic, SQL needs to turn to complex and roundabout ways to handle them.

Yet, it is really easy to code the transposition task with the open-source esProc SPL:

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/rrw40jz54v9zlgl792cr.png)
SPL is the specialized data computing engine that is based on ordered-sets. It offers the all-round abilities for performing set-oriented operations, supports stepwise coding, and provides intuitive solutions. Instead of enumerating columns, SPL can automatically scale up, making it convenient to deal with various transposition tasks.
Tuổi Dần hợp với tuổi nào trong làm ăn, kinh doanh & hôn nhân
Tags: tuoidanhoptuoinao, spartaviet
Published: 2024-03-18 04:00:19

Tuổi Dần hợp với tuổi nào trong làm ăn, kinh doanh & hôn nhân
Khi chọn đối tác làm ăn hoặc kết hôn, người Việt thường có xu hướng xem tuổi để lựa chọn những người hợp tuổi, hợp mệnh. Bởi họ cho rằng, khi lựa chọn người phù hợp thì mọi việc sẽ diễn ra thuận lợi và suôn sẻ hơn. Trong bài viết này, chúng ta sẽ cùng tìm hiểu xem tuổi Dần hợp với tuổi nào trong làm ăn và hôn nhân nhé. 
Mời các bạn cùng theo dõi bài viết: [https://spartaviet.com/tuoi-dan-hop-voi-tuoi-nao/](https://spartaviet.com/tuoi-dan-hop-voi-tuoi-nao/)
Top Đắk Nông AZ
Published: 2024-03-18 03:33:57

Trang web Top Đắk Nông AZ là kết quả của sự tham gia đầy ý nghĩa và sáng tạo trong cuộc thi viết về quê hương do tổ chức ZMar tổ chức. Trang web này đã được tạo ra với mục tiêu chia sẻ, khám phá và tôn vinh vẻ đẹp độc đáo của tỉnh Đắk Nông - mảnh đất Tây Nguyên phong phú về thiên nhiên và văn hóa.

https://topdaknongaz.com

#topdaknong, #topdaknong, #topdaknongaz, #topdaknongaz, #tinhdaknong, #tinhdaknong
https://www.facebook.com/profile.php?id=61552209133948
https://www.pinterest.com/topdaknongaz/
https://www.linkedin.com/in/topdaknongaz/
https://www.reddit.com/user/topdaknongazz/
HOW TO TRACE AND RECOVER LOST CRYPTO WITH_TECHNOCRATE RECOVERY
Tags: cryptocurrency, ethereum, bitcoin, usdt
Published: 2024-03-18 03:30:44

Excitation and uncertainty can coexist in the realm of bitcoin investments. Like many others, one person set out to invest in Bitcoin (BTC) with the expectation of earning substantial profits. But what had once appeared to be a great investment quickly turned into a depressing setback as their substantial 110,000 BTC investment became totally unreachable. This person, who was in a condition of shock and despair, turned to TECHNOCRATE RECOVERY, a well-known expert in online recovery, for comfort. For me, investing in Bitcoin (BTC) has been an exciting experience. Having seen the possibility of large returns, I jumped into the world of cryptocurrencies with enthusiasm and invested a considerable amount of 110,000 in Bitcoin. But as soon as I realized I couldn't access my hard-earned money because I was locked out of my account, my excitement quickly turned to sorrow. I started looking for a solution in a state of shock and fear, and that's how I found the amazing TECHNOCRATE RECOVERY, the exhilarating world of cryptocurrency. It was a sunny day when I decided to take the plunge and invest 110,000 of my hard-earned dollars into Bitcoin (BTC). The potential for high returns and the thrill of being part of a new financial revolution had me giddy with excitement. Little did I know that this rollercoaster of an investment would take an unexpected twist. Fast forward a few months, and my excitement turned into disbelief. One faithful victorious day, I logged into my BTC account only to discover that my investment had become inaccessible. Panic set in as I desperately tried to regain access, but no matter what I did, my 110,000 BTC seemed to have vanished into the air. How could this be? I had taken all the necessary precautions and thought my investment was secure. It was a moment of utter bewilderment and frustration. The moment I realized I couldn't access my BTC investment, my heart sank. I triple-checked my login credentials, rebooted my computer, and even performed a little dance in the hope that it would miraculously solve the issue. Alas, nothing worked. My investment was still out of reach, mocking me from the depths of the digital abyss. In my darkest hour, I realized that I couldn't shoulder this burden alone. I needed professional help, someone who could wave their digital wand and magically restore my access to the lost BTC. Desperation led me down the winding path of online searches, forums, and recommendations, until I stumbled upon the name that would change everything,TECHNOCRATE RECOVERY, that helped me recover my lost BTC.

WEB HOMEPAGE: w ww.t e c hnocraterecovery. site
CONTACT: t e c hnocratrecover y@contr actor. net
TELEGRAM: @TECHNOCRATE_RECOVERY

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