上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 51 下一页
摘要: 配置好 Tomcat 7.0 后,在 tomcat-users.xml 中配置用户角色来访问 localhost:8080 的这样三个按钮总出现问题:Server StatusManager AppHost Manager要么是三个都不能访问,要么是只能访问其中一个,或者两个。后来发现是角色没有添加全,特别是针对第三个按钮“Host Manager”其实解决点在这样两个症结上:前两个按钮和manager相关,具体角色名为manager-gui - allows access to the HTML GUI and the status pagesmanager-script - allows 阅读全文
posted @ 2013-07-24 17:32 GreyWolf 阅读(871) 评论(0) 推荐(0) 编辑
摘要: 本文Apache+Tomcat集群配置 基于最新的Apache和Tomcat,具体是2011年4月20日最新的Tomcat和Apache集群和负载均衡配置。准备环境ApacheApache是http服务器,我们利用其对Tomcat进行负载均衡。目前最新版本为2.2.17,下载地址为http://httpd.apache.org/download.cgi#apache22。如下图:目前已经出现Apache2.3.11,但是为beta版本,所以没有使用。下载后直接安装msi即可,如果没有其他的http服务器(如iis)则应该可以成功安装,端口即为80,能够访问http://localhost/说明 阅读全文
posted @ 2013-07-24 13:58 GreyWolf 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 方法1:列出所有文件逐个筛选:File selectedFolder = new File(path); // path to folder to listfinal IOFileFilter dirs = new IOFileFilter() { @Override public boolean accept(File file, String s) { return file.isDirectory(); } @Override public boolean accept(File file) { return (!file.get... 阅读全文
posted @ 2013-07-24 02:15 GreyWolf 阅读(1305) 评论(0) 推荐(0) 编辑
摘要: Creating an animated GIF picture from photos or video with Adobe Photoshop is easy, but not everyone owns a copy of Photoshop, in fact, using a free utility tomake a GIFis more easy and efficient.To convert a video to GIF format with an online service, at first you’ll need to cut the video down to m 阅读全文
posted @ 2013-07-22 11:37 GreyWolf 阅读(1326) 评论(0) 推荐(0) 编辑
摘要: Java used to be deeply embedded in OS X, but in recent versions of the OS it's an optional install. Here is how to check to see if it is installed, and how to disable or remove it.There's some concern over the use of Java in OS X following a recent finding thatFlashback malware variantsare n 阅读全文
posted @ 2013-07-22 01:46 GreyWolf 阅读(369) 评论(0) 推荐(0) 编辑
摘要: You can run Java apps in two ways. The first is to run Java applets inside your Web browser with a plug-in. The second is to run native Java apps on your Mac. With the grave security concerns about Java these days, you may be thinking about how to remove or disable both of those Java systems complet 阅读全文
posted @ 2013-07-22 01:46 GreyWolf 阅读(633) 评论(0) 推荐(0) 编辑
摘要: Open terminal (Applications -> Utilities -> Terminal)To remove JVM enter folowing:sudo rm -rf /System/Library/Java/JavaVirtualMachines/Then, clean up the installer records by removing them from/private/var/db/receipts/:com.apple.pkg.JavaForMacOSX107.bomcom.apple.pkg.JavaForMacOSX107.plistNow c 阅读全文
posted @ 2013-07-22 01:42 GreyWolf 阅读(458) 评论(0) 推荐(0) 编辑
摘要: 一、兼容类库ActionBarSherlock: Action Bar是Android 3.0后才开始支持的,ActionBarSherlock是让Action Bar功能支持2.X后的所有平台,而且他会自动的判断是调用原生Action Bar还是使用扩展ActionBar。在我的小熊词典里有用到这个库,而且很多非常知名的App也在使用这个库。GitHubOfficialActionBar科普Android-ViewPagerIndicator: 这是与ViewPager兼容的一个分页指示器库。分页指示器(Friends 和 Suggested就是分页,而下面蓝色的小条就是指示器,ViewPa 阅读全文
posted @ 2013-07-10 18:00 GreyWolf 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 本文由社区会员taonavy分享截取本区域(self.view):UIGraphicsBeginImageContext(CGSizeMake(self.view.frame.size.width, self.view.frame.size.height));[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext();UIGraphicsEndImageContext();UIImageWriteT 阅读全文
posted @ 2013-06-28 10:31 GreyWolf 阅读(1356) 评论(0) 推荐(0) 编辑
摘要: Mac截屏快捷键总结1)Command-Shift-3: 将整个屏幕拍下并保存到桌面。2)Command-Shift-Control-3: 将整个屏幕拍下并保存到剪贴板(Clipboard,内存中的一块区域),你可以Command+V直接粘贴到如Photoshop等软件中编辑。3)Command-Shift-4: 将屏幕的一部分拍下并保存到桌面。按下这个组合键后,光标会变为一个十字,你可以拖拉来选取拍摄区域。4)Command-Shift-Control-4: 将屏幕的一部分拍下并保存到剪贴板。5)Command-Shift-4再按空格键: 光标变为一个照相机图标,点击可拍下当前窗口或菜单或D 阅读全文
posted @ 2013-06-28 10:28 GreyWolf 阅读(389) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 51 下一页