API call is very slow
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...
How to align ImageButtons in a layout evenly
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
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
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
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
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 ...
Facebook API: redirect_uri
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...
basic java programming with use of methods
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...
VSO Build variables find and replace - Productivity tip
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?
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
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 ...
Fill python string with date time as per format in string
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
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...