Showing posts from June, 2020

Maven is a project management tool that goes beyond dependency management.

Let's Encrypt free SSL/TLS certificates

Let's Encrypt is an automated and open certificate authority (CA) operated by the Internet Security Research Group (ISRG) and founded by the Electronic Frontier Foundation (EFF), the Mozilla Foundation, and others. It provides free SSL/TLS certificates which are commonly used to encrypt communications for security and privacy purposes, the most notable use case being HTTPS. Let's Encrypt relies on the ACME (Automatic Certificate Management Environment) protocol to issue, revoke and renew certificates.

Reads a syndication feed by Java

package com.rometools.rome.samples ; import ; import com.rometools.rome.feed.synd.SyndFeed ; import ; import ; public class FeedReader { public static void main ( String [] args ) { if (args . length == 1 ) { try { URL feedUrl = new URL (args[ 0 ]); SyndFeedInput input = new SyndFeedInput (); SyndFeed feed = input . build( new XmlReader (feedUrl)); System . out . println(feed); } catch ( Exception ex) { System . out . println( " ERROR: " + ex . getMessage()); } } } }

All it takes to read a syndication feed using ROME are the following 2 lines of code

SyndFeedInput input = new SyndFeedInput(); SyndFeed feed = XmlReader(feedUrl)); ROME includes parsers to process syndication feeds into SyndFeed instances.  The SyndFeedInput class handles the parsers using the correct one based on the syndication feed being processed.  The developer does not need to worry about selecting the right parser for a syndication feed, the SyndFeedInput will take care of it by peeking at the syndication feed structure.

ROME is a Java framework for RSS and Atom feeds. It's open source and licensed under the Apache 2.0 license.

ROME includes a set of parsers and generators for the various flavors of syndication feeds, as well as converters to convert from one format to another. The parsers can give you back Java objects that are either specific for the format you want to work with, or a generic normalized SyndFeed class that lets you work on with the data without bothering about the incoming or outgoing feed type.

There are two programming models for working with XML infosets: streaming and the document object model (DOM).

Streaming models for XML processing are particularly useful when your application has strict memory limitations, as with a cellphone running the Java Platform, Micro Edition (Java ME platform), or when your application needs to process several requests simultaneously, as with an application server. In fact, it can be argued that the majority of XML business logic can benefit from stream processing, and does not require the in-memory maintenance of entire DOM trees.

Microsoft is closing all of its retail stores permanently

Python is the most common language for web scraping.

Python is really versatile and can deal with most of the web crawling related processes without difficulty.

Linux Job Control Commands

Job control commands enable you to place jobs in the foreground or background, and to start or stop jobs. The table describes the job control commands. Option           Description jobs                     Lists all jobs bg %n           Places the current or specified job in the background, where n is the job ID fg %n           Brings the current or specified job into the foreground, where n is the job ID Control-z      Stops the foreground job and places it in the background as a stopped job

A Linux job is a process that the shell manages.

There are three types of  Linux job statuses: 1. Foreground: When you enter a command in a terminal window, the command occupies that terminal window until it completes. This is a foreground job. 2. Background: When you enter an ampersand (&) symbol at the end of a command line, the command runs without occupying the terminal window. The shell prompt is displayed immediately after you press Return. This is an example of a background job. 3. Stopped: If you press Control + Z for a foreground job, or enter the stop command for a background job, the job stops. This job is called a stopped job.

RSS feeds are typically used for news websites, blogs and podcasts.

An RSS feed is a web format used to serve regularly changing content. If a website you like has an RSS feed, you can add it into your reader and stay up-to-date with new articles without even navigating to the website itself. 

eero is the heart of the connected home

eero delivers world-class, whole-home connectivity for everybody. An eero 3-pack covers homes up to 460 m² (5,000 sq. ft.) in fast, reliable wifi from the basement to the backyard.

Powerline (Home Plug) Connectors Must Be Fitted On The Same Electrical Circuit

For Powerline Adapters to work it is essential that these are installed onto the same electrical circuit to each other, if they are not they will not connect to each other. 

A simple cd - will move you back to your previous directory and print the directory's name out.

The - alone is expanded to your previous directory. This is explained in the cd section of man bash: An argument of - is converted to $OLDPWD before the directory change is attempted. If a non-empty directory name from CDPATH is used, or if - is the first argument, and the directory change is successful, the absolute pathname of the new working directory is written to the standard output. The return value is true if the directory was successfully changed; false otherwise.

Use "CRTL+R" for repeating the last matching Linux command

Just press the "CRTL+R" and type words that you had in your last command, and UNIX/Linux will find that command for you then just press enter.

Use ! For executing the last Linux command

For example, After doing ls –l .txt if you want to open you can use the vim editor as vi !$ (last argument)

The novel coronavirus has now infected more than 10 million people

HomePlug adapters extend internet by turning your electrical wiring into a wired network

You need at least 2 HomePlug adapters to extend your existing internet to a new location.

Fixed: lsb_release: command not found

$ yum whatprovides lsb_release Loaded plugins: extras_suggestions, langpacks, priorities, update-motd 192 packages excluded due to repository priority protections system-lsb-core-4.1-27.amzn2.1.x86_64 : LSB Core module support Repo        : amzn2-core Matched from: Filename    : /usr/bin/lsb_release $ sudo yum -y install system-lsb-core-4.1-27.amzn2.1.x86_64

Get system-product-name

[ec2-user@ip-172-16-0-86 ~]$ sudo dmidecode -s system-product-name t3a.large

Print Linux system information

root@2e5540791177:/ [23:54:10]$ uname --help Usage: uname [OPTION]... Print certain system information.  With no OPTION, same as -s.   -a, --all                print all information, in the following order,                              except omit -p and -i if unknown:   -s, --kernel-name        print the kernel name   -n, --nodename           print the network node hostname   -r, --kernel-release     print the kernel release   -v, --kernel-version     print the kernel version   -m, --machine            print the machine hardware name   -p, --processor          print the processor type (non-portable)   -i, --hardware-platform  print the hardware platform (non-portable)   -o, --operating-system   print the operating system       --help     display this help and exit       --version  output version information and exit GNU coreutils online help: <> Report uname translation bugs to <> Full documentati

Open Java Maven project in VS code

Use Open Folder in VS Code to open the project. VS Code automatically recognizes that it is a Maven-based Java project and opens the Java Overview.

NetBeans has excellent integration with Maven.

When you select the project in the Projects view, NetBeans shows common Maven goals inside the Navigator view You can run common commands such as mvn clean or mvn jetty:run without having to leave the IDE.

Find bugs in Java Programs

SpotBugs is a program which uses static analysis to look for bugs in Java code. It is free software, distributed under the terms of the GNU Lesser General Public License. SpotBugs is the spiritual successor of FindBugs, carrying on from the point where it left off with support of its community. Please check official manual site for details. SpotBugs requires JRE (or JDK) 1.8.0 or later to run. However, it can analyze programs compiled for any version of Java, from 1.0 to 1.9.

Static analysis provides testing against code bases and binaries without the execution of any code.

 Ensuring code quality and identifying issues without running the code can save a huge amount of time for your team IDEs do this too by highlighting areas of code they do not like. Tools including: CheckStyle, PMD and Findbugs.

Apple Safari to Block Google Analytics From Collecting Data

Blogger Full Site Feed

Atom 1.0: RSS 2.0:

Chrome can find harmful software on your computer and remove it


Remove the default CSS and JS files Blogger includes in the template.

To remove CSS and JS, add the following attributes to the <html> tag at the start of the template code (present under Theme -> Customise) - <html b:css='false' b:js='false' ... b:css='false' - Removes the default CSS included by Blogger in the template b:js='false' - Removes the default JS included by Blogger in the template

Creating consistent and meaningful diagrams brings clarity and consensus across different stakeholders.

How the California Consumer Privacy Act affects you

The California Consumer Privacy Act (CCPA) is a data privacy law that may require you to give California residents the choice to opt out of the sale of their personal information. Learn more about the California Consumer Privacy Act .

Google's Go programming language has become one of the most popular systems programming languages among developers

JetBrains makes the popular IntelliJ IDEA Java IDE

IntelliJ IDEA Java IDE is also the foundation for Google's Android Studio, as well as Kotlin, a programming language that Google officially supports for Android development

Oracle Java price

The Oracle Binary Code License made it free for developers to use Java for non-commercial purposes.  This means that all personal projects are totally free with the language.  For commercial uses, pricing starts at about $2.50 per user per month. Oracle also has many offers and discounts for companies with multiple licenses and projects.

Update ClamAV Virus Defination Database

Virus Defination Database update   $ sudo freshclam

Install ClamAV and Clamd using YUM Command

$ sudo yum install clamav clamd -y You may need to install  Epel repository

Add Epel repository to Amazon Linux.

$ sudo amazon-linux-extras install epel

ClamAV is an Opensource Antivirus option for Linux/Unix O/S and protects your system against Trojans, malware and other security threats.

If you want to protect your Linux O/S, Network or VPC and looking for an Open-Source Antivirus Software, you can go for ClamAV.

Most important risk and unknown is the second wave probability.

iOS 14 now notifies your when your AW is charged

Introducing a new way to make money online: paid newsletters

Starting a paid newsletter has never been easier.  Through the safe and secure Payments feature on to set up recurring payments, your visitors can now pay a monthly or annual fee to get content from your site delivered directly to their inboxes. Start a paid newsletter

The Python Package Index (PyPI) is a repository of software for the Python programming language.

Find, install and publish Python packages with the Python Package Index

National Geographic Kids

National Geographic Kids offers adventure games and quizzes that educate kids all about animals, science, history and geography — to name a few. Not only is it informative, it’s also tons of fun! If you want a case of the giggles, try the “funny fill-in” section, where kids can choose random words and create wacky stories. Available on: Web Recommended age: 6+ Ads? Yes Additional paid features? No Learning Games

Kids will build relevant skills they need to succeed at school.  With more than 400 educational games — covering topics in language, math, art, strategy and more — kids will surely find a game they love, in a subject they want to learn.  Available on: Web, iTunes App Store, Google Play, Amazon Appstore Recommended age: 4 – 12 Ads? Yes Additional paid features? Optional Premium Subscriptions to remove ads, gain complete mobile access and add multiple devices. 

Make online money from the Internet

Make online money from the Internet   Create your own YouTube channel and become a YouTube partner to monetize your videos. You may use  Oneload  to distribute the same video to multiple video sites. Make something creative – like handbags, jewelry, paintings, craft items – and sell them on  Etsy ,  ArtFire  or eBay. Build your own online store with  Shopify  or  SquareSpace  and sell both physical goods and digital downloads. Sell everything from furniture to clothes to food. Create t-shirt designs and put them on  Threadless ,  Zazzle  and  CafePress . Write a book and publish it on the Kindle store, Google Play and iBooks. You can also sell your ebook to other retailers through services like  Smashwoods  and  BookBaby . Become an instructor at  SkillShare  and get paid for teaching your favorite subjects – from guitar to literature to yoga to foreign languages – to a worldwide audience. Learn how to code and you can then hunt for software development projects at  Guru

Fixed: Ubuntu bash: pip: command not found

$ sudo apt-get update && sudo apt-get upgrade -y $ sudo apt-get install python3-pip $ pip3

Install TensorFlow

$ pip install tensorflow OR $ pip3 install tensorflow If your machine has GPUs:  $ pip install tensorflow-gpu

A throughput measurement is based on the amount of work that can be accomplished in a certain period of time. Mastercard Rewards

If you have an Amazon Prime Membership, here’s what this no fee card will earn you: 2.5% back in Amazon Rewards at, Whole Food Markets, any physical Amazon store, as well as foreign currency transactions, and 1% back in Amazon Rewards spent everywhere else. Don’t have an Amazon Prime membership? Here’s what you’ll get instead: 1.5% back in Amazon Rewards spent at, Whole Food Markets, and any physical Amazon store, and 1% back in Amazon Rewards everywhere else.

Python has a log of excellent third-party software

Python’s standard library modules are programs that are included with Python when it’s installed.

Python programs can translate JSON text into Python data structures

Java is the most popular primary programming language.

Python binary search

def binary_search(arr, value, offset=0)   mid =  (arr.length) / 2     if value < arr[mid] binary_search(arr[0...mid], value, offset) elsif value > arr[mid]      binary_search(arr[(mid + 1)..-1], value, offset + mid + 1)     else      return offset + mid   end end

Binary search is an essential search algorithm that takes in a sorted array and returns the index of the value we are searching for

Do this with the following steps: Find the midpoint of the sorted array. Compare the midpoint to the value of interest. If the midpoint is larger than the value, perform binary search on right half of the array. If the midpoint is smaller than the value, perform binary search on left half of the array. Repeat these steps until the midpoint value is equal to the value of interest or we know the value is not in the array.

OpenSSH and Libssh have abandoned SHA-1 over growing security concerns

SHA-1 is being killed because it is too weak

Programming quantum computers is becoming easier

Computer scientists at ETH Zurich have designed the first programming language that can be used to program quantum computers as simply, reliably and safely as classical computers.

China's job market remained generally stable in May, with the surveyed unemployment rate in urban areas standing at 5.9%

Affiliate marketing is a massive multi-billion dollar online enterprise

Inspect gift card before buying it

The BBB says you should: Verify that no protective stickers have been removed. Check the codes on the back of the card to make sure they haven't been scratched off to reveal a PIN number. Report any damaged cards to the store selling them.

Research shows that Americans leave $45 billion worth of gift card balances unused.

Gift Card Tips

Know the Details Back It Up Use Them Before You Lose Them

With Visa Infinite Privilege, you can enjoy Global Airport Lounge Access with 6 complimentary passes, and other great benefits at select airports in Canada.

Plus, get room upgrades, complimentary WiFi and breakfast, late checkout and more at over 900 Visa Infinite Luxury Hotel Collection properties around the world.

General online safety tips

Your Client Number and PIN are the keys to your banking, so you won’t want to share them, with anyone.  Don’t send personal information like your Social Insurance Number to anyone by email or other unsecured channels.  Any documents with personal information should be shredded when you’re done with them.

Gift Card Tips

Know the Details Back It Up Use Them Before You Lose Them

Azure Sentinel Standing watch, by your side. Intelligent security analytics for your entire enterprise.

Extend threat detection and response to secure your multicloud environment

Protect your assets across environments and help your SecOps team analyze growing volumes of security data with Azure Sentinel, a cloud-native SIEM built on Azure Monitor Log Analytics. Use Azure Sentinel connectors to import data from your Microsoft sources and other cloud platforms and security solutions—to extend your threat detection and response.

Remove Symbolic Links with unlink

$ unlink symlink_name

Amazon Halts Police Use Of Its Facial Recognition Technology

Amazon FSx for Lustre makes it easy and cost effective to launch and run the world’s most popular high-performance file system.

Use it for workloads where speed matters, such as machine learning, high performance computing (HPC), video processing, and financial modeling. Allows your workloads to process data with consistent sub-millisecond latencies, up to hundreds of gigabytes per second of throughput, and up to millions of IOPS. POSIX-compliant, so you can use your current Linux-based applications without having to make any changes, providing a native file system interface that works as any file system does with your Linux operating system. Supports multiple deployment options for short-term and long-term data processing. Seamlessly integrated with Amazon S3 (connect your S3 data sets to your FSx for Lustre file system, run your analyses, write results back to S3, and delete your file system), Amazon SageMaker, Amazon Elastic Kubernetes Service (EKS), and AWS ParallelCluster. Accessible from on-premises over Direct Connect and VPN connections. File system data is automatically encrypted at-rest and in-trans

Amazon FSx makes it easy and cost effective to launch and run popular file systems.

With Amazon FSx, you can leverage the rich feature sets and fast performance of widely-used open source and commercially-licensed file systems, while avoiding time-consuming administrative tasks like hardware provisioning, software configuration, patching, and backups. It provides cost-efficient capacity and high levels of reliability, and it integrates with other AWS services so that you can manage and use the file systems in cloud-native ways.

Amazon FSx provides you with two file systems to choose from

Amazon FSx for Windows File Server for enterprise workloads and  Amazon FSx for Lustre for high-performance workloads.

Exclude Directories when Using Tar

Example: $ tar cvfJ test.txz --exclude /var/lib/jenkins/.m2 /var/lib/jenkins/

A Docker volume "lives" outside the container, on the host machine.

From the container, the volume acts like a folder which you can use to store and retrieve data. It is simply a mount point to a directory on the host. There are several ways to create and manage Docker volumes. Each method has its own advantages and disadvantages.

How To Install Docker On Amazon Linux AMI

Create EC2 with Amazon Linux AMI Login to your EC2 with PuTTY Do an update of Amzon Linux sudo yum update Now for installing docker run below command: sudo yum install -y docker Give permission sudo usermod -a -G docker ec2-user Start Docker Service sudo service docker start

Fixed: ubuntu lsb-release is not installed

$  sudo   apt-get install  lsb-core

CMHC Makes It Harder to Qualify For An Insured Mortgage

Effective July 1, the following changes will apply for new applications for homeowners purchasing with less than 20% down. Refinances will not be affected. •      The maximum gross debt service (GDS) ratio drops from 39 to 35 •      The maximum total debt service (TDS) ratio drops from 44 to 42 •      The minimum credit score rises from 600 to 680 for at least one borrower

Have you tried G Suite?

 It’s a cloud-based productivity suite you can access anywhere on any device that includes Gmail, Drive, Hangouts and Calendar. My team loves it because it allows us to work more efficiently. See how it can help you, too. G Suite is offering a 14-day trial. Sign up using my link and I can give you a discount. You’ll get email with your domain name and a suite of tools that allows you to get work done from anywhere. Start today:

Investors looks forward to the U.S. Federal Reserve’s two-day meeting for cues on economic policy

Fixed: resize2fs: Bad magic number in super-block

Encountered: resize2fs Couldn't find valid filesystem superblock Run instead: $ sudo xfs_growfs /dev/nvme0n1p1 meta-data=/dev/nvme0n1p1         isize=512    agcount=4, agsize=524159 blks          =                       sectsz=512   attr=2, projid32bit=1          =                       crc=1        finobt=1 spinodes=0 data     =                       bsize=4096   blocks=2096635, imaxpct=25          =                       sunit=0      swidth=0 blks naming   =version 2              bsize=4096   ascii-ci=0 ftype=1 log      =internal               bsize=4096   blocks=2560, version=2          =                       sectsz=512   sunit=0 blks, lazy-count=1 realtime =none                   extsz=4096   blocks=0, rtextents=0 data blocks changed from 2096635 to 4718075 [ec2-user@ip-172-16-0-86 ~]$ df -h Filesystem      Size  Used Avail Use% Mounted on devtmpfs        3.9G     0  3.9G   0% /dev tmpfs           3.9G     0  3.9G   0% /dev/shm tmpfs 

Currencies set the equilibrium between these two forces

domestic economic fundamentals and  foreign perceptions of a nation’s strength or weakness.

Interest earned on your savings is taxable by law.

You won’t need to pay tax on the amount you deposit into your account because you’ve already paid income tax on it. But any interest accrued on your deposit is considered general income and is subject to taxation during the same year that you receive it.  Interest will be taxed at the marginal rate, which is the same rate you pay on your income.

TD e-series funds are held in Canadian dollars and there is no need to convert your money into U.S. dollars.

Earn 2.80%* interest for 5 months** in your first Tangerine Savings Account.

Open a Tangerine account with my Orange Key 31001850S1 and get a $50 bonus! #OrangeKey #TangerineBank via @TangerineBank 

Canada’s national mortgage insurance provider unveiled the stricter underwriting policies for home buyers on June 4.

The measures include limiting the gross debt service ratios on home buyer loans to 35 per cent, from 39 per cent and limiting the total debt service ratio to 42 per cent from 45 per cent.

ACID stands for atomicity, consistency, isolation, durability.

These are the properties database transactions need to guarantee to their users for validity even in the event of crash, error, hardware failures and similar. 

Sustainable living describes a lifestyle that attempts to reduce an individual's or society's use of the Earth's natural resources, and one's personal resources

Sustainable living is often called as "earth harmony living" or "net zero living". Its practitioners often attempt to reduce their ecological footprint by altering their methods of transportation, energy consumption, and/or diet. Its proponents aim to conduct their lives in ways that are consistent with sustainability, naturally balanced, and respectful of humanity's symbiotic relationship with the Earth's natural ecology. The practice and general philosophy of ecological living closely follows the overall principles of sustainable development.

Jenkins Maven Setup

In the Jenkins dashboard (Home screen), click Manage Jenkins from the left-hand side menu. Then, click on ‘Global Tool Configuration’ from the right hand side. In the Global Tool Configuration screen, scroll down till you see the Maven section and then click on the ‘Add Maven’ button.

To search using Vim/vi

In normal mode, you can search forward or backward. One can search forward in vim/vi by pressing / and then typing your search pattern/word. To search backward in vi/vim by pressing ? and then typing your search pattern/word. Once a word found in vim, you can press the n key to go directly to the next occurrence of the word backwards.

jq is a lightweight and flexible command-line JSON processor.

jq is like sed for JSON data - you can use it to slice and filter and map and transform structured data with the same ease that sed, awk, grep and friends let you play with text.

Install Maven on EC2/CentOS

sudo yum install maven Verify the installation by typing the mvn -version command: mvn -version