由於要重構當前的項目,建立了一個工程,然後把以前的代碼copy進來,結果提交到SVN伺服器的時候出錯了,如下標題:working copy locked提示:your working copy appears to be locked. run cleanup to amend the situation. 產生這種情況大多是因為上次svn命令執行失敗且被鎖定了。如果cleanup沒有效果的話只好手動刪除鎖定檔案。cd 到svn項目目錄下,然後執行如下命令del lock /q/s就把鎖刪掉了。
1.Integer、Long、Float、Double基本資料類問題來源:今天偶然看到了Integer.valueOf()方法,而查看資料顯示【.valueof()是一個靜態方法,同時調用幾次該方法來建立Integet對象,最終都是調用到同一個Integer執行個體。】由於對jdk的api實現不熟悉,所以不明白這些是怎麼做到的。因此我編寫一個例子進行一下驗證:Integer a = Integer.valueof(10);Integer b =
本執行個體是關於Flowplayer動態切換視訊內容的一小段代碼,主要方式就是通過Javascript迴圈綁定播放按鈕,url中添加實際的視頻地址即可。// loop those links and alter their click behaviourfor (var i = 0; i < links.length; i++) { links[i].onclick = function() { // play the clip specified in href-
(function(){ var ua=navigator.userAgent.toLowerCase(); var is=(ua.match(/\b(chrome|opera|safari|msie|firefox)\b/) || ['','mozilla'])[1]; var r='(?:'+is+'|version)[\\/: ]([\\d.]+)'; var v=(ua.match(new RegExp(r)) ||[])[1]; jQuery.browser.is=is;
Apache的映像介面很不友好,出錯比較難辨別,今天啟動apache,突然不能正常啟動。提示the requested operation has failed。花了半天時間研究有點眉目了。C:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd.exe -w -n "Apache2.2" -k starthttpd.exe: Could not reliably determine the server's
項目需要需要多此外掛程式進一步做修改以滿足當前項目的需求,其實需求很簡單,就是在拖拉的時候限制往下的方向,固定高度,只能往左右展開或者縮小。代碼修改如下:/** jqDnR - Minimalistic Drag'n'Resize for jQuery.** Copyright (c) 2007 Brice Burgess <bhb@iceburg.net>, http://www.iceburg.net/* Licensed under the MIT License:*