峰间的云

立诚勿怠,格物致知
It's all about connecting the dots

Newest Posts 第15页

要执行请求的操作,WordPress需要访问您网页服务器的权限

重新装完wordpress程序后,可能在通过wordpress后台安装插件时碰到页面弹框提示“要执行请求的操作,WordPress需要访问您网页服务器的权限。 请输入您的FTP登录凭据以继续。”,处理方法如下: 假设wordpress程序的根文件夹路径为/var/www/html/domain.com/public_html/wordpress-site,执行下面三步操作:

PHP 阅读(2673)去评论赞(0)

nginx支持php(wordpress)和node

nginx配置一下不仅可以做静态服务器,还可以转发请求到服务端本地的端口服务。以前装wordpress这些程序我们会惯例一样地去安装apache,但是如果你装了nginx,就不再需要安装apache了。下面是一个我自己用的配置,我的服务器是centos 7。 这些说明文字有可能有助于你对下面这个配置的理解: 我有两个域名,分别是orzzone.com和yxeye.com; orzzone.com使用的服务是由一个php程序wordpress提供的; yxeye.com使用的服务是由一个node服务提供的,node服务使用的端口号为18080。

Enable SASS in Angular4

If you use angular-cli to create an Angular4 project. The project will use css by default. If you want to use sass, you can do things like this: In angular-cli.json: Revise apps.styles to be ["styles.scss"], and defaults.styleExt to be "scss". This will enable you to generate .scss file instead of .css file when using command like "ng generate component componentName".

一种字符串拼接的高效方法

经过在Chrome浏览器多次尝试,总的来说,testByForLoop1方法(用了ES6字符串模板的for循环)耗时最长,testByForLoop2方法(没用ES6字符串模板的for循环)耗时其次,testByArrayJoinMethod方法(利用了数组的join方法)耗时最短,它们的耗时在数组长度越长时越是差异显著。尤其是testByArrayJoinMethod方法简直是效果拔群。

FormData的使用及请求头分析

XMLHttpRequest Level 2添加了一个新的接口FormData.利用FormData对象,我们可以通过JavaScript用一些键值对来模拟一系列表单控件,我们还可以使用XMLHttpRequest的send()方法来异步的提交这个"表单".比起普通的ajax,使用FormData的最大优点就是我们可以异步上传一个二进制文件.

JavaScript 阅读(9967)去评论赞(1)

发布静态文件到服务器上的简化操作

Of course, you can use a client tool such as FileZilla to deploy your static files to the server. But you will certainly feel tired in the end if you need to repeat this work almost every day in case your target server is for test purpose. For me, I used webpack for local development, when I want to deploy something to the test server, I need to execute command "npm run build" first and then "npm run deployToTestServer", it's already very convenient, but things can be even convenient with only one command needed to type ^_^.

Spring Web MVC系列

接下来会翻译一下spring官方的一些文档,此次为Spring Web MVC系列的内容。Spring Web MVC是建立在Servlet API之上的web框架,Spring框架很早就包含了Spring Web MVC。“Spring Web MVC”这个正式名称来源于其源模块“spring-webmvc”,但是它被大家所熟悉的叫法是“Spring MVC”。

Java 阅读(2130)去评论赞(0)

自然科学的诞生和发展与faith的联系

我觉得,我们所说的科学,是基于理论证明和实践检验的对于客观事实、规律的一种总结。太多的变量会延缓甚至阻碍这种【总结】活动,而“神”就是一个影响因素很大的变量。如果认为存在有很多的神,有些有共同点但是表现略有差异的现象,可能就被解释成是因为不同的神参与其中才导致的不同,有这种先入为主的想法后,很多可以被早些总结的事实、规律被执行【总结】操作的可能性就大大降低/延迟了。

未分类 阅读(2705)去评论赞(0)

登录

找回密码

注册