摘要: 使用原生态的api上传文件的实现: #import "MainViewController.h" @interface MainViewController () @property (weak, nonatomic) UIImageView *imageView; @end @implementa 阅读全文
posted @ 2017-07-29 21:43 yfceshi 阅读(378) 评论(0) 推荐(0) 编辑
摘要: 5月22日晚上,备受期待的京东商城将于今晚赴美上市。京东最新提交的招股书显示,京东IPO的发行价区间为16美元-18美元。估计将发行9369万股ADS和1405万股超额配售权,最高可融资19.39亿美元。如以发行价区间计算。京东的估值在218.7亿美元-246.6亿美元之间。 以京东集团CEO刘强东 阅读全文
posted @ 2017-07-29 20:48 yfceshi 阅读(933) 评论(0) 推荐(0) 编辑
摘要: 一般是: scard0:指系统内部存储 scard1:指外插的sd卡 也有特例。。 分别获取路径的方法: package com.main; import java.lang.reflect.Method; import android.app.Activity; import android.co 阅读全文
posted @ 2017-07-29 19:08 yfceshi 阅读(717) 评论(0) 推荐(0) 编辑
摘要: 高速排序在最坏情况下的时间复杂度为O(n^2),尽管在最坏情况下执行时间比較差,可是高速排序一般是用于排序的最佳选择。由于其平均性能相当好,期望的执行时间为O(nlgn),且在O(nlgn)的记号中隐含的常数因子非常小。 高速排序和合并排序有相似之处,都是须要划分序列,在合并排序中。划分的过程非常e 阅读全文
posted @ 2017-07-29 17:32 yfceshi 阅读(126) 评论(0) 推荐(0) 编辑
摘要: [转]php-fpm配置具体解释php-fpm具体解释原文链接:http://php-fpm.anight.org/wiki:http://www.php-fpm.com/翻译:http://syre.blogbus.com/logs/20092011.html什么是 FastCGIFastCGI 阅读全文
posted @ 2017-07-29 15:26 yfceshi 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 效果图: 加入依赖包: compile 'com.android.support:design:22.2.0' 布局文件: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.andro 阅读全文
posted @ 2017-07-29 14:59 yfceshi 阅读(269) 评论(0) 推荐(0) 编辑
摘要: 对应WM_CTLCOLOR函数 加入下面代码: HBRUSH CMFCApplication2Dlg::OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor) { ..... switch (pWnd->GetDlgCtrlID()) { case IDC_ 阅读全文
posted @ 2017-07-29 14:10 yfceshi 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 作者:咕唧咕唧liukun321来自:http://blog.csdn.net/liukun321本质上说一张图像就是由数值组成的矩阵。Opencv 2.x由 cv::Mat 这个数据结构来表示一张图像。矩阵的每个元素代表了一个像素。对于彩色图像而言矩阵的元素是一个三元数。对图像有了这个新的认识,以 阅读全文
posted @ 2017-07-29 12:43 yfceshi 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 上篇文章介绍了Bound/Unbound Function。今天我们来看看Action吧。像我之前说的:Function和Action之前的差别能够简单理解为。Function不改动数据,可是Action却会改动数据。 今天呢,我们也分别看看Bound Action和Unbound Action,事 阅读全文
posted @ 2017-07-29 12:10 yfceshi 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 前言 借助table的特性来实现 代码 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Document</title> <style type="text/css" media="screen"> .tes 阅读全文
posted @ 2017-07-29 10:54 yfceshi 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 优于 select 的 epoll (I/O 复用) select 速度慢的原因 调用select后针对全部文件描写叙述符的循环 每次调用函数时都须要向该函数传递监视对象信息 select并非把发生变化的文件描写叙述符单独集中到一起。而是通过观察作为监视对象的fd_set函数的变化,因此不能避免对全 阅读全文
posted @ 2017-07-29 10:03 yfceshi 阅读(246) 评论(0) 推荐(0) 编辑
摘要: 如果我目录jni有一个list.sh文件 我直接 nxgametekiMacBook-Air:jni luonan$ ./list.sh ../../Classes 提示 permission denied 然后 chmod +x *.sh 然后执行就OK了 nxgametekiMacBook-Ai 阅读全文
posted @ 2017-07-29 09:00 yfceshi 阅读(3546) 评论(0) 推荐(0) 编辑