适用场景:记录文章浏览量 1 php artisan make:event 事件名 示例: 1 php artisan make:event MyEvent Laravel目录\app\Events已经生成MyEvent.php文件 1 2 3 4 5 6 7 8 9 10 11 12 13 14 ...
分类:
其他好文 时间:
2017-06-17 12:04:03
阅读次数:
131
/// <reference path="jquery-1.8.0.min.js" />/** DIV或元素居中* @return*/jQuery.fn.mCenterDiv = function () { this.css("position", "absolute"); this.css("bo ...
分类:
Web程序 时间:
2017-06-17 11:14:03
阅读次数:
261
数据库的三大范式以及五大约束 数 据 库 今天小编来讲一下数据库的相关知识点,数据库的三大特性可谓是:实体属性和关系。 实体:表; 属性:表中的数据(字段); 关系:表与表之间的关系; 第一范式(1NF):数据表中的每一列(每个字段)必须是不可拆分的最小单元,也就是确保每一列的原子性; 例如:use ...
分类:
数据库 时间:
2017-06-17 11:11:11
阅读次数:
237
慕课-c++远征之起航篇 1、c++与c的不同 数据类型:共同:基本:(int、char、float、double),构造:(数组、struct、union、emum),指针类型,空类型(void)。 异:c++多了bool型 初始化数值:同:int x = 1; 异:c++多了 int x(1)? ...
分类:
编程语言 时间:
2017-06-17 10:11:57
阅读次数:
187
编写分析器有两种方法,一种是通过DFA对单词进行识别,二是通过直接编敲代码进行识别。本程序採用DFA对单词进行识别。 DFA的实现方法。大概思想和书上一致,在程序中,则是用二维数组代表状态转换矩阵,用一维数组表示终态。 一个词法编辑要实现的功能主要包含下面几点: 可以识别标识符、keyword、数字 ...
分类:
其他好文 时间:
2017-06-17 10:07:59
阅读次数:
146
user www-data;worker_processes auto;pid /run/nginx.pid; events { worker_connections 768; # multi_accept on;} stream { upstream powercore { #ip_hash; s ...
分类:
其他好文 时间:
2017-06-17 10:06:23
阅读次数:
186
用户管理的2个重要文件:/etc/passwd和/etc/shadow. /etc/passwd文件里存放的是用户的信息,其中不包含密码:passwd文件中每一行代表一个用户,且每一行分为7个字段使用“:”符合隔开。 使用cat命令可以查看passwd文件的内容 以第一行:root:x:0:0:ro ...
分类:
系统相关 时间:
2017-06-17 10:00:16
阅读次数:
233
1:ffmpeg解码流程 拆包,构建队列,解码,同步,显示 //计算视频Frame的显示时间//获取ptspts = 0;//decodec video frameavcodec_decode_video2(AVFormatContxt*,AVFrame,int*,AVPacket);if( (pt ...
分类:
其他好文 时间:
2017-06-17 00:13:47
阅读次数:
272
题目: Implement the following operations of a queue using stacks. push(x) -- Push element x to the back of queue. pop() -- Removes the element from in f ...
分类:
编程语言 时间:
2017-06-16 22:05:03
阅读次数:
181
chapter 1 Old Major's dream. paragraph 1 //Mr Jones is the mastor of the Manor Farm.That night he was drunk and made his way up to bed. 有一天夜里,曼娜农场的主人琼 ...
分类:
其他好文 时间:
2017-06-16 21:59:29
阅读次数:
354