Posts

How can I fetch source code from synergy using Jenkins -

i have installed synergy plugin jenkins. i want fetch code synergy db. how can using jenkins? i have given details in scm section of jenkins db value, engine, username , password. well, stated in comments, reason behind following original issue error related path: cannot run program "ccm" (in directory "c:\program files\jenkins\jobs\test\workspace"): createprocess error=2, system cannot find file specified... for second issue i.e., cannot run program "c:\program files\ibm\rational\synergy\7.1\bin" (in directory "c:\program files\jenkins\jobs\test\workspace"): createprocess error=5, access denied it seems have not specified full path executable shown in above error message. hopefully, changing "c:\program files\ibm\rational\synergy\7.1\bin" to "c:\program files\ibm\rational\synergy\7.1\bin\executable_name.exe" should trick.

apache - Redirect HTTP to HTTPS using an .htaccess file -

i change ht-access file rewriterule ^index\.php$ - [l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . /index.php [l] rewritecond %{server_port} !^443$ rewritecond %{https} !=on rewriterule ^.*$ https://%{server_name}%{request_uri} [r,l] when coming home page example: www.xyz.com redirect https://www.xyz.com/ my ploblem when load www.xyz.com/about not going https://www.xyz.com/about . showing www.xyz.com/about . if suggection change htaccess file work this. place https redirect @ beginning. [l] tells apache last directive, line rewriterule . /index.php [l] will last line used.

regex - Regular Expression for email to check repetitive characters -

i'm validating email address regular expression. test following conditions: minimum of 3 characters in name, symbol @, minimum 3 characters in first part of domain, dot,no more 3 repetitive characters i tried regular expression , it's working fine cases except last one. /^[a-za-z0-9._%+-]{3,}\@[a-za-z0-9.-]{3,}\.[a-za-z]{2,4}$/ it's not checking repetitive character(any character) after dot(.) not ok: test@test. ccccom , test@test.coooom ok : test@test.com don't know wrong last portion of re. any input appreciated. you can use following regex: ^(?!.*([a-za-z0-9])\1{3})[a-za-z0-9._%+-]{3,}\@[a-za-z0-9-]{3,}\.[a-za-z]{2,4}$ changes made: (?!.*([a-za-z0-9])\1{3}) - negative lookahead makes sure none of characters repeat more thrice in row. the rest of regex same is, except removal of . second character class. regex demo if want disallow repeated characters after last . , use following instead: ^[a-za-z0-9._%+-]{3,}\@[a-za-z0-9...

performance - Mongodb query using $and operator does full scan while same query without doesn't -

i'm relatively new mongodb , i'm having trouble understanding why query $and operator seems full scan, while same query without doesn't. my document looks this {_id:"123456", labels : [{label:"beef", language:"en"}, {...}],...} i have compound index on label , language, however, explain shows different results depending on whether do db.mycollection.find({ "labels" : { "$elemmatch" : { "label" : "beef" , "$and" : [ { "lang" : "en"}]}}}).explain() { "cursor" : "complex plan", "n" : 4, "nscannedobjects" : 0, "nscanned" : 16701573, "nscannedobjectsallplans" : 0, "nscannedallplans" : 16701573, "nyields" : 130540, "nchunkskips" : 0, "millis" : 16283, "filterset" : false } or db.mycollection.find({ "labels" :...

javascript - Code updates color but not the actual text? -

this chunk of code have updates color of text not actual text... var lastwordtyped; var ele = document.queryselector("#my_text"); //code //... lastwordtyped = capitalizefirstletterofkeyword(lastwordtyped); lastwordtyped = lastwordtyped.fontcolor("blue"); ele.innerhtml = lastwordtyped; function capitalizefirstletterofkeyword(keyword) { var word; word = keyword.charat(0).touppercase() + keyword.slice(1); return word; } when step through it, recognizing new string should doesnt update actual text new string, change color. can provide me reason why won't update it? you haven't declared lastwordtyped, capitalizefirstletterofkeyword() gets 'undefined' input. working demo here: http://jsfiddle.net/yc4mvm1n/1/ var lastwordtyped = "newword"; var ele = document.queryselector("#my_text"); lastwordtyped = capitalizefirstletterofkeyword(lastwordtyped); lastwordtyped = lastwordtyped.fontcolor...

tfs2012 - Backlog and board pages in TFS 2012 -

currently using team foundation server 2012 (version 11.0.50727.1), have developers' team working backlog , board pages, fine. and have bunch of clients, not developers. give them sufficient access able see backlog , board pages. i'm understanding "limited" rights not enough. what permissions needed able that? plus, if need them create/edit/delete work items, licence need? any appreciated, thanks! to use agile planning features in tfs2012 (backlog management , boards) each person must licensed either visual studio test professional, premium or ultimate. if have cals people need ensure web access permissions set full, via admin panel. source: http://blogs.msdn.com/b/govdev/archive/2012/09/06/license-the-new-tfs-2012-agile-planning-boards.aspx

Grails - HQL Exception when comparing date field to today -

i have following hql query i'm running against h2 database: "select count(*) event e " + "e.org.id = :orgid , " + "e.deleted = :deleted , " + "e.startdate >= :startdate , " + "lower(e.name) :name " + "order startdate asc" it works fine startdate params except today. if startdate today, following exception: org.springframework.jdbc.uncategorizedsqlexception: hibernate operation: not execute query; uncategorized sqlexception sql [select count(*) col_0_0_ event event0_ event0_.org_id=? , event0_.deleted=? , event0_.start_date>=? , (lower(event0_.event_name) ?) order event0_.start_date asc]; sql state [90016]; error code [90016]; column "event0_.start_date" must in group list; sql statement: anyone have suggestions?