EvoTalk

Archive for the ‘軟體使用’ Category

07 六月, 2010

SSH Connect Virtualbox Guest

Posted by: asd In: 科技新知| 軟體使用

到 dos 下,切換至 VirtualBox\app32
下command
view plain

CODE:

VBoxManage setextradata YourUbuntuName  "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/Protocol" TCP

VBoxManage setextradata YourUbuntuName  "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/HostPort"  2222

VBoxManage setextradata YourUbuntuName  "VBoxInternal/Devices/pcnet/0/LUN#0/Config/ssh/GuestPort" 22

YourUbuntuName 為安裝時的自訂系統名稱
重啟VirtualBox,用 putty 連上 127.0.0.1 : 2222

登入webhostingpad ftp 時,顯示「421 Sorry, cleartext sessions are not accepted on this server」
修改 flashfxp 內的選項 Connection Type 為 FTP using Explicit SSL (Auth TLS),再次登入即可。

也可以用 curl 上傳
view plain

CODE:

@echo off

SET FILE=%1

IF NOT DEFINED FILE GOTO USAGE

echo "uploading the file %FILE%, please wait..."

curl --progress-bar  -g -k --ftp-ssl -3 -T%FILE% -uuser:passwd ftp://123.111.1.1

EXIT /B 0

:USAGE

ECHO Usage: upload.exe file

Tags:

裝完windows 2003 server要共享資料夾的時候,發生如下的錯誤訊息
view plain

CODE:

---------------------------

共用

---------------------------

嘗試共用 CITI-Collection 時發生錯誤。 沒有啟動伺服器服務。

此時尚未建立共用資源。

---------------------------

確定   

---------------------------

解決方法是去服務將「Server」及「Workstation」這兩個服務開啟。
參考win2003共享的文件不能访问的原因

假設是使用ms sql server 2000
Backup : 選擇databaase,按右鍵選「所有工作」->備份資料庫,再新增目的地檔案,按確定。
假設是使用 ms sql server 2005 express
還原:選擇資料庫,按右鍵選「還原資料庫」->選擇目的資料庫及來源裝置,結果會發生如下的錯誤
「System.Data.SqlClient.SqlError: 備份組包含現有的 'mydb' 資料庫以外的資料庫備份。 (Microsoft.SqlServer.Express.Smo)」
解決方法:
資料庫按右鍵選「新增查詢」,鍵入
view plain

CODE:

restore DATABASE mydb

from disk='C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Backup\mydb_backup_200812060300.bak'

with

move 'NPUST' to 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\mydb.mdf',

move 'NPUST_Log' to 'C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Data\mydb_log.ldf'

,NoRecovery

,Replace

go

再做一次還原手續就可以了。
參考: 【SQL 實作】將資料庫備份檔(.bak檔)還原到不同的主機為資料庫檔(.mdf檔)

31 十二月, 2009

Free C++ Skin Library

Posted by: asd In: C++| Code Snippet| 科技新知| 程式設計| 軟體使用

FreeCL(Free Control Library)是一個open source且free的Windows  skin library,包含了常用的Windows標準元件、Shell元件、IE風格 menu 以及 dialog


Page 1 of 2812345...Last »