Posts

My ToDo List for 2024 (daily updates)

waffarx cash back

[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: < , > , <= , >= , == , !

Javascript Cheatsheet – Documentation and Code Snippets

Javascript is a scripting language, created to run in the Internet browser but later used in all places!. Javascript is always shortened as js or JS. Javascript Syntax 🔗 Variables 🔗 // declare a variable var ourName; // store values myNumber = 5; myString = "myVar"; // declare variables with the assignment operator var myNum = 0; // add, subtract, multiply and divide numbers myVar = 5 + 10; // 15 myVar = 12 - 6; // 6 myVar = 13 * 13; // 169 myVar = 16 / 2; // 8 // increment and decrement numbers i++; // the equivalent of i = i + 1 i--; // the equivalent of i = i - 1; // decimals var ourDecimal = 5.

How to Convert Arabic Numbers to Hindi Excel ?

if you want to convert numeric numbers (1234567890) to Arabic numbers (Hindi)(١٢٣٤٥٦٧٨٩٠) select the area of cells that you want to change press ctrl + 1 for format cell go to custom and type this code: [$-2060000]0 Note: Hindi numbers are ١٢٣٤٥٦٧٨٩٠ but we generally call them Arabic numbers which is not correct.

How to show hidden files in Finder in MacOS ?

Unveiling the Hidden: How to Show Hidden Files in macOS Finder Ever misplaced a file or folder in your Mac and suspect it might be hidden? Fear not! macOS hides certain system files by default, but you can easily reveal them with a few simple tricks. Here are three methods to show hidden files in your Finder: Method 1: Using the Keyboard Shortcut (Simple & Quick) 🔗 Open any Finder window.

How to create a Sliding Notification in Your Android App?

This guide will walk you through creating a custom notification that slides up from the bottom of the screen in your Android application. 1. Designing the Notification Layout (XML) 🔗 We’ll define a background drawable for the notification using an XML file named popup_background.xml. The code creates a rectangular shape with rounded corners, a solid color fill, and a black border. <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="#C999" /> <corners android:topLeftRadius="10sp" android:topRightRadius="10sp"/> <stroke android:color="#000000" android:width="1sp"/> </shape> Next, we’ll create the layout for the notification itself (e.

How to put a Button at the bottom of the screen ? - Android Development

the whole gravity / layout_gravity is a bit confusing, so here is a snippet: <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="horizontal" android:gravity="center_horizontal|bottom"> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text=" Back " android:id="@+id/btn_back"/> </LinearLayout> The line of code that makes the button at the bottom is android:gravity="center_horizontal|bottom".