自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 自定义LinearLayout

<cn.edu.widget.WidgetQuestion android:id="@id/widgetQuestion" android:layout_width="fill_parent" android:layout_height="fill_parent" />

2012-06-27 16:42:04 1314

原创 Wifi获取ip地址 (详解)

WifiManager wifiManager = (WifiManager) this .getSystemService(Context.WIFI_SERVICE); if (wifiManager.getWifiState() == WifiManager.WIFI_STATE_ENABLED) { int ip = wifiManager.getConnectionInf

2012-06-25 19:08:20 3325

转载 intent.setFlags方法中的参数值含义

一. intent.setFlags()方法中的参数值含义:1.FLAG_ACTIVITY_CLEAR_TOP:例如现在的栈情况为:A B C D 。D此时通过intent跳转到B,如果这个intent添加FLAG_ACTIVITY_CLEAR_TOP标记,则栈情况变为:A B。如果没有添加这个标记,则栈情况将会变成:A B C D B。也就是说,如果添加了FLAG_ACTIVITY_CL

2012-06-22 09:26:22 1090

转载 Activity的LaunchMode和taskAffinity(经典)

打开多个Activity,返回到第一个Activity的问题前言   Android项目中一旦涉及到登录就基本会遇到这个问题:打开多个Activity之后再登录超时的情况下如何才能跳转到登录界面,参见帖子这里。暂时没有完美解决方案,本文是对该帖子的补充说明: 声明  欢迎转载,但请保留文章原始出处:)     博客园:http://www

2012-06-21 20:07:15 1693

转载 Activity栈(收藏)

主要的行为标志为是:FLAG_ACTIVITY_NEW_TASK FLAG_ACTIVITY_CLEAR_TOP FLAG_ACTIVITY_RESET_TASK_IF_NEEDED FLAG_ACTIVITY_SINGLE_TOP主要的 属性是:taskAffinity launchMode allowTaskReparenting clearTaskOn

2012-06-21 16:17:45 915

原创 一些ubuntu 出现错误后的解决方案

1、E: 无法识别在安装源列表 /etc/apt/sources.list 里,第 64 行中的软件包  最开始的时候我也不知道就出现了这种情况,“检查已安装的和可用的应用程序失败这是你软件管理系统的重大错误. 请用新利得检查破损的软件包, 检查文件 '/etc/apt/sources.list'的权限和正确性,并用命令: 'sudo apt-getupdate' 和 's

2012-06-21 11:32:13 2436

转载 55套精美的 PSD 用户界面素材和设计模板资源

对于网页设计师来说,有预先设计好的和可编辑的UI元素是组织和优化设计流程的关键。这些设计好的界面元素可以让你快速制作出风格统一的界面原型。今天,本文与大家分享55套精美的 PSD 资源,这些高质量的网站 PSD 素材可以让您的工作得心应手,帮助您节省大量的时间和精力。记得分享和推荐一下哦 :).............................http://www.cnb

2012-06-18 19:43:40 1456 1

转载 网络字节序

不同的CPU有不同的字节序类型 这些字节序是指整数在内存中保存的顺序 这个叫做主机序 最常见的有两种1. Little endian:将低序字节存储在起始地址2. Big endian:将高序字节存储在起始地址LE little-endian 最符合人的思维的字节序 地址低位存储值的低位 地址高位存储值的高位 怎么讲是最符合人的思维的字节序,是因为从人的第一观感

2012-06-16 21:58:46 514

转载 71道经典Android面试题和答案--重要知识点都涉及到了

面试题1.        下列哪些语句关于内存回收的说明是正确的? (b ) A、 程序员必须创建一个线程来释放内存  B、内存回收程序负责释放无用内存   C、内存回收程序允许程序员直接释放内存   D、内存回收程序可以在指定的时间释放内存对象 2.        下面异常是属于Runtime Exception 的是(abcd)(多选)      A、ArithmeticE

2012-06-16 21:30:09 1506

转载 可以移动的悬浮框

工作中遇到一些项目需要把窗体显示在最上层,像来电弹窗显示电话号码等信息或拦截短信信息显示给用户,我们想这些数据放在最上层,activity就满足不了我们的需求了,有些开发者使用了循环显示Toast的方式,toast是不能获得焦点的,这种方法是不可取的。这个时候,我们如何处理呢?原来,整个Android的窗口机制是基于一个叫做 WindowManager,这个接口可以添加view到屏幕,也可以从

2012-06-12 17:56:03 944

转载 Android版块开发资源大汇总

✿应用开发资料、源码实例分享史上最全!最经典!最无私的Android资料(书籍+代码)分享-不要积分Android 贪吃蛇、俄罗斯方块、中国象棋等100多个应用功能实例源码android开发资料大集合Android开发资料分享- 免积分(升级版)Android 近百个项目的源代码,覆盖Android开发的每个领域android新手入门资料无私奉献(无需积分下载)

2012-06-11 16:45:44 857

原创 一个困惑 关于调用的问题

case 1: Intent intent1=new Intent(MainActiviy.this, ChapterPracticeActivity.class); startActivityForResult(intent1, 1); case 10: Intent intent10=new Intent(MainActiviy.this, WebDoc

2012-06-08 17:40:45 191

转载 【Android基础】Activity的启动模式(android:launchMode)

在android里,有4种activity的启动模式,分别为:“standard” (默认)“singleTop”“singleTask”“singleInstance” 它们主要有如下不同: 1. 如何决定所属task“standard”和”singleTop”的activity的目标task,和收到的Intent的发送者在

2012-06-08 17:29:50 749

原创 startActivityForResult 使用详解

Starting Activities and Getting Results如果,要想达到这个效果,你需要调用startActivityForResult(Intent, int) (这个method的第二个参数描定义了这个回调)。当返回的时候,这个activity将要调用onActivityResult(int, int, Intent) 。如果这个activity存在,它能够

2012-06-08 10:30:34 9965

转载 每天工作4小时的程序员

每个人都熟悉这种作息规律:早上9点去上班,坐在电脑前面,编一天的程序,下午5点下班回家。如今,非常感谢蒂莫西·费里斯 (Timothy Ferriss)的《每周工作4小时》,我开始重新思考应该如何工作,如何让自己变成更有效率的程序员。最近,我把我的从周一到周五的作息规律做了一次较大的调整。很长时间以来,我一直像所有其他程序员那样工作、休息。但就在2011年的下半年,我开 始了一项试验,想看

2012-06-06 19:07:46 935

原创 setTheme问题2

在xml  设置的效果和setTheme的效果不一样android:windowBackground没有效果????????代码如下: super.onCreate(savedInstanceState); setTheme(R.style.blueSummerTheme); setContentView(R.layout.main);

2012-06-03 20:33:34 1264

翻译 使用android的主题在应用中

感谢:http://www.androidengineer.com/2010/06/using-themes-in-android-applications.htmlUsing Themes in Android ApplicationsAs a developer, I understand how developers think when going about creating a

2012-06-03 16:35:01 760

翻译 Access resource defined in theme and attrs.xml android

转载于:http://stackoverflow.com/questions/8793183/access-resource-defined-in-theme-and-attrs-xml-androidI have a scenario in which I want to set a Drawable depending upon the theme defined.To e

2012-06-02 20:42:09 695

转载 自定义Activity标题栏(Title bar)和窗体显示状态操作(requestWindowFeature()的应用)

1. 标题栏显示图标public void onCreate(Bundle savedInstanceState) {        super.onCreate(savedInstanceState);        requestWindowFeature(Window.FEATURE_LEFT_ICON);        setContentView(R.

2012-06-01 20:14:49 704

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 &lt; 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关注的人

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