首页 > 其他
UIScorlView 循环滚动
- (void) createAdScrollView { _view = [[UIView alloc] initWithFrame:CGRectMake(0, 0, WIDTH, 150)]; [self.view addSubview:_view]; _scrollView = [[UIScr
分类:其他   时间:2016-03-08 13:25:13    收藏:0  评论:0  赞:0  阅读:159
JEasyUI: Bug Fixing for perpertygrid
The propertygrid is really a nice plugin. However, you may encounter error if load it with ajax method as below. $('#p_prop').panel('refresh', './prop
分类:其他   时间:2016-03-08 13:23:53    收藏:0  评论:0  赞:0  阅读:180
@Transactional失效的问题
spring事物配置一般没有问题, 优先检查mysql的引擎是否是innodb, 是的话检查包的扫描是否有问题。 我就是因为包的扫描导致@Transactional失效。 具体情况如下, 在spring-mvc.xml文件里写了 <!-- 扫描controller(controller层注入) --
分类:其他   时间:2016-03-08 13:23:13    收藏:0  评论:0  赞:0  阅读:178
160308_Signals & Slots
In Qt, we have an alternative to the callback technique: We use signals and slots. A signal is emitted when a particular event occurs. Qt's widgets ha
分类:其他   时间:2016-03-08 13:23:03    收藏:0  评论:0  赞:0  阅读:171
Selenium中expected_conditions下text_to_be_present_in_element_value方法的使用
text_to_be_present_in_element: 判断某个元素中的text是否包含了预期的字符串 text_to_be_present_in_element_value: 判断某个元素中的value属性是否包含了预期的字符串 包含value属性的html标签: <button> <inp
分类:其他   时间:2016-03-08 13:22:23    收藏:0  评论:0  赞:0  阅读:1893
更改AlertView背景
UIAlertView *theAlert = [[[UIAlertViewalloc] initWithTitle:@"Atention" message: @"I'm a Chinese!" delegate:nil cancelButtonTitle:@"Cancel" otherButton
分类:其他   时间:2016-03-08 13:21:23    收藏:0  评论:0  赞:0  阅读:140
Homebrew新一代OS X套件管理工具 高速安装Git
在Mac上安装一些开源程序,除了自己下下载、编译( ./configure && make && make install) 之外,通常最方便的选择就是用套件管理工具來处理安装、升级跟移除。 在 Homebrew 之前。最常見的就是 MacPorts 跟 Fink 了,对于 MacPorts,它有个
分类:其他   时间:2016-03-08 13:21:14    收藏:0  评论:0  赞:0  阅读:213
Map小记
Corelocation地理定位Map Kit地图展示 在移动互联网的时代,移动app能解决用户的很多生活琐事,比如 导航:去任意陌生的地方 周边找餐馆找酒店,找银行,找电影院在上述应用中都用到了地图定位功能,在ios开发中想要加入这2大功能必须基于2个框架开发 Map Kit 用于地图展示 Cor
分类:其他   时间:2016-03-08 13:20:55    收藏:0  评论:0  赞:0  阅读:177
select下拉的绑定及回显
下拉列表一般通过ajax请求数据绑定 // 绑定新闻类型下拉 function news_type() { var news_type=$("#news_type").val(); $(".remove").remove(); $.ajax({ url : path + "/base/newsTyp
分类:其他   时间:2016-03-08 13:20:43    收藏:0  评论:0  赞:0  阅读:196
Ecshop如何解决Deprecated: preg_replace()报错
今天安装Ecshop后,运行出现各种问题,其中 Deprecated: preg_replace() 之类的报错最多,下面贴出解决方案: 错误原因: preg_replace() 函数中用到的修饰符 /e 在 PHP5.5.x 中已经被弃用了。 如果你的PHP版本恰好是PHP5.5.X,那你的ECS
分类:其他   时间:2016-03-08 13:20:23    收藏:0  评论:0  赞:0  阅读:242
沙漏图形打印
在Java中,一下代码输入结果如图所示,横线处的代码应该是() public class Test{ public static void main(string[]args){ for( ){ for (int k=0;k<=2-Math.abs(i);k++){ System.out.Print
分类:其他   时间:2016-03-08 13:20:14    收藏:0  评论:0  赞:0  阅读:207
[转]norflash芯片内执行(XIP)
为什么程序不能直接在nandflash上执行?出于这个疑惑带来了这篇博文,是我在网上找了很多资料后总结的,假如有误,希望马上指出来,免得我误人子弟。 首先认识下nandflash和norflash: NOR Flash 和 NAND Flash 是现在市场上两种主要的非易失闪存技术。Intel于19...
分类:其他   时间:2016-03-08 13:20:04    收藏:0  评论:0  赞:0  阅读:140
软件测试(二)
第二次作业 对于以下两个程序 1、找出fault 2、如果可能的话,找出一个测试用例不执行fault 3、如果可能的话,找出一个测试用例执行fault,但是不产生error 4、如果可能的话,找出一个测试用例产生error,但是不会导致failure public intfindLast(int[]
分类:其他   时间:2016-03-08 13:19:53    收藏:0  评论:0  赞:0  阅读:189
渲染机制
1、十六进制的颜色值对位数与大小写 编写十六进制颜色值时你可能会用小写字母或省略成3位数,关于这写法没找到确实的数据证明对浏览器的渲染效率是否有影响,但十六进制的颜色值默认标准是大写及6位数标注。在未知情况下不希望冒险而降低了渲染的效率。 * 不赞成 - color:#f3a; * 建议用 - co
分类:其他   时间:2016-03-08 13:19:35    收藏:0  评论:0  赞:0  阅读:111
防止xss攻击
<?php function _removeXSS($val) { $search = 'abcdefghijklmnopqrstuvwxyz'; $search .= 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; $search .= '1234567890!@#$%^&*()';
分类:其他   时间:2016-03-08 13:18:53    收藏:0  评论:0  赞:0  阅读:147
第三方库KGFloatingDrawer实现抽屉
Xcode中使用第三方函数库一般使用的是cocoapods,所以最好先安装一个cocoapods,这样方便使用第三方函数库。 cocoapods的安装方式在下面的链接中http://blog.csdn.net/iunion/article/details/17010267 首先在在AppDelega
分类:其他   时间:2016-03-08 13:18:34    收藏:0  评论:0  赞:0  阅读:121
一些简单的查询语法
计算列:取出表中某些记录的指定字段进行运算。 select * from emp; --*表示所有的 --from emp 表示从emp表查询 select empno,ename from emp; select ename,sal from emp; select ename,sal*12 as
分类:其他   时间:2016-03-08 13:18:23    收藏:0  评论:0  赞:0  阅读:141
跳到下个View
nextWebView = [[ WEBViewController alloc ] initWithNibName : @"WEBViewController" bundle : nil ]; [ self presentModalViewController : nextWebView anim
分类:其他   时间:2016-03-08 13:17:33    收藏:0  评论:0  赞:0  阅读:175
一些Demo链接
youtube下载神器:https://github.com/rg3/youtube-dl我擦咧vim插件:https://github.com/Valloric/YouCompleteMevim插件配置:https://github.com/spf13/spf13-vim ------------
分类:其他   时间:2016-03-08 13:17:23    收藏:0  评论:0  赞:0  阅读:175
判断邮箱格式是否正确的代码
// 利用正则表达式验证 -( BOOL )isValidateEmail:( NSString *)email { NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}" ; NSPredicate *e
分类:其他   时间:2016-03-08 13:16:53    收藏:0  评论:0  赞:0  阅读:235
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!