can't start the Windows Form Program
Vote count: 0 Imports mysql.data.MySqlClient Public Class Form1 Private conexion As New MySqlCo ection("Server=10.0.0.12;Database=servicioinventariopiramide;Uid=pabloponce;Pwd=guatemala;") Dim DAFacturas As New MySqlDataAdapter("call sp_FacturasConsultar()", conexion) Dim DSFacturas As New DataSet()...
What is the correct JSDoc syntax for a local variable?
Vote count: 0 For a function like this... function example() { var X = 100; ... var Y = 'abc'; ... retu Z; } I need to explain the purpose of some of the local variables. Adding a description like this... function example() { /** * @description - Need to explain the purpose of X here. */ var X = 100...
Threshold value for Cluster after document similarity
Vote count: 0 I have N documents. I have found out cosine similarity between all documents. T = (N*(N-1)/2) Because docSim between a document with itself is 1. Now, I have one query and I want to find out all documents which are similar to it. I don't want to rank it but cluster it based on threshol...
Creating stripe customer and using it later
Vote count: 0 I am using the parse cloud code and I need to create a stripe customer and add a credit card to it and save it some how. How would I save the customer to that parse user? stripe.customers.create({ email: 'foo-customer@example.com', card: 12345 }).then(function(customer) { retu stripe.c...
IQueryable Unit Test
Vote count: 0 I have a web api and I am exposing a endpoint like so: api/Holiday?name={name} This is the controller get method for the web api: public IQueryable<Holiday> GetHolidayByName(string name) { retu db.Holiday.Where(n => string.Equals(n.Name, name)); } How can I write a unit test for this t...
Javascript regex test weirdness
Vote count: 0 Can anyone explain this (using node version 4.2.4 repl)? var n; //undefined /^[a-z0-9]+$/.test(n); // true! /^[a-f0-9]+$/.test(n); // false asked 16 secs agoVictor Grey Let's block ads! (Why?)
Real-time image processing - speed requirement
Vote count: 0 I'm analyzing a research work wherein it's a traffic violation detection system. I'm trying to find the gaps in it and I found out that for 1 photo their system takes approx. 11 seconds of processing, 5 photos per minute. I've concluded that "Their performance is too slow therefore the...
How to use two Li in html with different properties?
Vote count: 0 I am using li for two different purposes in the same page. One for navbar and the other for images. The problem is that in the navbar i have a drop down so when i hover over the drop down half of the portion of the drop down hides under the images. The properties of both the navbar and...
Exporting class using ES6 syntax fails in Facebook Flow
Vote count: 0 I want to add Flow type a otations to a class containing a function defined in ES6 style, below is analyzed correctly: /* @flow */ class Product { items: Array<string>; addItem = (item:string) => { this.items.push(item) }; } If I add export default to export the Product class, I get: c...
FedEx api standalone implementation
Vote count: 0 How to run the FedEx api stand alone as for a test. Please be newbie friendly. I ca ot find a tutorial online about this. I got the key and password what is the next step considering if i am using java. I downloaded the Rate api but i don't know what to do with it. asked 1 min agomahar...
Run JUnit testclass synchronously based on spring profiles
Vote count: 0 Junit 4.12 and i have following test classes, class A{ set all the profiles based on available properties } @IfProfileValue(name = "spring.profiles.active", values = {"dev"}) class B{ //Test method and autowired properties } Currently Class B getting run before class A so IfProfileValu...
Click and draw (hold the click down)
Vote count: 0 I have a "section" with some "div" inside, and i need to multiselect them. I try some script, but no one work. With my script, i can click, that start the selection, but if i release the mouse, the hover effect stay here. How can i start hover on mousedown and stop it on mouseup ? My c...
Cannot launch Strider in my local browser when hosted in AWS
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 g...
Share photo on Facebook Android SDK
Vote count: 0 I'm trying to share a photo on Facebook with Android SDK. The problem is that my Bitmap image is null. This is my code: public void sharePhoto(View view) { if (Session.getInstance().getUserFace().getBestphoto() == null) { Intent i = new Intent(Intent.ACTION_PICK, android.provider.Media...