ALL
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...
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...
74 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...
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 JAVA OVERLOADING PYTHON 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...
151 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...
First Touch on OpenAI API
It’s been a while since ChatGPT launched, and I’ve been meaning to try out the OpenAI API. Recently, I finally took the plunge, so here’s a walkthrough of my initial experience using it.Objective: I’ve previously used ChatGPT’s interface for language translation tasks between Chinese and English. For this API experiment, I aimed to set up a simple translation function using the OpenAI API.Step 1: Getting the API KeyFirst, to access the API, I created an OpenAI account and generated an API key. This key is required for making API calls. The setup is straightforward...
323 0 TUTORIAL TRANSLATION OPENAI API FREE ACCOUNT
Special ARP Uses: Gratuitous ARP, ARP Probe, and ARP Announce
In an Ethernet environment, all data is ultimately sent in the form of a Layer 2 Ethernet Frame, which includes the Src MAC, Dst MAC, and other headers such as CRC, etc. Ethernet will then deliver the data to the destination.When we program, we often specify the IP and Port, but rarely specify the MAC address. So, how is the Frame sent out? This is done by the operating system. If the system does not know the MAC address corresponding to an IP, it will send a broadcast ARP request (since this request also needs to be sent over Ethernet, it will also fill in the Dst MAC, which is ff:ff:ff:ff:ff...