一,Tomcat配置数据源:方式一:在WebRoot下面建文件夹META-INF,里面建一个文件context.xml,内容如下: 方式二:在tomcat6.0的目录conf下面的context.xml中,修改原来的context标签,改成内容如下: WEB-INF/web.xml 方式三:在配置....
分类:
其他好文 时间:
2014-07-16 20:41:26
阅读次数:
191
Quartz 2D绘图只能在UIView中重写drawRect:方法中进行绘制,其他地方都无效,会报错。绘制过程:1. 获取上下文 CGContextRef context = UIGraphicsGetCurrentContext();2. 添加图形 CGContextAddRect(contex...
分类:
其他好文 时间:
2014-07-16 20:24:07
阅读次数:
110
最近的工作需使用OpenGL的MultiSample功能,在不使用glut,glfw等库的情况下,要创建支持Multisampling的OpenGL Render Context对于初学者来讲还是要花一番功夫的。昨天晚上又把Nehe’s OpenGL tutorial里的Lesson 46拿出来.....
分类:
移动开发 时间:
2014-07-16 20:07:06
阅读次数:
210
//IOS7.0中利用- (CGRect)boundingRectWithSize:(CGSize)size options:(NSStringDrawingOptions)options attributes:(NSDictionary *)attributes context:(NSString...
分类:
移动开发 时间:
2014-07-13 11:31:16
阅读次数:
209
在一般事务处理页面,可以轻松的得到 Request,Response对象,从而进行相应的操作,如下:HttpRequest Request = context.Request;HttpResponse Response = context.Response;但是要得到 Session的值就没有那么简...
分类:
其他好文 时间:
2014-07-13 08:56:16
阅读次数:
226
In the context of iOS mobile app development, a clone is simply an app that is based off another mobile app. A clone usually has more or less the same...
分类:
移动开发 时间:
2014-07-12 13:23:03
阅读次数:
1667
一直对于 tools:context=".MainActivity"这句不懂,今天查了下,发现是这样的:tools:context="activity name"这一句不会被打包进APK。只是ADT的Layout Editor在你当前的Layout文件里面设置对应的渲染上下文,说明你当前的Layo....
分类:
其他好文 时间:
2014-07-12 08:50:40
阅读次数:
134
package com.lengxiaocai.myutil.screentool;
import android.content.Context;
/**
*
* @ClassName: ScreenTool
*
* @Description: 屏幕像素检测
*
* @author yazhizhao
*
* @date 2014-5-6 上午11:47:07
*/...
分类:
移动开发 时间:
2014-07-10 23:40:58
阅读次数:
340
1 uiview动画
[UIView beginAnimations:@"Curl"context:nil];//动画开始
[UIView setAnimationDuration:0.75];
[UIView setAnimationDelegate:self];
[UIView setAnimationTransition:UIViewAnimationTran...
分类:
其他好文 时间:
2014-07-10 19:32:01
阅读次数:
218
获取widget可以AppWidgetManager来获取List<AppWidgetProviderInfo>widget=AppWidgetManager.getInstance(Context(上下文)).getInstalledProviders();得到所有AppWidgetProviderInfofor(inti=0;i<widget.size();i++){AppWidgetProviderInfoinfo=widget.get(i);Stringp..
分类:
移动开发 时间:
2014-07-10 18:43:36
阅读次数:
215