http://www.mydigitallife.info/firefox-tips-refresh-firefox-webpage-content-without-clearing-cache-disable-automatic-file-scanning-after-file-download/
In the address bar of FireFox, type about:config
and filter browser.download.manager.scanWhenDone
then double click what it is shown as the filter, which will toggle the setting value
Tip 2: Disable automatic file scanning after file download
When you download a file, Firefox will scan the file automatically once the file is completed downloading. This feature is good to protect your PC from virus attack. However, it may take longer time to download the file if the file size is huge. If you have an up-to-date anti-virus installed, probably you can consider disabling this feature to get faster downloading speed. To disable file scanning, type about:config in address bar then press enter. Click “I will be careful, I promise!” button. On filter bar, type browser.download.manager.scanWhenDone, you will see the Boolean value set as true by default. To change the value to false, just double click on the entry.
Wednesday, September 28, 2011
FireFox Refresh Problem
I. about:config
(This method works!!!)
http://ticket.betterbuilt.com/KB/a26/how-to-force-firefox-to-reload-the-page-and-ignore-cache.aspx
You can use Ctrl + F5 for a single use basis, or if you want firefox to always reload the page then type this into the address bar:
about:config
type this into the filter:
browser.cache.check_doc_frequency
change the value to: 1
more info:
3 - only check if it seems outdated
2 - always use cached version
1 - always check for newer version
0 - check for newer version once per session
II. Ctrl + F5
(This method sometimes works, but most of the time it fails to fetch newly modified css and javascripts)
http://www.mydigitallife.info/firefox-tips-refresh-firefox-webpage-content-without-clearing-cache-disable-automatic-file-scanning-after-file-download/
After there is a change in a javascript and the reload of the page, FireFox still displays the old content, but not refresh it
(This method works!!!)
http://ticket.betterbuilt.com/KB/a26/how-to-force-firefox-to-reload-the-page-and-ignore-cache.aspx
You can use Ctrl + F5 for a single use basis, or if you want firefox to always reload the page then type this into the address bar:
about:config
type this into the filter:
browser.cache.check_doc_frequency
change the value to: 1
more info:
3 - only check if it seems outdated
2 - always use cached version
1 - always check for newer version
0 - check for newer version once per session
Article ID: 26, Created On: 2009-04-07, Modified: 20
II. Ctrl + F5
(This method sometimes works, but most of the time it fails to fetch newly modified css and javascripts)
http://www.mydigitallife.info/firefox-tips-refresh-firefox-webpage-content-without-clearing-cache-disable-automatic-file-scanning-after-file-download/
After there is a change in a javascript and the reload of the page, FireFox still displays the old content, but not refresh it
It's due to the fact that FireFox uses the content from the cache
To avoid the refresh difficulty, use the shortcut key of Ctrl + F5
Make sure it is not Ctrl + Clicking F5, which will open the current page in a new tab
Tuesday, September 27, 2011
Monitor CPU Usage
http://www.xp-tips.com/cpu-meter.html
You can easily monitor resource use by keeping the CPU meter from Windows Task Manager running in your system tray:

Here's how:
1: Key Control/Alt/Delete to open the Windows Task Manager.
2. Click "Options" and then check "Minimize on Use" and "Hide when Minimized."
3. Click the "minimize" button rather than the "close" button and the little resource meter will stay in your system tray and let you see how hard your processor is working.
The amount of light green in the resource meter gives a quick visual indication of your CPU usage.

Hold your mouse over the icon to see the actual percentage of resources being used. Double click the icon for quick access to the Task Manager.
CPU usage will vary significantly depending on what tasks your computer is working on. However, if the CPU meter fills with light green and remains that way for more than a few minutes, it is probably a good idea to free up some CPU resources by closing a few running applications. If closing applications doesn't help, it might be time to reboot your computer. Of course, if your computer is performing a prolonged CPU intensive task such as scanning, high CPU usage is no real cause for concern.
If you no longer want the CPU meter running in your system tray, simply double click the icon to open the task manager and then click the "Close" button. The Windows Task Manager will close and the CPU meter will no longer be displayed.
Keeping an eye on your computer's CPU usage can help you to avoid trouble before it strikes.
*How to let the Task Manager start when the Windows starts
1. Find the path of the program: c:\WINDOWS\system32\taskmgr.exe
2. Make a ShortCut link of it there: taskmgr.lnk
3. Move the ShortCut link to the Start Folder: c:\Documents and Settings\Olympics\시작 메뉴\프로그램\시작프로그램\taskmgr.lnk
You can easily monitor resource use by keeping the CPU meter from Windows Task Manager running in your system tray:
Here's how:
1: Key Control/Alt/Delete to open the Windows Task Manager.
2. Click "Options" and then check "Minimize on Use" and "Hide when Minimized."
3. Click the "minimize" button rather than the "close" button and the little resource meter will stay in your system tray and let you see how hard your processor is working.
The amount of light green in the resource meter gives a quick visual indication of your CPU usage.
Hold your mouse over the icon to see the actual percentage of resources being used. Double click the icon for quick access to the Task Manager.
CPU usage will vary significantly depending on what tasks your computer is working on. However, if the CPU meter fills with light green and remains that way for more than a few minutes, it is probably a good idea to free up some CPU resources by closing a few running applications. If closing applications doesn't help, it might be time to reboot your computer. Of course, if your computer is performing a prolonged CPU intensive task such as scanning, high CPU usage is no real cause for concern.
If you no longer want the CPU meter running in your system tray, simply double click the icon to open the task manager and then click the "Close" button. The Windows Task Manager will close and the CPU meter will no longer be displayed.
Keeping an eye on your computer's CPU usage can help you to avoid trouble before it strikes.
*How to let the Task Manager start when the Windows starts
1. Find the path of the program: c:\WINDOWS\system32\taskmgr.exe
2. Make a ShortCut link of it there: taskmgr.lnk
3. Move the ShortCut link to the Start Folder: c:\Documents and Settings\Olympics\시작 메뉴\프로그램\시작프로그램\taskmgr.lnk
Tuesday, September 20, 2011
[CI] firePHP
FireFox의 AddIn으로서
PHP 프로젝트에서 로그를 FireFox의 Console에 나타나도록 한다
1. firephp: FireFox Add-In
FireFox에서 http://firephp.org/ 를 방문하여 설치
2. FirePHP Server Library
http://www.firephp.org/HQ/Install.htm
다운 받은 firePHP core library의 압축을 풀어 줍니다. 그리고 application/libraries 디렉토리에 FirePHP.class.php파일을 복사 해 주고, 파일의 이름을 firephp.php로 바꿔 줍니다.
<>사용법
$this->firephp->log($myvariable) : FireBug console에 $myvarriable 값의 덤프를 보냄.
$this->firephp->warn($myvariable) : FireBug console에 $myvarriable 값의 덤프를 warning으로 분류해서 보냄.
$this->firephp->error($myvariable) : FireBug console에 $myvarriable 값의 덤프를 error으로 분류해서 보냄.
$this->load->library('firephp');
$myvariable = array (
'language' => 'PHP',
'database' => 'MySQL',
'blogging platform' => 'WordPress',
'post' => 'CodeIgniter and FirePHP',
);
$this->firephp->log($myvariable);
?>
<>특정 IP만 가능하게 하기
if($this->input->ip_address() =='1.2.3.4')
{
$this->firephp->setEnabled(TRUE);
}
else
{
$this->firephp->setEnabled(FALSE);
}
?>
PHP 프로젝트에서 로그를 FireFox의 Console에 나타나도록 한다
1. firephp: FireFox Add-In
FireFox에서 http://firephp.org/ 를 방문하여 설치
2. FirePHP Server Library
http://www.firephp.org/HQ/Install.htm
다운 받은 firePHP core library의 압축을 풀어 줍니다. 그리고 application/libraries 디렉토리에 FirePHP.class.php파일을 복사 해 주고, 파일의 이름을 firephp.php로 바꿔 줍니다.
<>사용법
$this->firephp->log($myvariable) : FireBug console에 $myvarriable 값의 덤프를 보냄.
$this->firephp->warn($myvariable) : FireBug console에 $myvarriable 값의 덤프를 warning으로 분류해서 보냄.
$this->firephp->error($myvariable) : FireBug console에 $myvarriable 값의 덤프를 error으로 분류해서 보냄.
$this->load->library('firephp');
$myvariable = array (
'language' => 'PHP',
'database' => 'MySQL',
'blogging platform' => 'WordPress',
'post' => 'CodeIgniter and FirePHP',
);
$this->firephp->log($myvariable);
?>
<>특정 IP만 가능하게 하기
if($this->input->ip_address() =='1.2.3.4')
{
$this->firephp->setEnabled(TRUE);
}
else
{
$this->firephp->setEnabled(FALSE);
}
?>
[CI] Modular Extensions - HMVC
https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/wiki/Home
오른쪽 끝에 있는 get source에서 소스를 받아서
https://github.com/tariqrahiman/hmvc/zipball/master
압축파일 안의 core 디릭토리에 있는 파일 두개는 application/core에
third_party 디렉토리의 MX 디렉토리를 application/third_party로 통째 복사해 넣는다
application/core/MY_Loader.php
application/core/MY_Router.php
application/third_party/MX/
application 디렉토리에 modules를 만들고 그 밑에 새 프로젝트 디렉토리를 만들고, 거기에 controllers, views, models 디렉토리를 만든다
(application/modules/NEW PROJECT/ controllers, views, models)
1. 리유
CodeIgniter를 Modules 로 전환하도록 함2. 설치
홈페이지가 bitbucket으로 되어 있음오른쪽 끝에 있는 get source에서 소스를 받아서
https://github.com/tariqrahiman/hmvc/zipball/master
압축파일 안의 core 디릭토리에 있는 파일 두개는 application/core에
third_party 디렉토리의 MX 디렉토리를 application/third_party로 통째 복사해 넣는다
application/core/MY_Loader.php
application/core/MY_Router.php
application/third_party/MX/
3. 사용
설정을 별도로 하지 않아도 CodeIgniter만 사용할 때와 똑같이 하면 된다application 디렉토리에 modules를 만들고 그 밑에 새 프로젝트 디렉토리를 만들고, 거기에 controllers, views, models 디렉토리를 만든다
(application/modules/NEW PROJECT/ controllers, views, models)
* Good Features
새로운 프로젝트를 만들 때 modules 밑에 만든 프로젝트 디렉토리를 그대로 옮기면 되어서 간단하고 편하다[php] date timezone
Whenever there is an error, PHP throws an additional error/warning message on the web browser that the timezone should be set
Here is what I found as I read a PHP tutorial book Beginning PHP 5.3 by Matt Doyle
Set the date/timezone setting to avoid the warning that PHP borrows it from the system
To configure the setting, use phpinfo();
1. Find the location of the ini file: Loaded Configuration File
C:Program FilesPHPphp.ini
2. Look to see if it has already set in the phpinfo(); result
It is around halfway down the page
3. To set the value in the ini file
Open the ini file, and find date.timezone =
4. Go to http://php.net/timezone and select one: Asia/Seoul
and add it after the equal sign
5. Rerun Apache and phpinfo();
Here is what I found as I read a PHP tutorial book Beginning PHP 5.3 by Matt Doyle
Set the date/timezone setting to avoid the warning that PHP borrows it from the system
To configure the setting, use phpinfo();
1. Find the location of the ini file: Loaded Configuration File
C:Program FilesPHPphp.ini
2. Look to see if it has already set in the phpinfo(); result
It is around halfway down the page
3. To set the value in the ini file
Open the ini file, and find date.timezone =
4. Go to http://php.net/timezone and select one: Asia/Seoul
and add it after the equal sign
5. Rerun Apache and phpinfo();
CodeIgniter and EclipsePDT
The method explained below is sort of simple and supprizingly the auto_completion is workable
Some more good features can be obtained with this method
1. A lot of web projects can be handled without launching the EclipsePDT again
To do that, make as many Web Directories as needed and copy CodeIgniter files in each directory
And Make a new PHP Project with a different name and connect it with CI_CORE
The result is that only one System Directory of the CodeIgniter is used and each project has its own copy of the application directoy
Even if each Web Directory contains a system directory, they are not used
-----------------------------------------
This method separates the code directory (i.e. Web Directory) from the project directory which happens to be the Eclipse Workspace
1. Create a Web Directory
(Or use an existing directory)
If there are none of the CodeIgniter files, copy them here
2. Create a Workspace Directory
(This one happens to be the project directory in the EclipsePDT)
3. Launch the EclipsePDT
4. Switch Workspace to the Workspace Directory
5. Make a new PHP Project and link it to the System folder in the Web Directory and call it CI_CORE
6. Make a new PHP Project and link it to the application folder in the Web Directory and name it CI_APP
7. Open the properties window of CI_APP by Right clicking it
Go to PHP Include Path => Projects -> Add
Add the CI_CORE
Some more good features can be obtained with this method
1. A lot of web projects can be handled without launching the EclipsePDT again
To do that, make as many Web Directories as needed and copy CodeIgniter files in each directory
And Make a new PHP Project with a different name and connect it with CI_CORE
The result is that only one System Directory of the CodeIgniter is used and each project has its own copy of the application directoy
Even if each Web Directory contains a system directory, they are not used
-----------------------------------------
This method separates the code directory (i.e. Web Directory) from the project directory which happens to be the Eclipse Workspace
1. Create a Web Directory
(Or use an existing directory)
If there are none of the CodeIgniter files, copy them here
2. Create a Workspace Directory
(This one happens to be the project directory in the EclipsePDT)
3. Launch the EclipsePDT
4. Switch Workspace to the Workspace Directory
5. Make a new PHP Project and link it to the System folder in the Web Directory and call it CI_CORE
6. Make a new PHP Project and link it to the application folder in the Web Directory and name it CI_APP
7. Open the properties window of CI_APP by Right clicking it
Go to PHP Include Path => Projects -> Add
Add the CI_CORE
Subscribe to:
Posts (Atom)