0
votes
1answer
19 views

Is there a hashCode()-like method that can be used for state checking?

I thought up a simple and efficient way to combine states with events to make event handling more efficient. My idea of state checking involves State objects that hold reference to mutable variables ...
-4
votes
0answers
14 views

Java Boolean Array Problem

There is a long hallway leading into a factory with 1000 ceiling lights hanging from the ceiling with pull chains that turn the lights on or off. You have a line of 1000 workers waiting to get into ...
-4
votes
0answers
11 views

What is messaging backend and its application? [on hold]

What is messaging backend like jxm.io? What is its difference with jobs queue like sidekiq? When and How should programmers use them?
-5
votes
0answers
12 views

PHP Parse error: syntax error, unexpected T_VARIABLE

I am getting following PHP error. This following code (line 53, 290, 400, 452) was working before but not now. Don't know why it's not working now. Need help. Thanks. Parse error: syntax error, ...
3
votes
6answers
73 views

Is turning UI (or other) features on and off based on dates-a code smell?

We have an awful system written in ASP.NET 2.0 that we need to add some functionality to. The problem is that a certain product has UI features that have to be turned on for business initiated after a ...
0
votes
0answers
9 views

Dealing with stale data / currency issues when lazy loading related entities

Imagine I have two associated domain entities with a one-to-many relationship. Here is an example with Customer and Order classes: public class Customer { public int ID { get; internal set; } ...
8
votes
5answers
299 views

Time estimating of a bug investigation. (Not a straight-forward one)

(I don't think it is a duplicate: The key point is that investigation is much much more uncertain than development where things to be done are specified. As one of the answer has highlighted: it's ...
0
votes
1answer
15 views

Seperate requests for static and dynamic page content on first page load?

I'm thinking of the following two requests: Request 1: Load all static html, javascript, images, etc... the website framework so to speak. Then fire a second request to get dynamic content (say ...
-2
votes
0answers
58 views

Coding application which need huge data!

I have to code windows desktop application in c# wpf mvvm pattern. I have a 4 to 5 tables in database. And each tables have few thousand rows. I have to create an application and the data for that ...
-4
votes
0answers
29 views

Software Developers [on hold]

I would like to take this opportunity to please ask if I can get some advice or directions on the 3 below requests: I am looking to find resources, courses (online and also which are held at venues) ...
2
votes
1answer
31 views

Use of tenant_id in multi-tenant database

We are building a SASS web application where every company will be using its own database schema. Using postgresql, there is a table 'companies' in the public schema that holds the name of the company ...
-2
votes
0answers
22 views

ANSI-C (C89) compliance free test cases for C compilers? [on hold]

Does anyone know free collection of thousands of test cases, for ANSI-C compliance testing any C compiler? (would be really useful for all those embedded MCU compilers)
-3
votes
0answers
24 views

Need charts to describe a student's rank and mark in a single test [on hold]

I need charts which could be used for my web application. Charts should describe the students rank against the college and another charts should describe his mark. I searched for charts in google, but ...
0
votes
1answer
63 views

distinguish requests from the same vehicle

I am implementing an small app to track buses based on Crowdsorcing. The riders send data long, lat, mac, route to the server as JSON string. In my database I have table bus to insert the transmitted ...
4
votes
3answers
349 views

Is it a bad practice to use Nullable for non value types?

I know the nullable construct in C# was introduced to support null for value types. However, the language does not seem to have a problem with using nullable on other types. I wonder if this is a bad ...
-1
votes
1answer
26 views

How to know end cell for whatever cell in array that forms a diagonal

I have the follow issue that I'm trying to implement rather thinking for now but with no good results. Imaging a two array dimensional: If we are in [3][9] we want to trace a diagonal that goes ...
0
votes
1answer
19 views

Name pattern for quickly find descendents with SQL (PATH column with [TopId]…[DirectAncestorId].[OwnId]) NO nested sets

I read a long time ago about a pattern/technique for easily querying for all "descendants" of a record (no need to use CONNECT TO, which is not standard and not available with JPA). I remembered the ...
1
vote
0answers
28 views

Method documents differs between Java docs and Android docs

Some times I see problematic differences between Java doc and Android doc in about method documents.For example in about setReadable (boolean readable, boolean ownerOnly) method you can see java doc ...
1
vote
1answer
63 views

Business concept design vs logical database design

Good day. I need help for a specific case. A little background: We have an existing app, it is like a PDF viewer, and you can draw freehand, highlight, add highlight with notes, add action items, etc. ...
-1
votes
0answers
30 views

Suggestions required for developing a client/server project in C++ [on hold]

I want to develop a client/server model based Windows project. Since, I am learning C++, I want to build that project using C++. But, here on the web, even after researching for a few hours, most of ...
4
votes
3answers
99 views

Unit of Design Versus Unit of Re-use. What is the difference?

Contemporary object-oriented programming languages employ the class as the unit of reuse. At the same time, the class is also the unit of design. This implies that to reuse a class, the design ...
0
votes
0answers
22 views

Getting phone contacts with clean architecture approach, how?

First of all: sorry for my english :) Hi, I would like to ask you for opinion about the topic. We are trying to implement the clean architecture approach in our projects for a while now. After ...
0
votes
1answer
23 views

Provide part of context to class using interface

Currently I have class Context which I inject in some places in my code, like: protected override object GenerateSomething (object input, Context ctx) Depending on Context, Generate method gives ...
0
votes
3answers
85 views

Best algorithm to determine whether two arrays can be the same in a circular queue

I'm trying to figure out an efficient way to determine whether two distinct arrays of the same size can be shifted to form the same circular queue. For example: Array1 = ['A','B','C','D'] Array2 = ...
0
votes
2answers
57 views

Difference between PyPy and JVM

From my understanding the default Python interpreter(CPython) compiles source code into bytecode and then interprets the bytecode into machine code. PyPy on the other hand makes use of JIT to optimize ...
0
votes
0answers
20 views

Database design for a user-based website, with MongoDB and node.js

I want to design an application with MongoDB and node.js. The app is like Instagram in which data is categorized in special News Groups like sports, art, business, and politics. In this app users can ...
0
votes
1answer
31 views

unexpected behaviour of nested lists in python

I have a nested list called basic and I want to change one of its entries. I had assumed the following behaviour: expected = [ [9],[0] ] unexpected = [ [9],[9] ] basic = [ [0],[0] ] basic[0][0] = 9 ...
0
votes
1answer
24 views

Guideline/best practices on what traits/categories to give to tests

Is there any standard on what traits/categories to give to tests? Here is an example: I guess that this is mostly used to reduce the time of executing when some are long but is there any standard? ...
0
votes
0answers
35 views

Algorithms for edge detection in digital photos? (Java)

So far I've found that one method of edge detection in photos is to calculate the difference in the RGB signature from adjacent pixels and whether that difference crosses a certain threshold or not ...
0
votes
0answers
12 views

ASP MVC Performance Analysis in Azure

I have a web application based on asp net boilerplate using EF6. The site is in it's finishing phase and I'm trying to tweak the performance to the best of my abilities. I was able to reduce the ...
-1
votes
0answers
16 views

Any Knowledge of Portable O2 supplemenation [on hold]

This might not be the appropriate overflow for this question, so please feel free to direct/delete. As a software engineer who has recovered from severe RSI, I constantly must maintain best practices ...
3
votes
1answer
52 views

Searching for good design in interaction between 3 interfaces

This will be in C++11, but the object design should be rather agnostic. I have 3 interface classes, IEvent, ICondition, IRunnable. The main loop processes multiple kinds of IEvent, ranging from "an ...
1
vote
3answers
86 views

Database view performance - good practice?

Often times at work we opt to create views in the database to expose the data that we want to work with instead of building some monster query in our code. Being somewhat new to this field my ...
1
vote
3answers
72 views

learning a language by translation of previous work [on hold]

So i've created a few decently sized projects in java and i'd like to learn python. Would it be reasonable to just hack through my project and translate it into python? Any thoughts on this ...
18
votes
6answers
3k views

Hardcoding strings that will never change

So, in my efforts to write a program to conjugate verbs (algorithmically, not through a dataset) for French, I've come across a slight problem. The algorithm to conjugate the verbs is actually fairly ...
4
votes
0answers
38 views

Using an LGPL licensed library that may or may not include GPL licensed code from an MIT licensed library

I have read this question on SO, but it doesn't appear to answer my question fully. I maintian a library which is licensed under the MIT License. In my MIT licensed library, I dynamically link ...
1
vote
0answers
33 views

Testing strategy for wrapper class

In my Android project I decided to create wrapper around SharedPreferences(which is basically key-value storage) with following interface interface Preferences{ public void saveInt(int value, ...
1
vote
0answers
25 views

Should my combobox for boolean values be in code-behind or in my viewmodel?

I ran into a disagreement with a coworker of mine on the implementation of representing a Boolean value in a ComboBox using Xaml and MVVM. Currently, my viewmodel is very simple. I have a bool? which ...
0
votes
1answer
65 views

What pattern to use when you have to hide/show different sections on a form depending on a dropdown value?

For example, let's say you have 8 sections to hide/show and depending on the value of a dropdown, you have to show or hide dynamically from 1 to 8 sections. 1) Is there any better way of doing this ...
0
votes
0answers
29 views

Looking for a way to interpolate a base URL that won't conflict with Underscore template code

At my workplace, we have dev and production environments, and a separate server that serves static files for each environment. In my code, I make references to the URL of this static file server. ...
4
votes
2answers
58 views

How to decide what forms the System Under Test

Ok, so we started with the initial version of "The Art Of Unit Testing" and we do unit tests for classes where every test covers one aspect of one method. This has the drawback of high maintenance ...
-5
votes
0answers
33 views

Recommendations for running personal web applications on localhost [on hold]

It is sometimes convenient to have web applications available for local use, specially to build UIs. The main restriction being no access to the file system. To work around this you can run something ...
-2
votes
0answers
13 views

For a given n,k find the sum [migrated]

For given n,k find the sum 1^k+2^k+....+n^k: I compiled this: #include<stdio.h> main() { int n,k,i,j=1,t,s=0; printf("enter n,k"); scanf("%d%d",&n,&k); ...
1
vote
2answers
75 views

Non-printable characters and editors

Today I was presented with a very nasty problem and I do not quite know where to ask this but hope here is ok. So I have the following string: "\0" (at least that's how it looks in visual studio). If ...
0
votes
0answers
27 views

Relicense BSD as MIT [duplicate]

I have a product that I had licensed as BSD. It has now been re-written and enhanced to have much more functionality and is being released as a whole new product. Since the original product was ...
2
votes
2answers
71 views

How to handle an aggregated list of the fields of multiple objects?

I have some objects each hold a list of variables, and a list which holds all variables of these objects, for example class A { List<Var> varList; } class B { List<A> aList; ...
0
votes
0answers
28 views

Capturing windows keyboard strokes while script isn't current used process [migrated]

I am trying to make an application that redoes my exact movements on keyboard on a certain process, so I am attempting to register my keyboard strokes time-stamped, I tried to do it using msvcrt or ...
1
vote
1answer
24 views

Symfony 2 Multi tenancy architecture, data loaded form front controller/kernel based on subdomain

Hello fellow programmers, (a bit of background)I'm building a Symfony 2 application for university Student accommodation, when our clients from the university side register with their details a ...
0
votes
1answer
22 views

OAuth/OAuth2 RFC question

This question is about a line from the OAuth2 rfc - https://tools.ietf.org/html/rfc6749 In Section 2.3, there is this line The client MUST NOT use more than one authentication method in each ...
2
votes
1answer
202 views

Class becoming God Object what pattern to use

I am developing Android app and my MainActivity is becoming God Object. By the way native Activity class implementation is some sort of God Object already. The problem is that my activity class is ...

15 30 50 per page