Newest Questions

Q&A for professional and enthusiast programmers

Confussion making routes with Express, am I good writing them like this?

I'm using the MEAN stack to build a web app which needs to have the following characteristics: Register users. Register companies. Register teachers. Add courses. Each user, teacher, and company ...

Debugging 3rd party scripts with Aurelia

I just started a new project using Aurelia and am unable to debug into a 3rd party plugin (aurelia-auth in this case) using Chromes Dev Tools. I tried to debug into the plugin in order to understand ...

Memory Leak - Jack Audio Connection Kit

I'm playing around with libjack in C. I have the following Code: #include <jack/jack.h> int main (int argc, char *argv[]) { jack_client_t *client; client = jack_client_open ("test", ...

Get System Info which WMI does not return - C#

I'm trying to write a program which return some system info. I'm using WMI in C# but it seems it can not return all information needed. For example I need the system Ram info, Here is what WMI ...

No output for Maven Java project in NetBeans

I want to develop a Java web scraper. Having learned that Jsoup is good for this, I thought I would follow the instructions about how to install it with Maven. So I created a new simple Maven Java ...

Function button: Unhide cells between values and hide all other rows

I have read through the questions/answers posted here and did not find one that quite matched what I am looking for. I am relatively new to macros and this one is proving to be a bit of a challenge ...

iOS Memory App Closure

When putting my app in the background, then running a bunch of other apps one after the other, it will eventually close my app due to phone memory management. This is understandable. My question is, ...

How to store objects and maintain composition

I have these classes: class A implements Composite { Composite b = new B(); } class B implements Composite { } interface Composite { } Basically A is composed of B and I want to store them ...

Check to see records exist in foxpro database before inserting using parameterised queries

I have created a program that pulls data from an excel spreadsheet and pushes it to a foxpro database. However I have encountered an issue with duplicate client records appearing. This is due to one ...

Microsoft SQL server all users disabled?

I am mistenkenly disable sa user and also windows user ,now i am not able to login, even i know password of sa it showing account disable, so how resolved this problem?

`probemod` on Mac OS X prints mysterious hexdump instead of module name

The following works fine for grabbing the function name of every syscall made by some command (here we trace the date command): sudo dtrace -n 'syscall:::entry { @[probefunc] = count(); }' -c "date" ...

Why do I get a ActiveRecord::StatementInvalid: PG::SyntaxError: ERROR: zero-length delimited identifier at or near “”“” when object has primary key?

I am trying to delete an object called a CodeSet. When I find a particular code set with CodeSet.find(id) and call destroy on it, I receive this error: ActiveRecord::StatementInvalid: PG::SyntaxError:...

How to queue actions from the result of an other action

I have a redux application which is a survey with pages. In order to change pages, I have a NAVIGATION_NEXT_PAGE action. Reducers then handle the creation of the new page in the store. I have a bunch ...

Using ember with AMD modules

We have an application written using Ember, originally written against Ember 2.0.2, and have been using AMD for module management with our Ember projects since something like 0.3pre. We try to keep ...

Reading only a certain part of the Filename in C#

I'm new to this Page just now but already got a Question to ask. Ok, I'm right now on a bigger Project (for me atleast) for a Server Interface of round about 3 Minecraft Servers on one machine. Now ...

Using scrollTop: tableRow.offset().top inside scrollable div, only showing distance from top of what's visible

I am trying to use the animate function to scroll to a specific row of a table. It works fine when the scrollable div is at it's top, but when I scroll away from the top, then it only get the top of ...

How can i arrange this score in unity android?

I have to arrange the score board in unity this code has copied from internet it gives me "ID:58|Name:high|Score:35" out put how can i arrange this in uinity currently iam using a Text field for this ...

Spring WebSocket send multiple pair-value message from server

I have been studying the Spring WebSocket example. I would like to create such application that would exchange information from db<->server<->client. I have created my own bean which would make ...

Transpose data.frame r

I have my data frame: Name Time Event Serg 15 Log1 Nate 15 Log2 Serg 10 Log3 Nate 9 Log1 Nate 20 Log5 And I want to transpose it by time for every Name by time like this: ...

How to serialize an array posted to a django backend

I'm trying to serialize an array that comes from a form. The array looks like this: some_id: 12 array1[]:1 array1[]:2 array2[]:5 array2[]:6 or, as it arrives in request.POST <QueryDict: { '...

No server response for AJAX request when accessing site via Google Translate

I've hit a snag with my site when it is run through Google Translate: my server does not respond at all to my browser for an AJAX request, not a single header. The request URL looks like: https://...

How does one statically link the standard c++ runtime library in xcode 8

Using Xcode 8 how do I specify that I want to link statically with the C++ runtime libaries instead of dynamically (which is supposedly now the default on iOS)?

ColorPointAnnotation for map kit in swift 3 not working

This is what i have now still not working. Notice the comment lines for color. I am trying to make make the Olso pin the standard red. But I would like to change the color of the london pin so its not ...

extern constant, unnamed namespace

I have a project that requires "creating a constant variable using an unnamed namespace", and I need to share it with functions in another .cpp file. It said the variable declarations could be in ...

Compile .jsx files instead of .js using babel

I'm starting to learn ReactJs, and I was trying to build an environment from scratch using this "builder". Everything works pretty well, but I'd like to work with .jsx files instead of .js (the text ...

keras flow_from_directory over or undersample a class

I'm trying to do a binary classification problem with Keras, using the ImageDataGenerator.flow_from_directory method to generate batches. However, my classes are very imbalanced, like about 8x or 9x ...

linq / lambda expression to find all objects that contain all elements in an array of integers c# asp.net mvc

I'm struggling to return the right list of results with the queries outlined. I'm trying to return a list of jobs to users(professionals) where the professional has all of the sectors specified in ...

Average every x numbers in array in python

Let's say I have an array of 100 random numbers called random_array. I need to create an array that averages x numbers in random_array and stores them. So if I had x = 7, then my code finds the ...

Inconsistent arguments CPLEX error Python API

I have a long list of decision variables which basically based on an input data file. However, for convenience, let's use the example below: I am adding decision variables to my model and each of ...

how do I make multiple count under having clause

some sample data: Id name value ref 1 ab xy 2 aba z 3 ab xy 4 abc def 5 gxr mdy what I am trying to do is to get the two column that appeared more ...

How to make waitForWebPageToLoad to work in coded ui test?

First of all, i'm a beginner at coded ui testing and i have poor code skills but im trying to learn. Right now i'm hand coding some test cases (c#) in visual studio (the record option is not enough ...

Returning more than one variable in a C# 'get' statement

In my Excel Add-In, I have created two task panes - with each ones visibility being from two different values, requiring both to be in a return statement, however it will only allow me to return one ...

How to store and delete matching files as well as directories in unix

I need to store matching files and directory names in a single variable in shell script log_dir=`echo $line | awk -F "$delimiter" '{print $1}'` pattern=`echo $line | awk -F "$delimiter" '{print $2}'` ...

best practice dealing with non persistent properties, frequent updates

i am new to realm and did not found a solution which was satisfies me. i have an application where i can record tours with gps data and so on. (there are multiple different objects which are stored ...

How to find other links in a chain of (transitive) comparisons?

So, say I'm thinking about fruits and what fruits I like the most. I decide to implement a sorting algorithm where the comparisons are made manually rather than evaluated by the computer. After ...

Url.Action generates query instead of parameter URL

This is the controller class. I am showing only method signatures. [Authorize] [RoutePrefix("specification")] [Route("{action=index}")] public class SpecificationController : BaseController { [...

Cloning Azure VMs with SQL Server-based application on them

I have a VM in Azure with a SQL Server on it. I also have an application installed on the VM that is configured to access the SQL Server by name. Unfortunately, using "." or (local) is not an option ...

How to use Prepared Statement correctly with insert and select together?

I want to insert the records using preparedStatement but I don't know exactly where the problem is in my syntax?I am using JSP to insert attendance records only unique records for a particular date ...

Firebase Syntax - Query Children

What is the syntax to query this firebase data structure? I want to aggregate (sum) carAmount where carNames are the same. To start, I cannot figure out how to get to carName. For now just logging ...

how to get vbs to run a powershell command containing a variable

Basically, I work with an Active Directory instance which is quite messy in terms of a standard and precise naming convention. It also doesn't help that when people ask for access to a group that ...

Filtering Authentication of users in my WordPress Website

I'm running a voting website and I would love to filter authentication of users that try to login to the system. Thus, only eligible voters can gain access to vote on the wordpress website via either ...

Norwegian characters in C++ strings

I'm working with strings in C++, and have a question about how norwegian characters are treated. If I run the following code; int main() { string norwegian = "BLÅBÆRSYLTETØY"; for (auto &...

Build notification system in laravel 5.3

I am using laravel 5.3 to build a blog website. Now i am on the phase of building the notification system when a user comments in a blog. So what is the optimized way to send the user notifying that ...

Why are my Vue components invisible? (Single File Component)

Code here I'm trying to build a Vue Single File Component. After going through some hurdles with Webpack, I finally got to a stage where I see no errors nor warnings, and my bundle.js seems to ...

calling a test case within a test case in SOAP UI

I am trying to call a test case within a test case using SOAP UI Pro. I created a reusable test case to generate a random VIN and intend to call this test case within other test case where applicable. ...

how to change app toolbar text font style

i want to set times new roman to my application toolbar this is my code my toolbar id is "toolbar" and i want the font style to change all over the application toolbar this is my toolbar layout <...

How could this generate a mean of zero

I am following [this] tutorial about neural networks, and he talks about having a mean of 0 with this code: syn0 = 2*numpy.random.random((3,1)) - 1 How could this generate a mean of zero? What is ...

Better way to disable hyper threading in AWS EC2?

I am doing some benchmarking tests and would like to disable hyper threading in an EC2 to see it's effect on my test application performance. A single instance of my application uses only 1 thread ...

how do you create a subsection in R markdown

I am trying to create a R markdown like below. In a vector called app, I will have several application, will go though and create a pdf file --- title: "Java Based Apps" date: "January 13, 2017" ...

Nested With Statement hiearchy

I've come across this a couple of times recently and was just curious if there was an easier way to do this... With Activeworkbook 'Do Stuff With .Sheets(1) 'More stuff Done '... 'But ...
15 30 50 per page
Translating... 0%