Posts

Showing posts from June, 2012

ip - chef new web node recipe -

i'm chef newbie , working on "new web node" recipe creates server scratch , many things until reaches required state. got part right , far good, need task , here's confused in using chef it. whenever create new web node, need edit php .conf file on server adding new web node's ip address variable string on php conf file. this how things: # knife rackspace server create --server-name chef-node1 --node-name chef-node1 --flavor performance1-2 --image 042395fc-728c-4763-86f9-9b0cacb00701 once server created add recipe , run chef client on new node # knife node run_list add chef-node1 recipe[new-web-node::default] # knife ssh -a ipaddress 'name:chef-node1' 'chef-client' my question how go editing php .conf file on other server without creating new recipe have manually run on other server? how can done in 1 go? use search search "the other" node based on role, recipe or attribute. put ip address of other node in templat...

php - How to access POST parameters in the Phalcon Micro framework -

i'm trying out phalcon micro framework. tutorial on page mentions following way access request data: $app->request->getjsonrawbody(); i want access standard post parameters since don't see in tutorial, tried passing json in request body. result got 500 error , in log: php fatal error: call member function getjsonrawbody() on non-object in /users/tom/dropbox/code/microphalcon/index.php on line 8 php stack trace: php 1. {main}() /users/tom/dropbox/code/microphalcon/index.php:0 php 2. phalcon\mvc\micro->handle() /users/tom/dropbox/code/microphalcon/index.php:44 php 3. {closure:/users/tom/dropbox/code/microphalcon/index.php:6-11}() /users/tom/dropbox/code/microphalcon/index.php:44 google has not helped. all want access post parameters. how can that? your $app ins't object...are using closure correctly? //adds new robot $app->post('/api/robots', function() use ($app) { $robot = $app->request->getjsonrawbody(); ...

reporting services - Cascading Parameter SSRS Report hangs on Production Server -

i have report in used 2 multivalue parameters affiliate, tfn. both fetch available values using query. affiliate independent while tfn list populated once affiliate selected. report works fine when run in development mode in ssrs. when deploy, gets stuck after select first parameter, affiliate. buttons grayed out , i'll have re-run report. report gets stuck, regardless of tfn result set size. any highly appreciated. add scriptmode="release" scriptmanager object on aspx webpage <asp:scriptmanager id="scriptmanager1" runat="server" scriptmode="release"> </asp:scriptmanager>

php - Cannot redeclare class User in Laravel -

the source of error administrator package maintained frozennode. error: symfony \ component \ debug \ exception \ fatalerrorexception cannot redeclare class user reference: open: /home/itrekker/public_html/app/models/user.php <?php use illuminate\auth\userinterface; use illuminate\auth\reminders\remindableinterface; class user extends eloquent implements userinterface, remindableinterface { protected $table = "user"; protected $hidden = ["password"]; public function getauthidentifier(){ return $this->getkey(); when error returned don't have trail of functions follow original cause of error. have error , prior error see: 0. illuminate\exception\handler handleshutdown <#unknown>0 it seems apparent package must have classes called user since using package thing breaks site, when try apply believed solution (renaming user model user mod , few other attempted variants) same error different model name. ...

java - Cant start a dialog activity from a button in another activity -

i trying start new activity dialog activity putting intent on button activity. whenever try , press button, activity unfotunately closes. main activity.java public class mainactivity extends fragmentactivity { @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.activity_main); button ab = (button) findviewbyid(r.id.button1); ab.setonclicklistener(new onclicklistener() { public void onclick(view arg0) { // todo auto-generated method stub intent intent = new intent(mainactivity.this, newdialog.class); startactivity(intent); } @override public boolean oncreateoptionsmenu(menu menu) { // inflate menu; adds items action bar if present. getmenuinflater().inflate(r.menu.main, menu); return true; } public void side(view view){ android.support.v4.app.fragm...

c# - Render View in backend dll -

normally use this: private byte[] getinvoiceaspdf(string id) { var model = utilities.getmodel(id); viewdata.model = model; var view = viewengines.engines.findview(controllercontext, "pdflayout", null); byte[] pdfbuf; using (var writer = new stringwriter()) { var context = new viewcontext(controllercontext, view.view, viewdata, tempdata, writer); view.view.render(context, writer); writer.flush(); string content = writer.tostring(); pdfbuf = utilities.converthtmltopdf(content); if (pdfbuf == null) throw new exception("invalid pdfbuffer when creating pdf file."); } return pdfbuf; } this works great when inside controller. need move dll file. how can convert , work inside dll file? the problems controllercontext , viewdata / tempdata . in above set viewdata directly since inside controller , context controll...

c++ - Reading text file with floating point numbers faster and storing in vector of floats -

i have c++ code written in visual studio 2010, reads text file ( contains tens of thousands of floating point numbers separated space).code reads text file contents , store vector of floating points.my problem , code taking alot of time read , copy vector.is there faster way this.some thing can done in visual studio c++ ( using boost libraries or mmap ) vector<float> replaybuffer; ifstream in; in.open("filename.txt"); if(in.is_open()) { in.setf(ios::fixed); in.precision(3); in.seekg(0,ios::end); filesizes = in.tellg(); in.seekg(0,ios::beg); while(!in.eof()) { for(float f;in>>f;) replaybuffer.push_back(f); } in.close(); } if files big, consider memory mapped files : boost offer excellent library manipulate them cross platform (you mentioned mmap posix-unix command, , looks developing on windows) also, consider reserving space in vector avoid dynamic reallocations replaybuffer.reserve(expected_final_size...

time series - How to get fitted values from ar() method model in R -

Image
i want retrieve fitted values ar() function output model in r . when using arima() method, them using fitted(model.object) function, cannot find equivalent ar() . it not store fitted vector have residuals. example of using residuals ar -object reconstruct predictions original data: data(wwwusage) arf <- ar(wwwusage) str(arf) #==================== list of 14 $ order : int 3 $ ar : num [1:3] 1.175 -0.0788 -0.1544 $ var.pred : num 117 $ x.mean : num 137 $ aic : named num [1:21] 258.822 5.787 0.413 0 0.545 ... ..- attr(*, "names")= chr [1:21] "0" "1" "2" "3" ... $ n.used : int 100 $ order.max : num 20 $ partialacf : num [1:20, 1, 1] 0.9602 -0.2666 -0.1544 -0.1202 -0.0715 ... $ resid : time-series [1:100] 1 100: na na na -2.65 -4.19 ... $ method : chr "yule-walker" $ series : chr "wwwusage" $ frequency : num 1 $ call : la...

java - How to move a whole ElasticSearch 0.20.6 Cluster? -

we running old elasticsearch 0.20.6 cluster on legacy-system, need move , scale down single machine, since service used anymore. we can not upgrade es, since afaik imply updating java clients, can not do. does know "simple" way move indices new machine running 0.20.6? try moving /data directory.

r - Compare each row value to multiple rows and return a value -

i trying following in r. i have data frame time(hour) , second column has either 0 or one. time interval between consecutive time step 1 hour. easier if attach sample file don't know how attach one. trying find out how many 1's occur 24-hour apart. more 1 "1" in 24 hour period considered "1" let's assume counter, cnt initialized @ 0. i want compare each of row in second column second column values in 24 hour window. if there more 1 "1" in 24-hour period, implies there 1 "1" in 24-hour window. in fortran, set counter, go each time step, compare value next 24 hours/time steps. if "1" found, first "1" increase counter 1. if there "1" in same 24-hour period, not increase counter more , move next row , keep doing until end of file. hopefully, explain want. if it's not clear, let me know. think can done match() function or plyr package cannot find out. the iranges package in bioconduc...

php - Stuck on javascript username generator -

i trying create system username consists of first alphabetic characters found in family name, street address, given name; numerical day of month; , numerical seconds field of time of submission. @ moment have below, works without address code (gname , surname). function validateform() { var system= ''; var givenname= document.getelementbyid('gname').value; var familyname= document.getelementbyid('surname').value; var addy= document.getelementbyid('address').value; addy = addy.replace(/[0-9]/g, ""); var givchar = givenname.substr(0, 1); var famchar = familyname.substr(0, 1); var addchar = addy.substr(0, 1); system += famchar+givchar+addchar; document.getelementbyid('susername').value=system; } if remove following: var addy= document.getelementbyid('address').value; addy=addy.replaceall("[0-9]",""); var addchar = addy.substr(0, 1...

javascript - angularjs doesn't return string value, but other types -

i'm using typescript , angularjs data server, when try display data on page, string type doesn't show while rest shows expected. data parsed json can see data want. i'm not sure if it's angularjs or typescript although think it's typescript. might have missed something. it name property doesn't display while count shows expected var promise = $http.get("/data/book").success( function (data) { var response = data; $scope.book= []; (var = 0; < response.length; i++) { var name = response[i].name; var count = response[i].count; $scope.book.push(new book(name, count)); } you want deserialize message, you'll have json string, not javascript object: var response = json.parse(data); if sure angular has done per comment @aapierce, should check structure of object. ...

excel - High resolution timer/code run time -> overhead? -

i'm trying find code run time using high resolution timer, i've noticed timer has inconsistent results , find out why is. i found article how test running time of vba code? , have implemented top answer, tried using find run time of several functions , noticed results changed drastically. to see if fault of timer, made function started , stopped timer. public sub test_ctimer() dim results(0 4) double dim t ctimer: set t = new ctimer dim integer 'removes msg box overhead msgbox "about start" = 0 4 t.startcounter results(i) = t.timeelapsed next = 0 4 msgbox results(i) next end sub the first measurement takes more time (~ 1 magnitude greater) of following measurements. know why is? below ctimer code how test running time of vba code? option explicit private type large_integer lowpart long highpart long end type private declare function queryperformancecounter lib "kernel...

asp.net mvc - MVC || HTML Form || Object reference not set to an instance of an object -

i error , dont know how on come it: "object reference not set instance of object." line 48: public actionresult upload(imagefile imagefile) line 49: { line 50: foreach (var image in imagefile.files) line 51: { line 52: if (image.contentlength > 0) i tried using id attribute , name attribute , not... this problematic section in controller : [httppost] public actionresult upload(imagefile imagefile) { foreach (var image in imagefile.files) { if (image.contentlength > 0) { cloudblobcontainer blobcontainer = _blobstorageservice.getcloudblobcontainer(); cloudblockblob blob = blobcontainer.getblockblobreference(image.filename); blob.uploadfromstream(image.inputstream); } } return redirecttoaction("upload"); } this html.form : <p> @using (html.beginform(...

css - Hyperlink in ::after in HTML -

this question has answer here: css after element insert mailto link? 5 answers how can make hyperlink of ::after section in html, example: <span>this example</span> span:after { content: "...read more"; } output be: this example...read more. i want ...read more hyperlink. possible? no, it’s not possible. generated content can take form of either static text or static image content, , not entire dom elements. nor kind of thing ::after meant used for. there no reason not mark hyperlink within document, since you're expressing link between document , other document.

ios - MPMoviePlayerViewController orientation different to devices -

i have created vimeo player doing in pageview.m : @interface pageview () @property (strong, nonatomic) mpmovieplayerviewcontroller *playerviewcontroller; @end and this: [ytvimeoextractor fetchvideourlfromurl:vimeos quality:ytvimeovideoqualityhigh completionhandler:^(nsurl *videourl, nserror *error, ytvimeovideoquality quality) { if (error) { // handle error nslog(@"video url: %@", [videourl absolutestring]); } else { // run player self.playerviewcontroller = [[mpmovieplayerviewcontroller alloc] initwithcontenturl:videourl]; [self.playerviewcontroller.movieplayer preparetoplay]; [self presentviewcontroller:self.playerviewcontroller animated:yes completion:n...

Google App Engine Cloud SQL too many connections -

i have app running on google app engine , uses task queue api of heavier lifting in background. of tasks need connect cloud sql work. @ scale many tasks attempting connect cloud sql @ once. need sort of data service layer of shared client tasks aren't making individual connections cloud sql. if has ideas i'd love hear them. yes, can this, take little bit of planning, coding, , configuration in side. one idea use pull queue (instead of push queues). pull queue can schedule tasks , execute them in separate module of application. hardware of module can configured separately main module, can avoid many instances serving requests in turns allow better use connection pooling. of course, depending on traffic getting might want decide on how many concurrent backend instances want running (and connecting db) avoid/minimize contention. easier said done, here 2 resources out: app engine modules - https://developers.google.com/appengine/docs/java/modules/ pull queues...

ios - UIButton is partially red when enabling Show Blended Layers -

Image
i improve performance making views opaque appropriate. have uibutton showing red in simulator - it's red around text of button, not entire frame. in storyboard, i've enabled opaque , changed background color clear white, yet still shows red in simulator. how change green it's opaque , not trying work transparency? note uilabel s green when change background , opaque yes. i use following code in case: [button.titlelabel setopaque:yes]; [button.titlelabel setbackgroundcolor:[uicolor whitecolor]]; // or which-you-want-color obviously, should keep weak reference button. pretty works. button size smaller screenshot size.

How can I manipulate cartesian coordinates in Python? -

i have collection of basic cartesian coordinates , i'd manipulate them python. example, have following box (with coordinates show corners): 0,4---4,4 0,0---4,0 i'd able find row starts (0,2) , goes (4,2). need break each coordinate separate x , y values , use basic math, or there way process coordinates (x,y) pair? example, i'd say: new_row_start_coordinate = (0,2) + (0,0) new_row_end_coordinate = new_row_start_coordinate + (0,4) sounds you're looking point class. here's simple one: class point: def __init__(self, x, y): self.x, self.y = x, y def __str__(self): return "{}, {}".format(self.x, self.y) def __neg__(self): return point(-self.x, -self.y) def __add__(self, point): return point(self.x+point.x, self.y+point.y) def __sub__(self, point): return self + -point you can things this: >>> p1 = point(1,1) >>> p2 = point(3,4) >>> print p1 + p2 4, 5 you can add many o...

bitmap - is there a difference in how android devices process depending on the manufacturer -

pretty in title. i'm guessing there differences in how data processed , passed around app. there drasticly different in how makes this? the reason question being have app (obv) , on majority of phones works great, occasional hiccup. have noticed on sony models, throws toys out pram , refuses play ball. it's service (sticky) , task it's doing sending 1 image server, base64 encoded along text fields server. i'm getting null exception when null checks on every value used. said, tends happen on sony models.

How do you find a user's twitter id from a user's twitter username in Android -

in android app, want users able enter twitter username , there twitter app launches on entered username's page. did research , found out link needed open twitter app app twitter://user?user_id=id_num wondering if there way user's twitter id twitter username in android can make happen. appreciated, thank you. you should read through twitter api , in particular section user lookups that particular request has optional fields search id or screen_name , return list of matches can parse user ids. can search screen_name , read response id. the request looking is: get https://api.twitter.com/1/users/lookup.json?screen_name=somename the provided response in api examples is: [ { "name": "twitter api", "profile_sidebar_border_color": "87bc44", "profile_background_tile": false, "profile_sidebar_fill_color": "e0ff92", "location": "san francisco, ca", ...

text - How to replace a pattern with newline (\n) with sed under UNIX / Linux operating systems? -

i have txt file contains: some random text here. file has multiple lines. should 1 line. i use: sed '{:q;n;s/\n/:sl:/g;t q}' file1.txt > singleline.txt and get: some random:sl:text here. file:sl:has multiple lines. should 1 line. now want replace :sl: pattern newline (\n) character. when use: sed 's/:sl:/&\n/g' singleline.txt i get: some random:sl: text here. file:sl: has multiple lines. should 1 line. how replace pattern newline character instead of adding newline character after pattern? sed uses & shortcut matched pattern. replacing :s1: :s1:\n . change sed command this: sed 's/:sl:/\n/g' singleline.txt

escaping - Is there a difference with the HTMLEditFormat function in ColdFusion CF9 versus CF10? -

i'm seeing difference in how htmleditformat works in cf9 , cf10. htmleditformat("&gt;") in cf9: showing "&gt;" (no difference) in cf10: showing "&amp;gt;" (double-escaped, seems correct me) i've looked through cf10 notes , reviewed htmleditformat documentation , cannot find mention of there being difference in how function works. know of difference, or know of documentation proves there no difference? ...or know of other settings (coldfusion or web server) might cause work different? (this question not duplicate because not asking encodeforhtml . understand ideal solution, asking understand why htmleditformat might different in cf9 vs. cf10.) i can't imagine why function behave differently. when it's planned deprecation going cf 10. chance, calling within cfinput tag? <cfinput id="foo" value="#htmleditformat(somevalue)#" /> if so, in cf6 - cf9, tag uses htmleditformat() o...

How do you make an outlook reminder popup on top of other windows -

how make outlook reminder popup on top of other windows? after looking online long while; wasn't able find satisfactory answer question. using windows 7 , microsoft outlook 2007+; when reminder flashes up, no longer gives modal box grab attention. @ work additional plugins can problematic install (admin rights) , when using quiet system, meeting requests overlooked. is there easier way implement using third party plugins/apps? * latest macro please see update 3 * after searching while found partial answer on website seemed give me majority of solution; https://superuser.com/questions/251963/how-to-make-outlook-calendar-reminders-stay-on-top-in-windows-7 however noted in comments, first reminder failed popup; while further reminders did. based on code assumed because window wasn't detected until had instantiated once to around this, looked employ timer periodically test if window present , if was, bring front. taking code following website; outlook vba -...

PHP mysql returns bool(true) even when field is not in table? -

$sql = "update prelaunch set email_verified = true email_verification_link = '$ckey' , email_verified = '0'"; $res = mysqli_query($con, $sql); var_dump($res); bool(true) var_dump when email_verification_link not valid key in table...? update email_verified value 1 if email_verification_link key valid. when key not valid still returns bool(true) .. how can check if key valid before updating table in single sql statement? returning true means query succeeded. returning false means query failed. finding no rows not failure. failures things broken sql syntax means query can't run. instead, check mysqli_affected_rows function: $rows = mysqli_affected_rows($con);

sql server - Deduping contacts in SQL. Two Databases. Select statements, joins and #TempTables -

ok, 2 databases person , company. -select contacts without caps in person.pers_firstname -select company.comp_companycode have value of null (no assigned company code.) i need join them on person.pers_companyid=company.comp_companyid after have need able see results, , delete them. fields i'll need able see in results person.pers_firstname , person.pers_lastname here's have far select * person pers_firstname != upper(pers_firstname) collate sql_latin1_general_cp1_cs_as #temptable1 select * company comp_customernumber null #temptable2 #temptable1, temptable2 select #temptable1.pers_companyid, #temptable2.comp_companyid dbo.#temptable1 inner join dbo.#temptable2 on #temptable1.pers_companyid=#temptable2.comp_companyid i'm getting errors @ both of commands. naturally, second block of code referencing #temptable1 , #temptable2 unable located. select * #temptable1 person pers_firstname != upper(pers_firstname) collate sql_latin1_general_cp1_cs_as se...

cordova - Phonegap Windows Phone 8 Build Error -

i'm trying deploy app windows phone 8 device, compiling phonegap's 3.0.0-0.14.4 command line tools, keep getting error message while trying build it: phonegap local run wp8 -v [error] error occurred while building wp8 project. warning: [ --debug | --release ] not specified, defaulting debug... building cordova-wp8 project: configuration : debug directory : c:\users\robson\documents\phonegap\project\platforms\wp8 compiling solution's projects 1 @ time. enable parallel compilation, add "/m" option project -> c:\users\robson\documents\phonegap\project\platforms\wp8\bin\ debug\br.com.project.dll begin application manifest generation no changes detected. application manifest file date begin xap packaging msbuild : error : xap packaging failed. failed package file 'c:\users\robson\ documents\phonegap\project\platforms\wp8\www\.svn\entries'. not find specified file. [c:\users\robson\documents\phonegap\project\platforms\ wp8\proj...

mySQL query optimisation - multple group by's and UNION ALL -

i'm having trouble query of mine website enables users search mobile phones. idea when user selects filter - i.e. 'iphone', relevant search critera show. you can view functionality here http://www.comparephonemarket.co.uk/search.php the table holds of deals called 'options' , looks this: model_make model_name model_basename model_colour apple iphone iphone 5s blue apple iphone iphone 5s black apple iphone iphone 5s green this table of phone deals in criteria users can filter by. currently it's taking around 7 seconds query indexes on of fields little slow. there around 600k rows. the sql statement produces options looks this: select model_make `element` options where1 group model_make union select model_basename `element` options 1 group model_basename union select model_colour `element` options 1 group model_basename; ...

c - Why is this struct passed as argument of a function, change is values? -

i have struct , function: typedef struct pares{ int x,y; } par; arvpre criararvore( int i, int j, char matriz[i][j], int x, int y, int *c, par vis[], int k ) as can see, pass par vis array of structs. i've been taught, way, value of vis declared outside function; , therefore should remain unaltered, right? example, if it's 0 before calling function, after function should still zero. however, values change after calling function. here full code: typedef struct arv *arvpre; typedef struct arv { char valor; arvpre n[8]; int flag; }nodo; typedef struct pares{ int x,y; } par; arvpre criararvore( int i, int j, char matriz[i][j], int x, int y, int *c, par vis[], int k ) { arvpre a=null; int z; while (*c){ if (x>=j || x<0 || y<0 ||y>=i || vizitado (vis,k,x,y)) { return null; } else { a=(arvpre) malloc (s...

memory - Java Runtime.getRuntime().freeMemory() issues -

i searched , saw threads, none addressed specific issue encountering. i trying monitor memory usage using runtime.getruntime().freememory() , runtime.getruntime().maxmemory() , , runtime.getruntime().totalmemory() . on 1 run, says there 2245273792 free bytes right before declaring array, program runs out of memory , crashes when tries declare array 1104674816 bytes: free memory (bytes): 2245273792 maximum memory (bytes): 6710886400 total memory available jvm (bytes): 5606211584 openjdk 64-bit server vm warning: info: os::commit_memory(0x0000000728280000, 1104674816, 0) failed; error='cannot allocate memory' (errno=12) there insufficient memory java runtime environment continue. native memory allocation (malloc) failed allocate 1104674816 bytes committing reserved memory. error report file more information saved as: edit: how possible run out of memory when allocating less half of amount free? running out of memory bad program; there ...

Similar to .net attributes in Go -

what similar .net attributes in go lang. or how achieved ? perhaps similar mechanism struct tags. not elegant, can evaluated @ runtime , provide metadata on struct members. from reflect package documentation: type structtag they used, example, in json , xml encoding custom element names. for example, using standard json package, have struct field don't want appear in json, field want appear if not empty, , third 1 want refer different name struct's internal name. here's how specify tags: type foo struct { bar string `json:"-"` //will not appear in json serialization @ baz string `json:",omitempty"` //will appear in json if not empty gaz string `json:"fuzz"` //will appear name fuzz, not gaz } i'm using document , validate parameters in rest api calls, among other uses. if keep 'optionally space-separated key:"value"' syntax, can use method of structtag access values of individual keys...

return - kotlin function returning null -

i trying android development kotlin. in case want overwrite: contentprovider have overwrite function "query". "query" returns "cursor" type. however, when create cursor instance in function database.query "cursor?" type. can return cursor if not null, do if null? this looks like: override fun query(uri: uri, projection: array<out string>?, selection: string?, selectionargs: array<out string>?, sortorder: string?): cursor { val cursor = querybuilder.query(db, projection, selection, selectionargs, null, null, sortorder) // make sure potential listeners getting notified cursor?.setnotificationuri(getcontext()?.getcontentresolver(), uri) if(cursor != null) return cursor else // here? any ideas how solve that? thanks, sven update first of answers. annotation seems not work in case can access compiled code , dont option annotate source. m...

java - What do I have to change about my activity to integrate Swipe View? -

so current activity looks like: package com.example; import com.google.analytics.tracking.android.easytracker; import com.google.android.gms.ads.adrequest; import com.google.android.gms.ads.adview; import android.app.activity; import android.os.bundle; public class testactivity extends activity{ @override protected void oncreate(bundle savedinstancestate) { super.oncreate(savedinstancestate); setcontentview(r.layout.test_layout); // adview resource , load request. adview adview = (adview)this.findviewbyid(r.id.adview); adrequest adrequest = new adrequest.builder().build(); adview.loadad(adrequest); } @override protected void onstart() { super.onstart(); easytracker.getinstance(this).activitystart(this); // add method. } @override protected void onstop() { super.onstop(); easytracker.getinstance(this).activitystop(this); // add method. } } my layout file loo...

php - How to use composer with a huge codebase? -

we have huge code-base (i mean huge, 2m+ lines) in php. know how guys managed integrate composer in kind of situation. specially when code cannot decoupled in little projects (right now) because of complexity (even mixed legacy code) , it's being hold in same svn repository. why should confident in quality of composer/packagist libraries? what happens if packagist goes down? what should if vendor repository goes down (github/bitbucket/whatever)? what happens if of vendors decide delete library? what if they've been hacked , set next version tag empty? i know possible problems over-passed in 1 way or another. fact life of lot people depending on makes me feel bit crazy kind of decision. what think? best options? for first point - if have legacy, 2m+ tighthly-coupled codebase, common open source projects quality shouldn't bother ;). for rest - can use staging build project dependencies , build full package there (by mean dependencies downloaded , ...