Skip to main content

Posts

How to Add an XML Sitemap to your Blogger Blog?

  Adding an XML sitemap to your Blogger blog can help search engines like Google discover your content more efficiently. Here are two ways to do it: Method 1: Using Blogger's Built-in Sitemap Functionality: Log in to your Blogger dashboard. Click on "Settings" in the left-hand menu. Go to the "Search Preferences" tab. Under "Crawling and Indexing," enable the "Custom robots.txt" option. Copy and paste the following code into the robots.txt field: Sitemap: https://yourblogname.blogspot.com/sitemap.xml Replace yourblogname with your actual blog's name. Click "Save Changes." Blogger automatically generates and updates the sitemap at https://yourblogname.blogspot.com/sitemap.xml . You can now submit this URL to search engines like Google Search Console for faster indexing.   Method 2: Using a Sitemap Generator: Visit a website like Labnol's Blogger Sitemap Generator: [<invalid URL removed>]. Enter ...
Recent posts

How to Installing an SSL certificate in Apache2 and cPanel ?

  Installing an SSL certificate in Apache2 and cPanel involves two main steps: 1. Generate or obtain an SSL certificate: There are two ways to acquire an SSL certificate: Generate a self-signed certificate: This is useful for testing purposes but not recommended for production environments as it raises security warnings in browsers. You can generate one using the OpenSSL command-line tool or through cPanel's "Generate, view, upload, or delete SSL certificates" section.           Purchase an SSL certificate from a Certificate Authority (CA): This is the recommended approach for production websites. Popular CAs include DigiCert, Comodo, Let's Encrypt (free option), etc. Choose a certificate that meets your security and domain validation needs. 2. Install the SSL certificate in Apache2: Here are the two main methods for installing the certificate: Method 1: Using cPanel's SSL/TLS Manager: Login to your cPanel account. Navigate to t...

how to upload website using filezilla step by step?

  Uploading Your Website with FileZilla: A Step-by-Step Guide Here's how to upload your website using FileZilla: Before you begin: Gather your credentials: You'll need your FTP hostname, username, and password provided by your web hosting provider. Download and install FileZilla: Get it from the official website: https://filezilla-project.org/   Steps: Open FileZilla: Launch the application. Site Manager: Go to File > Site Manager . New Site: Click the New Site button. General: Protocol: Choose FTP or SFTP as per your hosting provider's instructions. Host: Enter your FTP hostname. Port: Typically 21 for FTP and 22 for SFTP. Logon Type: Usually Normal . User: Enter your FTP username. Password: Enter your FTP password. Connection: Click the Connect button to test the connection. If successful, a message "Connection established, ready for data transfer" will appear. Local site (your computer): In the left panel, n...

SQL vs. MongoDB: Main Features Comparison | MongoDB Advantages

  SQL vs. MongoDB: Main Features Comparison | MongoDB Advantages Feature SQL Database MongoDB MongoDB Advantages Data Model Structured (relational) Flexible (schemaless) - Easier to adapt to evolving data structures Data Storage Tables with rows and columns Documents with key-value pairs and nested structures - More flexible for unstructured data Query Language SQL (Structured Query Language) JSON Query Language - Simpler syntax for basic queries Schema Enforcement Strict Flexible - Easier to handle varied data formats Joins Efficient for joining related tables Limited join capabilities - Not ideal for complex relational queries Scalability Vertical (scaling up hardware) Horizontal (sharding across servers) - Easier to scale for large datasets Consistency ACID guarantees (Atomicity, Consistency, Isolation, Durability) CAP theorem (Choose two: Consistency, Availability, Partition Tolerance) - Prioritizes availability and scalability over absolute consistency Transactions Supported...

All Shortcut keys for visual studio code

  Here are some key areas and examples to explore: Navigation and Selection: Go to Line (Ctrl+G or Cmd+G): Quickly jump to a specific line number. Go to Symbol (Ctrl+T or Cmd+T): Open the Symbol search to navigate to functions, variables, etc. Move Line Up/Down (Ctrl+Shift+Up/Down or Cmd+Shift+Up/Down): Reorder lines of code. Select Word (Ctrl+W or Cmd+W): Select the current word. Select Line (Ctrl+L or Cmd+L): Select the entire line. Box Selection (Ctrl+Shift+Alt+Click and drag): Select a rectangular block of text. Editing and Formatting: Undo/Redo (Ctrl+Z/Y or Cmd+Z/Y): Undo or redo your latest actions. Delete Line (Ctrl+D or Cmd+D): Delete the current line. Duplicate Line (Ctrl+Shift+D or Cmd+Shift+D): Copy and paste the current line below. Comment/Uncomment Line(s) (Ctrl+/ or Cmd+/): Toggle line comments. Format Selection (Ctrl+K Ctrl+F or Cmd+K Cmd+F): Format the selected text. Indent/Outdent (Tab/Shift+Tab): Indent or outdent lines o...

Top 10 shortcut keys for visual studio code

  Visual Studio Code is a popular code editor known for its customization and extensive keyboard shortcuts. Here are 10 of the most useful shortcut keys to help you boost your productivity: Command Palette (Ctrl+Shift+P or Cmd+Shift+P): This is your gateway to all of VS Code's features and settings. Type in what you want to do, and VS Code will show you a list of matching commands. Opens in a new window code.visualstudio.com Command Palette in Visual Studio Code Quick Open (Ctrl+P or Cmd+P): Quickly open a file or symbol in your project by name. Opens in a new window marketplace.visualstudio.com Quick Open in Visual Studio Code Toggle Sidebar (Ctrl+B or Cmd+B): Hide or show the sidebar, which contains the Explorer, Search, SCM, and other panels. Opens in a new window gosamples.dev Toggle Sidebar in Visual Studio Code Multi-Select Cursor (Alt+Click or Option+Click): Add multiple cursors at different locations in your code to edit or delete them simultaneously. Opens in...

Data science - Field of study and Branch of Knowledge

Information science assumes a vital part in present day programming improvement, impacting all that from plan and usefulness to client experience and promoting. Here are a few key ways information science is utilized in virtual products and the purposes for it: 1. Client getting it and conduct expectation:     Techniques: Analytics of user behavior, sentiment analysis, and A/B testing.     Why: Software features and interfaces can be tailored to meet the requirements of users thanks to data science's assistance in analyzing interactions, preferences, and pain points. Predicting user behavior also makes proactive support and personalized experiences possible. 2. Suggestion frameworks and personalization:     Techniques: AI calculations, cooperative separating, content-based sifting.     Why: Information science customizes client encounters by suggesting applicable substance, items, or elements in view of their past way of behavi...

GET request to the above URL and return the result we would use:

// Get cURL resource $curl = curl_init(); // Set some options - we are passing in a useragent too here curl_setopt_array( $curl , array ( CURLOPT_RETURNTRANSFER => 1 , CURLOPT_URL => 'http://url.com/?item1=value&item2=value2' , CURLOPT_USERAGENT => )); // Send the request & save response to $resp $resp = curl_exec( $curl ); // Close request to clear up some resources curl_close( $curl );

How to force HTTPS using .htaccess file in cPanel

Create .htaccess file on root and type below code METHOD 1: RewriteCond %{HTTPS} !=on # This checks to make sure the connection is not already HTTPS RewriteRule ^/?(.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]          METHOD 2:        RewriteEngine On RewriteCond %{HTTP_HOST} ^example\.com [NC] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]   Save and Upload .