OpenLiteSpeed + Redis Object Cache

Adding Redis to OpenLiteSpeed introduces an additional caching layer, enhancing the performance of your WordPress websites. The first step is to verify your PHP version. This can be done through phpinfo() or via the OpenLiteSpeed web panel. In my case is PHP 7.4 In SSH Now that Redis is installed and operational, let’s proceed to … Read more

WordPress Optimization: Switching from Apache to OpenLiteSpeed

Fast like Nginx and configurable via a web interface, OpenLiteSpeed offers peak performance for caching WordPress sites Choosing the right web server software is crucial for hosting WordPress sites efficiently. OpenLiteSpeed emerges as a superior choice over traditional servers like Apache or Nginx for several compelling reasons. Firstly, OpenLiteSpeed is renowned for its exceptional performance, … Read more

Duplicate the customer user roles in woocommerce via code

In particular cases, it can be useful to add a user roles group cloned.As you know the default groups in Worpress are Administrator, Editor, Author, Contributor, Subscriber.Woocommerce adds the following: Shop manager and Customer.The following code lets you create a new User Roles group base on cloning the customer roles: Questions? Suggestions? Please leave a … Read more

Text to Speech crash on unity 5

I’m working on a stable and updated text to speech for unity 5 click here for description examples and code If you are trying the “DaG_II first attempt (here)” to make unity talk on windows, using MSDN SAPI, your build version may crash Joffle from the forum unity3d figure out how to solve it: when GetVoices is called, the CustomMarshalers.dll … Read more

Text to speech for unity 5

Text to Speech on unity Make your own game talk using windows SAPI voices About SAPI The Speech Application Programming Interface or SAPI is an API developed by Microsoft to allow the use of speech recognition and speech synthesis within Windows applications. To date, a number of versions of the API have been released, which … Read more

Turn off camera dark screen on Unity 5 (c#)

This is a method I used to turn off camera in Blind Setting Camera.main.cullingMask to Zero using UnityEngine; using System.Collections; /******************************************** UNITY 5.2.3 Blind Project ’15 Turn ON / Turn OFF Camera & Lights v 1.0 /********************************************/ public class SpegniLuci : MonoBehaviour { // Use this for initialization void Start () { //Turn Off … Read more

Scene pause Unity 5 (c#)

Pausing a scene using UnityEngine; using System.Collections; // public class PausaGioco : MonoBehaviour { bool paused = false; void Update () { if(Input.GetKeyDown(“p”)) { gamePaused(); } } void OnGUI() { if (paused == true) { GUILayout.Label(“GAME IS PAUSED”); if(GUILayout.Button (“CLICK TO UNPAUSE”)) { gamePaused(); } } } void gamePaused() { if (Time.timeScale == 1) { … Read more

Quitting a scene using ESC key Unity5 (c#)

Quitting a scene using ESC key in Unity 5 using UnityEngine; using System.Collections; // – Random Blind code public class ExitGame : MonoBehaviour { // Use this for initialization void Start () { Cursor.visible = false; } // Update is called once per frame void Update () { if (Input.GetKeyDown(KeyCode.Escape)) { //Application.Quit(); Application.LoadLevel (“_Menu”); … Read more