现在位置: 首页 > Llbafemj发表的所有文章
  • 09月
  • 25日
综合 ⁄ 共 543字 评论关闭
    用的是Ubuntu12.04。    为了把adb命令设置到环境变量中,我在~/.bashrc文件中加入了如下命令: export PATH=/home/develop/android-sdks/platform-tools/     结果悲剧了.输入常用命令ls,cd ,,,都不行。连vi也不行。一律报错。The command could not be located because '/usr/bin' is not included in the PATH environment variable.clear: command not found.     看半天才知道忘加系统PATH的路径,所以系统工具命令都找不到。     可怎么把配置文件改过来呢,折腾了半天,发现很简单。直接用系统工具的全路径编辑配置文......
阅读全文
  • 08月
  • 18日
综合 ⁄ 共 974字 评论关闭
LightOJ 1224 - DNA Prefix 题目大意:给定若干个字符串,找到一个前缀,前缀长度*出现次数最大值。 解题思路:对字符串集合建立字典树,然后遍历一遍,每个节点等于dep*val。 #include <cstdio> #include <cstring> #include <algorithm> using namespace std; const int maxn = 50005 * 50; const int sigma_size = 4; struct Tire { int sz, ans; int g[maxn][sigma_size]; int val[maxn]; void init(); int idx(char ch); void insert(char* s); void solve(int u, int ......
阅读全文
  • 06月
  • 01日
综合 ⁄ 共 1389字 评论关闭
最近为了读取网页源码,找了不少资料。因为是初学,特别吃力。由于,需要和网站交互,有些特殊字符。所以,使用unicode编码会比较方便。所以,乱码很严重。现在总算是都解决了。。。 实例下载地址:http://download.csdn.net/detail/open520yin/4832551     CInternetSession session(_T("HttpClient"));       TCHAR *url= _T("http://www.baidu.com");     CHttpFile* pfile = (CHttpFile *)session.OpenURL(url);       DWORD dwStatusCode;       pfile -> QueryInfoStatusCode(dwStatusCode);       if(dwStatusCode == H......
阅读全文
  • 05月
  • 10日
综合 ⁄ 共 1482字 评论关闭
#include<stdio.h> #include<queue> using namespace std; struct Node{  int x;  int y;  Node(int a,int b){     this->x=a;   this->y=b;  } }; char a[22][22]; int c; void search(int X,int Y){  queue<Node>myqueue;//建立队列,里面装入Node;  myqueue.push(Node(X,Y));  a[X][Y]='#';  c++;  while(!myqueue.empty()){//将相邻的并且为'.'的格子加1,并标记为'#',避免重复走.     if(a[myqueue.front().x+1][myqueue.front().y]=='.'){    myqueue.push(Node(myqueue.front().x+1,myqueue.front()......
阅读全文
恩。。nixyx确实算不上是一个构建系统。 所谓构建系统,比如GNU的Autotools,那是一套很完整的构建体系,包括了程序的配置,编译和安装三大部分。 类似的软件还有:google的gyp、腾讯的Blade等。它们最大的好处在于,可以不考虑平台之间的差别,使用统一的配置文件和命令,做到跨平台部署。 它们往往还支持很多很高端的功能,比如集成自动测试,代码检查(Blade)。。 可是我暂时不需要这些复杂的功能。我正在编写的nixy库是一个跨平台/编译器的C++库,它非常小,没必要使用大型的(或者说有学习成本和使用成本的)构建系统。目前......
阅读全文
  • 02月
  • 06日
综合 ⁄ 共 3186字 评论关闭
转自:http://www.thinkphp.cn/Article/3 ThinkPHP提供了灵活和方便的数据操作方法,不仅实现了对数据库操作的四大基本操作(CURD):创建、读取、更新和删除的实现,还内置了很多实用的数据操作方法,提供了ActiveRecords模式的最佳体验。 新建记录  PHP代码 1.  $User->find(2);    2.  $User->delete(); // 删除查找到的记录    3.  $User->delete('5,6'); // 删除主键为5、6的数据    4.  $User->deleteAll(); // 删除查询出来的所有数据   PHP代码 1.  // 实例化一个User模型对象    2.     3.  $User......
阅读全文
  • 12月
  • 26日
综合 ⁄ 共 6087字 评论关闭
环境: jdk1.6 j2ee1.5 spring2.5.6 blazeDS3.3 tomcat6.0 flex4 myeclipse8.5 flashBuilder4 步骤: 一、 启动好blazeDS(即启动tomcat,在[tomcat]/webapps目录下产生一个blazeds文件夹(三个war包产生一个blazeds文件夹)); 在myeclipse8.5新建一个web Project工程,工程名为webSpring; 把此工程加入blazeDS支持(即用blazeds下的WEB-INF文件夹替换掉web工程下的WEB-INF文件夹); 加入spring支持(把spring相关的jar包拷贝到webSpring/WebRoot/WEB-INF/lib目录下即可)。 二、 1.......
阅读全文
  • 12月
  • 16日
综合 ⁄ 共 1685字 评论关闭
传送门: http://ting.hujiang.com/wanwujianshi/15153092754/ HintsanticlinesynclineaxialExcited, I took the book home that night and opened it before dinner, an action that I expect prompted my mother to feel my forehead and ask if I was all right-and, starting with the first page, I read. 那天晚上,我很兴奋,把这本书抱回了家,晚饭之前就把书打开--我想,正是由于这个举动,我的母亲摸了摸我的额头,看看我是不是病了--翻到第一页,读了起来。 And here's the thing. It wasn't exciting at all. It wasn......
阅读全文
  • 12月
  • 11日
综合 ⁄ 共 49字 评论关闭
DOM方式: http://www.w3schools.com/dom/dom_parser.asp
阅读全文
  • 12月
  • 02日
综合 ⁄ 共 6296字 评论关闭
xfire-servlet.xml文件的内容: <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"  > <beans default-autowire="byName">  <!--引入XFire的预配置文件--> <import resource="classpath:org/codehaus/xfire/spring/xfire.xml" />    <bean id="baseWebService"  class="org.codehaus.xfire.spring.remoting.XFireExporter" lazy-init="false" abstract="true">   <property name="serviceF......
阅读全文
  • 11月
  • 25日
综合 ⁄ 共 1036字 评论关闭
什么是60日均线   均线系统理论是最常用的分析指标之一,均线所反映的是过去一段时间内市场的平均成本变化情况。   60日均线,即是某支股票在市场上往前60天的平均收盘价格,其意义在于它反映了这支股票60天的平均成本。该均线一般是中长期走势,60日均价是最近三个月的收盘平均价,对个股后期走势有重要意义,很多技术指标已经明了,所以个股如果有效跌破60日均价,大多后市看跌!   打开K线图,一般显示的技术指标就是均线指标,若不是在键盘上敲入MA就可以转换成均线指标,看最上面一行会显示MA5,MA10等,60日均线当......
阅读全文
  • 11月
  • 23日
综合 ⁄ 共 1242字 评论关闭
 名字是法雷数列其实是欧拉phi函数              Farey Sequence Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 11246   Accepted: 4363 Description The Farey Sequence Fn for any integer n with n >= 2 is the set of irreducible rational numbers a/b with 0 < a < b <= n and gcd(a,b) = 1 arranged in increasing order. The first few are F2 = {1/2} F3 = {1/3, 1/2, 2/3} F4 = {1/4, 1/3, 1/2, 2/3, 3/4} F5 = {1/5, 1/4, 1/3, 2/5, 1/2, 3/5, 2/3, 3/4, 4/5}  You task is......
阅读全文