2
votes
2answers
31 views

Should I use indirect properties for the properties of properties?

For the convenience purpose, sometimes I use some indirect properties to set or get some other properties, I give an example class A { public string Text { set { b.Text = value; } get { return ...
0
votes
1answer
10 views

Server with different instances

I have one application developed in Spring Framework and this application deals with large amount of data.So it would be better if I will give a dedicated application or separate instance to each ...
0
votes
4answers
35 views

Testing generic errors

I've got a program that validates it's input, and then errors. So far for each kind of error I created a new derived class. But this was getting pretty unwieldy (the input is complex so there are ...
10
votes
2answers
365 views

Naming convention for iOS/OSX open-source projects

Not always but most of the time, you will find iOS or Mac OS X open-source projects with names starting with the initial letters of the author first and last names. If a project were to be authored by ...
-1
votes
0answers
9 views

What are concepts used in Man vs Machine?

I came across the following: http://www.loper-os.org/bad-at-entropy/manmach.html And then I glanced at the source code: http://www.loper-os.org/bad-at-entropy/manmach.js Does anyone know what ...
-1
votes
0answers
12 views

What is the point and usecases of asm.js? [duplicate]

ASM.js is a low-level subset of javascript that supports compilation from C/C++ and other languages. By itself it provide support for typed values and generates javascript. However, can it be used ...
0
votes
0answers
7 views

Can a linux distribution provide an API to a proprietary codec? If so under what conditions?

As an example lets take the MPEG2 codec, let us say I am building a Linux distribution which I intend to ship in two pieces. Piece 1: (free) Core libraries and applications Piece 2: (paid) ...
2
votes
3answers
67 views

3 tier architecture in .NET web applications

We know that nowadays the systems are designed as web applications. Every imaginable system is either converted or planned to be converted to a web app. In Microsoft .NET world the famous three tier ...
0
votes
0answers
10 views

Permutations of a limited number set

Im trying to find all permutations of a 6 number set given the following limitations. The set contain 6 numbers The sum of the set equals 111 A number is in the range 1 to 36 inclusive I need to ...
-2
votes
0answers
10 views

Best Resources To Improve Programming Skills

Where can I find the best minimum resources to improve/practice programming skills based on novice to challenging regardless of any language?
0
votes
1answer
1k views

Back button after doing posts on the same page

I have 3 pages to my site. The 1st page allows you to select a bunch of options. Those options get sent to the 2nd page to be displayed with some data about those options. From here I can click on a ...
0
votes
0answers
4 views

Help with enum in C [migrated]

I am trying to understand some C code in a legacy database. There are constructions there of the form: enum {a=0,b,c,d}; What does this achieve ? In the manuals, I only see constructions of the ...
0
votes
0answers
4 views

Hosting a shared livestream

The company that I'm currently employed at has turned to me to build them a web app that lets them share their YouTube project demos using a livestream service, so that they can all be watching the ...
1
vote
3answers
295 views

How to manage focus for a small set of simple widgets

I'm developing a set of simple widgets for a small (128x128) display. For example I'd like to have a main screen with an overlay menu which I can use to toggle visibilty of main screen elements. Each ...
25
votes
10answers
4k views

Bad sign if nobody can comprehend one's code?

If a coder writes code that nobody other than he can understand, and code reviews always end with the reviewer scratching his head or holding their head in their hands, is this a clear sign that the ...
0
votes
0answers
3 views

How can I try out different things on my computer and restore it to its previous condition easily&gracefully? [migrated]

I'm starting to attend Hackathons and I'm in great need of a way to either COMPLETELY restore my PC to a previous point in time, or deploy something that allows me to test out different things on my ...
0
votes
1answer
30 views

Where to put utility classes in php mvc?

I'm working on my first MVC website, where can I put utility classes like Security and Date (my native date) classes, are they model too? App | |--- Model |--- Controller |--- View
-3
votes
0answers
35 views

Prove that a website was offline in the past [on hold]

Is it possible to prove that a website was offline for some time in the past?
0
votes
1answer
50 views

How to name a function that makes sure an element exists and returns it?

function getOrInsertEmptyElemById(id){ var elem = $(id) || document.body.insert('<div id="'+id+'"></div>'); return elem; } I find myself using functions like the above quite ...
-1
votes
0answers
6 views

Is there a library or tutorial in creating a report designer [migrated]

My Company is asking me to create a report generator. Seems easy enough as of itself, but the catch is that it has to be dynamic. It has to be dynamic in such a way that we don't need to program ...
0
votes
0answers
5 views

Input to list and opperate on [migrated]

I've just started with Python (3.), and while it is fairly easy to pick up, I'm trying to learn how to work with lists. I've written a small program which asks for the amount of numbers to input, ...
-2
votes
0answers
35 views

C++ Objects created on heap

#include <iostream> using namespace std; class Test { public: Test(int i) {x=i;} int GetX() { return x;} private: int x; }; int main() { int p, counter = 1; do { ...
-1
votes
0answers
19 views

Computer Science Degree Graduation(about getting a job) [on hold]

I am about to graduate from university with a computer science degree. Am I able to get a real job in the field without actually graduating? Because my situation is that my school offers only 2 ...
-2
votes
0answers
21 views

What kind of PHP code is this? [on hold]

What kind of PHP is this? I have searched Google for hours looking for a clue to what type of php it is. Below is a sample snippet of the php code I need to find a tutorial for. I code in normal PHP ...
-2
votes
0answers
10 views

Tool to know how much load can a web server take ? [on hold]

I was looking for a tool or a program for ubuntu which would allow me to calculate how much load a particular web server can take concurrently. Any suggestions guys?
9
votes
3answers
330 views

Why aren't “fat binaries” more widely used for cross-platform applications?

As far as I know, so-called "fat binaries"--executable files that contain machine code for multiple systems--are only really used on Apple PCs, and even there it seems like they only used them because ...
-4
votes
0answers
28 views

How to test random numbers? [migrated]

Something is wrong with this PRNG, it uses a large (65536 bit) pool of bits from which randomness is extracted in sets of 256 bits, what seems to fail is the bit storage feature (ests,sts,lts,elts) ...
3
votes
2answers
239 views

implementing dynamic query handler on historical data

EDIT : Refined question to focus on the core issue Context: I have historical data about property (house) sales collected from various sources in a centralized/cloud data source (assume info ...
-4
votes
0answers
19 views

Converting a 1*1 sym into a double [on hold]

I was trying matlab to do the following where t was a variable of time x = (30/(pi*1i))*symsum((1/(1+(2*k)))exp(1i(1+(2*k))pit),k,0,Inf); But all I got was this -(sum(exp((pi*(k*2*i + i))/4)/(2*k + ...
0
votes
0answers
11 views

Prevent Timeout for large scripts without changing any System Settings

Current Option If I have a process that I know may take a while I have been chopping it up using ajax to do a part of the request then once the ajax is returned do the next part of the request. This ...
0
votes
0answers
19 views

Why was `Array.contains` renamed to `includes` if MooTools issue seems trivially resolvable?

I find it a bit hard to follow the mailing list discussion, so I'm asking here. The way I understand it, the original problem with Array.contains was that MooTools was assigning it, and then ...
-5
votes
1answer
63 views

Why can't a remote software engineer be paid with the same amount of dollars as a regular one? [on hold]

I've been asking lots of companies to let me work remotely from my country as a software engineer. I have experience in my field and I used to work abroad with companies which used to pay me a good ...
-2
votes
0answers
11 views

Use R to calculate binomial distribution and hypergeometric distribution [on hold]

Conduct a study to determine how well the binomial distribution approximates the hypergeometric distribution. Consider a bag with n balls, 25% of which are red. A sample of size (0.10)n is taken. Let ...
-3
votes
0answers
13 views

Help converting python::bitstream usage to PHP equivalent [on hold]

I need to read some data coming in from a client via a SOCKET using PHP. I found an example in python but I am not a python programmer. Here is the full python example code I am trying to covert. Note ...
0
votes
0answers
14 views

Can an http service queue up work via a timer?

I'll preface this by saying that I'm not particularly familiar with writing http services. To keep things simple, I'll use the metaphor of creating a collages from images selected by the user. The ...
0
votes
1answer
10 views

Expectations on input / output of array dimensions and approaches to implement support for variable dimensions input arrays

Preamble As we are vectorising our colour API, we are changing the accepted input types for most of our functions. We would be keen on keeping backward compatibility with the existing code. Let's ...
0
votes
0answers
15 views

web requesting - time competition - javascript?

first of all, I would like you to excuse my english and description of the problem. I am not english native speaking, so I am trying my best.... Before you say, that is am abusing some server- I need ...
3
votes
1answer
261 views

Scheduling a few CPU-intensive tasks

I need to schedule a small number of CPU-intensive tasks to run every so often, reading from shared data and writing to dedicated buffers. I don't necessarily want to roll my own scheduling, but am ...
0
votes
0answers
9 views

Code review for microcontroller 8051 [migrated]

I'm working with microcontroller 8051. I'm trying to simulate serial comunication on RS232 port. To do that, I need to take a single bit by bit from a number (ASCII value of a char) and put it on the ...
1
vote
2answers
32 views

How to handle inmutable data on Databases

I'm working on a quotation software. It basically creates quotations for customers based on certains ProductModel that contains n Plan that contains n PriceRange Edit: Here's a ER diagram of the ...
42
votes
10answers
19k views

Is static universally “evil” for unit testing and if so why does resharper recommend it?

I have found that there are only 3 ways to unit test (mock/stub) dependencies that are static in C#.NET: Moles TypeMock JustMock Given that two of these are not free and one has not hit release ...
0
votes
1answer
307 views

MVC: How to Implement Linked Views?

I'm developing a java application to visualize time series. I need (at least) three linked views, meaning that interaction with one of them updates the others. The views are: A list represents the ...
1
vote
5answers
104 views

A separate endpoint specifically for sync in a REST api

I am working on a multi client/single server app. Communication between the two happens via RESTful API. There are several resources that need to stay in sync across all clients, including images ...
0
votes
2answers
41 views

Control CPU Clock Speed with Software

I am currently working on various performance analysis of algorithms. For this purpose I am for now using my MacbookPro. It completely fulfills my needs as the 4 cores (8 possible threads) also let me ...
3
votes
1answer
139 views

raw, weak_ptr, unique_ptr, shared_ptr etc… how to choose them wisely

There is a lot of pointers in C++ but to be honest in 5 years or so in c++ programmation (specifically with the Qt Framework) I only use the old raw pointer : SomeKindOfObject *someKindOfObject = ...
0
votes
1answer
22 views

What is the best way to expose services to mobile devices?

We are working on providing services to mobile devices(Android, iOS and Windows). These services mostly return data and nothing OS or any programming language specific. We are currently planning on ...
0
votes
1answer
387 views

Manage content for multiple websites and mobile apps

I need to manage content (pages, key/value list, assets and more) in one webbased system for multiple websites and mobile apps. My idea is to create a web api, secured with tokens for apps and sites ...
0
votes
0answers
8 views

How to use an Address Gazatteer in an application that contains addresses

Say I had access to the post office address file (http://en.wikipedia.org/wiki/Postcode_Address_File) and wanted to cleanse about one million addresses. I am trying to think of an "algorithm" to do ...
0
votes
1answer
49 views

Methods accounting for all input to method

This is more of a conceptual question. Let's say that you had the following enum public enum FooEnum { ALPHA, BETA, GAMMA, DELTA; } And let's say you have the following method: ...
-1
votes
0answers
51 views

What is difficult to write in SQL but easy in other programming languages? [on hold]

I know that SQL is a query language and not a programming language. Still SQL:2008 is Turing-complete 1 hence it should be possible to express everything you can write in other languages in SQL as ...

15 30 50 per page