Public Sub RunSqlTransaction(myConnString As String) Dim myConnection As New SqlConnection(myConnString) myConnection.Open() Dim myCommand As SqlC...
分类:
其他好文 时间:
2014-11-14 17:07:07
阅读次数:
170
又写了一段Perl,帮同事减轻负担....就是搜索pas文件,提取信息而已。 use warnings;
use strict;
use File::Find;
$/ = undef;
find(\&subprocess, "E:\\GpsClient");
sub subprocess {
processfile...
分类:
其他好文 时间:
2014-11-13 19:17:17
阅读次数:
154
在进行页面的DIV+CSS排版时,遇到IE6(当然有时Firefox下也会偶遇)浏览器中的图片元素img下出现多余空白的问题绝对是常见的对于该问题的解决方法也是“见机行事”。1、将图片转换为块级对象即,设置img为“display:block;”。在本例中添加一组CSS代码:“#sub img {d...
分类:
其他好文 时间:
2014-11-13 18:44:25
阅读次数:
187
DescriptionDr lee cuts a string S into N pieces,s[1],…,s[N].Now, Dr lee gives you these N sub-strings: s[1],…s[N]. There might be several possibilitie...
分类:
其他好文 时间:
2014-11-13 12:40:05
阅读次数:
221
这题说的是给了n(14)个点,每个点都以他 为根的最大可容的孩子个数和最小的可溶孩子个数L[i] ,R[i]问这n个点形成一棵树有多少种形态我们让 dp[i][S] 表示 一 i为根节点 的 拥有孩子S(二进制数)状态的 方案数 , sub[S] , 表示 以 S 状态表示的 森林的 方案数, su...
分类:
其他好文 时间:
2014-11-12 00:19:44
阅读次数:
261
批处理命令:带参数的字符串替换
@echo off
setlocal enabledelayedexpansion
set main_str=hello world
set src=hello
set dst=hi
echo %main_str%
set sub_str=!main_str:%src%=%dst%!
echo %sub_str%...
分类:
其他好文 时间:
2014-11-11 21:13:45
阅读次数:
166
有没有感觉终端的字体锯齿感觉非常强?经过搜索后发现可以平滑字体显示得更漂亮一点: System Settings > Application Appearance > Fonts I enabledanti-aliasingand set Use sub-pixel rendering to RG....
分类:
系统相关 时间:
2014-11-11 15:41:16
阅读次数:
264
#!/usr/bin/perl?-w
use?strict;
use?File::Basename;
use?XML::Simple;
package?CITIC;
my?$TPMS_EOD_ETC=$ENV{TPMS_EOD_ETC};
#return?script?name
sub?getscript_name{
?????????my($pat...
分类:
其他好文 时间:
2014-11-10 18:16:58
阅读次数:
251
Maximum Sum
Time Limit:500MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u
Submit Status
Description
Given a 2-dimensional array of positive and negative integers, find the sub-rect...
分类:
其他好文 时间:
2014-11-10 10:04:21
阅读次数:
119