1
vote
0answers
9 views

How does modulus work?

I am not asking asking how the mathematical concept of modulus works, or how 20 % 3 == 2 I understand this fine. I'm more curious how the compiler/interpreter determines this. I can think of a very ...
2
votes
1answer
30 views

Legitimate cases of having .equals() behaving inconsistently with .compareTo()?

Java documentation says it's "strongly recommended" to have them behaving consistently. But are there legitimate cases of java/c#/python/etc Object.equals() method behaving inconsistently with the ...
2
votes
1answer
27 views

How do you scale your integration testing?

I am investigating techniques and strategies for scaling our growing number of integration tests on our current product, so that they can (humanly) remain part of our development, and CI process. At ...
0
votes
0answers
10 views

Best and simplest way to implement a double ended priority queue with insertion and find operations lg(n)?

What is the best way to implement a double ended priority queue with O(log(n)) complexity of insertion, find min and find max operations? I was thinking to implement a red black tree, but it is a ...
1
vote
1answer
18 views

How should pagination allowing links to arbitrary pages be handled in a RESTful API?

There are many examples of RESTful API responses that implement pagination by providing "links" (either by a property in the response or by an HTTP header) to the next, previous, first and last pages. ...
-2
votes
0answers
33 views

What's the deal with PEAR for PHP? [on hold]

I'm new to PHP...I keep hearing/seeing older websites refer to PEAR as something to learn, but it looks like most of the packages are not currently maintained and haven't been maintained for years. Is ...
2
votes
2answers
23 views

Should I use inheritance to differentiate objects even if they have the same fields?

Consider this simple class that models a real world mobile device: /// <summary> /// Model that represents a device. /// </summary> public class Device { public DateTime ...
0
votes
0answers
53 views

Design patterns for navigation between pages on mobile platforms

I'd like to ask you about the best way of handling navigation between pages/activities on mobile platforms. To be more specific - about handling state in more complex apps, about handling 'Back' ...
4
votes
1answer
23 views

How do I model this relationship so that it is valid by construction?

Imagine a device class that represents a physical real world mobile device, with fields like Enabled, Platform, Model IMEI, etc. Then, an operation class, which is something that needs to be done to a ...
0
votes
0answers
13 views

How to reduce read/write latency in the inverted index saved in secondary storage?

If there is a large inverted index that cannot be maintained in the RAM(primary storage), then if saving the inverted index in the secondary storage, how to maintain/reduce the read/write/search ...
-5
votes
0answers
24 views

c# cannot insert data into database [on hold]

I tired to my code, i have no idea whats wrong with my code please help me to fix this This code should be insert the data into database, here im using ms access this is my file staff.cs using ...
0
votes
0answers
26 views

Name of SCP-style target syntax

A typical SCP command might look like: scp something.txt myapp01.example.com:/opt/myapp/config This copies something.txt to a server named myapp01.example.com, and within that server, to the ...
-1
votes
0answers
38 views

Need a name for a hierarchical heterogeneous data structure [on hold]

I am creating a hierarchical heterogeneous data structure ( graph/tree ) and I need a name for it. It is organized in a graph/tree structure with back references for circular references and it is ...
-1
votes
0answers
17 views

What factors influence how long the interview process takes? [migrated]

I'm currently in an interview process of an American game company. But I found it's a long process, here is what I've got: This startup company was found in 2013, it has about 50 to 60 employers. ...
0
votes
3answers
83 views

Software pattern for combining properties

I have two classes that read distinct files. As an examples: public class SourceA() { public string ClientName {get; set;} public int ClientNumber {get; set;} public string Address {get; ...
0
votes
0answers
18 views

Can a UML class diagram show two different relationships between two classes?

I have a class which has an inner (nested) class. I have shown this relationship between the two classes in my class diagram. However, I am also using the inner class within the main class... do I ...
0
votes
1answer
21 views

Reuse already fetched data for request

I have action that fetches user model from db to check access. Then I have method that in some cases requires same model. function checkAccess(req, res, next) { var data = ...
2
votes
0answers
21 views

Application plugin system - interfaces - adding new features

Imagine I have an application, which have plugin system. public class MyPlugin : Plugin { public override ExecuteImpl (Context ctx) { // do something... } ...
-3
votes
0answers
21 views

How to create buyback option on eCommerce site [on hold]

I apologize if this if off-topic or been asked before, but i can't find any information: I have been google-ing for hours and can't find any information. I would like to add the ability to my ...
2
votes
3answers
86 views

Where to store hashes, salts, keys in Desktop Applications

I am trying to figure out where or how i should store application secrets and keys inside a desktop application. For example a facebook app key or dropbox key and secret. So I've read that i should ...
0
votes
1answer
90 views

Is there a name for refactoring technique that turns hardcoded values into configurable parameters?

What is that technique called when you take values in the code that are hardcoded and make them variable, possibly constructing elaborate OO constructs to make that variable properly configurable? ...
1
vote
2answers
109 views

When it makes sense to implement C# explicit operator?

Follow-up of Is my usage of explicit casting operator reasonable or a bad hack? One of the users commenting on that question said that it's really bad if the casting operator creates a new object ...
-2
votes
0answers
45 views

What is Agile environment for Java development mostly used today? [on hold]

We are working on a new project and want to build up Agile environment for Java development. Our mid-tier is J2EE + Restful + Web service. Frontend is iOS and native API is used to develop iPad. ...
-3
votes
0answers
28 views

Looking for an adeguate web platform [on hold]

I am the CEO and co-founder of an online art and culture arena that hosts interactive sessions between artists and their fans, live-and on demand streamed events, private creativity spaces and more. ...
-3
votes
0answers
19 views

Jdbc connection pooling. I have no idea what was cooking to make my catlaina generate this error.? [on hold]

org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure Last ...
-4
votes
0answers
32 views

Need assistance desigining Algorithm Array in c#? [on hold]

In 2 dimensional array Suppose elements before: 1 2 3 4 5 6 7. 8 9 10 11 12 And after applying the code array should print 1 2 3 4 10 11 12 5 ...
14
votes
3answers
1k views

Is my usage of explicit casting operator reasonable or a bad hack?

I have a big object: class BigObject{ public int Id {get;set;} public string FieldA {get;set;} // ... public string FieldZ {get;set;} } and a specialized, DTO-like object: class ...
-3
votes
0answers
18 views

How much system resources the ServerAgent itself occupy? [on hold]

I am using the jmeter plugins jp@gc-PerfMon Metrics Colletor to get the performance of CPU,Memory,Disks I/O,Network I/O on the server.To collect those performance data,firstly ,I need copy the ...
1
vote
1answer
75 views

How should I distribute a login key?

Our application currently generates "invitation" emails containing an encrypted personId in the query string of an https link. When the recipient clicks the link, the application validates the ...
0
votes
1answer
68 views

What is a context object in relation to a web application?

I've seen the term "context" used in a few web application frameworks but I'm not sure what it's actually about. It seems pretty important and seems to be related to holding session information, but ...
0
votes
0answers
26 views

.NET Dynamic export/import and data integration and synchronization between systems

I have a task to design a system for electronic document exchange between various systems that our company is developing, such as ERP and POS or ERP and WMS system. System has to be flexible and ...
-3
votes
0answers
53 views

Where can I go to be exposed to more code and have the nuances explained to me? [on hold]

A professor in one of my computer sciences classes made an interesting point today. He argued that we all spend far too much time writing code and not nearly enough time reading code written by other ...
-4
votes
1answer
34 views

Android app over the internet

I want to develop two android applications as follow: 1- app1 sends data (web service call) to app2 over the internet. (using cloud hosting for SQL server or host it on hosting company). The ...
1
vote
2answers
83 views

Are there any good reasons to use ER Diagrams instead of UML Class Diagrams for data modeling? Is ERD the COBOL of data modeling?

Are there any good reasons to use ER Diagrams instead of UML Class Diagrams for data modeling, given the fact that class diagrams subsume ER diagrams? Or is it just for historical reasons because ...
0
votes
0answers
6 views

IP.Geo MaxMind install problems [migrated]

So I'm trying to install Geo.IP2 and I can't figure out how to install MaxMind, or Composer (I can't find "php.exe". Is there something wrong with my setup? Windows 8.1 64-bit Pro (btw, is this ...
3
votes
2answers
86 views

Should static analysis be integrated with code review?

I want to integrate various static analysis tools, and then add the results as comments on a file within code review tools, such as Stash or Review board. I am exploring the feasibility of writing ...
-1
votes
1answer
37 views

Real time message from mobile app to server to another user with php possible?

I have a small mobile game that connects to a web server. Users are given an interval, and they must press a button on their phone before that interval expires, periodically for a certain fixed ...
-5
votes
0answers
41 views

Can you please tell me ideas of a website or an app that you want to be invented? [on hold]

I am a programmer and I want to create a big project. I can code websites, desktop apps, and android. I just have no idea what I should program. Is there any thing that you want a website or app to ...
-2
votes
0answers
38 views

Quickest way to build reusable data access code during 5 hours exam [on hold]

Final exam is coming soon, we have to build two small business apps, Winforms and Webforms both uses same database and we are required to use pure Ado.net. So I thought of using an N tier architecture ...
-1
votes
0answers
21 views

Using Command Line Arguments to Choose a Datatype? [migrated]

Basically, based on whether a user inputs a 0 or 1 as a command line argument, I want my data class to either have a vector or an array (static) as its data member. I don't believe you can add if ...
1
vote
0answers
25 views

Plotting electrical field lines on a 2d plane

How do you plot equipotential electrical field lines on a 2d plot in MATLAB. Would it be best to use either quiver or contourf? Some example points are: p1 = (1,1) with 1 coulomb charge. p2 = (2,2) ...
1
vote
2answers
42 views

How to properly apply a license

Take for example the GPL-3.0 license. Near the end it states: END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs ... So I though that the "correct" way is to use ...
0
votes
0answers
32 views

algorithm for group reassignment of points [on hold]

I have a list of clustered points but they are not in the cluster which has the center closest to them. The objective is to reassign them to minimize the total distance of each point to its cluster ...
0
votes
0answers
23 views

Development and testing PHP script that gets variables from external server

I have a web app that sends users to an offsite payment server to complete a transaction, and I'm working on the PHP page that users are returned to upon completion of the transaction. The script uses ...
-4
votes
1answer
48 views

What is the best dbms and datastructure for cladogram [on hold]

If we want to develop a cladogram, like a specie tree in biology, What is the most efficient datastructure in programming and what kind of database that most fit for this job? For the cladogram it ...
0
votes
2answers
121 views

Style question: To use overloaded version or not?

Let's say I had an operator() overload that made temp_.matrix[k][j] and temp_(k+1, j+1) equivalent. In my class functions (where matrix belongs), would it be better to have if (temp_.matrix[k][j] == ...
0
votes
1answer
75 views

Is the regex syntax in .net 3.5 the same as the regex syntax in the latest version of .net framework in c#?

Is the regex syntax in .net 3.5 the same as the regex syntax in the latest version of .net framework in c#?
-4
votes
0answers
15 views

Problem with thread about startup [migrated]

I searched for this topic and found this post here : How to start a Software Company but several times people refer to a web site called answers.onstartups.com which doesn't exist. Can someone point ...
3
votes
1answer
98 views

How well am I writing my tests?

I've been coding as a career for about 2 years now but am just now writing my first "real" tests for a non-trivial application. I've been trying to follow best practices I've picked up from the ...
-3
votes
0answers
20 views

should I load the jdbc driver in the static constructor?

Please consider this class: public class IO { static { // Class.forName("com.mysql.jdbc.Driver"); <--- here? } public static Connection getDbConn() throws Exception { ...

15 30 50 per page