Skip to main content

Notes on learning WordPress

    Finally I finished study the book :

    Here are some notes I’d like to share during study:

  • I was using IIS+PHP. Windows Active Directory is sophisticated. Make sure WordPress was granted to use its own folder. “Application pool” authentication is effective.
By default is IUSR. I couldn’t see uploaded-pictures’ thumbnails, even when I granted “Everyone/ full control” on a specific picture. Then I removed inherited-hierarchy, and lost the right to delete it, even with admin rights.
 
  • PHP module gd2
After correcting authentication, the functionality “Edit Image” on WordPress still didn’t work. I validated minimum required modules while installing PHP. Maybe most developers validated the gd2 (JPEG related) module. It took me quite a long to find out my server needs gd2.
 
  • wp_enqueue_script

Developers use wp_enqueue_script() to ask WordPress to load external scripts. But it didn’t work directly on my server. After research, I found the working version is :
wp_register_script()
wp_enqueue_script()
Also, I found tjat deregistering already included script and then enqueueing a new one needs no wp_register_script. I deregistered default jquery 1.14 and then included current jquery 3.5.
wp_deregister_script()
wp_enqueue_script()
 
 
  • Naming convention 
This part is more troublesome. WordPress seems not documenting well… Maybe its complexity and legacy make keeping documentation difficult. Out-dated documentation is very common in IT. This is not a serious problem, but sometimes annoying when searching for help. 


   I didn't really complete the book. The final 10% was glanced through, which was focused on taking over taxonomy. I guessed the author knew WordPress as well as a developer in WordPress team. But I don't need to. My aim is to know how WordPress was designed, not mastering on implementing the system. There is not much about Bootstrap. Bootstrap's documentation is a good reference. 


    WordPress is a open-sourced project, but it has enough financial support to keep a development team. I also found a side-product: theme forest https://themeforest.net/ , which sells theme designs. I'm curious about a open-source team's long-life. Here are my guesses:
 
  • Open-source project could be the base of a commercial product. If the commercial solution succeeds, the enterprise has good intentions to support the open-source team. The enterprise may choose to buy out the development team or just 'rent' it. 

  • The open-source team may establish another team to sell the enhanced, profitable version of the current open-source project and pay back to support the team. Or

  • an enterprise may open-up its internal start-up as an open-source team and develop professional products over it. 
    I also created a video clip to share my notes and a short record on trying the task on the book. It is not a tutorial. When I searched for solutions online, I found more video sources on big-topic such as AD, SSIS. And .... never saw a video clip from my ....similarity ? criteria? (I tried to avoid a specific word.... )So I created one. 


Comments

Popular posts from this blog

Bookmark service (MongoDB & Spring REST) -2/2

    I accidentally deleted my development VM. I got lucky having the habit of taking notes. This blog is useful. Development VM is doom to be lost. Rebuild it waste time, but having a clean slate is refreshing~. What concerns me more is my AWS free quota this month is reaching 85%. The second VM I launched but never being used might be the one to blame. (Of course, my mistake.) I terminated the wrong VM. Now I got Linux 2 built. Great, just threw away everything happened on AMI.  1st layer: Page Page class   Originally, I need to prepare getter/setter for all class properties for Spring. By using lombok, I only need to create constructors. lombok will deal with getter/setter and toString(). But there are chances to call getter/setter, but how? .......Naming convention.... Capitalize the 1st character with the prefix get/set.  Annotation @Data was used on this class.  Repository class Spring Docs: Repository https://docs.spring.io/spring-data/mongodb/docs/3....

Guide to Preserving HuggingFace Models in Google Colab Environments

Conclusion:  Step 1:  find the model path: ls ~/.cache  Step 2:  Copy the entire folder to Google Drive:  Step 3:  Set model path to the subfolder under snapshot: My Story: I initially began exploring Generative AI (GAI) and Google Colab through Stable Diffusion. In the past, as I mainly wrote server services and console applications, I was less familiar with data science modes like R and Jupyter that can maintain a paused state. I didn't quite understand the heavy burden on Colab of creating a temporary Stable Diffusion WebUI with .ipynb, as suggested by popular guides. I just found it troublesome that connections often took a long time and then dropped, requiring a restart. Recently, while testing new versions of the Stable Diffusion model, and facing challenges due to Colab's policies making various versions of WebUI difficult to run successfully, I started researching how to write my own test programs in Colab. Eventually, I understood that Colab is ess...

Setup Maven and two basic projects

    The interesting implementation of Java I proceed to is Spring. And, only getting Java running is not enough. I also need to set up Maven. This name is new to me, and I found many Spring tutorials just skip this part. At least I need Maven to generate templates for me. I should learn it more. ( I knew there is a great tool -- Eclipse -- can make tedious things disappear. I’m taking a strategy to install all experiments I want to try and throw away when it's full. And that's an external VM, not my PC. I, not yet, want to do research about installing Eclipse on AMI. )    Upgrade to Java 8     First is to upgrade Java on AMI to Java8. AWS provides advanced tools for Linux 2. And DIY for Linux2. At least there are solutions for my choice.  Amazon Corretto 8 Installation Instructions for Amazon Linux 2 https://docs.aws.amazon.com/corretto/latest/corretto-8-ug/amazon-linux-install.html Here are commands I used: >wget */amazon-corretto-8-x64-linux-jdk.d...