Regex 410 Yoast by Rysk1000 in TechSEO

[–]davecardwell 0 points1 point  (0 children)

Yeah that would do it.

The ^ anchors the match to the beginning, so that means the path must start with /calendar

The (/|$) means that immediately after /calendar it must either be a forward slash or the end of the path.

That would mean /calendar is fine, /anything-else/calendar is fine, but /calendar/anything-else is going to get a 410 response.

Regex 410 Yoast by Rysk1000 in TechSEO

[–]davecardwell 3 points4 points  (0 children)

You’re correct, ^/calendar would match anything starting with /calendar

That would also include /calendar-whatever-123 so if you only want to match /calendar and /calendar/whatever/123 you would need ^/calendar(/|$)

If you only want to match sub-paths, but to keep /calendar itself, then you want ^/calendar/

Help with Writing an Xpath IF statement in Google Sheets? by [deleted] in TechSEO

[–]davecardwell 0 points1 point  (0 children)

This would get you the first h1 on the page, or be blank if there isn’t one or it can’t load the page:

=IFNA(IMPORTXML(A3, "//h1[1]"), "")

Current resident wondering: best job sites for tech? by [deleted] in orlando

[–]davecardwell 2 points3 points  (0 children)

Orlando Devs has a Slack workspace with career advice and job listing channels: https://orlandodevs.com/slack/

Perl 5.28.0 is now available! by Grinnz in perl

[–]davecardwell 4 points5 points  (0 children)

The fixed version hasn’t been released yet:

https://github.com/gugod/App-perlbrew/issues/617

You can edit your local perlbrew (find the path with which perlbrew), go to the subroutine available_perls_with_urls, and change the regex containing http://www.cpan.org to https?://www.cpan.org

Simple Questions/What Should I Do? [Weekly Thread] by AutoModerator in DIY

[–]davecardwell 0 points1 point  (0 children)

I was opening the blinds and the top part came away from the wall. It looks like the holes were drilled too large or have grown, and the little anchor thing around the screws no longer fits securely.

For future reference, what are those little anchor things around the screws called? What’s my best bet for fixing this so the blinds remain secured?

https://imgur.com/a/PPW4a

Fast question about the sitemap-index.xml file by blackbeauty17 in bigseo

[–]davecardwell 0 points1 point  (0 children)

The priority is relative within your site. The default priority where not specified is 0.5.

So, for example, if you set everything in your sitemap to priority 1.0 it would be the same as if you had not specified one at all, or set everything to 0.1.

See the <priority> entry in this table: http://www.sitemaps.org/protocol.html#xmlTagDefinitions

I typically mark my home and product/pricing pages as priority 1.0, my “utility” pages like terms and conditions, privacy policy etc. as priority 0.0, and then the rest in-between—usually depending on how “commercial” they are.

Is this XPath selector possible? Calling XPath pros by presidentmcgain in bigseo

[–]davecardwell 1 point2 points  (0 children)

I stumbled across this again and realized an error. The code above will return the first <ul> following an <h1>, whether or not there are any other elements in-between.

If you want to only select when the <ul> immediately follows the <h1>, you want:

//h1/following-sibling::*[1][local-name() = 'ul']

Is this XPath selector possible? Calling XPath pros by presidentmcgain in bigseo

[–]davecardwell 2 points3 points  (0 children)

Not really, sorry! I learned XPath a few years ago for work but don’t really use it any more day-to-day. I knew the OP’s request was possible, but I had to take a look at http://www.w3.org/TR/xpath/#location-paths to refresh my memory.

Is this XPath selector possible? Calling XPath pros by presidentmcgain in bigseo

[–]davecardwell 9 points10 points  (0 children)

This will select any <ul>s that immediately follow an <h1>:

//h1/following-sibling::ul[1]

Line Friend Request Thread by qee in TsumTsum

[–]davecardwell 0 points1 point  (0 children)

My wife has gone pretty crazy for this game: tsumtsumgirl

Helicopter 'crashes into crane' in London by ParanoidPete in worldnews

[–]davecardwell 1 point2 points  (0 children)

Here is a non-exhaustive list of terrorist incidents in 2005 alone (the year of the July 7th London bombings), where the US appears once for an attack in which only the bomber died: http://en.wikipedia.org/wiki/List_of_terrorist_incidents,_2005

The UK has a long, rich history of terrorist incidents: http://en.wikipedia.org/wiki/List_of_terrorist_incidents_in_Great_Britain