Can’t connect to postgresql database with SSL using GSSAPI

With postgresql 12.4, I’ve got this in pg_hba.conf:

hostssl all all 192.168.0.0 255.255.0.0 gss map=myrealm 

but whenever I try to connect with:

psql 'postgresql://hostname/database?sslmode=require' 

I get

2020-11-26 16:03:37.934 GMT [9585] FATAL:  no pg_hba.conf entry for host "192.168.215.220", user "username", database "database", SSL off 

If I replace hostssl with host I can connect (with GSSAPI).

How do I get psql to connect with SSL? I have ssl = on in my postgresql.conf and I have valid server.crt and server.key in the PGDATA directory.

Thanks

IndexOutOfRangeException: Can’t figure out why index out of bound

So, I have a list of Upgrade systems for my game but it has a bug on it when I press upgrade for a second time the index out of range then pressed for the third times the index out of range gone. this whole script.

void Start() {     newSelectedIndex = previousSelectedIndex = PlayerPrefs.GetInt("currentPlayer");     btn = Select_Player[newSelectedIndex].GetComponent<Button>();     btn.interactable = false;      Coins = M_CoinManager.instance.Coins;     for (int i = 0; i < Select_Player.Length; i++)     {         priceText[i].text = Cost_Player[i].ToString();         value_player[i] = "" + i;         Select_Player[i].SetActive(false);         buyPlayer[i] = PlayerPrefs.GetInt(value_player[i]);     }     //if(PlayerPrefs.HasKey("currentPlayer")){     selectedVehicleIndex = PlayerPrefs.GetInt("currentPlayer");         theVehicles[selectedVehicleIndex].SetActive(true);     VehicleInfo();     UpgradeButtonStatus(); }  // Update is called once per frame void Update() {     for (int i = 0; i < Select_Player.Length; i++)     {         buyPlayer[i] = PlayerPrefs.GetInt(value_player[i]);         if (i == buyPlayer[i])         {             Select_Player[i].SetActive(true);             upgradeBtn[i].interactable = true;             UpgradeButtonStatus();          }         else         {             upgradeBtn[i].interactable = false;         }     } }  public void BuyCharact(int id) {     M_SoundManager.instance.playUIsfx();     if (Cost_Player[id] <= Coins)     {         M_CoinManager.instance.AddCoins(-Cost_Player[id]);         PlayerPrefs.SetInt(value_player[id], id);      }     else     {         _CoinShake.DoShake();         Debug.Log("Does have enough coin");     } }  public void Reset() {     for (int i = 0; i < Select_Player.Length; i++)     {         PlayerPrefs.SetInt(value_player[i], 0);     } }  public void Select(int id) {     previousSelectedIndex = newSelectedIndex;     newSelectedIndex = id;     newSelectedIndex = selectedVehicleIndex;      PlayerPrefs.SetInt("currentPlayer", newSelectedIndex);     Button newbtn = Select_Player[previousSelectedIndex].GetComponent<Button>();     btn = Select_Player[newSelectedIndex].GetComponent<Button>();     btn.interactable = false;     newbtn.interactable = true;     M_SoundManager.instance.playUIsfx();     Debug.Log("Selected TypeCar" + newSelectedIndex); }  public void nextVehicle() {     M_SoundManager.instance.playUIsfx();     theVehicles[selectedVehicleIndex].SetActive(false);     selectedVehicleIndex = (selectedVehicleIndex + 1) % theVehicles.Length;     theVehicles[selectedVehicleIndex].SetActive(true);     VehicleInfo();     UpgradeButtonStatus(); }  public void PreviousVehicle() {     M_SoundManager.instance.playUIsfx();     theVehicles[selectedVehicleIndex].SetActive(false);     selectedVehicleIndex--;     if (selectedVehicleIndex < 0)     {         selectedVehicleIndex += theVehicles.Length;     }     theVehicles[selectedVehicleIndex].SetActive(true);     VehicleInfo();     UpgradeButtonStatus(); }  public void VehicleInfo() {     currLevel = _VehicleStats[0].carItem[selectedVehicleIndex].unlockedLevel;     levelText[selectedVehicleIndex].text = "Level: " + (currLevel + 1);     powerText[selectedVehicleIndex].text = "Power: " + _VehicleStats[0].carItem[selectedVehicleIndex].vehicleLevel[currLevel].motorPower;     brakeText[selectedVehicleIndex].text = "Brake: " + _VehicleStats[0].carItem[selectedVehicleIndex].vehicleLevel[currLevel].brakePower;           Debug.Log(selectedVehicleIndex); }  public void upgradeMethod() {     nextLevelIndex = _VehicleStats[0].carItem[selectedVehicleIndex].unlockedLevel + 1;     if (Coins >= _VehicleStats[0].carItem[selectedVehicleIndex].vehicleLevel[nextLevelIndex].unlockCost)     {         Coins -= _VehicleStats[0].carItem[selectedVehicleIndex].vehicleLevel[nextLevelIndex].unlockCost;         _VehicleStats[0].carItem[selectedVehicleIndex].unlockedLevel++;          if (_VehicleStats[0].carItem[selectedVehicleIndex].unlockedLevel < _VehicleStats[0].carItem[selectedVehicleIndex].vehicleLevel.Length - 1)         {             upgradeBtnText[selectedVehicleIndex].text = "Upgrade Cost :" + _VehicleStats[0].carItem[selectedVehicleIndex].vehicleLevel[nextLevelIndex + 1].unlockCost;         }         else         {             upgradeBtn[selectedVehicleIndex].interactable = false;             upgradeBtnText[selectedVehicleIndex].text = "Max Level";         }         VehicleInfo();     }  }  private void UpgradeButtonStatus() {     if (_VehicleStats[0].carItem[selectedVehicleIndex].unlockedLevel < _VehicleStats[0].carItem[selectedVehicleIndex].vehicleLevel.Length - 1)     {         upgradeBtn[selectedVehicleIndex].interactable = true;         nextLevelIndex = _VehicleStats[0].carItem[selectedVehicleIndex].unlockedLevel + 1;         upgradeBtnText[selectedVehicleIndex].text = "Upgrade Cost :" + _VehicleStats[0].carItem[selectedVehicleIndex].vehicleLevel[nextLevelIndex + 1].unlockCost;     }     else     {         upgradeBtn[selectedVehicleIndex].interactable = false;         upgradeBtnText[selectedVehicleIndex].text = "Max Level";     } } 

and the error reference to this line :

private void UpgradeButtonStatus() {     if (_VehicleStats[0].carItem[selectedVehicleIndex].unlockedLevel < _VehicleStats[0].carItem[selectedVehicleIndex].vehicleLevel.Length - 1)     {         upgradeBtn[selectedVehicleIndex].interactable = true;         nextLevelIndex = _VehicleStats[0].carItem[selectedVehicleIndex].unlockedLevel + 1;         upgradeBtnText[selectedVehicleIndex].text = "Upgrade Cost :" + _VehicleStats[0].carItem[selectedVehicleIndex].vehicleLevel[nextLevelIndex + 1].unlockCost;     }     else     {         upgradeBtn[selectedVehicleIndex].interactable = false;         upgradeBtnText[selectedVehicleIndex].text = "Max Level";     }  } 

as you can see on the update that’s what I mean. after I press upgrade for the third times the error stopped.

and this from the inspector Inspector

How is it possible that mathematica can’t calculate the eigenvectors and eigenvalues of this?

How is it possible that mathematica can’t calculate the eigenvectors and eigenvalues of this:

Code:

$  Assumptions = f \[Element] Reals ; \[CapitalNu] = (1/(4*Cosh[f]^3))*{{Exp[f]*(Cosh[f])^2, Exp[f],      Cosh[f], Cosh[f]}, {Exp[f], Exp[f]*(Cosh[f])^2, Cosh[f],      Cosh[f]}, {Cosh[f], Cosh[f], Exp[-f]*(Cosh[f])^2,      Exp[-f]}, {Cosh[f], Cosh[f], Exp[-f], Exp[-f]*(Cosh[f])^2}} Eigensystem[N]  

Image:

enter image description here

It is not very hard on paper(I ‘ve done it) but it has too many calculations. I ‘ve seen mathematica doing way harder things but it just failed on this one…

Where is my mistake?

Can’t add any menu items on live server (no item list)

I can’t add any items to menus on live server (can’t even see items to add list – there is list of dropdown "titles" like posts, pages, custom post types etc, but when I expand it – list is empty).

Locally it works. Another weird thing is that if I add items to menu locally and export whole wordpress installation with AIO WP Migration to live server, items are there, added to menu. But I still can’t add any other items (on the live server).

Any ideas what is going on? As I said, I have EXACTLY the same site on live server as I’m having locally (exported with AIO WP Migration), but still can’t add menu items on live server, while locally I can…

Can’t have a front page on a child theme [closed]

I’ve been developing a child theme for busiprof, and had the very poor sense to update busiprof itself. After the update my front page was mostly gone, only the header and footer are displayed. I’ve tried to remove everything but the css file and it does the same. If I activate busiprof I have a front page, if I activate the (supposedly identical) child theme I only get a header and a footer. I’ve tried to link it to a static page but it still won’t display.

Thanks in advance for any help

Can’t create diskgroup in Oracle 19c

I’ve successfully installed Oracle 19c with this article.

Now I need to restore the database from existing backups. I’ve first restored the control file, then I started to restore the database:

rman> restore database; ... ORA-19504: failed to create file "+DATA" ORA-17502: ksfdcre:4 Failed to create file +DATA ORA-15001: diskgroup "DATA" does not exist or is not mounted ORA-15374: invalid cluster configuration ... 

Then I tried to create the diskgroup, and it failed:

SQL> create diskgroup DATA external redundancy disk '/dev/loop1' force; create diskgroup DATA external redundancy disk '/dev/loop1' force * ERROR at line 1: ORA-15000: command disallowed by current instance type 

Is there a work around? I can either ignore the diskgroup or find a way to create one, I just don’t how to fix it.