Vote count: 0 After much pain, I have finally managed to get the prerequisites for Strider installed; nodejs, git, mongodb and node-gyp. I have checked and they all appear to be functioning correctly. Following these instructions, I found that pm2 was a nice way to stop and start services, so I am going with that. Again everything appears ok, and it makes lovely noises at me to indicate that stuff is chugging along. HOWEVER, I caot navigate in my local browser. The URL I am using is ec2-xxx-xx-xx-xxx.compute-1.amazonaws.com, with variations of adding http:// and port 3000 on the end; as well, of course, as modifying the environment to reflect this. I have created a custom security group for ...
ادامه مطلبVote count: 0 here is the html code . Its not working . Please help me resolve this issue . asked 58 secs agounknown Let's block ads!...
ادامه مطلبVote count: 0 I'm writing a simple chat UI. I am using a nine-patch file to to this work. When I first initialize my Adapter with some mock data, it works fine, but if I add something during runtime, the layout inside the recyclerView breaks. It doesn't throw any errors, though the layout params which I used to set the alignment don't seem to work. Actually, the aligment works, but it's size becomes match_parent rather than wrap_content. Here's my Adapter code. public class Adapter_Chat extends RecyclerView.Adapter { private List data = Collections.EMPTY_LIST; public Adapter_Chat(List data) { this.data = data; } @Override public Adapter_Chat_ViewHolder onCreateViewHolder(ViewGroup parent, in...
ادامه مطلبVote count: 0 Im using angular-cache library to cache my rest query to browser in AngularJS, angular.module('fbc') .service('OrganizationService', function (CacheFactory, $http) { // Service logic var settings, organizationCache, baseURL = "https://api.myapp.com/1"; if (!CacheFactory.get('organizationCache')) { // or CacheFactory('bookCache', { ... }); CacheFactory.createCache('organizationCache', { deleteOnExpire: 'aggressive', recycleFreq: 60000 }); console.log("No CacheFactory"); } organizationCache = CacheFactory.get('organizationCache'); settings = { cache: organizationCache }; retu { getAllOrganization: function (promise) { retu $http.get(baseURL + '/Organization', settings) .then(prom...
ادامه مطلبVote count: 0 I have Entity User class User{ private Long id; private String Name; private List someClass; } And Entity SomeClass class SomeClass{ private Long id; private String Name; } I have two object User user1 and user2 user1.getSomeClass().size() == 5; user2.getSomeClass().size() == 5; I need to compare all the elements user1.someClass and user2.someClass but I do not understand how to do it. how to match any element to which refers. I have bad English but I'll try to explain. I create the first user and create some someClasses for him. After that I try to edit this user. Editing is as follows: I create a new user and copies the old data, if the data is not changed, and if any new fie...
ادامه مطلبVote count: 0 I placed a order to upgrade a virtual machine's hardware by api(python) "placeOrder", it retued successfully. And I used "wait_for_transaction"(function in VSManager) to wait this transaction to be finished. After a few minutes, it also retued successfully. However, when I login the website "control.softlayer.com", I found the upgrading ticket showed that it had been cancelled saying that "XXXX is unable to be completed due to insuffcient resources in the datacenter pool. The upgrade request has been cancelled and this ticket has been closed". So how could I check this order has been accepted and handled successfully? I need to know the order result. asked 1 min agoChrisM Let's...
ادامه مطلبVote count: 0 There are several folders in the folder "C:/MyTest/Result" I have to create a .BAT file to find, the latest folder, which start with "Language" and not end with "Failed". Please help me to create the windows command for this. asked 13 secs agoBanukobhan Nagendram Let's block ads!...
ادامه مطلبVote count: 0 I have a form that uploads image file then updates image value in database successfully via ajax. However when I try to .load the 'profile_pic.php' which echos the above image tag, the image is not updated on the webpage. I don't want to refresh page. The echo statement from the php is outputting the same src path which already exists in the dom. I need it to remain this way. Can anyone recommend a better approach? $(document).ready(function(){ $("#file-form").on('submit',(function(e) { e.preventDefault(); $.ajax({ url: "actor_profile.php", type: "POST", data: new FormData(this), contentType: false, cache: false, processData:false, success: function(data){ $(".actor-profile-pic...
ادامه مطلبVote count: 0 On the server side I'm using Rails. Purposely, I did not configure the CORS. Thus, as I expected, in the browser I can not do requests to the Rails server because I get this error: But I can do for the terminal, using curl: macabeus@macabeus-acer ~ $ curl http://localhost:3000/people [{"id":3,"name":"macabeus","age":20,"created_at":"2016-07-31T22:45:05.490Z","updated_at":"2016-07-31T22:45:05.490Z"},{"id":4,"name":"foo","age":10,"created_at":"2016-07-31T22:45:24.415Z","updated_at":"2016-07-31T22:45:24.415Z"}] For what reason the curl can, but the browser can't? asked 18 secs agoMacabeus Let's block ads!...
ادامه مطلبVote count: 0 Hey so I am having a problem getting the payload form my message. It keeps telling me something is undefined. This is an example of the object I am using. However when I call things like message.payload.headers[x] I keep getting an error saying it's undefined. I am using the the gmail gapi api with Angular. If anyone could tell me why I can't get of this error there's a up vote in it for you! Thanks in advance enter image description here asked 52 secs agoSeamus O Coor Let's block ads!...
ادامه مطلبVote count: 0 I am building an angular site and using UI-Router, if I click a link to go to a route it works fine but whenever I refresh the page, or if I type the url in manually I get 'Caot GET /find-a-vendor. I have this in my routes file: $stateProvider .state('home', { url: '/', templateUrl: 'views/home.html' }) .state('find', { url: '/find-a-vendor', templateUrl: 'views/find.html' }) I also have $locationProvider.html5Mode(true); in my routes file as well. and in my index I have in the header, is there something I'm missing? asked 39 secs agojmona789 Let's block ads!...
ادامه مطلبVote count: 0 The method CodeElement2.RenameSymbol not works on Namespaces My code loock like this: Sub RenameNamespaces() For Each aProject As EnvDTE.Project In DTE.Solution.Projects If aProject.CodeModel IsNot Nothing Then For Each elem As CodeElement In aProject.CodeModel.CodeElements If elem.Kind = vsCMElement.vsCMElementNamespace Then Dim elm2 As CodeElement2 = CType(elem, CodeElement2) elm2.RenameSymbol(GetNewName()) End If Next End If Next End Sub I use Visual Studio 2010. What I do wrong? asked 12 secs agocodeDom Let's block ads!...
ادامه مطلبVote count: 0 I am trying to show the location in google map when I mouse over to the tweet Result provided an image of the webpage I using java script to enable the mouse over function var defaultLocation = new google.maps.LatLng(5.419297, 100.3230233); var selectedLocation = ""; var query; var value; var marker; $(document).ready(function(){ var mapCanvas; var map; var LatLng; var mapOptions; refresh(); setInterval(function(){ refresh() }, 60000); function init(){ LatLng = defaultLocation; mapOptions = { center: LatLng, zoom: 16, mapTypeId: google.maps.MapTypeId.ROADMAP, streetViewControl: true }; mapCanvas = document.getElementById("mapCanvas"); map = new google.maps.Map(mapCanvas, mapOpt...
ادامه مطلبVote count: -1 I am trying to devise a program that fills an area of an image. Just for leaing and advancing in C++. However, I have this error which appears to be that I am the only one having this specific error. I basically have three files, all written by me. But I am posting only the relevant one here. I have commented the most relevant lines also. Here is the binarytree class: #include #include using namespace std; template class binarytree { struct node { T val; node* right; node* left; }; node** getToLeaf(node* &a, T b); typedef int (binarytree::*fptr)(T a, T b); //left); coutright!=NULL) printDescending(c->right); coutval = addedValue; (*np)->left = NULL; (*np)->right = NULL; } //th...
ادامه مطلبVote count: 0 I am having a program written and I am developing on 2 different pcs. First PC: Windows 7 Professional 64bit with VS 2015 Community. Second PC: Windows 10 64bit with VS 2013. Problem: On the first PC, when I build and run the program or even just run the exe, the icons for the buttons are not displaying. It shows only square boxes in place of icons. I am getting no errors either. Everything works fine on the second PC. Any idea why this may be? I have googled and caot seem to find an answer. asked 28 secs agoGregory Smitherman Let's block ads!...
ادامه مطلبVote count: 0 I'm trying to write an object into a database as a blob, but I'm getting java.sql.SQLException: [SQLITE_CONSTRAINT] Abort due to constraint violation (NOT NULL constraint failed: table_name.blob). Initially, I tried creating the blob as a SerialBlob and setting it on a PreparedStatement with setBlob, but I got java.sql.SQLException: not implemented by SQLite JDBC driver. So, guided by this answer, I tried to create an inputStream for the object, and set that as the binary stream. I don't know why the database believes that the constraint is being violated - in the tests below, testStreamContentNotNull passes, but testDatabaseWrite throws the aforementioned SQLException. import ...
ادامه مطلبVote count: 0 I'm trying to create a spring boot app.Getting the following error- org.postgresql.util.PSQLException: ERROR: relation "post" does not exist When i try to run it from eclipse.I was originally getting the hibeate_sequence error but after looking thru i saw the @GeneratedValue(strategy=GenerationType.IDENTITY) solution. Here is my code My Post class is- package au.com.riosoftware.firstapp.domain; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.SequenceGenerator; import javax.persistence.Table; @Entity public class Post { private...
ادامه مطلبVote count: 0 When following the below tutorial: brew install python3 pip3 install numpy brew install cmake git clone --depth=1 https://github.com/Itseez/opencv.git cd opencv mkdir build cd build -DINSTALL_PYTHON_EXAMPLES=YES -DPYTHON3_EXECUTABLE=/usr/local/bin/python3 -DPYTHON3_INCLUDE_DIR=/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/include/python3.5m/ -DPYTHON3_LIBRARY=/usr/local/Cellar/python3/3.5.0/Frameworks/Python.framework/Versions/3.5/lib/libpython3.5.dylib -DPYTHON3_NUMPY_INCLUDE_DIRS=/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/numpy/core/include/ -DPYTHON3_PACKAGES_PATH=/Library/Frameworks/Python.framework/Versions/3.5/...
ادامه مطلبVote count: 0 i was write code for login activity with php path server and now i just copy the code and use it in new application this is my code:- import android.content.Intent; import android.os.AsyncTask; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import org.apache.http.params.HttpCoectionParams; import org.apache.http.params.HttpParams; import org.json.JSONException; import org.json.JSONObject; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.ArrayList; ...
ادامه مطلبVote count: 0 In app.js file I am trying to call another js file with my controller, as I call another file? I'm trying to use controllerURl, but he insists on calling my standard file controllers.js App.js -> .state('app.mapa', { url: '/mapa', views: { 'menuContent': { templateUrl: 'templates/mapa.html', controllerUrl: 'controllers/mapa.controller' } } }) mapa.controller.js var app = angular.module("myModule", []) .controller("myController", function ($scope, $http) { console.log("teste"); $http.get("http://localhost:20432/WebService1.asmx/listPessoas") .then(function (response) { $scope.pessoas = response.data; }); }); Template - > Mapa.html Map Map asked 1 min agoMarco Sprea Let's block a...
ادامه مطلب