1
vote
1answer
39 views

Web service + sync database + main application architecture

I got to develop a web service that will help synchronize some of our data with APIs from Google, as well other services in the future. I thought, and my boss too, we should go for a stand alone web ...
4
votes
2answers
145 views

Is it okay to use static classes while creating a wrapper for REST API?

I am consuming a web service in C# using REST APIs. So, I have created a wrapper classes for each endpoint. It seems like a good idea to implement the wrapper using statics. This makes code look much ...
-2
votes
1answer
33 views

Need a solution for data filter problem

Problem statement: I have a input with multiple key value pairs and a list tasks stored in database with filter object. As an output I need a list of tasks matching the input values based on task's ...
2
votes
0answers
16 views

Where to store configuration URL variable in Rails?

I have an external ecommerce link that varies based based on environment (testing and production systems). Where should it go in Rails? Possibilities include: a conditional directly in the ...
0
votes
0answers
21 views

Building application with some realtime challenges

I m working on an application in which we need to send information in "realtime" flow. It could be messaging from one to multiple people, or receiving notifications by users. Our constraints is less ...
2
votes
1answer
156 views

JavaScript - Client-side separation of Model and ViewModel?

I am developing web apps using the Model-View-ViewModel approach with Knockout.js. After reading on the original introduction of MVVM by John Gossman, I realized that my ViewModel always contains ALL ...
-1
votes
0answers
83 views

What is the name of this anti-pattern / code smell? [duplicate]

What is this called when a developer writes: if(!isInvisible) {} instead of:: if(visible) {} Is there a name or a reference for this being an anti-pattern?
-3
votes
0answers
51 views

ASP.NET Website Issue in Google Chrome (Works in IE and FireFox) [on hold]

I have created my first ASP.NET website using Visual Studio 2015. The website works perfectly fine inside VS2015 and debugs OK with IE, Google Chrome and FireFox. However, after uploading the site to ...
0
votes
0answers
17 views

Azure structure required for team

In terms of Microsoft's Azure cloud platform What do a small team of developers within a large company require if they want to be able to deploy and manage web.api, databases etc to azure but have ...
0
votes
0answers
47 views

How to handle ID's with resources that can be combined?

Early on in my app, there were simple Customer objects with an int id. In my database, some customers are split into multiple accounts for organization purposes. For ex. "CustomerA" (Main account) (ID:...
2
votes
1answer
43 views

Proper way to deploy ASP.net to production web server

Here is how I was told to deploy my ASP.net(mostly intranet) website\program\application to the production web server in my company. Change necessary settings in web.config for production web server....
1
vote
0answers
51 views

Multiple Entity Business Logic/Changes, C# MVC Repository Pattern

I have a standard C# MVC project which has a domain layer using EF and repository pattern. Say I have a model like: public class MainModel { public int MainModelID {get; set;} //Many other ...
1
vote
2answers
151 views

How do developers allow for plug-ins in their apps

I've seen in some applications that were written in compiled languages where plug-ins are accepted and the solution to the question of how still eludes me. For example in Eclipse, Google Chrome, ...
2
votes
1answer
81 views

Working with Dependency Injection using Factory pattern

I want to build a .jar that encapsulates a vendor api, so we can use our own objects as parameters to communicate with the api. I've read some articles and topics here in SO, but I still am a bit ...
1
vote
1answer
59 views

Java PrintWriter vs JSP

I just want to ask an opinion, which are the best practice to use html between this two option: 1) Use JSP by creating html page there 2) Generate html using Java server side by using PrintWriter ...
2
votes
2answers
156 views

When is it ok to instantiate all of my objects upfront?

I am currently working with a contractor who's code instantiates a large number of objects upfront at the start of the application. This application is written in ruby, but I wonder how something ...
5
votes
5answers
377 views

Efficient way to calculate how many items to destroy if each has a 70% chance to be destroyed

We start with a variable that holds an integer for the "number of items" that we have somewhere, somehow. Then, the algorithm is applied: each one of those items have a 70% chance to be destroyed. ...
0
votes
2answers
76 views

What is a debug port

I want to explore code paths in Cassandra database, so after getting the code from git and explore it a bit I noticed that it starts a daemon process when I run it from Eclipse. I supposed that when ...
0
votes
1answer
32 views

How should I handle Stored Procedure parameters that need to be the same length as a column?

I'm writing a lot of stored procedures for a SQL Server database that take an id or code that is a CHAR instead of an INT. Most of these haven't changed size in a long time, but when a customer wants ...
0
votes
1answer
50 views

designing php POST interface to mobile app

Currently I am working on php application, to create interface that will receive POST data from mobile app, and process them into shared database. To do things right at a first time, I was searching ...
1
vote
1answer
52 views

Pattern for creating and accessing temporary data for multiple http request?

I want to store temporary data that can be accessed across multiple http request. The question may be similar to How to persist temporary data over multiple HTTP requests?. The accepted answer is too ...
1
vote
4answers
103 views

What is a good convention for table key id name?

I'm wondering if there is any good convention for key attributes in relational datatables. ID or Id seems to be good. however it conflict with others ids when joining. MyTableNameId does not ...
2
votes
1answer
88 views

Should I make myself a superadmin?

I am currently developing a web application (in Ruby on Rails) for my university's department. The web application's user base have several roles: director (the director and assistant director of the ...
1
vote
1answer
44 views

A filtering logic should be in a repository or in a service?

I'm wondering the following: suppose we are building a system where there needs to be some filtering functionality to search for some entity. For example, one might want to apply the filtering to a ...
15
votes
4answers
2k views

How should I store readonly data to deploy with my application?

I'm developing a desktop application, and this application requires some information to run, but it doesn't change any of this information (the data must be loaded on every execution of the app, but ...
0
votes
1answer
85 views

How do I integrate hibernate and REST web service in java?

I am going to develop which will be web application as well as mobile (android / iOS / windows) application. The database in this application will be managed by Hibernate. Also as it is cross platform ...
-1
votes
1answer
57 views

How would you explain or visually show someone the difference between linear/static probability vs dynamic?

Forgive me if I'm using the wrong terminology, but I'm attempting to explain to a non-technical person the difference between something happening in a program due to either a Math.Random (seed PRNG) ...
-3
votes
0answers
78 views

What choices do I have in implementing an in house API? [closed]

I have been asked to help implement an in house API and desktop app for a partner company. They would like an on site Server (cloud is out of the question for them for now) and to use existing ...
-2
votes
0answers
36 views

Requesting feedback on my python code: [closed]

I'm a teacher in a school which is offering computer science next year. I'm relatively new to the subject myself and currently in the process of up skilling . I have written a program in pythons which ...
0
votes
2answers
68 views

Getting a stateless time-based index out of overflowing timer

I'm currently working on an Arduino project where I need to keep track of entries for a certain amount of time, in this case, 30 days. Our company will attempt to sell this product to cities and ...
1
vote
0answers
22 views

increasing website pipeline performance by replacing for loops with vector statements perturbs output

I am inexperienced with iteration in R and am hoping to speed up a process as I am implementing some analysis in a website. I realise that this may be a Q for SO but I couldn't get an answer from them....
-6
votes
0answers
30 views

How to enable SOAP on a PC and Server [closed]

I work in software support and find this error appearing on my pc when it tries to connect to a server running SQL 2008 :- Testing server application IIS OK IIS ISAPI extensions OK SOAP call to ...
-2
votes
0answers
29 views

Need help in optimizing my arraylist class which contains combination of pair [closed]

Need help in optimizing my arraylist class which contains combination of pair: import java.util.ArrayList; import java.util.List; public class FieldsProvider2 { private MyObject object; private ...
8
votes
2answers
402 views

Why are checked vs. unchecked exceptions called “the controversy” in Oracle Java tutorial?

I am new to Java and was reading its documentation on exceptions., and especially the Unchecked Exceptions — The Controversy page. The bottom-line says: If a client can reasonably be expected to ...
0
votes
0answers
40 views

What means Natural Feature Tracking?

A Feature Detector tries to find a Point that is at best unique and can be found every time again. Also it can detect if the object/camera was rotated. (depending on the algorithm). They are nicely ...
0
votes
0answers
22 views

Seeking advice on accountsecurity in mobile application

I have the idea of developing a lightweight application that provides people playing a specific game (League of Legends) with VOIP. The appplication flow goes like this: User enters lol accountname ...
-2
votes
0answers
28 views

Is 2007 Office System Driver compatible with Microsoft SQL Server 2012 R2? [closed]

Overview I am making an application in which I am importing excel file into SQL Table. Let me tell you here that In my client PC there is no MS Office or Excel is installed. Only MS Server 2012 R2 is ...
0
votes
0answers
26 views

OpenMPI: Speeding up process

I have a scenario where suppose I have 10 files, each with lots of values(~100,000) of co-ordinates (x,y,z). Now I use open MPI to create 10 processes ,each of which read from its assigned file and ...
2
votes
0answers
24 views

Specifying a bi-directional unique constraint on a join table in Postgres

Problem description I have a situation where I want to enforce that a relationship can only be defined once and I want to solve it on database (Postgres) level. The following situation I consider ...
1
vote
1answer
45 views

Can composition be used in unit/integration testing over inheritance

In larger projects, there can often be a group of tests that test the functionality of related classes. These tests often share a lot of setup and preparation functionality. What happens then is ...
7
votes
1answer
201 views

By the book REST vs Too Many Requests

From Roy Fielding's comment on his own article decrying fake REST apis: A truly RESTful API looks like hypertext. Every addressable unit of information carries an address, either explicitly (e.g....
-3
votes
0answers
30 views

Web.config Impersonate With HangFire [closed]

I'm trying to impersonate another user in order to connect to SQL database using an Active Directory (AD) username and password, but when ever the impersonate is enabled hangfire does not recognize ...
-3
votes
0answers
62 views

What will a specification looks like if one really want to hire a freelancer to make an application like whatsapp? [closed]

It is common for layman to ask "how much it would take to write an application like whatsapp?". Usually asked in a casual dinner when discussing on each other's job, and would be an alarm to tell if ...
2
votes
2answers
200 views

Design classes to prevent future code breaks

I'd like to design a robust version of this class (C++11): class Oscillator { private: std::vector<double> trajectory_; // Some numbers that are needed to get the trajectory ...
0
votes
2answers
61 views

Relation between UnitOfWork and DataMapper

I have been studying DDD for 1.5 weeks now, and I came a cross the use of the Unit Of Work pattern together with Data Mapper pattern. I understood why they are both important and when to use them but, ...
0
votes
2answers
34 views

Normal Form in Artificial Intelligence

Why do we use normal form(like Conjuctive Normal Form and Disjunctive Normal Form) in Artificial intelligence?What is the specific purpose of Making a sentence in Normal Forms?
0
votes
1answer
21 views

SPIM MIPS simulator assign number to a symbol for reuse later

In MIPS, I can allocate space like so: .data space_here: .space 40 # Allocate 40 bytes Later on, using a SPIM syscall I can read a maximum string of length 40 bytes into this memory location, like ...
0
votes
0answers
46 views

POST REST api request parameter structure

I am working on building a REST api for a web service which aggregates results from multiple backend systems. The current structure is the following { "query" : "test", "sources": [backend1, ...
0
votes
0answers
30 views

Versioning content in a No-SQL datastore

I am working on design a document management system and it has the following components : A Module has a content. A Document contains a list of Modules. A Document Collection contains a list of ...
0
votes
1answer
39 views

Possiblity to request several Linux threads scheduled together (in the same time)

I'd like to be able to request Linux to schedule two or more threads in the same time. I mean today when my multi-threaded program is being executed I know that in worst case only one of my threads is ...

15 30 50 per page