很经常Broadcast都会写成一个Activity或者Service的内部类。这时候的注册和普通有点小区别。有两种情况1、假如是再Manifest文件里面静态注册的话,需要注意。ex: 其中关键点是一、 .MyActivity$MyRe...
分类:
移动平台 时间:
2014-07-29 11:46:26
收藏:
0 评论:
0 赞:
0 阅读:
357
aria2是一个Linux下的多线程下载工具,支持HTTP/HTTPS、FTP、BitTorrent、Metalink协议。平时在linux上下载http上的东西常用如wget、curl命令,但是他们都是单线程下载的。这里系统是CentOS6.3 64bit。aria2官方项目页面:http://a...
分类:
编程语言 时间:
2014-07-29 11:46:06
收藏:
0 评论:
0 赞:
0 阅读:
2230
真的是很简单,执行结果:Computer:不平凡总在于坚持 User:Administrator IP:192.168.0.111 '获取计算机名、用户名、本机ip Dim LocalInfo As String Dim strLocalIP As String Dim winIP As O...
分类:
其他 时间:
2014-07-29 11:45:56
收藏:
0 评论:
0 赞:
0 阅读:
359
一道扩展欧几里德的变形题目题中给出 n = A%9973 → n = A - A/9973*9973(若x = A%B 则 x = A - A/B*B)因为A能整除B 所以设x = A/B → A = B*x所以原式 = B*x - A/9973*9973 = n 设y = A/9973B*x - ...
分类:
其他 时间:
2014-07-29 11:45:46
收藏:
0 评论:
0 赞:
0 阅读:
390
在一次做图片打印的时候,对位置的调整老是不得法,后来通过CBM666老师的帮助才解决问题,分享以下他给的帮助。'PaintPicture pic, destX, destY, destWidth, destHeight, scrX, scrY, scrWidth, scrHeight'其中Pic:为...
分类:
其他 时间:
2014-07-29 11:45:16
收藏:
0 评论:
0 赞:
0 阅读:
311
ubuntu 下, ls 显示的目录的颜色,怎么说呢,看起来太费劲了。
于是想着修改成容易识别的颜色。
于是搜索了一下, 没有很好的解决问题,于是自己探索了一番,解决了。
分类:
其他 时间:
2014-07-29 11:45:07
收藏:
0 评论:
0 赞:
0 阅读:
471
比如一个div 需设置height的高度和line-height一样。 OK. 设置圆角矩形:
分类:
Web开发 时间:
2014-07-29 11:44:46
收藏:
0 评论:
0 赞:
0 阅读:
294
radio和checkBox的用法:配置内容:(function(){ Ext.onReady(function(){ new Ext.form.Panel({ title:'Ext.form.field.checkBox和Ext.form.field.Radio示例', bodyStyle:'pa...
分类:
其他 时间:
2014-07-29 11:44:36
收藏:
0 评论:
0 赞:
0 阅读:
450
可以通过顶角角度来计算切线与坐标轴的坐标开始还以为有公式可以算,谁知道原来是解二元一次方程,靠。。#include #include #include #include using namespace std;const int MAX=1050;struct point{ double x; in...
分类:
其他 时间:
2014-07-29 11:44:26
收藏:
0 评论:
0 赞:
0 阅读:
417
LeetCode: LRU CacheDesign and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get and set....
分类:
其他 时间:
2014-07-29 11:43:36
收藏:
0 评论:
0 赞:
0 阅读:
352
php+apache 解决上传文件过大问题博客分类:phpPHPApache用php+apache上传文件的时候,由于文件过大,容易导致上传失败,解决办法:修改php.ini中:upload_max_filesize 2m 即允许上传文件大小的最大值。默认为2M ,大小可以根据你 的需要进行修改po...
分类:
Web开发 时间:
2014-07-29 11:43:26
收藏:
0 评论:
0 赞:
0 阅读:
364
myeclipse中UTF-8设置 如果要使插件开发应用能有更好的国际化支持,能够最大程度的支持中文输出,则最好使 Java文件使用UTF-8编码。然而,Eclipse工作空间(workspace)的缺省字符编码是操作系统缺省的编码,简体中文操作系统 (Windows XP、Windows 2000...
分类:
系统服务 时间:
2014-07-29 11:43:06
收藏:
0 评论:
0 赞:
0 阅读:
619
----------------Your project contains error(s),please fix them before running your application解决Yourprojectcontainserror(s),please fix them before run...
分类:
移动平台 时间:
2014-07-29 11:42:46
收藏:
0 评论:
0 赞:
0 阅读:
302
处理XML的方式: SAX dom4j Xstream-->stax XStream,Jackson JAXB:JAXB实例:package com.bling.xml;import java.io.StringReader;import javax.xml.bind.JAXBContex...
分类:
其他 时间:
2014-07-29 11:42:36
收藏:
0 评论:
0 赞:
0 阅读:
299
因为工作原因,自学会了vb后陆续接触了其它语言,在工作中经常需要与各家使用不同语言公司的开发人员做程序对接,初期特别需要一个各种语法的对照比,翻看了网络上已有高人做了整理,自己在他基础上也整理了一下,摘抄如下(最后附上原作,网上也可以找到):类别Vb6 & Vb.NetDelphiC#语法不区分大小...
分类:
编程语言 时间:
2014-07-29 11:42:06
收藏:
0 评论:
0 赞:
0 阅读:
375
在本地安装了wamp环境,默认的根目录是D:\wamp\www,使用起来非常不方便。那如何改变默认的根目录呢1,找到httpd.conf文件D:\wamp\bin\apache\Apache2.2.21\conf2,找到这个地方## DocumentRoot: The directory out o...
分类:
其他 时间:
2014-07-29 11:41:56
收藏:
0 评论:
0 赞:
0 阅读:
403
1.$.isWindow 判断是不是window对象var isWindow = function(obj){ return obj != null && obj == obj.window;//window对象有个window属性指向自己 }2.isArraylike 判断一个对...
分类:
Windows开发 时间:
2014-07-29 11:41:46
收藏:
0 评论:
0 赞:
0 阅读:
440
这是一篇介绍android系统设置中显示设置的屏保设置和休眠设置的基本内容,希望读者喜欢!或者点个赞!
分类:
移动平台 时间:
2014-07-29 11:41:36
收藏:
0 评论:
0 赞:
0 阅读:
3436
Port Base Classes uvm_port_component_base This class defines an interface for obtaining a port’s connectivity lists after or during the end_of_elabora...
分类:
其他 时间:
2014-07-29 11:41:26
收藏:
0 评论:
0 赞:
0 阅读:
383
首先声明只有在Linearlayout中,该属性才有效。之所以android:layout_weight会引起争议,是因为在设置该属性的同时,设置android:layout_width为wrap_content和match_parent会造成两种截然相反的效果。android:layout_wei...
分类:
移动平台 时间:
2014-07-29 11:41:16
收藏:
0 评论:
0 赞:
0 阅读:
224