RECENT IN SPORTS

मंगलवार, 11 फ़रवरी 2025

thumbnail

How to set your custom logo and splash screen in a Apache Cordova app

Cordova app me apna custom logo aur splash screen (jo app start hone par dikhata hai) add karna bahut aasan hai. Iske liye aapko Cordova plugins ka use karna hoga, jaise **cordova-plugin-splashscreen**. Neeche step-by-step guide diya gaya hai: --- ### **Step 1: Splash Screen Plugin Install Kijiye** Pehle, aapko Cordova ke splash screen plugin ko install karna hoga. ```bash cordova plugin add cordova-plugin-splashscreen ``` Ye plugin splash screen aur app icon ko manage karne me madad karega. --- ### **Step 2: Apne Logo Aur Splash Screen Images Prepare Kijiye** Aapko apne logo aur splash screen ke images ko prepare karna hoga. Ye images multiple resolutions me honi chahiye kyunki Android devices alag-alag screen sizes support karte hain. #### **Splash Screen Image Requirements** - Format: PNG - Background transparent ho sakta hai ya solid color. - Recommended sizes: - `ldpi`: 200x320 - `mdpi`: 320x480 - `hdpi`: 480x800 - `xhdpi`: 720x1280 - `xxhdpi`: 960x1600 - `xxxhdpi`: 1280x1920 #### **App Icon Requirements** - Format: PNG - Background transparent nahi hona chahiye. - Recommended sizes: - `ldpi`: 36x36 - `mdpi`: 48x48 - `hdpi`: 72x72 - `xhdpi`: 96x96 - `xxhdpi`: 144x144 - `xxxhdpi`: 192x192 --- ### **Step 3: Config.xml File Update Kijiye** Cordova project ke root folder me `config.xml` file hoti hai. Is file me aapko splash screen aur app icon ke settings add karni hongi. #### **3.1 Splash Screen Settings Add Kijiye** `config.xml` me neeche diye gaye lines add kijiye: ```xml ``` Yahan `src` attribute me image files ke paths mention karein. Aapko `res/screen/android/` folder create karna hoga aur usme saari splash screen images rakhni hongi. #### **3.2 App Icon Settings Add Kijiye** `config.xml` me app icon ke liye bhi settings add kijiye: ```xml ``` Yahan bhi `src` attribute me icon files ke paths mention karein. Aapko `res/icon/android/` folder create karna hoga aur usme saari icon images rakhni hongi. --- ### **Step 4: Splash Screen Configuration Add Kijiye** Splash screen plugin ke behavior ko customize karne ke liye `config.xml` me ye settings add kijiye: ```xml ``` - `SplashScreenDelay`: Splash screen kitni der tak dikhaye (milliseconds me). - `AutoHideSplashScreen`: Splash screen automatically hide ho jaye ya nahi. - `FadeSplashScreen`: Splash screen fade-in/out effect show ho. --- ### **Step 5: Build Process Run Kijiye** Ab aap apne project ko rebuild karenge taaki changes apply ho jaye. ```bash cordova build android ``` Agar APK generate karna hai to: ```bash cordova build android --release ``` --- ### **Step 6: Test Kijiye** Apne APK file ko emulator ya physical device par test kijiye aur dekhein ki splash screen aur app icon sahi se load ho rahe hain. --- ### **Optional: Automated Tools Use Karke Images Generate Kijiye** Agar aap manually saari resolutions ke images create nahi karna chahte, to automated tools ka use karein: 1. [Android Asset Studio](https://romannurik.github.io/AndroidAssetStudio/) - Ye tool aapko ek hi image upload karne par saari resolutions ke icons aur splash screens generate kar deta hai. 2. Generated files ko download karke `res/icon/android/` aur `res/screen/android/` folders me paste karein. --- ### **Conclusion** Is process ko follow karke aap apne Cordova app me custom splash screen aur app icon add kar sakte hain. Agar aapko koi step samajh nahi aaya ho ya problem aa rahi ho, to comment kijiye aur hum aapki help karenge! 😊 **Final Output:** - Splash screen aur app icon successfully configure honge aur app start hone par splash screen dikhayi dega. --- Cordova project me `res/icon/android/` aur `res/screen/android/` folders **main root folder** ke andar create karna hota hai, **nahi ki `www` folder ke andar**. Ye folders Cordova build process ke liye specific hote hain, aur unme aapke app icons aur splash screen images store kiye jate hain. --- ### **Folder Structure Explanation** Ek typical Cordova project ka folder structure neeche diya gaya hai: ``` MyApp/ ├── config.xml <-- App configuration file ├── hooks/ <-- Custom scripts (optional) ├── platforms/ <-- Platform-specific code (e.g., Android, iOS) ├── plugins/ <-- Installed plugins ├── res/ <-- Resources folder (create this manually) │ ├── icon/ <-- Icons for different platforms │ │ └── android/ <-- Android-specific icons │ └── screen/ <-- Splash screens for different platforms │ └── android/ <-- Android-specific splash screens ├── www/ <-- Web assets (HTML, CSS, JS files) └── package.json <-- Node.js package file (optional) ```
thumbnail

Convert HTML file to APK using Apache Cordova

Cordova ka istemal karke HTML file ko APK (Android Application Package) me convert karna ek straightforward process hai. Is guide me aapko step-by-step bataya jayega ki kaise aap Cordova ka use karke apne HTML file ko Android app me convert kar sakte hain. --- ### **Step 1: System Setup** Pehle, aapko apne system ko set up karna hoga taki Cordova aur Android development environment sahi se kaam kare. #### **1.1 Node.js Install Kijiye** - [Node.js](https://nodejs.org/) download kijiye aur install kijiye. - Terminal ya Command Prompt kholein aur `node -v` aur `npm -v` likhkar check kijiye ki Node.js aur npm sahi se install hua hai. #### **1.2 Java Development Kit (JDK) Install Kijiye** - [JDK](https://www.oracle.com/java/technologies/javase-downloads.html) download kijiye aur install kijiye. - Environment variable me `JAVA_HOME` set kijiye JDK ke path par. #### **1.3 Android Studio Install Kijiye** - [Android Studio](https://developer.android.com/studio) download kijiye aur install kijiye. - Android Studio me "SDK Manager" open kijiye aur Android SDK install kijiye. - Environment variable me `ANDROID_HOME` set kijiye Android SDK ke path par. #### **1.4 Gradle Install Kijiye** - [Gradle](https://gradle.org/releases/) download kijiye aur install kijiye. - Environment variable me `GRADLE_HOME` set kijiye Gradle ke path par. --- ### **Step 2: Cordova Install Kijiye** Terminal ya Command Prompt me neeche diye gaye command chalayein: ```bash npm install -g cordova ``` Ye Cordova globally install karega. Installation complete hone ke baad, `cordova -v` likhkar version check kijiye. --- ### **Step 3: Naya Cordova Project Create Kijiye** Ab aap ek naya Cordova project create karenge. ```bash cordova create MyApp ``` - `MyApp` project ka naam hai. Aap isko apne pasand ke according change kar sakte hain. - Ye command ek folder create karega jisme project files hongi. --- ### **Step 4: Apna HTML File Add Kijiye** Cordova project ke `www` folder me jaayein. Ye folder app ke frontend files ko contain karta hai. 1. `www` folder me default files hongi (`index.html`, `css`, `js`, etc.). 2. Agar aapka apna HTML file hai, to usko `www` folder me replace kijiye ya merge kijiye. 3. Agar aap CSS, JavaScript, ya images use kar rahe hain, to unhe bhi `www` folder me add kijiye. --- ### **Step 5: Android Platform Add Kijiye** Ab aapko Cordova project me Android platform add karna hai. ```bash cd MyApp cordova platform add android ``` Ye command Android platform ko project me add karega. --- ### **Step 6: Build Process Start Kijiye** Ab aap apne project ko build kar sakte hain. ```bash cordova build android ``` Ye command Android APK generate karega. APK file `platforms/android/app/build/outputs/apk/debug/` folder me milegi. --- ### **Step 7: APK Test Kijiye** Apne APK file ko test karne ke liye, aap emulator ya physical device ka use kar sakte hain. #### **7.1 Emulator Use Karne Ke Liye** ```bash cordova emulate android ``` #### **7.2 Physical Device Use Karne Ke Liye** 1. USB debugging enable kijiye apne Android device par. 2. Device ko computer se connect kijiye. 3. Neeche diye gaye command run kijiye: ```bash cordova run android ``` --- ### **Step 8: Release APK Generate Kijiye (Optional)** Agar aap release version ke APK generate karna chahte hain, to ye steps follow kijiye: 1. `build.json` file create kijiye aur signing ke details add kijiye. 2. Neeche diye gaye command run kijiye: ```bash cordova build android --release ``` 3. APK sign kijiye keval jar tool ya Android Studio ka use karke. --- ### **Common Issues Aur Solutions** 1. **Java Path Issue**: Agar `JAVA_HOME` set nahi hai, to Cordova commands kaam nahi karenge. Environment variables check kijiye. 2. **Android SDK Missing**: Agar Android SDK install nahi hai, to `cordova platform add android` fail ho jayega. SDK install kijiye. 3. **Build Failures**: Agar build fail ho raha hai, to logs check kijiye aur missing dependencies install kijiye. --- ### **Conclusion** Ye process follow karke aap apne HTML file ko Cordova ka use karke APK me convert kar sakte hain. Agar aapko kisi step me problem aa rahi hai, to comment kijiye aur hum aapki help karenge! 😊 **Final Output:** - APK file `platforms/android/app/build/outputs/apk/debug/` folder me generate hogi.

शुक्रवार, 7 फ़रवरी 2025

thumbnail

CSS Library Documentation: Responsive Font System

# CSS Library Documentation: Responsive Font System ## Introduction Welcome to the documentation for the **font.css** library. This lightweight CSS library provides predefined font-size classes to ensure scalable and responsive typography across different screen sizes. ## Features - **Predefined font sizes**: `1vw` to `100vw` - **Viewport-based scaling** for fluid typography - **Responsive design support** for mobile and tablet screens - **Easy-to-use class-based system** ## Installation Include the `font.css` file in your project: ```html ``` ## Usage ### Default Font Classes (Large Screens) Apply font sizes using `.f-*` classes: - `.f-10` → `font-size: 10vw;` - `.f-20` → `font-size: 20vw;` - `.f-50` → `font-size: 50vw;` Example: ```html

This text is 10vw in size.

``` ### Mobile-Specific Font Classes (≤ 480px) Use `.mf-*` classes for smaller screens: ```css @media (max-width: 480px) { .mf-10 { font-size: 10vw; } } ``` Example: ```html

This text is 5vw on mobile.

``` ### Tablet-Specific Font Classes (481px - 768px) For tablets, use `.tf-*` classes: ```css @media (min-width: 481px) and (max-width: 768px) { .tf-15 { font-size: 15vw; } } ``` Example: ```html

This text is 15vw on tablets.

``` ## Conclusion The **font.css** library simplifies responsive typography with predefined classes, ensuring optimal readability across devices. Include it in your project today for scalable font management!
thumbnail

CSS Library Documentation: Margin & Padding System

# CSS Library Documentation: Margin & Padding System ## Introduction Welcome to the documentation for the **mp.css** library. This lightweight CSS library provides a predefined set of margin and padding classes to simplify spacing management in your web projects. Designed with responsiveness in mind, it includes styles for desktops, tablets, and mobile devices. ## Features - **Predefined spacing classes**: From `1px` to `100px` - **Support for all directions**: `top`, `bottom`, `left`, `right` - **Mobile and tablet-specific styles** - **Lightweight and easy to implement** ## Installation Simply include the `mp.css` file in your project: ```html ``` ## Usage ### Margin Classes Use the following classes to add margins to elements: - `.tm-10` → `margin-top: 10px;` - `.bm-20` → `margin-bottom: 20px;` - `.rm-15` → `margin-right: 15px;` - `.lm-5` → `margin-left: 5px;` Example: ```html
This div has a top margin of 20px and a bottom margin of 10px.
``` ### Padding Classes Use these classes to apply padding: - `.tp-5` → `padding-top: 5px;` - `.bp-10` → `padding-bottom: 10px;` - `.rp-15` → `padding-right: 15px;` - `.lp-20` → `padding-left: 20px;` Example: ```html

This paragraph has top and bottom padding of 10px.

``` ## Responsive Design ### Mobile (≤ 480px) For mobile screens, use `mtm-*`, `mbm-*`, `mrm-*`, `mlm-*`, `mtp-*`, `mbp-*`, `mrp-*`, and `mlp-*` classes. ```css @media (max-width: 480px) { .mtm-10 { margin-top: 10px; } } ``` ### Tablet (481px - 768px) For tablets, use `ttm-*`, `tbm-*`, `trm-*`, `tlm-*`, `ttp-*`, `tbp-*`, `trp-*`, and `tlp-*` classes. ```css @media (min-width: 481px) and (max-width: 768px) { .ttm-20 { margin-top: 20px; } } ``` ## Conclusion The **mp.css** library provides an easy-to-use system for managing margins and padding in web design. It is lightweight, flexible, and enhances responsive design. Include it in your project today for effortless spacing management!

गुरुवार, 6 फ़रवरी 2025

thumbnail

Install latest Nodejs version in Linux | update nodejs in linux

Agar aap Linux Mint use kar rahe hain aur aapke system me Node.js ka purana version install ho gaya hai, to aapko latest version install karne ke liye kuch steps follow karne padenge. Iss blog me hum aapko do asaan tareeqe bataenge jisme aap ya to **NodeSource repository** ka use kar sakte hain ya phir **NVM (Node Version Manager)** ka. --- ### **Method 1: NodeSource Repository se Latest Node.js Install Karna** NodeSource ek popular repository hai jo hamesha latest stable version provide karti hai. Iska use karna asaan hai aur recommended bhi hai agar aapko ek hi version install karna hai. #### **1️⃣ Purana Version Remove Karein** Sabse pehle, agar aapke system me Node.js ka koi purana version installed hai, to use remove kar dein: ```bash sudo apt remove -y nodejs ```
#### **2️⃣ NodeSource Repository Enable Karein** Latest Node.js version ke liye NodeSource repository ko enable karein: ```bash curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - ```
#### **3️⃣ Node.js Install Karein** ```bash sudo apt install -y nodejs ```
#### **4️⃣ Installation Verify Karein** Check karein ki sahi version install hua ya nahi: ```bash node -v ```
Agar output `v22.13.1` aata hai to installation successful hai. ✅ --- ### **Method 2: NVM (Node Version Manager) se Install Karna** Agar aap multiple versions manage karna chahte hain ya alag-alag projects ke liye alag versions chahiye to **NVM** best option hai. #### **1️⃣ NVM Install Karein** ```bash curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bash source ~/.bashrc ```
#### **2️⃣ NVM Installation Verify Karein** ```bash command -v nvm ```
Agar output `nvm` aata hai to installation successful hai. ✅ #### **3️⃣ Latest Node.js Install Karein** ```bash nvm install 22 ```
#### **4️⃣ Default Node.js Version Set Karein** ```bash nvm use 22 nvm alias default 22 ```
#### **5️⃣ Installation Verify Karein** ```bash node -v ```
Agar output `v22.13.1` aata hai to installation successful hai. 🎉 --- ### **Kaunsa Method Best Hai?** ✅ **Agar aapko ek hi version install karna hai to Method 1 (NodeSource) best hai.** ✅ **Agar aapko multiple versions manage karne hain to Method 2 (NVM) better hai.** Agar aapko koi dikkat aaye to comments me bata sakte hain! 🚀

मंगलवार, 4 फ़रवरी 2025

thumbnail

How to install Latest python version in linux

Aapne sahi kaha ki aapke Linux Mint system par Python ka version 3.12 hai, jabki vartamaan me Python ka 3.13 version available hai. Aayiye, hum Python 3.13 ko apne system par install karne ke liye step-by-step process dekhte hain. **1. System Update Karein** Sabse pehle, apne system ke package lists ko update karein taaki latest repositories available ho. Terminal kholkar ye command chalayein: ```bash sudo apt update ```
```bash sudo apt upgrade ```
**2. Zaroori Dependencies Install Karein** Python ko source se install karne ke liye kuch dependencies ki zaroorat hoti hai. Inhe install karne ke liye ye command use karein: ```bash sudo apt install -y build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev libbz2-dev libsqlite3-dev wget ```
**3. Python 3.13 Source Code Download Karein** Ab, Python 3.13 ka source code download karein. Ye command use karein: ```bash wget https://www.python.org/ftp/python/3.13.0/Python-3.13.0.tgz ```
**4. Source Code Extract Karein** Download ki gayi file ko extract karne ke liye: ```bash tar -xf Python-3.13.0.tgz ``` **5. Directory Change Karein** Extracted directory me navigate karein: ```bash cd Python-3.13.0 ``` **6. Configuration Karein** Installation se pehle configuration karein: ```bash ./configure --enable-optimizations ``` `--enable-optimizations` flag se Python ka optimized build hota hai, jo performance improve karta hai. **7. Python 3.13 Install Karein** Ab, Python ko install karein: ```bash sudo make altinstall ``` `altinstall` command se existing Python installation overwrite nahi hoti. **8. Installation Verify Karein** Installation successful hone ke baad, version check karein: ```bash python3.13 --version ``` Agar output me `Python 3.13.0` dikhai deta hai, to installation sahi se hui hai. **9. Virtual Environment Setup Karein (Optional)** Agar aap virtual environments use karna chahte hain, to `venv` module se environment create karein: ```bash python3.13 -m venv myenv ``` Phir, environment activate karein: ```bash source myenv/bin/activate ``` **10. PIP Update Karein** Virtual environment me pip ko update karein: ```bash pip install --upgrade pip ``` **11. Python 3.13 ko Default Banana (Optional)** Agar aap chahte hain ki `python3` command se Python 3.13 execute ho, to symbolic link create karein: ```bash sudo ln -sf /usr/local/bin/python3.13 /usr/bin/python3 ``` **12. Potential Issues aur Uninstallation** Agar aapko installation ke dauran koi error aata hai, to ensure karein ki saari dependencies sahi se install hui hain. Agar aap Python 3.13 ko uninstall karna chahte hain, to: ```bash sudo make altinstall ``` **Conclusion** Is process ko follow karke, aap apne Linux Mint system par Python 3.13 successfully install kar sakte hain. Yadi aapko kisi bhi step me dikkat hoti hai, to official Python documentation ya community forums ki madad le sakte hain.
thumbnail

How to install nodejs latest version in linux

Aap Linux par latest version of Node.js install karne ke liye niche diye gaye steps follow kar sakte hain. ## **Step 1: System Update Karein** Sabse pehle, aap apne system ke package list ko update karein taaki latest repositories available ho. Ubuntu/Debian ke liye: ```bash sudo apt update && sudo apt upgrade -y ``` CentOS/RHEL ke liye: ```bash sudo yum update -y ``` ## **Step 2: Node.js Official Repository Add Karein** Node.js ko install karne ka best tarika official **NodeSource** repository use karna hai. Pehle NodeSource ke official repository se latest setup script download karein: ```bash curl -fsSL https://deb.nodesource.com/setup_current.x | sudo -E bash - ``` Yeh script aapke system ke liye latest Node.js repository add kar degi. Agar aap **LTS (Long-Term Support) version** install karna chahte hain toh: ```bash curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash - ``` ## **Step 3: Node.js Install Karein** Ab aap simply Node.js ko install kar sakte hain: ```bash sudo apt install -y nodejs ``` Agar aap CentOS/RHEL use kar rahe hain: ```bash sudo yum install -y nodejs ``` ## **Step 4: Node.js Version Check Karein** Installation complete hone ke baad, verify karne ke liye yeh command run karein: ```bash node -v ``` Agar aapko output me latest version number dikhai deta hai, toh iska matlab installation successful rahi. ## **Step 5: NPM (Node Package Manager) Check Karein** Node.js ke sath hi npm (Node Package Manager) bhi install hota hai. Verify karne ke liye: ```bash npm -v ``` ## **Step 6: NVM (Node Version Manager) Se Install Karna (Alternative Method)** Agar aapko different versions switch karne ki zaroorat hoti hai, toh **NVM (Node Version Manager)** ka use kar sakte hain. Pehle NVM install karein: ```bash curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.4/install.sh | bash ``` (Note: Version number check karne ke liye [NVM GitHub repo](https://github.com/nvm-sh/nvm) dekhein.) Installation ke baad terminal restart karein ya phir yeh command run karein: ```bash source ~/.bashrc ``` Ab NVM ka use karke latest Node.js install karein: ```bash nvm install node ``` Aur agar specific version install karna ho, toh: ```bash nvm install 18.17.0 # Example version ``` ## **Conclusion** Aapne successfully Node.js ka latest version install kar liya hai. Aap ya toh **NodeSource repository** ka use karke ya **NVM** ka use karke install kar sakte hain. Agar aapko multiple versions manage karne hain toh NVM best option hai.

About

{getWidget} $results={3} $label={recent}