Posts

npm - Facing issue in setting my first react-native project. -

npm err! darwin 14.5.0 npm err! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "--save" "--save-exact" "react-native" npm err! node v4.2.1 npm err! npm v3.10.6 npm err! code econnreset npm err! network tunneling socket not established, cause=getaddrinfo enotfound proxy proxy:8083 npm err! network not problem npm npm err! network , related network connectivity. npm err! network in cases behind proxy or have bad network settings. npm err! network npm err! network if behind proxy, please make sure npm err! network 'proxy' config set properly. see: 'npm config' npm err! please include following file support request: npm err! /users/i816556/awesomeproject/npm-debug.log npm install --save --save-exact react-native failed probably have npm related issues. check question more help.

algorithm - Find all simple cycles through a given node in Neo4j -

i'm working graphs , knew neo4j . can neo4j me find simple cycles go through given node in graph? i can in java / python code implementing a modification of johnson's algorithm . this example of graph created, cypher code can executed on neo4j database: create (john:person { name : '@john',facebook: 'facebook.com/john'}) create (josh:person { name : '@josh',facebook: 'facebook.com/josh'}) create (dan:person { name : '@dan',facebook: 'facebook.com/dan'}) create (kenny:person { name : '@kenny',facebook: 'facebook.com/kenny'}) create (bart:person { name : '@bart',facebook: 'facebook.com/bart'}) create (mike:person { name : '@mike',facebook: 'facebook.com/mike'}) create (jenny:person { name : '@jenny',facebook: 'facebook.com/jenny'}) create (frank:person { name : '@frank',facebook: 'facebook.com/frank'}) create (erick:person { name : '@eri...

BigCommerce - Stencil - client configurable text value pair -

working on stencil theme supports third-party javascript widget. no problem passing product data script. problem need pass client's license key , don't want hardcode in template. schema.json not support text field. idea how store owner can set text configuration accessible via yaml? any reason setting value in config.json file , calling template wouldn't work? you set value in config file so. "settings": { "my_license_key": "abcdefg", .... } then call value in template. <p>{{theme_settings.my_license_key}}</p> this way wouldn't need include yaml attribute on each page need value either.

windows - Xamarin Tools->Android menu disabled in Visual Studio 2015 -

as in title, cannot use xamarin in visual studio 2015 on windows 10, because have tools > android menu disabled. has got same issue? trying figure out problem , find solution hours, nothing reinstalling visual studio or installing android studio , later launching visual studio helps. the solution solve problem : to launch uninstaller.exe in c:\program files (x86)\android\android-sdk then manual installation https://developer.xamarin.com/guides/android/getting_started/installation/windows/manual_installation/ now ok, sub menus under tools / android active. @moderator: yesterday put ide logs jon douglas asked because had same issue , post not here. why ?

Trying to make jquery validation errors get added dynamically, why isn't this code working? -

i'm using following code try , dynamically add error labels , not have use many if else statements doesn't seem work, appreciated :) this works: errorplacement: function(error, element) { if (element.attr("name") == "site" ) error.insertafter("div#siteerror"); else if (element.attr("name") == "name" ) error.insertafter("div#nameerror"); else if (element.attr("name") == "email" ) error.insertafter("div#emailerror"); else if (element.attr("name") == "password" ) error.insertafter("div#passworderror"); else if (element.attr("name") == "headerimage" ) error.insertafter("div#headerimageerror"); else if (element.attr("name") == "header1" ) error.insertafter("div#header1error...

search - Iterative Deepening Without Specified Depth Limit -

i have question regarding search technique iterative deepening. question is, difference between normal depth-first search , iterative deepening without specified depth limit? have tree goal node have no specified limit in iterative deepening search. output same traversal sequence if regular depth-first search? suppose goal @ depth level of 3 (with root being @ depth = 0), , it's not way on "left" side of tree (where found depth-first search (dfs)). a normal dfs may spend lot of time search @ depth levels of 4, 5, 6, etc., beforing moving "up" tree, "to right", , finding goal @ depth 3. iterative deepening, if there goal @ depth = 3, never waste time looking @ nodes @ depth = 4. because iterative deepening first dfs depth limit of 1, dfs depth limit of 2, , dfs depth limit of 3 (which find goal , therefore terminate search). note in example situation, breadth-first search (brfs) not waste time @ depth of 4, , bit faster due not re-doing...

groovy - Creating/updating array of objects in elasticsearch logstash output -

i facing issue using elastic search output logstash. here sample event { "guid":"someguid", "nestedobject":{ "field1":"val1", "field2":"val2" } } i expect document id present in elasticsearch when update happens. here want have in elastic search document after 2 upserts: { "oldfield":"some old field original document before upserts." "nestedobjects":[{ "field1":"val1", "field2":"val2" }, { "field3":"val3", "field4":"val4" }] } here current elastic search output setting: elasticsearch { index => "elastictest" action => "update" document_type => "summary" document_id => "%{guid}" doc_as_upsert => true script_lang => "groo...