1
vote
0answers
47 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
94 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
71 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
73 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
32 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
23 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
20 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
40 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 ...
2
votes
2answers
84 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
53 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
37 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 ...
4
votes
1answer
73 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
37 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 ...
9
votes
4answers
3k 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
32 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
50 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 ...
144
votes
18answers
6k 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
27 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 ...
5
votes
5answers
252 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
34 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
71 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
18 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 ...
2
votes
2answers
140 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
45 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
32 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
126 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 ...
4
votes
1answer
144 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 ...
0
votes
1answer
50 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 ...
5
votes
0answers
65 views

Are there any other Git porcelains other than the default one? [on hold]

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
23 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 ...
1
vote
1answer
35 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
23 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 ...
1
vote
2answers
207 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
51 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
27 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
31 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
44 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
36 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 ...
18
votes
6answers
2k views

How to remove a function or feature when using TDD

In texts about TDD I often read about "remove duplication" or "improve readability" during the refactoring step. But what makes me remove an unused function? For example let's say there is a class C ...
-1
votes
0answers
39 views

Performance penalty of a full cache flush at every context switch between mutually distrusting processes? [on hold]

What would the performance penalty of a full cache flush at every context switch between mutually distrusting processes, to prevent cache-based timing attacks (not just on crypto)? I don't need exact ...
28
votes
8answers
5k views

Software License which discriminates on 'ethical' grounds

I've spent some time reading the common copyleft and permissive software licenses. Is there a license which allows the creator of an application or algorithm to broadly specify who may use/distribute ...
103
votes
10answers
15k views

Why does Uncle Bob suggest that coding standards shouldn't be written down if you can avoid it?

While I was reading this question, the top voted answer quoted Uncle Bob on coding standards, but I was confused by this tip: Don't write them down if you can avoid it. Rather, let the code be ...
5
votes
1answer
205 views

Why does this shared buffer work?

Background The following code snippet is taken from a problem in, Visual C# 2005: How to Program, by Paul and Harvey Deitel (pp. 735). The code snippet is more or less an application for accessing ...
1
vote
1answer
55 views

Best approach to store huge amount of denormalized/dynamic data with relational database

Here I have a very basic ILS (Integrated Library System) done a long time ago (made with C#/SQL Server), in production for years. But now I have a demand of make this system MARC 21 standard ...
0
votes
0answers
32 views

In an event driven microservice environment, are domain events equal to topics?

A lot of messaging frameworks have the term "topic". In a ddd microservice architecture, do these topics always reflect the domain events?
0
votes
0answers
31 views

Suggestions for dataloading - semi dynamic data

I have a very old Perl based system that is used for CAD drawing searches, where each drawing has many metadata fields associated with it. Currently, the 'old' system has a database schema that has ...
0
votes
0answers
41 views

Using numeric arrays or associative arrays search and retrieve data ? [ file paths of a page]

I am building on a CMS where dependencies and files needed for a page get stored in the database. Because this can be very dynamic, I serialize these paths into one Database field into my pages table. ...
0
votes
1answer
81 views

How to setup multiple queries with slight differences

I'm writing a page that will show the user statistical data about some of our products. Basically the user can get results between a specific time frame, and also add on other data to lookup by. For ...
2
votes
2answers
110 views

Can cloning and rewriting an Open Source project be used for Marketing?

If I find an Open Source project I like, but I rewrite the entire thing because it's poorly written. I don't mean the question where you rewrite it slightly different, so I can say it's mine or ...

15 30 50 per page