Latest Share

Publishing the latest news and ideas for you

Popular Articles

Recent Stories

MAMP 选择php版本

MAMP 选择php版本

There is no translation available.

MAMP默认控制面板只能选择2个php版本,如果要设置更低(更老)的版本,可以采用以下方法

小程序如何生成带参数二维码?

小程序如何生成带参数二维码?

There is no translation available.

许多小程序开发者,都需要获取进入小程序不同页面的二维码:包括常见的四方形「QR 码」和新推出的「小程序码」。
这时候,我们直接在小程序后台中获取到的二维码,就远远无法满足我们以上需求了。贴心的是,微信提供了「获取小程序二维码」的接口
How to Install a LAMP Stack on Ubuntu 16.04

How to Install a LAMP Stack on Ubuntu 16.04

There is no translation available.

A LAMP (Linux, Apache, MySQL, PHP) stack is a common, free and open-source web stack used for hosting web content in a Linux environment. Many consider it the platform of choice on which to develop and deploy high-performance web apps.

This guide shows how to install and test a LAMP stack on Ubuntu 16.04 (LTS).

iOS10 Safari不识别viewport禁用缩放的暴力解决方案

iOS10 Safari不识别viewport禁用缩放的暴力解决方案

There is no translation available.

移动设备升级到iOS10了,发现了自带的Safari浏览器不再识别meta viewport了。以前我们都是用这个标签来让浏览器禁用缩放的。万恶的Apple~~

网上看到了一段解决方案,测试了一下确实不错,就拿来了。 在iOS10之前都是通过

<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0,user-scalable=no">
微信分享链接的缩略图

微信分享链接的缩略图

There is no translation available.

 

 

微信内分享

在微信内打开链接后,点右上角【…】选择【发送给朋友】或【分享到朋友圈】,这种分享方式获取缩略图的方法:

安全删除sesson_* in /var/lib/php5

安全删除sesson_* in /var/lib/php5

There is no translation available.

cd /var/lib/php5
find . -name "sess_*" -print | xargs rm -v

针对Ubuntu,在php.ini中设置session.gc_probability的值为1, 因为Ubuntu默认该值为0

Mac 安装 Phantomjs

Mac 安装 Phantomjs

There is no translation available.

下载Phantomjs:http://phantomjs.org/download.html

解压到:/Users/UFO/

打开terminal,输入命令:export PATH="$PATH:/Users/UFO/phantomjs-2.1.1-macosx/bin/"

测试:phantomjs -v

看到具体的版本号,则表示安装成功

安装php包管理工具和drush

安装php包管理工具和drush

There is no translation available.

cd~

curl -sS https://getcomposer.org/installer | php

php composer.phar