Categories
CMS Mastering Development Wordpress

Regexes allow only [a-z][A-Z][0-9] and –

please I am a novice when it comes to regexes, Using search and replace, how can i allow only a-z, A-Z, 0.9 and – on a link, E.g https://example.com/dav,ido song/ will be replaced with https://example.com/dav-ido-song/ https://example.com/dav,i’do/ will be replaced with https://example.com/dav-i-do/ i want this to be replace using $1,$2 etc as substitutiion, I am using […]

Categories
Game Creation Mastering Development

How to convert a unit vector to quaternion for look-at functionality?

So far I got this: local function fromTo(v1, v2) local a = Vector3.new() local xAxis = Vector3.new(1,0,0) local yAxis = Vector3.new(0,1,0) local dot = v1:Dot(v2) if (dot < -0.999999) then a = xAxis:Cross(v1) if (a.Magnitude < 0.000001) then a = yAxis:Cross(v1) end a = a.Unit return CFrame.fromAxisAngle(a, math.pi) elseif (dot > 0.999999) then return CFrame.new() […]

Categories
Database Development

Is an Oracle SID UPPERCASE or lowercase?

This may sound silly, but is an Oracle Service Identifier (SID) aka database name normally in upper or lowercase? According to the documentation, a SID “can contain only the characters a-z, A-Z, and 0-9”, so both upper and lowercase is allowed. In my experience, it usually doesn’t really matter. However, I am installing Oracle 11.2 […]

Categories
Mastering Development

String manupilation on Assemby

I’m a newbie on 8086 and trying to make an assembly program. My program should change text properly. Let me show an example Savee db ‘<save>’ ; save the unusual characters ; Characters will be ” ” except in this range A-Z, a-z, 0-9 , <save> means that. Swapp db ‘<swap>’ ; only low to […]

Categories
Mastering Development

Can Excel Sort Differently Than Its Default U.S. Character Set?

My question is basically the opposite of THIS ONE (which had a database-based solution I can’t use here). In short, I use SAP, which sorts characters this way: 0-9, A-Z, _ but I’m downloading data into Excel and manipulating ranges dependent on correct SAP character set sort order. So it would be IMMENSELY helpful, if […]

Categories
Mastering Development

Awk regex expression to select for a certain number of delimiters in a field

I am trying to select for a field which has exactly a certain number of commas. For example, I can select for 1 comma in a field as follows: $ echo jkl,abc | awk ‘$1 ~ /[a-z],[a-z]/{print $0}’ jkl,abc The expected output, “jkl,abc”, is seen. However, when I try for 2 commas it doesn’t work. […]

Categories
Development System & Network

How to install letsencrypt wildcard certificates?

I am using certbot/letsencrypt from the EPEL repository with apache on CentOS 7 without any issues on “normal” domain names. The certbot tool recognizes server name aliases from the virtualhost config files just fine. Renewal also works fine. For example, a line in a virtualhost config such as: ServerName uncovery.net ServerAlias www.uncovery.net results in certbot […]

Categories
Development

Executing Python script from PHP and insert in mysql

I have a php script that executes a python script and returns the data back and it is stored in mysql. It’s working fine but when the data is stored in the database it inserts an additional blank row. My question would be, how could I make so that it stores only the actual data […]

Categories
Development

How to find out all [0-9,a-z,A-Z] from all [pre] tags, and add color for them?

I want to find out all [0-9,a-z,A-Z] from all [pre] tags, and add color for them Presently I only do it like this: As you see, it just works on single [pre] tag, how can it work on all [pre] tags? <!DOCTYPE html> <html><head> <meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″> <title>test</title> </head><body> <h3>example1</h3> <pre> | X2 T21 […]

Categories
Development

My login button doesn’t take me to the other page

This is my code .It doesn’t take to me to the chat page .Also it does not do the validation correctly.I need help,i’m not an expert.This code is actually supposed to do the login and then take me to the chat page. /** * Login */ function login() { var username = inputElem.value.trim(); if (!username) […]