Sunday, November 20, 2011

Enable Classic Logon Screen in Windows 7 Home Basic & Home Premium

If you want to enable the classic logon screen in Windows 7 Home/premium, you will need to modify a registry key, because Home does not include the Local Security Policy Manager.
Download registry file to enable classic logon screen in Windows 7
You can also do this manually.
1. Click on start and enter regedit.exe into the search field and click on the item that appears
2. Uncollapse the registry keys: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\System]
3. Double-click on “dontdisplaylastusername” in the right pane and then modify the value to “1″ to enable this option and hide the usernames of the last logged on users.
Or copy this into a notepad, save it with the extension .reg and execute it:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
“dontdisplaylastusername”=dword:00000001

Hide User Account In Windows 7 Home Premiums

So here is a quick guide on how to hide a user account in Windows 7.

*IMPORTANT: before preceding,  know that if you hide your only administrator account you may have a very hard time getting back into your system as an administrator or logging on at all. So proceed with caution and make sure and then double check and make sure again that you are hiding the correct account and that you are not hiding your only administrator account. With that out of the way...see below...

How to Hide a User Account in Windows 7

1) Click on the start menu and type in regedit




2) Select "regedit" from the search results and click yes at the UAC prompt.

3) In regedit navigate to:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon\

4) Right click on the Winlogon folder and select "New" and then select "Key". Note your Windows 7 install may already have these keys that we are creating, in that case you can skip the next few steps.



5) Name the new Key: SpecialAccounts

6) Right click on the new "SpecialAccounts" Key and select "New" and then "Key"

7) Name this new Key: UserList

8) Now select the newly created "UserList" Key. In the right pane right click on an open area and select "New" and then select "DWORD (32-bit Value)"




9) Name this new DWORD the exact same name as the user account that you want to hide. So if the user you wish to hide is "joe", then name this value "joe"

10) Double click on the new DWORD that you created. A new window will open, set the value to "0" (the number zero no quotes) if you want to hide the user. You can set it to "1" if you ever want to unhide the account. Once you set the value click "OK" and close Regedit

The next time you reboot your computer you should notice that the user is hidden from the welcome screen. I tested this in the 64-bit version Windows 7 professional and the 32-bit version of Windows 7 Ultimate RC.

source: http://www.michaelontech.com/2009/10/hide-user-account-in-windows-7.html

Sunday, November 13, 2011

Stock Comments (2011/11)

一。心态。想要炒好股票,必须要有良好的心态,要有赚而不喜、亏而不忧的正确态度
,不管是赚还是亏,都要及时总结经验和教训并牢记操作过程中的得与失。什么是真正
良好的心态呢?比如某只股票符合你的买点,但能涨多少你并不清楚,只能知道个大概
。买后它跌了些,这时很多人都会觉得自己买错了,内心会有一种挫败感和失望感。其
实没必要紧张,而要认真观察它运动的过程,你应该多看看它的形态,5日均线和10日
均线处于什么形态,量和量比是多少,内外盘的量是外盘大还是内盘大,一般说来,外
盘大于内盘表示主动性买进的人多于卖出的人。你还应注意在成交过程中每笔交易量的
大小,这些观察对于第二天的走势很重要。另外要多多观察分时k线中的5、15、30、60
分钟k线形态以及技术指标所处于何种状态,若感觉图形还好,第二天操作要关注它开
盘10分钟到20分钟是外盘大还是内盘大,若外盘大于内盘,走势自然较好,同时你还得
把注意力集中在现价和均价线上,如在涨升过程中感到涨升无力,你就应及时了结,如
果卖出后股价又超出了你的卖出价,千万不要后悔,只要总结自己错在哪里,这就是心
态。

二、涨幅和回落的关系。不管你的买入价是多少,它从当天的高点回落超过3%,就
应该引起注意,回落了3%以上的个股,当天走势往往不会太好,很难再创新高。但这不
是绝对的,是卖还是留,还得看个股的形态、量、量能线、量比、内外盘以及换手率,
还要看它已经涨了几天。

三、错误的理念。不少投资者有一种错误的投资理念,那就是手里持有几只或十几
只股票,却不知在这动荡的股市中要守好几只乃至十几只股票是非常困难的,更不要说
赚钱了,可以这样说,大盘向好时,你手中的股票也许有几只能赚钱,但由于你的看盘
经验和能力有限,如果突然变盘,你很难在短时间内了结手中的所有股票。其实你完全
可以把有限的精力放在一两只股票上,对其进行细心观察,符合买点就买,不符合就等
待机会,只要行情不是太坏,有很多值得投资的股票会像春笋一样冒出来。

四、止损。止损说起来很简单,但要做到恰到好处是很难的,一般来说止损要看处
于什么样的市道、个股的形态、涨升了多少、自涨升以来量的总和、换手率、每天的内
外盘变化情况以及移动均线和k线的距离。如果有经验,一般可控制在3%以内,即使错
了也能找到其他处于涨升段的个股。值得指出的是,止损和投资人的经验和心态有密切
的关系。

五、学会预测明天大盘基本走势。如果说个股是跳舞演员的话,大盘就是一个大舞
厅,舞厅里如果没人气,那些跳舞演员也会跳得很不起劲,只有几个敬业的演员在那里
热身,此时你应该坐在大厅里观看,看他们是怎样练习和热身的,当某个敬业的演员越
练越起劲并有继续练下去的意思,你就应该为其鼓掌(买进)。因为毕竟不是正式演出,
你还得防止他因为没观众人气而突然息场。

六、不要单相思。有的投资人买股票时常常会片面看待个股的涨跌,一只股票跌了
几天后,他会认为这只股跌得差不多了而买进,却不知在形态不好时它横盘几天后还会
下跌。炒股不要单方面认为它何时是底,而应学会顺势而为,找那些刚启动又有量的个
股,只看量还不够,还要看形态和量放大后其涨幅是否同步。选股是一个较为系统的工
作,它涉及到一个人的心态、看盘的经验、对个股形态的理解和把握,还有大盘所处的
位置以及量和价的关系等等。有些投资人选好的股票没敢买,怕跌,错过了第一买点,
心慌意乱匆忙去追高买入,却没注意此时的现价和均价的关系,结果追了高。有些股票
买错了又不肯认错,任其下跌,最后被迫长线投资。

七、顺势而为。顺势而为的含意就是顺着市道而为之,比如大盘刚由强势转入弱势
并破位的头几天,你别急着买入,因为你再有看盘的经验和选股的经验,在大盘刚转入
弱势时,你买入的股票有可能当天上涨,第二天
很有可能跳空补跌,那样会得不偿失。一个真正有经验的投资者是不会乱冒风险的,待
大盘下跌的风险释放差不多了时,虽然并没完全走好,由于前几天的下跌释放基本到了
一个小的阶段,这时有符合买点的个股,你可以出击一下,但一定要设好止损位。就像
游击战那样,打得赢就打,打不赢就走,保存实力是投资的首要之道。

Thursday, November 3, 2011

Android setting for battery saving

disable network time sync.
disable wifi or turn off wifi when screen is off.
install setcpu, set lower idle cpu speed.
or
set it at airline mode at night.
I found out that airline mode really saves battery.

more----------------

1. Screen Timeout

You must have noticed, whenever your Samsung Galaxy S is left idle, its display is automatically turned off. This is nothing but screen timeout. You can set the screen timeout at minimum level so the screen would never stay active for long once left idle. You can reach to this option just below the brightness option and then set the time of screen turning off in just 15 seconds when it is left idle. Just go to Applications > Settings > Sound and Display > Screen Timeout and change the time according to your convenience.

2. 2G Network Mode

3G phones eat a lot of battery while connecting to 3G networks for web connectivity. When you are not using 3G network, try to use it on 2G network mode. You can do this by pressing menu button > Settings > Wireless and network > Mobile networks and then select option for “Use only 2G networks”.

3. Use Built-in Battery Usage Screen

This is hardly known to casual Android users. There is a built-in Battery Usage Screen which exactly tells what is eating your battery. To access this screen go to Settings > About Phone > Battery use. Now you can easily check out what is killing your Samsung Galaxy S battery.

4. Limit The Brightness

Try to limit the brightness of your Samsung Galaxy S at a lower level. The brightness of Samsung galaxy S comes with automatic setting which decides the brightness of screen as per the surrounding. This settings requires the sensor on which would drain the battery. To change this setting just go to Applications > Settings > Sound and Display > Brightness Setting and then uncheck the option for “Automatic Brightness”. Now you can set the brightness to a lower level to save the battery.

5. Disable Wi-Fi/Enable Airplane Mode

Wi-Fi is considered a far better option than 3G network in terms of battery consumption but it is also a big time battery consumer. If the option of Wi-Fi is enabled your handset will keep on scanning for available Wi-Fi networks every now and then. So it is better to disable Wi-Fi when it is not required. You can do this by enabling Airplane mode. To do this head into Settings > Wireless & Networks > Airplane Mode or you can also toggle the Wi-Fi on or off with the help of widget available in your phone.

6. Disable Bluetooth

Bluetooth is required either at the time of file transfer or while using a wireless headset. Beside this there is no point to have Bluetooth running on all the time. Switching it off will probably save the battery life.

To switch it off go to Settings > Wireless & Networks > Bluetooth or you can also use the power widget to disable it.

7. Use Power Widget to Toggle Wi-Fi, Bluetooth, GPS & Screen Brightness

Just like any other Android phone Samsung Galaxy S also includes a built in Power Widget which can be used to toggle the settings on or off for Wi-Fi, Bluetooth, GPS and Screen Brightness. Long press on the background of your screen, choose widgets > select Power Control to add it to the screen. Once added you can easily toggle the on or off options for the mentioned utilities.

8. Disable Constantly Syncing App

There are certain apps which sync on a regular basis to get the updates from internet. One of them is Email application which uses Push technology. You must change its setting to sync manually which is the best option but if you want it to sync automatically then set it to sync less frequently.
To do this, open Email application and go to your email account. Choose Account Settings > Email check frequency. Change its option to something more like an hour or never. You can always refresh manually whenever you wish to read your mails.

Well this one was for email but you can do the same for other accounts like Twitter which is updated almost more frequently and is in fact less important. Just go to Settings > Background Updates > Update Interval and set it accordingly.

For Facebook also same settings can be done. You just need to go to settings from the main Facebook screen and there select Refresh interval from the menu. Set the time as per your requirement.

9. Disable GPS Location Features

As we all know, the apps which sync constantly suck battery a lot. GPS is one of those apps which top the list. When it is used for navigation battery of Samsung Galaxy S dies very fast. There are many applications which use GPS. To prevent such situation of drained battery due to GPS, change the GPS to use wireless networks and uncheck the option “Use GPS satellites”. This setting makes GPS a little less accurate which may become a problem but it helps in saving battery.

10. Use Task Manager

Using a task manager is one of the wisest options. You can use Advanced Task Cleaner or any other similar app to kill applications which are not required. Also you can monitor which application is launching itself repeatedly and hence you can setup an auto kill list for such applications. The function becomes more helpful when you configure advanced task manager to show CPU usage by every single app.

11. Disable/Remove Unused Apps

If an application can be disabled from being used in background, then it is fine otherwise you should remove it. Apps which drain battery most and hardly used must be removed. This can be done from Android battery panel or task manager. Just go to Settings > Applications > Manage Application and then click uninstall button to remove that specific app.

12. Disable Unused Screen Widgets

Some widgets also pull a lot of data from the web. Pulling of data every time even when it is not required hamper the performance of battery. That’s why such widgets which are hardly needed must be removed.

13. Power Saving Mode

Power Saving mode comes by default in Samsung Galaxy S phone. When activated, it automatically starts saving battery by functioning in proper way. To activate the power saving mode you must go to Applications > Settings > Sound and Display and then select “Power Saving Mode”. Once activated it will analyze the images and adjust LCD brightness to save battery.

14. Disable Live Wallpapers

Samsung Galaxy S was launched with beautiful live wallpaper. Live wallpaper looks really good but consumes battery also. So get rid of live wallpapers. It will surely help you in saving a small extra battery.

15. Use JuiceDefender

If all of the above options are looking like a big task then you can simply use JuiceDefender. JuiceDefender is a multipurpose application and the best in its class. It helps in saving battery of Android phones. In one of our earlier post we mentioned all its utility and how JuiceDefender helps in increasing battery life of Android devices.

Friday, October 28, 2011

Stock Comments (2011/11)

要想作好股票,并且能够稳定地常年盈利:

1: 必须摒弃去看任何新闻的习惯。那是mm用来骗散户的工具。

2: 尽量不要碰个股,中概,垃圾(小于10美元的股票),小盘子交易量股票,不能碰。

3: 必须形成自己严格的交易系统(MACD, SLow stoch...),加上很多年被摧残的经验。

4: 不做空,看错了,及时止损,哪怕割肉在最低点。(俺做空即使做对,也赚不到大钱)

5: 年底的时候,可以稍微大胆一点。年一过,不要有任何幻想,只能做大盘的DIA, SPY, QQQ.其它都不靠谱。

6: 买卖option是条破产最快的捷径,即使你每次都看对。

有两本书建议有时间看一看,很有帮助:
1:Stock trader's almanac

2: How to make money in the stock market.

3: Livermore 的回忆录。

Sunday, October 23, 2011

云与云计算概念

云计算现在算是比较火的一个名词了。从最开始的怀疑,质疑,到普遍的应用,再到现
在各大软件公司都开发自己的云,云计算这个方向在企业应用里,就如同SOA一样,已
经开始飞入寻常百姓家了。
云计算其实乍听之下确实有点忽悠。主要还是因为现在还没有一个标准。但是云计算要
解决的核心问题就是资源。让应用可以按需获取资源,可以灵活的增加减少应用的资源
(Scale Up/Down),而不需要惊动应用本身;把应用放在一起,让资源得到更高的利
用。因为云计算服务提供商一般都有自己的数据中心,所以云计算的一个基础优势就是
可以享受云服务提供商打造的数据中心服务,比如,冗余设计,双线服务,专业高质量
的主机维护等等。以下说到的三种云模式,都有这种优势。
(PS:这里插一句,云计算主要还是为企业应用提供服务的,不是面向个人桌面应用的
,面对个人桌面应用的应该是虚拟桌面,这个已经是很成熟的系统了)
现在主流的云模式分为三种,SaaS既Software as a Service,这个其实是最忽悠的,
随便一个站点也可以号称自己是SaaS的,比如一个blog,为每个注册的用户提供服务(
Service),你可以多花钱,增加上传附件的空间,或者开通别的附加服务,比如视频
音频服务等等等等,这就勉强可以说是SaaS了。SaaS最出名的就是Saleforce。其实
Saleforce的SaaS确实算云,它提供可靠的,可伸缩的服务,有自己的基础设施,并不
是一个简单的web site。但是对于终端用户来看,SaaS跟一个普通的website没啥不一
样。所以很多厂家就开始跟风云概念,啥都是云。就好象纳米技术一样。SaaS是云概念
开始提出来的时候,普及的云的概念。以至于很多时候再提起云,给人的感觉就是在忽
悠。
SaaS模式下,依靠服务提供商的服务器集群,可以为用户提供可伸缩的资源。用户不用
维护服务器,不用操心数据库的备份,不用网络的状态,不用操心机房是不是停电了,
是不是漏水了,只需要花钱买服务就行了。但是限制也是非常明显的,用户只能使用服
务商提供的服务而已。比如saleforce的用户,也只能在saleforce的云上使用
saleforce的服务。
说道saas,企业应用系统大概分为,crm(customer rel. managment),
hr, erp,前两个云用的多,还不是简单web,都是appl. system with web interface
,对中小型客户的好处是很明显的,硬件不需要,连软件也不需要。
第二种是PaaS既Platform as a Service。比较著名的就是Google App Engine。它提供
一个平台,让用户可以把自己的应用部署到这个平台上。目前支持Python和Java。乍听
之下,好像跟一个应用服务器上部署多个应用似的。。。没错,初看起来就是这么回事
儿。。。但是GAE完全不是这么回事儿,它提供的其实是一个虚拟的,可伸缩的应用环
境。首先,GAE提供了自己的SDK,应用程序无法操作一些底层资源,比如文件(没错,
不能完全操作文件,因为在PaaS云中的应用没有文件的概念,很多时候就是一个只读的
包,比如Java应用可能就是一个war包)。通过这个SDK,用户可以创建自己的web程序
,也就是写jsp,servlet等等。同时,GAE还提供了NoSQL存储服务作为数据存储(不能
把数据存文件上,文件只能读不能写的)。除了这两大资源之外,GAE还提供了受限的
Socket支持,可以抓取URL内容,但是不能直接建立Socket连接。在这些GAE提供的资源
之上,用户可以开发部署自己的应用程序。
PaaS模式比SaaS提供的资源更底层,所以也灵活的多。用户可使用PaaS提供的应用服务
器、存储、网络等基础服务,开发自己的服务。PaaS随着发展也开始提供更丰富、更灵
活,等强大的服务,为上层的应用提供更多的支持。作为PaaS的用户,坏处当然是受到
一些限制,比如不能直接操控底层资源。但是好处是可以按照自己的需求购买需要的资
源,不需要花不必要的钱。而且在业务发展到需要更多资源的时候,可以花钱购买,而
应用本身不需要下线,用户自己也不需要维护。
第三种是IaaS既Infrastructure as a Service。比较著名的就是Amazon EC2。它提供
的是一个完整的虚拟机环境,CPU,内存,硬盘,网络等等都是虚拟的,可以动态伸缩
。用户可以在虚拟机中安装Linux或者Windows服务器,安装需要的软件,提供自己的应
用服务。相比PaaS,IaaS更为高级和底层,适应更高级的用户需求。一般来说,提供
IaaS的云服务提供商,也会相应的提供一些别的服务,比如数据库存储服务等。Amazon
提供了Amazon RSD (Amazon Relational Database Service)。
云计算的技术基础
走在前面的云服务提供商已经支撑了很多耳熟能详的应用了,比如dropbox就是使用的
Amazon EC2。虽然标准还不清晰,但是云计算已经是成熟可商用的技术,而不仅仅是一
个概念或者试验阶段的技术。云服务的基础设施是大型数据中心,在此基础之上,云的
基础是早已成熟的虚拟化技术,在虚拟化的基础上,提供一套操作,管理和监控的系统。
比如一个服务提供商有100台物理机器,100m上行带宽和100m下行带宽。如果租物理机
器出去,租给100个用户,每人1m上下行的带宽。这样的问题是资源无法得到充分合理
的利用。用户A可能在1点钟的时候CPU撑满,导致应用服务速度缓慢;而此时用户B可能
CPU根本就是闲置的。两点钟的时候AB两个用户情况可能正好反过来。如果A和B都购买
新的物理机来应对峰值情况,那么在非峰值的情况下,资源则极大的浪费了。很明显,
资源无法以物理机为单位进行合理的配置。
应用虚拟技术,可以在物理机和应用之间增加一层虚拟层。用户直接操作的资源都是虚
拟的。用户购买的资源也是虚拟的。再配合相应的管理层实现资源的查找、分配、管理
和监控,就可以算是个云了。
以上面的usecase 为例。用户A只需要购买足够的CPU时间,在1点钟峰值来的时候,云
会分配足够的CPU资源给A用户的应用。至于这些CPU物理上在哪个机器里,用户根本无
需操心。用户A只需要为自己的应用所使用的CPU时间(也可能是虚拟CPU个数)付钱就
可以了。这就做到了资源的合理分配,可以充分利用资源。
对于带宽则更明显,用户无需购买带宽,而只需要购买流量。云服务提供商会使用自己
已有的宽带来满足用户的需求。可能在某个时刻,用户享受的是50m的上下行速度,但
是付出的钱却只和流量相关。资源在云用户之间是共享的,按需分配的。而用户购买的
,也是虚拟的资源而非物理的资源。
依靠云技术,虽然还是100台机器,100m上下行带宽,但是可以服务的用户数有可能多
于100个,而且每个用户的需求都可以得到更好的满足。当然,如果用户继续增长,云
服务提供商可以购买更多的主机和更大的上下行带宽为用户服务。

Friday, October 21, 2011

[使用] [新手日记].NET2.0 编译+安装

这个技术含量没什么,不过还是T出来帮助大家少走弯路吧.
其实很简单的,新手也可以这样开始ASP.NET.
一.编译DNT的DLL组件
1.首先用VS2005打开discuz.sln解决方案(就是很多工程结合在一起的工程 )
Release方式编译Discuz.Common,Discuz.Controls,Discuz.Forum,Discuz.Setup这4个项目
生 成Discuz.Common.DLL,Discuz.Controls.DLL,Discuz.Forum.DLL,Discuz.Setup.DLL 几个DLL组件(分别在Common,Controls,Forum,Discuz.Setup文件夹下的bin/Release找到他们)
然后拷贝到某处待用
(编译命令在菜单栏,选中哪个项目就可以编译相应的项目--也可以一起编译生成的,大家试试)

二.转换为Web应用程序
我是用WEB应用程序的,感觉这个比website方便,所以决定转化为web应用程序项目,以下为转化过程:
VS2005 SP1-->新建-->项目--->左栏选"Visual C#",右栏选择"ASP.NET Web应用程序"(下面的名称大家随意了哈,我用的DNT )-->然后删除VS2005自动创建的Default.aspx和Web.config(不准他们和DNT抢 )


2.拷贝除了Common,Controls,Forum,Discuz.Setup以外的文件夹和文件到项目文件夹下面.

--->VS2005 "项目"--->"显示所有文件"--->对添加进入的文件夹选中,右键--->"包括在项目中"
3.把第一步骤里面生成的4个DLL文件连同微软的那个Interop.SQLDMO.dll添加到项目引用里面.
方法:
解决方案资源管理器里面对"DNT"项目名右键-->"添加引用"-->找到文件添加就是了.

4.转化为WEB应用程序.
解决方案资源管理器里面对"DNT"项目名右键-->"转换为Web应用程序".

转化完毕后,呵呵基本就可以用了哦.

到此 转化完毕.

三.生成DNT的Discuz.ForumPage.dll组件
然后大家可能会问,还差一个Discuz.ForumPage.dll是哪儿来啊?-->就是这些页面文件的后台代码生成撒
生成Discuz.ForumPage.dll:
1.解决方案资源管理器里面对"DNT"项目名右键-->"属性"-->应用程序选项卡下面 "程序集名称"修改为Discuz.ForumPage.(主要是为了生成DLL名为Discuz.ForumPage.DLL )
2.VS2005 "生成"-->"生成DNT"(项目名不同名字就不同哈 )

到此,编译生成工作完全告一段落.
===
安装篇:
可以在VS2005 或者IIS下面进行
这里讲IIS环境安装吧.
按照官方文档,建立数据库,建立IIS站点.执行http://localhost:15000/setup/index.aspx(15000是自定义的IIS站点端口号,依据个人配置更改),然后都和官方的一样了...
就不废话了,建议大家去看官方文档.

安装完毕后可能页面有乱码,进入后台重新生成模版 更新缓存就可以了.
后台管理文件还是乱码的,
请见13楼 pyfhua 提供的工具,很好用http://nt.discuz.net/showtopic-17420-1.html#160159
[在乱码ASPX页添加
复制代码
也可以]
这里有个已经转化好了的WEB APP项目,(后台还是乱码 大家自己修改下吧.我没有更好的办法现在)
  1. http://pickup.mofile.com/2142132347214524
复制代码


source: http://nt.discuz.net/showtopic-17420.html