Skip to main content

Posts

Showing posts from 2025

How to configure passwordless login in Mac OS X and Linux

  Overview This article walks through configuring your website user's SSH connection to your DreamHost server so you will no longer have to enter your password. Background Once you set up a  shell user  and try to log in via  SSH , you'll find you must enter your password each time. If you’d like to avoid entering your password every time, you can set up Passwordless Login. This way, you'll be able to automatically log in immediately without needing to enter your password. How to configure passwordless login The following instructions configure Passwordless Login for any Unix, Linux, OSX, or Cygwin machine. In this article,  username@server.dreamhost.com  is used as the login example. Make sure to replace username with your actual  shell username . Make sure to replace the servername with your  DreamHost servername . Additionally, you can use the default key name of  id_ed25519  or create a custom key name. Make sure you use the key name...

Google I/O 2025 summary

  Google just dropped their  biggest Al updates ever during Google I/O 2025.  Here are 13 new Al updates you can't miss: Gemini Live. You can now turn on your camera, point at anything, and talk to Gemini about it in real time Imagen. Google's best image model yet Veo 3. The first video model with native sound generation Deep Research Project Astra. A JARVIS-like research prototype exploring the capabilities of a universal Al assistant Google Flow. Al filmmaking tool for creators Agent Mode. A new feature in the Gemini app that lets you state a goal, and Gemini will handle the steps to achieve it Google Jules. Jules is an Al-powered coding assistant that can read your code, write tests, fix bugs, and update dependencies Al Mode in Search. Al Mode transforms Google Search into a conversational assistant Real-time speech translation in Google Meet Google Beam. An Al-first video communication platform that turns 2D video stream...

MCP vs RAG (Model Context Protocol vs Retrieval Augmented Generation)

RAG (Retrieval-Augmented Generation) focuses on enhancing AI responses by retrieving external data, while MCP (Model Context Protocol) standardizes how AI interacts with various data sources and tools. Overview of RAG Definition: RAG is an AI architecture that improves the accuracy and relevance of responses generated by large language models (LLMs) by pulling in up-to-date information from external sources, such as databases or APIs, before generating a reply. 2 Functionality: When a user submits a query, RAG retrieves relevant content from connected data sources and appends this information to the input prompt, enriching the model's context with real-world relevance. This helps reduce inaccuracies and hallucinations in AI responses by grounding them in verifiable sources. 2 Use Cases: RAG is particularly useful in scenarios where real-time data is crucial, such as customer support, news aggregation, and any application requiring current information. 3 Sources Overview of MCP Defi...

PostgreSQL list of commands

PostgreSQL, or Postgres, is an object-relational database management system that utilizes the SQL language. PSQL is a powerful interactive terminal for working with the PostgreSQL database. It enables users to execute queries efficiently and manage databases effectively. Here, we highlight some of the most frequently used PSQL commands, detailing their functionalities to enhance your PostgreSQL experience. Top PSQL Commands in PostgreSQL Here are the top 22 PSQL commands that are frequently used when querying a PostgreSQL database: Serial No.CommandDescription1 psql -d database -U user -W Connects to a database under a specific user 2 psql -h host -d database -U user -W Connect to a database that resides on another host 3 psql -U user -h host "dbname=db sslmode=require" Use SSL mode for the connection 4 \c dbname Switch connection to a new database 5 \l List available databases 6 \dt List available tables 7 \d table_name Describe a table such as a column, type, modifiers of c...

How to deply Ollama & open web-ui on your laptop

How to deploy Ollama  Installation: Download Ollama:   Get the Ollama package from the  GitHub repository .   Install Dependencies:   Ensure you have any required dependencies, including libraries for your specific model.   Verify Installation:   Use  ollama --version  to confirm Ollama is installed correctly.   2. Model Deployment and Usage: Pull the Model:   Use the  ollama pull <model_name>  command to download the desired model.   Run the Model:   Use  ollama run <model_name>  to initiate the model's execution.   Interacting with the Model:   Ollama provides an API at  http://localhost:11434/api/generate  for interacting with the model.   Optional: Web UI:   Explore  Open WebUI  for a user-friendly interface to manage and interact with models.   Optional: Custom Applications:   Build custom applications using libraries like FastAPI and Gr...

Run windows apps through Wine emulator on Mac OS Apple Silicon

  https://macappstore.org/whiskey/   About the App App name : Whiskey App description : whiskey (App: Whiskey.app) App website :  http://usewhiskey.com/ Install the App Press  Command+Space  and type  Terminal  and press  enter/return  key. Copy and paste the following command in Terminal app: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"  and press  enter/return  key. Wait for the command to finish. If you are prompted to enter a password, please type your Mac user's login password and press ENTER. Mind you, as you type your password, it won't be visible on your Terminal (for security reasons), but rest assured it will work. Now, copy/paste and run this command to make  brew  command available inside the Terminal:  echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile Copy and paste the following command: brew install --cask whiskey Done! You can ...

pivot_root vs chroot vs switch_root

The chroot command modifies the root directory for a process, limiting its access to the rest of the filesystem. This is useful for security, containerization, or testing purposes. The process running under chroot has no knowledge of anything outside its jail, making it appear as if it is running on the root filesystem. pivot_root vs chroot vs switch_root 1 2 3 In Linux, pivot_root, chroot, and switch_root are commands used to change the root filesystem of a process. Each has its specific use cases and functionalities. pivot_root The pivot_root command is used to change the root filesystem of the current process and its children. It swaps the current root filesystem with a new one, making the old root accessible at a specified location. This command is typically used during the boot process when the system transitions from an initial ramdisk (initrd) to the real root filesystem 1 . Example: mount  /dev/hda1 /new-root cd  /new-root pivot_root . old-root exec chroot  . sh ...

Vim Copy & Paste Terminology

The keyboard shortcuts to copy, cut, and paste can be boiled down into three characters that utilize Vim-specific terminology. Understanding these terms will help you recall the correct keyboard shortcut. Y stands for “yank” in Vim, which is conceptually similar to copying. D stands for “delete” in Vim, which is conceptually similar to cutting. P stands for “put” in Vim, which is conceptually similar to pasting. I deliberately use the phrase “conceptually similar to” because these actions are not one and the same. If you want to dive deeper into this explanation, scroll down to the section below titled “What Happens Under the Hood?” Copy, Cutting, and Pasting in Vim/Vi - The Basics 1.Press esc to return to normal mode. Any character typed in normal mode will be interpreted as a vim command. 2.Navigate your cursor to the beginning of where you want to copy or cut. 3.To enter visual mode, you have 3 options. We suggest using visual mode because the selected characters are highlighted, an...