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
83 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
32 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
125 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
169 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
97 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
84 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
22 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
62 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
77 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
25 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 ...
0
votes
2answers
174 views

How to implement backtracking to check if all fields have been traversed

I have been learning algorithms and trying to solve problems and now I have the following problem: In a 4x4 matrix, and it contains fields with height. There is a start field with given height also ...
1
vote
1answer
84 views

How to atomically create a new entity in multiple contexts without coupling?

Let's assume there are multiple contexts with the same logical entity but with different notions. Creating such an entity should have the side effect that in all other contexts the same logical entity ...
-3
votes
0answers
27 views

Tracing code flow, on very large projects [duplicate]

I am having a project in javascript, with many thousands lines of code, spread across hundreds of files. I am looking for a way to get familiar with the structure without having to debug and add ...
1
vote
1answer
94 views

Understanding recursive solution of some algorithm

Most of the time we need to understand someone else' code for example I am studying Graph Algorithms from Sedgewick's online resources, the particular code example is taken from cycle detection ...
8
votes
3answers
150 views

In REST parlance what is the difference between a resource and a representation?

My understanding of REST that is enables modelling service operations as representation of state and transition from one state to another making use of HTTP. I have always understood resources as ...
1
vote
1answer
75 views

When we need to serialize an exception

I have been developing in Java since 8 months, and I didn't face a case where I went to serialize an exception, I'm asking because I saw the serialVersionUID and how Eclipse advise to add it ...
2
votes
1answer
106 views

What functionality to expose in a database abstraction layer?

I'm trying to design a simple way of abstracting away data persistence behind an interface, but I'm having a hard time figuring out how much fine grained control should be exposed to higher layers. ...
0
votes
0answers
67 views

Best architecture for customising the character

I want to customize the game character before starting the level, for example, select what kind of weapon, armor, clothes, etc. There are several components and each component consist of several ...
1
vote
1answer
48 views

Generate a string generator (constant associative array)

There is a finite set of unique strings and a limited key space. One key corresponds to one string value and a function must exist to perform the resolution. There is no need to support other ...
2
votes
2answers
122 views

Placing preconditions in the right place

I am trying to figure out the best way to define the responsibility of checking preconditions. Let's consider the following case: we have an Event class representing a sports event and a Matchup ...
2
votes
1answer
117 views

What are the limitations of Java exception approach to errors?

Please ignore performance issues, I am interesting in data flow, safety, modelling, reasoning. I wonder what are the limitations of exception approach to error reporting implemented like in Java ...
1
vote
1answer
66 views

Is my understanding of dijkstra and plain Breadth-First Search correct?

I need to help to validate whether my understanding of when to use Dijkstra and when BFS are correct. My way of understanding BFS and Dijkstra, when to use what, am I correct? As I see it. Being ...
2
votes
1answer
129 views

Choice of variable names and types in graph algorithm

I am learning algorithms and data structures from this awesome resource Algorithms. Rather than doing dry reading I am trying to re-write all the code myself so that I can learn coding as well as ...
0
votes
1answer
55 views

What are the advantages of RxJS Observables over promises? [closed]

It seems to me like Observables are basically wrappers for promises with some helper methods. It also requires a huge library to go along with it. Do the benefits of these helper methods outweigh the ...
0
votes
0answers
27 views

I am trying to make a function with that returns true/false if an element is in the vector but I am getting an error? [migrated]

I am trying to implement a function in C++ using STL which takes an object and a vector of objects and return true if the vector contains the object else false. Below is the implementation of the ...
2
votes
5answers
304 views

Why do I need to declare virtual functions as such?

Example: We have a base class Base and three subclasses which all implement their own version of doSomething(). In an intermediate function f(Base b), we want to call the relevant version of ...
0
votes
0answers
24 views

Reverse lookup of data based on user input

I have an array in the format: $array = array( 0 => array( 'name' => 'Item 1', 'level' => 1, 'points' => 10 ), 1 => array( 'name' => ...
0
votes
0answers
26 views

Resolve route before invoking middleware chain

Say I have a HTTP middleware chain that handles all incoming requests. Where should the incoming request be resolved into an appropriate route? I have thought about doing so before the middleware is ...
2
votes
0answers
43 views

Most efficient way of allocating participants to conference tracks

I am redesigning a system by which conference participants can choose which track they want to attend. Participants express their track preferences arranging them in order and submitting them at a ...
4
votes
3answers
110 views

Passing a private member collection to another class

Suppose I have a Map which is a private member variable of my class A. In the same class I create an instance of class B, call it objB, by passing the map to B's constructor. Obviously this is ...
4
votes
2answers
24 views

Test arrangement using the system under test

I have some integration tests around stored procs. Typically I do the test setup using Dapper. This is fine for simple cases, but in some cases to setup up the system correctly it would be far simpler ...
2
votes
1answer
69 views

What's the difference between an implementation detail and a technical concern

I just wanted to make sure that I understand and can properly articulate the difference between these two concepts. I've always thought of an implementation detail as being the internal workings of ...

15 30 50 per page