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.
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:
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():
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.
The Viget gang wrote up What’s on the Horizon for UI and JS? and really it’s just a pile of links that does paint a pretty good picture of the hot topics in website buildin’ stuff. The first link is Rome which I’m cautiously optimistic about.
Richard MacManus has got 2023 Web Tech Check-in: React Performance, PWAs, iOS Browsers. I’ve enjoyed Richard’s takes on web stuff in the last year or two. He brings a bit of journalistic flair to The New Stack that I’m a little envious of. . Is 2023 the year “the web finally breaks through on iOS?” I wish. 😬
Robin Wieruch kicked out 10 Web Development Trends in 2023. Of all the trends I think serverless at the edge is my favorite (it’s good for everybody), but I did raise my eye a little at tRPC. If we’re gonna do TypeScript, and it seems like that ship has sailed, we might as well have tooling that does the type safety thing all the way up and down.
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.
No company is immune to transformation, not even one with as storied a history as IBM.
This week on Dev Interrupted, Rosalind Radcliffe, the CIO DevSecOps CTO at IBM, joins us to chat about how one of tech's greatest legacy companies is positioning itself for the future.
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.
If 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.
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 …
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.
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:
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:
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.
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.
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.
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.
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.
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.
Now, your WordPress media library will be saved on your computer as an XML file.
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:
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:
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.
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.
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.
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.
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 TIME, the 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!
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.