很棒的CSS下拉表單
不僅有設計感而且code也精簡,cool!
http://solardreamstudios.com/_img/learn/css/cssmenus/index-horiz.html#
很棒的CSS下拉表單
不僅有設計感而且code也精簡,cool!
http://solardreamstudios.com/_img/learn/css/cssmenus/index-horiz.html#
查詢資料庫中哪些talbe有groupID欄位
sp_msforeachtable ‘if exists(select top 1 * from ? where GroupID like ‘’%’’) select ‘’?’’’
查詢資料庫中applyman欄位值為429的table有哪幾個
sp_msforeachtable ‘if exists(select top 1 * from ? where applyman = ‘’429’’) select ‘’?’’’
select a.name,max(b.rows) as rows from sysobjects a,sysindexes b where a.id= b.id and a.xtype = ‘u’
group by a.name
*MSSQL專用
關於RoR的AutoComplete
用YUI套件達成AutoComplete功能code實在太多了,在ROR中只要在
Controller:
#auto_complete_for model名稱(table名), 欄位名稱
auto_complete_for :recipe, :name
View:
Country:
加上三行code就可以有一個AutoComplete的視窗囉!想要自訂下拉區域的話可以參考slash7或script.aculo.us/
要注意auto_complete_for :country, :name不能寫在function裡面
錯誤:
class SearchController def index
auto_complete_for :recipe, :name
end
end
正確:
class SearchController auto_complete_for :recipe, :name
end
今天參考”啊鳴的狗窩(http://www.josephjiang.com/)"利用YUI的AutoComplete套件,體驗autocomplete的功能該套件支援XML、JSON等資料格式,還有帥氣的捲動效果,不過前端加很多code @@,我一直以為只要在文字框輸入後YUI就會到xml檔自動分析有哪些字串要秀出,事實證明….我想太多= =,後端還是要自行處理才行,YUI只負責把資料餵到文字框。
範例下載:http://joehwang.myweb.hinet.net/xuite/yui_autocomplete.zip
最近和朋友一起合租了HostMonster的空間,使用兩年一個人只要700蠻划算的。可能是對Linux不熟的原因,我覺得HostMonster的rails設定方式很特別。
1.建立一個sub domain或add domain
2.刪除建立domain時,系統預設的目錄(rm -r 資料夾名)
3.建立一個捷徑命名為剛刪掉的資料夾名稱,並把捷徑指向rails app下的public目錄
(例如:ln -s /home/帳號名稱/public_html/joehwang.net/rails/test/public )
原文:http://helpdesk.hostmonster.com/kb/index.php?x=&mod_id=2&id=232
可惜速度有點慢,也不能自行安裝ruby gem,不過…便宜就好
今天寫的,放在這做個筆記
Function ch24(x)
ch24=FormatDateTime(x, 2) & “ “ & FormatDateTime(x, 4)
end function
function manyholiday(ofrom,oend)
allday=DateDiff(“D”,ofrom,oend)
for i = 1 to allday
x=DateAdd(“D”,i,ofrom)
if Weekday(x)=1 or Weekday(x)=7 then
manyholiday=manyholiday+1
end if
next
end function
MyTime = “2007/5/1 下午 03:19:15”
response.write ch24(MyTime)&”
“
response.write ch24(now())&”
“
response.write “========判斷假日=======”&”
“
response.write “區間內有”&manyholiday(MyTime,now())&”個假日”&”
“
很棒的Apple dock在電腦玩物看到的,本以為是個華而不實的軟體
不過試用之後覺得很棒,不僅特效酷炫使用起來也很順手,把桌面上的捷徑丟進去以後免去了找軟體捷徑的困擾,更讓桌面一整個清爽,推薦給大家!
最近公司要把intranet的DB由Access轉移到MSSQL,以前的舊程式用了許多Access專用的語法如NOW()、一些括號的方式,要在幾千個檔案改這些SQL根本是海底撈針,好在有這個軟體可以搜尋程式的內文,還可以下簡單的條件,推薦給大家
tag:
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true