运行regeditHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders找到Desktop%USERPROFILE% 默认为C:\Users\用户名,替换成要更改的目录如F:\系统...
原文[C#][ASP.net] 透过WebBrowser 取得AJAX 后的网页今天 Shih-Min 问我说,假设网页一开始是AJAX 会载入一些资料,但是透过WebClient 去抓抓到都是JavaScript 跟 AJAX 的原始码,有办法可以抓到AJAX 取完值之后的资料吗?!这需求,如果写...
分类:
Web程序 时间:
2014-07-07 12:02:18
阅读次数:
299
if(templatejquery.browser.msie){ ckb.onpropertychange=function() { UpdateEnableState(current_checklist_ID);} }else{ ckb.onchange=function() { UpdateEn...
分类:
其他好文 时间:
2014-07-07 08:57:02
阅读次数:
176
bootsect部分已经执行完成,程序也跳转到setup部分:
start:
! ok, the read went well so we get current cursor position and save it for
! posterity.
mov ax,#INITSEG ! this is done in bootsect already, but...
mov...
分类:
系统相关 时间:
2014-07-03 18:38:19
阅读次数:
329
题目要求第n个丑数,所以对于中间结果不需要保存。
def Humble(index):
curHum = 1
M2 = 2; M3 = 3; M5 = 5
while index > 1:
curHum = min(min(M2, M3), M5)
while M2 <= curHum:
M2 *= 2
while M3 <= curHum:
M3 *= 3
w...
分类:
其他好文 时间:
2014-07-03 17:29:40
阅读次数:
214
UVA 11768 - Lattice Point or Not
题目链接
题意:给定两个点,构成一条线段,这些点都是十分位形式的,求落在这个直线上的正数点。
思路:先把直线表达成a x + b y = c的形式,a,b, c都化为整数表示,然后利用扩展gcd求出x和y的通解,然后已知min(x1, x2)
值得注意的是,直线为平行坐标系的情况,要特殊判断一下
代码...
分类:
其他好文 时间:
2014-07-03 16:28:47
阅读次数:
169
CD
You have a long drive by car ahead. You have a tape recorder, but unfortunately your best music is on CDs. You need to have it on tapes so the problem to solve is: you have a tape N min...
分类:
其他好文 时间:
2014-07-03 15:34:36
阅读次数:
176
登录时存:HttpCookiecookieUserPower=newHttpCookie("UserPower");cookieUserPower.Value=loginuser._UserPower.ToString();HttpContext.Current.Response.Cookies.Add(cookieUserPower);页面判断:if(Request.Cookies["UserID"]==null){ClientScript.RegisterClientScriptBlo..
分类:
其他好文 时间:
2014-07-03 15:10:26
阅读次数:
343
controller def uploadss @attachment = Attachment.new(:file => request.raw_post) @attachment.author = User.current @attachment.filename = params[:filen...
分类:
其他好文 时间:
2014-07-03 12:38:19
阅读次数:
169
#if defined(__CHAR_UNSIGNED__) || defined(__sgi) #define INT1 signed char /* integer, signed 1 Byte */#define INT1_MIN SCHAR_MIN...
分类:
其他好文 时间:
2014-07-02 19:19:04
阅读次数:
346