自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 资源 (14)
  • 收藏
  • 关注

原创 在application中 context的 在全局中使用是否会存在内存泄漏

public static Context mContext=null; public static final String allChar="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"; @Override public void onCreate() { // TODO Auto-generated

2012-08-30 10:39:48 1514

原创 android 断点续传下载简介

1、断点下载的原理在此处,我们用 tomcat做为服务器,tomcat支持断点续传功能。我们知道  Range : 用于客户端到服务器端的请求,可通过该字段指定下载文件的某一段大小,及其单位。典型的格式如:Range: bytes=0-499 下载第0-499字节范围的内容Range: bytes=500-999  下载第500-999字节范围的内容Range: bytes

2012-08-24 18:53:25 1064

转载 如何编写高效的Android代码

简介 对于占用资源的系统,有两条基本原则: 1. 不要做不必要的事 2. 不要分配不必要的内存 所有下面的内容都遵照这两个原则。 有些人可能马上会跳出来,把本节的大部分内容归于“草率的优化”(xing:参见[The Root of All Evil]),不可否认微优化(micro-optimization。xing:代码优化,相对于结构优化)的确会带

2012-08-10 10:29:26 649

原创 Multiple APK Support(多种apk的支持)

本文是http://wiki.eoeandroid.com/EoeAndroid%E7%A4%BE%E5%8C%BAAndroid_API_Guides%E4%BB%BB%E5%8A%A1的56号任务!原文链接http://developer.android.com/intl/zh-CN/guide/google/play/publishing/multiple-apks.htmlMu

2012-08-01 17:35:47 6036 2

core_java_career_essentials.pdf

"Core Java Essentials" are something you must know, and know it well to succeed as a Java professional. Even 40% to 60% of the so called experienced professionals fail to make an impression due to their lack of understanding in one or more of the areas covered in this book. Lack of good understanding in the core essentials can be a speed breaker to your career advancement. If you have a java interview coming up in a few days or you want to impress your peers and superiors with your technical strengths during code review sessions, team meetings, and stand-ups, and concerned about how to make a good impression? You don't need to worry if you are familiar with the fundamentals. This is a Questions & Answers book with 250+ questions and answers relating to core Java with lots of code snippets (100+), examples, and diagrams. Most Java interviews and technical challenges you face at work are structured around the fundamentals and how well you communicate those fundamentals. So regularly brushing up on these fundamentals really pays off. Your analytical, problem solving, and coding skills will also be under scrutiny along with your ability to get the job done with the right tools. If your fundamentals are clear and know what tools to use, you can tackle any questions, and find solutions to any problems and challenges you face. Even if you don't have the exact answer for a problem, you will know how to go about solving them with a little research if you have a solid grounding in the fundamentals covered in this book. A little preparation can make a huge difference to your career success. Preparation can help you communicate your thoughts more clearly with examples and illustrations. Preparation can make a good and lasting impression on those who talk with you during your interviews and team meetings. This impression will be partly influenced by how prepared you are and how knowledgeable you are about your industry and the challenges it faces. It will also be influenced by your appearance, attitude, enthusiasm, and confidence. Good preparation breeds confidence and it shows in the interviews and team meetings. So prepare well in advance if you just begun to see yourself in your dream company or would like to go places in your chosen field.

2017-12-06

OpenCV By Example

About This Book, Get to grips with the basics of Computer Vision and image processingThis is a step-by-step guide to developing several real-world Computer Vision projects using OpenCV 3This book takes a special focus on working with Tesseract OCR, a free, open-source library to recognize text in images, Who This Book Is For, If you are a software developer with a basic understanding of Computer Vision and image processing and want to develop interesting Computer Vision applications with Open CV, this is the book for you. Knowledge of C++ is required., What You Will Learn, Install OpenCV 3 on your operating systemCreate the required CMake scripts to compile the C++ application and manage its dependenciesGet to grips with the Computer Vision workflows and understand the basic image matrix format and filtersUnderstand the segmentation and feature extraction techniquesRemove backgrounds from a static scene to identify moving objects for video surveillanceTrack different objects in a live video using various techniquesUse the new OpenCV functions for text detection and recognition with Tesseract, In Detail, Open CV is a cross-platform, free-for-use library that is primarily used for real-time Computer Vision and image processing. It is considered to be one of the best open source libraries that helps developers focus on constructing complete projects on image processing, motion detection, and image segmentation., Whether you are completely new to the concept of Computer Vision or have a basic understanding of it, this book will be your guide to understanding the basic OpenCV concepts and algorithms through amazing real-world examples and projects., Starting from the installation of OpenCV on your system and understanding the basics of image processing, we swiftly move on to creating optical flow video analysis or text recognition in complex scenes, and will take you through the commonly used Computer Vision techniques to build your own Open CV projects from scratch., By the end of this book, you will be familiar with the basics of Open CV such as matrix operations, filters, and histograms, as well as more advanced concepts such as segmentation, machine learning, complex video analysis, and text recognition.

2017-11-23

例子代码 android http://blog.csdn.net/qq282133/article/details/7616809

http://blog.csdn.net/qq282133/article/details/7616809

2012-05-30

libgdx-0.9.2.zip

libgdx-0.9.2.zip libgdx-0.9.2.zip libgdx-0.9.2.zip

2011-11-15

java 串口通信 包 comm.jar

java 串口通信 包 comm.jar win32com.dll javax.comm.properties

2011-10-21

贪吃蛇.jar

贪吃蛇.jar import java.io.IOException; import java.util.Hashtable; import java.util.Vector; import javax.microedition.lcdui.Font; import javax.microedition.lcdui.Graphics; public class DCSnake extends i { private h jdField_a_of_type_H; private h jdField_b_of_type_H; private h jdField_c_of_type_H; private boolean jdField_c_of_type_Boolean; private boolean d; private int jdField_a_of_type_Int; private int jdField_b_of_type_Int; private int jdField_c_of_type_Int; private boolean e; private f jdField_a_of_type_F; private f jdField_b_of_type_F; private f jdField_c_of_type_F; public final void a(int paramInt) { if (!this.jdField_c_of_type_Boolean) { paramInt = this; if (!this.d) { paramInt.jdField_a_of_type_Int = 6; paramInt.jdField_b_of_type_Int = 0; paramInt.d = true; return; } if (paramInt.jdField_b_of_type_Int < paramInt.jdField_a_of_type_Int) { Object localObject1; switch (paramInt.jdField_b_of_type_Int) { case 0: a.a(); break; case 1: this = paramInt; try { localObject1 = null; localObject1 = Font.getFont(32, 0, 8); Font localFont1 = Font.getFont(32, 1, 8); Font localFont2 = Font.getFont(32, 1, 0); this.jdField_a_of_type_F = new f((Font)localObject1, 0, -1); this.jdField_b_of_type_F = new f(localFont1, 16777215, 0); this.jdField_c_of_type_F = new f(localFont2, 16776960, 32768); t.a(this.jdField_c_of_type_F, this.jdField_a_of_type_F, this.jdField_b_of_type_F); } catch (IOException localIOException) { } case 2: localObject1 = a.a(new int[] { 1245188, 1245190, 1245189 }); v[] arrayOfv = a.a(new int[] { 1245191, 1245193, 1245192 }); t.a(new c(localObject1, true), new c(arrayOfv, true)); break;

2011-09-12

仿 qq 相册

OCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>jQuery lightBox plugin</title> <link rel="stylesheet" type="text/css" href="../style-projects-jquery.css" /> <!-- Arquivos utilizados pelo jQuery lightBox plugin --> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/jquery.lightbox-0.5.js"></script> <link rel="stylesheet" type="text/css" href="css/jquery.lightbox-0.5.css" media="screen" /> <!-- / fim dos arquivos utilizados pelo jQuery lightBox plugin --> <!-- Ativando o jQuery lightBox plugin --> <script type="text/javascript"> $(function() { $('#gallery a').lightBox(); }); </script> <style type="text/css">

2011-08-31

jdbc 2008

jdbc2008 jdbc2008的驱动

2011-07-30

java 浏览器 源码

java 浏览器 源码 public class EditorPaneTest { public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { JFrame frame = new EditorPaneFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.setVisible(true); } }); } }-------《java核心技术》

2011-07-30

java 记事本

java记事本 点击就可运行! 需安java的 jvm!

2011-07-30

高校选课系统 源码 strcts2 spring

高校选课系统 strcts2 spring <%@ page language="java" pageEncoding="GBK"%> <%@ taglib uri="http://struts.apache.org/tags-html" prefix="html"%> <html> <head> <title>高校选课系统首页</title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; } .STYLE1 {color: #FF0000} .STYLE3 {color: #FF0000; font-size: 9pt; } .STYLE7 {font-size: 9pt} --> </style></head>

2011-07-18

java 坦克大战源码

package cn.hnist.Joshua; //download by http://www.codefans.net import java.awt.*; public class HitPoint { public static final int HITPOINTSIZE=50; //血条的长度 int topNumber; //总血量 int number; //当前血量 Tank tk; public HitPoint(int topNum,Tank tk) { if(topNum>50||topNum<=0) { this.topNumber=50; } topNumber=topNum; number=topNum; this.tk=tk; } public void draw(Graphics g) { Color c=g.getColor(); g.setColor(Color.white); g.drawRect(tk.x-25,tk.y-35,HITPOINTSIZE,5); g.setColor(Color.red); g.fillRect(tk.x-24,tk.y-34,number*HITPOINTSIZE/topNumber-1,4); g.setColor(c); } public void cutsHitPoint(int cuts) //发生碰撞时的减血 { number-=cuts; if(isEmpty()) { tk.dead(); } //若血空了,Tank死掉 } public void cutsHitPoint(int cuts,Shot s) //被子弹击中时的减血 { number-=cuts; if(tk.isLive&&tk instanceof RobotTank) { ((RobotTank) tk).avoidThrust(s); } if(isEmpty()) { tk.dead(); } //若血空了,Tank死掉 } public void raisesHitPoint(int raises) //血量增加 { number+=raises; if(number>topNumber) { number=topNumber; } } public boolean isEmpty() { if(number<=0) { return true; } else { return false; } } }

2011-04-30

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除