首页 > 新文章
  • Ubuntu系统下载编译android源码 is a project mainly written in , based on the .在ubuntu系统下编译android需要注意的事项:1. 参考http://source.android.com/中的安装说明。2. 安装JDK6中碰到的问题可以参考http://hi.baidu.com/designhouse/item/0dbece7c4f6af0376e29f6c1中的说明,记得配置环境变量。3. 下载代码时如...

  • AS3版本的MaxRects算法测试 is a project mainly written in , based on the .  早上,在微博发现一条信息,关于MaxRects算法的,@杜增强DzQ 移植的关于AS3版本的MaxRects算法,具体地址是:http://www.duzengqiang.com/blog/post/971.html   代码如下: /* Based on the Public Domain MaxRectanglesBinPa...

  • Apache+PHP in MAC is a project mainly written in , based on the .是以为记,当前OSX下的Apache+PHP配置。我的配置跟这篇文章应该一样:http://www.ccvita.com/398.htmlApache重启: apachectl restart|start|stopApache配置文件: /etc/apache2/httpd.conf (php5在这里开启)Apache虚拟主机配置文件...

  • MEF: MSDN 杂志上的文章(9) 控制部件创建策略 ??? is a project mainly written in , based on the .http://msdn.microsoft.com/zh-cn/magazine/ee291628.aspx 默认情况下,容器中的所有部件实例都是单例,因而由在容器中导入它们的所有部件共享。因此,SalesOrderView 和 ViewFactory 的所有导入程序都将获得同一实例。在很多情况下需要这样,因为这样便无需拥有其他组件所...

  • Gdb 调试动态库 is a project mainly written in , based on the .原文链接 cat get.h int get (); int set (int a);   cat get.c #include #include "get.h" static int x=0; int get () { printf ( "get...

  • C# 启动外部程序的几种方法 is a project mainly written in , based on the .C# 启动外部程序的几种方法: 1. 启动外部程序,不等待其退出。 2. 启动外部程序,等待其退出。 3. 启动外部程序,无限等待其退出。 4. 启动外部程序,通过事件监视其退出。 // using System.Diagnostics; private string appName = "calc.exe";///

  • Haskell的分数运算 is a project mainly written in , based on the .孩子要上3年级了,里面涉及分数的部分,先准备一下。 haskell中涉及分数的模块是Ratio。   Ratio Synopsis Documentation data Ratio a Rational numbers, with numerator and denominator of some Integral typ...

  • 在SQLserver数据库里设置作业的步骤 is a project mainly written in , based on the .在SQLserver数据库里设置作业(对数据库的表定期进行数据清理)的步骤 1.首先,要打开sql server代理的服务,在我的电脑,右键管理的服务打开,SQL Server 代理 (MSSQLSERVER)这个服务一定要打开。 2.打开数据库,在对象资源管理器的最下面有一个SQL Server代理 点开,作业->新建作业。在...

  • 【字符串操作之】返回指定位置的字符和Unicode 字符代码 根据unicode返回字符→→charAt、charCodeAt和fromCharCode... is a project mainly written in , based on the .//charAt和charCodeAt分别返回指定位置处的字符和字符对应的unicode码 var str:String="abcdefg"; var str2=str.charAt(1); var str3=str.charCodeAt(1); trace(str2); //b trace(str3); //98  fromCh...

  • Avplayer VS2008编译 is a project mainly written in , based on the .错误1. typedef void * POINTER_64 PVOID64;  解决办法 typedef void *PVOID;typedef void * POINTER_64 PVOID64;在它之前加下:#define POINTER_64 __ptr64 官网给出的解决办法 打开winnt.h文件(这个是vc安装时带的...

  • Android应用中通过AIDL机制实现进程间的通讯实例 is a project mainly written in , based on the .Android中,每个应用程序都有自己的进程,当需要在不同的进程之间传递对象时,该如何实现呢?显然,Java中是不支持跨进程内存共享的,因此要传递对象,需要把对象解析成操作系统能够理解的数据格式,以达到跨界对象访问的目的。在Android中,则采用AIDL(Android Interface Definition Language...

  • 用户至上-阿里马马篇 is a project mainly written in , based on the .最近经常在阿里巴巴的平台里活动,突然发现,支付宝病了。   当用户生成一单交易后,需要用支付宝支付时,如何保证是用户本人在操作呢? 当初,支付宝是国内第一家很好地解决这个问题的。 解决的途径主要是: 一,系统安全证书。每次在新的电脑环境下进行支付活动时,需要用户安装一个安全证书; 二,支付密码。在淘宝账号密码、支付宝账号密码之外,还增...

  • Css属性选择符的应用 is a project mainly written in , based on the .注释:Internet Explorer 7 (以及更高版本)在规定了 !DOCTYPE 的情况下支持属性选择器。IE6 及更低的版本不支持属性选择器。 [title]{color:red;}  //为带有 title 属性的所有元素设置样式: [title="website"]{color:red;}  //为 title="W3S...

  • LVS(Linux Virtual Server)三种负载均衡模型和十种调度的简单介绍 is a project mainly written in , based on the .LVS(Linux Virtual Server)三种负载均衡模型和十种调度的简单介绍     LVS (Linux Virtual Server) LVS(Linux Virtual Server)其实就是针对高可伸缩、高可用网络服务的需求,给出了基于IP层和基于内容请求分发的负载平衡调度解决方法,并在Linux内核中...

  • 正则表达式限制输入整数或小数 is a project mainly written in , based on the .string pattern = @"^d{1,7}(?:.d{0,2}$|$)"; //这是一个格式匹配字符串 其中的含义可以参考http://hi.baidu.com/%D6%C2%D0%F9%B8%F3/blog/item/9060fe35f84f872370cf6c83.html。如果调用以下代码,可以匹配整数位最多为7...

  • 序列化例子 is a project mainly written in , based on the .C#中的"序列化" Serializable 理解 我的理解:      比如用一个类描述一张合同,而这个类实例化后其中的字段保存着合同的信息,如果现在要把这个类的实例发送到另一台机器、另一个窗体或是想保存这个类以便以 后再取出来用(持久化对象),可以对这个类进行序列化(序列化实际上是一个信息流),传送或保存,用的时候再反序列化重新生...

  • C6678-SRIO和Virtex6-FPGA is a project mainly written in , based on the .设计的板子到了SRIO调试阶段了,在板子上,一片V6和两片6678通过4XSRIO互联,中间没有Switch,总算搞定了相互之间的通信。  首先,感谢Ti论坛提供的SRIO程序范例,但是其硬件平台是EVM板,更多的只能用于loopback测试,但是可以在其基础上修改。 1.初始化DSP的SRIO,主要是对SerDes进行配置,然后是...

  • JQuery 给DOM控件绑定和移除事件的方法 is a project mainly written in , based on the .  绑定事件: Method 1$("#myElement").click( function() {alert($(this).text());});   Method 2 $("#myElement").bind('click', function() {alert($(this).text());});   第一种看起来要方便一...

  • Jquery 实现表单验证功能代码(简洁) is a project mainly written in , based on the .html xmlns="http://www.w3.org/1999/xhtml"> 表单验证页面