How To Select Multiple Checkboxes in Selenium WebDriver Using Java

Featured Imgs 23

Have you ever wondered how frustrating it would be if you had to log in each time you wanted to view your Facebook profile? Or in a multiple-choice question where you’d like to mark many options but can’t? Or do you have to enter your card information each time you make a payment since you can’t save it?

These are only a few of the numerous instances on web pages where quick functionality might be useful. Stay logged in for a while, save card details, and much more with a simple click. Basically, it’s a technique to turn things on and off while allowing for multi-selection.

Chris’ Corner: Websites, Highlights, and Guesses

Category Image 052

I love Henry’s guide: How to Make a Website.

There is precious little recent instructional material on how you can build a website, a perfectly great website, using just the raw materials of the web. Raw HTML & CSS, as it were. But that’s not all that Henry’s guide is about. It’s full of holistic advice going well beyond web design:

Be kind and curious and humble when you’re working with folks, and be extra forgiving of their mistakes, so when the time inevitably comes that you make your own, there’s perhaps some goodwill in the vault for you.

 🙏

I do suspect if it’s not just lack of awareness that you can build a website with just hand-written raw HTML and CSS, but more of a then what? situation. Of course, we’re hoping CodePen is a place where that is a good option and are working to make that better every day. But there are plenty of options for getting that locally crafted HTML website to a real website, like Vercel, Netlify, GitHub pages, etc, which all make it pretty decently easy. It would be unfortunate if the DevOps knowledge for getting websites to production is just as much knowledge as actually making websites.

Oh hey this makes me think of a great term thrown out by Robb Owen: Hand-thrown frontends. He compares the website-making process to the ceramics process of making a bowl out of clay.

So, for me, the frontend bowl-making process is a cyclical, non-linear one. On a surface-level it probably doesn’t seem like it’s as efficient as assembling Lego bricks to order, but over time you’ll make more bowls and each phase of iteration will gradually shorten as your skill increases towards mastery.

I’m a sucker for a good ceramics analogy as that’s what my Bachelor of Arts was focused on in college.

Oh! And speaking of Ceramics, have you seen Charlotte Dann’s Ceramics project? It’s probably my favorite generative art project I’ve ever seen. This surface is totally code-generated:

Might as well be a photograph of real carved, glazed clay.

Oooooo tricky CSS challenge! Skewed Highlights. Vadim Makeev did up good:

You’d think transform: skew() would be involved somehow, but there isn’t a great opportunity for that, especially with arbitrary line breaks and such. Instead, the backgrounds are created with multiple gradient backgrounds (super clever) and fortunately box-decoration-break: clone; makes it look reasonable across lines.


Musing about slight alterations in CSS selector structure and how it affects selections? Sign me up for that party! Bramus compares:

.a .b .c { }
/* Versus! */
.a :is(.b .c) { }

They do look and behave similarly, but the former enforces that “c is a child of b is a child of a” situation solidly, while the latter allows for a situation where c is a child of a which is a child of b. That’s way too hard to understand in words, so here’s an image:

Admittedly I don’t reach for :is() all that much, but I suspect usage might go up a bit now that native CSS nesting is here and that all nested selectors must start with a symbol. So a quick way around wanting to nest element selector is wanking it in an :is():

header {
  h1 { } /* nope */
}

header {
  :is(h1) { } /* yup */
}

Let’s end with a little collection of developers looking forward to upcoming tech trends. This is, of course, popular in January and it’s March now but gimme a break I’m a little slow sometimes.

Public Key and Private Key Pairs: Know the Technical Difference

Featured Imgs 23

In public key cryptography, the combination of private and public keys is considered the primary component. Both the keys come in pairs. So a public or private key will only function with the associated public or private key. It means that one private key can only have one public key and vice versa.

Before we get into the part where we explain how the combination works, let us first discuss each of the keys individually. So let’s get started with the private key first.

Learn CSS Grid “The Easy Way”!

Category Image 052

CSS Grid is a layout system for the web, allowing developers to create complex, responsive designs using rows and columns. Grid is used to make complex web design layouts more easily. In this article, we will explore the basics of CSS Grid with a step-by-step guide. Readers will discover how to create complex, responsive web designs using rows and columns with CSS Grid.

First things first, we have to make a div and give it a class of containers or anything you want.

How to Submit Your Website to Search Engines (Works in 2023)

Featured Imgs 23
how to submit your website to search enginesIf you want your website to enjoy long-term success, you need to make sure it ranks well on search engines. Before you worry about ranking, though, you need to make sure search engines know your site exists in the first place. This guide on how to submit your website to search engines will show you what to do in order to achieve that result.

The Problem with Web Design Trends: Why Following Them Blindly Can Hurt Your Business

Category Image 041

This post is originally published on Designmodo: The Problem with Web Design Trends: Why Following Them Blindly Can Hurt Your Business

Web design trends come and go. Some trends stick around for a while, while others quickly fade into obscurity. As a business owner or web developer, jumping on the latest trend bandwagon is tempting. However, blindly following web design trends …

For more information please contact Designmodo

Quick Tip: How To Disable Autocomplete on Form Inputs

Featured Imgs 03

Autocomplete is a feature that can save users’ time by suggesting previously entered information when filling out forms. Although it can be a helpful feature, sometimes it can be a privacy concern, especially when users share devices or work on public computers. In this case, users may want to disable the autocomplete feature for specific input fields or forms. In this article, we will discuss how to disable autocomplete for input elements.

UNLIMITED DOWNLOADS: 1,500,000+ Icons & Design Assets

 

The autocomplete attribute

The autocomplete attribute is used to control this feature. This attribute can be applied to different form elements, including input tags. It takes two values: “on” and “off.” By default, the browser sets the value to “on” for input tags. When set to “off,” the browser will not suggest previously entered values for that particular input field.

Disabling autocomplete for a specific input field

To disable auto-complete for a specific input field, you can use the following code:

<input type="text" name="username" autocomplete="off">

In the above code, we have added the autocomplete attribute to an input tag and set its value to “off.” This will disable it for that particular input field. You can apply this attribute to other input tags as well, including password fields, email fields, and search fields.

Disabling autocomplete for a whole form

If you want to disable it for a whole form, you can add the attribute to the form element and set its value to “off.” The following code demonstrates this:

<form method="post" action="/submit-form" autocomplete="off">
  <input type="text" name="username">
  <input type="password" name="password">
  <input type="email" name="email">
  <button type="submit">Submit</button>
</form>

In the above code, we have added the autocomplete attribute to the form element and set its value to “off.” This will disable it for all the input fields within the form.

Best practices

When disabling autocomplete, it is essential to keep in mind that it can impact the user experience. Some users may appreciate the feature, as it can save time and make filling out forms easier. Therefore, it is recommended to disable it only when necessary, such as when the user is working on a public computer.

Another best practice is to use the attribute only for specific input fields, such as search fields or email fields, to provide a better user experience.

How to Download Your Entire WordPress Media Library (3 Ways)

Wp Plugins

Do you want to download all the images and media files from your WordPress website?

By downloading your media library, you can easily store a backup of your media files on your computer or, if you have created another WordPress site, then you can also transfer these images from one site to another.

In this article, we’ll show you how to easily download your entire WordPress media library, step by step.

How to download your entire WordPress media library

Why Would You Want to Download the Media Library?

The WordPress media library stores all the media files that you have uploaded to your site. If you want to create a backup of these media files, then you can easily do that by downloading a copy of the media library and storing it on your computer.

You can always use a fully automated WordPress backup solution to back up your entire WordPress site (including plugins, themes, posts, and the media library).

However, most backup plugins do not offer an easy way to just download and upload your media library.

You could also use your WordPress hosting account file manager or FTP to download the media library, but these methods are a bit complicated and confusing for beginners.

With that being said, we’ll show you some easy ways to easily download your entire media library in WordPress.

Method 1. Download Media Library Using The Export Media Library Plugin

For this method, we’ll be using a plugin to download the media files.

First, you need to install and activate the Export Media Library plugin. For more details, see our guide on how to install a WordPress plugin.

Upon activation, go to the Media » Export page from your admin area.

Once you’re on the ‘Export Media Library’ page, simply choose the ‘Single folder with all files’ option from the dropdown menu beside the ‘Folder Structure’ option.

Download the media library using the Export Media Library plugin

Now all your media will be downloaded into one folder. They will be downloaded as the original file types, such as JPG, PNG, or SVG.

If you want your media to be placed into separate folders based on the time of upload, then choose the ‘Nested Folder’ option from the dropdown menu.

After that, simply click the ‘Download Zip’ button, and your entire media library will be downloaded into a zip file on your computer.

Method 2. Download the Entire WordPress Backup Including Media Files

If you want to create a backup for your entire WordPress website including the media library, then this method is for you.

We’ll be using the Duplicator plugin which is the best WordPress backup plugin on the market and enables you to create a complete backup of your WordPress website.

First, you’ll need to install and activate the Duplicator plugin. For more details, see our guide on how to install a WordPress plugin.

Upon activation, you need to visit the Duplicator » Packages page from the admin sidebar and click on the ‘Create New’ button.

Create a new backup by clicking the Create New button

Next, you need to choose a name for your WordPress backup.

It can be anything that will help you identify the backup once it’s downloaded on your computer.

After that, click on the ‘Next’ button to continue.

Choose a backup name

In the next step, your website will be scanned for potential errors.

Once the scan is complete, simply click on the ‘build’ button to create your package.

Note: If an error is highlighted by Duplicator during the scan, you would need to solve that error before rescanning and building your package.

Scan complete

Once the package is built, you need to click on the ‘Download Both Files’ button.

Now, your installer and archive files will be downloaded simultaneously.

Click the Download both files button

Your WordPress website backup including media files will now be downloaded and stored on your computer.

If you want to restore a WordPress backup, you may also want to see our guide on how to restore WordPress from a backup.

Method 3. Download Media Library Using WordPress Settings

In this method, we’ll show you how to download your entire media library from your WordPress backend and import it to another WordPress website.

Note: This method allows you to download the media library without using any plugins. However, we do not recommend this method because it exports your media as an XML file.

This method can come in handy if you want to import your WordPress media library to one of your other websites.

For that, head over to the Tools » Export page from the WordPress admin dashboard.

Now that you’re on the ‘Export’ page, simply check the box beside the ‘Media’ option.

If you don’t want to download your entire library, then you can also select a date range for a specific time frame. With this feature, only the images uploaded during your chosen time frame will be downloaded.

Finally, click on the ‘Download Export File’ button.

Choose media on the export page

Now, your WordPress media library will be saved on your computer as an XML file.

Next, you need to install and activate the WordPress Importer plugin. For more instructions, please see our guide on how to install a WordPress plugin.

This plugin will allow you to import your XML file to another WordPress website.

First, you need to visit the Tools » Import page from the admin sidebar.

Then you can simply click on the ‘Run Importer’ link below the ‘WordPress’ option.

Click on the run importer link

This will take you to the ‘Import WordPress’ page where you need to click on the ‘Choose File’ button.

Now, you can upload your media library XML file from the computer.

Import media

Once you’re done, don’t forget to click on the ‘Upload file and import’ button to upload the media library.

We hope this article helped you download your WordPress media library. You may also want to see our tutorial on how to speed up your WordPress website, and our comparison of the best Instagram plugins for WordPress.

If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.

The post How to Download Your Entire WordPress Media Library (3 Ways) first appeared on WPBeginner.

Different Ways To Rename Database Objects

Category Image 062

This article explains different methods to rename database objects. We can rename database objects by using any of the following methods:

  • Rename database objects using SSMS.
  • Rename database objects using the sp_rename stored procedure.

To understand the concept with more clarity, I have explained the methods with simple examples. For demonstration, I have created a database named SchoolManagement. I have created a database schema using ChatGPT. There is an interesting article written on ChatGPT and how we can use it. You can read it here. The script to create the database and tables are following:

The 5 Books You Absolutely Must Read as an Engineering Manager

Featured Imgs 23

Continuous learning is one of the guiding principles that all people should apply in their life. Reading is an excellent tool to learn, and it is a habit that we should all be doing on a regular basis. Since I love reading books about different topics, in this article, I'm going to share five books that have helped me a lot to improve as Engineering Manager.

When we read a book, we should always remember three important things: 

Simulating and Troubleshooting BLOCKED Threads in Kotlin [Video]

Featured Imgs 23

In this latest article of the series about simulating and troubleshooting performance problems in Kotlin, let’s discuss how to make threads go into a BLOCKED state. A thread will enter into a BLOCKED state if it can’t acquire a lock on an object because another thread already holds the lock on the same object and doesn’t release it.

Kotlin BLOCKED Thread Program

Here is a sample program that would make threads go into a BLOCKED state.

From Data Stack to Data Stuck: The Risks of Not Asking the Right Data Questions

Featured Imgs 23

Companies are in continuous motion: new requirements, new data streams, and new technologies are popping up every day. When designing new data platforms supporting the needs of your company, failing to perform a complete assessment of the options available can have disastrous effects on a company’s capability to innovate and make sure its data assets are usable and reusable in the long term.

Having a standard assessment methodology is an absolute must to avoid personal bias and properly evaluate the various solutions across all the needed axes. The SOFT Methodology provides a comprehensive guide of all the evaluation points to define robust and future-proof data solutions. However, the original blog doesn’t discuss a couple of important factors: why is applying a methodology like SOFT important? And, even more, what risks can we encounter if we’re not doing so? This blog aims to cover both Aspects.

Developing a Barcode Reader To Make Life Easier

Featured Imgs 23

I recently came across an article saying that barcodes and barcode readers have become a mainstay of today's economies and our lives in general since they were introduced in the 1970s.

So, I decided to test how true this is by seeing how often I come across barcode readers on a typical day of mine. And — surprise surprise — they turned out to be more important than I thought.

5 Common Firewall Misconfigurations and How to Address Them

Featured Imgs 23

Cybersecurity experts are always learning the latest methods criminals are using to break into networks and steal data — but sometimes the criminals don’t need nefarious solutions. Especially not when people take an average of 277 days to recognize a breach through things like common firewall misconfigurations.

Protect yourself or your clients by addressing these concerns with common firewall issues. When criminals run into optimized firewalls, they’re more likely to look for potential victims elsewhere.

GPT-4 Demo Turns a Crude Sketch of a “My Joke Website” into a Functional Website for Revealing Jokes

Category Image 062
Here’s the clip from the original YouTube where Greg Brockman shows it off. Ultimately GPT-4 produced HTML output, which Greg copy-pasted into CodePen in order to show it off.
What a big release! Shawn Wang notes:
To use simple measures of how anticipated this was – GPT-4 is already the 11th-most upvoted Hacker News story of ALL TIMEthe Developer Livestream got 1.5 million views in 20 hours (currently #5 trending video on all of YouTube) and the announcement tweet got 4x more likes than the same for ChatGPT, itself the biggest story of 2022.
Certainly, this code-for-me angle is clicking with people!
https://twitter.com/danielgolliher/status/1636109084943433736
I popped into GPT-4 and asked it:
build an html page where you click a button to go to a random wikipedia page
Which works pretty darn nicely actually:
I don’t know about that Arial choice there, but otherwise, well done. I was hoping to try the “sketch a drawing” thing first, but apparently, that’s not quite open to us yet. If you’d like to see more examples of ChatGPT having created good working code, we’ve got a Collection going here.