teleren/devto huggingface dataset:
Move Your WSL2 to Another Drive
Tags: wsl, windows, linux
Published: 2023-11-13 15:45:14

Windows Subsystem Linux (WSL) is one of the most useful modern tools for software development, in my opinion. Since Windows offered this feature, we don't need to use fully virtualized Linux (using VMWare or VirtualBox) but can just use WSL that fully integrated with our Windows machine.

The downside of WSL is we can't choose the directory to install it. I will installed by default in our system drive (C drive). This maybe not a problem if we allocate huge amount of storage for our C drive. But, the case is we commonly not allocate much storage for our system drive because we thought we will only use this drive to install essential things.

But there is a solution for this, you can follow this steps :

### 1st step, Install Linux Distro
Assume you already install any Linux distro from Microsoft Store. In this example, I will use Ubuntu (you can use whatever you own). Let's say I installed Ubuntu 22.04 in my Windows machine. I will get my installed distro on the list if I execute `wsl -l -v` command like below.

```powershell
PS> wsl -l -v
  NAME            STATE           VERSION
* Ubuntu-22.04    Running         2
```

### 2nd Export WSL instance
In this example, I will move my WSL instance (Ubuntu) to my E drive. You can open your PowerShell and run these commands :

```powershell
PS> cd E:
PS> mkdir wsl2
PS> cd wsl2
PS> mkdir Ubuntu-22.04
PS> wsl --export Ubuntu-22.04 .\Ubuntu-22.04\ext4.vhdx --vhd
PS> wsl --unregister Ubuntu-22.04
PS> wsl --import-in-place Ubuntu-22.04 .\Ubuntu-22.04\ext4.vhdx
```

Let me explain these commands :

* `wsl --export` is used to export the instance of Ubuntu-22.04 to ext4.vhdx inside Ubuntu-22.04 directory.
    
* `wsl --unregister` is used to unregister existing WSL2 with name Ubuntu-22.04.
    
* `wsl --import-in-place` is used to register/import instance that we just export (ext4.vhdx) as new Ubuntu-22.04.
    

### 3rd step, Set default user.

After importing the new instance, you will use root user by default. To change this to our user, we need to modify `/etc/wsl.conf` inside our WSL instance by adding this line :

```bash
[user]
default=<your-username>
```

Change `<your-username>` with username that you want to use.

That's all, really simple :)

---

External source :

* [Move WSL to Another Drive](https://blog.iany.me/2020/06/move-wsl-to-another-drive/)
    
* [Build 18980](https://learn.microsoft.com/en-us/windows/wsl/release-notes#build-18980)
📢 Cryptocurrency exchange service that is easy, fast, and verification-free! 💫
Published: 2023-11-13 15:32:43

Are you wondering how to exchange [Ethereum for Bitcoin](https://www.bitcoininsider.org/article/231640/crypto-use-cases-how-swapzone-guarantees-affordable-crypto-swap-rates) without unnecessary bureaucracy and delays? Our solution aligns with your values because we know that decentralization and protecting your personal information are especially important for Ethereum users.

With great excitement, we introduce Swapzone - one of the most reliable and convenient platforms for cryptocurrency exchange. With our service, you can find the optimal exchange rate and get quality service from over 15 trusted exchangers. It's easy and secure to exchange your coins with us, just follow a few simple steps and you're done.

Exchanges offer an alternative, but they require strict verification, which isn't always aligned with the ideals of decentralization. Your anonymity and assurance of maintaining your privacy are of utmost importance to us. For those who value freedom and independence, our service is an excellent choice.

Finally, let's talk about how cryptocurrencies can be used for speculative income as well as payments. They are becoming increasingly popular. With cryptocurrencies, you can manage and dispose of your funds without being watched because you are free from strict control and regulation.

Don't miss your chance to be part of the new financial era where you have full control over your funds when you join Swapzone today!

🔥 You can achieve freedom and prosperity with Swapzone!
What are your goals for the week of Nov 13?
Tags: discuss, motivation
Published: 2023-11-13 15:31:00

## What are your goals for this week? 

- Are you building anything you want to talk about? 
- What will be a good result by week's end?
- What events are happening any week? 
  * in person or virtual?

### Last Week's Goals

- [:white_check_mark:] Continue Job Search. More Applications and networking.
- [:white_check_mark:] Blog. It's Virtual Coffee's Blogging Challenge month. As a group we're trying to write 100,000 words. I'm trying to break my count from last year of 4,528 words.
   * I blogged about building a CSS [Rubber Duck.](https://dev.to/jarvisscript/i-want-a-new-rubber-duck-31mb)
   * Word Goal progress: 1,390/4,528
- [:x:] Code Challenges
- [:white_check_mark:] Project work
- Events
  * [:white_check_mark:] Attend GitHubUniverse
  * [:x:] Attend Virtual Coffee(VC)Thursday. Same time as GitHubUniverse Keynote. 
  * [:x:] VC CSS Battle Friday
- [:white_check_mark:] Run a weekly Slack thread similar to this post. 
- Build LEGO Sets.
- [:x:] Work on pictures from the previous weekend.


![Rubber Duck](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2xaivfeehtw6pg2vjec2.jpg)

### This Week's Goals

- Continue Job Search.
- Blog. More Ducks This week.
- Code Challenges
- Project work
- Events
  * Attend Dallas Software Developers Meetup (Virtual)
  * Attend Virtual Coffee(VC)Thursday
  * VC CSS Battle Friday
- Run a weekly Slack thread similar to this post. 
- Build LEGO Sets. If I don't do any this week I'll do some over the long weekend Next week.
- Finish the pictures from the end of October.



### Your Goals for the week


You've read this far so I'll ask again.

- Are you building anything you want to talk about? 
- What will be a good result by week's end?
- What events are happening any week? 
  * in person or virtual?


```html
-$JarvisScript git push
```
SQL - Use Subqueries for Complex Data Retrieval
Tags: sql, sqlserver, programming, tutorial
Published: 2023-11-13 15:30:00

SQL subqueries are powerful tools for retrieving complex and specific data by nesting one query within another. Use subqueries to break down complex tasks into smaller, more manageable steps, making your SQL code more readable and maintainable.

Example:
Suppose you have a database with tables "orders" and "order_items," and you want to find the total quantity of a specific product sold across all orders.

Without Subquery (Complex):
```sql
SELECT product_id, SUM(quantity) AS total_quantity
FROM order_items
WHERE product_id = 123
GROUP BY product_id;
```

With Subquery (Simplified and Readable):
```sql
SELECT product_id, (
  SELECT SUM(quantity)
  FROM order_items
  WHERE product_id = 123
) AS total_quantity;
```

In this example, the subquery calculates the total quantity for the specific product (product_id = 123), and the main query retrieves the product_id along with the subquery result. This approach makes the SQL code more concise and easier to understand, especially when dealing with complex aggregations or filtering conditions.

When using subqueries, keep in mind that they can impact query performance, so it's essential to optimize them and consider alternatives like JOINs or common table expressions (CTEs) when appropriate.
"How to improve Docker build from minutes to seconds for Golang apps."
Tags: go, docker, devops, programming
Published: 2023-11-13 15:25:47

Hey, folks!

I wanted to share an interesting article that could be useful for Go developers and anyone working with Docker. It's all about speeding up Docker image builds and making them lighter. The article's title says it all: **"How to improve Docker build from minutes to seconds for Golang apps."**

If you're concerned about Docker image build times and optimizing sizes, this one's for you. The author shares practical tips and solutions that can simplify your life and improve performance.

Grab the [link](https://madappgang.com/blog/how-to-improve-docker-build-from-minutes-to-seconds/?utm_source=devcommunity&utm_medium=article&utm_campaign=promo&utm_content=link&utm_term=traffic) and give it a read when you have a moment
Business Card Generator!
Tags: javascript, opensource, nextjs, developer
Published: 2023-11-13 14:47:19

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

Hey DEV Community 👋,

Are you tired of the same old, uninspiring business card designs? Do you want to stand out in the professional crowd with a card that truly represents your brand? Look no further! 🚀

🌟 Introducing Creative Minds Graphics Pty Ltd's Business Card Generator!

Unleash your creativity and leave a lasting impression with our cutting-edge Business Card Generator. Here's why it's a game-changer:

✨ Dual-Sided Magic: Design both the front and back of your card, showcasing your uniqueness.

✨ Diverse Templates: Choose from a plethora of professionally designed templates to match your style.

✨ Customization at Your Fingertips: Personalize colors, fonts, logos, and more for a truly distinctive look.

✨ Easy Editing: Our user-friendly interface ensures effortless card creation - no design skills required!

✨ High-Quality Printing: We guarantee your cards will look as good in print as they do on the screen.

🚀 How It Works:

Choose Your Template: Select a design that resonates with your brand.
Customize: Add your company logo, and 

contact info, and sprinkle a bit of your personality.
Preview: See your creation come to life with our real-time preview feature.
Print or Share: Print at your convenience or share digitally with ease.
💼 Why settle for ordinary? Impress clients, colleagues, and connections with your standout business cards!

Ready to elevate your professional image? Join the future of business card creation now! 🌐 [Business Crad Generator](https://businesscardgenerator.vercel.app/)

🎉 Don't miss out on making a lasting impression. Try Creative Minds Graphics Pty Ltd's Business Card Generator today! 🎉

Feel free to drop your thoughts, questions, or card designs in the comments below. Let's revolutionize the way we network and leave a memorable mark together! 🔥
Partnering for Prominence: TechnBrains' Dallas App Solutions
Tags: dallas, app, development, developers
Published: 2023-11-13 14:42:49

Dallas-based TechnBrains is your partner in [Mobile App Development services](https://www.technbrains.com/locations/mobile-app-development-dallas/), striving to position your organization as a market leader. Our expert teams specialize in creating ground-breaking IOS and Android applications for startups and expanding tech enterprises.
Generative AI in practice: Concrete LLM use cases in Java, with the PaLM API
Published: 2024-02-01 10:48:52

---
title: Generative AI in practice: Concrete LLM use cases in Java, with the PaLM API
published: true
date: 2023-11-13 14:36:51 UTC
tags: 
canonical_url: https://glaforge.dev/talks/2023/11/13/gen-ai-with-palm-2-and-java/
---

Large Language Models, available through easy to use APIs, bring powerful machine learning tools in the hands of developers. Although Python is usually seen as the _lingua franca_ of everything ML, with LLM APIs and LLM orchestration frameworks, complex tasks become easier to implement for enterprise developers.

## Abstract

> Large language models (LLMs) are a powerful new technology that can be used for a variety of tasks, including generating text, translating languages, and writing different kinds of creative content. However, LLMs can be difficult to use, especially for developers who are not proficient in Python, the lingua franca for AI. So what about us Java developers? How can we make use of Generative AI?
> 
> This presentation will go through how to use LLMs in Java without the need for Python. We will use the PaLM API, provided by Google Cloud’s Vertex AI services, to perform a variety of tasks, such as searching through documentation, generating kids stories, summarizing content, extracting keywords or entities, and more. In our journey through demos, we’ll discover LangChain4J, a wonderful LLM orchetratore for Java developers that simplifies the implementation of advanced LLM use cases.

I had the chance to get this talk recorded at Devoxx Belgium:

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

And you can check the slides here:

{% embed https://speakerdeck.com/glaforge/generative-ai-in-practice-concrete-llm-use-cases-in-java-with-the-palm-api %}
Are you keen about the Web Summit?
Tags: programming, webdev, websummit, ai
Published: 2023-11-13 14:34:26

Hey there Devs! Are you keen about the **Web Summit**?

If so, we've got a sweet deal for you! We want to offer you an **exclusive 6-month subscription to ExoCoding**, a new software development platform that's all **about code generation and freedom**!

Wondering why we are offering this and why we're talking about Web Summit? We will spill the details right here: [https://exocoding.com/websummit](https://exocoding.com/websummit )

Click the link and see for yourself! 😊 We promise you won’t regret it! The offer expires on November 16th, so what are you waiting for?
🚀 안전보증놀이터 - FLASH BET, 특별한 혜택과 다채로운 게임으로 여러분을 초대합니다! 🎰
Tags: hello, react
Published: 2023-11-13 14:32:47


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

🎁 입플 이벤트 진행 중!

💳 신규가입 쿠폰이벤트 및 매충전 20% 무한지급 이벤트로 여러분을 환영합니다!
🌈 다양한 이벤트로 더 즐거운 게임을 즐기세요!

🔄 매충전 20% 무한지급: 매 충전 시 20%의 무한지급으로 게임을 더욱 풍성하게 즐겨보세요!
🤝 지인추천 이벤트: 지인을 초대하고 특별한 혜택을 누리세요!
📅 프리미엄 출석이벤트: 매일 출석으로 특별한 상품을 획득하세요!
🃏 에볼루션, 플레이텍 카지노 및 카지노슬롯머신 이용 가능!

🎲 미니게임 다수: MGM바카라, 파워볼, bet365 가상게임 등 다양한 미니게임으로 즐거운 시간을 보내세요.
🏀 스포츠 및 라이브배팅: 다양한 스포츠 종목에서 실시간으로 베팅하여 즐거움을 더하세요!

🌐 찾아가기: fla-ss.com
🆔 가입코드: A T

🌟 FLASH BET으로 안전하고 즐거운 게임을 경험하세요! 여러분의 행운이 가득할 것입니다. 지금 바로 참여하세요! 🚀



![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/dr6opsdrlxgvwaaft6zv.jpg)
Key to Become a Leader
Published: 2023-11-13 14:24:21

Leadership, especially in the ever-evolving landscape of tech startups, requires more than just technical expertise. It demands a conscious decision to lead and a deep understanding of what it means to guide a team through uncertain waters. This blog post explores essential aspects of effective leadership in the tech industry.

**1. Awareness and Intent to Lead:**
The foundation of leadership lies in a strong desire and awareness of the role. In a startup environment, this often translates to being adaptive, proactive, and ready to face unexpected challenges. A leader must be prepared to navigate through uncharted territories, setting an example for the team.

**2. Paving the Way:**
A leader is not just a director but a pathfinder, reminiscent of a 'general' or 'Indiana Jones'. Leading from the front, showing the way, and overcoming obstacles is critical. It's about being hands-on in guiding the team through the thickets of technical and operational challenges.

**3. Setting and Communicating Goals:**
This skill is vital. A leader must set clear objectives and communicate them effectively to the team. In software development, this might mean establishing product roadmaps, priorities, sprint goals, and OKRs. Clear communication ensures everyone is aligned and moving towards the same target.

**4. Guiding the Team Towards Goals:**
Leadership involves efficiently managing resources, including time and the team’s skills, to achieve set goals. It's about facilitating the team's progress and ensuring that everyone contributes to the collective objective.

**5. Coaching and Mentoring:**
With teams comprising juniors to seniors, individualized approaches are essential. Leaders should engage in coaching to aid personal development and mentoring for technical and professional learning.

**6. Tailored Approach for Each Level:**
A leader must adjust their style according to team members' skill levels, Knowing when to provide instructions to juniors, mentor mid-level employees, and coach seniors is crucial. Each level requires a different method of guidance.

**7. Overcoming Obstacles:**
In startups, obstacles can take many forms, including team skill limitations. Managing and supporting the team through these challenges is key to maintaining progress and morale.

**8. Individual Development:**
Assisting team members in their development, especially those who are less skilled, is crucial. It's important to create an environment where mistakes are seen as learning opportunities, without compromising the main objectives.

Leadership in the tech sector is a dynamic and ongoing process. It involves understanding the nuances of guiding a diverse team, setting clear goals, overcoming challenges, and fostering an environment of continuous learning and development.
I just started learning SOLIDITY! Study with me?
Tags: web3, blockchain, smartcontract, australia
Published: 2023-11-13 14:23:12

So I just started learning `Solidity` - the language of blockchain and smart contract.

First of all, if you want to do it with me, we can push each other to learn more. So follow and talk to me on [X.com/rodonguyen](https://twitter.com/rodonguyen)

I'm learning from [Learn Solidity: The COMPLETE Beginner’s Guide (Latest Version 0.8) by Dapp University](https://youtu.be/EhPeHeoKF88)

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

I'm a beginner too. Don't be shy and discuss Solidity as we learn :)
[rodonguyen.dev](https://rodonguyen.dev)
Surveys for React Native
Tags: reactnative, forms, tutorial, mobile
Published: 2023-11-13 14:21:43


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


As developers, we understand the impact of user feedback in refining our apps. It's not just about fixing bugs; it's about understanding user needs and enhancing their experience. In-app feedback is a crucial piece of this puzzle. 

But who here likes building forms, say "I"... *even the crickets are silent

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

That's what I thought, no one really. Why isn't there a Typeform alternative for mobile apps, designed and created for mobile usage? 

That's why I created [Qualli](https://usequalli.com). This project started to scratch my own itch, but now I'm building it publicly. 

Qualli enables you to easily send out surveys to your users. 


### Why In-App Feedback Matters
- Real-Time Insights: Capture user sentiments and issues as they happen.
- Enhanced Engagement: Direct interaction within the app increases user engagement.
- Data-Driven Decisions: Make improvements based on actual user feedback, not assumptions.

## Integrating Qualli in React Native
Here's a quick walkthrough of setting up Qualli in your React Native project.

### Installation
Add Qualli RN SDK:

Use yarn to add the SDK to your project.
```jsx
yarn add @qualli/qualli-rn-sdk
```

Install Dependencies:
Qualli relies on @react-native-async-storage/async-storage and react-native-device-info.

For bare RN installation:
```jsx
yarn add @react-native-async-storage/async-storage react-native-device-info
```

Post-Installation:
For iOS, don't forget to run:
```jsx
npx pod install
```

If using Expo:
```jsx
npx expo install @react-native-async-storage/async-storage react-native-device-info
```

### Usage
Adding the Provider:
Wrap your main component with QualliProvider.
```jsx
import { QualliProvider } from '@qualli/qualli-rn-sdk';

function App() {
    return (
        <QualliProvider apiKey="YOUR_API_KEY_HERE">
            {/* Your components */}
        </QualliProvider>
    );
}
```

Setting Up Triggers:
Use the performTrigger function to invoke specific user actions.

```jsx
const qualli = useQualli();
qualli.performTrigger('TRIGGER_NAME');
```


Setting Custom Attributes:
Store custom attributes at the user level.

```jsx
const qualli = useQualli();
qualli.setAttributes({
    email: 'example@email.com',
    first_name: 'John',
    last_name: 'Doe',
    custom_attribute: 'value',
});
```

The SDK is fully open source and can be found [here](https://github.com/Qualli-Research-Platform/qualli-rn-sdk)


In-app feedback is more than a feature; it's a bridge connecting developers with users.
We built GPT Bot focused on API Security
Tags: chatgpt, security
Published: 2023-11-13 14:20:15

Hey there 👋 
Since last week, OpenAI has been letting anyone create their own version of ChatGPT.

We've jumped on the hype train and decided to combine our API security expertise with ChatGPT's artificial intelligence.

So we've built a [GPT Bot](https://chat.openai.com/g/g-WnhIae9dc-api-guardian?ref=escape.tech) that assists security engineers with testing and securing APIs. 

Here's how it can make your life easier:

## 1. Instant expert guidance

Need quick advice on how to perform a security assessment for your API? The API Guardian GPT Bot has got you covered! It can provide instant guidance on various security testing methodologies, including OWASP's API Security Top 10, and help you understand the ins and outs of API security.

GraphQL wordlist's recommendation by API Guardian: 
![GraphQL wordlist's recommendation by API Guardian](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xr3urmgwwzxi7idytl1f.png)

GraphQL wordlist's recommendation by ChatGPT:
![GraphQL wordlist's recommendation by ChatGPT](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/goe1jofo7ngc5qi0syhg.png)

It doesn't only provide you with a detailed reply but also recommends relevant links to the most useful Github repos.

## 2. Personalized recommendations

No two APIs are the same, and our GPT Bot understands that. It can analyze your specific use case and provide tailored recommendations for securing your API. Whether you're dealing with authentication, authorization, encryption, or any other aspect of API security, the GPT Bot can provide guidance tailored to your needs.

## 3. Stay up-to-date

API security is an ever-evolving field, and it can be challenging to keep up with the latest threats and best practices. The GPT Bot constantly updates its knowledge base to ensure that you're always armed with the most current information and strategies to protect your APIs.

## 4.Don't miss AI-generated API security jokes

We've decided to make our GPT Bot not only helpful but also funny (as far as you can go with AI-generated jokes, though). As a result, after each response, we hope to bring a smile to your face.

Go and test it out [here](https://chat.openai.com/g/g-WnhIae9dc-api-guardian?ref=escape.tech) 🚀

If you encounter any issues, want to add your material to the knowledge base, have suggestions for improvement, or simply like to share your experience, please feel free to ping us on Twitter @escapetechHQ