码迷,mamicode.com
首页 > 其他好文
[UIImage imageNamed:@"tab_back"]不显示图片的问题解决
[UIImage imageNamed:@”tab_back”]不显示图片,而图片tab_back.png在工程里是存在的.一、原因这很可能是因为向工程中添加图片的时候,选择的是文件夹引用,而不是虚拟组,如下图: 二、要理解这两种方法代表什么意思1.Create groups:把选择的文件添加到工程的group下,如果你选择的是文件夹,则把文件夹认为是group。添加的group和文件路径不一...
分类:其他好文   时间:2015-09-08 12:36:43    阅读次数:201
[UIScreen mainScreen].bounds.size.height获取的数值不变的问题解决
一、问题[UIScreen mainScreen].bounds.size.height获取的数值永远是固定的,不会根据不同屏幕尺寸的苹果手机而改变二、原因这是因为,苹果系统在监测到Default-568h@2x.png这个后,才会调用屏幕尺寸函数。 因此,搞ios开发,一定要加上这张图片才行。...
分类:其他好文   时间:2015-09-08 12:35:17    阅读次数:258
bzoj-2178 圆的面积并
题意: 给出平面上的n个圆,求它们的面积并; n 题解: 这题似乎有很多种姿势来解,我学了一种比较Simple的; 对于三次以下多项式函数的定积分,有一个Simpson公式: ∫[l,r]f(x)=(r-l)(f(l)+f(r)+4f(mid))/6 公式可以利用导数证明,但是对于三次以上或者其他函数是不成立的; 比如圆的参数方程,三角函数之类的奇怪东西; 虽说如此,不成...
分类:其他好文   时间:2015-09-08 12:36:47    阅读次数:252
HOG+SVM
#include"cv.h"#include"highgui.h"#include"stdafx.h"#include#include#include#include#includeusingnamespacecv;usingnamespacestd;intmain(intargc,char**ar...
分类:其他好文   时间:2015-09-08 12:35:34    阅读次数:410
使用ExpandableListView——当有Group选项展开时,如何正确获取长按的Group选项。
当我们使用ExpandableListView时,实现点击一个GroupView则展开ChidView,那么这个时候,Adapter的大小前后是有变化的。例如:假设有20个GroupView,每个GroupView都有一个ChildView。当全部GroupView都没有被展开的时候,Adapter...
分类:其他好文   时间:2015-09-08 12:34:16    阅读次数:150
YII 1.0 验证码
public function actions(){return array (‘captcha’=> array(‘class’=> ‘CCatpchaAction’,‘height’=> 25,‘width’=>80,‘minLength’=>4,‘maxLength’=>4));在视图中:(1...
分类:其他好文   时间:2015-09-08 12:32:27    阅读次数:168
PAT-ADVANCED-1089-Insert or Merge
According to Wikipedia:Insertion sortiterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertio...
分类:其他好文   时间:2015-09-08 12:35:00    阅读次数:208
PAT-ADVANCED-1088-Rational Arithmetic
For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient.Input Spe...
分类:其他好文   时间:2015-09-08 12:32:02    阅读次数:154
使用非 GUI 模式运行 JMeter 压力测试
使用非 GUI 模式,即命令行模式运行 JMeter 测试脚本能够大大缩减所需要的系统资源。使用命令jmeter -n -t -l 这里是我们使用非 GUI 模式运行测试脚本时可以使用的一些命令:-h 帮助 -> 打印出有用的信息并退出-n 非 GUI 模式 -> 在非 GUI 模式下运行 JMe....
分类:其他好文   时间:2015-09-08 12:33:48    阅读次数:268
openssl命令行工具简介 - 指令x509
原文链接:http://blog.csdn.net/allwtg/article/details/4982507 openssl命令行工具简介 - 指令x509 用法: openssl x509 [-inform DER|PEM|NET] [-outform DER|PEM|NET] [-key.....
分类:其他好文   时间:2015-09-08 12:33:21    阅读次数:235
PAT-ADVANCED-1095-Cars on Campus
Zhejiang University has 6 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the cars crossing the g...
分类:其他好文   时间:2015-09-08 12:31:54    阅读次数:183
profile和bash
24down votefavorite12I am reading about basic shell scripting from Linux Command Line and Shell Scripting Bible.It says that the /etc/profile file set...
分类:其他好文   时间:2015-09-08 12:32:43    阅读次数:183
xcode查找当前程序的沙盒
随意在程序中添加一个断点,当程序命中断点的时候,控制台中会出现一个"lldb" 此时在"lldb"后面添加上 po NSHomeDirectory() 回车,控制台会出输出沙盒的位置。复制下来通过finder---前往----前往文件夹---粘贴 回车就ok了,当了当前程序的沙盒。document....
分类:其他好文   时间:2015-09-08 12:31:49    阅读次数:211
CocoaPods 深入使用
在CocoaPods 使用中介绍了基本的使用写项目的时候想用到SQLite.swift第三方库,但是问题来了pod searchSQLite.swift //执行这条语句,搜索不到结果但是在git上是有的,怎么办呢直接在git上下载了SQLite.swift,看到里面有文档说明在 Podfile 文...
分类:其他好文   时间:2015-09-08 12:31:26    阅读次数:147
artTemplate使用说明
普通使用 no-escape 不转义HTML 在javascript中存放模板辅助方法
分类:其他好文   时间:2015-09-08 12:31:11    阅读次数:242
12306
在”“后面直接粘贴
分类:其他好文   时间:2015-09-08 12:31:17    阅读次数:141
tomcat 正常启动,无法访问。且项目启动无问题。。。的解决办法。。
Eclipes解决方法:1.右击项目,选择propreties选项2.在弹出的首选项窗口的左侧选择“Web Project Settings”3.修改context root:输入框,修改成自己的项目名; 4.romve 掉当前项目,重新部署,重新启动。。MyEclipes解决方法:1.右击项目,....
分类:其他好文   时间:2015-09-08 12:29:59    阅读次数:172
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!