0
votes
0answers
41 views

Four Color Theorem

I have been trying to write a code that would use the four color theorem to color regions defined by an adjacency matrix. An adjacency matrix would look like: A B C D A 0 1 0 1 B 1 0 1 0 C ...
1
vote
2answers
23 views

Proper interface for calculator library?

As practice, I'm planning to implement a multivariable calculator library. The idea is that you can define a function, such as f(x, y) = sin(x)^2 + 3*y^3, and then you can evaluate it with specific ...
0
votes
1answer
37 views

Do I retain personal usage rights on my code if I use the framwork to quick-start a project at a company?

I have spent a year making a .NET MVC website (in my personal time). I have started a contract for a company 2 weeks ago and thought I'd be kind and used the framework/skeleton from my personal ...
3
votes
0answers
31 views

Is it possible to programmatically attach custom metadata to phone calls?

I'm trying to determine if it should be possible for a cell phone app to relay custom data along with a phone call. By "should be possible" I mean that I'm not trying to learn how to do it in ...
1
vote
0answers
51 views

What are the motivations behind making true and false overloadable operators?

I asked this question on Stack Overflow and it was met with negative reception. I figured that Stack Overflow wasn't the right place to ask this question, so I decided to post it here. Beside making ...
-1
votes
0answers
10 views

How to develop a server like SmartFox to hold unlimited clients

I want to learn how to make a server from scratch. A server like the SmartFoxServer for games I develop on Flash CS5.5. To give you guys an idea, I want to make a game where users have to sign-up ...
-3
votes
0answers
7 views

incorrect output for set input [migrated]

So I almost have this code correct but it's not giving me the correct output for some reason and I can't figure out why. This is what I have. That is what I have so far but I need the output to be ...
0
votes
0answers
5 views

Change Outlook Calendar reminder text via VBA [migrated]

I'm tracking my Time Clock punches in Outlook using using some code in VBA to create reminders on the Calendar. The 'sTimePunch' subroutine is linked to 4 buttons I created on my ribbon that each ...
-3
votes
1answer
13 views

How to make use of a foreign host's “Date” output in a program on my local computer

How can I SSH via python script into a linux box run a command (Date) and use the output in the local script?
0
votes
0answers
13 views

How to go from SQL to RDF with an ETL process

I have 2 databases, one is an SQL database, the other is a semantic database, i would like to trigger the update of the second database, when the first database is updated. This should trigger a ...
3
votes
1answer
68 views

Are Git branches, in fact, “homeomorphic endofunctors mapping submanifolds of a Hilbert space”?

As we all know: Git gets easier once you understand branches are homeomorphic endofunctors mapping submanifolds of a Hilbert space Which seems like jargon, but on the other hand, All told, ...
0
votes
1answer
12 views

Logging instance information in Exceptions

During development on a large existing codebase I've started to capture variable values in my Exception logging. For example: public int Foo(int a, int b) { int returnInt; try{ returnInt ...
3
votes
2answers
49 views

Is a bad practice create database structure on the runtime?

Im creating a crawler app that will always in the beggining, when the Class constructor, ensure that the basic database structure exists. Is this a bad practice? What is the advantage os creating the ...
0
votes
2answers
95 views

Organizing code in a 2 man team

I've been working with a buddy of mine on a school project. We forecast it'll take ~2 months, so it isn't a small scale project at all. Communication and splitting the work effectively has been a ...
0
votes
0answers
21 views

Using Singletons in JS with workers

I'm building a javascript application that does continuous drawing, but relies on asynchronous scripts in the background which also need to poll for events and write to "global variables". This got me ...
-3
votes
0answers
21 views

Regex for a string [on hold]

I have the below string: "\n - MyLibrary1 (= 0.10.0)\n - AFNetworking (= 1.1.0)\n - MyLibrary2 (= 3.0.0)\n - Objective-C-HMTL-Parser (= 0.0.1)\n\n" I want to create a JSON like this: { ...
-3
votes
0answers
15 views

Android App Development & Best Training Institutes For It [on hold]

I am an engineering graduate from E&TC Branch, interested in Software Development, specifically, in Android. I have the following questions: (1) What are the pre-requisites for Android ...
-3
votes
0answers
15 views

Build a map based navigator in iOS or android

I want to make a simple mobile app (either android or iOS platform, whichever offers best tools for my purpose) which is a simple map based navigator.The user will specify source and destination. ...
-3
votes
0answers
34 views

Output of a program [migrated]

{ int a; a=4; cout<<a++<<++a; } The output of the above C++ program is 56 but why it is not 46 As a++ first print the value then increment a.
0
votes
0answers
30 views

When Should We Use TFS to Build Rather than VS.NET

I've been reading about TFS Build and wondering if it is worth using in our company. We have 1-3 developers working on a given project. All our projects can compile very quickly from VS.NET on our ...
-1
votes
1answer
90 views

Static typing vs. dynamic typing [on hold]

I'm developing my own programming language in my spare time as a hobby. It's an interpreted language. Currently the syntax for variables is this: %<variable> = <value> Here are some ...
-1
votes
0answers
69 views

Client does not want 'Designed by link' on his website

I am a web developer, I am developing a website for a client. On the footer of the website I added the common 'designed by' link that leads to my Company Site. This seems to annoy my client who is ...
0
votes
0answers
7 views

Access public property of object on view

When we are working with some MVC FW on PHP, generally we have a view loading function like load(string viewName, optional array viewVariables). My doubt here is: if we are working with some object, ...
-6
votes
0answers
59 views

Finding the minimum and maximum value in C++ [on hold]

Well, I am a newbie at programming and I was trying to write the code in C++ to find the minimum and maximum values from a set of integers. Now this program takes integer numbers as inputs from the ...
0
votes
2answers
89 views

Using SVN with multiple developers but without creating branches

I'm a computer science TA working with some students in a senior capstone course (effectively, a consultant for a small team). I met with them to discuss how to use version control, and they're in an ...
0
votes
1answer
58 views

What are factors to take into consideration in choosing a programming language/paradigm for a rule-based natural-language translation program?

I have experience with object-oriented programming languages (C++ and Java), but I am wondering what kinds of programming languages — including OOP languages– or programming paradigms might be ...
0
votes
2answers
77 views

Finding metrics for development time in different languages

I'm trying to determine if a language I'm investigating (Groovy) is better for developing enterprise applications than our current language (Java). Specifically I'm trying to figure out if it will ...
1
vote
1answer
75 views

What should I do when I want to use a probably non-valid licensed OS project?

Please correct me if I'm wrong, but I recently found myself in a pretty confusing situation and now I am unsure how to continue. I found the jQuery.xmleditor plugin from the UNC libraries and thought ...
0
votes
0answers
9 views

Organize Web API Controllers by their associated Views, or by the logical type they operate against?

We're building a large Angular SPA that uses ASP.NET Web API on the backend. The application will have a large number of views (100-200). I'm debating whether to organize the Web API such that the ...
0
votes
0answers
30 views

Mixing newable and injectable in a Callable

I recently read http://misko.hevery.com/2008/09/30/to-new-or-not-to-new/ which discussed newable vs injectable objects. What would you do if you needed to make a Callable that talks to some service ...
0
votes
3answers
74 views

Security in an iOS game?

I'm part of a team building an iOS game which has multiplayer elements. A concern right now is how to make the game more secure, from user manipulation. I know there's a lot of multiplayer games out ...
1
vote
1answer
83 views

Having unwanted bits in version control history

Consider having a project which you would want to release as open-source. There are parts which you have removed, but still remain in version control history. License of those parts is not ...
-2
votes
1answer
71 views

Who is the copyright owner of a contribution (commit) to a GPL-licensed project?

Suppose, that Alice started a GPL-licensed project. Later, Bob married Alice, joined the project and made a 50% contribution to it. Then they broke up, Alice sued Bob and by court decision took his ...
-2
votes
0answers
29 views

Automatic download and print program [on hold]

I have basic understanding and ability to program with a number of languages, but mostly c and c++. I would like to create a program that automatically downloads the latest pdf file added to a ...
1
vote
0answers
64 views

Java Desktop Application Requirement - Is sockets the preferred choice ?

I'm currently working on a requirement for a desktop application - using Java If for some reason the GUI crashes, it shouldn't affect the background process. Once the GUI is restarted - the ...
20
votes
6answers
1k views

The importance of duplicate code removal [duplicate]

I tried to explain to a coworker the gravity of having duplicate code in a project, on this piece of code: + (void)createIapInParse:(SKPaymentTransaction *)transaction { Reachability *reach = ...
0
votes
0answers
15 views

Does phpDocumentor tags order matter?

When we document our class, method and/or function with phpDocumentor, is there any specific order I should follow according to the standards? I know it doesn't matter for output the document. Since ...
-3
votes
0answers
55 views

Good artices on programming conventions [on hold]

I'm young programmer (15 years) and I'm programming (mostly in JavaScript) for 4 years. I have good knowledge of the language, can create some algorithms,... But the thing is, everytime my older ...
2
votes
0answers
58 views

Java 8: Does it make sense to split up an existing multi-method interface into several single method interfaces just to take advantage of lambdas?

Say I have an existing callback interface that has multiple methods. To illustrate my point I use a callback the likes that you would see in code that performs some HTTP client operations: public ...
1
vote
2answers
93 views

BDD/TDD - exhaustively testing details which are low-level, but still behaviour

We're looking to concentrate more on testing behaviour (as opposed to every class/method individually) in all our automated tests, as espoused by various high-profile online discussions recently. I ...
-1
votes
1answer
75 views

What are guidelines for a Win/Mac/Linux C++ source tree? [on hold]

I'm learning C++ (C++11), specifically for cross platform game development using SDL. on Windows, I use Visual Studio 2012 (Considering buying '14' once it's out), on Mac OS X and iOS I'll be using ...
0
votes
0answers
72 views

how to use Sql query to search text in CSV file and avoid iteration

I have one A File and many input files ,All files have CSV format . I want to match text of one column of all input files with one of the column of A file . I have stored all column value of File A in ...
0
votes
0answers
76 views

How far to go when future proofing fluent-method-chained-DSL test code?

Is it worth implementing interfaces, or using the getThis() trick, or even static factory methods to future proof against the need to extend this DSL? The current design is a pair of thin ...
0
votes
0answers
30 views

Efficiently extracting data from pdf with a template system?

basically allow a user to label specific text in a pdf file. Use the label information to create a template, which a script uses to extract text from specific pdf. What would be a good pattern to use ...
0
votes
0answers
19 views

Implementing a universal timer for a game with multiple players in spring mvc

I am trying to create a simple online card game with multiple players. Basically, there's a dealer and multiple players. I have have already implemented most of the game and it's working fine. now I ...
-3
votes
0answers
13 views

How to show different forms according to different users in vb.nwt 2008 from sql server 2005 [on hold]

My problem is how to show different forms according to different users... I am working on vb.net2008 and sqlserver 2005, so my problem is that I am using two usertype in datatable which fields ...
3
votes
2answers
114 views

To subclass or to wrap for “default” implementation?

I'm creating a toolset in Java consisting of many Natural Language Processing (NLP) tools, such as Tokenizer, POS tagger, Lemmatizer, Sentence parsing, etc. I want to put all good and publicly ...
-1
votes
0answers
47 views

Finding all the combinations of a word [duplicate]

Is there any algorithm that can find every combination of the letters in a word? For example, say I have the word air. I know from math that there are 3! different combinations. I want the algorithm ...
-2
votes
0answers
55 views

Adding if else in better way [on hold]

I have one old foundation for server connetcion class in my application. Now I got one new requirement to check if server name contains ### then change calling mechanism by adding parameters to it. ...
2
votes
0answers
68 views

Dealing with browser cache in single-page apps

I'm trying to figure out how to properly handle the web browser cache for single page apps. I have a fairly typical design: several HTML, JS and CSS files implementing the SPA, and a bunch of JSON ...

15 30 50 per page