Skip to main content

Posts

LXC Create Archlinux

lxc-create -n a-customer-project -t download -- --dist archlinux --release current --arch amd64 lxc-start -n a-customer-project
Recent posts

Neovim Java IDE

Neovim Configuration that makes JDTLS work JDTLS: The Eclipse JDT Language Server JDTLS, the Eclipse JDT Language Server, is a Java language specific implementation of the Language Server Protocol. It can be used with any editor that supports the protocol, providing robust support for the Java language. This allows developers to leverage features such as code completion, refactoring, and error checking, enhancing their productivity and coding experience. Configuring JDTLS with Neovim While JDTLS offers great features, getting it to work with Neovim is not straightforward. Manual configuration is required to ensure that the language server integrates seamlessly with the editor. Below are the configurations needed to set up JDTLS in Neovim. Plugin Configuration: lua/plugins/jdtls.lua return {...

Workstation 17.6.2 Changelog

VMware Workstation Pro 17.6.2 has beeen released 17th December 2024. Build Id is 24319023 Resolved Issues from the VMWare Website After performing snapshot operations in the Snapshot Manager, VMware Workstation for Linux crashes Taking, deleting, or restoring snapshots through the Snapshot Manager might cause VMware Workstation for Linux to crash. This issue is resolved in VMware Workstation 17.6.2. Unable to take and use snapshots on a Linux guest operating system Taking or trying to use snapshots on a Linux guest operating system causes Workstation to stop responding. The issue is resolved in Workstation 17.6.2 / Fusion 13.6.2. Virtual machines on Windows 11 hosts become unresponsive after unlocking the device After locking or unlocking the device with a virtual machine installed on a Windows 11 host, the virtual machine becomes unresponsive. The kcompactd kernel process causes virtual machines on Linux hosts to become unresponsive Virtual machines on Linux ho...

o1 system instruction temperature

Understanding the Differences When Using OpenAI "o1" Models If you’re integrating OpenAI’s REST API and plan to use the "o1" series models, it’s essential to be aware of some key differences compared to other models like the "gpt" series. This blog post highlights two notable changes and provides examples to help you adjust your implementation. No "system" Role The "o1" models only recognize the "assistant" and "model" roles in the conversation format. The "system" role, commonly used in the "gpt" series to define behavior, is not applicable when using these models. Instead, the functionality and behavior are implied by the model itself or managed through the prompt and conversation context. No "temperature" Setting Unlike other models where you can adjust the randomness of responses using the "temperature" setting,...

Clarify Service Repository

Clarify Service and Repository in Programming In the world of software development, the terms service and repository are often used interchangeably, yet they serve distinct purposes. Understanding the difference between these two concepts is crucial for designing clean and maintainable code. In this blog post, we will explore the roles of services and repositories, and provide a practical example to illustrate their differences. Understanding Services and Repositories Subtopic 1: Defining Services and Repositories When programming, we often use the terms service and repository to define similar things. A service is typically used for fetching or pushing data from or to various sources. It acts as a mediator between the application and the data sources, handling business logic and data transformation. On the other hand, a repository is used for getting or storing data from or to a specific data source, such as a database or an external API. It abstrac...

php annotation type

Annotation to indicate the type of a variable Static analysis tools are invaluable for catching errors and improving code quality. However, they sometimes struggle to infer the type of a variable, especially in complex scenarios. This can lead to false positives or missed errors. In this post, we'll explore how to use annotations to explicitly tell Intelephense (and other similar tools) the type of a variable in PHP, ensuring accurate static analysis. The Problem: Intelephense's Limitations Let's say we have a PHP controller method where we retrieve a user object: class TestAuthController extends AbstractController { #[Route('/api/test/auth', name: 'api_test_auth')] public function testAuth(): Response { $user = $this->getUser(); if ($user) { return $this->json( [ 'id' => $user->getId(), 'username' => $user->getUserIdentifier(), ...

alias neovim config

One command launch Launching Neovim configuration is usually done with 2 or 3 steps. I don't want that, I want it to be one step. Use alias In "~/.bashrc": shopt -s globstar nvim_config() { cd ~/.config/nvim nvim *.lua **/*.lua } alias nvim-config='nvim_config'