今天在使用LINQ时,由于数据库中的时间保存的是varchar()格式,查询时需要比较时间先后,于是使用了:from j in system.jhzdwhere j.dwbm.ToString().Trim() == branchcode.ToString().Trim()&& Convert.ToDateTime(j.yearmonth.ToString().Trim()).CompareTo(Convert.ToDateTime(timeFrom)) >= 0&& Convert.ToDateTime(j.yearmonth.ToString().Tr Read More
posted @ 2013-03-25 21:01
javawebsoa
Views(577)
Comments(0)
Diggs(0)
http://acm.hdu.edu.cn/showproblem.php?pid=2063 设G=(V,E)是一个无向图。如顶点集V可分区为两个互不相交的子集V1,V2之并,并且图中每条边依附的两个顶点都分属于这两个不同的子集。则称图G为二分图。二分图也可记为G=(V1,V2,E)。 给定一个二分图G,在G的一个子图M中,M的边集{E}中的任意两条边都不依附于同一个顶点,则称M是一个匹配。选择这样的子集中边数最大的子集称为图的最大匹配问题(maximal matching problem) 图的点覆盖:寻找一个点集,使得图中每一条边至少有一点在该点集中 二分图的最小点覆盖 = 最大匹配 .. Read More
posted @ 2013-03-25 20:56
javawebsoa
Views(217)
Comments(0)
Diggs(0)
JOIN&WHEREExplanationDetailsleftjoinleftouterjoin(左联接)返回包括左表中的所有记录和右表中联结字段相等的记录左向外联接的结果集包括LEFTOUTER子句中指定的左表的所有行,而不仅仅是联接列所匹配的行。如果左表的某行在右表中没有匹配行,则在相关联的结果集行中右表的所有选择列表列均为空值。rightjoinrightouterjoin(右联接)返回包括右表中的所有记录和左表中联结字段相等的记录右向外联接是左向外联接的反向联接。将返回右表的所有行。如果右表的某行在左表中没有匹配行,则将为左表返回空值。innerjoin(等值连接)只返回两个 Read More
posted @ 2013-03-25 20:51
javawebsoa
Views(236)
Comments(0)
Diggs(0)
【小蒙淘金】3.25晚评-黄金白银行情分析及部分操作建议 【基本面】 本周有美联储主席伯南克(BenBernanke)讲话以及耐用品订单和GDP等众多美国经济数据出炉,投资者将予以密切关注。上周三美联储会议如期“按兵不动”,决策声明没有给出任何会立即缩小资产采购项目规模的暗示,而联储主席伯南克也在新闻发布会上重申其鸽派立场。 美联储主席伯南克将在北京时间周一下午3点左右在伦敦经济学院发表讲话。从伯南克在美国国会所做的半年度货币政策证词,以及最新的一次美联储会议结果来看,美联储依然坚持维持当前的宽松政策立场,尤其用以对冲美国政府减支对于经济可能造成的负面冲击。因此,预计伯南克本次讲话... Read More
posted @ 2013-03-25 20:46
javawebsoa
Views(165)
Comments(0)
Diggs(0)
import android.app.Activity;import android.os.Bundle;import android.content.Context;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import android.graphics.PorterDuff;import android.graphi Read More
posted @ 2013-03-25 20:40
javawebsoa
Views(397)
Comments(0)
Diggs(0)
Language:Pascal's TravelsTime Limit:1000MSMemory Limit:65536KTotal Submissions:4821Accepted:2139Description An n x n game board is populated with integers, one nonnegative integer per square. The goal is to travel along any legitimate path from the upper left corner to the lower right corner of Read More
posted @ 2013-03-25 20:35
javawebsoa
Views(203)
Comments(0)
Diggs(0)
一、下载、安装rsync **** 正常安装RH的时候是带RSYNC的,运行文件放在/usr/bin/rsync #tar zxvf rsync-2.6.9.tar.gz #cd rsync-2.6.9 #./configure --prefix=/usr/local/rsync #make #make install 二、配置rsync server 1、启动RSYNC #vi /etc/xinetd.d/rsync 把disable原来的YES改成NO service rsync { disable = no socket_type = strea... Read More
posted @ 2013-03-25 20:30
javawebsoa
Views(610)
Comments(0)
Diggs(0)
private static string GetOwnPublicIP() { try { var html = new WebClient().DownloadString( "http://checkip.dyndns.com/"); var ipStart = html.IndexOf(": ", StringComparison.OrdinalIgnoreCase) + 2; return html.Substring(ipStart, html.IndexOf(... Read More
posted @ 2013-03-25 20:25
javawebsoa
Views(189)
Comments(0)
Diggs(0)
创建Java2D图形 下面我们将介绍如何将Swing容器(存放GUI组件的纯黑色面板和框架)变成一块可以在上面绘制字体、颜色、形状和图形的艺术画布。1、使用Font类 在Java中,颜色和字体使用java.awt包中的Color和Font类来表示。字体使用构造函数Font(String , int , int)来创建,3个参数分别为: >字体的名字,它可以使描述性名字,也可以是实际的字体名; >Font.BOLD、Font.ITALIC和Font.PLAIN这3个类变量中的一个; >字体大小,单位为磅 下面的语句创建了一个Font对象,字体为微软雅黑:... Read More
posted @ 2013-03-25 20:19
javawebsoa
Views(542)
Comments(0)
Diggs(0)
注意: 该程序在IE调试的,其他浏览器可能有BUG,见谅!<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=GB2312"><title>Insert title Read More
posted @ 2013-03-25 20:14
javawebsoa
Views(398)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号