programming

All About My Custom Hugo Theme KMT

My ToDo List for 2024 (daily updates)

waffarx cash back

How do I completely uninstall Node.js, and reinstall from beginning (Mac OS X)?

uninstall Node.js 🔗 There is a /Users/myusername/local folder that contained a include with node and lib with node and node_modules. Deleting these local references. Run this command in your Terminal. sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*} Or use this command. sudo rm -rf /usr/local/bin/npm /usr/local/share/man/man1/node* /usr/local/lib/dtrace/node.d ~/.npm ~/.node-gyp or do those steps instead. To completely uninstall node + npm is to do the following: go to /usr/local/lib and delete any node and node_modules go to /usr/local/include and delete any node and node_modules directory if you installed it with brew install node, then run brew uninstall node in your terminal check your Home directory for any local or lib or include folders, and delete any node or node_modules from there such as ~/.

Three Mistakes You Must Avoid On The Internet

If you are a youtuber and/or blogger or have any business on the internet, make you you do not make those mistakes. Spam 🔗 The repeated comment on Facebook on too many posts is spam. By this repeated post or comment, you spam the news feed on other users. And that’s a prohibited thing on all websites especially platforms (Facebook, YouTube, Twitter, .. etc). Scam 🔗 When you post a link of a poll and say that this website give you an iPhone as a prize, you are scammer!

Design A Blogger Theme - Tutorial

Creating a blogger theme is not difficult as you might think. I searched on Google, read some documentations and tutorials, and I created a Blogger theme. So you can create your own Blogger theme too. You need to know how Blogger theme works? and How blog theme shows up? Is this tutorial for you? 🔗 You must know fundamentals of HTML, CSS, Javascript and XML to understand this tutorial easily. So you can create your own customized blogger theme after this well-documented tutorial.

How to reduce the size of image without losing quality ?

two types of compression 🔗 You can reduce the size of images by compression. But there are two types of compression. lossless compression lossy compression best website to compress images 🔗 There are too many programs, apps and websites to compress images. But I see that https://compressor.io/ website is the best one. In this website you have both types of compression. The lossless compression dosn’t lose quality, yet lossy compression make image lose a tiny amount of details.

Native Lazy Loading Images and Iframes

what is lazy-loading 🔗 Lazy-loading means load this element on demand. We use the lazyloading technique to speed up the web page load time. using lazyloading with images 🔗 Sample code for image element with lazy loading enabled. <img width="" height="" loading="lazy" src="" alt="" /> The loading="lazy" is to load the image on demand. width="200" and height="400" to save the space for the loading image. src="" for the image url.

How to Create File Chooser in Gtk using gotk3 ?

If you just want the complete code snippet, here is it. package main import ( "github.com/gotk3/gotk3/gdk" "github.com/gotk3/gotk3/gtk" ) func main() { gtk.Init(nil) win, _ := gtk.WindowNew(gtk.WINDOW_TOPLEVEL) win.SetTitle("sample app") win.Connect("destroy", func() { gtk.MainQuit() }) grid, _ := gtk.GridNew() win.Add(grid) imgview, _ := gtk.ImageNew() pbuf, _ := gdk.PixbufNewFromFileAtScale("./img/default.png", 400, 400, true) imgview.SetFromPixbuf(pbuf) grid.Attach(imgview, 0, 0, 1, 1) textentry, _ := gtk.EntryNew() grid.AttachNextTo(textentry, imgview, gtk.POS_BOTTOM, 1, 1) btnChoose, _ := gtk.ButtonNewWithLabel("Choose An Image") grid.

How to Shutdown your PC using Python ?

If you want to shutdown your Windows PC from your Python code, just use this code snippet. import os os.system("shutdown /s /t 1") Here’s a breakdown of what it does: 1. Import 🔗 import os: This line imports the os module, which provides functions for interacting with the operating system. 2. os.system("shutdown /s /t 1") 🔗 os.system: This function is similar to the system function in C. It takes a command string as an argument and executes it on the operating system.

How to Shutdown PC using C++ ?

If you want to shutdown your Windows PC from your C++ code, use this code snippet. #include <stdio.h> #include <stdlib.h> int main() { system("c:\\Windows\\system32\\shutdown /s"); return 0; } Here’s a breakdown of what this code does: 1. Includes 🔗 <stdio.h>: This header file provides standard input/output functions like printf. However, it’s not directly used in this code. <stdlib.h>: This header file provides general utility functions, including system which is used in this code.

How to Fix (main:30677): Gtk-WARNING **: cannot open display: ?

If you are facing this error (main:30677): Gtk-WARNING **: 05:40:47.665: cannot open display: just install Gtk+ development library, and set the display screen to 0. Installing Gtk+ using Homebrew 🔗 If you are using a UNIX-like OS such as Mac OS X, or a Linux distribution. You can use Homebrew package manager to install Gtk+ as following. brew install Gtk+ Install Gtk+ using apt 🔗 If you are using Debian, Ubuntu, Elementary OS, Linux Mint, .

How to Tune Garbage Collector in Go Language ?

How to set the GOGC value ? 🔗 You can set its value in the terminal like this. GOGC=200 Or you can change it in yaml file of the environment variable when using docker or kubernetes. What is the default value of GOGC ? 🔗 The default value of GOGC is 100 which means that the garbage collection process will run when the allocations doubled from previous allocations count.