XAMPP vhosts config full example and guide
Sample configuration for xampp virtual hosts 100% work tested 2022
XAMPP vhosts config full example and guide
important for linux and mac users. Make sure permission of xampp, open etc/httpd.conf change nobody and nogroup with your username and your group
sudo gedit /opt/lampp/etc/httpd.conf
<IfModule unixd_module>
#
# If you wish httpd to run as a different user or group, you must run
# httpd as root initially and it will switch.
#
# User/Group: The name (or #number) of the user/grou ...
List of Chrome Driver command line arguments
List of Chrome Driver command line arguments
Here is the list of Chrome Driver command line Arguments.
If you are using chrome Driver for Selenium WebDriver or Protractor or …. then these are a handy useful list of command line arguments that can be used.
You may use this to look at the usuage: https://code.google.com/p/chromium/codesearch#chromium/src/chromeos/chromeos_switches.cc
Run chromedriver –help to see command line arguments for your version.
--adaboost
--aggressive
--aggressive-cache-d ...
Install markdown engine on vite ESM typescript
Install
yarn add -D vite-plugin-markdown @babel/preset-react @babel/preset-typescript @babel/env babel-plugin-module-resolver
Setup babel config
create .babelrc.js
const presets = ['@babel/env', '@babel/react', '@babel/preset-typescript'];
const plugins = [
[
require.resolve('babel-plugin-module-resolver'),
{
root: [__dirname, './src'],
extensions: ['.jsx', '.js', '.ts', '.tsx', ...
How to disable WebRTC in Chrome, Firefox, Safari, Opera Edge
NFO:
WebRTC is often talked about on VPN Websites.
WebRTC is a Technology that allows your Browser to have Video and Voice Communication Abilities.
When you use Google Meet to hold a Video Conference, you’re using WebRTC.
The same is with the Facebook Messenger Video Call.
There are other Applications that make use of WebRTC. For Example, if you’re on Discord.
It enables live Communications in real Time.
What is WebRTC Leak?
WebRTC works by sending Audio/Video Feeds between two Entitie ...
Android Activity lifecycle
is onStart or onCreate first will be triggered in android activity?
In the Android Activity lifecycle, onCreate() is triggered before onStart(). Here’s a brief overview of the sequence of method calls when an Activity is created:
onCreate(): This method is called when the activity is first created. It is where you typically perform one-time initialization such as setting up the user interface, binding data to lists, or initializing variables.
onStart(): This method is called after onCreate() ...
OkHttp cookie handling on android webview supported
Here how i implement cookie handling for android lollipop - tiramisu and also jvm and non-persistent connection.
requires:
[versions]
webkit = "1.10.0"
okhttp = "4.12.0"
[libraries]
webkit = { module = "androidx.webkit:webkit", version.ref = "webkit" }
okhttp = { module = "com.squareup.okhttp3:okhttp-bom", version.ref = "okhttp" }
okhttp-lib = { module = "com.squareup.okhttp3:okhttp" }
implementa ...
Turn git log history into markdown
#!/bin/bash
echo "writing github commit history"
git log --pretty=format:"%ad%n%h %s%n%b" --date=format:"%Y-%m-%d %H:%M:%S" | while IFS= read -r line; do
trimmed_line="${line#"${line%%[![:space:]]*}"}"
trimmed_line="${trimmed_line%"${trimmed_line##*[![:space:]]}"}"
if [ -n "$trimmed_line" ]; then
if [[ "$trimmed_line" =~ ^[0-9]{4}-[0-9]{2&# ...
Android SDK API List
API 10 (Gingerbread) - 0.3%
API 15 (Ice Cream Sandwich) - 0.3%
API 16 (Jellybean) - 1.2%
API 17 (Jellybean) - 1.5%
API 18 (Jellybean) - 0.5%
API 19 (KitKat) - 6.9%
API 21 (Lollipop) - 3.0%
API 22 (Lollipop) - 11.5%
API 23 (Marshmallow) - 16.9%
API 24 (Nougat) - 11.4%
API 25 (Nougat) - 7.8%
API 26 (Oreo) - 12.9%
API 27 (Oreo) - 15.4%
API 28 (Pie) - 10.4%
List of Android SDK versions along with their corresponding API levels and dessert code names:
Android 1.0 (API level 1): No codename
Androi ...
enable automatic memory heap resizing of android studio
To limit Android Studio’s memory usage, you can modify the studio.vmoptions file. This file contains configuration settings for Android Studio, including memory-related settings. Follow these steps:
Locate the studio.vmoptions file:
On Windows, it is usually located in the bin directory of the Android Studio installation directory. For example, C:\Program Files\Android\Android Studio\bin\studio64.exe.vmoptions.
On macOS, it is often found in the Contents/bin directory within the application b ...