"sc.exe create/delete" - Create or Delete Services
摘要:"sc.exe" can also be used to create and delete services. If you want to create a new service, you can use the "create" commanded offered by the sc.exe tool. Before running this command, you need to prepre the following minimum information:Service Name: A single word to name the n
阅读全文
posted @
2013-11-27 10:44
七月逆流
阅读(568)
推荐(0) 编辑
JSF + Primefaces: Problem with “rendered” components with ajax
摘要:Cant seem to get rendered to work correctly with update attributes. Here is my codes hello renderComment is a boolean attributes inside bean. setRenderComment basically toggle the state of rend...
阅读全文
posted @
2013-11-26 11:59
七月逆流
阅读(507)
推荐(0) 编辑
Spring security 3.1 +JSF 2.0 . problem with annotating methods in ManagedBeans?
摘要:Hy .What i am trying to do is to integrate Spring security with a Jsf+spring IOC +hibernate application.I have managed to set the login page and filter some other pages.So far so good, but when i tried to put @Secured or @PreAuthorize annotation on methods inside managedBeans (inside Dao's the a
阅读全文
posted @
2013-11-25 17:33
七月逆流
阅读(654)
推荐(0) 编辑
表单元素(控件)不可见,你用visibility还是display?(转)
摘要:属性大比拼:visibility和display的介绍今天在做一个表单时涉及到这方面,当选中相应的选项后设置相应的几个元素(控件可见或不可见),后来还是用了visibility来实现。我们先来看下visibility对应的几个属性的介绍:visibility:visible/*元素可见,默认值*/visibility:hidden/*元素不可见,但仍然为其保留相应的空间*/visibility:collapse/*只对table对象起作用,能移除行或列但不会影响表格的布局。如果这个值用在table以外的对象上则表现为hidden。*/visibility:inherit/*继承上级元素的vis
阅读全文
posted @
2013-11-23 16:08
七月逆流
阅读(606)
推荐(0) 编辑
Console2支援中文顯示的正式設定法
摘要:1.用regedit找到HKEY_CURRENT_USER\Console,把底下的Console2 command window機碼給砍了。2.Console2的View功能表中,有個Console Window選項,勾選後原本躲在Console2後的Cmd.exe視窗就會現身。3.叫出該Cmd.exe的屬性視窗,找到Font Tab,預設的字型是Raster Fonts,請改選"細明體"字型。4.儲存設定並指定套用到未來有相同標題的視窗(Save properties for future windows with sam title)。5.此時HKEY_CURRENT
阅读全文
posted @
2013-11-20 12:49
七月逆流
阅读(297)
推荐(0) 编辑
how to use jquery with primefaces
摘要:PrimeFaces already ships with jQuery bundled, yet you've downloaded and installed another one which would only conflict with PrimeFaces bundled jQuery. I'm sure that if you have paid a bit more attention and love to the webbrowser's builtin JavaScript console, you would have seen JS erro
阅读全文
posted @
2013-11-18 14:44
七月逆流
阅读(533)
推荐(0) 编辑
SVN:冲突解决 合并别人的修改
摘要:在项目中,基本不可避免多个人同时参与一个项目,因此就可能会出现多个人同时修改一个文件的情况,就不可避免的会出现冲突。svn已经很聪明了,如果你和 别人对于同一个文件的修改之间不存在重叠(比如你在文件最开始增加了一行,而你同事在文件的结尾出增加了一行),svn会自动将你们的修改进行合并,然而 意外总是会发生,而且超出了svn的处理范围,只好采用人工智能(手工)来进行合并了。要解决冲突,我们首先得制造个冲突,保证你现在已经有两个工作拷贝了,我们现在修改其中的一个,例如这里我们修改sally_calc中的main.c文件。root@letuknowit:/home/kris/sally_calc/t
阅读全文
posted @
2013-11-14 10:08
七月逆流
阅读(1422)
推荐(0) 编辑
Subversion Self Signed Certificates
摘要:When connecting to Subversion repositories using SSL connections the SVN client checks the server certificate if it is not expired, if it’s host description matches the host of the repository and if the authority which signed the certificate is trusted.If the certificate fails to comply with any of
阅读全文
posted @
2013-11-04 21:51
七月逆流
阅读(477)
推荐(0) 编辑
sqlplus 方式连接 远程数据库
摘要:方式一:简易连接,不用进行网络配置,其实就是tnsname.ora文件,但只支持oracle10G以上。命令:sqlplus 用户名/密码@ip地址[:端口]/service_name [as sysdba]示例:sqlplus sys/pwd@ip:1521/test as sysdba 备注:使用默认1521端口时可省略输入方式二:进行网络配置 oracle9i和以前的版本2.1图形化操作:Net Configuration Assistant--> 本地Net服务名配置-->添加->服务名->协议(选tcp)->主机名称->端口->完成。2.2文
阅读全文
posted @
2013-11-01 17:03
七月逆流
阅读(1133)
推荐(0) 编辑
svn can't save server certificate
摘要:f I use any svn command communicating with the remote server I get the following error:Error validating server certificate for 'https://...': - The certificate is not issued by a trusted authority. Use the fingerprint to validate the certificate manually!Certificate information: - Hostname:
阅读全文
posted @
2013-11-01 13:59
七月逆流
阅读(465)
推荐(0) 编辑
SVN版本回退
摘要:在Windows里,先打开Log面板,根据想要回退的内容,然后选择revert to this revision或者revert changes from this revision。记住如果想将回退之后的内容提交到svn,还要commit. 关于这2个操作的区别,在:http://www.iusesvn.com/bbs/thread-1825-1-1.html有详细的解释。 下面引用过来: 譬如有个文件,有十个版本,假定版本号是1,2,3,4,5,6,7,8,9,10。 Revert to this revision: 如果在版本6这里点击“Revert to this re...
阅读全文
posted @
2013-11-01 00:36
七月逆流
阅读(491)
推荐(0) 编辑
Could not initialize proxy - no Session
摘要:our problem is that the hibernate Session lives only for one request. It opens in the start of the request and closes at the end. You guessed the answer: Hibernate session is closed before both requests are finished.Exactly what is happening? Your entity objects live during both requests. How? The a
阅读全文
posted @
2013-11-01 00:24
七月逆流
阅读(537)
推荐(0) 编辑