其他技术
文章平均质量分 58
ccjsmile
这个作者很懒,什么都没留下…
展开
-
how to rebuild hibernate sessionFactory?
http://forum.springframework.org/showthread.php?t=48214&highlight=LocalSessionFactoryBeanI modify hibernate mapping file to add some columns for dynamic-component at runtime,I need it take effect at...原创 2008-02-24 16:50:50 · 138 阅读 · 0 评论 -
google dict api
http://www.google.com/dictionary/json?callback=dict_api.callbacks.id100&q=Athenian&sl=en&tl=zh-cn&restrict=pr,de&c%20lient=te将 Athenian 替换为您需要查询的单词。未公开的api,网上转载。...原创 2010-05-19 10:24:54 · 103 阅读 · 0 评论 -
在iPhone游戏里阻止程序进入休眠状态
[UIApplication sharedApplication].idleTimerDisabled = YES;原创 2009-08-16 08:37:53 · 166 阅读 · 0 评论 -
iphone开发 两种方式 UIWebView 显示 html
摘自:[url=http://beike.iteye.com/blog/402449]http://beike.iteye.com/blog/402449[/url][code="java"]NSBundle* bundle = [NSBundle mainBundle]; NSString* resPath = [bunder resourcePath]; NSSt...原创 2009-08-16 08:11:23 · 84 阅读 · 0 评论 -
sqlite3
NSData *dataForCachedImage = [[NSData alloc] initWithBytes:sqlite3_column_blob(yourLoadingSQLStatement, 2) length: sqlite3_column_bytes(yourLoadingSQLStatement, 2)]; self.cachedImage = [UIIm...2009-08-10 20:50:05 · 69 阅读 · 0 评论 -
给sqlite数据库加密的两种方法
一个是采用SQLCipherNeed to store sensitive information in your app? SQLCipher extends SQLite enabling transparent encryption and decryption of data using AES. Its source is available on Github.SQLite...原创 2009-08-09 09:37:50 · 238 阅读 · 0 评论 -
MD5
[code="java"]// MD5加密函数- (NSString *)md5Digest:(NSString *)str{ const char *cStr = [str UTF8String]; unsigned char result[CC_MD5_DIGEST_LENGTH]; CC_MD5( cStr, strlen(cStr), result ); ret...原创 2009-08-07 14:44:05 · 103 阅读 · 0 评论 -
Oracle使用触发器实现自增ID备忘录
userinfo表id需要实现自增效果1.创建序列 [code="java"]-- Create sequence create sequence seq_userinfominvalue 1start with 1increment by 1;[/code]2.创建触发器[code="java"]create or replace tri...2010-04-08 09:40:03 · 68 阅读 · 0 评论 -
利用google地图获取位置经纬度坐标的方法
[code="java"] public static void main(String[] args) throws UnsupportedEncodingException { String address = URLEncoder.encode("北京 香山公园","UTF-8"); String url = "http://maps.google.cn/maps/geo?q...2010-03-24 10:19:23 · 490 阅读 · 0 评论 -
google Map经纬度坐标取得方法
来自: http://blackpearl.iteye.com/blog/364246谷歌地图(交通地图)上并没有显示某个地址的经纬度,实际上,我们已经想到了一个办法,可以找到在谷歌地图上任意地点的经度和纬度。 首先打开Google地图,在上面寻找一个地址,然后上下左右移动地图,让这个地址正好处于地图的正中心位置,当您想寻找坐标位置已经处于地图的中心位置的时候,拷贝并粘贴以下代码...2010-03-19 10:59:42 · 111 阅读 · 0 评论