现在位置: 首页 > otzfgfmg发表的所有文章
  • 05月
  • 09日
综合 ⁄ 共 14字 评论关闭
spring 配置数据库连接池
阅读全文
维护一个程序,当手机升级到ios8之后就不能接收到远程推送,显示注册失败,查了下资料,原来是没有获取用户许可,加了个方法试了下,ok if ([[[UIDevice currentDevice]systemVersion ]integerValue] >= 8) { UIUserNotificationSettings*setting = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert|UIUserNotificationTypeBadge|UIUserNotificationTypeSound categories:nil]; [application registerUserNotificationSettings:setting]; [application registerFo......
阅读全文
  • 12月
  • 11日
综合 ⁄ 共 2409字 评论关闭
http://www.cnblogs.com/EE-NovRain/p/3268476.html 我这段时间在用redis,感觉挺方便的,但比较疑惑在选择内存数据库的时候到底什么时候选择redis,什么时候选择memcache,然后就查到下面对应的资料,是来自redis作者的说法(stackoverflow上面)。     You should not care too much about performances. Redis is faster per core with small values, but memcached is able to use multiple cores with a single executable and TCP port without help from the client. Also memcached is faster with big values in the ......
阅读全文
  • 05月
  • 12日
综合 ⁄ 共 3437字 评论关闭
Waiting for Upload (Yellow)  Appears when you’ve completed entering your metadata, however, you have not finished uploading your binary or have chosen to upload your binary at a later time. Your app must be in the Waiting For Upload state before you can deliver your binary through Application Loader. Prepare for Upload (Yellow)  Appears when you have created a new version, but you have not yet clicked the Ready to Submit Binary button. This state also indicates that you can now deliver ......
阅读全文
  • 03月
  • 29日
综合 ⁄ 共 914字 评论关闭
导读:   http://www.javaalmanac.com - Java开发者年鉴一书的在线版本. 要想快速查到某种Java技巧的用法及示例代码, 这是一个不错的去处.   http://www.onjava.com - O‘Reilly的Java网站. 每周都有新文章.   http://java.sun.com - 官方的Java开发者网站 - 每周都有新文章发表.   http://www.developer.com/java - 由Gamelan.com 维护的Java技术文章网站.   http://www.java.net - Sun公司维护的一个Java社区网站.   http://www.builder.com - Cnet的Builder.com网站 - 所有的技术文章, 以Java为主.   http://www.......
阅读全文
  • 02月
  • 08日
综合 ⁄ 共 2561字 评论关闭
1.怎样定义网页语言(字符集)??   在制作网页过程中,你首先要定义网页语言,以便访问者浏览器自动设置语言,而我们用所见即所得的HTML工具时,都没有注意到这个问题,因为它是默认设置。要设置的语言可以在HTML代码状态下找到: <meta?http-equiv="Content?Type"?content="text/html;?charset=gb2312"> ? 把charset=gb2312改换成其它语言代码即可,比如英文harset=en.    2.怎样防止别人把你的网页放到框架里? ??因为框架(frame)的缘故,有许多人把别人的网页放置到自己的框架里,使之成为自己的一页。如果你要防止别人这样做,......
阅读全文
  • 02月
  • 06日
综合 ⁄ 共 579字 评论关闭
jdk环境变量配置 进行java开发,首先要安装jdk,安装了jdk后还要进行环境变量配置: 1、下载jdk(http://java.sun.com/javase/downloads/index.jsp),我下载的版本是:jdk-6u14-windows-i586.exe 2、安装jdk-6u14-windows-i586.exe 3、配置环境变量:右击“我的电脑”-->"高级"-->"环境变量" 1)在系统变量里新建JAVA_HOME变量,变量值为:C:\Program Files\Java\jdk1.6.0_14(根据自己的安装路径填写) 2)新建classpath变量,变量值为:.;%JAVA_HOME%\lib;%JAVA_HOME%\lib\tools.jar 3)在path变量(已存在不用新建)添加......
阅读全文
  • 01月
  • 29日
综合 ⁄ 共 5254字 评论关闭
 要养成记笔记的好习惯。。。 效果图,  随便做了两个图片,样子有点。。。 Xml  就是拖了个RadioGroup 方向水平,子控件平分宽度。 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > <RadioGroup android:id="@+id/radioGroup1" android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientati......
阅读全文
  • 01月
  • 10日
综合 ⁄ 共 499字 评论关闭
Something I keep forgetting about, is how Rails 3 treats gems. Any gem you want to use (in this case it was devise) needs to be setup in the Gemfile. If you try to run Devise’s installation: rails generate devise:install you’ll get Could not find generator devise:install. What happens is rails doesn’t detect that the devise gem is needed, and therefore doesn’t load it. All you’ve got to do is open the Gemfile for your project and add the following line, where the gem version matches what ......
阅读全文
  • 12月
  • 21日
综合 ⁄ 共 170字 评论关闭
在Form中添加Chart 1、新建Form窗体 2、从Toolbox上拖拽Chart到Form上(Chart位于Data分类中),效果如下图 在Chart中添加数据 1、Chart控件属性里找到Series,点击编辑,如下图 2、在右部找到Points,编辑,显示下面对话框,在其中添加数据点(分别指定X和Y) 3、点击OK关闭各对话框,运行程序如下
阅读全文
  • 12月
  • 20日
综合 ⁄ 共 274字 评论关闭
fbdev Driver for Linux framebuffer device based video chips fbdev is a video driver based on fb   source fbdev.c 1. init  card : open dev/fb0  and set attr; 2. init screen :  set screen attr 3. init randr   fbinit.c 1. initcard 2. initinput 3. initoutput   kdrive.c 关键函数:KdInitOutput   kaa.c 关键函数:kaadrawinit, copy, solid, fill    
阅读全文