现在位置: 首页 > originate发表的所有文章
  • 11月
  • 19日
综合 ⁄ 共 677字 评论关闭
asp.net 网站中使用ajax控件(前提要安装了AJAXExtensionsToolbox.dll) 前提是你可以创建 ASP.NET AJAX-Enabled Web Site(安装了ASPAJAXExtSetup.msi)然后在bin文件夹里添加AJAXExtensionsToolbox.dll,再将下面代码放大web.config的 <system.web> </system.web>里。 <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" validate="false"/>  </httpHandl......
阅读全文
  • 03月
  • 15日
综合 ⁄ 共 1392字 评论关闭
package aprioriproduct; import java.io.BufferedReader; import java.io.FileReader; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.TreeMap; import javax.print.DocFlavor.BYTE_ARRAY; public class AprioriProduct { private static TreeMap<String,Integer>tm=new TreeMap(); private static int k=4; public static void main(String []args) { File......
阅读全文
  • 03月
  • 11日
数据库 ⁄ 共 1652字 评论关闭
数据库查询方法的进步 Clement Yu, 芝加哥伊利诺大学 Weiyi Meng, 纽约州立大学 对于用户来说,一个数据库系统最重要的是能够使用户能够简单快速地获得他们想要的信息。能否满足用户要求取决于数据库系统、所存储数据的类型和数据库系统支持的查询。例如,如果数据存储在一个单一的表中,那么大多数查询(除了包含数量很多的连接操作)能够高效地响应,任何一个熟悉结构化查询语言的用户都能够轻松获得所需信息。 然而,当数据分布在网络上不同站点的几个关系数据库中时,高效率地检索数据会很难。因为这个过程与每个站点......
阅读全文
  • 09月
  • 09日
编程语言 ⁄ 共 795字 评论关闭
1.Kernel#eval 2.0.0p247 :428 > array = ['10','20'] => ["10", "20"] 2.0.0p247 :429 > element = '30' => "30" 2.0.0p247 :430 > eval('array << element') => ["10", "20", "30"] 2.0.0p247 :431 > 对比方法与块 .0.0p247 :422 > array = ['a','b','c 2.0.0p247 :423'> '] => ["a", "b", "c\n"] 2.0.0p247 :424 > x = 'abc' => "abc" 2.0.0p247 :425 > array.instance_eval "self[1] = x" => "abc" 2.0.0p247 :426 > array => ["a", "abc", "c......
阅读全文
  • 09月
  • 08日
综合 ⁄ 共 236字 评论关闭
git 在项目目录下面pull 加载别的git上德项目 1. 根目录 ./gitmodules [submodule "external/version_manager"] path = external/version_manager url = git://gitcafe.com/arlyxiao/version_manager.git 2.在目录中运行 git submodule init git submodule update 3.就出现在目录中了(external/version_manager)
阅读全文
  • 08月
  • 14日
综合 ⁄ 共 479字 评论关闭
 public void saveMyBitmap(Bitmap mBitmap,String bitName)  {         File f = new File( "/sdcard/Note/"+bitName + ".jpg");         FileOutputStream fOut = null;         try {                 fOut = new FileOutputStream(f);         } catch (FileNotFoundException e) {                 e.printStackTrace();         }         mBitmap.compress(Bitmap.CompressFormat.JPEG, 100, fOut);         try {                 fOut.flush();         } catch (IOException e) {                 e.printStackTrace(); ......
阅读全文
  • 05月
  • 28日
综合 ⁄ 共 149字 评论关闭
当编译好一个内核模块,进行insmod时,出现缺少依赖模块的错误解决方案: 1查看依赖的模块: 以btrfs.ko为例 modinfo btrfs.ko | grep depend 假设出现depend :libcrc32c 2加载依赖模块: insmod libcrc32c 3插入自己的模块: insmod btrfs.ko
阅读全文
  • 05月
  • 11日
综合 ⁄ 共 4279字 评论关闭
下面简短介绍一下Android SDK中重要的包。 android.app:实现Android的应用程序模型。主要的类包括Application(表示开始和结束语义),以及众多与Activity相关的类、控件、对话框、提醒和通知。 android.bluetooth:提供一些类来处理蓝牙功能。主要的类包括BluetoothAdapter、BluetoothDevice、BluetoothSocket、BluetoothServerSocket和BluetoothClass。可以使用BluetoothAdapter控制在本地安装的蓝牙适配器。例如,可以启用它、禁用它和启动发现流程。BluetoothDevice表示所连接的远程蓝牙设备。两个蓝牙套接字用于在设备之间建......
阅读全文
  • 05月
  • 11日
综合 ⁄ 共 2518字 评论关闭
这些轻量级框架使用HTML5和CSS3标准来帮助您快速开发跨平台的Web移动应用和网站。 为了方便大家以后查找本站做了一个移动开发框架的列表http://www.open-open.com/ajax/Mobile_Framework.htm。 1. jQuery Mobile jQuery Mobile这个框架能够帮助你快速开发出支持多种移动设备的Mobile应用用户界面。它是当前最流行的移动开发框架。 jQuery Mobile不仅会给主流移动平台带来jQuery核心库,而且会发布一个完整统一的jQuery移动UI框架。虽然jQuery Mobile相对较新,但开发人员可以用jQuery Mobile为许多移动设备(包括智能手机......
阅读全文
  • 04月
  • 24日
综合 ⁄ 共 1727字 评论关闭
time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output n participants of the competition were split into m teams in some manner so that each team has at least one participant. After the competition each pair of participants from the same team became friends. Your task is to write a program that will find the minimum and the maximum number of pairs of friends that could have formed by the end of the competition. Input ......
阅读全文
  • 04月
  • 02日
综合 ⁄ 共 4272字 评论关闭
From: http://blog.csdn.net/sparkliang/article/details/5671510 CRC算法详解(1) 作为blog再次发出来,详细描述一下CRC32算法的推导过程。 CRC 算法的数学基础 CRC 算法的数学基础就不再多啰嗦了,到处都是,简单提一下。它是以 GF(2) 多项式算术为数学基础的,GF(2) 多项式中只有一个变量 x ,其系数也只有 0 和 1 ,比如:     1 *x^6 + 0*x^5 + 1*x^4 + 0*x^3 + 0*x^2 +1*x^1 + 1*x^0        = x^6 + x^4 + x + 1 加减运算不考虑进位和退位。说白了就是下面的运算规则:     0 + 0 = 0    0 - 0 = 0     0 + 1 = 1    0 - ......
阅读全文
  • 03月
  • 16日
综合 ⁄ 共 1283字 评论关闭
一道面试题:将单向链表按如下规则逆序: 5->4->3->2->1: pHead->5;pStart->3;  逆序结果:3->4->5->1->2 ; 5->4->3->2->1; pHead->5,pStart->1; 逆序结果:1->2->3->4->5; 5->4->3->2->1; pHead->5;pStart->5; 逆序结果:5->1->2->3->4; 要求不能分配新的链表节点,只能使用临时指针变量,将链表按上述规则逆序. 思路: 将pStart后的链表逆序,再将pStart前的链表逆序,然后将pStart后的链表直接接在后面即可; 测试代码如下: Singl......
阅读全文