API call is very slow
◷
تاریخ انتشار: 1395/4/9 | ساعت: 9:50
Vote count: 0 I have a C# products page which is using Bazaarvoice API for comments, ratings on the Products page. Each product has a comment box and rating which is coming from the API. The Unique memeber ID and the product ID is passed to the API to save the comments. And using the member ID and t...
Activerecord Connection Pool Optimization for Highly Cached System
◷
تاریخ انتشار: 1395/4/9 | ساعت: 9:50
Vote count: 0 I have a rails activerecord project that has been scaled out to serve approximately 60-100k requests per minute. We use AWS and it takes about 5 xlarge c4 ec2 instances to serve this many requests. We have optimized the system to serve 99.99% of those requests off of a redis cache rend...
How to align ImageButtons in a layout evenly
◷
تاریخ انتشار: 1395/4/9 | ساعت: 9:50
Vote count: 0 I currently have 4 ImageButtons in a layout that takes only half of the screen height. I would like the ImageButtons to be placed evenly in the layout. Here is what I have: <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" a...
Chrome not setting local storage
◷
تاریخ انتشار: 1395/4/9 | ساعت: 8:11
Vote count: 0 I am creating a Chrome packaged app. I want to display a EULA the first time the user opens the app. I want to us Chrome's local storage to test whether or not the app has been opened. Here is my manifest: `{ "name": "Chrome Local Storage App", "short_name": "Chrome Local", "descriptio...
Bread crumbs with MVC 5 and Angular JS
◷
تاریخ انتشار: 1395/4/9 | ساعت: 8:11
Vote count: 0 I'm working with MVC 5 application where some views are razor and some Angular based, routing also partially mvc and angular... I have to implement bread crumbs. My navigation is json/angular and I can't use sitemap or any other third party frameworks. What is the best way to approach ...
D3 changes from Version 3.0 to make a circle path of points
◷
تاریخ انتشار: 1395/4/9 | ساعت: 8:11
Vote count: 0 I am trying to make a gradient path along a circle. Very similar to this example. http://bl.ocks.org/mbostock/4163057 This is D3 version 3. I'm trying to update this to Version 4. I fixed a few items like d3.ns.prefix.svg is now d3.namespaces.svg d3.svg.line().interpolate("basis") is n...
XML reader using php
◷
تاریخ انتشار: 1395/4/9 | ساعت: 7:11
Vote count: 0 I am building a XML reader to read xml file and insert it into SQL using php the XML tag look like this <f:name>Adam</f:name> I can acess the information inside it using this $thePostIdArray[0] This is not working 100% because some time the order of the XML tags are changed. I want to ...
What replaces TermsExecution.And in NEST 2.3.3 (upgrading from NEST 1.6.2)
◷
تاریخ انتشار: 1395/4/9 | ساعت: 7:11
Vote count: 0 We are in the process of upgrading ElasticSearch and NEST from 1.6.2 -> 2.3.3. What replaces or how we do TermsExecution.And in 2.3.3? asked 39 secs agoAntony Francis Let's block ads! (Why?)
Running Spark + Scala + Jupyter on Dataproc
◷
تاریخ انتشار: 1395/4/9 | ساعت: 7:11
Vote count: 0 I haven't yet managed to get Spark, Scala, and Jupyter to co-operate. Does anyone have a simple recipe? asked 15 secs agoEmre Let's block ads! (Why?)
Facebook API: redirect_uri
◷
تاریخ انتشار: 1395/4/9 | ساعت: 5:30
Vote count: 0 I've readeded that FB API have problems with redirect_uri - and i've try to make it work on my framework. Problem is easy, but i haven't found working solution so i think this is right place, and someone help me. I've creating login link: $loginUrl = $helper->getLoginUrl( $app_url . 'f...
Is it possible to change the event type of an event listener in Firebase during runtime?
◷
تاریخ انتشار: 1395/4/9 | ساعت: 5:30
Vote count: 0 For example, I called a listener once with a .ChildAdded event type but later I want to call that same listener again with a .ChildRemoved listener. asked 15 secs agokeyhoffman Let's block ads! (Why?)
basic java programming with use of methods
◷
تاریخ انتشار: 1395/4/9 | ساعت: 5:30
Vote count: 0 import java.util.Sca er ; public class CustomerAccount { public static void main( String[] args ) { Sca er in = new Sca er(System.in); System.out.print("Please enter the account number: ") ; String accountNumber = in.nextLine() ; int newBalance = updateBalance() ; System.out.print("Acc...
Cannot Loop Nested Json, get error (TypeError: list indices must be integers, not str)
◷
تاریخ انتشار: 1395/4/9 | ساعت: 3:00
Vote count: 0 So I have looked everywhere, and have not found a solution. import urllib2 import json shabad = raw_input('Shabad Number: ') hdr = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36'} igurbani_api = urllib2...
VSO Build variables find and replace - Productivity tip
◷
تاریخ انتشار: 1395/4/9 | ساعت: 3:00
Vote count: 0 If have to change the VSO build variables, i need to manually edit every variable, is there any way to perform Find and Replace build variables? Similarly if I need to revert the changes to previous version again I need to manually update each variable by looking into the previous vers...
How can I build histogram using arrays in java?
◷
تاریخ انتشار: 1395/4/9 | ساعت: 3:00
Vote count: 0 Take input from user in an array in form of numeric and show histogram Where i'm wrong The code is given in java the user can enter 5 input in number and histogram should show in any form with no constraints package p21; import java.util.Sca er; public class P21 { public static void ma...
detailed meaning of ?- X is X+1
◷
تاریخ انتشار: 1395/4/9 | ساعت: 1:42
Vote count: 0 While studying the language PROLOG I found the following true or false question: In PROLOG '?- X is X+1' results in the increment of the variable X by one. A teacher said it's false, however I don't understand why. Won't X be X+1 from now on? Why is it false? And thanks in advance for ...
Write data to Firebase not working - Cannot convert value of type 'user' to expected argument type 'AnyObject?'
◷
تاریخ انتشار: 1395/4/9 | ساعت: 1:42
Vote count: 0 I am trying to save my registered data to Firebase but get a "Ca ot convert value of type 'user' to expected argument type 'AnyObject?'" error. I tried many things but I can't seem to figure it out...can someone help me please? how do it save it? import UIKit import Firebase import Fir...
How to handle post request when user hits submit on very basic node.js/html login page
◷
تاریخ انتشار: 1395/4/9 | ساعت: 1:42
Vote count: 0 I have created a login page using some HTML/CSS and I want the user to enter a pre-determined password, if the password is correct, they can enter the site, if not, they can't. I have looked up a lot of tutorials/sites etc. but they either use Mongodb to create unique passwords or else...
Fill python string with date time as per format in string
◷
تاریخ انتشار: 1395/4/9 | ساعت: 0:36
Vote count: 0 I have a string which looks like: dt_string='some_prefix/%Y-%m-%d/%H:%M/some_postfix' I want to format this string with current date and time, so that it may look like 'some_prefix/2016-06-28/10:00/some_postfix' But my problem is that the date patte s may not always be in %Y-%m-%d/%H:%...
bind data from different requests in ng-repeat
◷
تاریخ انتشار: 1395/4/9 | ساعت: 0:36
Vote count: 0 On my page I'm rendering panel with 6 categories. The categories come from api call: var getCategories = function (customUrl) { $http.get(customUrl) .then(function success(response) { $scope.categories = response.data; // console.log($scope.categories); // **** }, function error(respon...