In the dynamic world of software development, efficiency and consistency are key. Developers are continually seeking tools and practices that streamline their workflow, reducing overhead and allowing a greater focus on the creative aspects of coding. Enter the realm of Visual Studio Code’s Dev Containers – a feature revolutionizing the way developers interact with their coding environments.

Dev Containers in VS Code offer a consistent, isolated development environment, ensuring that the “it works on my machine” syndrome is a thing of the past. This innovation brings a fresh approach to the development process, allowing smoother code development, testing, and debugging.

Read more »

This article is intended for junior developers and focuses on how to integrate Google’s Gemini model using Java and the langchain4j framework. We’ll cover configuration settings, model strategies, and implementation, with a focus on special considerations for using Gemini and a thorough explanation of the provided Java code.

Read more »

This article dives into the integration of Langchain4j, PostgreSQL, and Liquibase within a Spring Boot environment, tailored specifically for Java developers. Langchain4j, a framework designed for efficient vector data management, when combined with PostgreSQL’s robust database capabilities and Liquibase’s schema version control, creates a powerful ecosystem. This guide will walk you through setting up these integrations, detailing the configurations and code necessary to manage complex vector data. By understanding and implementing these integrations, developers can significantly enhance the performance and scalability of their data-driven applications, paving the way for advanced analytics and machine learning operations.

Read more »

This is the first article to start studying NATS, so let’s try simple sending and receiving messages first.

Read more »

Host key verification failed

If you delete the known_hosts file, you will encounter the following situations when operating vscode.

https://i.imgur.com/X6iFwg7.png

How to fix?

1
2
$ ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts
# github.com:22 SSH-2.0-babeld-17a926d7

After completion, you can continue to operate vscode.

有的時候雖然有做驗證, 但你會看到這樣的錯誤訊息

1
2
3
4
5
6
7
8
{
"timestamp": "2020-07-06T00:55:52.132+00:00",
"status": 500,
"error": "Internal Server Error",
"exception": "java.lang.IllegalAccessError",
"message": "未知錯誤",
"path": "/api/v1/marketingActivity/prizeWheel"
}

這樣真的很不明確, 前端工程師必須一個一個去檢查到底是哪個值有問題, 久而久之你就會看到前後端大大們在門口定孤枝XD

Read more »

Cover

Why use Spring Cloud Function

Why choose Spring cloud function to develop serverless services?

Spring framework still provides abstraction capabilities to decouple our serverless services from the platform. If the developed services need to be moved to different cloud providers, you almost only need to choose a different adapter without changing the writing and settings. The biggest benefits of decoupling from the different cloud platforms.

Currently Spring cloud function provides AWS Adapter, Azure Adapter and GCP Adapter.

Spring Cloud Function on CNCF landscape

Read more »
0%