Showing posts from April, 2020

Digital Marketing

The infrastructure in a Fargate cluster is fully managed by AWS.

 Your containers run without you managing and configuring individual Amazon EC2 instances.

driver.close() vs driver.quit()

driver.close() The driver.close() command is used to close the current focused browser tab. In case there is only one browser open then calling driver.close() quits the whole browser session. It is best to use driver.close() when we are dealing with multiple browser tabs or windows e.g. when we click on a link that opens another tab. In this case after performing required action in the new tab, if we want to close the tab we can call the driver.close() method. //Closing the single tab driver.close(); driver.quit() The driver.quit() is used to quit the whole browser session along with all the associated browser windows, tabs and pop-ups. It is best to use driver.quit() when we no longer want to interact with the driver object along with any associated window, tab or pop-up. Generally, it is one of the last statements of the automation scripts. In case, we are working with Selenium with TestNG or JUnit, we call driver.quit() in the @AfterSuite method of our suite. Thus, clos

Installing chocolatey on Windows

Install chocolatey/choco on Windows 10 Click Start and type “powershell“ Right-click Windows Powershell and choose “Run as Administrator“ Paste the following command into Powershell and press enter. Set-ExecutionPolicy Bypass -Scope Process -Force; `   iex ((New-Object System.Net.WebClient).DownloadString('')) Answer Yes when prompted Close and reopen an elevated PowerShell window to start using choco Example usage: choco install chromedriver

Selenium supports Java

Programs written in Java are faster than other popular languages like Python Java is more widely used in commercial applications as compared to other programming languages like Python and hence integrating Selenium tests it easier

Run Selenium Automated Test

Selenium is the first thing that comes to mind when one is planning to automate the testing of web applications. Selenium is a beneficial tool because it is not only open source but also a portable software testing framework for web applications that support multiple languages like Java, C#, Ruby, Python. Choosing the right language depends on the application under test, the supporting community, available test automation frameworks, usability, elegance, and of course, seamless build integration.

Creating an XML Sitemap in WordPress using Yoast SEO

The easiest way to create an XML sitemap in WordPress is by using the Yoast SEO plugin. It is the best WordPress SEO plugin on the market offering you a comprehensive set of tools to optimize your blog posts for SEO. First, you need to install and activate the Yoast SEO plugin. For more details, see our step by step guide on how to install a WordPress plugin. Upon activation, go to SEO » General page and switch to the 'Features' tab. From here, you need to scroll down to the 'XML Sitemap' option and make sure that it is turned on.

Import Blogger to WordPress

To start importing your Blogger site into WordPress, you need to login to your WordPress admin area and visit Tools » Import. On the Import page, go ahead and click on the 'Install Now' link below Blogger.

Jenkins has a built-in command line interface that allows you to access Jenkins from a script or from your shell.

Jenkins CLI is convenient for automation of routine tasks, bulk updates, trouble diagnosis, and so on. This interface is accessed via the Jenkins CLI client, which is a Java JAR file distributed with Jenkins.

Log all MySQL dead locks

SET GLOBAL innodb_print_all_deadlocks = 'ON'; The option is dynamic, and can be enabled without a service restart.   If you want to make it persistent after a service restart, you may want to add it to the my.cnf file as: [mysqld] ... ... innodb_print_all_deadlocks = 1

SSL for Your Website

Data of your visitors is protected SSL (Secure Sockets Layer) encrypts and protects all data that your website exchanges with visitors - such as personal data, login data, credit card information and e-mail addresses. This means that third parties have no access to this data. Confidence in your website is strengthened Your visitors recognize the SSL encryption by the SSL logo in the address bar of your browser and by the character string https:// in front of your domain. With SSL encryption you set a sign and show your visitors that security and protection of their data are your first priority. Better ranking with Google and other search engines SSL encryption is rated positively by Google and other search engines, resulting in better ranking of your site in search results.

Office 365 collaboration applications include:

Word: Word processing with multiple users Excel: Spreadsheets with multiple users PowerPoint: Prepare presentations with multiple users Outlook: Share appointments, calendars and tasks with team members Teams: Communicate with colleagues Access: Create databases with multiple users OneNote: Share notes with other users OneDrive: Shared cloud storage

Gauge is a free and open source framework for writing and running acceptance tests

Some of the key features of Gauge that makes it unique include: Simple, flexible and rich syntax based on Markdown. Consistent cross platform/language support for writing test code. A modular architecture with plugins support Extensible through plugins and hackable. Supports data driven execution and external data sources Helps you create maintainable test suites Great support for VS Code

Gauge is a free and open source framework for writing and running acceptance tests,+flexible+and+rich+syntax+based+on+Markdown.%0AConsistent+cross+platform/language+support+for+writing+test+code.%0AA+modular+architecture+with+plugins+support%0AExtensible+through+plugins+and+hackable.%0ASupports+data+driven+execution+and+external+data+sources%0AHelps+you+create+maintainable+test+suites%0AGreat+support+for+VS+Code%0A

systemd does not run correctly within a docker container

systemd does not run correctly within a docker container, due to a whole set of reasons, i.e. the lack of the correct privileges. You can read up on that in a variety of github issues on the docker project like running systemd inside docker arch container hangs or segfaults and related issues regarding init/process monitoring.

Check the image’s metadata

Some image creators embed crucial information about their images into the file's metadata (also known as EXIF data).  It's easy to access this information from your Mac or PC desktop Viewing EXIF data in Windows is easy. Just right-click on the photo in question and select "Properties". View EXIF Data Using Preview in macOS On macOS, by opening up a photo in Preview. Once open, click on "Tools" up in the menu bar at the top. From there, select "Show Inspector". Click on the "Exif" tab if it's not already selected. You'll then see a slew of advanced information about the photo, including the various camera settings that were used. It'll even tell you if the flash was used or not.

Google reverse image search

Google's reverse image search is a useful tool to find details of the image owner .  Simply upload the file or paste the image link into and follow the results to see where else the image lives online. From there, you should be able to ascertain ownership information.

Install SpamAssassin on CentOS/RHEL/Oracle Linux

sudo dnf install spamassassin The binary installed by the spamassassin package is called spamd, which will be listening on TCP port 783 on the local host. By default, the spamassassin systemd service is disabled, you can enable auto start at boot time with: sudo systemctl enable spamassassin Then start SpamAssassin. sudo systemctl start spamassassin [ec2-user@ip-172-31-5-206 ~]$ sudo ss -ant | grep 783 LISTEN   0         128         * LISTEN   0         128                   [::1]:783                 [::]:* [ec2-user@ip-172-31-5-206 ~]$ sudo -i lsof -i TCP:783 COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME /usr/bin/ 7556 root    5u  IPv4  44647      0t0  TCP localhost:783 (LISTEN) /usr/bin/ 7556 root    6u  IPv6  44649      0t0  TCP localhost6:783 (LISTEN) spamd     7558 root    5u  IPv4  44647      0t0  TCP localhost:783 (LISTEN) spamd     7558 root    6u  IPv6  44649      0t0  TCP localhost6:783 (LISTEN) spa

On Unix-like operating systems, the readlink command prints the value of a symbolic link, or canonical file name. This document describes the GNU / Linux version of readlink.

Example: readlink -f $( which nc )