-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
72 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
144 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?
1
vote
1answer
40 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
133 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
157 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
53 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
75 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
36 views

List of Domains offering Web-mail services [on hold]

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 ...
2
votes
2answers
210 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 ...
-2
votes
1answer
51 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 ...
20
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? [closed]

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 ...
32
votes
7answers
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 ...
133
votes
14answers
21k 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
217 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 ...
2
votes
1answer
57 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
33 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
44 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
82 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 ...
3
votes
2answers
119 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 ...
0
votes
0answers
31 views

Algorithms for Distribution and Logistics problem

I am looking for a way to express the following logistics/distribution problem as an equation that could be solved with a solver (optimization). Or if there is an known algorithm that would most fit ...
0
votes
1answer
124 views

Why do successive iOS versions take longer to run the same task on the same hardware?

Updating the iOS version on an old iPhone tends to make basic operations like startup, placing calls, and checking settings take longer. The change from eg iOS 7 to 8 on an iPhone 4S has a very ...
2
votes
1answer
37 views

Code style for parse-methods in Scala?

Say I have a class with multiple parameters: case class Foo(a: String, b: String, c: String, d: String, ... ) Now say I want to parse an instance of Foo from a Map[String, String]: // returns ...
1
vote
1answer
47 views

Data Storage Architecture: Storing Hierarchical Data (JSON/BSON)

Say you have the hierarchical storage concept of "Foo." "Foo" holds an id, various values, and zero to many "Foo." Obviously, in turn, the child elements can hold zero to many Foos. The data is purely ...
0
votes
0answers
22 views

Task monitoring with NodeJS

I want to monitor batch jobs which get triggered by an REST API. This batch jobs are long running native data processings. So naturally, I want to return immediately after a REST call e.g. uploaded ...
15
votes
5answers
3k views

When to use inheritance, when to use 'just a boolean field'?

In our Rails application, we are adding notifications. Some of these are blocking: They stop the progress of whatever resource they are added on, because some information on that resource is missing. ...
2
votes
0answers
165 views

Dictionary of dictionaries design in C#

My question: is there a canonical way of creating a dictionary of dictionaries and providing an outer/inner key pair? Is there a NugetPackage out there with an implementation? In my code, I have now ...
0
votes
1answer
34 views

How can I link branches with issues in BitBucket?

I am using a BitBucket private repo for hosted source-control. I would like to use the issue tracker to manage and assign issues amoungst the team. With JIRA, the names of branches and issues are ...
4
votes
1answer
57 views

What comes first: the activity diagram or the sequence diagram?

I've been learning about UML diagrams and such. While doing so I came up with a problem. Which diagram should be drawn first when designing a system given that use case and such are completed? Is the ...
4
votes
0answers
96 views

Why doesn't unicode have control characters for color? [closed]

Unicode has lots of control characters that can create function such as reversing the text that follows. On the other hand it doesn't have control characters to set the color of text. It seems there's ...
-1
votes
0answers
83 views

Packaging a HTML,JS,CSS project within an application for security.

We have a project which is designed with html,css and JS. For demonstration purposes, we have integrated the project inside a JavaFX app in the webkit browser and from there we are just loading the ...
1
vote
1answer
46 views

Using Entity Framework as substitute for SSIS, SSAS and SSRS

At the moment I have three different sources where my data are. 1. A Dataprovider, 2. inhouse access DB and 3. Salesforce. Now I want to build a datawarehouse (using ms software) where I want to store ...
-2
votes
0answers
38 views

Most common Non-Latin Bigrams and Trigrams for programming languages? [closed]

I am looking for a list of the most common bigrams and trigrams in programming languages. For example, I develop using mostly Qt, ergo common Bigrams for me are: () ); (" ") (! Common Trigrams ...
0
votes
0answers
21 views

Multiple web apis under one domain

I am using ASP.NET MVC and I have a project where I need to build different integration rest APIs for different partners http://domain.com/api/integration/partner1 ...
0
votes
1answer
60 views

Uploading large files to web-server even if browser closed

I need to permit users to upload large files to my web-server even if the browser is closed. How can I implement this functionality. I have gone through the feasibility of google drive app but it ...
0
votes
3answers
155 views

A very basic question about whether I should check for null and throw NPE? [duplicate]

Consider the below method- public void operationOnList(List<String> list) { list.add(1); } It is obvious that if l is null this method will throw a NullPointerException. My question is ...
-1
votes
0answers
20 views

How would you write the following bit of Elixir code passing a function to the Enum.chunk_by? [closed]

This is the bit of code I'd like to learn how to write using the anonymous function as the second parameter to the Enum.chunk_by. Enum.chunk_by([1, 2, 2, 3, 4, 4, 6, 7, 7], &(rem(&1, 2) == ...
5
votes
0answers
2k views

Why would someone use this type of cast in c? The reference of a float is cast to int pointer and then dereferenced [migrated]

I was reading about Carmack's fast inverse square root algorithm, and noticed this: float x; // ... // int i = *(int*)&x; Why would someone choose to use this weird type of casting instead of ...
-1
votes
0answers
86 views

Mechanism behind QR code scanning of whatsapp webapp [closed]

I could not find any answers related to the working mechanism of qr code scanning used on whatsapp web-app. How does the authentication happen when the phone (any smartphone running whatsapp) scans ...
0
votes
1answer
76 views

What data structure to use to save the address of edges in depth first search?

I am currently trying to write my own Depth First Search. I have created a class called node. class node{ private: bool is_visited; <data structure to collect edges> ...
-2
votes
1answer
30 views

Hypothesis Testing on Statistical Data [closed]

I am trying to figure out which is the best machine learning algorithm to use to solve this problem: Let's say I have a table, with each row such as this: {A, B, C, D, E} And I take in the values of ...
-2
votes
0answers
37 views

Solid KPIs for applying code review? [duplicate]

I am now trying to convince my teammates to do code review. But before that, I have to convince my team lead first. My team lead needs to know some solid KPIs to measure the benefits after doing code ...
-3
votes
0answers
22 views

Panel analysis in Mathematica? [closed]

Can get I produce fixed effects/dummy variables using wolfram mathematica? Do I need to tinker with matrices to get results? I am trying to figure out which days my firm sees the highest amount of ...
1
vote
0answers
23 views

Building back end for iOS/Android app using Django and Heroku

Background: I'm currently building a music streaming app (many requests per second) for a friend and am second-guessing my approach to it. The plan is to have an iOS app and an Android app, though I ...

15 30 50 per page