Is placing the folder after the page in the URL better for SEO?

I read on that google prioritizes the folder over the path/page. Which wold mean that a url such as:


would perform better than


This is something that could easily be done via a .htaccess URL redirect, but I’m wondering if it’s even worth the effort?

Wich solutions is better for translate some data?

I’ve a little mobile app who need some translation. Currently, I just want to translate my app in one language, I don’t think I’ll need more. So I’m facing a problem, should I translate stuff in database, or in translations files on client side ?

The user will be able to select his language, but first i need to determine it with the locale variable for the registration (because he must select his country at registration).

First I tought about creating one translation table for each table who need it.

enter image description here

But it seems to not be the good solution if I need to add more language, I’ll have to alter all translations tables.

So, my second solution is to create a language table, keep the translation table for each table but as one-to-many relationship.

enter image description here

I think this solution is better, but I’m not sure about performance. I know it’s a little app and the question does not really arise, but we never know.

Now, I’m stuck because It means that every time I need translation, I have to query the database. There are tons of contries, and I’ll like to have auto completion. Fruits will be displayed in several pages and used in others tables.

So I thought about keep translations on client side within json files. For exemple translations/fr_FR.json

"fruits": [   {     "id": 1,     "original": "banana",     "translation": "banane"   },   {     "id": 2,     "original": "apple",     "translation": "pomme"   } ],   "countries": [   {     "id": "ES",     "original": "spain",     "translation": "espagne"   } ] 

Everytime I need translation, I can use a function to get the translation from the file.

It means more calculations, and user will have to update his app if translation has changed.

Wich solution is better ?

Robust PCA (better Mathematica style)

I’ve parsed (almost verbatim) Python RPCA implementation to WM. Can it be rewritten using a better WM style? In particular, I’m not happy with Clip[..., {0, Infinity}] and While[] loop (can be replaced with Do[]).

ClearAll[shrink] ; shrink[matrix_, tau_] := Sign[matrix]*Clip[Abs[matrix] - tau, {0, Infinity}]  ClearAll[threshold] ; threshold[matrix_, tau_] := Block[     {u, s, v},     {u, s, v} = SingularValueDecomposition[matrix] ;     Dot[u, Dot[shrink[s, tau], Transpose[v]]] ] ;  ClearAll[rpca] ; rpca[matrix_?MatrixQ, mu_Real, lambda_Real, tolerance_Real, limit_Integer] := Block[     {inverse, count, error, sk, yk, lk},     inverse = 1.0/mu ;      count = 0 ;     sk = yk = lk = ConstantArray[0.0, Dimensions[matrix]] ;     While[         count < limit,         lk = threshold[matrix - sk + inverse*yk, inverse] ;         sk = shrink[matrix - lk + inverse*yk, inverse*lambda] ;         error = matrix - lk - sk ;         yk = yk + mu*error ;         error = Norm[error, "Frobenius"] ;         count++ ;         If[error < tolerance, Break[]] ;     ] ;     {lk, sk, {count, error}} ] ; 


(* *) (* "12.1.1 for Linux x86 (64-bit) (June 19, 2020)" *)  (* generate test matrix *)  n = 100 ; num$  groups = 3 ; num$  values = 40 ; matrix = N[ConstantArray[Flatten[Transpose[ConstantArray[10*Range[num$  groups], num$  values]]], n]] ; {n, m} = Dimensions[matrix]  (* set selected elements to zero *)  SeedRandom[1] ; ln = RandomInteger[{1, n}, 20] ; lm = RandomInteger[{1, m}, 20] ; Table[matrix[[ln[[i]], lm[[i]]]] = 0.0, {i, 1, 20}] ; matrix = Developer`ToPackedArray[matrix] ;  (* -- python zeros ln = [81, 15, 1, 68, 4, 66, 24, 98, 69, 75, 16, 25, 5, 91, 84, 71, 2, 31, 49, 26] lm = [45, 74, 107, 70, 57, 48, 29, 69, 27, 69, 11, 87, 77, 44, 34, 45, 87, 94, 19, 39] for x, y in zip(ln, lm):     D[x, y] = 0 *)  (* set parameters *) mu = 1/4*1/Norm[matrix, 1]*Apply[Times, Dimensions[matrix]] ; lambda = 1/Sqrt[N[Max[Dimensions[matrix]]]] ; tolerance = 10.0^-7*Norm[matrix, "Frobenius"] ; limit = 1000 ;  (* rpca *) result = rpca[matrix, mu, lambda, tolerance, limit] ;  (* # of iterations and error *) Last[result]  (* low rank *) +Table[result[[1]][[ln[[i]], lm[[i]]]], {i, 1, 20}]  (* sparse *) -Table[result[[2]][[ln[[i]], lm[[i]]]], {i, 1, 20}]  (* {100, 120} *) (* {39, 0.000167548} *) (* {20., 20., 30., 20., 20., 20., 10., 20., 10., 20., 10., 23.0449, 20., 20., 10., 20., 23.0449, 30., 10., 10.} *) (* {20., 20., 30., 20., 20., 20., 10., 20., 10., 20., 10., 23.0449, 20., 20., 10., 20., 23.0449, 30., 10., 10.} *) 

NSolve and NIntegrate, or a better approach

I need to define and plot the following function

$ $ a(t) := \exp\left(\int Z(t)\; dt\right) $ $

where $ Z(t)$ is the solution to the equation

$ $ 0 = t – 2 \int^Z_1 F(x)\; dx $ $

with $ F = F(x)$ being a known (but complicated and non-integrable) function.

How do I define and plot the function $ a(t)$ in Mathematica?

Here is my attempt with a particular function $ F(x)$ that I need to work with:

A = 0; F[x_] = - ((4*A*x^(9/2) + 64*x^6 - 4*Sqrt[A*x^9*(32*x^(3/2) + A)])^(1/3)/(16*x^4 - 4*x^2*(4*A*x^(9/2) + 64*x^6 - 4*Sqrt[A*x^9*(32*x^(3/2) + A)])^(1/3) - (4*A*x^(9/2) + 64*x^6 - 4*Sqrt[A*x^9*(32*x^(3/2) + A)])^(2/3)));  A = 0; Int[Z_?NumericQ] := NIntegrate[F[x], {x, 1, Z}] S[t_?NumericQ] := NSolve[t - 2*Int[Z] == 0, Z] a[t_] := Exp[Integrate[S[t], t]] 

However, when trying to evaluate for example $ a(2)$ I get the following error:

The error

How can I better show players that enemies are not friends?

I’m a new GM playing Pathfinder with other newbies.

The problem I’m facing is that the group tries to be friends with almost every humanoid that they meet. It’s not that they dislike combat, it’s just that they sometimes are able to talk their way out of situations.

Obviously if they’re having fun, and it doesn’t destroy the game – then I should let them talk their way out of as much as they like. But it’s become a bit cumbersome and is slowing the game down that I have to create full dialog etc for every single goblin or orc that they come across.

Any advice on how I can help suggest to the players that the encounter is a fight and not a negotiation?

Better way of handling incorrect date format in a column with “char(10)” data type / TRY_CONVERT equivalent in PLSQL

I have a source table with below structure:

create table customer_info (customer_num    number,  birth_date      char(10)) 

Unfortunately the birth_date column data type is char(10) instead of date. Some example data for this table would be like below:

customer_num    |  birth_date         --------------------------------   1             |  2001/01/01               1             |  2010/01/01               1             |  2021/01/01                1             |  12hhhhuu6   --> Incorrect date             1             |  2001/01/01               1             |  2001/23/01  --> Incorrect date 

what I’ve done is writing a function to evaluate every single record and return it’s correct format but as you know , using a function for every single record is nod a good idea and it somehow kills performance. I was wondering if you could suggest a better way for this.

create or replace function new_to_date_en(d varchar2) return DATE is   v_date date; begin   select to_date(d,'yyyy/mm/dd' ) into v_date from dual;   return to_date(d,'yyyy/mm/dd');   exception when others then return to_dateto_date('2021/03/07', 'yyyy/mm/dd'); end;   

Using the function:

 select customer_num,         new_to_date_en(birth_date)  from customer_info; 

There is a way in T-SQL COALESCE(TRY_CONVERT(date, @date, 111), '2012-01-01'). Is there a similar way in oracle plsql?

Thanks in advance

Do Genasi tolerate low temperatures better than humans?

one of my D&D players just created the new character – The Fire Genasi Warrior. Our story probably will be placed in the Icewind Dale. I’m new in the D&D and you know – still learning and getting new things. My questions are:

Do Genasi tolerate low temperatures better than humans? And does their body give off any heat?

(New to DND/Roleplaying) How to better RP A character struggling for power from an evil entity?

As stated I am fairly new to the game and have roughly six sessions under my belt in our campaign and two one shots and a guest appearance on another campaign. Mechanically I understand the game but I am fairly new to roleplaying….and clearly didn’t consider that before designing my first character. I won’t lie and say I made the character after understanding how the game worked…however our DM was very open to homebrewing something fun for me.

My character is a female half elf Hexblade Warlock. Brief backstory summary is her family and lineage is cursed for using magic in search of power. Saya (my character) was forbidden to use magic from birth in fears of the curse, she naturally uses magic and becomes interested in it. Her parents are killed by the fiend that cursed them for trying to stop her from using the magic that makes it more powerful blah blah blah flavortown. Her sword at some point in her search for this fiend become imbued with his power unbenounced to her. During a hard fight as she went down a voice appeared in her head as she blacked out asking if she wanted to live and have the power to do so. subconsciously she agreed (making her pact with the fiend and becoming a hexblade) she awoke with small horns (homebrew for later) frightened by then she hides them with a witches hat she finds in town before meeting with the rest of the party, keeping them hidden from the party.

Saya is NOT an evil character. The FIEND however IS. Her homebrew properties are her horns, they are designed around a custom wild magic table our DM made for her. There are 10 levels to the table increasing every time she rolls the level number or lower on cantrips or spells. Anytime this happens a random wild magic event tailored around her happens….as well as her horns growing an additional inch. Each time the fiend slowly gains power as Saya has to fight it off, eventually losing control temporarily or possibly permanently becoming feral and attacking anything in sight (including the party)

Now my question is….being new to roleplaying, how should I go about this journey? It is a struggle for power between her and fiend, the closer she gets to 10 the more….evil? I feel she will become before snapping. It is already a challenge for me to have picked a female character ( I am male) but to have also made a character with seemingly split personality issues as my first character.

note the rest of the group is VERY talented at roleplaying so I am trying extremely hard to do my best at this and want to be as interesting as possible with how amazing all of the other players are.

Thanks in advanced!

Arcane Mastery vs Spell Penetration which is better to consistently overcome SR?

Spell penetration gives a +2 to overcome spell resistance.

Arcane Mastery allows you to take 10 on a caster level check to overcome spell resistance.

You have a 55% chance of getting a 10 or higher when rolling a d20.

And most monster SR’s are fairly low… which feat will more consistently land?