programming

All About My Custom Hugo Theme KMT

My ToDo List for 2024 (daily updates)

waffarx cash back

Ubuntu in Brief

Ubuntu is the defacto standard of Linux distributions. I love Ubuntu with GNOME desktop environment. Ubuntu Look πŸ”— Ubuntu has a unique look. I can differentiate it by the brownish color of desktop UI, and the left long panel. I really think that putting the apps panel on the left is the best position as we need the vertical space more than the horizontal space. Stable & Reliable πŸ”— Ubuntu is based on Debian.

Pop OS in Brief

Pop! os is built on top of Ubuntu. So it is reliable and stable. Pop! OS is created by System76 which make sure that it has good support for gaming / Steam. Pop! OS has better support for gaming and laptop device drivers in comparison to other Linux distributions. Pop! Shop πŸ”— Pop! OS has an applications store that show applications from Ubuntu repo, Pop repo and Flatpak repo. So, you have access to more software tools and programs.

How to accept payments through Google Pay in Angular ?

To integrate Google Pay to your Angular project, install Angular component for Google Pay by this command. npm install @google-pay/button-angular Then register Google Pay button module to application module using this line of code. import { GooglePayButtonModule } from '@google-pay/button-angular'; Add it to imports in app.module.ts. imports: [ ... GooglePayButtonModule, ... ] Now, you can add google-pay-button like this. <google-pay-button environment="TEST" buttonSizeMode="fill" [paymentRequest]="paymentRequest" (loadpaymentdata)="onLoadPaymentData($event)" ></google-pay-button> And, in the typescript file, use this.

What is the difference between appcenter and appcenter (system-wide) in Elementary OS ?

It is very simple. If you chose appcenter (system-wide), the application will be available for all users on the system. But if you chose appcenter, the application you installed will be available for the current user only. This is a good option in Elementary OS. So if you want to install some apps for a user, and not for the other users YOU CAN. The slogan β€œYOU CAN” is the best slogan for Linux community.

Create and remove swap files in Ubuntu Linux

Computers use RAM to store data and run programs and services. So, the data / programs in RAM are temporarily available β€” as you use the program or data. When you shutdown your computer, RAM will be free. RAM is faster than HDD or SSD in read and write speed. So we use it to hold the currently running programs and data. But they are expensive, so we use less of them and rely on swap file to delegate some less used data / program to it.

[solved] How to fix csrf invalid in Jumia ?

Invalid CSRF token πŸ”— This error message means that your browser couldn’t create a secure cookie, or couldn’t access that cookie to authorize your login. This can be caused by ad-blocking or script-blocking plugins, but also by the browser itself if it’s not allowed to set cookies. Or that your laptop is shutdown before completing the login request and cookie-setting. Make sure that the error is persistent. Refresh the webpage.

CSS & CSS3 Cheatsheet

CSS is a language that describes the style of an HTML document. CSS describes how HTML elements should be displayed. CSS stands for Cascading Style Sheets. CSS saves a lot of work becuase it can control the layout of multiple web pages all at once. CSS rule-set consists of a selector and a declaration block , see the following image. The declaration block contains one or more declarations separated by semicolons.

Laravel – Documentation and Code Snippets

Laravel is a framework for backend development for websites. It is written in PHP programming language. We use PHP to write website backend code in Laravel framework. A list of operators on Eloquent’s where() method πŸ”— When you use Eloquent’s where() method, by default it will use the = operator (i.e. ->where('fieldname','value') will generate ... WHERE fieldname = 'value'.... However you are not limited to just =. You can do something like this:

Kotlin for Android - Documentation and Code Snippets

All you need to start creating Android app in Kotlin. Kotlin Syntax πŸ”— Print to console πŸ”— print("Amit Shekhar") println("Amit Shekhar") Constants and Variables πŸ”— var name = "Amit Shekhar" val name = "Amit Shekhar" Assigning the null value πŸ”— var otherName : String? otherName = null Verify if value is null πŸ”— text?.let { val length = text.length } // or simply val length = text?.length Concatenation of strings πŸ”— var firstName = "Amit" var lastName = "Shekhar" var message = "My name is: $firstName $lastName" New line in string πŸ”— val text = """ |First Line |Second Line |Third Line """.

Java for Android – Documentation and Code Snippets

All you need to create Android app in Java. Java Syntax πŸ”— Primitive Data Types πŸ”— byte short int long float double char boolean Java Operators πŸ”— Arithmetic: + , – , * , ? , % Assignment: = , -= , += , *= , /= , %= , &= , ^= , |= , «= , »= , »>= Bitwise: ^ , & , | Logical: && , || Relational: < , > , <= , >= , == , !