作者: zhongdaiqi

  • Build Automation Using Jenkins and TFS Version Control

    I’ve used several version control systems for my source code and research projects.  Recently, I’ve consolidated them to TFS and Git. I have started using Visual Studio Online for my research work, CodePlex for my Open Source Frameworks and Tools and GitHub for my blog code.  Much of these decisions are driven based on the target audience and the nature of my work (code).  TFS, being an excellent ALM tool, offers more than just a version control system which can be particularly helpful when you are either having large teams to work with or have an open-source project whose build you would want to automate.  For my research development (that happens at home), I was keen on build automation for CInject project.

    java.io.IOException: Failed to download from http://updates.jenkins-ci.org/download/plugins/tfs/3.1.1/tfs.hpi
        at hudson.model.UpdateCenter$UpdateCenterConfiguration.download(UpdateCenter.java:781)
        at hudson.model.UpdateCenter$DownloadJob._run(UpdateCenter.java:1125)
        at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:1285)
        at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1103)
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
        at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:104)
        at java.lang.Thread.run(Unknown Source)

    In such cases, you need to download latest version of the plugin manually and copy it to

    <<JenkinsInstallDirectory>>\plugins

    image

  • 相关 ID: 4b90ae9c-ce31-9067-856b-e87a9e10a580

    相关 ID: 4b90ae9c-ce31-9067-856b-e87a9e10a580

    龟毛的Sharepoint!

  • Microsoft JET Database Engine -2147467259

    解决OLE读取Excel的:Microsoft JET Database Engine -2147467259 未指定的错误

  • 计算地球上两个坐标点(经度,纬度)之间距离sql函数

    go  
    --计算地球上两个坐标点(经度,纬度)之间距离sql函数
    --作者:lordbaby
    --整理:www.aspbc.com 
    CREATE FUNCTION [dbo].[fnGetDistance](@LatBegin REAL, @LngBegin REAL, @LatEnd REAL, @LngEnd REAL) RETURNS FLOAT
      AS
    BEGIN
      --距离(千米)
      DECLARE @Distance REAL
      DECLARE @EARTH_RADIUS REAL
      SET @EARTH_RADIUS = 6378.137  
      DECLARE @RadLatBegin REAL,@RadLatEnd REAL,@RadLatDiff REAL,@RadLngDiff REAL
      SET @RadLatBegin = @LatBegin *PI()/180.0  
      SET @RadLatEnd = @LatEnd *PI()/180.0  
      SET @RadLatDiff = @RadLatBegin - @RadLatEnd  
      SET @RadLngDiff = @LngBegin *PI()/180.0 - @LngEnd *PI()/180.0   
      SET @Distance = 2 *ASIN(SQRT(POWER(SIN(@RadLatDiff/2), 2)+COS(@RadLatBegin)*COS(@RadLatEnd)*POWER(SIN(@RadLngDiff/2), 2)))
      SET @Distance = @Distance * @EARTH_RADIUS  
      --SET @Distance = Round(@Distance * 10000) / 10000  
      RETURN @Distance
    END
  • All I have hold is technology

    这几天最大的感受是“穷得只剩下技术了”。与最大上的Boss比起来,最大的优势就是技术了。对于一个Boss来讲,一个报名系统,登记一下报名人员的姓名、联系方式,都是技术,是门槛。从技术的角度来讲,堆几行代码,就出来了,而其商业价值却在Boss的使用下真正体现出来。我们的优势,就是技术了。
             一个非常浅显的例子,早几年前,有位同事问我能否加一个链接,这是网页制作里,最最基础的东东啦,但是同事会感觉到很兴奋,很有意义。这显然是两种不同的视角。从技术的角度来看,这不过是一个A标签,仅起而已,心里再默念一句“激动个毛”。当我再次回味的时候,总是觉得是一个让人难以忘却的场景。仔细体会,就能将技术、业务的思维进行区分,找到乐趣。
           最开始使用Token是使用调研系统,而不是做调研系统。按本人技术的思维,不会用Token这个东东来描述,我能想到的是“唯一标识”,自增ID。当我第一次听到Token时,着实花了些时间去思考这是神马东东,好高大上。当同事使用Token来沟通的时候,第一感觉,专业啊。
         略去N多感慨… ….
         如何将掌握的一点点技术进行转化,是穷码农未解的迷。码农的必杀技术“没日没夜的加班,还不要加班费”,是硬伤。从硬伤的痕迹里寻找解迷的道路。将技术与业务进行一个适当的平衡,不要一味纯技术,也得考虑业务。