Official Site
#include
範例:我的 /dev/hdb 掛載到 /disk2 下,如何安裝 grub 到 /dev/hdb ?[root@linux ~]# grub-install --root-directory=/disk2 /dev/hdb
does not have any corresponding BIOS drive
# grub-install --recheck /dev/sda這種問題是因為,Source Code中的main,也就是我們預計的程式enrty point 與VS預期的名字相異,造成VS抓不到entry point,當然就出現了unresolved symbol。一般來說,是由於SubSystem沒設定好所造成的。 更改Linker->System->SubSystem即可
/* Style for Label Cloud */
#labelCloud {
text-align: center;
}
#labelCloud .label-cloud li{
display: inline;
background-image: none !important;
padding: 0 5px;
margin: 0;
vertical-align: baseline !important;
border: 0 !important;
}
#labelCloud ul{
list-style-type: none;
margin: 0 auto;
padding: 0;
}
#labelCloud .label-count {
padding-left: 0.2em;
font-size: 9px;
color: #777;
}<!-- User defined inline javascript -->
<script language='javascript' type='text/javascript'>
<!-- Functions used for Label Cloud: adjustLabel(), generateLabels()-->
var labels = new Object;
function adjustLabel(min, max, weight, total) {
if (min > max)
var temp=(min-max)/Math.log(total), result=min-Math.floor(Math.log(weight)*temp);
else
var temp=(max-min)/Math.log(total), result=Math.floor(Math.log(weight)*temp+min);
return result;
}
function generateLabels(){
var blogURL = 'http://abinlee.blogspot.com';
var maxFontSize = 18;
var minFontSize = 11;
var maxColor = [204,204,204];
var minColor = [119,119,119];
var showCount = true;
var labelColor= [];
var labelSize = 0;
var labelCount = new Array();
for (var i in labels)
if (!labelCount[labels[i]])
labelCount[labels[i]] = new Array(labels[i])
total = labelCount.length-1;
section = document.getElementById('labelCloud');
ul = document.createElement('ul');
ul.className = 'label-cloud';
for(var tag in labels) {
for (var i=0; i < 3; i++)
labelColor[i]=adjustLabel(minColor[i], maxColor[i], labels[tag], total);
labelSize = adjustLabel(minFontSize, maxFontSize, labels[tag], total);
li = document.createElement('li');
li.style.fontSize = labelSize+'px';
a = document.createElement('a');
a.title = labels[tag]+' articles with Label: '+tag;
a.style.color = 'rgb('+labelColor[0]+','+labelColor[1]+','+labelColor[2]+')';
a.href = blogURL+'/search/label/'+encodeURIComponent(tag);
if (showCount) {
span = document.createElement('span');
span.innerHTML = '('+labels[tag]+') ';
span.className = 'label-count';
a.appendChild(document.createTextNode(tag));
li.appendChild(a);
li.appendChild(span);
}
else {
a.appendChild(document.createTextNode(tag));
li.appendChild(a);
}
ul.appendChild(li);
ul.appendChild(document.createTextNode(' '));
}
section.appendChild(ul);
}
</script>
<b:widget id='Label1' locked='false' title='Labels' type='Label'>
<b:includable id='main'> <!-- Add Label Cloud -->
<b:if cond='data:title'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content'>
<div id='labelCloud'/>
<script type='text/javascript'>
<b:loop values='data:labels' var='label'>
labels["<data:label.name/>"] = <data:label.count/>;
</b:loop>
generateLabels();
</script>
<noscript>
<ul>
<b:loop values='data:labels' var='label'>
<li>
<b:if cond='data:blog.url == data:label.url'>
<data:label.name/>
<b:else/>
<a expr:href='data:label.url'><data:label.name/></a>
</b:if>
(<data:label.count/>)
</li>
</b:loop>
</ul>
</noscript>
<b:include name='quickedit'/>
</div>
</b:includable>
</b:widget>
<script type='text/javascript'>
<!-- Function used for Sidebar Element Toggling: ElementToggle()-->
function ElementToggle(id) {
var element = document.getElementById(id).getElementsByTagName('div');
for(i = 0; i < element.length; i++) {
attribute = element[i].getAttribute('id');
if(attribute == 'toggle')
{
if (element[i].style.display == 'none')
element[i].style.display = 'inline';
else
element[i].style.display = 'none';
}
}
}
</script>
接下來,要去修改元件 (Widget) 的程式碼。同樣以個人資料 (Profile) 元件為例,找 <b:widget ...> 開頭 </b:widget> 結尾的區段,應該是類似下面這樣:
<b:widget id='Profile1' locked='false' title='AUTHOR PROFILE' type='Profile'>
<b:includable id='main'>
<b:if cond='data:title != ""'>
<h2><data:title/></h2>
</b:if>
<div class='widget-content'>
............. (程式內文略過不表)
</b:includable>
</b:widget>
這個元件的 ID = Profile1,是範本裡用來識別該元件的方法,接下來要插入動態切換的連結,可以用圖片(此處我用[+/-]代替)
<b:widget id='Profile1' locked='false' title='AUTHOR PROFILE' type='Profile'>
<b:includable id='main'>
<b:if cond='data:title != ""'>
<h2><data:title/><a href='javascript:void(0); style='float:right;margin:-23px 0;' onclick='javascript:ElementToggle("Profile1");'>[+/-]</a></h2>
</b:if> <div class='widget-content' id='toggle' style='display:none;'>
............. (程式內文略過不表)
</b:includable>
</b:widget>
pulseaudio可以輸出到常用的alsa oss 驅動的裝置,esound server,遠端電腦(rtp),或甚至是windows 的waveout驅動.Note: 1. mplayer設定成pulse輸出的話,會crash. 改用esd輸出。
可以接收來自
1.有支援pulseaudio的程式(xine,bmpx,audacious等等)
2.透過alsa-lib的plugin讓所有支援alsa的程式使用pulseaudio
3.支援esd的程式..pulseaudio可以完全取代esd
4.OSS模擬 (像是aoss一樣,可以給java發出聲音)
其他其他...
大概分享一下我在我電腦上使用pulseaudio的安裝方法apt-get install pulseaudio pulseaudio-module-x11 paman pavucontrol pulseaudio-esound-compat pulseaudio-utilsmodule-x11 讓x11發出的警告beep聲音透過pulseaudio發出,像是..命令列已經沒有東西了又按backspace就會逼..vi裡面亂按也會..
paman pulseaudio manager可以讓你看目前server的狀態,所有的input/output
pavucontrol 音量控制,這個一定要裝,可以控制個別程式的音量
修改 /etc/pulse/default.pa
輸出輸入### Load audio drivers statically輸出到alsa的dmix裝置,
load-module module-alsa-sink device=dmix
load-module module-alsa-source device=plughw:1,0
從硬體1,0來錄音,你也可以設定成dsnoop
其實,修改到這樣子就可以用了...
不過我還加了esd的功能..
load-module module-esound-protocol-tcp auth-ip-acl=10.11.12.13;192.168.50.0/24;127.0.0.0/8讓那些ip可以透過tcp把聲音送到本機,或是也可以用unix socket
load-module module-esound-protocol-unix
恩...就先這樣,執行pulseaudio之前.要先建立esd socket,不然,本機也會用tcp連線mkdir -p /tmp/.esd執行看看
chmod 1777 /tmp/.esd
touch /tmp/.esd/socket
chmod 777 /tmp/.esd/socketpulseaudio --verbose
ps -wwaux|grep authYou'll find the existing session's auth. Here's the file used by Enlightenment 17.
x11vnc -auth /var/:0.XauthAlso, you need a password for authentication of remote connection.
Xlib: connection to ":0.0" refused by serverGoogle it and find the solution:
Xlib: No protocol specified
sudo xhost local:kimkBut I still don't understand why.
Authentication failedor use command line to type "sudo update-manager -c -d", get more specific message:
Authenticating the upgrade failed. There may be a problem with the network or with the server.
extracting ‘/tmp/tmpVuEU0n/feisty.tar.gz’It's obvious that we don't have a gpg authentication. So, just type gpg ,as a normal user. Once it says Go ahead and type your message …, you can just press Ctrl-C to get back to the command prompt.
authenticate ‘/tmp/tmpVuEU0n/feisty.tar.gz’ against‘/tmp/tmpVuEU0n/feisty.tar.gz.gpg’
exception from gpg: GnuPG exited non-zero, with code 131072
cvsup -h cvsup2.freebsd.org -g -L 2 /usr/share/examples/cvsup/standard-supfileObviously, you can use whichever cvsup server you want. You can install fastest_cvsup to fins what server is fastest for your location as well. If this is the first time you are cvsup-ing, it will take some time. When it completes, we will continue.
cp /usr/src/sys/i386/conf/GENERIC /usr/src/sys/i386/conf/GENERICVESAName it to whatever you want.
vi /usr/src/sys/i386/conf/GENERICVESAYou will see, a couple of lines down an "ident GENERIC" line. You can change this if you want. It will be the display of the kernel in uname.
options VESA
options SC_PIXEL_MODE
cd /usr/srcNow, you won't get the resolution just yet, we're not quite done. Boot back up and do the following:
make buildkernel KERNCONF=GENERICVESA
make installkernel KERNCONF=GENERICVESA
reboot
kldload vesaYou should see a punch of different modes. Scroll through and find one you'd like. For me, 1024x768x24 is the size I want. The first column shows the mode number, mine being 280.
vidcontrol -i mode | less
vidcontrol MODE_xxxSubstituting "xxx" for the number of the mode you want. The screen will go bank for a second, then it should come back with the prompt. If it cannot handle the resolution you specified, it should return with an error.
vi /boot/loader.confadd the line :
vesa_load="NO"change it to "YES" (maintaining caps)
vi /etc/rc.confand add to the end:
allscreens_flags="MODE_xxx"
Wiki是一種可在網路上開放多人協同創作的超文本系統
一個wiki網站讓人能夠用網頁瀏覽器以及很簡單的標記語言合作撰寫文件。wiki技術的關鍵特質是能輕易用來創造與更新許多網頁。一般來說,改變網頁是不經審核的。大部分的wiki都是公開給一般大眾,不用註冊帳號。有些wiki會替使用者自動簽名,並且要求使用者持有一個「cookie」。私人的wiki之中,大多會要求身分認證。大部分的編輯都是即時的,而且幾乎會立即出現在網路上。這一點常導致系統被濫用。-----引自wikipedia
Received message too long 1500476704
問題出在大家的 .bashrc/.tcshrc/.cshrc 這幾個檔案裡面。
如果我們在 .tcshrc/.cshrc/.bashrc 裡面 echo 一些東西,
或者是執行像是 date, nfrm, whosebirthday 等會印出東西的
動作,因為 sftp 執行時也會去執行這些檔案中的動作,所以
當這些檔案一輸出東西,sftp 的 server 就產生錯誤,而導致
上面所說的錯誤訊息並且斷線。
个人认为 RAW 的主要优势不是分辨率,而是层次,12-bit 的 RAW 在层次上会明显强过 8-bit 的 JPEG,内置的 TIFF 也是 8-bit 的,所以实际价值不是太大。另外 12-bit 意味着可能具有更大的动态范围(具体的动态范围增加的幅度与机器有关)。
但是显然的,人眼对色彩和层次的分辨率是比较低的,不如对明度的分辨率,因而人眼看起来 100% 大小的 RAW 与 JPG 不会有明显区别,但放大到 400% 时就会有区别。我们似乎更重要的是提高色彩层次,从而具有更多的后期调整的空间。
Intel 945 & 950 Graphics
* Users are reporting that it will crash into a black screen. A message saying that the Display driver stopped responding and has recovered will follow. It has been reproduced in-house. Some users reported success using a new set of drivers drivers for the 945/950 series. These are released 2/4/07.
Desktop 945: http://downloadfinder.intel.com/scripts-df-external/Product_Filter.aspx?ProductID=2102&lang=eng
Mobile 945: http://downloadfinder.intel.com/scripts-df-external/Product_Filter.aspx?ProductID=2301
We are currently testing the game on these drivers. Early test indicate that these drivers have fixed the crash on the areas we have noted. If you want, try them and report your findings here.