Posts

eclipse - How to specify/change git merge strategy in E Git plugin -

we want change default merge strategy provided e git.from git scm reference specified merge strategy can given -x. can done eclipse well?? thanks in advance. it's not possible. egit has extension point provide different merge strategies (than default 1 given jgit implementation), extension point merely meant provide higher level semantic aware merge implementations, e.g. merging uml diagrams in papyrus plugins. you can change default of merge tool content (last head, workspace pre-merged, or prompt) in git workspace preferences.

javascript - Meteor: How can I get useraccounts package to write a new user doc into a remote collection? -

i'm using packages accounts-password , useraccounts:bootstrap , works fine, meaning sign-on form creates new doc in meteor.users collection. don't want collection on client facing app, hence have second app running connect via ddp.connect() , can exchange necessary docs/collections via pub/sub , calling methods on remote app. the thing doesn't work useraccount doc. i've used (on client app): remote.subscribe('users', meteor.userid(), function() { }); and (on remote app): meteor.publish('users', function() { return meteor.users.find({}); }); even though i'm not sure if there pub/sub included in package. still, doc written local (client) app , not remote app. how can achieve this? useraccounts:core makes use of accounts.createuser on server side (see this line ) within method called client-side (see this line ). new user object created server side , not client (though flows way down client ddp , default users subscripti...

Access the only span inside an element using JQuery -

this might sound question asked before isn't. know how access elements using jquery in situation, parent element has colon in name making difficult. structure follows: <fb:comments class='fb_iframe_widget'> <span>something</span> </fb:comments> note span need access doesn't have id or class , when use regular jquery construct throws error due colon: var fbspan = $('fb:comments span'); if colons not allowed in tag names, how facebook in first place? more importantly, how access span inside <fb:comments> ? you can using class if solves problem, like $(".fb_iframe_widget").find("span"); or $(".fb_iframe_widget span");

php - Symfony overwrite controller and action -

i use hwio bundle , after custom service throws in connectcontroller in public function connectserviceaction(request $request, $service) in action throws me hwio template, know how reload template don't need template need stay rout: example have route "home_page" after social connect want still rout "home_page" this service: class userprovider implements oauthawareuserproviderinterface { protected $grabproject; public function __construct(ggrabgithubproject $grabproject) { $this->grabproject = $grabproject; } /** * {@inheritdoc} */ public function connect(userinterface $user, userresponseinterface $response) { $service = $response->getresourceowner()->getname(); $serviceprovider = $service."provider"; $user = $this->$serviceprovider->setuserdata($user, $response); $grabproject = $this->grabproject->grabproject($response->getaccesstoken(), $...

wordpress - PHP scandir - multiple directories -

i creating wordpress plugin allows user apply sorting rules particular template (page, archive, single etc). populating list of pages using php scandir so: $files = scandir(get_template_directory()); the problem keep single.php templates in '/single' subfolder these templates not being called above function. how can use multiple directories within scandir function (perhaps array?) or need different solution? so trying to: $files = scandir( get_template_directory() , get_template_directory().'/single' ); my current solution (not elegant requires 2 each loops): function query_caller_is_template_file_get_template_files() { $template_files_list = array(); $files = scandir(get_template_directory()); $singlefiles = scandir(get_template_directory().'/single'); foreach($files $file) { if(strpos($fil...

azure - VS2015 NuGet Cannot Install Microsoft.WindowsAzure.ConfigurationManager or ServiceBus -

i cant install nuget packages in windows universal app. i thought might because configuration manager not compatible windows universal apps, have same problem servicebus package. when try install through nuget manager says package restore failed. rolling package changes 'app1'. so tried install configuration manager through package manager console , error shown below. have tried deleting .suo file , restart vs. have tried uninstalling nuget package manager, restarting, reinstall , restart. i have installed windowsazure.storage , windowsazure.mobileservices without issue. pm> install-package microsoft.windowsazure.configurationmanager restoring packages 'app1'. restoring packages c:\users\diarmaid\documents\visual studio 2015\projects\app1\app1\project.json... install-package : microsoft.windowsazure.configurationmanager 3.2.1 not compatible uap,version=v10.0. @ line:1 char:1 + install-package microsoft.windowsazure.configurationmanager + ~~~~~~~...

php - Sort pagniation by relationship count -

i want sort question amount of answers (one many relationship). orderby works columns, in case need sort value. select answers.question_id, count(*) counter answers, questions answers.id = questions.id question.year > 2014 group answers.question_id order `counter` desc how can use laravel's pagnation here? $questions->where('year', '>', 2014) ->paginate(10) will pagnation, not sorting results. sortby no solution, because need results, sorting them , picking 10. it's huge time waste. you can make use of power of collections ! assusming have correctly set models. $questions = question::with('answers')->get()->sortby(function($question) { return $question->answers->count(); }); will return collection of questions sorted number of answers. can manually build paginator object (since paginate method can used on eloquent objects) : $questions = new illuminate\pagination\paginator($questions, ...