0
votes
1answer
24 views

What effect does using multiple childViewControllers views inside a ContainerViewController have on memory?

I have three childViewController views inside my ContainerViewController and these three views are inside a horizontal scroll view. My intention is to build an app that has a custom camera on one ...
-4
votes
0answers
28 views

Selecting the main version of a linux library [closed]

I am looking to use cracklib library for testing password security in my C/C++ linux applications. But I cannot find the original author, nor the official code that hasn't been forked.
0
votes
0answers
5 views

Python Socket Scripting. What am i doing wrong? [migrated]

My socket program hangs at clientsocket, address) = serversocket.accept() and doesn't spit our an error or anything. I followed directions on https://docs.python.org/3/howto/sockets.html I've been ...
0
votes
0answers
8 views

Proper Architecture for DBContext and Migrations with Multiple Projects

I have multiple projects that will be using the same business objects (customer, order) but the projects operate in different databases within the organization and I would like to understand the ...
0
votes
0answers
15 views

Run WebAPI on Azures free web site

Just a quick question. I see that Azure have an offering where you can host 10 websites for free? Is it possible to use this to host some WebAPI projects instead of a conventional website? ...
-1
votes
0answers
118 views

A legal/Copyright Situation - Employer refuses to pay me fairly (perhaps at all), but expects me to hand over code I've been working on [closed]

This is my first question here, I hope I'm not doing something wrong! I'll start by saying, I'm a 21 year old university student studying a science (this will be interesting later - you'll see why!). ...
47
votes
4answers
4k views

What is the purpose of a Code Review

I am in the process of trying to sell my organisation on the value of code reviews. I have worked at several places where they were employed. I have seen them used to nitpick styling choices, and ...
4
votes
2answers
245 views

dealing with a very large state machine in a class

I am currently implementing a class for a network protocol. The protocol uses a quite complex and extensive finite state machine. A pair of an event plus a state is mapped to a function, which does ...
-3
votes
0answers
35 views

Dynamic programming algorithm for finding minimum spanning tree

I know cool greedy algorithm like brokuva, kruskal and prim's exists for finding minimum spanning tree but I am curious to know a dynamic programming algorithm for finding minimum spanning tree.I am ...
0
votes
0answers
23 views

Apache-2.0 CLA incompatible with outbound MIT/BSD/GPLv2 license? [closed]

A few open source projects currently collect Apache-2.0 Contributor License Agreements, but distribute the software under a license such as MIT, BSD, or GPLv2. According to the following chart (from ...
-3
votes
0answers
42 views

ISBN Code - What is the purpose of Publisher Code in an ISBN? [closed]

I want to understand the logic of how the Publisher Code range provided by ISBN Authority gets mapped to an ISBN. From the below links, http://xml.coverpages.org/costello-isbn-xsd.txt ...
0
votes
0answers
37 views

When to create a new MVC Controller for a model

The Project: I have several cases where I'm not sure whether or not I should be using a 'Separation of Concerns' approach or a simplistic one. They're all similar to the setup below. e.g. An Estimate ...
0
votes
1answer
134 views

Time Management System on Local PCs [closed]

I am looking to build a time management "app" that can be downloaded and used on an individual basis throughout my company. In theory, this app would be used to track time spent on several different ...
0
votes
2answers
121 views

Design RESTful API to update a resource that belong to another resource [on hold]

I'm developing an ASP.NET MVC Web Api with C#. I have the following two resources. Group: public class Group { public int GroupId { get; set; } public string GroupName { get; set; } ...
1
vote
3answers
207 views

How do you make sure a .net client application is not being hacked to bypass authorization claims?

We wrote a simple .NET (C#) desktop application in Wpf. We also used WIF (Windows Identity Framework) to get a list of claims for the authenticated user. Some examples are: CanOverrideSalesAmount ...
1
vote
0answers
63 views

How to limit users of a service to a specific program

I have built an android game - I would like to add a "high score" leaderboard to it, such that people can show off how high they managed to score. How should I design it so that people can't "hack" it ...
3
votes
3answers
147 views

Wrap all external calls with flag to fight against recursion and double-entry?

Producing predictable output for each possible input is the responsibility of each module. For example (in C#): class Logger { public ITextWriter Writer { get; set; } private uint counter; ...
-4
votes
1answer
81 views

Does the head of any linked list must contain any data [closed]

Is there any rule that says the head of any linked list should contain data. Is it because by doing it so we save a space for one node. Why for some implementation of head contains data and for other ...
1
vote
2answers
157 views

Is this a good Visual Studio solution structure for a domain driven design RESTful web service?

I am building a .NET 4.5 C# Web API RESTful solution and I would like someone to tell me if my project solution is correct and/or wise(-enough?) for a solution designed using Domain Driven Design, ...
3
votes
0answers
86 views

Can I use Agile even when the client doesn't want to participate? [duplicate]

Your client/user declares he has absolutely no intention of being available frequently throughout a project, just enough to say "I want the application to do this" and answer a few questions every ...
-2
votes
0answers
45 views

How to extract JSON schema, using Java, from data without using available libraries? [closed]

The problem in extracting schema from any given data is that they can have other JSON objects embedded in them which in turn have others. Also the types of the values in the name-value pair have to be ...
0
votes
0answers
99 views

How to code a function to be used with or without callback on Javascript? [migrated]

I'm wondering how (if possible) I can create the same function, with exactly the same functionality, but to be used with a callback or without it. Here is an example with the "wanted effect" that is ...
9
votes
7answers
1k views

Why did the creators of the Internet Protocol decide to use IP addresses to identify a particular computer? [closed]

Why did the creators of the Internet Protocol decide to use IP addresses to identify a particular computer? Why not just have a unique ID assigned to each computer upon manufacture, then use that ID ...
-2
votes
0answers
29 views

Building workspce using Ojdeploy on linux [closed]

I am having a java application created using Jdeveloper. I want to build the workspace on linux machine using ojdeploy instead of Jdeveloper IDE. But for that I need to add 3rd party jars like ...
-1
votes
1answer
87 views

Unevenly distributed random number generation [duplicate]

Let's say I have to generate random number from 1 to 100, however, the probability of each number is not 1/100, but a predefined probability. How to generate that number? I use Ruby/Python.
0
votes
2answers
130 views

How does the Common Language Runtime improve performance? [duplicate]

I read on the wikipedia article for Common Language Runtime that one of the benefits that the runtime provides is "Performance improvements". Executing managed code (Or bytecode) must surely always ...
-3
votes
0answers
40 views

Application program interface [closed]

We usually test the web API s manually using J meter. Is it possible to create a software that will automatically create test scripts for the tests, and perform the testing ? I want to use J meter in ...
-3
votes
0answers
91 views

The bad habits formed in the process of learning the C programming language [closed]

In the Cambridge University Computer Science curriculum booklet of 2012-13 under the module entitled 'Foundations of Computer Science' it states: The main aim of this course is to present the ...
-3
votes
0answers
39 views

Taking too long to return results MySQL [closed]

I am confused why do the server is taking too much time in execution of a following query: SELECT tbl1.Column1 FROM Table1 AS tbl1 INNER JOIN Table2 AS tbl2 ON tbl2.Column4 = tbl1.Column1 It took ...
-3
votes
0answers
16 views

Some problem about QT when using Qtablewidget [closed]

QApplication a(argc, argv); Qt_test w; QTableWidget * table = new QTableWidget(&w); table->setRowCount(1); table->setColumnCount(3); ...
4
votes
2answers
86 views

Correct terminology in type theory: types, type constructors, kinds/sorts and values

In an answer to a previous question, a small debate started about correct terminology for certain constructs. As I did not find a question (other than this or that, which is not quite the right thing) ...
1
vote
2answers
120 views

How to abide the “allocate in caller” rule when the size is computed in the callee?

Let's say we have an opaque type handle_t that is managed through a simple interface with functions such as: handle_t *handle_init(void); int handle_do(handle_t *); void handle_free(handle_t *); ...
7
votes
4answers
439 views

Is it ever OK for a conditional to have side effects?

I'm taking intermediate data structures course as a prereq for entry into the CS MS program at a University everyone in America has heard of. One line of code that was written in class caught my eye: ...
0
votes
0answers
13 views

On linux, how to get “incompatible” i386 f77 libraries to work with current Fortran compilers, like gfortran? [migrated]

I would like to run the elf32-i386 library libkernlib.a with a Fortran 77 program on my latest Ubuntu linux machine. From what I've read, gfortran is backwards compatible with Fortran 77, but I'm ...
-1
votes
2answers
118 views

What is meant by “code rot”? [duplicate]

Please say that 'code rots' if you don't clean it. What does that mean? Obviously code is text, not an organism that can change itself. So why does code 'rot' if you don't touch it? What makes it ...
0
votes
0answers
23 views

Dealing with proj files in multi-platform apps

So I've been doing some cross-platform mobile applications using cocos2d-x. Basically it uses common c++ code, that can easily be compiled to the popular mobile platforms with some small wrapper code ...
-2
votes
0answers
12 views

Struts action invoked without clicking the submit button on IE8 [closed]

I use Struts 1 and my application only supports IE browsers. The following straightforward code works fine on IE9 and above, i.e. when click on action1button, action1 is invoked; click on ...
-1
votes
0answers
14 views

A simple menu - hide and show on click [migrated]

I already posted this question over at stackoverflow, but they meant that this would be the better place to ask. So here i am :) I am new to Jquery and currently practicing. I wrote a little piece of ...
0
votes
0answers
80 views

History of protocols and formats with different implementations and negative impact we have today [closed]

I trying to find some historic evidence about protocols or formats that had different implementations where the lack of a good interoperability led to problems we still face today. Bugs or different ...
0
votes
0answers
19 views

Port forwarding and C++ Winsock Client-Server applications [migrated]

As the title says, I'm creating a TCP client and a server program in C++. My question is, when running the client and server on two separate machines that go through a different firewalled router over ...
-2
votes
0answers
39 views

What to change in Ruby on Rails? [closed]

In my last interview I was asked what would I change on Ruby on Rails to make it better. I use Ruby on Rails daily and I was not able to give an answer. So, my question is: 'What could be changed in ...
1
vote
1answer
174 views

Understanding C# Delegates Structure

I've been trying to understand C# delegates using Pro C# 5. In short, the author describes the motivation for delegates as a structured way of dealing with function pointers and callbacks or two-way ...
1
vote
0answers
88 views

Angularjs Business Logic mixing

Scenario Last night I asked this question on StackOverflow. Although now I have a solution and I can move forward with the development, it feels partially answered because I have more questions now ...
-3
votes
0answers
15 views

graphs with multiple series in javascript [closed]

I'm looking for a graphing tool that allows you to plot multiple series with 2 vertical axis, and with different graph types (at least that is how I would describe it in excel). I've never looked at ...
2
votes
3answers
233 views

Could the creation of many methods in Java affect performance? [closed]

I was told by a colleague that in Java, the performance may be worse if we create more methods, stacking many methods calling over them in JVM, specially in a Java EE environment. This seems to ...
1
vote
3answers
168 views

What should I expect from a developers guide? [closed]

I'm willing, with some friends, to make a developers guide for an open source point of sale written in Java. The thing is I have never written anyone and so I don't know exactly what to put in there ...
0
votes
1answer
35 views

How to format Android view IDs

I struggle with this every time I work on a project. I am not entirely sure what the standard conventions are for creating view ids. I usually use something like view_more_button but then if we ...
1
vote
1answer
56 views

.Net build and deploy solutions for desktop and Web applications [closed]

My employer is still in the dark ages when it comes to software development, test, build and deploy. Our development to deployment application lifecycle is: Once development/changes are done we ...
2
votes
2answers
102 views

What is the benefit of passing a delegate to the constructor instead of just having the client code create and pass the ParserSettings?

When answering a question on Stack Overflow, the library appeared to have a weird way to specify configuration, through an Action passed to the constructor: public Parser(Action<ParserSettings> ...
4
votes
3answers
93 views

Version control workflow for semi-bespoke software

I have a web app product (PHP, MySQL) for which I offer a bespoking service. That is, you can buy the main product, which is quite extensive, and then have it customised however you like. This might ...

15 30 50 per page