Newest Questions

Q&A for professional and enthusiast programmers

selectbox from ajax response page2 to page1

I have page1.php and page2.php and I want to store in page1 '#input-value' value from page2 'test' and this method isn't working to me Page1.php code: <input id="input-value" name="any"/> <...

SVM-Classification of multiclass

I've used Matlab Classification Learner App to train my SVM classifier and i have 99.9% of accuracy in prediction (i tested it with the function predict on matlab). What i wanted to do now was to ...

How to separate business logic to classes from windows form in Visual Studio

I'm working within C# and visual studio and have made a Windows Form (MainForm) - it has a good amount of buttons that work through a number of process'. Currently - it actually works fine, I just ...

Set Up Compiler for C for Sublime Text 3

I just started to learn C programming at University. Unfortunately I need a specific compiler in order to meet their requirements. My C Compiler needs to compile with following settings: gcc -Wall -...

Does it exist a way for autowiring any Spring @Component inside a JPA repository?

The point is i have a Custom JPA Repository which is load using "@EnableJpaRepositories", but inside of this Custom JPA repository i do autowire another Spring Bean annotated with @Component, but it ...

Junit for AspectJ method - Nullpointer

I am trying to write Junit testcase for below method "aroundMethodInvocation" import org.aspectj.lang.JoinPoint; import org.aspectj.lang.ProceedingJoinPoint; @Around("allMethodExecutionPointCut()") ...

How can I use a SQL Server column of type rowversion in visual Basic VB?

With visual basic in visual studio I am trying to select a row of type rowversion from a SQL Server database. 'version' is a column of type rowversion SELECT [Version] FROM Employees WHERE ...

Visual Basic - Array

Say I have a list of variables like so, ranging from x0 to x1: x0 = 0.0 x1 = 1.0 x2 = 3 x3 = 9 x4 = 18 x5 = 20 x6 = 30 There is a function within a software package I'm writing the code for which ...

XAML Image Source isn't showing up

I am new to Visual Studio and haven't had much luck with getting the image to appear correctly. This XAML file code is used in powershell to generate a window that is used in a task sequence. Here ...

MySQL Connector .NET max packet size

I'm building a C# Application that talks to a MySQL database via the MySQL .NET Connector. Is it possible to adjust the maximum packet size of my client? I'm aware that I could change it on the ...

Can't configure Spring Security and JWT to protect routes

I have configured Spring Security based on great tutorial from http://www.svlada.com/jwt-token-authentication-with-spring-boot/ . I have managed to inject list of priviliges encoded in JWT, so they ...

How systemd stop command actually works

I am using a systemd service which calls a process when it's been "started" (e.g.$systemctl start test.service). As per the design, the process stays for ever in a loop, we are able to see process ...

Authenticate on Application Insights REST API with AAD

So far I used successfully Application Insights REST API for getting metrics with X-Api-Key header. https://api.applicationinsights.io/beta/apps/xxxxxxxxxx/metrics/customMetrics%2FmetricName?timespan=...

Masonry / Packery with responsive images

I am trying to achieve a masonry layout with either Masonry or Packery but both libraries are giving me different problems. My goal is to resize the images correctly depending on viewport size - this ...

Making In-App Payments in Mobile Apps

I have a HTML5 web-app that will be embedded in a WebView in either an Android or Iphone app. Portable and easy, except when it comes to in-app purchases -- I have some questions: Can the Android/...

PHPUnit Laravel Testing Controller that uses a Repository

I have read so many examples and cannot see what I am doing wrong, please if someone could help. I am getting an error when running tests (error at the bottom of post), that doens't happen when ...

Find Cheapest Possible Path Recursively

I am attempting to write a solution to find the cheapest possible path through an array with integer values stored as game locations. THe idea is to go from the first index to the last index and ...

Can't use Ionic service like $state or $location inside on swipe left event callback function

I Can't use Ionic service like $state or $location inside on swipe left event callback function or onGesture events, so I wrote a code to display the value of $state and $location inside the callback ...

Cursor-based Pagination in Facebook's Graph API

according to graphApi's documentation : Cursor-based Pagination Cursor-based pagination is the most efficient method of paging and should always be used where possible. A cursor refers to a ...

Input fill remaining height in a div

I have a div that contains a label, a textbox and a button: <div style="height: 300px;"> <label/> <input type="text"/> <input type="button"/> </div> and what for the ...

AutoCompleteTextView in android using Firebase and Filterable inteface

I am working on an android app where I am going to store school names under one node for e.g. schools.I want to implement Autocomplete functionality for the schoolnames.i.e when user starts typing ...

PLSQL : Add a node to a nodeList

I tried to find the info but could not so I wonder if it is possible to add a DOMNODE to a DOMNODELIST. I found appendChild in DBMS_XMLDOM but it is to add a node to another node. myList DBMS_XMLDOM....

Views drawn from code (PaintCode) are pixelated, very pixelated when scaled

I am building an app that overlays views drawn with code (output from PaintCode) onto photos. I have added gesture recognizers to rotate and scale the views drawn with code. There is some mild ...

Dynamics CRM 2016 - Save PDF format custom SSRS report

I want to store generated PDF from CRM report using javascript. I want to store it to some shared folder. How can I do that? Please help me on this.

access data or this attribute in ejax beforeSend function

Hi im trying to get a value from my data array in the beforeSend function and for now display it in the console but im just getting undefined when i submit the form i tried printing the $(this) ...

Unable to remove cygwin from PATH environment variable

I recently had to reinstall Cygwin and in doing so, I have ran into a problem with some application because Cygwin seems to be appended to my PATH environment variable. I have tried to remove this by ...

Minimising the application is affecting ManualResetEvent.WaitOne()?

A bit of a strange one this. My application plots data on a chart, synchronised to a "signal" received from an external hardware device every second. Whenever a signal is received, a new point is ...

Adding Folder to Document Library via Powershell results in error code

I'm looking into ways to copy files & folders between document libraries while retaining the version history. As a starting point, I have taken this script from Roger Cormier. Unfortunately it is ...

com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.gmail.com, 25;

com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.gmail.com, 25; timeout -1; nested exception is: java.net.ConnectException: Connection refused: connect please help me out ...

Hey! I Want to create multiplayer game in python [on hold]

Actually In My Python Project I want to create Multiplayer Pygame

F1 score(presicion and recall) of K means clustering in r

Could you please say how to calculate F1 score (Precision and recall) of K-means clustering in R Sample code can also post Many Thanks

How to call one command from another in package.json?

suppose if i have some script in package.json like this "scripts": { "a1": "first command", "a2": "second command", "a3": "third command", } and if i want to run script a1 and a2 in ...

Is it safe to edit settings.db in Android

I am working on pre-configuring an Android device and now I have finally found where all the system settings are stored on Android. Now to the question: Is is safe to replace the sqlite database ...

Get each item in comboBox and used it in where clause of mySql in c#

so far I have this code: foreach (var item in comboBox.Items) { string query = "Select * FROM table WHERE Value= '" + item + "';"; using (connection) ...

storing user data in web app

I have created a login system and the general design of my webpage using php. The web page is set and all. I am developing the angular js web app to run on said page. I have 2 Questions: How do i ...

Set ng-click attribute value from a string variable

I have an external JSON file which is a collection of buttons/actions like this { "foo1":{ "name":"productDetails", "displayAs":"button", "action":"viewDetails()" }, ...

Instead of src address put source directly

I have a code that's working: if (typeof Checkout === 'object') { if (typeof Checkout.$ === 'function') { (function(src) { var tagName = 'script', script = document....

Prolog - proof tree misses possibilities

I have the following Prolog Program: p(f(X), Y) :- p(g(X), g(Y)). p(g(X), Y) :- p(f(Y), f(X)). p(f(a), g(b)). The prolog proof tree has to be drawn for the predicate p(X, Y). Question: Why is Y ...

SignalR 2.2 on Azure Not Working CORS issue

I am trying to Connect SignalR from my Angular2 for messaging. i am getting error in chrome XMLHttpRequest cannot load https://ls-dev-signalr.azurewebsites.net/signalr/negotiate?clientProtocol=1…...

A weird www showing before my server name on page load

Im working on a local server for development. Im using a ubuntu with apache2 installed. My website is developed with codeigniter framework. When I try to access this url: https://svr-wr/sendit/caja/...

Anaconda version with Python 3.5

I want to install tensorflow with python 3.5 using anaconda but I don't know which anaconda version has python 3.5. When I go to anaconda download page am presented with

Initialising an S4 object in RCpp

On calling this function with a dgCmatrix as an argument I am getting en error not an S4 object. #include <Rcpp.h> using namespace Rcpp; // [[Rcpp::export]] S4 convertngc(S4 object) { S4 ...

Uikit autocomplete select first list item

Im using uikit autocomplete in my project and i want to select the first list item In my html code i have this to utilize it <script type="text/autocomplete"> <ul class="uk-...

MVC Fist Load Data

I have a project with a page where the user does search (dropdown,checkbox,input...). Id like to load empty model at first time the page is request because the model contains several records. How can ...

open cart journal2 theme product filters on mobile are not showed

I have a journal2 theme on opencart 2. I have a problem with product filters. On the desktop they are showing up normally and on mobile they are not loaded at all. Normally they should be rendered by $...

Checkbox not getting checked in ionic2 ios10

I am using the following code with ionic2 <ion-list> <ion-item> <ion-label>Sausage</ion-label> <ion-checkbox [(ngModel)]="sausage"></ion-checkbox> </...

LocalDate parsing

I have to parse date using the following format: "201710" where 01 - week of year number. I tried to implement it in this way: DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyyw"); java....

How to set autologin support in yocto

I am currently working on yocto, during rootfs it is coming until login prompt, i dont want to do login. i want to have autologin support How can i add autologin support in yocto Already tried with "...

Change file permissions in windows 7 64-bits

How to modify file permissions in a file in system32 directory to write at file in windows 7 64-bits

How to set language in moment js whole project-wide?

I have a simple react project (npm, babel, es6). I would like to set language for WHOLE project. Not only for one file (what works). I checked a lot solution (ex. https://github.com/moment/moment/...
15 30 50 per page
Translating... 0%