Posts

Showing posts from May, 2020

Install neovim on EC2

yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm yum install -y neovim python3-neovim

Fixed: nc: command not found

yum install nc

Fixed Failed to start LSB: Jenkins Automation Server

Either Java version not available or version incompatible. sudo yum -y install java-1.8.0-openjdk

Install Jenkins on AWS EC2

sudo yum update –y sudo wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo sudo rpm --import https://pkg.jenkins.io/redhat/jenkins.io.key sudo yum install jenkins -y

Credentials helpers

D-Bus Secret Service: https://github.com/docker/docker-credential-helpers/releases Apple macOS keychain: https://github.com/docker/docker-credential-helpers/releases Microsoft Windows Credential Manager: https://github.com/docker/docker-credential-helpers/releases pass: https://github.com/docker/docker-credential-helpers/releases

Credentials helpers

D-Bus Secret Service: https://github.com/docker/docker-credential-helpers/releases Apple macOS keychain: https://github.com/docker/docker-credential-helpers/releases Microsoft Windows Credential Manager: https://github.com/docker/docker-credential-helpers/releases pass: https://github.com/docker/docker-credential-helpers/releases

Connect to RDS instance via Internet or VPN/Direct

In your RDS instance Route Table: 1. If you would like to access RDS via public internet you will have to modify the route 0.0.0.0/0 to use Internet gateway 2. If you would like to use VPN/Direct Connect for connections to your RDS you will have to modify the route 0.0.0.0/0 to use Transit gateway

Check which route table is associated with Ec2 instance

There is no direct way to check which route table is associated with your instance 1. Get your instance's IP address 2. Copy the IP address 3. Now navigate to network interfaces tab which is present on left side menu bar of your EC2 console 4. Now paste the IP address from step 1 in the filter and press enter 5. Now you can see the Subnet ID for that IP address, this is the subnet on which your RDS instance present 6. Copy the Subnet ID and navigate to subnets tab in VPC console and search for this subnet 7. When you select the subnet you could see the route table associated with this subnets

A stock chart is a picture of a stock’s historical price and trading volume in the form of a graph.

On most charts, the x-axis (horizontal, left to right) represents time, and the y-axis (vertical) represents price.

Swing trading can be a happy medium between day trading and position trading

Swing trading is a specific trading method where you hold the stocks for a short yet unspecified amount of time. You might hold a position overnight or even as long as some months.

You can convert Python numbers to a string as well by using the str() command.

For example, if you type myStr = str(188.88) In [3]: myStr = str(1234.88) In [4]: print(myStr) 1234.88

Take a final snapshot of Amazon RDS even if you retain automated backups

"Final snapshots are independent of retained automated backups. We strongly suggest that you take a final snapshot even if you retain automated backups, because the retained automated backups eventually expire. The final snapshot doesn't expire." https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_WorkingWithAutomatedBackups.html#USER_WorkingWithAutomatedBackups-Retaining-RetentionPeriods

Hide Calendar Items in Outlook

Image
Create a New Category. In view settings, choose filter -> Advanced Then you just need to add any items you don't want to see to the category.

Making images responsive with CSS

Add these properties to an image: img {   max-width: 100%;   height: auto; } The max-width of 100% will make sure the image is never wider than the container it is in, and the height of auto will make the image keep its original aspect ratio.

Markdown Editors can speed up the formatting process

Markdown is much easier to compose than HTML. You can export in multiple formats  The best Markdown editor will make it easy to write your content and quickly export it to PDF, web pages, or Rich Text Format. You can work on cross-platform Since there are dozens of really good Markdown editors for all platforms (Linux, Mac, Windows, web, etc.), you can pretty much write and edit text from any device and location. This can bring a massive difference in your productivity.

VS Code supports Markdown files out of the box.

You just start writing Markdown text, save the file with the .md extension and then you can toggle the visualization of the editor between the code and the preview of the Markdown file; obviously, you can also open an existing Markdown file and start working with it.

JUnit 5 is composed of three separate modules

JUnit Platform is the foundation for launching testing frameworks in the JVM; it is supported by many IDEs and build tools. JUnit Jupiter is the newest programming model as well as the TestEngine for JUnit 5 tests. There's JUnit Vintage - the TestEngine for older JUnit 3 and JUnit 4 tests.

JUnit 5 is composed of three separate modules

JUnit Platform is the foundation for launching testing frameworks in the JVM; it is supported by many IDEs and build tools. JUnit Jupiter is the newest programming model as well as the TestEngine for JUnit 5 tests. There's JUnit Vintage - the TestEngine for older JUnit 3 and JUnit 4 tests.

Gitpod - Online IDE for GitHub

Gitpod is frictionless coding. Whether you just want to hack, have code to review or feel like trying something new on GitHub or GitLab, Gitpod beams you right into a ready-to-code dev environment with a single click. https://gitpod.io/#https://github.com/freeCodeCamp/freeCodeCamp

Gitpod - Online IDE for GitHub

Gitpod is frictionless coding. Whether you just want to hack, have code to review or feel like trying something new on GitHub or GitLab, Gitpod beams you right into a ready-to-code dev environment with a single click. https://gitpod.io/#https://github.com/freeCodeCamp/freeCodeCamp

A decision tree is simply a series of sequential decisions made to reach a specific result.

A decision tree is a supervised machine learning algorithm that can be used for both classification and regression problems. 

Data Science libraries for Python

for performing data cleaning and analysis - pandas for basic statistical tools – numpy, scipy for data visualization – matplotlib, seaborn

Data Science libraries for Python

for performing data cleaning and analysis - pandas for basic statistical tools – numpy, scipy for data visualization – matplotlib, seaborn

Check MySQL query history from command line

The .mysql_history file is internally used by the command line editiing utility program, called libedit. The file is not intended to be directly viewed, or edited etc. The content of the file is encoded by wctomb. To view the content: shell> cat ~/.mysql_history | python2.7 -c "import sys; print(''.join([l.decode('unicode-escape') for l in sys.stdin]))" If your system has python 3.x installed, the command must be changed like below: shell> cat ~/.mysql_history | python -c "import sys; print(*[l.decode('unicode-escape') for l in sys.stdin.buffer])" MyCli History and Search MyCli keeps track of the queries entered in the repl. Up/Down arrow can be used to navigate the history. Pressing <C-r> will enable incremental history search. So press <C-r> and then start typing your search term to see the queries narrowed down. You can cycle through the matches by pressing <C-r> again. The history file ~/.mycli-history contains al

GatsbyJS

https://www.gatsbyjs.org Gatsby is a free and open source framework based on React that helps developers build blazing fast websites and apps. Enjoy the power of the latest web technologies – React.js , Webpack , modern JavaScript and CSS and more — all set up and waiting for you to start building.

Bing can now return a “Yes” or “No” answer for certain queries

CREATE DATABASE in Derby by ij

Derby does not require or support a CREATE DATABASE statement. To create a new database, simply append create=true to the connection string.  If you start ij and run this statement, it automatically creates a new database in the current working directory: CONNECT 'jdbc:derby:mydb;create=true'; To create a new database for a running Derby service, include the create option in the connection URL in exactly the same way: CONNECT 'jdbc:derby://localhost:1527/mydb;create=true'; Or jdbc:derby://localhost:1527/mydb;create=true;user=myaccount;password=mypasswd

Three command-line administration utilities are supplied with Derby

dblook, for exporting schema information ij, an interactive SQL command shell The sysinfo diagnostics utility

WebAssembly

WebAssembly (abbreviated Wasm) is a binary instruction format for a stack-based virtual machine. Wasm is designed as a portable target for compilation of high-level languages like C/C++/Rust, enabling deployment on the web for client and server applications. https://webassembly.org/

TypeScript is designed and developed by Microsoft whereas Dart is taken care of by Google

TypeScript is ideal for the development of large applications whereas Dart is ideal for single page applications like Gmail.

Alipay enhances its AI-powered risk engine to protect businesses

AI will become much more important in cyber security, but in the wrong hands could prove dangerous.

The Artificial Intelligence in Security Market is expected to grow very fast

Optimizing IoT Security by Implementing Artificial Intelligence

There are three types of Web Developers

Front End Web Developers Back End Web Developers Full Stack Web Developers

Microsoft has shown record-breaking performance and has earned $125 billion in the year 2019

LinkedIn Introduces New AI Tools To Make Virtual Job Interviews Easy

AI is a job

With the growing adoption of AI technology across many industries there is a growing need for trained professionals.

Genetic algorithms are a family of search algorithms inspired by the principles of evolution in nature.

Genetic algorithms are a family of search, optimization, and learning algorithms inspired by the principles of natural evolution.

The AWS SAM CLI comes with abstractions for a number of Lambda runtimes to build your dependencies

The AWS SAM CLI comes with abstractions for a number of Lambda runtimes to build your dependencies, and copies the source code into staging folders so that everything is ready to be packaged and deployed. The sam build command builds any dependencies that your application has, and copies your application source code to folders under .aws-sam/build to be zipped and uploaded to Lambda.

Retrieves your account's AWS CloudFormation limits.

Such as the maximum number of stacks that you can create in your account: $ aws cloudformation describe-account-limits {     "AccountLimits": [         {             "Name": "StackLimit",             "Value": 200         },         {             "Name": "StackOutputsLimit",             "Value": 60         },         {             "Name": "ConcurrentResourcesLimit",             "Value": 2500         }     ] }

AWS CloudFormation enables you to create and provision AWS infrastructure deployments predictably and repeatedly.

It helps you leverage AWS products such as Amazon EC2, Amazon Elastic Block Store, Amazon SNS, Elastic Load Balancing, and Auto Scaling to build highly reliable, highly scalable, cost-effective applications in the cloud without worrying about creating and configuring the underlying AWS infrastructure. AWS CloudFormation enables you to use a template file to create and delete a collection of resources together as a single unit (a stack). https://docs.aws.amazon.com/cloudformation/index.html

Machine Learning is mathematics under computation to find patterns in data whether it is structured or unstructured.

Apache NetBeans 11.3 runs on the JDK LTS releases 8 and 11, as well as on JDK 14.

Hemingway Editor

Hemingway makes your writing bold and clear. It's like a spellchecker, but for style. It makes sure that your reader will focus on your message, not your prose. http://www.hemingwayapp.com

Install AdoptOpenJDK

Browse to the AdoptOpenJDK website. Choose OpenJDK 11 (LTS) as the version. Choose OpenJ9 as the JVM. Click the Latest release download button to download the package.

Let’s Encrypt is one of the trusted certificate authorities that provides domain validated certificates

Let's Encrypt's domain validated certificates are trusted by most browsers. It uses the Automatic Certificate Management Environment (ACME) protocol for validation, which sends a challenge to verify that you actually control your domain name. This service is widely used because it's easy and free to get a certificate.

HTML5 web worker specification provides a standard API for spawning new background threads and enables concurrency in web apps.

Web workers execute scripts in isolated threads and do not share resources with the main UI thread. The script executed by the workers has to be in a separate file. This allows web workers to perform their tasks without interfering with a main thread and without interrupting the user interface.

AI is the defining transformation technology of our time

DeepCode is an AI -based tool that integrates with code hosting platforms including GitHub, Bitbucket Server and GitLab.

Write better code with the knowledge of the global development community DeepCode alerts you about critical vulnerabilities you need to solve in your code. Don't let security bugs go to production. Save time finding and fixing them. https://www.deepcode.ai/

Java new line "%n" vs "\n" in printf

There is also one specifier that doesn't correspond to an argument. It is "%n" which outputs a line break. A "\n" can also be used in some cases, but since "%n" always outputs the correct platform-specific line separator, it is portable across platforms whereas"\n" is not. Please refer https://docs.oracle.com/javase/tutorial/java/data/numberformat.html

AI for coding

Smart Compose for code. TabNine uses deep learning to help you write code faster. https://www.tabnine.com/ Code Faster with Kite Kite is the AI assistant giving developers superpowers. https://www.kite.com/   

Samsung Galaxy S20 Plus specification

OS: Android 10 Display: 6.7-inch, Quad HD+ AMOLED, HDR10+, 120Hz Processor: Qualcomm Snapdragon 865 Storage: 128GB/512GB Memory: 12GB External Storage: microSD up to 1TB Rear cameras: Ultra-wide, 12MP, 120-degree, f/2.2; Wide-angle 12MP, 79-degree, f/1.9; Telephoto 64MP, 76-degree, f/2.0; Depth Vision Front camera: 10MP, 80-degree, f/2.2 Battery: 4,500mAh Connectivity: 5G Sub-6/mmWave, Wi-Fi 802.11ax, Bluetooth 5.0, USB-C, NFC Dimensions: 161.9 x 73.7 x 7.8mm, 186g Colors: Cosmic gray, cloud blue, and cosmic black

AI generated content.

This is a really interesting area for AI.

Building an AI algorithm requires some serious energy.

Knowing different AI frameworks and APIs will allow developers to have a better understanding of AI in general.

Python’s syntax enable different AI algorithms to be implemented into it fairly quickly, which makes you developing faster than other programming languages.

Python is among developers favorites programming languages in AI development

Machine Learning on AWS

ML SERVICES. Amazon SageMaker enables developers and data scientists to quickly and easily build, train, and deploy... AI SERVICES. AWS pre-trained AI Services provide ready-made intelligence for your applications and workflows. AI... Recommendations. Personalize experiences for your customers with the same recommendation technology used at Amazon.com. Forecasting. Build accurate forecasting models based on the same machine learning forecasting technology used by Amazon.

Artificial intelligence (AI) has completely transformed the way we live, and work and it is continuously changing how businesses will function across all industries going forward.

NVIDIA announced two powerful products for its EGX Edge AI platform

The EGX A100 for larger commercial off-the-shelf servers and The tiny EGX Jetson Xavier NX for micro-edge servers

Natural Language Processing (NLP)

NLP can be applied to tasks such as customer service handling or in chatbots to answer fact based questions.  Another emerging application for NLP is in content marketing and content production. 

Facebook Portal devices making Workplace video calls

Portal devices making Workplace video calls can use Smart Camera to automatically frame video for up to 10 people and Smart Sound to automatically enhance volume to ensure a video subject is heard even when standing at a distance from the device.

TTS systems like Facebook’s promise to deliver high-quality voices without the need for specialized hardware.

Hide or show the Remote Desktop connection bar

Image

Hide (or show) the Remote Desktop connection bar

Image
To hide (or show) the Remote Desktop connection bar when in full screen mode, follow the steps below: Go to: 'Start' > 'Programs' > 'Communication' > 'Remote Desktop Connection' Click on the 'Options >>' button Click on the 'Display' tab Hide the Connection Bar in Full Screen in RDP Remote Desktop Once you’ve unchecked this item. To get out of the full screen remote desktop session, you can use the CTRL-ALT-HOME shortcut to temporarily display the blue connection bar.

Record Videos on Windows 10 Using Video Recording

Step 1. Open any application that you want to record.  Step 2. Press “Windows + G” from the keyboard to open the Game Bar dialog. Step 3. Check the “Yes, this is game” checkbox. Step 4. Now; click on Start Recording button or simply press the key combination “Windows + Alt + R” to start the recording. Step 5. When you are done with the recording and now would like to stop, click on the red recoding bar at the top right corner of the program windows. NOTE: If the red recording bar disappears, press “Windows + G” to bring it back on the windows screen.

Turn off or Allow Ad blocker in Chrome

To turn off the ad blocker : At the top right, click More > Settings > Advanced > Site Settings > Ads. Turn on "Blocked on sites that tend to show intrusive ads (recommended)". If you trust a site, you can add an exception to allow ads on that site. 1 On your computer, open Chrome. 2 Go to a page you trust that has blocked ads. 3 To the left of the web address, click Lock or Info. 4 To the right of "Ads," click the Arrows. 5 Choose Always allow on this site. 6 Reload the webpage.

Contempo Blogger Theme is a Responsive Lifestyle Blogger theme

DoubleClick AdX is a standalone Google display ad exchange provider

DoubleClick AdX offers a huge inventory to huge advertisers, managed through a trade desk type of service.

Google Site Kit Gives Attackers Access to Google Search Console

Artificial intelligence means any technology that seeks to mimic human intelligence

Uninstalling older versions of Java because of serious risks due to unresolved security issues.

Whatever your level of writing, ProWritingAid will help you achieve new heights.

Find errors, strengthen your writing, get your ideas across!

Thinkpad™ X1 Carbon Gen 8 - Premium Performance & Mobility

Built for Extreme Environments W/ Intel® Core™ & Up to 19.5 Hours Of Battery Life. LENOVO MOBILE SWEEPSTAKES. We're giving away a Yoga Book each week through May 5 ... "Great customer service and love the product". Marries premium performance & mobility One of our first Intel® 14" mobility-certified laptops Thin and lightweight Amazing display options Up to 19.5 hours of battery life Best-in-class connectivity, and rapid charging technology Advanced security options and enhanced audio Delivers the ultimate in premium performance

HP Spectre x360 13

HP Spectre x360 2019 13T Gemcut Laptop i7-8565U 1.8GHz, 16GB RAM, 512GB SSD, Windows 10 Home, HDMI, USB C, 13.3 FHD Touchscreen, B&O Speakers, Win 10 Home, 3 Years Mcafee Internet Security 4.3 out of 5 stars 66 HP Envy x360 15.6-in Full HD Touchscreen AMD Ryzen 5 8GB 256GB SSD 2-in 1 Convertible Laptop HP Spectre x360 13 can connect to ATT & T-Mobile. Verizon & Sprint not available. 4G Module on select models and designed for up to 1 Gbps download speeds (CAT16 LTE with 4x4 antenna configurations). Theoretical speed based on 3 CA (carrier aggregations) network defined by 3GPP (3rd Generation Partnership Project) specification.

Set passwords to never expire

Research shows that making people change their passwords may do more harm than good. This leads to users choosing predictable passwords that are more easily compromised. We recommend setting passwords to never expire.

Find the master user of RDS on AWS console

1) Sign in to the AWS Management Console and open the Amazon RDS console at https://console.aws.amazon.com/rds/ . 2) In the navigation pane, choose Databases. 3) Select your DB cluster 4) Select the configuration tab 5) Under the " Availability " section you should be able to find the Master username

SSH and SSL

SSH and SSL are both public-key cryptography tunneling protocols and aims to create a secure, confidential exchange of data and connection across the internet. SSH means “Secure Shell”. SSL means “Secure Sockets Layer”. Many protocols — like HTTP, SMTP, FTP, and SSH  were adjusted to include the support of SSL. SSH often uses SSL under the hood, so they are both as secure as each other.

Start ssh-agent

eval `ssh-agent -s` ssh-add

CCM Ruckus Kids' Bike's brake lever

The original CCM Ruckus Kids' Bike's brake lever is plastic and easy to brake. I successfully installed Supercycle V-Type Bike Brake Levers and my kid tested it ok. Their materials are alloy and much stronger than plastic.

Google and Apple release sample code for their contact tracing tool

GraalVM Ent is a multilingual virtual machine

GraalVM Enterprise includes a “safe mode” for native libraries based on Oracle’s LLVM bitcode runtime.

The Oracle Cloud Infrastructure (OCI) Monitoring service is a foundational health monitoring tool that runs on GraalVM Enterprise.

By using GraalVM, the Monitoring service reduced its garbage collection times by 25%, application pause times by 17%, and saw a 10% increase in throughput.

Oracle's GraalVM universal virtual machine

GraalVM supports applications written in Java, JavaScript and other programming languages and execution modes.

GitHub for Atom

A text editor is at the core of a developer’s toolbox, but it doesn't usually work alone. Work with Git and GitHub directly from Atom with the GitHub package. Create new branches, stage and commit, push and pull, resolve merge conflicts, view pull requests and more—all from within your editor. The GitHub package is already bundled with Atom, so you're ready to go! Atom is an open-source and freely available best python IDE. It is developed by Github and contains in-built GIT support which works across various Operating Systems. It is lightweight and has a huge number of plugins and extensions readily available to perform advanced analysis and decoding in Python.

Java text block can be thought of as a two dimensional block of text embedded in a Java program.

Text blocks are string literals that can comprise multiple lines of text and uses triple quotes (""") as its opening and closing delimiter.

Canada lost nearly 2 million jobs in April; U.S. economy lost 20.5 million jobs in the same month.

Diversification is key

Never put all your eggs in one basket or one stock. 

Switch Expressions in Java

int month = 5 ; String monthString; monthString = switch (month) { case 1 - > " January " ; case 2 - > " February " ; case 3 - > " March " ; case 4 - > " April " ; case 5 - > " May " ; case 6 - > " June " ; case 7 - > " July " ; case 8 - > " August " ; case 9 - > " September " ; case 10 - > " October " ; case 11 - > " November " ; case 12 - > " December " ; default - > " Invalid month " ; }; System . out . println(monthString); Comment © 2020 GitHub, Inc.

Set Default Linux Distribution/Distro

PS C:\Users\goyun> wslconfig /l Windows Subsystem for Linux Distributions: kali-linux (Default) Ubuntu-20.04 PS C:\Users\goyun> wslconfig /setdefault Ubuntu-20.04 PS C:\Users\goyun> wslconfig /l Windows Subsystem for Linux Distributions: Ubuntu-20.04 (Default) kali-linux

Output Windows Environment Variables from command line

The environment variables in Windows can be printed/Listed using the Windows command-line prompt (CMD) or using the PowerShell. Windows Command-Line Prompt (CMD) List all Windows environment variables and their values: C:\> set “Echo” the contents of a particular environment variable: C:\> echo %ENVIRONMENT_VARIABLE% Windows PowerShell Print all Windows environment variables (names and values): PS C:\> gci env:* | sort-object name Show the contents of a particular environment variable: PS C:\> echo $env:ENVIRONMENT_VARIABLE

Economy loses 20.5M jobs and unemployment soars to 14.7% in April

Automating easy checks

checking code style,  identifying common bugs,  finding security issues

Pseudocode for a singly linked list

DECLARE CLASS Node   DECLARE STRING name   DECLARE Node next END DECLARE DECLARE Node head = NULL

The Food and Drug Administration cleared a coronavirus vaccine for a phase 2 trial.

FDA approves phase 2 trial for coronavirus vaccine Phase 3 trial is as early as this summer.

Algorithm is a method for solving problems which can be implemented via programming.

Data structures and algorithms are essential for any programmer.

MySQL check all foreign keys to a table or column

For a Table: SELECT   TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME, REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME FROM   INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE   REFERENCED_TABLE_SCHEMA = '<database>' AND   REFERENCED_TABLE_NAME = '<table>'; For a Column: SELECT   TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME, REFERENCED_TABLE_NAME,REFERENCED_COLUMN_NAME FROM   INFORMATION_SCHEMA.KEY_COLUMN_USAGE WHERE   REFERENCED_TABLE_SCHEMA = '<database>' AND   REFERENCED_TABLE_NAME = '<table>' AND   REFERENCED_COLUMN_NAME = '<column>';

Limiting the number of records from mysqldump

 mysqldump --opt --where="1 ORDER BY id DESC limit 8888"

Limits on Table Column Count and Row Size - MySQL

The internal representation of a MySQL table has a maximum row size limit of 65,535 bytes, even if the storage engine is capable of supporting larger rows. BLOB and TEXT columns only contribute 9 to 12 bytes toward the row size limit because their contents are stored separately from the rest of the row.

SecureDrop is an open-source whistleblower submission system

Mmedia organizations use SecureDrop to securely accept documents. This encrypted submission system uses the Tor anonymity software to protect your identity, location and the information you send.

GoDaddy Confirms Data Breach

Microsoft chose Linux instead of Windows 10 to power an IoT security platform

Zero-Trust assumes that nobody can be trusted

No matter where they are connecting from, and those users are then allocated permissions to access only what they can be trusted with.

Quebec’s covid mortality rate per million: 268

The final design for PlayStation 5 will be officially unveiled by Sony Interactive Entertainment on the PlayStation Blog on June 2, 2020

FedEx reduced hiring amid COVID-19 despite rise in e-commerce shipments

Best websites to choose icons for your sites.

1. Fontastic 2. Flaticon 3. Swift icons 4. Ionicons 5. Font awesome 6. Icon54 7. Icons8 8. Iconmonstr 

SEO content E-A-T.

Expertise, Authoritativeness and Trustworthiness.

Use your keywords in your title

Use keywords only to help search engines parse out the meaning of your page and to help your users.

MySQL connect by TCP instead of a Unix socket

To ensure that the client makes a TCP/IP connection to the local server, use --host or -h to specify a host name value of 127.0.0.1, or the IP address or name of the local server. You can also specify the connection protocol explicitly, even for localhost, by using the --protocol=TCP option. Examples: mysql --host=127.0.0.1 mysql --protocol=TCP You can also easily make that the default my editing your my.cnf so it has this ([client] means any client: [client] protocol=tcp

United Airlines plans to cut more than 3,400 management jobs

Manitoba says cutting non-essential jobs will free up money for COVID-19 fight

Eclipse's external tool allows you to run any external program like a batch file from local drive

Eclipse's external tool can also be used to run command prompt from Eclipse console itself.

Google Wallet is a fast, free way to send and request money.

Google Wallet, which is linked to debit card or bank account, allows you to send money to anyone through their email address or phone number for free. You can send money to someone using just their email address or phone number – they don’t need to have the Wallet app. When you receive money, you can have it transferred directly to your default payment method so you never have to cash out. 

eCheck - electronic check

Instead of physically writing and sending a paper check, you can input the same information found on your paper check (routing and account number, name, amount, and authorization) in an online payment form or software interface.  The payment is processed electronically – which means that it’s secure, lightning fast, and cheap.

Pivot enables developers to build solutions using the tools they already know, decreasing delivery time and reducing technology sprawl.

Pivot allows developers to easily construct visually-engaging, cross-platform, connected applications in Java or any other JVM language, such as JavaScript, Groovy, or Scala. Pivot is also the only truly open IIA framework: it is completely open source, and is driven entirely by the software development community.

Pivot classes are grouped into the following primary categories

Core - A set of common, non-UI classes. WTK - Classes for user interface development, including windows, dialogs, buttons, lists, text input, layout, drag and drop, etc. Web - Classes to facilitate implementation of and communication with remote data services. Charts - Classes for adding interactive charting capabilities to Pivot applications. The classes in each category are packaged and distributed in a corresponding library or set of libraries

Scripting for the Java Platform is a framework for embedding scripts into Java source code.

BXML is an XML-based markup language for simplifying the construction of Java object hierarchies.

While BXML is most often used to define the user interface of an Apache Pivot application, it is not limited to user interface construction, and can actually be used to create hierarchies of any object type. In the case of Apache Pivot the designer can place the WTK-components and set their properties without writing a single line of Java code. In more complex projects there usually is one class file for each BXML file to hold the logic, though there are other possibilities.

Apache Pivot is an open-source platform for building rich web applications in Java or any JVM-compatible language.

A brand is anything—a symbol, design, name, sound, reputation, emotion, employees, tone, and much more—that separates one thing from another.

Technical analysis is an analysis methodology for forecasting the direction of prices through the study of past market data, primarily price and volume.

Britain said on Monday that China has questions to answer over the information it shared about the novel coronavirus outbreak

Health Canada is restricting the use of a made-in-Canada, rapid COVID-19 test created by Spartan Bioscience

National Microbiology Lab found problems with the test that made it unreliable.

TikTok reaches 2 billion downloads

YAML Glossary

Sequences are lists - Item 1 - Item 2 Mappings are key-value pairs key1: value1 key2: value2 A sequence of mappings: - key1: value1   key2: value2 A mapping of mappings: overallkey:   key1: value1   key2: value2

AWS CloudFormation Template is a declaration of the AWS resources that make up a stack.

The template is stored as a text file whose format complies with the JavaScript Object Notation (JSON) or YAML standard. Because they are just text files, you can create and edit them in any text editor and manage them in your source control system with the rest of your source code.

You can define AWS Cloudformation templates as YAML, but they will ultimately be processed into JSON.

AWS CloudFormation Macros transform statements in your template.

AWS CloudFormation custom resources manage the lifecycle of resources outside of what is defined in the AWS CloudFormation template.

Amazon EBS Multi-Attach is available on Provisioned IOPS io1 volumes

This feature is now available through the AWS Command Line Interface (CLI), AWS SDKs, or the AWS console in the following commercial regions: US East (N. Virginia), US West (Oregon), Europe (Ireland), and Asia Pacific (Seoul). 

SEO is always an ongoing, methodical practice that requires strategic focus and regular maintenance in order to maintain and ultimately improve rankings.

Using email to amplify your omnichannel efforts

The reason one can use recursion to solve a problem is that one big problem can be divided into multiple subproblems and each subproblem follow the same logic and structure.

All coding problems that can be formatted into tree structures are mostly can be solved by either breadth first search or depth first search.

Different from breadth first search is implemented using stack Depth first search takes a divide and conquer approach which is implemented using recursion.

Disadvantages of Greedy Algorithms: The local optimal solution may not always be global optimal.

Greedy Algorithms works step-by-step, and always chooses the steps which provide immediate profit/benefit.

Greedy algorithms may not always lead to the optimal global solution, because it does not consider the entire data. The choice made by the greedy approach does not consider the future data and choices.

Linux List all the available devices with their Universally Unique Identifier

List all the available devices with their Universally Unique Identifier (UUID), the TYPE of the file-system and the LABEL if it's set. # blkid

Fixed ec2 nvme: command not found

sudo dnf install nvme-cli

Identify NVMe EBS volume

NVMe EBS volumes have the EBS volume ID set as the serial number in the device identification. Use the lsblk -o +SERIAL command to list the serial number. [ec2-user@ip-172-16-1-223 ~]$ lsblk -o  +SERIAL NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT SERIAL nvme1n1 259:0 0 18G 0 disk /opt/glassfish vol0dd95bcb9ed628c19 nvme0n1 259:1 0 8G 0 disk vol08012197781352aaa ├─nvme0n1p1 259:2 0 8G 0 part / └─nvme0n1p128 259:3 0 1M 0 part nvme2n1 259:4 0 18G 0 disk vol03f6cfb8cd92bffff

Format a volume as xfs for Linux

$ sudo mkfs -t xfs /dev/xvdf If you get an error that mkfs.xfs is not found, use the following command to install the XFS tools and then repeat the previous command: $ sudo yum install xfsprogs

Use the file -s command on Linux to get information about a device

To get information about a device, such as its file system type: If the output shows simply data, as in the following example output, there is no file system on the device and you must create one. $ sudo file -s /dev/xvdf /dev/xvdf: data $ sudo file -s /mnt /mnt: directory

Continuation of Learning and Well-Being

Remote learning continues for more than 240,000 students in the Toronto District School Board. The Government of Ontario has announced that all publicly-funded schools, including those at the TDSB, will remain closed until at least May 31, 2020 as part of ongoing efforts to stop the spread of COVID-19. https://www.tdsb.on.ca/remote-Learning

get the currently installed SSM Agent version from within the operating system

Run the following command for Amazon Linux and Amazon Linux 2. yum info amazon-ssm-agent On Ubuntu $ sudo snap info amazon-ssm-agent name:      amazon-ssm-agent summary:   Agent to enable remote management of your Amazon EC2 instance configuration publisher: Amazon Web Services (aws✓) store-url: https://snapcraft.io/amazon-ssm-agent license:   unset description: |   The SSM Agent runs on EC2 instances and enables you to quickly and easily   execute remote commands or scripts against one or more instances. The agent   uses SSM documents. When you execute a command, the agent on the instance   processes the document and configures the instance as specified. Currently,   the SSM Agent and Run Command enable you to quickly run Shell scripts on an   instance using the AWS-RunShellScript SSM document. commands:   - amazon-ssm-agent.ssm-cli services:   amazon-ssm-agent: simple, enabled, active snap-id:      T09mpujiTnzSdSCuqNkE7YXXTWDq13tC tracking:     latest/stable/

Fixed Windows warning: agent returned different signature type ssh-rsa (expected rsa-sha2-512)

On windows: Run ssh-agent.exe ssh-add ssh And you get the warning: warning: agent returned different signature type ssh-rsa (expected rsa-sha2-512) It is because ssh-agent on Windows is using an older signing algorithm that your sever is rejecting. The issue is with ssh-agent version on Windows To fix: Download the latest release from here and substitute the "install-sshd.ps1" script for this one . Then run the replaced "install-sshd.ps1".

Stop or disable AWS load balancer

There is no way to stop a load balancer.  You need to remove it to avoid being billed.

Benefits of Learning Online

It's all about expanding choice and opportunity. E-Learning provides students with learning experiences that are: Flexible: students can learn anytime, anywhere Relevant: students prepare for their future in an increasingly digital world Engaging: students enjoy rich, interactive online content