Posts Tagged with tutorials
How to Stream Your Pre-Recorded Videos to Facebook Live ?
Since Spring 2016, Facebook users have had the option to broadcast live videos to their friends and followers. Live videos are expected to be more personal, candid, and off-the-cuff, so they’re a great option for when you want to add some personality to your Facebook page. Not to mention, they’re pretty darn effective. Live videos tend to receive 10x better engagement than pre-recorded video. They make watching a stream into an event.
How to display and control your Android device on laptop ?
If you are a software developer, just use scrcpy command line tool to display and control your android smartphone or tablet on a laptop.
This application provides display and control of Android devices connected on USB (or over TCP/IP). It does not require any root access.
Install scrcpy on Linux To install scrcpy, just use snap package manager like this sudo snap install scrcpy.
Choose your Linux distribution to get more information about installation.
How to compress files with xz and upload archive to Google cloud ?
First, install Google cloud command line tool and configure it.
pip install gsutil Have your project id ready using gsutil config. Check docs for more info. Create the archive / compressed file
tar --create --verbose --xz --file images.tar.xz /directory/containing/images/* Upload the archive/compressed file to Google cloud
gsutil cp images.tar.xz gs://<bucket name>. replace <bucket name> with your Google cloud bucket name 😄. If you want to extract contents (images in this case) from archive, use this command tar -xf file.
How to remove an audio track from an mkv ?
You can use final cut pro x or iMovie on Mac OS, or Camtasia Studio or Adobe Premiere Pro or DaVinci Resolve on Windows, or DaVinci Resolve or Blender or Kdenlive or ShotCut on Any Linux distro. But I prefer command line tools.
Install mkvtoolsnix or use HomeBrew to install it : brew install --with-qt5 mkvtoolnix. Use mkvinfo to get the audio track IDs that you want. command like this mkvinfo *.
How to Take Screenshot on Windows ?
use the dedicated button on keyboard There is a PrtSc button, or Print Screen, or Prt Scr, or similar name. Press this button, and open Paint program and press ctrl+v to paste the screenshot image.
capture the active window To take a screenshot of the currently active window, just press Alt + PrtScn then paste the screenshot image in Paint program or Photoshop or any other image editing / creating program.
How to accept payments through Google Pay in Angular ?
To integrate Google Pay to your Angular project, install Angular component for Google Pay by this command.
npm install @google-pay/button-angular Then register Google Pay button module to application module using this line of code.
import { GooglePayButtonModule } from '@google-pay/button-angular'; Add it to imports in app.module.ts.
imports: [ ... GooglePayButtonModule, ... ] Now, you can add google-pay-button like this.
<google-pay-button environment="TEST" buttonSizeMode="fill" [paymentRequest]="paymentRequest" (loadpaymentdata)="onLoadPaymentData($event)" ></google-pay-button> And, in the typescript file, use this.
Create and remove swap files in Ubuntu Linux
Computers use RAM to store data and run programs and services. So, the data / programs in RAM are temporarily available — as you use the program or data. When you shutdown your computer, RAM will be free.
RAM is faster than HDD or SSD in read and write speed. So we use it to hold the currently running programs and data. But they are expensive, so we use less of them and rely on swap file to delegate some less used data / program to it.
How Do I Reduce a PDF's Size Manually ?
Adobe Acrobat Pro If you have Adobe Acrobat installed on your computer, there’s a tool within the application called PDF Optimizer. This is one of the best and easiest ways to reduce a PDF document size.
Open your PDF file in Acrobat, click Tools > Optimize PDF. A toolbar with a few options will appear just above the PDF.
Click Reduce File Size, and choose to reduce a single or multiple files.
How Do I Compress a .JPEG File
Use A Web App Navigate to compressor.io or squoosh.app and upload the image to compress it for free. Then downlad the compressed / optimized version of the image.
Use FFMpeg on Terminal / CLI Open terminal in Mac OS or Any Linux distribution (Ubuntu, Elementary, ..) and use this command.
ffmpeg -i inupt-image.jpeg -q:v 10 output-image.jpg -y make sure to replace input-image.jpeg with your image. And rename output-image.jpg to any name you want your compressed image to be called.
How to Free up Space on Mac OS ?
We all panic when we see the message your startup disk is almost full, or your disk is almost full. save space by optimizing storage. So let me tell you how to free up a good space in your mac, starting from obvious ways reaching to advanced methods to gain more storage space.
==== The Obvious ====
empty the trash can delete unwanted programs / apps installed on your mac delete unwanted files in your download folder / directory which is ~/Download/ delete unwanted movies and videos in ~/Movies/ delete unwanted music in ~/Music/ delete unwanted documents and files located in ~/Documents/ delete unwanted screenshots and screencasts if you have any.