Looks like there is trojan on the system and this happen. If you don't want to reinstall the system, simply scan the trojan and here is how to fix the error.
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\batfile\shell\edit\command] = %SystemRoot%\System32\NOTEPAD.EXE %1"
Notice at the end, there is a single ". You need to remove that " and it should work like a charm.
PS: Above path is for the .bat. For .ini, you need to find inifile and so on.
This is my cheat sheet if I have to look back for an answer for problems. You're welcome to add or comment the answer.
Friday, July 25, 2008
Monday, July 21, 2008
In Cpanel, httpd can't start
If you use cpanel and happen httpd can't start with the error
root@s30 [~]# /etc/init.d/httpd start
[Tue Jul 1 04:21:41 2008] [info] mod_ssl:Compat: MAPPED 'SSLEnable' => 'SSLEngine on'
[Tue Jul 1 04:21:41 2008] [info] mod_ssl:Compat: MAPPED 'SSLLogFile
/usr/local/apache/domlogs/dis**********.org-ssl_data_log' => 'SSLLog
/usr/local/apache/domlogs/dis*******.org-ssl_data_log'
[Tue Jul 1 04:21:41 2008] [warn] NameVirtualHost 67.*.*.*:80 has no VirtualHosts
[Tue Jul 1 04:21:41 2008] [warn] NameVirtualHost 67.*.*.*:80 has no VirtualHosts
/etc/init.d/httpd: line 83: 5450 File size limit exceeded$HTTPD -DSSL
/etc/init.d/httpd start: httpd could not be started
Backup the file /usr/local/apache/domlogs/dis*****.org-ssl_data_log to other name and start the httpd. (Something to do with logrotate)
root@s30 [~]# /etc/init.d/httpd start
[Tue Jul 1 04:21:41 2008] [info] mod_ssl:Compat: MAPPED 'SSLEnable' => 'SSLEngine on'
[Tue Jul 1 04:21:41 2008] [info] mod_ssl:Compat: MAPPED 'SSLLogFile
/usr/local/apache/domlogs/dis**********.org-ssl_data_log' => 'SSLLog
/usr/local/apache/domlogs/dis*******.org-ssl_data_log'
[Tue Jul 1 04:21:41 2008] [warn] NameVirtualHost 67.*.*.*:80 has no VirtualHosts
[Tue Jul 1 04:21:41 2008] [warn] NameVirtualHost 67.*.*.*:80 has no VirtualHosts
/etc/init.d/httpd: line 83: 5450 File size limit exceeded$HTTPD -DSSL
/etc/init.d/httpd start: httpd could not be started
Backup the file /usr/local/apache/domlogs/dis*****.org-ssl_data_log to other name and start the httpd. (Something to do with logrotate)
Sunday, July 20, 2008
5 Rules that differentiate Amateurs and Pros in investing
1. Always have cash handy on your portfolio, at least 10% of it. When there is a bear situation where the stocks are down, you can buy the stock at cheap price if and only if you have the money.
2. Pros are usually focus on the downside instead of the upside. Which means they look at the risk of their portfolio first, instead of thinking of the profit. Pros know this inevitability, so they buy companies with huge stock-repurchasing plans and healthy dividends, which protect their investments when that decline comes.
3. If you don’t know it, don’t buy it. Pros pass up investing in companies they don’t understand all the time because they’d rather hold on to their money.
4. There is such a thing as making too much money – might be a bit harder for amateurs to understand. But the bottom line is that making to much money is usually a sign that a portfolio is overexposed to one stock or sector. Think dot-com era, 1999-2000. Everyone was in tech. Everyone was making money hand-over-fist. Then everything collapsed. It never costs any money to take profits, so do it before it’s too late.
5. Earnings season produces the smallest profits and biggest losses of the year. Why? Because too many people – analysts and institutional investors – are making snap decisions based on the numbers. Investing during earnings season is too much of a gamble. And when you gamble, the house always wins.
2. Pros are usually focus on the downside instead of the upside. Which means they look at the risk of their portfolio first, instead of thinking of the profit. Pros know this inevitability, so they buy companies with huge stock-repurchasing plans and healthy dividends, which protect their investments when that decline comes.
3. If you don’t know it, don’t buy it. Pros pass up investing in companies they don’t understand all the time because they’d rather hold on to their money.
4. There is such a thing as making too much money – might be a bit harder for amateurs to understand. But the bottom line is that making to much money is usually a sign that a portfolio is overexposed to one stock or sector. Think dot-com era, 1999-2000. Everyone was in tech. Everyone was making money hand-over-fist. Then everything collapsed. It never costs any money to take profits, so do it before it’s too late.
5. Earnings season produces the smallest profits and biggest losses of the year. Why? Because too many people – analysts and institutional investors – are making snap decisions based on the numbers. Investing during earnings season is too much of a gamble. And when you gamble, the house always wins.
Monday, July 7, 2008
How to fix the unaligned course in Moodle
After upgrading to 1.9, some of the text are aligned to the right.
To fix that, go to the current theme and open the css.
there's probably a .coursebox css entry somewhere in one of the styles.css files, probably styles_layout.css
and if there's a float entry for it, just delete
To fix that, go to the current theme and open the css.
there's probably a .coursebox css entry somewhere in one of the styles.css files, probably styles_layout.css
and if there's a float entry for it, just delete
How to fix breadcrumb in moodle that say "Array"
Go to the current theme, and open header.html.
Find $navigation and remote the "" around it.
Find $navigation and remote the "" around it.
Monday, May 12, 2008
Moodle Profile Picture Missing
If you tried to upload photos for your profile and it doesn't appear, please check the GD on the system, whether it's installed. Then check the system paths on Server whether it includes the GD version.
Friday, May 9, 2008
Stuck in maintenance mode?
If you are stuck in Maintenance Mode – please read following:
Maintenance Mode
When one Enables the Maintenance Mode, it creates a file called maintenance.htm in the site files' directory. (moodledata/1)
The site is still in Maintenance Mode if that file exists
When one Disables the maintenance mode, the system deleted the file and moodle comes out of Maintenance Mode.
Maintenance Mode
When one Enables the Maintenance Mode, it creates a file called maintenance.htm in the site files' directory. (moodledata/1)
The site is still in Maintenance Mode if that file exists
When one Disables the maintenance mode, the system deleted the file and moodle comes out of Maintenance Mode.
Subscribe to:
Posts (Atom)