代码改变世界

How to access the properties of an object in Javascript

2014-07-23 14:52 by wildboar, 225 阅读, 0 推荐, 收藏, 编辑
摘要:Javascript has three different kinds of properties: named data property, named accessor property and internal property. There are two kinds of access ... 阅读全文

他们不是机器人

2014-07-17 22:10 by wildboar, 604 阅读, 0 推荐, 收藏, 编辑
摘要:团队成员按照项目进度工作,结果有一个开发人员提前于进度计划,把分配给他的任务提前完成了,并且完成了测试,提交了代码。这时候作为PM的你会如何安排这个这个开发人员的接下来的工作?1,立刻给他安排新的开发任务2,不给他安排新的开发任务,让他自由处理这段空闲的时间3,其他的方法多数的PM会选择为这个开发人... 阅读全文

how to debug smarty with firebug

2012-07-24 13:56 by wildboar, 589 阅读, 1 推荐, 收藏, 编辑
摘要:the article comes from the link following, I just want to backup it in my blog. http://www.garrickcheung.com/javascript/smarty-debug-with-firebug/ 1 {capture name='_smarty_debug' assign=debug_output} 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/ 阅读全文

wierd issue - just marked it when I am free to trace the source code

2012-06-28 13:56 by wildboar, 253 阅读, 0 推荐, 收藏, 编辑
摘要:I create a function and use it illustrated as the image belowbut when trace the source code I found it was blocked on that line and the application run into a wierd function in the smarty ( I use the smarty in my project)I got the reason after investigation for a while, it is because of missing the 阅读全文

the debug function could not work in NetBeans IDE

2012-06-17 10:03 by wildboar, 170 阅读, 0 推荐, 收藏, 编辑
摘要: 阅读全文

how to input the single quote in the phpmyadmin

2012-05-18 17:12 by wildboar, 189 阅读, 0 推荐, 收藏, 编辑
摘要:I am a fresh in the PHP and MySql, I find the single quote in strangousin the phpmyadminbut when I enter the single quote manully, I find there are difference between them. 阅读全文

MySql.Data.MySqlClient.MySqlException: The user specified as a definer ('root'@'%') does not exist

2012-05-17 09:39 by wildboar, 1913 阅读, 0 推荐, 收藏, 编辑
摘要:All the settings were fine and I was wondering what’s causing the problem. At first rush I thought that it could be a cache, as I had requested recently to have xcache on our server.But it wasn’t the case. The error was much more stupid than even one can imagine.That specific script uses a stored pr 阅读全文

how to handle with single quote in ms sql server

2011-12-29 17:27 by wildboar, 187 阅读, 0 推荐, 收藏, 编辑
摘要:declare @lablesList varchar(max) = 'test1&test2' set @lablesList = Replace(@lablesList, '&', ''',''') set @lablesList = ''''+ @lablesList +'''' select @lablesList 阅读全文

how to restore 'show desktop’ icon

2011-10-31 21:06 by wildboar, 252 阅读, 0 推荐, 收藏, 编辑
摘要:solution #1. Open and copy the scripts below into notepad [Shell] Command=2 IconFile=explorer.exe,3 [Taskbar] Command=ToggleDesktop Save the file as “Show Desktop.scf... 阅读全文

Serialize an Object Using JSON

2011-09-28 15:45 by wildboar, 216 阅读, 0 推荐, 收藏, 编辑
摘要:When we intend to serialize an object via JSON, we need to use DataContractJsonSerializer class , it is necessary to add two references below: System.ServiceModel.Web System.Runtime.Serialization.Js... 阅读全文