AngularJS: custom filter overwrites $scope
Vote count: 0 Here are my custom filters: This filter removes records with the same property: .filter('distinct', function () { //filter, which removes records with same property retu function (data, keyname) { var output = [], keys = []; angular.forEach(data, function (item) { var key = item[keynam...
TextToSpeech setLanguage not working?
Vote count: 0 I am setting my TextToSpeech to use a particular language (English - UK), using the locale "en_GB". But it always uses my devices default language. Is there no way to set it programmatically? I have downloaded the files required for the language and when I change my TTS's default langu...
Polymer iterate/repeat through multiple ironajax responses
Vote count: 0 I want to iterate through 2 arrays including data from iron ajax request. The 2 repeats are: <template is="dom-repeat" items="[[riskNamesArr]]" as="risk"> <paper-listbox multi> <paper-material>{{risk}}</paper-material> </paper-listbox> </template> <template is="dom-repeat" items="[[ris...
Why traits::access cannot be compiled (c++)?
Vote count: 0 I am now lea ing how to use boost::geometry library, and I am following the tutorial, where type traits are introduced to make the codes more genetic. For example, the distance function below is regarded as genetic by using traits: struct mypoint { double x, y; }; template <typename P1...
express res.send as result of promise
Vote count: 0 I'm not understanding what's going on... this works: router.get('/items', (req, res) => { myPromise.then((result) => res.send(result)); }); but this doesn't, it keeps the browser like if the request never ends: router.get('/items', (req, res) => { myPromise.then(res.send); }); What's w...
Recursive function replaces objects
Vote count: 0 I have this json file: [ { "person": { "@id": "value1", "name": "Mattia" }, "person1": { "@ref": "value1" }, "subPersons": [ { "@id": "value2", "name": "Luca", "key": { "@ref": "value1" } }, { "@ref": "value1" }, { "@id": "value3", "subsubPersons": [ { "again": { "@ref": "value2" } } ]...
how do add keyboard functions to a bash command
Vote count: 0 I want to execute a command which requires to include keyboard functions, SHIFT + X, in order to execute it. However I am not sure how to include these keyboard functions to my command. For example I was trying something like this: command="path/myfile SHIFT + X". Please let me know ho...
Shadows in three.js : r71 vs r76
Vote count: 0 I'm building a 3D environment using three.js , r76. I can't seem to get the shadows right. In r71, I was pretty happy with the result, but it doesn't work the same in r76. A fiddle to illustrate my problem: r71: https://jsfiddle.net/sq2w15xy/ r76: https://jsfiddle.net/9uuq6s56/ As you ...
disable a menu item in Angular uib-dropdown
Vote count: 0 In my angular template I'm creating a dropdown menu using angular-ui, I need to disable some of the list items based on a property of the "company" object defined in the ng-repeat. I already tried the disabled tag or the ng-disabled directive but without success. How can i achieve that...
getting error when using wso2 ldap connector
Vote count: 0 I'm using wso2 LDAP co ector for retrieving data from ldap server.so getting following error when calling my service.try to searchEntry operation. { "error": { "errorMessage": "Missing 'equals'", "errorCode": 7000001 } } Also I refer wso2 documentation for above scenario. any reson for...
Adding a Javascript popup link in a foreach loop laravel
Vote count: 0 I have a foreach loop and i want to add a javascript popup within it. I have to code for the loop and the popup box, im just struggling with how to write the link, please see below. '<td><a onclick="popupCenter" "/admin/public/viewlead/. $row->AppID. , "myPop1",450,450"; (' href='javas...
Virtual world with only php mysql
Vote count: 0 I wonder If you could do a virtual world using only HTML5,CSS3,PHP,Javascript and mysql. I saw other sites using smartfoxserver which I am trying to avoid. I thought about when user visit the link to a virtual world, The row under a column such as presence is changed from no to yes. Th...
Pyspark aggregate function
Vote count: 0 I do not understand how the aggregate function works in Apache spark using python. I followed few websites for aggregate function, but could not able to understand how it function's. Also I have few question. What is the need for identity value. How this aggregate function differ's fro...
can't use $_GET with language in clean-urls
Vote count: 0 On one page i use header('Location: contact/error'); exit(); and this works fine, i can use the $_GET['error'] but when i add the language like header('Location: en/contact/error'); exit(); it doesn't work anymore, it will give an undefined index my htaccess looks like this RewriteRule...
How to traverse a log file using batch script
Vote count: 0 I'm trying to install an sql server silently and after the completion of installation I need to check it's exit code, which is created in sqlsetup log file and as per the exit code the script will prompt user that the installation is successful or not. asked 47 secs agoSupriya Let's bl...
Reading data from an excel file every 500 milliseconds in c#
Vote count: 0 I have an excel file that contains some records and that records refresh with in a second.I want to store all records in SQL Server Database.So My intention is to read data from this file into my database after every 500 milliseconds. I have successfully been able to read the data and ...