3
votes
1answer
131 views

Redundancy caused by polymorphism

I have two chat rooms, one has administration behaviour, and one doesn't. I have factored out all of the common code into a base chat room, but the AdministerChatroom behaviour I have pulled out into ...
-2
votes
0answers
21 views

for any android based application what is a latest technoloy to be used? [on hold]

which is latest technology to be used for creating android based application for smart phone as well as web ? we have created android based application with HTML3, CSS 2 but giving problem with ...
0
votes
2answers
162 views

SOA, Java EE and data organization

At the company I work for, we're currently splitting up our monolith solution into a number of small services (SOA). The purpose of this is to make the developers working on each chunk of code ...
0
votes
1answer
76 views

Which of these two approaches (or which other approach) would be best for this data storage?

I have quite a dilemma at my hands here as to what storage method to use for my data of a certain type. In my application the user has a pet and he needs to feed it and stuff. My dilemma is about how ...
30
votes
16answers
2k views

How Much Logic in Getters

This question has been asked in different ways, but nothing that's actually what I want to know. Got me confused at work now. They tell me there should be as little logic as possible in getters and ...
1
vote
1answer
49 views

How does Elastic Search approach the problem of distributed membership and consensus?

I already understand that Elastic Search is supposed to be deployed in a distributed topology, in that you can have multiple nodes for a cluster of ES instances. I like the API, and it looks ...
-3
votes
0answers
15 views

Where can I find internships involving other sciences? [on hold]

I'm currently in school for Computer Science and I want to be involved with other sciences (Biology, Neuroscience, Mathematics, Physics, Astronomy) as much as possible. My 'dream job' would be to ...
0
votes
2answers
185 views

Neural network input preprocessing

It's clear that the effectiveness of a neural network depends strongly on the format you give it to work with. You want to preprocess it into the most convenient form you can algorithmically get to, ...
-2
votes
0answers
43 views

Lexx/Yacc issue [on hold]

I stuck into problem. Now i`m developing XML-files parser for my studies and i have got a little problem. I define lexems using Lex, and parse file using bison. My problem is that when Lex get ...
1
vote
1answer
77 views

Best approach for a server configuration data collection and reporting solution from a legacy script?

I have a project which involves collecting config data from windows servers in our (very large) server estate. My manager wants me to collect over 150 data items across all configuration areas ...
0
votes
1answer
26 views

Tweaking a ranking algorithm from a few variables

I'm going to have a mySQL table with elements in it and would like to rank them in the same manner than Reddit but not quite. I'd like to know how to add or remove importance to a variable in my ...
7
votes
3answers
321 views

What optimizations can be done for soft real-time code in C#?

I'm writing a soft real-time application in C#. Certain tasks, like responding to hardware requests coming in from a network, needs to be finished within a certain amount of milliseconds; however it ...
0
votes
1answer
251 views

How should dependencies be managed across a modular application?

Let's say that we have a structure like this: Application -- Modules --Module1 -- Controller -- PublicHelper --Module2 -- Controller ...
0
votes
2answers
207 views

Is hierarchical product backlog a good idea in TFS 2012-2013?

I'd like to validate I'm not in the wrong way. My team project is using Visual Studio Scrum 2.x. Since each area/product has a lot of kind of requirements (security, user interface, HTTP/REST ...
1
vote
1answer
37 views

Which approach would be better for persisting these overridable configuration keys and values? A simple key-value store, or a graph database?

I'm creating a system where there are config keys and values. So for example: config.key = 10 Is an example of a configuration key and a value. These keys can also have overrides based on ...
2
votes
1answer
30 views

I have an unordered list of rectangles and their neighbors on four sides with no origin. How can I efficiently convert this into a grid?

I am writing a GtkGrid-like container for my GUI library for Go, and I'm trying to write the actual layout part of the code. Basically, I have an unordered list of controls. Each control is a ...
0
votes
0answers
4 views

Displaying Fibonacci sequence [migrated]

wrote a program to calculate and display the first 20 fibonacci numbers, the sequence goes as follows: 1, 1, 2, 3, 5, 8, 13... (each number is the sum of the previous two numbers) The problem is ...
2
votes
3answers
97 views

Managing database schema for a C++ app

I have an open source project (Cockatrice) that uses mysql for the server component. I'm planning some changes to the schema, but right now the only management I have is a script that runs the proper ...
2
votes
2answers
867 views

Building a distributed system on Amazon Web Services

Would simply using AWS to build an application make this application a distributed system? For example if someone uses RDS for the database server, EC2 for the application itself and S3 for hosting ...
2
votes
2answers
354 views

Write data to SQL Server directly from BizTalk or use external service?

An external source will be sending us XML data that BizTalk will pick up and transform into an internal schema. We need this data to be loaded into a SQL Server database as we're going to expose some ...
1
vote
3answers
80 views

How to set more accurate “deadlines”? [duplicate]

Context: My work is to build financial reports using mostly Excel spreadsheets. This consists mostly of formulas and a good deal of VBA. Each person is built by a single person. We service many ...
151
votes
17answers
12k views

Is there a benefit in compiling your code as you go along?

I recently had a job interview in which they gave me an hour to write some real code. It wasn't a huge amount, probably less than 100 lines. After about 45 minutes, I compiled, ran it, and got it to ...
3
votes
2answers
290 views

Dalvik + Java licensing question

This is a licensing question about the Dalvik and J2SE core libraries. In particular the license governing java.util.concurrent.SynchronousQueue. The license header of the class in the JDK source ...
0
votes
0answers
42 views

What are “the latest Web technologies”? [on hold]

I was filling up an application for a job and this question came up: Do you have experience with the latest Web technologies? How should I answer? What do you think they are referring to? I'm ...
1
vote
1answer
40 views

Using Mockito.reset

I've just read a lot of arguments against using Mockito.reset and can't make much sense of it. Put differently, I agree in general, but there's always a case which looks like using reset is useful or ...
3
votes
2answers
217 views

Difference between a heap and a priority queue

I always thought that heaps and priority queues were synonyms - an abstract data structure that supports the insert, findMin and deleteMin operations. Some literature seems to agree with me - Chris ...
-2
votes
0answers
17 views

Graph using Matlab [on hold]

clear all clc c1=0.2; c2=0.4; x=-30:0.1:30; z=1000; E=(c1*besselj(0,1*x)*exp(i*5.8558*z))+(c2*besselj(0,2*x)*exp(i*5.8551*z)); plot(x,E) I have the above program, i want to simulate the below ...
0
votes
1answer
58 views

Efficiency of getters/setters with database performance

I'm currently in the process of refactoring a very old personal project of mine, which used procedural PHP-in-HTML code. I'm modernising it as a learning project, using OOP where beneficial. I ...
-3
votes
0answers
23 views

Approach to create a tool that generates CSV file from input XML and XSD [on hold]

I need to write a java tool that will allow to generate CSV file from XML ( and XSD) file. User will have to provide xpath for items he wants to extract from xml file. (He should be able to pass ...
3
votes
1answer
154 views

sanity checks: when do they become paranoid checks

I normally add lots of sanity check clauses in my code. In other words, lots of assertions where the code is instructed to "panic" (usually print as much information as possible when a certain ...
0
votes
0answers
41 views

Database conceptual Question [duplicate]

When querying in database through PHP, is it good to open mysql connection before every query and close it as the query completes? or should we open the mysql connection as soon as the first query ...
0
votes
3answers
80 views

Is it anti-pattern to mix unit test and web test?

It is a language agnostic question, e.g. I have a unit test like # Unit test User user = User.create('john'); assertEquals("User name is john", "john", user.getName()); # Web test start from here ...
2
votes
2answers
126 views

Giving apprentices appreciation of SOLID principles [on hold]

Experienced developers typically have an appreciation of the SOLID (or other) principles - why we have them, how they help, ways of adhering to them etc. This may be as a result of having written poor ...
0
votes
1answer
227 views

CakePHP: Automation triggers after save - best done as component or behavior?

Folks, first time on CodeReview - just looking for some input in creating some automation in CakePHP, wondering if this is best used a component or a behavior. It's model driven but involves logic and ...
-3
votes
3answers
777 views

What are the rules for permissible names on google app engine? [on hold]

When I create a new application, and I am choosing a name, most common dictionary words appear to be unavailable, along with even some of the more esoteric ones including 'aaaaaa' (I've tried variable ...
2
votes
2answers
143 views

Structuring the XML Response

I'm designing an XML response for a consuming application to take in, and I'm weighing two different designs. Currently I have a design as follows (where the Product element can repeat): ...
1
vote
1answer
104 views

Avoiding Double POST

We are implementing a RESTful webservice that will allow client applications to POST documents to it and it will store the document returning a unique identifier in the response. The clients will ...
1
vote
1answer
691 views

Design Pattern for Data Validation

What would be the best design pattern for this problem: I have an Object A. Object A can either be registered or deleted from the database depending on the user request. Data validation is performed ...
14
votes
3answers
2k views

“Ever change the value of 4?” - how did this come into Hayes-Thomas quiz?

In 1989 Felix Lee, John Hayes and Angela Thomas wrote a Hacker's test taking the form of a quiz with many insider jokes, as “Do you eat slime-molds?” I am considering the following series: 0015 Ever ...
-2
votes
0answers
41 views

developing a cryptographic algorithm [on hold]

Can we develop an encryption/decryption algorithm which changes the session key automatically for every wrong attempt of trying to hack it? I only found a workaround of the same but keen to find an ...
26
votes
5answers
2k views

Testing multi-threaded race conditions

Reading the comments to this answer, specifically: Just because you can't write a test doesn't mean it's not broken. Undefined behaviour which usually happens to work as expected (C and C++ are ...
-2
votes
0answers
18 views

How to create a Twitter or Facebook-style Thumbnail Selector using ASP.NET MVC [on hold]

I'm looking at implementing a Facebook-style thumbnail creator using ASP.Net MVC but haven't a clue where to start. The feature in question is most easily-recognised when you upload a new profile ...
1
vote
1answer
135 views

A Web Service to collect data from local servers every hour

I'm trying to find a way to collect data from different servers around the world. Here are the details: There is only one single PowerShell script on servers that encrypts data (simple csv file) and ...
0
votes
2answers
34 views

“Used with permission” reusable in a GPLv2 derivative work?

The LICENSE file of a GPLv2 application I am modifying contains a statement saying that certain resources used in the application were "used with permission" from 3rd parties - such as textual ...
0
votes
2answers
97 views

Checking a record is due based on the 'occuring' field

I have records that have dates against them and an occurring field that contains none,yearly and monthly id status note date last_updated occurring 1 open --- 01/01/2011 ...
2
votes
3answers
69 views

Is there a clever way to calculate a mode of an online series without storing the series?

My program's aim is to determine the correct time zone offset (GMT+k) as a series of numbers are fed to it. eg: -4 +11 1 -4 -4 So, here -4 (the mode of the series) is the correct value. But this ...
2
votes
2answers
113 views

What UML diagram should be used for modelling permissions/users/files in Linux?

If I am planning a structure for support testing in Linux, a structure that will contain packages, such files as shell and build scripts, app configurations, DBs, sources, tests and jars for to be ...
0
votes
1answer
42 views

Long running task initiated in the web site

The plan is to develop generic solution for long running task initiated in web site by users such as: 1. upload large file and do some custom processing and then insert in the database. 2. export ...
-1
votes
1answer
69 views

Pros and cons of using generic delegates as nested functions

I've written code like this before: private void Strings_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { var onAdd = new Action(() => { if(e.NewItems != ...
15
votes
5answers
787 views

What specifically does expressive power refer to?

Expressive Power is defined by Wikipedia as: .. the breadth of ideas that can be represented and communicated in that language. Does "ideas" refer to the things (operations, structures, ...

15 30 50 per page