• Method Analysis of Loading CSS and JS Files in Yii2 Framework


    This paper illustrates the method of loading CSS and JS files by Yii2 framework. Share for your reference, as follows: 1. The first step is to put our CSS and JS files in the web directory. Step 2: Modify the assets/AppAsset.php file <?php /** * @link http://www.yiiframework.com/ * @copyright Copyright (c) 2008 Yii Software LLC […]

  • No such file to load — readLine solution after Ruby upgrade


    Upgrade Ruby and rails and enter script/consle: Copy codeThe code is as follows: /usr/local/lib/ruby/1.8/irb/completion.rb:10:in `require’: no such file to load — readline (LoadError)          from /usr/local/lib/ruby/1.8/irb/completion.rb:10          from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `require’          from /usr/local/lib/ruby/1.8/irb/init.rb:252:in `load_modules’          from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `each’          from /usr/local/lib/ruby/1.8/irb/init.rb:250:in `load_modules’          from /usr/local/lib/ruby/1.8/irb/init.rb:21:in `setup’          from /usr/local/lib/ruby/1.8/irb.rb:54:in `start’          from /usr/local/bin/irb:13  Terms of […]

  • How to Use U Disk under Linux and FreeBSD


    How to Use U Disk under Linux/FreeBSD 1. First of all, we need to know a concept: any storage device with USB interface can be regarded as a U disk, which includes USB external hard disk, CF card with USB interface, MMC card and so on.   2. Under Linux/FreeBSD, the U-disk unification is simulated as […]

  • Introduction to the Differences of Requirement, Load, Inclusion and Extension in Ruby


    Require, load is used for files at the end of a file, such as. rb, etc. Include, load is used to contain modules in a file.Requirement is generally used to load library files, while load is used to load configuration files. 1、require:Load a library and load it only once. If you load it many times, […]

  • Running and debugging asterisk under FREEBSD


    1. Running Common Commands for Debugging . / asterisk & Start asterisk in the background . / asterisk – VVC starts asterisk and displays debugging information on the console as much as possible . / asterisk – R connects to the asterisk console Set verbose 9999 Set Print Details 2. Common commands under asterisk console […]

  • Data tables used by web front-end to load dynamic menus from Oracle database


    When we use a software or a certain management system, we will use the hierarchical menu to clearly show its functional modules. And these hierarchical menus need to be displayed to us by calling the database. Today, I will mainly introduce the tables we need to make the grading menu. 1. Menu Table create table […]

  • Php-cgi process CPU overload: disable WordPress timing task wp-cron.php


    I. Problem Description 1, 19 manual upgrade to WordPress 4.1, 21 at 7 am to see the website PHP probe, found that the system load is too high, almost between 1 and 1.5. 2. Although this value is acceptable for dual-core processors, the load between them is only about 0.2, and the website traffic has […]