Saturday, September 19, 2009
Ubuntu 8 LTS 安裝及初始設置
下載Ubuntu 8 LTS Desktop版本
將ISO文件中umenu.exe和wubi.exe兩個文件
以及.disk和casper兩個目錄複製到C盤根目錄
C盤的分區格式可以任意Fat32或NTFS皆可
退掉所有移動磁碟以便運行umenu.exe
選擇完全安裝 幫助從CD引導 重啟安裝即可
安裝過程中需要有幾點注意的
請將您的網路斷開 無論您的網路有多麼的快
請預留連續的磁碟空間(自帶的分區工具有些複雜)
安裝時請選擇No localization安裝 以免報錯
請相信我 之後我會介紹更快捷的語言包安裝方法
請不要將grub安裝到MBR中(請參照多重引導一文)
這樣就裝好了 接下來就是進入系統設置了
首次進入Ubuntu 我們需要先進行Software Sources的設置
在Download from裡選Other...點擊Select Best Server
等系統自動選中後 點擊Choose Server確認更新即可
然後我們需要安裝的是輸入法
首先我們要在系統中開啟輸入法
sudo apt-get install language-pack-en-base
然後點擊Language Support 無視跳出的警告 直接關閉
將Default Language改為English (United States)
勾選Enable support to enter complex characters
輸入系統密碼並重啟後系統應該已經有支持輸入法切換了
現在我們來安裝輸入法 為大家介紹中日兩種輸入法的安裝
sudo apt-get install scim-pinyin
sudo apt-get install scim-anthy
這樣系統就能同時支持中日兩種輸入了(核心和介面仍然是英文)
12:43 Posted in Studies | Permalink | Comments (0) | Email this | Tags: ubuntu 8 lts
Saturday, July 11, 2009
构建Grub多重引导系统
下载 GRUB for DOS
下载地址 http://download.gna.org/grub4dos/
参考教程 http://grub4dos.sourceforge.net/wiki/index.php/Grub4dos_tutorial
打开一个命令提示符
或在(开始-运行)中键入cmd
连续使用cd ..退到系统根目录
使用attrib更改boot.ini属性
attrib boot.ini -a -s -h -r
编辑boot.ini文件
修改 timeout=10
修改 default=C:/grldr
追加 C:/grldr="Go to Grub"
保存并退出
这样系统启动时就会去引导grub
释放menu.lst和grldr到c盘根目录下
这部很关键 很多中文配置上都没有写
编辑menu.lst文件 在末尾添加以下你所需要的代码
title Boot from ISO
map --mem (hd0,2)/acronis.iso (hd32)
map --hook
chainloader (hd32)
boot
#安装Ubuntu系统 Grub将指向并引导Linux核心
#下载并复制initrd.gz和vmlinuz两个文件到c盘根目录下
#下载路径: http://archive.ubuntu.com/ubuntu/dists/hardy/main/installer-i386/current/images/hd-media/
#此处的(hd0,2)就是你Windows下的C盘
title Install-Ubuntu
kernel (hd0,2)/vmlinuz root=/dev/ram ramdisk_size=65536 devfs=mount,dall vga=771
initrd (hd0,2)/initrd.gz
boot
#启动Ubuntu系统 这里请注意 是(hd0,4)
#也就是你安装Ubuntu的分区(用Acronis DDS看)
#我开始不知道 填(hd0,0)一直无法启动
#sda5是在Linux下观察到的标号
#如果你希望开机直接进入linux
#请将此段放置在最前端
title ubuntu 8.04
kernel (hd0,4)/vmlinuz root=/dev/sda5
initrd (hd0,4)/initrd.img
10:02 Posted in Studies | Permalink | Comments (0) | Email this | Tags: grub
Monday, July 16, 2007
VB6 DataEnvironment 數據訪問方法
Private Sub Command1_Click()
ConnectionString = "Driver={SQL Server};Server=(local);Database=pubs;Uid=sa;Pwd=;"
PostgreSQL = "DRIVER={PostgreSQL Unicode};DATABASE=test;SERVER=localhost;PORT=5432;SSLMODE=prefer;UID=PostgreSQL;PWD=PostgreSQL"
SQLString = "select * from titleview"
DataEnvironment1.Connection1.ConnectionString = ConnectionString
DataEnvironment1.Connection1.Open
DataEnvironment1.Connection1.BeginTrans
Set rs = DataEnvironment1.Connection1.Execute(SQLString)
rs.MoveLast
MsgBox rs.Fields(0).Value
DataEnvironment1.Connection1.CommitTrans
DataEnvironment1.Connection1.Close
End
End Sub
19:50 Posted in Studies | Permalink | Comments (0) | Email this | Tags: VB6 SQL2000 DataEnvironment 數據訪問
Thursday, June 07, 2007
Pylons study records --- part two
使用模板 模板可为多种资源
Mako模板文件相当于JSP页面
cd wiki
cd controllers
编辑wiki.py文件 修改最末行为以下代码
return render('/Security.mak')
创建模板文件
cd ..
mkdir templates
cd templates
新建Security.mak文件 内容如下
<h2>
Server info for ${request.host}
</h2>
<p>
The URL you called: ${h.url_for()}
</p>
模板创建完毕 访问路径同访问点 http://127.0.0.1:5000/wiki/
模板文件本身是不公开的 这是与JSP页面最大的区别
若要在模板文件中使用如c.info这样的变量 可以在之前调用它的Py文件中定义
各Controller中Public目录是存放静态文件及资源文件的地方 对应各项目根目录
PostgreSQL数据库在Pylons中的应用及其注意事项
下载安装 PostgreSQL http://www.postgresql.org/ftp/
下载安装 win-psycopg http://stickpeople.com/projects/python/win-psycopg/
修改development.ini文件
sqlalchemy.dburi = postgres://postgres:password@localhost/quickwiki
封装项目
python setup.py bdist_egg
dist目录下会生成egg封装包
安装封装包到Python 进入dist目录
easy_install wiki-0.0.0dev-py2.4.egg
至此大部分工作已经完成
19:45 Posted in Studies | Permalink | Comments (0) | Email this | Tags: Pylons study records
Wednesday, June 06, 2007
Pylons study records --- part one
下载安装 Python2.4.4
http://www.python.org/ftp/python/2.4.4/python-2.4.4.msi
默认安装就可以了 next to finished
增加 C:\Python24 到你的path环境变量中 (1)
在线自动安装 访问Pylons安装文件
http://peak.telecommunity.com/dist/ez_setup.py
将之保存在E盘根目录 打开command窗口 访问E盘 键入
python ez_setup.py Pylons
注意大小写 等待一会 大概两三分钟(1MADSL)
手动下载安装 下载Pylons最新版本
http://pylonshq.com/download/
将文件解压到E盘Pylons目录 开启command窗口 键入
python setup.py install
完成手动安装所有文件
(1)可以将以下path预先加入 若已加入可忽视下行代码
完了关闭command窗口 增加 C:\Python24\Scripts 到你的path环境变量中
创建Pylons项目 开启command窗口 访问E盘 键入
paster create --template=pylons wiki
paster create --template=pylons blog
创建View Controller视图控制器(访问点)
相当于Java Servlet 不过现在是由Python写成而已
cd wiki
paster controller history
直接键入以下内容即可访问history
paster serve --reload development.ini
访问路径为 http://127.0.0.1:5000/history
同理可创建blog下的music视图控制器
将此Pylons项目加入Apache中
编辑development.ini文件 在适当位置添加如下代码
[app:main]
filter-with = proxy-prefix
[filter:proxy-prefix]
use = egg:PasteDeploy#prefix
prefix = /wiki
注意更改不用的端口号和prefix路径
进入Apache项目 编辑http.conf文件 键入如下代码
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
<VirtualHost *>
ServerName MyDomain
ProxyPass /wiki http://localhost:5000
ProxyPassReverse /wiki http://localhost:5000
ProxyPass /blog http://localhost:4321
ProxyPassReverse /blog http://localhost:4321
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>
重新启动Apache服务器 访问地址为
http://localhost/wiki/history
http://localhost/blog/music
wiki和blog就是Pylons项目 这里作为服务
history和music就是访问点 这里作为具体功能
可以创建多个Pylons项目同时运行 作为Apache下的各种服务
19:10 Posted in Studies | Permalink | Comments (0) | Email this | Tags: Pylons study records
Friday, February 17, 2006
H264(avi mkv)编码片源 播放完全解决方案
The Core Pocket Media Player & CoreAVC Plugin 下载地址
http://picard.exceed.hu/tcpmp/test/
CoreAVC AVC AAC codec plugin for TCPMP Windows / Win32
http://www.freewebs.com/alviso/avc.win32.0.71h.zip
Cole2k Media Codec Pack (Standard) 下载地址
http://www.cole2k.net/?display=Codec-Pack-Standard
更新主板BIOS至最新 装载默认状态Load default
在全新安装好的操作系统上 安装最新的DirectX 不重启
安装驱动程序(主板、显卡、声卡) 重启
现在试着放你的H264编码的片子,如果还卡的话就真的是你机器(硬件)上的问题了
机器快的朋友我建议直接安装 Cole2k Media Codec Pack (Standard) 一步搞定所有一切Okay!
09:40 Posted in Studies | Permalink | Comments (0) | Email this | Tags: H264 mkv Cole2k Media Codec Pack Standard
Sunday, November 14, 2004
Adobe Acrobat Reader
Adobe Acrobat Reader 5.05
http://ardownload.adobe.com/pub/adobe/acrobatreader/win/5.x/ar505enu.exe
Adobe Acrobat Reader 5.05 Language Support Kit
ftp://ftp.uni-koeln.de/www/acrobat-reader/win32/
11:20 Posted in Studies | Permalink | Comments (0) | Email this | Tags: Adobe Acrobat Reader 5.05

