matthewdaniel

1

votes
1

answer
544

views

How do I install mssql jdbc driver to confluent / kafka

I'm trying to create a connector through the rest and it won't work stating that 'Failed to find any class that implements Connector and which name matches com.microsoft.sqlserver.jdbc.SQLServerDriver I'm on ubuntu 16.04 and I've tried the following and each time i try something new i stop then sta...
matthewdaniel
1

votes
1

answer
128

views

firefox opera custom search engine and mod_rewrite sites

In firefox and opera one can create a custom search engine but it passes along the search as a standard get or post variable. Is there anyway to embed that search term in the url for sites that use pretty urls. Example I search github 1411 and it sends me to github.com/myusername/myproject/ticket-1...
matthewdaniel
1

votes
1

answer
180

views

Namespace function defaults to global first

I know that by default a function call will default first to the current namespace then if not found will check the global namespace. Is there any way to alter this behavior, perhaps using the 'use something as somethingelse' so that it only checks the global namespace? One hard rule is that I canno...
matthewdaniel
1

votes
1

answer
482

views

Why don't some packages move into vendor folder in angular 2 install

I've just set up a basic project in angular 2 using their cli. When i do a node install --save for a material design project the files are in node_modules and dist/vendor. However when i install angular2-localstorage there is just a folder in node_modules which is not web accessible. Following some...
matthewdaniel
1

votes
1

answer
197

views

Why isn't this react component updating with mobx observer

I'm trying to use the ObservableMap (also tried observable.map). I would expect the following minimal component setup to update when i add an item to my devices. Am I doing something incorrectly or misunderstanding mobx? Both console.logs will output {next: ƒ, Symbol(Symbol.iterator): ƒ} and doesn...
matthewdaniel
1

votes
1

answer
41

views

Is there an office rule which allows ribbon button to always be enabled

I'm trying to get my ribbon button to always be enabled not just when the user is viewing a message but I can't find any combination to make it happen yet ReadWriteItem It seems to need some rules to upload but i can't figure out what to specify here.
matthewdaniel
1

votes
1

answer
94

views

How can i debug why a dialog will open in web outlook but not in 2016?

My dialog will open correctly in the office web app but in office 2016 it only shows a loading indicator and says working on your request. I've tried adding a task pane which works and I use that first to ensure I accept the https certificate override but still no luck. No dialog attempts to appear...
matthewdaniel
1

votes
1

answer
20

views

Is it possible to use a conditional directive without a switch type setup in angular2

I'm currently doing something like ... What I'd like to do is this however it doesn't work So is there a way to do this? For styling purposes i really need the to not be wrapped with a div
matthewdaniel
1

votes
1

answer
1.2k

views

How to automatically resolve an id to a model instance in a Laravel route

Using Laravel 5 (dev / master) is it possible to have laravel auto load the DI Eloquent model with an id? Something similar to Symfony 2 annotation. class MyController { public function show($id, MyModel $model) { // I'm hoping $model->id == $id if it exists } }
matthewdaniel
1

votes
1

answer
652

views

Is it possible to route all external requests through one elastic IP in AWS VPC Network

I have several EC2 instances which need to have a white listed IP address to talk with an external service. Is it possible to have these all route through the same Elastic IP when they make external calls using strictly AWS features (not another nginx reverse proxy server)? I need them to all go thr...
matthewdaniel
2

votes
1

answer
19

views

Is it possible to get browser to cache OPTIONS result

I am trying to get the user's browser to stop making OPTIONS request once it learns that my api server allows for cross origin requests but it doesn't seem like adding the standard headers effects it. Is it possible to do this? Access-Control-Allow-Credentials:true Access-Control-Allow-Headers:Autho...
matthewdaniel
3

votes
3

answer
2.1k

views

How do you switch visual studio code syntax highlighting to typescript 2.0 beta?

I've done npm install -g [email protected] npm install -i --save-dev [email protected] installed the insiders typescript visual studio code. After such i insert the following line into my project from their typescript 2.0 announcement and vscode highlights it as not valid. let foo: string | null = null...
matthewdaniel
6

votes
0

answer
319

views

Is it possible to run a gulp task from visual studio with arguments

I have a gulp task which accepts arguments using yargs. From the command line I do something like gulp scaffold:thing --name=someName --path=some/path-to/{thing}. I would like to be able to call this and prompt the user to input the needed parameters, is this possible with task runner? I've tried us...
matthewdaniel
4

votes
1

answer
754

views

Why doesn't magento autoload parent class

I have a module which will use my controller over magento's by doing Some_Thing In my class that extends the core class I have to explicitly require the class. Does anyone know why this is?
matthewdaniel
6

votes
0

answer
74

views

Outlook 365 dialog open for too long crashes outlook addin

I have set up a very simple functions.html which launches a likewise simple dialog that only registers Office.initialize with a console log. If left open too long I get a large error in the console and the dialog becomes unclosable except by refresh. Is this a known issue or is there something i nee...
matthewdaniel
2

votes
1

answer
465

views

How to use php-aop

Documentation is lacking for php-aop. Has anyone used it and know how to do anything with it? I've installed it and set up the include stuff just don't know how to continue. Lets say i have a class called someclass which has a display method and I want to run some sort of metrics on the display meth...
matthewdaniel
2

votes
1

answer
1.2k

views

Rewriting the admin sales report form

In my config file I can easily override the sales -> order grid with my own doing this Mine here But I cannot seem to do the same for the report_filter_form which is on the Reports->Sales->Order menu item. If I replace the above rewrite content with mine here Is this one a special case or something...
matthewdaniel
7

votes
4

answer
7.9k

views

How to generate laravel request in namespace path for laravel 5

I'm familiar with the laravel artisan command make:request however I can't seem to get it to place it in a directory. For example I have a directory structure app/Http/Requests/User and I'd like to place a request in that folder namespaced appropriately but php artisan make:request User\CreateUse...
matthewdaniel
2

votes
1

answer
376

views

How do you retrieve the Exception number from DbUpdateException in Asp.net 5

I'd rather not do string comparison and it looks like my exeption number is in the InnerExeption number field but I get build errors if I try to access it directly. try { db.SaveChanges(); } catch (Microsoft.Data.Entity.DbUpdateException ex) { // ex.InternalException.Number won't compile but appear...
matthewdaniel
6

votes
2

answer
533

views

Why is accessible a reserved word in mysql?

Why was accessible added as a reserved word to mysql and what is it used for? Is there documentation for it because I cannot find it.
matthewdaniel
3

votes
3

answer
213

views

Does git have an “I am an idiot” switch to prevent push -f without a branch?

I just did a git push -f without including the branch I intended to push and git just blasted in everything to my repo. Fortunately we could piece together the old repo without to much trouble but it would be nice if I could change a setting in git to prevent -f all or make it so I have to do it e...
matthewdaniel
6

votes
4

answer
8.5k

views

How to show element once in ng-repeat

I need to loop through a list order by price and as soon as the price is not there then I show a message with unavailable but I don't want to show it for each empty element. I'm using angular 1.2 Sorry the following are unavailable ...my item here...
matthewdaniel
1

votes
1

answer
136

views

Can i fetch a rest token while in MessageComposeCommandSurface in outlook javascript?

When my extension opens from a MessageReadCommandSurface ExtensionPoint i can get a token and request the users contacts but if my ExtensionPoint is changed to MessageComposeCommandSurface my call to getCallbackTokenAsync fails with the following. { 'name': 'CanOnlyGetTokenForSavedItem', 'message':...
matthewdaniel
2

votes
5

answer
185

views

Re-order regular expression matches

Is there a way to get the match patterns to change order? For example if you have a string with letters-digits and using preg_match_all(), and you want the resulting match array to have the digits before the letters. Is there a way to specify this in the regular expression itself? So 'aaa-111' would...
matthewdaniel
14

votes
2

answer
9.6k

views

How to make form model update on blur in angular 2

Is there an equivalent to this in angular 2? ng-model-options='{ updateOn: 'blur' }' Thanks
matthewdaniel
1

votes
3

answer
1.3k

views

How to i fix a firestore error complaining about order by on equality filter

This works collection .where('startDate', '>=', startDate) .get(); This will cause an error collection .where('startDate', '>=', startDate) .where('startDate', '
matthewdaniel
1

votes
2

answer
173

views

Why won't this xml file with MobileFormFactor for office addin work

I am trying to follow a couple examples online to add a mobile task pane to my office add-in app but seem to be stuck at this error now. What is going wrong. 'installation failed: versionoverrides 1.0 secon of the manifest is invalid. The MobileFormFactor tag is invalid' my guide that I'm using to p...
matthewdaniel
2

votes
2

answer
3.7k

views

How to make html5 “week” input type start on sunday

shows the highlighted starting week as Monday. Is there a way to make it show Sunday as the start of the week to prevent confusion?
matthewdaniel