码迷,mamicode.com
首页 >  
搜索关键字:use    ( 28727个结果
自定义日志文件写日志
use yii\log\FileTarget; $time = microtime(true); $log = new FileTarget(); $log->logFile = Yii::$app->getRuntimePath()."/logs/a.log'; $log->message[] = ...
分类:其他好文   时间:2016-05-04 13:30:06    阅读次数:144
用例视图 Use Case View(rose)
找开Rose工具,选择用例视图 Use Case View 先看看这个视图下面都有哪些工具,都能做一些什么: 下面详细说一下: 用例视图下面有工具: 一:选择工具 二:文本框Text Box 三:注释 Note 四:注释对象锚 Anchor Note To Item 五:包 Package 六:用例 ...
分类:其他好文   时间:2016-05-03 14:22:11    阅读次数:156
rails嵌套资源的具名路由
假设有一个user模型,那么,users_path对应index的action,不需要参数,而对于user_path(),后面需要一个参数作为id,例如user_path(@user),表示@user对应的页面,具体含义与get/patch/delete有关 而edit_user_path(@use ...
分类:其他好文   时间:2016-05-02 23:03:28    阅读次数:390
SQL常用命令浅析
表操作备注:操作之前使用“use <数据库名>”应连接某个数据库。建表命令:create table <表名> (<字段名 1> <类型 1> [,..<字段名 n> <类型 n>]);例子:mysql> create table MyClass(> id int(4) not null prima ...
分类:数据库   时间:2016-05-02 22:39:45    阅读次数:299
HDU1398 Square Coins
Description People in Silverland use square coins. Not only they have square shapes but also their values are square numbers. Coins with values of all ...
分类:其他好文   时间:2016-05-02 22:38:55    阅读次数:186
sed系列:行或者模式匹配删除特定行
“p” command prints the buffer (remember to use -n option with “p”) “d” command is just opposite, its for deletion. ‘d’ will delete the pattern space b ...
分类:其他好文   时间:2016-05-02 19:59:44    阅读次数:265
java JDBC操作MySQL数据库
一,首先在MYSQL建立一个数据库,例如Geek99DB: create database Geek99DB; use Geek99DB; 然后建立一个表CustomerTab: create table CustomerTab(id int primary key auto_increment,n ...
分类:数据库   时间:2016-05-02 19:54:39    阅读次数:187
使用Retrofit时出现 java.lang.IllegalArgumentException: URL query string "t={type}&p={page}&size={count}" must not have replace block. For dynamic query parameters use @Query.异常原因
这里报错 形如?t=1&p=2&size=3的url链接不能用@PATH注解 Query params have their own annotation which automatically appends to the URL. 使用@Query注解 参考: http://stackoverf ...
分类:编程语言   时间:2016-05-02 14:23:04    阅读次数:2871
Linux Kernel: the " do { ... } while(0)" magic
在读Linux源码的时候看到一堆这种macro: 一直想不明白,为什么不直接用 或者: 搜了一下才明白: http://stackoverflow.com/questions/9495962/why-use-do-while-0-in-macro-definition http://stackove ...
分类:系统相关   时间:2016-05-02 12:57:36    阅读次数:170
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!