ALL


  Go 1.22 for-range Fix and go.mod Dependency

With the release of Go 1.22, the Go team addressed a long-standing issue with the for-range loop variable scoping, which had been a common pitfall for developers writing concurrent code. Specifically, the problem was that the loop variable in a for-range loop was reused across iterations, leading to unexpected behavior when closures were involved.The Issue Before Go 1.22Consider the following example:package forangeimport "fmt"func Do() { done := make(chan bool) values := []string{"a", "b", "c"} for _, v := range values { go func() { fmt.Println(v) // Prints unexpect...

5 0       GOLANG FOR RANGE GO.MOD GO 1.22


  The Risks of Prioritizing Features Over Security in China's EV Industry

In recent years, China's electric vehicle (EV) industry has seen a surge in innovation and growth. Companies like BYD, NIO, XPeng, and Xiaomi have become household names, not just in China but globally. These companies have been at the forefront of integrating cutting-edge technology into their vehicles, often promoting new features such as autonomous driving, advanced infotainment systems, and seamless connectivity. However, this rapid pace of innovation has raised concerns about whether these companies are placing enough emphasis on security.The Allure of New FeaturesChinese EV makers have b...

6 0       SECURITY CHINA EV CAR


  Fix External Monitor Flickering on MacBook M4 Pro

Recently got a new MacBook M4 Pro and everything works fine until one day suddenly noticing the screen started to be flickering and never stops, realizing it might be some problem happening, so started to try to see whether it's just a glitch or persisting issue.Tried to do following:Turn off the external monitor off and then onPlug out the HDMI cable of the external monitor and plug in backRestart the MacBook M4 ProThese all failed to work, the issue still happens. So was following different online links to see it works or not.Fix 1Following the question asked on BenQ website for M1, M2 chips...

49 0       MACBOOK M4 MONITOR FLICKERING


  Testing LLM on MacOS with Llama

As a programmer, I always believe that the best way to understand something is by actually getting the hands dirty by testing it out ourselves. In past few years, with the introduction of ChatGPT, AI and associated technologies such as LLM come to a hot spot in tech industry and there are lots of platforms available and different models coming out for people to test out.This post I will demonstrate a step-by-step guide on how to run Llama(a Meta LLM) on a MacOS machine with a model. This will just do a simple installation and run and test out how it works. It doesn't involve how to fine-tune o...

75 0       GUIDE LLAMA LOCAL HUGGING FACE QWEN


  Fix Permission Issue for iTerm2 to Access Application Support on MacOS

In case you have a new MacOS setup(especially on the newly released Apple M4 MacBook) and you are trying to install/launch iTerm2 on your system, you may encounter an error where it complains that you don't have enough permission to access Application Support, the error message would be likeThere was a problem finding or creating your application support directory. iTerm2 won't work very well until this problem is fixed.It should be at ~/Library/Application Support/iTerm2.The error was:You don't have permission to save the file "iTerm2" in the folder "Application Support".If you encounter...

851 0       FIX MACOS APPLICATION SUPPORT ITERM2 PERMISSION ISSUE


  The Ultimate Guide to Implement Function Overloading in Python

IntroductionWhen it comes to function overloading, those who have learned Java should be familiar with it. One of the most common uses is logging, where different overloaded functions are called for different parameters. So, how can we implement function overloading in Python?Concept of OverloadingFunction overloading allows multiple functions with the same name to exist within the same scope, but with different parameter lists. Although many programming languages (like Java and C++) support function overloading, Python’s design philosophy does not support this feature directly.Without O...

2,631 0       PYTHON OVERLOADING JAVA GUIDE


  How Cybersecurity Preparedness Can Minimize Downtime During Cyber-Attacks

According to statistics, the average cost of a data breach reached $4.88 million in 2024, marking the highest recorded average to date. Moreover, 68 percent of data breaches in 2024 involved a human element. Cyber-attacks are no longer rare events—they’re an everyday risk for businesses. When a business isn’t prepared, even a minor attack can lead to costly downtime, disrupt operations, and harm its reputation. The good news is that businesses can reduce these impacts with proper cybersecurity measures, allowing them to respond faster and recover more efficiently when attacks...

153 0       CYBER SECURITY CYBER ATTACK


  Private LLM Integration with RAGFlow: A Step-by-Step Guide

If you’ve found your way here, you’re probably already excited about the potential of the RAGFlow project and eager to see it in action. I was in the same position, so I delved into the codebase to see how it could work with custom large language models (LLMs). This post will walk you through my findings and show you how to get RAGFlow running with your own LLM.As of now (November 8, 2024), RAGFlow offers limited support for local LLMs, and vLLM isn’t yet compatible. In our case, we needed to test it on a company project with strict dat...

385 0       AI LLM RAGFLOW RAG