Certificates for Internal Servers

Category Image 032

I often get the question from customers "How do I make a browser trust my internal Intranet web server". Is it possible to use trusted certificates for Intranet servers? The short answer is yes. It is possible, and I'll show you two ways this can be solved. But what exactly is an Intranet server?

What Is an Intranet Server?

An Intranet (internal) server is one that runs on a private (home/business) network with a non-public IP address -- that is, any IPv4 address in the RFC 1918 range (e.g. 10.0.0.0, 172.16.0.0, 192.168.0.0) and any IPv6 address in the RFC 4193 range.

Prevent web pages from automatically reloading.

558fe5180e0e8fc922d31c23ef84d240

I have a site that I follow frequently

The problem is that it refreshes the page every five minutes

And I never want this.

Here, an addition to the Firefox browser
named "stop auto reload" When you put the name of this site, it prevents it from updating every five minutes.

But I prefer the Chrome browser

Can I find a way to prevent this update?

Now I use the method "press F12, then choose console, then type the following command:"

window.onbeforeunload = function () {return 'Reload?';}

To alert every five minutes to prevent it from updating, but it is a stressful and arduous method. Is there a better solution?

Please Help

Eliminating five top compatibility pain points on the web

Category Image 052

Robert Nyman and Philip Jägenstedt:

Google is working with other browser vendors and industry partners to fix the top five browser compatibility pain points for web developers. The areas of focus are CSS Flexbox, CSS Grid, position: stickyaspect-ratio, and CSS transforms.

[…] The goal in 2021 is to eliminate browser compatibility problems in five key focus areas so developers can confidently build on them as reliable foundations.

I’d say slow clap, but I don’t want to sound sarcastic. Full on, regular clapping.

Ten, fifteen years ago, the job of a web designer and developer was heavily thinking about, planning for, and dealing with cross-browser compatibility. These days, it’s still a thing, but it’s not about dealing with bugs, quirks, and frustrating implementation differences like it was then. It’s more edge-case stuff with more obvious work-arounds. And when we’re thinking about the browser and device landscape, we’re doing it through the lens of meeting our users where they are and embracing that landscape. Doing our best, anyway.

If the powers that be can keep chipping away at compatibility problems, that further cements the web as the correct place to build.

I vote for some kind of proper stab at reliable viewport units in 2022, that somehow sensibly handle scrollbars and other browser chrome.

Direct Link to ArticlePermalink


The post Eliminating five top compatibility pain points on the web appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.

Text That Sometimes Turns to Emojis

Category Image 091

There are some Unicode characters that some browsers just decide they are going to turn into emojis for you. I couldn’t tell you why exactly, but here’s what I see:

Chrome on the left. Safari in the simulator on top and to the right.

Those text Unicode characters (▶, ↩, and, ❤) show up as text in Chrome, then iOS Safari turns them into emojis. Notice how when they are text, I have the ability to change their color, but not when they are turned to emoji.

Those characters above might turn into emojis for you also. They look like text in my WordPress editor. Shrug.

This came up for me because I was helping someone with their website and they didn’t like the “red diamonds” that were showing up. I didn’t seen them as red until I looked on my phone.

︎︎The “Text Presentation Selector”

A couple of people pointed out to me that if you use this (︎︎︎) before the character it will “request it to be rendered as text.” Here’s the spec on that. I couldn’t get it to work though. Here’s my test:

What I see on iOS:

I read in some sporatic threads that font-family: monospace would also prevent the emoji conversion, but that didn’t work for me either.

Let it be an emoji, but force the color anyway.

If you can select the element, even if the characters go emoji, you could force them to a color. Here’s an example from Andrew Walpolea:

Preethi Sam blogged that you can also use text-shadow to do the same:

The problem in my case was that there was no selector to use! The diamonds I was having trouble with were on hundreds of random posts in the database.

Screw it

I just gave up and ran a MySQL search/replace on the whole database (via Better Search Replace) to get rid of them.

Matias Singers has more on this in “Unicode symbol as text or emoji.”


The post Text That Sometimes Turns to Emojis appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.

How to Change the Author of a Post in WordPress

Featured Imgs 23

Do you want to change the author of a post in WordPress?

Sometimes you may need to change a post to a different author than the user who first uploaded the post. You can do this without having to copy and paste the post with a different account.

In this article, we’ll show you how to simply change the author of a post in WordPress with just a few clicks.

How to change the author of a post in WordPress

Before You Change the Author of a WordPress Post

If you just want to show your own name on a post written by another user on your WordPress site, then you’re ready to follow the instructions in this article.

But, if you want to show a different user as the author, then you need to make sure this user exists on your WordPress site first. See our guide on how to add new users and authors in WordPress for detailed instructions.

You can view and manage all the users on your WordPress site by visiting the ‘Users’ menu item when logged in with your WordPress administrator account.

Managing users in WordPress

If you only want to change the way your name is displayed, then check out our guide on how to add or change your full name in WordPress.

Having said that, let’s look at how to quickly and easily change the author of a post in WordPress.

Video Tutorial

If you don’t like the video or need more instructions, then continue reading.

How to Change the Author of a Single WordPress Post

First you need to open the post or page where you want to change the author name.

On the post edit screen, you need to make sure ‘Post’ is selected in the right-hand sidebar.

Then, locate ‘Author’ under the ‘Status & Visibility’ section.

Locate post then author section

Next, select the new author name from the drop down menu.

You’ll see a list of available authors to choose from.

Select new author drop down

Once you’ve done that, make sure you click ‘Update’ or ‘Save Draft’ to save your changes.

That’s it, you have successfully changed the author of a post in WordPress.

How to Change the Author of Multiple WordPress Posts

Changing the author by editing a single post is easy.

However, if you want to change the author for multiple posts, then this would take a lot of time.

Luckily, there’s an easier way to quickly change the author for multiple WordPress posts at once.

To bulk update authors, click on the ‘Posts’ menu item from your WordPress admin menu. This will list all the posts on your WordPress site.

By default, WordPress shows 20 posts per page. If you want to display more posts, then you need to click on ‘Screen Options‘ and change the number of posts you want to display.

Show more posts in admin area

Now you need to select the posts where you want to change the author.

After selecting posts, select ‘Edit’ from ‘Bulk Actions’ dropdown menu and then click the ‘Apply’ button.

Bulk edit posts in WordPress

WordPress will now show you ‘Bulk Edit’ metabox.

You need to select the new author by clicking on the dropdown menu next to Author option.

Bulk edit author for multiple posts in WordPress

Don’t forget to click on the ‘Update’ button to save your changes.

That’s it, you have successfully changed the author for multiple WordPress posts without editing them individually.

How to Optimize Your Author Profiles for SEO

Finally, you may want to optimize your author profile pages to improve your SEO rankings.

The author profile is what appears at the bottom of blog posts published under your name.

Author info box plugin preview

Here you can add a brief bio, links, and even your social media profiles.

By showcasing your author bio, you can build more credibility and give your readers a chance to learn more about you and the authors on your site.

WordPress allows you to add a brief author bio, but to add social media links you’ll need to use a WordPress author bio plugin.

Aside from that, you’ll also want to improve your Author archive pages where WordPress displays a list of posts written by that author.

To optimize author pages for SEO, we recommend using All in One SEO. It’s the best SEO plugin for WordPress used by over 2 million websites.

For more details, see our guide on how to install a WordPress plugin.

Upon activation, simply navigate to Users » Profile to edit your author profile.

Next, scroll down to the ‘All in One SEO Pro’ section where you can add links to your Facebook and Twitter profiles and create an author bio.

Author profile SEO

Once you’ve made the necessary changes, make sure you click ‘Update Profile’ at the bottom of the page.

Users will now see your new author bio at the bottom of any post you publish or change to your name.

We hope this article helped you learn how to change the author of a post in WordPress. You may also want to see our expert list of the best WordPress plugins for websites, and our comparison of the best online course platforms.

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 Change the Author of a Post in WordPress appeared first on WPBeginner.

7 Ways to Optimize WooCommerce Conversion Rates

Set Up Woocommerce

Ways to Optimize WooCommerce Conversion RateseCommerce is a very competitive space. Brands are literally fighting it out to provide the best possible UX to their visitors in order to beat the competition. Combine that with the heightened expectations of modern consumers (50% won’t wait longer than 3 seconds before abandoning a poorly-designed e-commerce site) and you’ll understand why it’s vital […]

The post 7 Ways to Optimize WooCommerce Conversion Rates appeared first on WPExplorer.

How to Add a Double Border to SVG Shapes

Category Image 091

Let’s say someone asks you to add a double border to some random geometric SVG shapes. For some reason, you can’t use any graphic editor — they need to be generated at runtime — so you have to solve it with CSS or within the SVG syntax.

Your first question might be: Is there anything like stroke-style: double in SVG? Well, the answer is not yet and it’s not that easy. But I’ll attempt it anyway to see what methods I can uncover. I’ll explore the possibilities of three different basic shapes: circle, rectangle, and polygon. Pointing the ones that can keep a transparent color in the middle of the two lines.

Spoiler alert: all the results have their downsides, at least with CSS and SVG, but let me walk you through my intents.

The simple solutions

These don’t work with all shapes, but they are the easiest of the solutions.

outline and box-shadow

The CSS properties outline and box-shadow only apply to the bounding box of the shape or SVG, and so both are great solutions only for squares and rectangles. They also allow flexible colors using custom properties.

It only takes two lines of CSS with outline, plus it keeps the background color visible through the shape.

  • 🙁 Solution only for one shape.
  • ✅ Simple code
  • ✅ Borders are smooth
  • ✅ Transparent background

box-shadow only needs one line of CSS, but we have to make sure that each shape has its own SVG as we can’t apply box-shadow directly to the shapes. Another thing to consider is that we have to apply the color of the background in the declaration.

  • 🙁 Solution only for one shape
  • ✅ Simple code
  • ✅ Borders are smooth
  • 🙁 No transparent background

SVG gradients

SVG radial gradients only work on circles ☺️. We can directly apply the gradient on the stroke, but it’s better to use variables as we have to declare the colors many times in the code.

  • 🙁 Solution only for one shape
  • ✅ Simple code
  • 🙁 Borders are smooth
  • 🙁 No transparent background

Solutions for all shapes

These will work with all shapes, but the code could become bloated or complex.

filter: drop-shadow()

Finally, one solution for all shapes! We must have each shape in its own <svg> since the filter won’t apply directly to the shapes. We are using one declaration in CSS and have flexible colors using variables. The downside? The borders don’t look very smooth.

  • ✅ One solution for all shapes
  • ✅ Simple code
  • 🙁 Borders look pixelated
  • 🙁 No transparent background

SVG filters

This is a very flexible solution. We can create a filter and add it to the shapes through SVG’s filter attribute. The complicated part here is the filter itself. We’ll need three paintings, one for the outside border, one for the background flood, and the last one to paint the shape on the front. The result looks better than using drop-shadow, but the borders are still pixelated.

  • ✅ One solution for all shapes
  • 🙁 Complex code
  • 🙁 Borders look pixelated
  • 🙁 No transparent background

Reusing shapes

There are a couple of possible options here.

Option 1: Transforms

This solution requires transforms. We place one figure over the other, where the main figure has a fill color and a stroke color, and the other figure has no fill, a red stroke, and is scaled and repositioned to the center. We defined our shapes on the <defs>. The trick is to translate half of the viewBox to the negative space so that, when we scale them, we can do it from the center of the figure.

  • ✅ One solution for all shapes
  • 🙁 Duplicated code
  • ✅ Borders are smooth
  • ✅ Transparent background
Option 2: <use>

I found a clever solution in the www-svg mailing list by Doug Schepers that uses SVG <use>. Again, it requires defining the shapes once and referring to them twice using <use>. This time the main shape has a bigger stroke. The second shape has half the stroke of the main shape, no fill, and a stroke matching the background color.

  • ✅ One solution for all shapes
  • 🙁 Duplicated code
  • ✅ Borders are smooth
  • 🙁 No transparent background

Here are the full results!

Just so you have them all in one place. Let me know it you can think of other possible solutions!

SolutionAll shapesSimple codeSmooth bordersTransparent background
outline🙁
box-shadow🙁🙁
SVG gradients🙁🙁🙁
filter: drop-shadow()🙁🙁
SVG filters🙁🙁🙁
Reusing shapes:
Tranforms
🙁
Reusing shapes:
<use>
🙁🙁


The post How to Add a Double Border to SVG Shapes appeared first on CSS-Tricks.

You can support CSS-Tricks by being an MVP Supporter.

#312: What is CodePen?

Category Image 052

This isn’t actually a podcast actually talking about what CodePen is. Well, it kinda is. But actually it’s Stephen and Chris talking about and planning for what they would say if they only had five minutes (or so) to explain what CodePen is. So we need to hash out what the most important things are, what to lede with, and how to cover all the most vital things with clarity in such a short amount of time. We’ll have to get around to actually trying to shoot a video like this soon!

Timestamps

  • 00:49 How might we explain CodePen on YouTube
  • 06:48 Who’s the audience for our video?
  • 09:10 Sponsor: Jetpack Boost
  • 11:44 What do we need people to know what CodePen is?
  • 14:04 It’s an online editor for what?
  • 17:34 Social is a huge part of CodePen
  • 24:27 What’s our success metric?

Sponsor: Jetpack Boost

Jetpack Boost is a brand spankin’ new plugin from the Jetpack / Automattic gang. Jetpack has some very powerful performance features it offers, like giving you a global CDN for your images and core-WordPress-specific CSS and JavaScript. That particular feature is still a part of the Jetpack core plugin, but many performance-specific features are moving their way over to Jetpack Boost. Like Lazy Image loading (a huge performance win) is now in Jetpack Boost and you can turn it on with the flip of a switch. The most amazing, and brand new, feature of Jetpack Boost is that it does Critical CSS handling for you, which is also a big performance win and very difficult to do by hand.

The post #312: What is CodePen? appeared first on CodePen Blog.

I want to make TextBox into array and adjust it with buttons.

558fe5180e0e8fc922d31c23ef84d240
Private Sub Plus_Btn_Click(sender As Object, e As EventArgs) Handles A_Plus_Btn.Click, C_Txb.Click
    Dim Txb As TextBox
    If x < MAX Then
        x += 1
    Else
        x = 5
    End If

    For i As Integer = 1 To x
        For j As Integer = 1 To x
            Txb = New TextBox
            Txb.Size = New Drawing.Size(100, 20)
            Txb.Location = New Point(10 + 100 * i, 10 + 25 * j)
            Txb.Name = "Txb" & i & "," & j

            AddHandler Txb.TextChanged, AddressOf TextBox_TextChanged
            boxes(i) = Txb
            Me.Controls.Add(Txb)
        Next
    Next
End Sub

Private Sub TextBox_TextChanged(sender As Object, e As EventArgs)
Dim box As TextBox = DirectCast(sender, TextBox)
Me.Text = box.Name & ": " & box.Text
End Sub

Private Sub Minus_Btn_Click(sender As Object, e As EventArgs) Handles A_Minus_Btn.Click, C_Txb.Click
    Dim Txb As TextBox
    If x > MIN Then
        x -= 1
    Else
        x = MIN
    End If

    For i As Integer = 1 To x
        For j As Integer = 1 To x
            Txb = New TextBox
            Txb.Size = New Drawing.Size(100, 20)
            Txb.Location = New Point(10 + 100 * i, 10 + 25 * j)
            Txb.Name = "Txb" & i & "," & j

            AddHandler Txb.TextChanged, AddressOf TextBox_TextChanged
            boxes(i) = Txb
            Me.Controls.Add(Txb)
        Next
    Next
End Sub

I want to make TextBox into array and increase/decrease with buttons.

ex) dim x=1 [+] [-]
x = 1:
[]

x = 2:
[][]
[][]

x = 3:
[][][]
[][][]
[][][]
...

But it's made with the code I wrote above, but it doesn't remove.
And it's not array system, it's hard to manage.

4 TikTok Photo Trends to Try

Cosmeticsjpg
When it comes to staying up to date on viral trends, TikTok is the place to start. Not only is it a goldmine for food, fashion, and beauty hack and tips, it’s perfect for photographers. These...

Visit The Site For More...

how to change buttontext in vbnet using code

558fe5180e0e8fc922d31c23ef84d240

I tried using this code(below) to change the button text when i run the code from "Button1" to "Click" but when i run the code the name still remains "Button1" and if i click the button the name then changes to "Click". I want the code to show "Click" on the button when i run it not when i click it. Please, how do i do this? And would it work for other tools like label?

Public Class Form1

Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
    Button1.Text = "Click"

End Sub

End Class

how to disable today date on datepicker that follow the time zone.

558fe5180e0e8fc922d31c23ef84d240

Hi everythings,

I have a question regarding on disabling today date on datepicker, i got this code from internet and it seem like working , but then i realised its starting disable today date from 08:00 am onward and not disable from 12:00 am, seems like its has problem with time zone, i guess.

$('.datepicker').datepicker({
format: 'dd-mm-yyyy', 
startDate: '+1d',
endDate: '+5m',                              
beforeShowDay: renderCalendarCallback               
});

Does anyone can explain me why this thing happen? TQ in advance.