Blog

SSH Permission Denied Fix

User nethues@116.203.33.80: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). Assistant The error: Permission denied (publickey,gssapi-keyex,gssapi-with-mic). indicates your SSH client failed to authenticate to the server `116.203.33.80` using your public key. Here's how to resolve it step by step: — ### ✅ Step 1: Check Your SSH Key Make sure your private key (`id_rsa` or `your-key.pem`) has the correct permissions. […]

Gemini API Error Fix

User import React, { useState } from "react"; import { GoogleGenerativeAI } from "@google/generative-ai"; // Replace with your actual API key const API_KEY = "AIzaSyC3JBp40ft_NRkP5-Br8tTdj_ry9nDrJbU"; const ChatWithGemini = () => { const [input, setInput] = useState(""); const [response, setResponse] = useState(""); const handleSend = async () => { try { const genAI = new GoogleGenerativeAI(API_KEY); […]

Gemini API Usage

User use gemini api Assistant To use the Gemini API by Google in your project, follow these steps: ### Step 1: Get API Access – Sign in to [Google AI Studio](https://aistudio.google.com/app/apikey). – Create or select a project. – Generate an API key. ### Step 2: Install Google Gemini SDK Use npm for JavaScript: “`bash User […]

DB Password Sync Process

User the DB on hetzner is the single source for all of the websites There are 2 servers One Master and one Slave. There is a Load balancer which is simply pointing at one server for now. If we change the passwords. we need to do it on both servers. Assistant Yes, that's correct. Since […]

Multiple Users Database Access

User Can we assign multiple user to same database Assistant Yes, you can assign multiple users to the same database. This is a common practice, especially when you need different privileges or access levels for various application components or roles. Here's a typical scenario using MySQL as User create second user and assign it to […]

Fix Timezone Abbreviation Issues

User Fix not found timezone and also fix abbr name We are using this function $timezoneArray = DateTimeZone::listIdentifiers(DateTimeZone::PER_COUNTRY, $row['abbr']); to get timezone but not fetcing correct timezone and some time not found Assistant The CSV file contains the following columns: – `Name`: The state or region name. – `Abbreviation`: A short abbreviation for the state […]

Country Select Values List

User Please Select CountryAfghanistanAlabamaAlaskaAlbaniaAlgeriaAndorraAngolaAnguillaAntigua & BarbudaArgentinaArizonaArkansasArmeniaAustraliaAustriaAzerbaijanBahamasBahrainBangladeshBarbadosBelarusBelgiumBelizeBeninBermudaBhutanBoliviaBosnia & HerzegovinaBotswanaBrazilBruneiBulgariaBurkina FasoBurundiCaliforniaCambodiaCameroonCanadaCape VerdeCayman IslandsCentral African RepublicChadChileChinaColombiaColoradoComorosCongoCongo Democratic RepublicConnecticutCook IslandsCosta RicaCroatiaCubaCyprusCzech RepublicDelawareDenmarkDist of ColumbiaDjiboutiDominicaDominican RepublicEast TimorEcuadorEgyptEl SalvadorEquatorial GuineaEritreaEstoniaEthiopiaFaeroe IslandsFalkland IslandsFijiFinlandFloridaFranceFrench GuianaFrench PolynesiaGabonGambiaGeorgiaGeorgiaGermanyGhanaGibraltarGreeceGreenlandGrenadaGuadeloupeGuamGuatemalaGuernseyGuineaGuinea-BissauGuyanaHaitiHawaiiHondurasHungaryIcelandIdahoIllinoisIndiaIndianaIndonesiaIowaIranIraqIrelandIsraelItalyIvory CoastJamaicaJapanJerseyJordanKansasKazakhstanKentuckyKenyaKiribatiKorea, NorthKorea, SouthKuwaitKyrgyzstanLaosLatviaLebanonLesothoLiberiaLibyaLiechtensteinLithuaniaLouisianaLuxembourgMacedoniaMadagascarMaineMalawiMalaysiaMaldivesMaliMaltaMan, Isle ofMarshall IslandsMartiniqueMarylandMassachusettsMauritaniaMauritiusMayotteMexicoMichiganMicronesiaMidway IslandsMinnesotaMississippiMissouriMoldovaMonacoMongoliaMontanaMontserratMoroccoMozambiqueMyanmarNamibiaNauruNebraskaNepalNetherlandsNetherlands AntillesNevadaNew CaledoniaNew HampshireNew JerseyNew MexicoNew YorkNew ZealandNicaraguaNigerNigeriaNiueNorfolk IslandNorth CarolinaNorth DakotaNorthern Mariana IslandsNorwayOhioOklahomaOmanOregonPakistanPalauPanamaPapua New GuineaParaguayPennsylvaniaPeruPhilippinesPitcairnPolandPortugalPuerto RicoQatarReunionRhode IslandRomaniaRussiaRwandaSaint HelenaSaint Kitts-NevisSaint LuciaSaint Pierre […]

DB password change query

User Regarding the DB password change task, I need to do it first on the staging server, right ? Or at Live. Correct above sentence Assistant Sure! Here's a corrected version of your sentence: **"I need to change the DB password on the staging server first, right? Or should I do it on the live […]

ACF Page Replication Update

User We have replicated the https://deft-digital.com/home-3/ elemenor page to fully ACF page at below location https://digital.newsoftdemo.info/home-acf/ also we have deactivated the elementor at our newsoftdemo server WP admin acf page https://digital.newsoftdemo.info/wp-admin/post.php?post=59584&action=edit Correct above sentencew Assistant Sure! Here's a corrected and more polished version of your message: — We have replicated the Elementor page from [https://deft-digital.com/home-3/](https://deft-digital.com/home-3/) […]

Elementor form email logic

User elementor form widget send email to based on dropdown selection Assistant To **send an email to different recipients based on a dropdown selection in an Elementor Form widget**, you can use a bit of custom PHP with Elementor Pro’s built-in **“Actions After Submit” → Webhook** or a **custom `functions.php` hook**. Here’s how you can […]