Posts

.NET Configuring GIT environment and local build for working with multiple repositories with dependencies between them -

we have multiple teams working on large project divided multiple repositories , each team works on 1 or more repositories , of repositories shared among teams. security policy , dont give developer access repositories ones required project. our dev folder looks : repos.folder repo1 repo2 ... repon bin.folder the developer first download build server dlls bin folder, projects output bin.folder on local build through visual studio . the problem , because not developers have projects , cannot reference projects .csproj files (as not have references) , reference them dll files in bin folder - developers can download them build server, , , when developer tries setup work space solution (.sln file) , visual studio not automatically detects build order of projects , each developer needs setup sln file himself going through each 1 of projects references -- tremendous overhead ... wanted ask if has solution problem or if spots caveat/problem in our dev env , know how handl...

Uploading a small audio file from iOS app to a Python-Flask server -

i have literally gone through each , every stackoverflow post related audio file upload ios app, haven't been able code working. basically, creating app can record sound, sound sent python-flask server, runs machine learning algorithms on soundfile , returns value client(ios app). have recording part working, , have been ale communicate server having trouble sending audio file server. so question of 2 parts: 1. how send audio file ios server? 2. how read received audio file in server? here codes: // code send audio file local python-flask server (this code has been taken few answers on stack overflow) nsmutableurlrequest *request = [[nsmutableurlrequest alloc] init]; [request sethttpmethod:@"post"]; [request seturl:[nsurl urlwithstring:@"http://127.0.0.1:5000"]]; nsstring *boundary = @"---------------------------14737809831466499882746641449"; nsstring *contenttype = [nsstring stringwithformat:@"multipart/form-data; boundary=%@",...

multithreading - Multithreaded merge, best java threading practices recommended -

problem - merge 1000 hash-maps single map. assume each hashmap contained alphabets , frequency 1 page of book, , book had 1000 pages. have scanned through each page , created 1000 hashmaps, , want reduce / merge them. has done taking advantage of multithreading. note - not using hadoop has done on single machine. question tailor made doubts solved please refrain answers suggest by-pass threading. is typical problem known solution ? if yes please point me reference links. if not, how go reduce-merge problem, given threads dont return values ? here suggested approach. work in divide-conquer manner. first spawn 500 threads each combining 2 maps, spawn 250 threads each combining 2 merged maps ... , on. oppositions ? better ideas ? if can use java 8 use parallel stream job done in parallel: list<map<string, integer>> maps = new arraylist<>(); //populate: 1 map per page map<string, integer> summary = maps.parallelstream() .flatmap(m ->...

html - Resizing an iframe -

i wondering, there anyway resize video inside iframe? below code working on, when tried resize iframe, resizes wrap , not player therefore creating scrollbar. there anyway resize video player itself? <iframe width="600" height="370" src="http://online.fairytail.tv/s/googplayer.php?skintype=nemesis1&amp;to=1002mjumgqzg&amp;autostart=false&amp;id=108994262975881368074/ft1#5832691710150899906"></iframe> iframe{ width: 600px; height: 370px; } you cant style elements inside iframe domain unless give ability change parameters in url or something... https://developer.mozilla.org/en-us/docs/web/security/same-origin_policy

javascript - Modal work But not delete data with clicking confirm -

i want delete data modal confirmation.on remove click modal show when click confirm data not delete. i trying cant understand whats wrong code my code <script> $(document).on("click", "#deletebtn", function (e) { e.preventdefault(); e.stoppropagation(); var link = $(this).attr('data-adid'); console.log($("#mymodal btn-warning a")); $("#mymodal .btn-warning a").attr('href',link); $(".modal").modal("show"); }); </script> <div class="modal fade" id="mymodal" tabindex="-1" role="dialog" aria-labelledby="mymodallabel" aria-hidden="true"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> ...

ios - Objective-C should I set Arrays to nil after use? -

is practice dealloc items i've created inside method or class after use? for instance, if have method: -(nsarray *)splitclasseswithdata:(nsdata *)data { nsstring *htmlstring = [[nsstring alloc] initwithdata:data encoding:nsutf8stringencoding]; nsmutablearray *classes = [[nsmutablearray alloc] init]; nsuinteger length = [htmlstring length]; nsrange range = nsmakerange(0, length); while(range.location != nsnotfound) { range = [htmlstring rangeofstring: @"lblperiod" options:0 range:range]; if(range.location != nsnotfound) { range = nsmakerange(range.location + range.length, length - (range.location + range.length)); nsnumber *toadd = [nsnumber numberwithinteger:range.location]; [classes addobject:toadd]; } } int counter = 0; nsnumber *count = [nsnumber numberwithinteger:[classes count] - 1]; nsmutablearray *classarray = [nsmutablearray arraywithcapacity:[cla...

angularjs - How to use Twitter API from client side? -

i'm trying information twitter using angularjs , passport. i've made authentication through oauth using passport js - worked - saved user information in session. now i'm trying run command on twitter api endpoint (both v1.1 & v1) keeps complaining authorization. example: executing in controller $http.jsonp(https://api.twitter.com/1/statuses/user_timeline.json, { }) gives me error: https://api.twitter.com/1/statuses/user_timeline.json 401 (unauthorized) this command has worked in twitter console (and use jsonp avoid cross domain issues). should pass additional headers manually request - s.a auth_token etc? or why wouldn't work? should exploit fact i've made authentication use api? i've red https://dev.twitter.com/docs/auth/authorizing-request didn't quiet understood. thanks helping, all twitter requests need authorized: https://dev.twitter.com/docs/auth/authorizing-request so need pass oauth ...