顯示具有 Debug 標籤的文章。 顯示所有文章
顯示具有 Debug 標籤的文章。 顯示所有文章

2008年5月24日 星期六

Project 1: Environment Setup

Project 1: Environment Setup

Q4: When installing Fedora on top of VMware, the following error: "No hard drive devices..."

A4: This is a bug for VMware version greater than 4.5 (if you are using VMware4, no such problem). You need to add the following line to your .vmx file (in most cases, it is called redhat.vmx. It is a 1kb file in your virtual machine directory): scsi0.virtualDev = "lsilogic". Power off your virtual machine, then start it again. This will solve the problem. (This information is also in document Installing Fedora 5.5 over VMware).

之後啟動VMware之後,問你要不要change?選擇不要,enjoy~

2008年4月25日 星期五

Vista SP1 跟 KIS7 更相容

話說,我之前用卡巴斯基KIS7,

開機時,我的vista常常會halting,

前幾天昇級成Vista SP1之後,

到現在每次開機都正常了,

呵呵,Vista SP1好物啊,雖然有點大,

大家還是快昇級吧!

2008年4月6日 星期日

ASUS w7j black notebook插圓剛三頻Express 隱形電視卡經驗談

不知是啥原因,我的notebook: ASUS w7j black插圓剛三頻Express 隱形電視卡時,
第一次都會抓不到,待插上10秒後,拔下來,再立刻插上第二次,就可以抓到了,
試了很多次都是這樣,不曉得是啥原因…

2008年3月29日 星期六

firefox瀏覽器出現menuitem? - Yahoo!奇摩知識+

firefox瀏覽器出現menuitem? - Yahoo!奇摩知識+
原因就是 Java不相容

解決辦法是移除現在舊有的Java
然後安裝新的Java版本

新版本的超連結如下,你去 firefoxw討論區,也可以看到公告它提供的這個連結

JAVA 軟體

2008年3月16日 星期日

judge system must return all function value

11417 GCD why WA?

following code judge with C++ got WA,why?

Code:

#include <iostream>
using namespace std;
long int GCD(long int x,long int y){
   if(0==y)return x;
   else if(0==x)return y;
   if(x<y)GCD(x,y%x);
   else GCD(y,x%y);
}
int main()
{
   long int i=0,j=0,N=0;
   long int GGG=0;
   while(cin>>N){
      if(0==N)break;
      GGG=0;
      for(i=1;i<N;i++)
      for(j=i+1;j<=N;j++)
      {
         GGG+=GCD(i,j);
      }
      cout<<GGG<<endl;
   }
   return 0;
}

and I use same method to store the cout value to the array with VC 2005,
it works and got AC... it's impossible! how could this happen?
why this code get WA?

Ans:

your GCD function doesn't return if x!=0 && y!=0.
change

Code:

   if(x<y)GCD(x,y%x);
   else GCD(y,x%y);

to

Code:

   if(x<y)return GCD(x,y%x);
   else return GCD(y,x%y);

online-judge.uva.es :: View topic - a question about submission

online-judge.uva.es :: View topic - a question about submission
did you use void main()? that now gets CE or RE, for the new server use int main(){ return 0; } for C++

songlj wrote:
thx for ur reply
but actually i did use int main() {...return 0;} and still got CE
i'm now confused


I've got some compilations errors too, but I managed to discover where. For example, this code gives CE (in C++):

Code:

struct XXX {
static const int YYY = 10;
};


Instead, you have to do:

Code:

struct XXX {
static const int YYY;
};
const int XXX::YYY = 10;


Hope that helps.

2008年3月1日 星期六

funP 快看- [教學]使用Firefox瀏覽器無法下載BADONGO空間的解決辦法 @ ishare 電腦備

funP 快看- [教學]使用Firefox瀏覽器無法下載BADONGO空間的解決辦法 @ ishare 電腦備: "在我的附加元件當中,有個'MR Tech Link Wrapper Lite',只要把這個元件移除那麼似乎一切就恢復正常囉!!那麼這個元件是做什麼的?
[MR Tech Link Wrapper Lite] 是當你使用Firefox在複製SMG編碼的時候會出現編碼不完整的時候,只要加裝了MR Tech Link Wrapper Lite這個套件便可以解決這個問題,這個教學我之前也有寫過了,現在因為BADONGO空間改版的原因,造成了跟MR Tech Link Wrapper Lite套件衝突,致使無法順利下載。"

2008年1月6日 星期日

Yahoo! Answers - Windows explorer problem help!!! Urgent!?

Yahoo! Answers - Windows explorer problem help!!! Urgent!?

It would appear that you have corruption in your critical operating system files.

First update and scan your computer with your security products such as antivirus and antispyware applications in Safe Mode. If your computer comes up clean after running your resident security products, you may want to consider running a System File Checker (SFC). This can also be run in Safe Mode should you prefer.

To get into Safe Mode, reboot and then either hold down or tap the F8 key repeatedly while the computer is starting up. To run SFC, close all applications such as Office, Messenger, Email, etc, and go to:

- Start
- Run
- Type in sfc /scannow (include the space before the " / ")

What SFC does is that it attempts to fix or replace critical operating system files. Sometimes this can be done without the installation disk, however it may prompt you for the appropriate operating system installation disk. If that is the case, then you know that you definitely have major file corruption or something missing. Insert the disk if prompted. Also you should run SFC using the Administrator account.

If you have the Vista operating system, the steps are a bit different due to the UAC. See the link below.
http://vistasupport.mvps.org/system_file...

Don't surf, play games or do anything while SFC runs. After it is completed, reboot your computer.

One of the major culprits in missing or corrupt operating system files is running a registry cleaner or optimizer. They can flag important shared files for deletion or cleanup. Another cause is malware.

NOTE: Before running any registry cleaner or editing the registry, always ensure you back it up first. If the registry cleaner you are using doesn't have that function, you can do it manually. http://support.microsoft.com/kb/322756

2007年9月12日 星期三

Not My Business: 解決 Firefox 底下出現 menuitem 紅字

Not My Business: 解決 Firefox 底下出現 menuitem 紅字

解決 Firefox 底下出現 menuitem 紅字

這幾天可能有許多人陸續遇到Firefox遇到底部出現menuitem的錯誤訊息,這個問題是更新java的問題,現在也有不同的解決方式,有的是進入Mozilla Firefox的目錄改程式碼,有的是下載修正檔,我是懶得改東西,又不想亂下載檔案,只要按一按就可以解決的問題就不需要搞的太複雜

2007年4月5日 星期四

在 Windows Vista 上安裝 Visual Studio 2005,但無法偵錯專案 - 微軟技術社群討論區

在 Windows Vista 上安裝 Visual Studio 2005,但無法偵錯專案 - 微軟技術社群討論區

症狀:
在 Windows Vista 安裝了 Visual Studio 2005,但是要啟動除錯器偵錯專案時,會出現無法偵錯的錯誤訊息。
原因:
Windows Vista 的 User Account Control (UAC, 使用者帳戶控制) 機制把偵錯指令擋住了,所以偵錯器會失效無法執行。
解決方法:
使用系統管理員模式執行 Visual Studio 即可解決。

2007年3月9日 星期五

Madthiu's PALACE :: 快治 Firefox 猛耗記憶體問題

Madthiu's PALACE :: 快治 Firefox 猛耗記憶體問題
首先在 Firefox 的 address bar 內輸入 about:config 來打開「隱藏」的設定頁面。之後在頁內那 Filter 欄內輸入 “capacity”, 看到只會剩下 “browser.cache.disk.capacity” 一項,雙擊這選項,把預設的 50000 設成 5000 就可以了(我那是公司的電腦,系統記憶體只有 512MB)。文中提到,系統記憶體是 128MB-512MB 的話就建議把這設成 5000,512MB-1GB 的就設成 15000。上至 1GB 系統記憶體的也只需設成 15000,那可想而知那預設的 50000 是多麼的過份!改動這個前,我公司那 Firefox 用了半天,開著近 30 個分頁,會用上約 190MB 記憶體,那時已覺得系統要經常做 swapping,Firefox 的反應也不太好;改動以後,就算 Firefox 沒關閉過,由早上用至放工前,也是開著近 30 個分頁,Firefox 也只是佔用了約 110MB 記憶體,效果超過 40% 啊!