teleren/devto huggingface dataset:
lá số tử vi
Tags: webdev, javascript, programming, beginners
Published: 2023-12-18 17:40:47

Tử Vi, hay Tử Vi Đẩu Số, là một bộ môn huyền học được dùng với các công năng chính như: luận đoán về tính cách, hoàn cảnh, dự đoán về các " vận hạn" trong cuộc đời của một người đồng thời nghiên cứu tương tác của một người với các sự kiện, nhân sự.... Chung quy với mục đích chính là để biết vận mệnh con người.

Lấy [lá số tử vi](https://tuvi.vn/lap-la-so-tu-vi) để làm gì ?
Xem lá số tử vi trọn đời có bình giải chi tiết sẽ giúp cho quý bạn mệnh biết về tương lai, vận hạn theo các năm. Khi lấy lá số tử vi theo giờ sinh và ngày tháng năm sinh thì quý bạn cần khám phá phần luận giải lá số để nắm bắt vận mệnh của chính mình. Lá số tử vi trọn đời mang yếu tố tham khảo giúp quý bản mệnh tránh việc không nên, tăng cường việc tốt từ đó có một cuộc sống suôn sẻ và nhiều may mắn.

Lá số tử vi trọn đời thể hiện điều gì ?
Trên mỗi lá số tử vi sẽ thể hiện các phương diện cuộc sống của quý bản mệnh theo từng năm tuổi cụ thể như: công danh, sự nghiệp, gia đạo, tình duyên, tiền tài, sức khỏe, anh chị em, quan hệ xã hội...
Để tra cứu và lấy lá số tử vi trọn đời trực tuyến miễn phí quý bạn cần cung cấp đầy đủ và chính xác nhất về họ tên, giờ sinh, ngày sinh, tháng sinh, năm sinh và giới tính.
Ngoài ra: cách xem lá số tử vi có thể thay đổi theo các năm. Vì vậy để luận đoán và có cái nhìn chính xác nhất về tương lai và vận mệnh của mình trong năm Kỷ Hợi 2019 cũng như trong năm Canh Tý 2020. Quý bạn nên lấy lá số tử vi 2019 và cách lập lá số tử vi để tham khảo chi tiết tử vi năm 2020 của mình, cũng như phân tích và khám phá lá số tử vi trọn đời của các năm khác.
Xem thêm tại: [https://tuvi.vn/lap-la-so-tu-vi](https://tuvi.vn/lap-la-so-tu-vi)
Understanding the Program.cs Class in ASP.NET Core Web API
Tags: aspdotnet, aspnetmvc, aspnet, asp
Published: 2023-12-18 17:27:38

The `Program.cs` file holds a crucial role in ASP.NET Core Web API projects, serving as the entry point and orchestrator of the application's startup process. Its significance lies in configuring the web host, setting up services, and initiating the application.

## Anatomy of Program.cs

### 1. Entry Point
The `Main` method within `Program.cs` acts as the starting point of the application. Here, the `WebHost.CreateDefaultBuilder(args)` method creates a default host builder, setting up the fundamental configuration for the web application.

```csharp
public class Program
{
    public static void Main(string[] args)
    {
        CreateHostBuilder(args).Build().Run();
    }

    public static IHostBuilder CreateHostBuilder(string[] args) =>
        Host.CreateDefaultBuilder(args)
            .ConfigureWebHostDefaults(webBuilder =>
            {
                webBuilder.UseStartup<Startup>();
            });
}
```

### 2. IHostBuilder
The `CreateHostBuilder` method constructs an `IHostBuilder` instance, responsible for building and configuring the application's host. It is where various services, configurations, and startup settings are defined.

### 3. Host Configuration
`Host.CreateDefaultBuilder(args)` configures the default settings for the host, such as configuring the environment, setting up logging, and loading configuration settings from various sources like `appsettings.json`.

### 4. ConfigureWebHostDefaults
Within `ConfigureWebHostDefaults`, the `webBuilder` instance is configured for the web host. The `UseStartup<Startup>()` method specifies the startup class for the application, usually named `Startup.cs`, where crucial configurations like middleware setup, dependency injection, and routing are defined.

## Customizing Program.cs

### 1. Adding Custom Configurations
Developers often customize `Program.cs` to include additional configurations, middleware, or services. For instance, modifying the server settings (e.g., Kestrel server configurations) or adding specific logging providers can be done within this file.

### 2. Custom Startup Logic
While the default setup points to the `Startup` class, you can modify the `UseStartup<T>()` method to reference a different class containing startup logic. This enables the separation of concerns and helps manage different configurations for distinct environments.

## Conclusion

In summary, the `Program.cs` file serves as the entry point and orchestrator of the ASP.NET Core Web API application. It sets up the web host, defines configurations, and links to the `Startup` class where the bulk of application configurations and services are configured. Understanding and appropriately customizing this file can greatly impact the behavior and functionality of your ASP.NET Core Web API.

Understanding the significance and functionality of `Program.cs` is crucial for developers to effectively manage the startup process and tailor the application's behavior according to specific project requirements.
Unlocking the Power of GIGO's Referral Program
Tags: startup, marketing, programming, beginners
Published: 2023-12-18 17:08:47

As programmers, we’re explorers of the digital realm, driven by a passion for crafting lines of code that bring ideas to life. When you first ventured into the world of GIGO, the learn-to-code community platform, you might have felt that unique blend of semi-structured learning and social interaction — a platform designed to fuel your coding journey while connecting you with fellow enthusiasts.

GIGO isn’t just about learning; it’s a practical experience where obtained knowledge just so happens to be a byproduct. It’s not just about you and your code; it’s about forging meaningful connections with others who share your passion.

**Introducing the GIGO Referral System**

In our ever-evolving world of technology, where innovation knows no bounds, the GIGO team went back to the basics by implementing a 2-sided benefit referral system.

Here’s the gist: You invite your buddy, and you both reap the rewards. It’s as straightforward as it sounds. You refer a friend, they join the GIGO community, and both of you receive a free month of premium membership. Today, it stands as one of the most rewarding pathways for you to bring your friends into the GIGO ecosystem.


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

**More Than Premium Perks**

The GIGO Referral System is about more than just giving away premium features. It’s about fostering a sense of belonging in a community that shares your passion. When you invite a friend to GIGO, you’re not just offering them a platform; you’re welcoming them into a thriving ecosystem of code enthusiasts.

Whether you’re diving into coding tutorials, collaborating on projects, or simply tinkering with an editor, GIGO provides an immersive experience for connecting with others in the programming community. It’s about more than just learning — it’s about forging connections and sharing the thrill of coding with like-minded individuals.

**Embrace the Challenge**

Looking back at the journey of developing GIGO, it was a productive initiative filled with development challenges, valuable lessons, and iterative improvements. Yet, the most rewarding part is watching our community thrive and grow. After all, what’s more satisfying than conquering a complex project and witnessing it come to life, being used for its intended purpose?

So, programmers, embrace the power of the GIGO Referral System. Invite your friends to join the ranks, reap the rewards, and see your community flourish. It’s not just about learning; it’s about connection, growth, and the shared joy of coding.

Get started on the GIGO platform at [gigo.dev](gigo.dev)

Check out the GIGO twitter for updates on the platform: [https://twitter.com/gigo_dev](https://twitter.com/gigo_dev)
Stop by the GIGO discord to connect with the team: [https://discord.gg/xg5mkG8CvD](https://discord.gg/xg5mkG8CvD)
Shameless GIGO Reddit plug: [https://www.reddit.com/r/gigodev/](https://www.reddit.com/r/gigodev/)
MsAdalAngular6Module giving error after angular version up gradation from 15 to 17 version in Angular
Published: 2023-12-18 17:07:28

Please find the below error, which am getting at runtime (npm start). This error is getting after upgrading the angular application from 15 to 17 version.

**Error :- error NG6005: MsAdalAngular6Module.forRoot returns a ModuleWithProviders type without a generic type argument.Please add a generic type argument to the ModuleWithProviders type. If this occurrence is in library code you don't control, please contact the library authors.**


![Error screenshot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/7nc84mtal49lpmbcddkd.png)
Who is GIGO?
Tags: gigo, startup, development, technology
Published: 2023-12-18 16:59:33

In the fall of 2022, our foundational programmers embarked on a quest for inspiration. Driven by a shared desire to craft something cutting-edge but practical, they wanted to build something that they as developers felt passionate about during creation through completion. After a week-long deliberation process the 5 devs arrived at the concept of GIGO.

Envisioning an online haven where programmers could congregate, socialize, and wield their technical prowess, this initial spark set ablaze a much grander vision. GIGO, in the minds of the dynamic team, was destined as a place for programmers of all levels to learn and engage their skillset. A realm where beginners experience the fundamentals of coding, a playground for intermediates to hone their craft and forge connections, and a place for expert programmers to flex their vast expertise and give back to the community they had long been an integral part of. But this wasn’t enough, they sought to put a modern-day spin on it, it has to be fun, it has to feel like a game.

What makes programming fun? “Cool things are fun”. While simple, the statement rang true. What makes programming fun is understanding and partaking in the infinite number of technological advances as they occur. To transform an idea from concept into tangible reality, where the only limit on creation is the creator’s imagination. Humans found a way to manipulate rocks to think, and programmers give direction to their magic thinking rocks with complex ordering of 1’s and 0’s. The result being an ever configurable, infinitely malleable final product born in the cerebral of a lonely dev. What makes programming fun are the endless possibilities.

Thus, a core tenet of the platform was established: connect these technical thinkers, give them a safe-haven to create, share and receive feedback on their creation. All the while, reward them with practical experience and social gratification, providing genuinely fun and challenging projects to explore and complete.

There was intense discussion surrounding the name. What’s catchy, cool, and resonates with us as programmers? From the depths of his wrinkled brain, a dev brought forth “GIGO”. Garbage In — Garbage Out, an acronym recognized in the vocabulary of most programmers, it caught steam across the group and since its adoption has even garnered a mascot, the GIGO Gorilla.

After 6 months of dedicated work, the team, consisting of family & friends, introduced their brainchild to the world wide web with an official release. Patiently awaiting the world to discover their infant creation, the team is staying hard at work to bring more life to the platform, adding features — rounding out the UI & UX. The GIGO team hopes for widespread adoption, for people to explore the playground they meticulously crafted, a place of learning, connection, and endless possibilities.


Discord: https://discord.gg/MdKmqBzRqX
Twitter: https://twitter.com/gigo_dev
Reddit: https://www.reddit.com/r/gigodev/

GitHub repository: https://github.com/Gage-Technologies/gigo.dev

Get started on your first project at gigo.dev
🚀 Exciting Update: 'Mastering Search with LeetCode's 'Binary Search'!' 🎥
Tags: programming, beginners, tutorial, algorithms
Published: 2023-12-18 16:48:05


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

Hello, tech enthusiasts! I'm thrilled to share my latest video where I conquer the challenge of LeetCode problem 704 - 'Binary Search.' Join me as we dive into the world of binary search, exploring an efficient approach to find a target element in a sorted array.

🎥 Watch the video here: https://youtu.be/XSNMXptqNVw?si=r63WM5LUVxSyPSnt
🔗 Access the code on GitHub: https://github.com/Vinay352/Leetcode/tree/main/0704-binary-search
🔗 Explore the LeetCode question: https://leetcode.com/problems/binary-search/


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

Your thoughts and comments are highly appreciated, so feel free to share your insights below. Let's continue our shared journey of learning and coding! 💡👨‍💻

Stay connected:
🎥 YouTube: https://www.youtube.com/@VinayJainDev3097
📚 Medium: https://medium.com/@vinay.j3097
📝 Dev.to: https://dev.to/vinay_jain_dev
🔗 GitHub: https://github.com/Vinay352
🐦 Twitter: https://twitter.com/vinayj3097
📸 Instagram: https://www.instagram.com/vinay_jain_dev/
📘 Facebook: https://www.facebook.com/vinayj3097/
Hands on Codelabs to dabble with Large Language Models in Java
Published: 2023-12-18 18:18:35

---
title: Hands on Codelabs to dabble with Large Language Models in Java
published: true
date: 2023-12-18 16:31:56 UTC
tags: 
canonical_url: https://glaforge.dev/posts/2023/12/18/get-hands-on-codelabs-to-dabble-with-llms/
---

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

Hot on the heels of the [release of Gemini](https://dev.to/glaforge/get-started-with-gemini-in-java-4al3-temp-slug-4246956), I’d like to share a couple of resources I created to get your hands on large language models, using [LangChain4J](https://github.com/langchain4j/), and the [PaLM 2](https://ai.google/discover/palm2/) model. Later on, I’ll also share with you articles and codelabs that take advantage of Gemini, of course.

The PaLM 2 model supports 2 modes:

- text generation,
- and chat.

In the 2 codelabs, you’ll need to have created an account on Google Cloud, and created a project. The codelabs will guide you through the steps to setup the environment, and show you how to use the Google Cloud built-in shell and code editor, to develop in the cloud.

You should be a Java developer, as the examples are in Java, use the [LangChain4J](https://github.com/langchain4j/) project, and Maven for building the code.

### [Generative AI text generation in Java with PaLM and LangChain4J](https://codelabs.developers.google.com/codelabs/genai-text-gen-java-palm-langchain4j?hl=en#0)

In the first [codelab](https://codelabs.developers.google.com/codelabs/genai-text-gen-java-palm-langchain4j?hl=en#0) you can explore:

- how to make your first call to PaLM for simple question/answer scenarios
- how to extract structured data out of unstructured text
- how to use prompts and prompt templates
- how to classify text, with an example on sentiment analysis

### [Generative AI powered chat with users and docs in Java with PaLM and LangChain4J](https://codelabs.developers.google.com/codelabs/genai-chat-java-palm-langchain4j?hl=en#0)

In the second [codelab](https://codelabs.developers.google.com/codelabs/genai-chat-java-palm-langchain4j?hl=en#0) you’ll use the chat model to learn:

- how to create your first chat with the PaLM model
- how to give your chatbot a personality, with an example with a chess player
- how to extract structured data out of unstructured text using LangChain4J’s AiServices and its annotations
- how to implement Retrieval Augmented Generation (RAG) to answer questions about your own documentation

## Going further with Generative AI

If you’re interested in going further with Generative AI, and learn more, feel free to [join the Google Cloud Innovators program](https://goo.gle/generativeai).

Google Cloud Innovators is **free** and includes:

- live discussions, AMAs, and roadmap sessions to learn the latest directly from Googlers,
- the latest Google Cloud news right in your inbox,
- digital badge and video conference background,
- 500 credits of labs and learning on Skills Boost.
Exploring the World of Minuscule Windows Executables
Published: 2023-12-18 16:31:25

## A Journey into Compact Code
The quest for creating the smallest possible Windows Portable Executable (PE) has intrigued developers for years. This pursuit is not just a coding challenge; it sheds light on the inner workings of Windows operating systems and offers insights into low-level programming. Let's dive into this fascinating world.

## The Essence of a Windows PE
A Windows Portable Executable, commonly known as a PE file, is a file format that stores executable code for applications in Windows operating systems. These files, with their complex structures, are pivotal for the functioning of countless software applications in Windows environments.

## The Smallest PE: A Tale of Bytes and Code
Matthew Murdoch, a programmer and enthusiast, sought to understand the bare minimum needed for a functional PE file. He aimed to create an executable that does nothing more than load, run, and exit without errors. His journey began on February 16, 2009, and has been a topic of discussion and innovation ever since.

## Breaking Records: The Smallest Executables
1. **For Windows XP (32-bit):** The smallest PE executable recorded is just 97 bytes.
2. **On Windows Vista and 7 (32-bit):** The size goes up to 252 bytes.
3. **Windows 64-bit versions:** The smallest 32-bit executable is 268 bytes.

These achievements highlight the ingenuity of programmers in optimizing code to the bare essentials.

## Crafting the Smallest Executables
The creation of these tiny executables involves meticulous planning and coding. A standout example is a 268-byte PE file by DrakoPensulo. Compiled using FASM (Flat Assembler), this executable demonstrates a deep understanding of the PE structure, showcasing characteristics like:

- No sections
- No Data Directories
- An exit code of 0x2a

## Beyond Just Size: A Functional Perspective
While creating the smallest executable is an achievement, it's important to note that these files generally perform minimal functions. For instance, [DrakoPensulo's executable](https://stackoverflow.com/a/45528159/2426367) simply exits with a specific code. The real value lies in understanding the intricacies of the Windows operating system and the PE format.

## The Future of Tiny Executables
This journey into creating the smallest Windows executable is more than a pursuit of minimalism. It's a testament to the creativity and problem-solving skills of programmers. As Windows continues to evolve, so will the techniques and methods to create compact and efficient executables.

## Conclusion
The quest for the smallest Windows executable is a fascinating blend of technical prowess and creative problem-solving. It challenges programmers to think differently and provides valuable insights into the workings of the Windows operating system. As we continue to explore and innovate, the possibilities in this realm are endless.
Day 100: Last Day
Tags: 100daysofcode, webdev, frontend
Published: 2023-12-18 16:30:00

Hello fellow developers and enthusiasts! 🚀 Today marks the end of my 100 Days Learning Challenge as a frontend engineer. I can't believe how fast time has flown and how much I've grown during this incredible journey. As I bid farewell to this challenge, I want to express my deepest gratitude to all of you who have been a part of this ride. 

## 🌟 A Heartfelt Thank You 

First and foremost, I want to thank each and every one of you who took the time to read my articles, follow my progress, and provide encouragement along the way. Your support has been invaluable and has fueled my determination to push through the highs and lows of this learning adventure. 

## 📚 What Did I Learn? 

Throughout these 100 days, I delved into the vast world of frontend development, exploring everything from the basics of HTML and CSS to advanced JavaScript concepts and modern frameworks like Angular and React. I conquered challenges, embraced new technologies, and honed my problem-solving skills. The learning never stops, and I'm excited to carry this knowledge forward in my career.

## 🤝 Seeking Your Feedback 

As I wrap up this challenge, I'm eager to hear your thoughts. Your feedback is crucial to my growth as a developer and content creator. What articles did you find most helpful? Are there specific topics you'd like me to explore further? Your insights will shape the direction of my future content.

Please take a moment to share your feedback through this [Feedback Form](https://forms.gle/GPqHDeKWZvVb3nzP6). I genuinely appreciate your input, and together, we can make the learning experience even better. 

## Conclusion

As I close the chapter on my 100 Days Learning Challenge, I extend my heartfelt thanks once again. Whether you're a seasoned developer or just starting out, remember that the journey of learning is ongoing. Let's continue to support each other and build a thriving community of passionate developers.
call back in a nutshell
Tags: javascript, interview, webdev
Published: 2023-12-18 16:29:55

## call back function

- first class function are the functions that takes functions as the input
- the function that you pass to the another function is called call back function 
```js
function y(x){
x()
}

function x(){
print(" i am x")
}
```
- here x is the callback function 
- this is most power full because it enabled  the async nature in single threaded node js
- exuction of call back function is depends on the main funciton
```js
app.use("/",(req,res)=>{
res.send("hello world")
})
```
- in the above example it execute the call back function when it matches to "/"
- main thread is nothing but the call stack, any things that blocks the call stack is blocker that needs to be removed 

## guess the output
```js
setTimeout(x,3000)

function x(){
console.log("this is x fuction ")
}

console.log("this is main block")
```