ALL


  Do Not Be Misled by ‘Build an App in 5 Minutes’: In-Depth Practice with Cursor

In August this year, I tried out Cursor and was thoroughly impressed, prompting me to write an introductory article about it. Soon after, I transitioned my daily work environment entirely from GitHub Copilot + JetBrains to the paid version of Cursor. After several months of use, it has felt incredibly smooth.While using it myself, I’ve often recommended Cursor to colleagues and friends. However, many of them still have questions, such as:What advantages does it have over native ChatGPT or Claude? Is Cursor’s power mainly because of Claude Sonnet 3.5?How does it differ from GitHub C...

  11,911      0       ARTIFICIAL INTELLIGENCE GUIDE CURSOR CODE EDITING WINDSURF DISCUSSION


  Gemini Example with Go

To connect and use Gemini with Go, Google's LLM, one can use their official Go SDK for doing this. In this post, we will just show a simple chat example to demonstrate how to make it work with Go.The example is just to ask the model to translate some English to Chinese and get its output. The code actually looks like:var client *genai.Client// geminiOnce.Do(func() {client, err = genai.NewClient(ctx, option.WithAPIKey(string(apiKey)))if err != nil { log.Fatal(err)}model := client.GenerativeModel("gemini-1.5-flash-latest")model.SetTemperature(0.1)resp, err := model.GenerateContent(ctx, genai.Tex...

  180      0       EXAMPLE GO TRANSLATION GOLANG GEMINI


  Announcing New Feed Service

We’re thrilled to announce that Feed is now live! Feed brings you the hottest tech stories daily, covering trending topics like AI, LLMs, Rust, Python, and more.What is Feed?Feed is your personalized tech news curator. It uses AI to gather and filter the most relevant stories from around the world, ensuring you stay informed without being overwhelmed. Whether it’s a breakthrough in AI or a new feature in Rust, Feed delivers just the right amount of information.How Does It Work?Feed leverages a robust AI pipeline to:Collect stories from the web.Assess their relevance to specific tec...

  716      0       AI CHINESE TECH FEED


  13 Hours of Crisis: Tracking a GitHub Poisoning Incident

Incident OverviewSince 6 PM Beijing Time on December 4, 2024, “ghost repositories” have been appearing on GitHub. These repositories contain no code but include deceptive virus files. That same day, they became the fastest-growing repositories on GitHub in terms of stars. Over 180 fake zombie accounts were spreading the virus, waiting for victims to fall into their trap.A Chinese developer—myself—took notice of all this. After days of probing and searching, I identified the attacker.Incident DetailsInitially, I was developing an open-source program to identify early-sta...

  665      0       GITHUB CHINA POISON SIMPLEBOT


  How To Reset Git Repository to Remove Sensitive Information Committed Before

To reset a Git repository and remove all its history (such as to eliminate sensitive information from commits), follow these steps carefully. Be aware that this process is destructive and will rewrite the repository, so ensure this is what you want.1. Backup the Current RepositoryBefore making any irreversible changes, create a backup of your repository in case you need to reference the old data later.2. Create a New Branch Without History# Move to your repositorycd /path/to/your/repo# Checkout a new orphan branchgit checkout --orphan clean-historyAn orphan branch starts without any history.3....

  873      0       HOW TO GIT RESET SENSITIVE INFORMATION


  The Missing Session Cookie While Using GoLang Gin

Gin is a widely used web framework in Go, offering powerful features to streamline website development. Among its many capabilities, handling sessions and cookies is a critical aspect for building functional web applications.This post highlights a behavior in the Gin framework that may not be immediately obvious or intuitive—the missing session cookie issue.So, what exactly is the missing session cookie issue? It occurs when a session is created and saved in one route but isn’t accessible in other routes. Additionally, the expected session cookie with the specified key is not prese...

  991      0       SESSION GO GOLANG COOKIE NOT WORKING GIN MISSING


  Python PLC Honeypot: Env Deployment And Attack Detection

In the previous article, we introduced the design of Python PLC Honeypot Project, this article will provide detailed step-by-step instructions on how to deploy and use the honeypot system in your environment for detecting potential attacks on OT (Operational Technology) networks. The article includes three main section: Design of Attack Alert and Notification FunctionHoneypot deployment: an example deployment of a mixed OT protocol honeypot, consisting of a simple setup with two 1-to-1 emulator-controller pairs. As a Green Team engineer, you'll learn how to configure and deploy ...

  190      0   


  Upgrade phpMyAdmin Version in WAMP

Once PHP version is upgraded in WAMP(especially from PHP 5 to PHP 8), we may encounter issue where phpMyAdmin may not work anymore. It needs us to make some upgrade of phpMyAdmin in this case. To do upgrade, can follow below steps.Download the latest phpMyAdmin version. Unzip the downloaded file and copy it to c:\wamp64\apps and rename it to phpmyadminx.y.z, the version you downloaded.Copy the config.inc.php file from the old phpMyAdmin folder to the new one.Update the alias of Apache server to point the phpMyAdmin version to the new location.Update the phpmyadmin.conf file opened in step...

  478      0       WAMP PHPMYADMIN UPGRADE GUIDE PHP 8