Encoding spaces in urls for SEO when hyphens are already present in text

From my research it seems that hyphen – chars are the preferred word breakers in urls in respect to SEO.

I’d like to use text in my urls for both SEO purposes and for functionality, consuming the text directly without requiring a database lookup using an id. In my case some of the text already contains hyphens so I’m wondering what is the best way for handling these in respect to SEO / conventions / readability.

For example I have the following text place name: “Boyd-Wilson Knob, Wellington”

Would it be best to encode the hyphen in the url:

/map/@-43.273331,171.960411,z12/pin/Boyd%2DWilson-Knob,-Wellington

Double hyphenate:

/map/@-43.273331,171.960411,z12/pin/Boyd–Wilson-Knob,-Wellington

Use + chars for spaces instead:

/map/@-43.273331,171.960411,z12/pin/Boyd-Wilson+Knob,+Wellington
(I feel + chars aren’t as human readable and might not be interpreted as word breakers by all search engines)

Just use standard encoding as it might be safer:

/map/@-43.273331,171.960411,z12/pin/Boyd-Wilson%20Knob%2C%20Wellington

Or use some other technique?

Joining some lines in text

How can I connect some specific lines together in a text file??

For example,

INT(6,4,54,4,1,-1,1,1,0,1,1)=
+INT(5,4,23,4,1,1,1,1,0,1,-1)
*(1)
+INT(5,4,23,4,0,1,1,1,0,1,0)
*(-M^2+a^2);
id INT(4,54,4,1,0,1,1,-1,1,1)=
+INT(4,23,4,1,1,1,1,-1,1,0)
*(1);

I would like to put the lines starting with * to the line before, i.e.

INT(6,4,54,4,1,-1,1,1,0,1,1)=
+INT(5,4,23,4,1,1,1,1,0,1,-1)(1)
+INT(5,4,23,4,0,1,1,1,0,1,0)
(-M^2+a^2);
id INT(4,54,4,1,0,1,1,-1,1,1)=
+INT(4,23,4,1,1,1,1,-1,1,0)*(1);

like this.

I typed

sed -i ‘N;s/n*/*/g’ file_name

but it does not work.

Thanks in advance!

How to remove extra white space above text

Hello I am trying to get this text "*SCRC Reading Room is closed for the Fall 2020 Semester" closer to "Bird Library: View Service desk hours" How would I do that given this code.


<h3 class="hours-h3">Bird Library</h3>
<script src="//api3.libcal.com/js/hours_grid.js?002"></script>
<div id="s-lc-whw1503"></div>
<script>
$(function(){
var week1503 = new $.LibCalWeeklyGrid( $("#s-lc-whw1503"), { iid: 3186, lid: 1503,  weeks: 8 });
}); </script>
*SCRC Reading Room is closed for the Fall...
Code (markup):

How to remove extra white space above text

forms – Excel checkbox – edit text option not showing when right clicked

This checkbox lets me edit the text from the right-click options:

enter image description here

This one doesn’t:

enter image description here

Any advice why not, or how to fix it?
Note that the second is a copy of the first, which in turn was a copy of the one above it, and that I was able to edit it once, but not any more.

electrum – trying to get text of a field in json rpc 2.0 response into ar PHP variable

I use json_decode to vardump a return which yields

array(3) { (“jsonrpc”)=> string(3) “2.0” (“result”)=> array(13) { (“status”)=> string(7) “Pending” (“amount (BTC)”)=> string(10) “0.05130899” (“index_url”)=> . . . . (more fields here) . . . (“address”)=> string(34) “1GHHojoC4Ai1SPMN3YoNzemLNaaj2XFHKc”

I am trying to fill a variable with the text from the “address” field and I tried

$result = json_decode($response, true);
$address = $result->address;

but a varbump of $addrwss is NULL

any other variant like $result->”address” or $result->(“address”) is improper syntax

Can someone tell me how to get at the text of the address field of a JSON PRC 2.0 response to put it in a variable in PHP

encryption – I need to read the contents of a crd file as plain text

I lost all my passwords due to a dumb mistake I did yesterday. These passwords are really important. My computer has them saved under windows credentials. However, I can’t view passwords stored under windows credentials. When backing up the credentials I get a crd file. How do I view the passwords? I tried using Vaultpasswordview and credentialfileview but neither worked. I tried using John the Ripper but it didn’t work (probably because I don’t know how to use it). (I have experience in python if it helps)

With Vaultpasswordview I was able to view the web credentials but not the Windows credentials. The hex on Vaultpasswordview is the password separated by dots while it’s gibberish on Credentialfileview

strings – Python – use a list of names to find exact match in the free text pandas column

I have an Excel file containing a free-form text column (that sometimes is structured like an email), where I need to find all first and last names and add an extra columns saying TRUE/FALSE to these fields. I do not need to extract matched data (i.e. note it down in an adjacent column), although that could be an advantage.

NB: I do not know the names that I need to find, so it is pure guesswork. I have a list of registered first names with 40k+ entries, as well as a list of most common last names with another 16k+ entries.

So far, I managed to filter out roughly 10000 rows out out ~20000 row file, although my solution contains a lot of false positives. Fx some rows marked TRUE for first names, contain text like “Det er OK.“, where Python (I assume) merges the entire text together and extracts any matching substing to a name from a list, in this case I guess that could be “t er O” or “r OK“, since my list has names “Tero” and “Rok” (although the case does not match and it combines letters from 2/3 separate words, which is not what I want)… Weirdly enough, this is NOT TRUE for the same text written in lowercase and without “.” at the end, i.e. “det er ok“, which is marked as FALSE! P.S. there are unfortunatelly few names in the emails that are written in lowercase letters and not sentence case as it should be…

Sample email (with names Thomas, Lars, Ole, Per):

Hej Thomas,

De 24 timer var en af mange sager som vi havde med til møde med Lars og Ole. De har godkendt den under dette møde.

Mvh. Per

Below is my code.

# Import datasets and create lists/variables
import pandas as pd
from pandas import ExcelWriter

namesdf = pd.read_excel('names.xlsx', sheet_name='Alle Navne')
names = list(namesdf('Names'))

lastnamesdf = pd.read_excel('names.xlsx', sheet_name='Frie Efternavne')
lastnames = list(lastnamesdf('Frie Efternavne'))


# Import dataset and drop NULLS
df = pd.read_excel(r'Entreprise Beskeder.xlsx', sheet_name='dataark')
df("Besked").dropna(inplace = True)


# Compare dataset to the created lists/variables to match names, phone numbers and emails
df("Navner") = df("Besked").str.contains("|".join(names)) # Creates new column and adds TRUE/FALSE for first names
df("Efternavner") = df("Besked").str.contains("|".join(lastnames)) # Creates new column and adds TRUE/FALSE for last names


# Save the result
writer = ExcelWriter('PythonExport.xlsx')
df.to_excel(writer)
writer.save()

I would appreciate any suggestions that could potentially improve my code and reduce manual work that it will take to filter out all of these false positive cells that I found! I think the best case scenario would be a case sensitive piece of code that finds only the specific name without merging the text together. Also it would be great if I could extract a specific string that Python finds a match with, as that would reduce manual work when trying to figure out why exactly Python marked a specific block of text as TRUE. All in all, all suggestions are welcome! Thanks 🙂

video – How would I make it it so text dosent go off the screen in ffmpeg

So I’m using this command:

ffmpeg -i audio.mp3 -loop 1 -framerate 10 -i background.jpg -filter_complex "(1:v)drawtext=text='Hello World':fontfile=payback.ttf:fontsize=200:fontcolor=white:x=(w-text_w)/2:y=(h-text_h)/2,format=yuv420p(v)" -map "(v)" -map 0:a -c:a copy -movflags +faststart -shortest output.mp4

The issue is that it goes off the screen, how would I make it go down to the line under it instead of going off the screen.

How to automatically convert some text into url’s?

i’m wondering is in Google Docs possibility to automatically convert some text into url’s?

For example, i’d like to convert all words "Google" into Google