
Export Datas To PDFThere have a package wkhtmltopdf using webkit(QTwebkit) convert html to pdf or image from commandline.For Laravel: laravel-snappyInstallation is same as all other laravel package...

When developing a website.Crop image with specific height and width is an common requirement.Today, I’m gonna show you a vue package for crop image and get base64 datas.PreviewThis package Image Cr...

Docker A LEMP With Laravel In Ubuntu Set up docker, Documents from official site : Docker.com. Set up the repository ``` sudo apt-get -y install \ ...

python decorator 大概是每个pythoner比看到内容吧.顾名思义:“装饰器”,绝对是把什么什么东西通过另外的东西修饰了一番。####先来看下最基本的显而易见的例子吧: def log(func): def wrapper(*args, **kw): print 'call %s():' % func.__na...

新浪微博和twitter 等系统都有一窜数字ID来标示一个唯一的用户,这篇文章就是记录如何实现这种唯一数字ID 原理:使用MYSQL 自增ID 拼接任意字符..然后使用进制转换打乱规则一般来说实现唯一性可以使用uniqid 或者time之类的方式生成,但是考虑到多台系统,也就是分布式系统。这种方式就不准确了。实现:新建一个数据库: CREATE TABLE `user_number_...

Download and install ruby sudo mkdir Downloadscurl -O http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.2.tar.gz tar -zxvf ruby-2.1.2.tar.gz -C ../cd ..sudo chown -R ray ruby-2.1.2sudo chgr...

创建过程: 必须具有CREATE ROUTINE权限,并且ALTER ROUTINE和EXECUTE权限被自动授予它的创建者。两种方式,及参数语法说明: CREATE PROCEDURE sp_name ([proc_parameter[,...]]) [characteristic ...] routine_body CREATE FUNCTIO...

####PHP添加扩展MongoDBPHP添加扩展的方式大致都是一致的,这里记录下今天安的这个,免得改天又忘了。 tar zxvf mongo-1.5.1.tgz -C ../ cd mongo-1.5.1/ phpize ./configure --with-php-config=/usr/local/php/bin/php-config make clean->这里有时候会报错所以...

官方文档在这里:http://docs.mongodb.org/manual/tutorial/install-mongodb-on-linux/首先需要知道,mongod是服务进程,mongo是客户端进程1.下载解压(可以自由发挥)curl -O http://downloads.mongodb.org/linux/mongodb-linux-x86_64-2.6.0.tgztar -zx...

使用框架的好处简直太多了,便于管理,加速开发,使用新理念新技术。Laravel 4基于PHP 5.3以上开始的。###1.命名空间:namespace namespace Stark; class Test{ } 其他文件(首先需要加载进来): use Stark\Test; $eddard ...
- chevron_left
- 1
- 2
- chevron_right