Posts

windows 7 - Installing Git-TFS without Git itself -

currently, way install git-tfs bridge through chocolatey . when tried it, however, appears install git (for windows) along actual git-tfs package. have git installed on work machine, don't need modify/remove what's there. is there way force chocolatey not modify current git install , put in git-tfs package? if there is, how configure use current git install? i can't speak other git clients, if you're using git-bash shell, can download source git-tfs github, compile it, , put anywhere on system , add location path environment variable. shell find git-tfs , hook in.

javascript - Umbraco add linked from page @nodename as text input value on form -

how can add linked page @nodename text input value on form? input disabled, user cannot change text. <input type="text" name="jobtitle" id="jobtitle" value="job title prefilled here linked page @nodename - disabled field" disabled="disabled" /> i assume razor? try @model.name instead.

PHP form validation error -

hi beginner in programming php , while trying form validation got error: "fatal error: can't use function return value in write context in c:\xampp\htdocs\web\proiecte\cristina\formular.php on line 67" this html section: <form id ="fabrica" action="formular.php" method="post"> <input type="checkbox" name="unu"/> </form> and php code: if(isset($_post('unu'))){ echo "<tr>"; echo "<td>a mers</td>"; echo "</tr>"; } what doing wrong? _post associative array (a superglobal) you can access content using regular array syntax $_post['unu'] instead of $_post('unu')

iphone - post on multiple friends facebook wall -

i make application 1 facebook wall post. works me using fbconnect. want wall post multiple friends @ time on 1 button click. possible post on multiple friends wall? if possible suggest me. my code : nsmutabledictionary *params = [nsmutabledictionary dictionarywithobjectsandkeys: [nsstring stringwithformat:@"%@",[[arrdata objectatindex:i] objectforkey:@"id"]], @"to", @"post on facebook", @"name", @"facebook wall post", @"description", @"http://m.facebook.com/apps/myapp", @"link", nil]; appdelegate *delegate = (appdelegate *)[[uiapplication sharedapplication] delegate]; [[delegate facebook] dialog:@"feed" andparams:params anddelegate:self]; please reply me. ...

java - Regex to find key->value in string -

i have string need array (2 - dim) of key->value pairs. a "match" when there -> between 2 words, mo spaces before , after -> for example input string: skip_me key1->value1 key2->value2 skip_me_2 key3->value3 skip_me_3 skip_me -> also the result should array: key1,value1 key2,value2 key3,value3 this code: pattern p = pattern.compile( "\\s*([^(->)]+)->([^(->)]+)\\s*" ); matcher m = p.matcher("skip_me key1->value1 key2->value2 skip_me_2 key3->value3 skip_me_3"); while( m.find() ) { system.out.println( "key:" + m.group(1) + "value:" + m.group(2) ); } my regex wrong. please assist. matches word characters (letters, digits, , underscore _ )... many can pattern.compile( "(\w+)->(\w+)" );

python + django + ftp app .. processing files , indexing and download -

i have question regarding building django app simple, getting username , password user of accounts in ftp, app retrieve list of files, can order file modified, name etc.. , download file there tool ftptool 0.5.1 problem can't find way file info when created ? http://pypi.python.org/pypi/ftptool/0.5.1 any solution? >> a_host.listdir("/a_dir") (['other_dir', 'some_dir'], ['foo', 'bar']) looking @ documentation , source fo ftptools there seems no way of getting meta information on files unless download them. using low level ftplib python includes, there ftp protocol command mlsd 1 looking for. might have check though, if ftp server supports that

shell - how to append string -

i parsing file selected string , build single line, however, don't know how it(as shown in //add...) in shell scripts while read line tt=`echo $line | cut -d'|' -f2 | cut -d'"' -f1` //add $total = add tt parts big string seperate ", " done < tmp_file echo $total >> outfile thank you you append in shell using assignment , variable expansion: total="${total}, ${tt}" the curly braces ( {} ) aren't necessary in case find distinguish variables when they're next each other this. this give leading ", ". can work around this: total="${total:+${total}, }${tt}" the ${variable:+value} construct expands value if variable set.