Monday, May 7, 2012

如何利用挤空赚钱

选择SHORT RATIO比较高的个股
1. 等大盘大跌时,该股不跌或小跌
2. 无量连续小涨
你就大胆买来等着哪一天天量大涨后就抛掉。

How to move MailArchiva and its data from one server to another

These instructions describe how to move MailArchiva and its data from one server to another

Directories#

There is no complex database replication procedure to perform. Copying MailArchiva from one machine to another is as simple as copying a few directories over to another machine (almost!).
(1) Install a clean copy of MailArchiva on the new server.
(2) Copy the following directories & files from the old server to the new server

Server Configuration#

C:\Program Files\MailArchiva\server\webapps\ROOT\WEB-INF\conf\* (windows)
/usr/local/mailarchiva/server/webapps/ROOT/WEB-INF/conf/* (linux)

Logging Configuration#

C:\Program Files\MailArchiva\server\webapps\ROOT\WEB-INF\classes\log4j.xml (windows)
/usr/local/mailarchiva/server/webapps/ROOT/WEB-INF/classes/log4j.xml

License File (EE only)#

C:\Program Files\MailArchiva\server\webapps\ROOT\WEB-INF\classes\license.lic (windows)
/usr/local/mailarchiva/server/webapps/ROOT/WEB-INF/classes/license.lic

Audit & Log Files#

C:\Program Files\MailArchiva\server\logs\* (windows) /usr/local/mailarchiva/server/logs/* (linux)
C:\Program Files\MailArchiva\server\webapps\ROOT\WEB-INF\logs\* (windows)
/usr/local/mailarchiva/server/webapps/ROOT/WEB-INF/logs/* (linux)
C:\Program Files\MailArchiva\server\webapps\ROOT\WEB-INF\logs\index\* (windows)
/usr/local/mailarchiva/server/webapps/ROOT/WEB-INF/logs/index* (linux)\

Volumes#

Copy all files in all volume store paths and index paths
(copying indexes over is optional)
Since there are potentially a large number of files in the store path, on Linux when using the cp command you may receive the errors "too many arguments"
To workaround this, follow one of the methods in the following article: http://www.linuxjournal.com/article/6060
 
source: http://itdnext.blogspot.ca/2012/04/how-to-move-mailarchiva-and-its-data.html

Test Connection failes with an authorization warning

The problem

When you create a new website in IIS 7 and choose to "Test Settings", or when you do this on an existing website, you are prompted with an error. And this happens without you doing anything wrong, you just accepts the default values. The error is:
Cannot verify access to path
The server is configured to use pass-through authentication with a built-in account to access the specified physical path. However, IIS Manager cannot verify whether the built-in account has access. Make sure that the application pool identity has Read access to the physical path. If this server is joined to a domain, and the application pool identity is NetworkService or LocalSystem, verify that \$ has Read access to the physical path. Then test these settings again.
Test Connection - Cannot verify access to path

The explanation

You see this error message (actually it is a warning message) because you have choosen to use pass-through authentication. In this situation, the application pool is run under a low-privileged built-in account, usally Network Service, or ApplicationPoolIdentity. IIS cannot verify that the built-in account has proper settings, this can only be done at run-time.
In addition to this, the "Test Settings" process does not know which user you have authenticated as. So basically, you need to verify that the application pool identity has read access to the files and configuration files. You also need to make sure that the application identity has proper security settings.
So in most situations, you can safely ignore the warning message, because on a default setup, all the permission settings are correct.


Solution:
1- Open IIS 7.0
2- Select Default Web Site and Right-Click on it
3- Select Add Application... or Add Virtual Directory...
4- Select Contact as..
5- Change Path credentials: from Application user (pass-through authentication) to Specific user:
6- Add a Admin User with password like COMPUETRNAME\Administrator User



Additional information

If you set up the application pool to use a custom identity, you will not see this warning message. But, do not do this with the purpose of getting rid of the warning, since the warning may not mean anything to you.




source: http://www.it-notebook.org/iis/article/test_connection_authorization_failed.htm
http://amastaneh.blogspot.ca/2011/04/authorization-cannot-verify-access-to.html

Friday, May 4, 2012

Discuz!NT站点合并web.config文件方法


1.web.config简介
Web.config文件是一个XML文本文件,它用来储存 ASP.NET Web 应用程序的配置信息(如最常用的设置ASP.NET Web 应用程序的身份验证方式),它可以出现在应用程序的每一个目录中。
当你通过ASP..NET新建一个Web应用程序后,默认情况下会在根目录自动创建一个默认的
Web.config文件,包括默认的配置设置,所有的子目录都继承它的配置设置。
如果你想修改子目录的配置设置,你可以在该子目录下新建一个Web.config文件。它可以提供除从父目录继承的配置信息以外的配置信息,也可以重写或修改父目录中定义的设置。

2. 原先站点增加Discuz!NT论坛,合并web.config 问题:
例如论坛安装在 /bbs/ 目录里。
原理:
web.config文件中可以同时存在多个配置节,

但是要指明

注意其中 用 指名了作用的对象是bbs目录,而且不允许重写。如 果根目录某个类与Discuz!NT冲突,你也可以移除他,例如: 这行 从应用程序移除 ModuleRewriter 类,也就是让网站根目录程序的ModuleRewriter对bbs目录不起作用。


Source link: http://nt.discuz.net/showtopic-25114.html

Wednesday, May 2, 2012

Set the user’s Internet explorer home page via HKCU registry

Set the user’s Internet explorer home page via HKCU registry
 

Set the Internet Explorer in Kiosk Mode (HKCU registy).


Set the Internet Explorer in Kiosk Mode .
[HKCU/software/microsoft/windows nt/currentversion/windowlogon]
     Shell="c:\program files\internet explorer\iexplore.exe" -k
      

Check current user profile via registry (profilelist)