1
vote
0answers
8 views

Why does Mongo check for order of keys when matching embedded documents?

https://docs.mongodb.com/v3.0/reference/method/db.collection.find/#query-exact-matches-on-embedded-documents The following operation returns documents in the bios collection where the embedded ...
-1
votes
0answers
5 views

Laravel using {id} to for routing the controller

I was experimenting the routes.php Route::get('/{id}',function($id){ return "'".ucfirst($id).'Controller@'.ucfirst($id)."'"; }); This is the output on the test code above. ...
1
vote
0answers
19 views

Namespaces for a custom XML like language: URIs or not

I am working on an XML like language that features a namespace system also. Now my question is: Should I use URIs as namespace names too (1) or should I follow the naming of java/.net/php namespaces ...
-4
votes
0answers
26 views

Confailulations to my images [on hold]

whats best way to create clip art for HTML 5 based games? i'd like to use standart art but would rather not get my game banned from some funny copyright or accidental trademark mumbo jumbo
1
vote
1answer
29 views

Is restricting endorsement using author's name compatible with GPL?

I would like to link a GPL project to another project with the following clause in its license: The name of the author may not be used to endorse or promote products derived from this software ...
0
votes
0answers
12 views

Best way to generate documentation for a React application

I use Redux and React to develop a front-end application, with ES6 but using React.createClass({}) syntax (community seems to agree that it is more flexible than ES6 classes). I would like to ...
-3
votes
0answers
32 views

Biggest palindromic number which is a product of two 3 digit numbers [on hold]

I've got to find the biggest palindromic number which is a product of two 3 digit numbers. I wrote a program for it in Java but something is going wrong. Here is the program I've written. public ...
2
votes
3answers
79 views

Is there a relation factor between meeting time and saving development time?

I am working on a project and we have regular (usually weekly), informal meetings, where we discuss the status of the project and the GUI of it. I'm the only developer there, the other 4-5 people ...
2
votes
2answers
52 views

How to decompose a sprint in scrum?

I´m struggling how to decompose a sprint in SCRUM. I know in many cases SCRUM is used only for the developing part in the software process, but I want to use it for the whole project (in our case: ...
-2
votes
0answers
10 views

I can not access $scope value from my controller within index.cshtml [on hold]

I am trying to create AngularJS, MVC ASP.Net single page application and I have stuck. I have created new folder within my project which contains app.js var myApp = angular.module('app', []); and ...
1
vote
0answers
42 views

How to escape regexes and paths in double quote strings without going crazy?

It often happens that after designing my regexp (on regex101.com) I want to paste it in my program. Consider this regexp that matches numbers and string (but keep in mind this is general question!): ...
-4
votes
0answers
85 views

How to add multiple numbers in C++? [on hold]

I learnt that we can declare multiple 'int's in C++ by typing something like int n[30]; and it can be done instead of typing int n1,n2,n3,n4,...............n30; Q1: I have a doubt if it is ...
-4
votes
1answer
60 views

How to Know if my code is good, clean, maintainable or just code that works? [on hold]

I Learned JAVA Programming from the Internet (not school) So whenever I need to code something I just see a lot of tutorials and then based on their code I try to produce my own version of code, ...
1
vote
2answers
49 views

Passing and returning domain object in create method

We have this bean with two properties: ContainerImage + name (final, not null) + id (null) Then there is this method: ContainerImage create(ContainerImage containerImage); It receives ...
-3
votes
0answers
24 views

Can Chrome app retrieve or inject data to web pages?

I want to develop an app (for Chrome desktop) that will retrieve data from different webpages the user surf to and aggregate it, or inject some added JavaScript functionality to those pages, later on ...
-4
votes
0answers
20 views

How can I use linprog in python 3.5.1? [on hold]

I need to find maximum profit of two products with, my program does not know scipy from scipy import optimize c = [-30, -50] A = [[2, 4], [3, 4]] b = [100, 120] x0_bnds = (None, None) ...
-5
votes
0answers
17 views

What are the UTC offsets that Highbrow uses to send emails? [on hold]

For those who don't know Highbrow is a website which delivers small ten day courses to your email every morning. On their website they have 3 timezone options: 1) America 2) Europe/Africa 3) ...
-3
votes
0answers
35 views

Looking to see if my understanding of parent to child relationship is correct [on hold]

new to java and was just wondering if this would be correct. Appliance would be parent class with attributes like brand, power in watts, power button:on/off. The child class would be like air ...
1
vote
3answers
58 views

Is it correct to use PUT with multipart content?

We are using Spring and want to implement a REST with a "override file" call so we think using PUT verb with a multipart body only to find that Spring don't accept it. My question is it can't be done ...
0
votes
1answer
47 views

Creating an API for existing products

Lately I've been searching for information about creating API's. The company I work for wants to sell some of our products as stand alone devices. Currently these products work inside enormous ...
-3
votes
0answers
34 views

Question about video format when developing an online video streaming/editing application [on hold]

I'm going to develop an online video website with a built-in video editor using ASP.NET. In the requirements, my application both supports video streaming and editing on the Internet, and the user can ...
2
votes
1answer
54 views

Considerations for decoupling and refactoring business logic to a REST API

We've got a .NET Solution consisting of a MVC Website and a bunch of libraries for business and data logic. In the past the website was the only way to interact with our business logic, but we're ...
-3
votes
0answers
32 views

not able to create a package in eclipse under java folder [on hold]

I am trying to build a hello world program in jsf/maven eclipse by following http://www.tutorialspoint.com/jsf/jsf_first_application.htm. The steps i performed so far 1: mvn archetype:generate ...
6
votes
4answers
2k views

Can a C struct behave like it had a function?

I use C and structs where a struct can have members but not functions. Assume for simplicity that I want to create a struct for strings that I name str and I want to be able to do str.replace(int i, ...
0
votes
0answers
28 views

Are there more generic alternatives for the HAR format?

I'm working on a build tool, and would like to track and report on the various phases that my inputs and outputs go through. (mostly for performance analysis and optimization) I already know about ...
0
votes
0answers
47 views

How to start multiple instances of a web based singleton application? [on hold]

There is a web based application from where I can listen to a radio broadcast. On each pc terminal, I can only listen to one broadcast at any time, my question is: is it possible to listen to multiple ...
98
votes
15answers
3k views

How are globals any different from a database?

I just ran across this old question asking what's so evil about global state, and the top-voted, accepted answer asserts that you can't trust any code that works with global variables, because some ...
0
votes
0answers
25 views

In an ESB type system, what field name should be used as a “correlation ID”?

We're using ASP.NET Web API and Azure Service Bus and adding logging to our disparate services and systems. We need to track a correlation ID to the headers of each set of bus messages as well as logs ...
3
votes
5answers
218 views

Do you generally send objects or their member variables into functions?

Which is generally accepted practice between these two cases: function insertIntoDatabase(Account account, Otherthing thing) { database.insertMethod(account.getId(), thing.getId(), ...
-5
votes
0answers
33 views

Make VS copy and paste code using some kind of attribute [migrated]

I am using VS 2015 and C# I tried to search for it but I don't know what terms to use... What I want to do is to mark part of my code with compiler special attribute or something and then go to ...
1
vote
1answer
59 views

Fast straight-line-integrals over a discrete grid

I have a grid that represents a sampling of a continuous function in a 2 dimensional space. I'm looking for a (preferably fast) algorithm that can calculate the discrete line integral along a ...
-2
votes
0answers
17 views

Can I use the Android Trade Federation Library to save and compress logs in the app and distribute this on the play store?

I want to compress and store logcat on an Android device so that if the user's app crashes while offline, then his/her device will send the logcat feed when the device comes back online. I started ...
1
vote
2answers
124 views

Removing MIT licence credits upon paying

Is it possible to buy the authorship of a piece of software just to be able to remove the credits from its source ccode? Would that be ok if the author of the library agrees to do so for a price?
-5
votes
0answers
44 views

Program described in a single sentence [on hold]

I'm a brand new programmer studying C# as my first language of choice. I'm still trying to wrap my brain around the process of programming, so I would like to describe the scope of a program and it's ...
1
vote
1answer
27 views

Laravel 5.2 - Better to create a Service Provider or Helper class or otherwise?

So I have created an API endpoint (obviously not restful) that generates xml and returns the file path of the files. Its obviously more complicated but that is the gist. My issues is this. Inside my ...
5
votes
2answers
117 views

Why incremental builds in “make” don't use hashing algorithms?

I am a beginner with make and I'm wondering about when to use make clean. One colleague told me that incremental builds with make are based on the files timestamps. So, if you checkout an old version ...
3
votes
1answer
123 views

Signification of YOLO LICENSE

I am using darknet framework for object recognition listed here: https://github.com/pjreddie/darknet This is its license: YOLO LICENSE ...
-1
votes
0answers
27 views

Portable Class Library best practices

I am converting some .NET framework targeted projects over to Portable Class Libraries and looking for some best practices. Usually all of my projects use the same project name and assembly name, and ...
4
votes
0answers
59 views

Are there any other Git porcelains other than the default one?

One of Linus's emails mentions the separation of the Git tools into the "plumbing" (usable by automated tools) and a user-friendly interface on top of the that (which has later come to be referred as ...
-1
votes
1answer
22 views

TestFlight version numbers

If I update an iOS app as a result of tester feedback during TestFlight, should I be updating the "marketing" version number, or just the build number? My current (initial) version number is X.Y.Z ...
0
votes
1answer
31 views

List of Domains offering Web-mail services

I want to maintain a list of domain names that provide web-mail services. I searched and received a list of 1634 domains(Free Public web-mail services) However, is it possible to get updates, if any ...
-4
votes
0answers
19 views

Grails spring saml configuration [on hold]

I am using spring-security-saml:2.0.0 plugin with serializer-2.10.0.jar, xalan-2.7.1.jar, xercesimpl-2.10.0.jar, xml-apis-2.10.0.jar, xml-resolver-1.2.jar. I am also following the instruction on ...
-2
votes
1answer
42 views

Implementing Run Modes - One Software to Rule Them All [on hold]

I am currently coding a program that can be run in different modes from the command line. Each mode uses a shared set of sub functions, but the different modes diverge at some points in the program. ...
1
vote
2answers
185 views

Are global variables okay to use in asynchronous programs?

This may be a stupid question, sorry. I've read about the drawbacks of global variables a lot on this site. I'm finally trying to increase my code quality for a large project that'll be reviewed by ...
-3
votes
0answers
49 views

Imports failing on Linux, but not on Windows [on hold]

I'm trying to import some .py files into another .py file. It's pretty simple, but I'm getting an error about it being unable to import anything. Here's my error: ...
-3
votes
0answers
24 views

Use variable to slice string in Python [on hold]

I have what seems like a fairly simple question, but I have had no luck finding an answer to date. In Python 2.7, I generate a unique id and then want to slice the first x characters based on the ...
-2
votes
1answer
47 views

Name for object to re-order events received in arbitrary order?

I have a program which generates events. They are ordered with a Lamport clock and sent over the network. They may arrive in a different order. On the receiving end I have an object which re-orders ...
0
votes
1answer
30 views

Security error on asp.net system after deployment of bug fix dll

I (recently inherited) a asp.net web application in production. After fixing a generic bug in the area of making a table selection - we have a problem regarding security policies not allowing access ...
-1
votes
1answer
42 views

SQL query - split and run parallely?

I have a master table T1 which has 1000 records and a ColRef a key column. There are lots other tables all linked by ColRef. I have a Stored procedure which takes few hours to process. I want to ...
-3
votes
0answers
35 views

is there any tools or software or patterns available to build UI Dashboards with lots of Graphs and tables [on hold]

I am new to front-end development. I am planning to build a web application, Which is going to use REST api to get data. It mainly has a dashboard where I am going to display lots of graphs and ...

15 30 50 per page