Posts

Showing posts from September, 2010

javascript - Call a function in emblem conditional statement -

how can call function parameters in emblem's conditional statement. have function: priorexist: (prior) -> @get("priors").findby("condition", prior) but error when call in emblem this if priorexist(name) is there way call above function in emblem? above functionality can achieved using ember components this component if-existing-prior-component.coffee/js app.ifexistingpriorcomponent = ember.component.extend(existingprior: (-> @get("param2").findby("condition", @get("param1")) ).property("param1")) if-existing-prior template if existingprior = yield then can use above component comparisons in our emblem this: if-existing-prior param1=name param2=priors where priors = @get("priors")

d3.js - trouble animating transition AND removing elements in D3 -

my goal allow end user toggle between 2 histograms using update functions run on clicks. i can update histogram using following 2 functions (one each dataset). however, can figure out how either 1) remove existing rects , replace them new rects updated data in abrupt manner or 2) animate transition smoothly between 2 datasets fail remove first set of rects. the d3 visualization can seen here: http://jackielu.github.io/d3-hist-v3/ when click on "percent impervious" histogram updates correctly abruptly , inelegantly. when click on "percent canopy" histogram updates nice transition previous set of rects remains the code runs when "percent impervious" clicked follows: function drawchartimperv(data) { //grab values need , bin them histogramdata = d3.layout.histogram() .bins(xscale.ticks(10)) (data.features.map(function (d) { return d.properties.imperv_p})); window.histogramdata = histogramdata; yscale.domain([0, d3.m

wordpress - Custom Plugin shortcode -

i need custom plugin in wordpress want change color in sub menu settings in wordpress use this add_action('admin_menu', 'register_my_custom_submenu_page'); function register_my_custom_submenu_page() { add_submenu_page( 'options-general.php', 'pj-plugin settings', 'pj-plugin settings', 'manage_options', 'my-custom-submenu-page', 'my_custom_submenu_page_callback' ); add_action( 'admin_init', 'register_mysettings' ); } function pj_menu() { add_theme_page( 'theme option', 'theme options', 'manage_options', 'pu_theme_options.php', 'pu_theme_page'); } add_action('admin_menu', 'pj_menu'); function register_mysettings() { //register settings register_setting( 'pj_options', 'colors' ); } function my_custom_submenu_page_callback() { if(isset($_post['colors'])){ update_option('colors', $_post['colors']);

phpunit is not working: "src/TextUI/Command.php" -

i have cakephp-2.0 in vagrant on ubunto-12.04, installed phpunit-3.7.* using composer. when try run test, shows following error: fatal error: require_once(): failed opening required 'src/textui/command.php' (include_path='/home/vagrant/test-phpunit/cakephp-2.0/app/vendor/phpunit/php-text-template:/home/vagrant/test-phpunit/cakephp-2.0/app/vendor/phpunit/phpunit-mock-objects:/home/vagrant/test-phpunit/cakephp-2.0/app/vendor/phpunit/php-timer:/home/vagrant/test-phpunit/cakephp-2.0/app/vendor/phpunit/php-token-stream:/home/vagrant/test-phpunit/cakephp-2.0/app/vendor/phpunit/php-file-iterator:/home/vagrant/test-phpunit/cakephp-2.0/app/vendor/phpunit/php-code-coverage:/home/vagrant/test-phpunit/cakephp-2.0/app/vendor/phpunit/phpunit:/home/vagrant/test-phpunit/cakephp-2.0/app/vendor/symfony/yaml:/home/vagrant/test-phpunit/cakephp-2.0/lib:.:/usr/share/php:/usr/share/pear') in /home/vagrant/test-phpunit/cakephp-2.0/app/testsuite/caketestsuitecommand.php on line 21

javascript - Display error message for 3 seconds and then fades out -

based on php file returns want show message on top of web page. $msg = "success"; // or fail $redirecturl = "index.php?msg=".$msg; header("location: $redirecturl"); html code <?php $msg=isset($_get['msg']) ? $_get['msg'] : "";?> <div id="display-success"><?php echo $msg; ?></div> now if success message need print small box appears (for 3 seconds, fades out) shows message success in green background. , if failure want display message in red background 3 seconds , fades out. //by using settime0ut settimeout(function() { $('#display-success').fadeout().text('') }, 10000 ); //by using delay() $('#display-success').fadein().delay(10000).fadeout(); example demo jquery $(".showmsg").click(function () { $('#display-success').fadein().delay(3000).fadeout(); }); html <button class="showmsg">click me&

Android RenderScript Allocation copy from NIO Direct ByteBuffer -

on android platform (api-19) copy direct byte buffer render script allocation. possible improve following code, example using ndk? final bytebuffer buffer = ...src; final byte[] bytes; if (buffer.hasarray()) { bytes = buffer.array(); } else { bytes = new byte[buffer.capacity()]; buffer.get(bytes); buffer.rewind(); } allocation.copyfromunchecked(bytes); unfortunately, no. apis not constructed can provide backing data store allocation or retrieve nio based buffer allocation created. closest thing use have bitmap based allocation created usage_shared sync'd differences rather full copy.

vb.net - How to achieve this model -

Image
i have table this i trying achieve table this: this query. select name,token , sum(qty) [qty],sum(amount)from #temp group token,name tried this.. select * (select name, qty,amt, token #temp1 ) d pivot(sum(amt) token in ([10],[20],[100],[40],[5])) p it not working though. appreciated. i think can achieve following statement: select [name], sum((case when [token] = 10 [qty] else 0 end)) token_10_qty, sum((case when [token] = 10 [amt] else 0 end)) token_10_amt, sum((case when [token] = 50 [qty] else 0 end)) token_50_qty, sum((case when [token] = 50 [amt] else 0 end)) token_50_amt, sum((case when [token] = 100 [qty] else 0 end)) token_100_qty, sum((case when [token] = 100 [amt] else 0 end)) token_100_amt #temp1 group [name] assuming columns qty , amt not null . hope way.

javascript - How to write this line better in JS -

im having simple if statment , want verify returns having default value, if yes put on variable,for me little bit ugly(to use statement twice), there shorter/nicer way write in js? if (this._oin._mmet[sm].returns.defval) { var defvalue = this._oin._mmet[sm].returns.defval; it doesn't make sense me. if value undefined should define variable so: if(typeof === 'undefined') var = 'something'; but in case value testing if exists define variable, doesn't make sense. so, use variable there: var defvalue = this._oin._mmet[sm].returns.defval; you may check if not use if not defined so: var defvalue = this._oin._mmet[sm].returns.defval || 'undefined';

jquery - How to paginate a list in OnsenUI framework -

i used onsenui , justified gallery plugin display number of products in list hybrid mobile app. , want paginate list every 4 products. have tried of pagination jquery plugins , wouldn't work. here full coding https://www.dropbox.com/s/d2jeymdxqgdkyun/project.zip?dl=0 <!doctype html> <html lang="en" ng-app="app"> <head> <meta charset="utf-8"> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="mobile-web-app-capable" content="yes"> <title>project lira</title> <link rel="stylesheet" href="lib/onsen/css/onsenui.css"> <link rel="stylesheet" href="styles/onsen-css-components-blue-basic-theme.css"> <link rel="stylesheet" href="styles/app.css"/> <script src="lib/onsen/js/angular/angular.js"></script> <script src="lib/onsen/js/on

html - Bootstrap 3 - CSS Hover Effect leaves white mark in Firefox Browser -

i've created image hover thingy website in when image gets hovered text appears. happens when unhover white thingy appears when hover image disappears. these happen in firefox. have idea why happens? , should or let be? haha #hover { color: rgba(188, 175, 204, 0.9); } h2#testimonials { color: #e72635; } div#all { width: 100%; height: 100%; } /* generic css */ .view { margin: 10px; float: left; border: 10px solid #fff; overflow: hidden; position: relative; text-align: center; box-shadow: 1px 1px 2px #e6e6e6; cursor: default; background: #fff url(../images/bgimg.jpg) no-repeat center center } .view .mask, .view .content { width: 300px; height: 200px; position: absolute; overflow: hidden; top: 0; left: 0 } .view img { display: block; position: relative } .view h2 { text-transform: uppercase; color: #fff; text-align: center; position: relati

c# - LINQ to Entities does not recognize the method 'System.String ToString(Int32)' method, and this method cannot be translated into a store expression."} -

i using following code in controller bluebusdb_context db = new bluebusdb_context(); list<selectlistitem> li =new list<selectlistitem>(); li = db.m_bluebus_states.select(s => new selectlistitem {text = s.state_name, value = convert.tostring(s.state_code)}).tolist(); viewbag.state = li; return view(); then in create view want bind dropdown , using bellow @html.dropdownlist("state",viewbag.state list<selectlistitem>) i getting above error.. linq entities not support convert (see supported funuctions ) i first create anonymous type , convert selectlistitems better seperate concerns little bit: li = db.m_bluebus_states .select(s => new { s.state_name, s.state_code }) .asenumerable() .select(x => new selectlistitem { text = x.state_name, value = x.state_code.tostring()}) .tolist();

Crawling Google play store -

i crawling google app store. use firefox+firebug review request , response. 1 parameter don't understand. example: url "" when load next page, post param pagtok, which's value "egiika==:s:ano1ljj4wwq" don't know value come from? 1 can help? investigation since google changed paging logic, , requires token, i've found myself trying investigate how either manually generate tokens, or scrape them out of html retrieved on each response. so, lets our hands dirty. using fiddler2 , able isolate token samples, looking @ requests issued each "paging" of play store. here's whole request: post https://play.google.com/store/search?q=a&c=apps http/1.1 host: play.google.com connection: keep-alive content-length: 123 origin: https://play.google.com user-agent: mozilla/5.0 (windows nt 6.3; wow64) applewebkit/537.36 (khtml, gecko) chrome/39.0.2171.95 safari/537.36 content-type: application/x-www-form-urlencoded;charset=utf

readonly - Libre Office Base; Opens reports in read-only -

libreoffice base opens reports automatically in read-only mode. i've looked everywhere find how make sure doesn't opens reports in read-only mode. does knows how make sure libreoffice base won't open reports in read-only mode? thank time! just save read-only report file. , open resulting .odt document. editable.

javascript - Why are ajax calls to two page methods being executed synchronously? -

i have 2 script tags on page, each containing document.ready(), , each of them making ajax call page method. first 1 loads values select list. second 1 loads tree dom. <script> $(document).ready(function() { $.ajax({ url: 'pagemethods.aspx/gettop50', async: true, success: function(data) { //loads values select list } //rest of stuff... }); }) </script> <script> $(document).ready(function() { $.ajax({ url: 'default.aspx/gettree', async: true, success: function(data) { // loads tree dom } //rest of stuff... }); }) </script> why gettree page method keep executing after success callback of gettop50 ? set breakpoint gettree method serverside, , hit after select list loaded. the client start both ajax calls 1 after other both "in-flight" @ same time. server 1 complete first , depend u

twitter bootstrap - Boostrap minimum scale with rotativa PDF -

i have problem when using rotativa, bootstrap page scales minimum when printed. there way can set viewport size view, wont scale bootstrap minimum pdf generation? controller implementation [httpget] public actionresult downloadviewpdf() { var vm = new viewmodel(); return new rotativa.viewaspdf("summarypdf", vm) { filename = "testviewaspdf.pdf", pagesize = size.a4 }; } and general view implementation <div class="row"> <div class="col-sm-6"> <div class="form-group"> <span class="label">email</span> <span class="form-control-static">test@email.com</span> </div> </div> <div class="col-sm-6"> <div class="form-group"> <div class="required-enabled"> <span class="label">phone</span>

php - Ajax Get Syntax -

i 've read few tutorials ajax http request, somehow couldn't understand enough build syntax need. var path = $(this).data('path'); $.get('http://example.ro/index.php?page=contract.php&path='+path, function(){ }); what try achieve change url ( http://example.ro/index.php?page=contract.php ) , without reloading page,so can use path value later use in query or other action,in same page.but url doesnt change (it must &path=value @ end),so can't catch value like: if(isset($_get['id'])){ /do } is syntax wrong? or cant in way? please! update $(document).on('click','tr.listcontractrow', function(e){ var path = $(this).data('path'); $.ajax({ type: 'get', url: 'contract.php', data: {id: path}, success: function(result) { console.log(result) }, error: function() { } }); }); the variable path value taken php content,and want take ajax , return

security - SAML2.0 FilesystemMetadataProvider -

i have sample metadata file , need upload identity server local file system , populate every saml entities through library http://grepcode.com/file/repo1.maven.org/maven2/org.opensaml/opensaml/2.4.1/org/opensaml/saml2/metadata/provider/filesystemmetadataprovider.java?av=f i need issuer name , assertion consumer url populate samlsso object need know how elements using filesystembasedmetadataprovider here sample metadatafile <entitydescriptor xmlns="urn:oasis:names:tc:saml:2.0:metadata" entityid="loadbalancer-9.siroe.com"> <spssodescriptor authnrequestssigned="false" wantassertionssigned="false" protocolsupportenumeration= "urn:oasis:names:tc:saml:2.0:protocol"> <keydescriptor use="signing"> <keyinfo xmlns="http://www.w3.org/2000/09/xmldsig#"> <x509data> <x509

java - Android Studio access translated strings with variable -

i'm programming application communicates server. if there's error, server returns definded errorcode. prompt error user need translate errorcode correct language. have xml english , german translations. i thought, refer strings this: final string errorcodeid = perrorcodeid; string errorcode = getstring(r.string.errorcodeid) i'm looking easy way access these translated strings, have no idea, how it. thanks in advance :) you should define mapping errorcode -> r.string.errorcode* constants. use mapping r.string.errorcode* constant errorcode . , use getstring string correct translation. note android automatically select correct translation based on user locale. so, mapping like: map<integer, integer> errorcodemapping = immutablemap.<integer, integer>builder() .put(1001, r.string.errorcodedenied) .build(); and use: if (errorcodemapping.get(errorcodefromserver) != null) { string description = getstring(errorcod

css - Chrome : Text blurry when skew back : skew(-10deg) -> skew(10deg) -

Image
i want skew parent , skew back on child. example : html <div class="parent"> <!-- skew(-10deg) --> <div class="child">hello</div> <!-- skew(10deg) (skew back) --> </div> example : css .parent { transform: skew(-10deg); } .child { transform: skew(10deg); } text inside seems ok firefox, safari. not chrome , opera bit blurry i have use -webkit-backface-visibility: hidden; reduce box pixelated in chrome firefox : chrome : firefox vs chrome : or zoomed photoshop live example : http://jsfiddle.net/1tpj1kka/ any idea ? note !!! : web-tiki's answer way solution prevent problem. if answered real solution resolved skew problem (real fix), accept answer. the "blurry text" after 2d or 3d transforms webkit browsers has been discused many times . in case, can apply transform on pseudo element text isn't affected skew property. it alow use 1 tag in markup :

Android app crash in 512mb ram mobile -

hi created 1 android application , uploaded in play store, in app used navigation drawer navigate 1 activity another. my app working fine in maximum no of mobiles has 1 gb ram , latest os kitkat or lollipop, in 512 mb ram mobile , in ice_cream_sandwich version app closing after start up, saying "unfortunately app has stopped". problem arising in few mobiles (i saying based upon user comments in play store). and minimum , maximum sdk version <uses-sdk android:minsdkversion="14" android:targetsdkversion="19" /> and didn't add appcompat v7 library, if add java class files showing error. now need is, need know why crash happening , how fix this. i made search in couldn't able find proper solution need. and crash report got in play store java.lang.nullpointerexception in android.graphics.drawable.insetdrawable.isstateful java.lang.runtimeexception: unable start activity componentinfo{com.imaginet.everwinmatriculation

javascript - Remove NaN when removing text from a linked input field -

i've been looking answer looking @ other posts couldn't find directly usable script (yet might ignorance toward javascript...) i'm using script transliterate onblur foreign language's script latin alphabet : <script> function separation() { var str = document.getelementbyid().value; var res1 = str.charat(0); var res2 = str.charat(1); var res3 = str.charat(2); document.getelementbyid().innerhtml = res1+res2+res3; } var syllable_1 = { '김' : 'kim ', '이' : 'lee ', '야' : 'ya', } var syllable_2 = { '김' : 'gim', '이' : 'i', '야' : 'ya', } function hangul_to_roman(hangul) { return syllable_1[hangul.charat(0)] + syllable_2[hangul.charat(1)] + ( hangul.length >= 3 ? "-" + syllable_2[hangul.charat(2)] : "" ); } </script> <input type="text" id="ttt" value="김김이" onblur="document

content management system - Don't want to repeat a rand after reloding page (PHP) -

i have created form should submit content in database. make random numberstring , when submit want content insert database. before submit random numbers repeated , got new one. how eliminate that? <?php include_once('../includes/connection.php'); $random = rand(1000, 2000) $dedu = $pdo->prepare("update users set user_password ='$random'"); $password = $_post['password']; $query = $pdo->prepare("select * users user_password = ?"); $query->bindvalue(1, $password); $dedu->execute(); $query->execute(); $num = $query->rowcount(); if ($num == 1) { if (isset($_post['title'], $_post['content'])) { $title = $_post['title']; $content = nl2br($_post['content']); if (empty($title) or empty($content)) { $error = 'all fields requried'; } else { $query = $pdo->prepare('insert articles (article_title, article_content) values (?, ?)'); $query->bindvalue(1, $title

Sprite Kit Multiple Collisions -

i'm going through tutorial/class making game in sprite kit , i'm having issues multiple collisions happening @ same time. i'm implementing didbegincontact: method collisions make ball bounce because there seems known issue objects may "stick" body if velocity low , angle narrow. by making _ball.physicsbody.collisionbitmask = 0; and putting below line in didbegincontact if(other body == firstbody && _ball == secondbody) secondbody.velocity = (cgvectormake(secondbody.velocity.dx * -1.0, secondbody.velocity.dy)); (or dy * -1.0 vertical collisions) i can make object bounce naturally , works. the issue i'm having when there multiple contacts called on _ball. if 1 collision makes _ball reverse direction , hits object of same type reverses direction again, _ball continue moving in it's original direction (double negative). _ball moves through these objects. can make bounce if secondbody.categorybitmask = 0; have issue of returni

Using LDAP in Java GWT, working on localhost but not on the server -> errorcode 34 -

i'm making application java gwt ldap used retrieve bunch of data. working fine on localhost, once upload everyting our server, ldap keeps giving me errorcode 34. i've done research, , it's invalidnameexception. looking @ loggs, this; ldap: error code 34 - 0000208f: nameerr: dsid-031001f7, problem 2006 (bad_name), data 8350, best match of: 'ldap:,ou=fmp-fbz' so apparently not giving valid name. strange becuase on localhost works fine! edit: notice there comma (,) right after 'ldap: in codeline above, i'm guessing might cause, mean somehow somewhere piece of code gets removed or altered on server.... this method retrieving data; private final string provider_url = "ldap://xxx/ou=fmp-fbz users, dc=xxx ,dc=xxx, dc=xxx"; private final string provider_url_vdi = "ldap://xxx/ou=fmp-fbz users vdi, dc= xxx, dc=xxx, dc=xxx"; dircontext ctx = null; namingenumeration results = null; hashset<string> ldaploginnames =

Destroying the media player when user leaves the screen. (Android Studio- Java) -

this question has answer here: android mediaplayer stop , play 4 answers i want stop background music when user clicks on exit button , direct main screen. missing in code below? public void addlisteneronbutton() { final context context = this; exitbutton = (button) findviewbyid(r.id.exit); exitbutton.setonclicklistener(new view.onclicklistener() { @override public void onclick(view v) { intent intent = new intent(context,games.class); startactivity(intent); player.stop(); player.release(); } }); } you can check answer of similar question, maybe solved problem: android mediaplayer stop , play

jquery - Vaadin and independent JavaScript Events -

i develop strength password indicator using progressbar , passwordfield. problem can't use jquery events handlers e.g. onkeydown or native javascript's addeventlistener because works 1 time vaadin somehow override it. dont want remove permanently , completly, should work jquery object. ideas or better solution welcome. any ideas or better solution welcome. that's how batman (code first, explanation later): @suppresswarnings("serial") @theme("so5") @javascript("batman.js") public class so5ui extends ui { @webservlet(value = "/*", asyncsupported = true) @vaadinservletconfiguration(productionmode = false, ui = so5ui.class) public static class servlet extends vaadinservlet { } @override protected void init(vaadinrequest request) { verticallayout layout = new verticallayout(); textfield field = new textfield(); field.setid("batmanfield"); layout.addcom

java - Prevent twitter4j from printing output when displaying a Twitter stream -

how go getting live twitter feed (or whatever part of twitter provides, 1% hear) using twitter4j without having twitter4j print console output? although thought mean 1 had turn off logging, trying turn off logging has not helped. prefer "in-code" solution 1 require me pass vm argument. an sscce problem i'm facing be: import twitter4j.*; public class streamtweets { public static void main(string[] args) { statuslistener listener = new statuslistener(){ public void onstatus(status status) { // whatever want here } public void ondeletionnotice(statusdeletionnotice statusdeletionnotice) {} public void ontracklimitationnotice(int numberoflimitedstatuses) {} public void onexception(exception ex) { ex.printstacktrace(); } public void onscrubgeo(long arg0, long arg1) {} public void onstallwarning(stallwarning arg0) {}

html - How to wrap an HtmlElement in an HtmlDocument -

is possible wrap htmlelement htmlelement? , if so, how? lets say, have html, , want wrap img additional div : <html> <head><title>foo</title></head> <body> <img src="test.png"/> <p>hello world</p> </body> </html> i've tried using following snippet (n.b. document element htmldocument ): $htmlfile = new-object -comobject "htmlfile" $htmlfile.ihtmldocument2_write((gc -path "./html.htm" -raw)) $htmlfile.documentelement.getelementsbytagname("img") | %{ $div = $htmlfile.createelement("div") $div.classname += "nonbreakingimage" $void = $div.appendchild($_) $_.outerhtml = $div.outerhtml } but this, unfortunately, removes image tag: <body><p>hello world</p></body> another idea was, this: $htmlfile = new-object -comobject "htmlfile" $htmlfile.ihtmldocument2_write((gc -path "./html.htm&qu

java - JsonFormat annotation to parse two date type -

i have problem, want parse different type of date string timestamp. i used @jsonformat(shape=jsonformat.shape.string, pattern ="dd-mmm-yyyy hh:mm:ss.sss z",timezone="ist") private timestamp validuptodate; and parsing ok when milisecond value given after second, if provide "16-dec-2014 15:20:30 ist" type of date, getting below exception :: failed parse date value '15-aug-2019 19:30:00 ist' (format: "dd-mmm-yyyy hh:mm:ss.sss z"): unparseable date: "15-aug-2019 19:30:00 ist" but if provide "16-dec-2014 15:20:30.000 ist" , no issues. dont want mention milisecond value if not present. i tried provide 2 pattern value llike @jsonformat(shape=jsonformat.shape.string, pattern ={"dd-mmm-yyyy hh:mm:ss z","dd-mmm-yyyy hh:mm:ss.sss z"} ,timezone="ist") but compilation error happens. tried using different combination, no hope. please help. lot.

dart - HttpRequest (web client) and HttpRequest (server): method and contentType doesn't exchange -

the method , contenttype parameters doesn't exchange in httprequest (web client) , httprequest (server) in dart. i have following code: (web client) var url = "http://127.0.0.1:8087"; string jsonstring = json.encode(dadosregistro[id]); httprequest.request(url, method: "delete", senddata: jsonstring, mimetype: "application/json") .then((httprequest resp) { window.console.log(resp.response); }).catcherror(tratarerro); (server) httpserver.bind('127.0.0.1', 8087).then((server) { server.listen((httprequest request) { print(request.method); print(request.headers.contenttype); }); when web client calls server, result following: options null my expectative was: delete application/json am doing wrong? thanks! this cors issue. request receiving pre-flight request, sent browser verify if server can receive actual request. can see more cors here: http://www.html5rocks.com/en/tutorials/cors/ to see ex

select - SQL Specific Item on top -

i having query photo contest: select * `users` order entry_id desc the result gives 10 records entry_id 10, 9, 8, 7, ......1 what can pick specific entry on top? there requirement if there refer id, entry show first. so expected result should be: 4,10,9,8,7,6,5,3,2,1 if 4 if refer id. try this: select * `users` order (case when entry_id = 4 0 else 1 end), entry_id desc;

asp.net - Unwanted bind after javascript -

in page have gridview has checkbox column on left side. in header have checkbox should either uncheck or check rest of checkboxes dependant on header checkbox state. happening checkboxes changing state , gridview rowdatabound event changing them previously. question is, there anyway prevent databind after post other : if not page.ispostback gridview.databind() end if because have in page load event.

node.js - Browserify build fails with local version of an npm module in my package.json dependencies -

i've managed setup package.json , build app's dependencies bundle using browserify , however, when try , switch out 1 of dependencies forked local copy build fails. this works , installs upstream version (omitting other modules): "dependencies": {"react-bootstrap": "0.13.0"} a local path fork fails: "dependencies": {"react-bootstrap": "/home/tom/dev/react-bootstrap/"} as using npm link , seems "correct" way of managing local version minimal hassle. finally, using git url fork fails: "dependencies": {"react-bootstrap": "git://github.com/tompaton/react-bootstrap.git"} i tried updating package.json in react-bootstrap module repository url pointed tompaton/react-bootstrap didn't make difference. the error message i'm getting not shedding light on situation: (cycles)tom@neon:~/dev/flask_projects/cycles!$ npm run build > cycles@1.0.0 build /home/