韩超

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2013年4月26日

摘要: Homebrew是对OS X的补充. 使用gem来安装您的gems, 而它的依赖可以使用brew来安装.http://brew.sh/index_zh-cn.html 阅读全文
posted @ 2013-04-26 17:00 韩超2012 阅读(177) 评论(0) 推荐(0)

2013年4月9日

摘要: 多年前写的一个小工具,利用python批量获取apk软件详细信息。并且在多年前的项目中应用了好一段时间,也算是经过了一些考验。。。说起来惭愧,python没有认真的学过,只是在写这个小工具的时候,用到哪看到哪,也算是把这个小工具写完了。感兴趣的同学可以到我的github去checkout。废话少说,上地址:https://github.com/poorevil/GetAPKDetails一下是工具的readme,懒得去看的同学可以在这里先了解下~ :P【项目介绍】: 在以前的某个安卓市场的项目中的一部分功能。主要服务于服务器端批量自动获取apk软件信息功能模块。【主要功能】: 获取apk软件详 阅读全文
posted @ 2013-04-09 22:35 韩超2012 阅读(2822) 评论(0) 推荐(1)

摘要: 简单的让一张普通图片变形,如图:实现方式1: ...UIImage *image = [UIImage imageNamed:@"dogs.png"];UIImage *mask = [UIImage imageNamed:@"mask.png"];// result of the masking methodUIImage *maskedImage = [self maskImage:image withMask:mask];...- (UIImage*) maskImage:(UIImage *)image withMask:(UIImage *)m 阅读全文
posted @ 2013-04-09 16:51 韩超2012 阅读(1255) 评论(0) 推荐(0)

2013年4月8日

摘要: 自定义UIBarButtonItem,可以做成工具类,方便重用!+ (UIBarButtonItem *)createSquareBarButtonItemWithTitle:(NSString *)t target:(id)tgt action:(SEL)a{ UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; // Since the buttons can be any width we use a thin image with a stretchable center point UIIm... 阅读全文
posted @ 2013-04-08 14:39 韩超2012 阅读(228) 评论(0) 推荐(0)

摘要: 批量设置文件访问控制权限./gsutil -m setacl act.txt gs://bucket/**多线程批量设置文件访问控制权限If you have a large number of ACLs to update you might want to use the gsutil -m option, to perform a parallel (multi-threaded/multi-processing) update:gsutil -m setacl acl.txt gs://<bucket>/*.jpg设置某个文件为public-read(所有人可读)./gsu 阅读全文
posted @ 2013-04-08 10:24 韩超2012 阅读(1545) 评论(0) 推荐(0)

摘要: 由于众所周知的原因,我们在上传GAE应用的时候出现了问题Connection reset by peer,解决办法:appcfg.py --insecure update yourapp 阅读全文
posted @ 2013-04-08 10:14 韩超2012 阅读(194) 评论(1) 推荐(0)