Posts

Google doodle celebrates India Republic Day

Image
India achieved independence from the British Raj on 15 August 1947 following the Indian independence movement. The independence came through the Indian Independence Act 1947 (10 & 11 Geo 6 c 30), an Act of the Parliament of the United Kingdom that partitioned British India into the two new independent Dominions of the British Commonwealth (later Commonwealth of Nations India obtained its independence on 15 August 1947 as a constitutional monarchy with George VI as head of state and the Earl Mountbatten as governor-general. Google addded a doodle to celebrate this India Republic Day 2023.

Meta's Reality Labs Division Loses Close to $3.7 Billion in Q3 2022

Image
  Meta in July reported a Q2 loss of $2.8 billion (roughly Rs. 23,050 crore) for its Reality Labs division. Ref Link: https://www.gadgets360.com/cryptocurrency/news/meta-metaverse-division-reality-labs-posts-usd-3-7-billion-loss-third-quarter-earnings-report-2022-3466029#rss-gadgets-all

God of War Ragnark Will Get Photo Mode Post Launch

Image
  Photo mode will be added as part of a post-launch update, just like with the 2018 version. Ref link :  https://www.gadgets360.com/games/news/god-war-ragnarok-photo-mode-post-launch-release-date-ps5-ps4-santa-monica-playstation-3466193#rss-gadgets-all

Most used programming languages in 2022

Image
 Position PYPL ranking September 2022 Stack Overflow ’s Developer Survey 2022 #1 Python JavaScript      #2 Java HTML/CSS      #3 JavaScript SQL    

How to remove index.php from url in CodeIgniter 3

Image
  Adding below code in htaccess file we can remove index.php from codeigniter URL 1. We have to make below changes in application/config/config.php $config['index_page'] = ''; 2. We have to add below code block in .htaccess file in root of the codeigniter project RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/ $1 [ L ]

Image resize lambda function using ffmpeg command

Image
Using the ffmpeg command, we can resize the images using the specified pixels. Below are the lambda functions used to convert images using the lambda function. ============= import os import subprocess import shlex import boto3 import json import urllib.parse from time import sleep S3_DESTINATION_BUCKET = "s3-bucket-name" SIGNED_URL_TIMEOUT = 600 def lambda_handler ( event , context ): os.chdir( '/tmp' ) s3_source_bucket = event[ 'Records' ][ 0 ][ 's3' ][ 'bucket' ][ 'name' ] s3_source_key = urllib.parse.unquote_plus(event[ 'Records' ][ 0 ][ 's3' ][ 'object' ][ 'key' ], encoding = 'utf-8' ) s3_source_basename = os.path.splitext(os.path.basename(s3_source_key))[ 0 ] s3_source_key_new = os.path.basename(s3_source_key) s3_destination_filename_xlarge = "xlarge" +s3_source_key_new s3_destination_filename_large = "large" +s3_source_key_new s3_

Reliance Capital auction : Torrent Group emerges highest bidder in phase-1

Image
Torrent Group is an Indian multinational conglomerate, based in Ahmedabad. Torrent Group emerged as the highest bidder with Rs 8,640 crore bid for Reliance Capital in the e-auction held on Wednesday.Hinduja Group was at a close number two

Nginx How to redirect all http and https requests to another site.

Image
We can redirect all http and https requests to another domain using the below script in the nginx configuration. 1. For HTTP redirection ------- server {        listen         80;        server_name    domain.com;        return         301 https://domain.com$request_uri; } 2. For HTTPS redirection ------ server {        listen         443 ssl;        server_name    domain.com;        return         301 https://domain.com$request_uri;        sl_certificate    /etc/ssl/domain.com.pem; ssl_certificate_key    /etc/ssl/domain.com.key; }