AngularJS: custom filter overwrites $scope
◷
تاریخ انتشار: 1395/4/15 | ساعت: 0:11
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?
◷
تاریخ انتشار: 1395/4/15 | ساعت: 0:11
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...
while using setBackground, setColor, setLayoutParams app crashes in api 19 but works fine in api 21 how to solve this
◷
تاریخ انتشار: 1395/4/15 | ساعت: 0:11
Vote count: 0 The method setId, setGravity, setMargins works fine but method setBackground, setColor, setLayoutParams, setTextColor, setTextSize is not working on api 19 the app get crashed but works in api 21 how to solve this issue. asked 1 min agodaya nidhi Let's block ads! (Why?)
Polymer iterate/repeat through multiple ironajax responses
◷
تاریخ انتشار: 1395/4/14 | ساعت: 23:01
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...
Create group access to firebase storage without using custom authorization
◷
تاریخ انتشار: 1395/4/14 | ساعت: 23:01
Vote count: 0 Is there a way to limit uploads to a path in Firebase Storage by group? asked 27 secs agoecalvo Let's block ads! (Why?)
Why traits::access cannot be compiled (c++)?
◷
تاریخ انتشار: 1395/4/14 | ساعت: 23:01
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
◷
تاریخ انتشار: 1395/4/14 | ساعت: 21:57
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
◷
تاریخ انتشار: 1395/4/14 | ساعت: 21:57
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
◷
تاریخ انتشار: 1395/4/14 | ساعت: 21:57
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
◷
تاریخ انتشار: 1395/4/14 | ساعت: 20:41
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
◷
تاریخ انتشار: 1395/4/14 | ساعت: 20:41
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
◷
تاریخ انتشار: 1395/4/14 | ساعت: 20:41
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
◷
تاریخ انتشار: 1395/4/14 | ساعت: 19:12
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
◷
تاریخ انتشار: 1395/4/14 | ساعت: 19:11
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
◷
تاریخ انتشار: 1395/4/14 | ساعت: 19:11
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
◷
تاریخ انتشار: 1395/4/14 | ساعت: 17:37
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
◷
تاریخ انتشار: 1395/4/14 | ساعت: 17:37
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...
Play-Slick Instruction on How to Perform Custom Sorting using Case-When
◷
تاریخ انتشار: 1395/4/14 | ساعت: 17:37
Vote count: 0 Our project requries a custom sorting. And upon diving into the net I come up with the following SQL statements. SELECT CountryName FROM dbo.Country ORDER BY CASE WHEN CountryName = 'INDIA' THEN '1' WHEN CountryName = 'CHINA' THEN '2' ELSE CountryName END ASC Can someone help me have t...
Reading data from an excel file every 500 milliseconds in c#
◷
تاریخ انتشار: 1395/4/14 | ساعت: 16:29
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 ...
How do I convert a Week Number to From date of the week in oracle
◷
تاریخ انتشار: 1395/4/14 | ساعت: 16:29
Vote count: 0 Suppose I enter WeekNo: 14 the query should retu the From Date: April 4th 2016, since the week 14 starts from 4th April to 10th April select to_date('14','iw') FROM dual; asked 21 secs agoHarshil Shah Let's block ads! (Why?)