-2
votes
0answers
12 views

How do I send a message to an external PC behind a router?

How do I send a message to an external PC behind a router ? Say the external IP-address of the PC is 228.168.11.108 and the local IP-address is 192.168.0.110. As an outsider not on the local ...
1
vote
0answers
9 views

How can I get the transit time for packets for a jitter buffer?

I'm trying to wrap my head around the concept of a real jitter buffer. I'm basing the only knowledge that I have around this article: http://toncar.cz/Tutorials/VoIP/VoIP_Basics_Jitter.html This ...
1
vote
0answers
16 views

Improve bisection method or alternate algorithm for efficient search?

I need to find the font size of a text that fits in a box. Given my current font size, I can get the bounding rectangle of the text. If I set some arbitrary min and max font size, I suppose I can ...
5
votes
9answers
259 views

Is testable code better code?

I'm attempting to get into the habit of writing unit tests regularly with my code, but I've read that first it's important to write testable code. This question touches on SOLID principles of writing ...
0
votes
0answers
13 views

How to authenticate against an API?

In a enterprise distributed system, a user of a web portal can sign into one site, be redirected to a federation provider. Once they log in with, for example, a facebook account, that user is ...
0
votes
1answer
14 views

How to trace an image/char on mobile device using c# and/or xamarin

If I had an image outline (or font character outline), how would I go about calculating the accuracy of somebody tracing that image. I was thinking that I could get the RGB components of the person's ...
0
votes
0answers
21 views

Problem with Generating an Initial Population in F# for a GP Program

I'm new to F# as well as genetic programming, and relatively new to programming in general. I'm developing a genetic programming program. I'm currently trying to generate the initial population of ...
1
vote
2answers
117 views

When to use single-line if statements? [duplicate]

When reviewing code, I prefer to read if statements that explicitly demonstrate that a fork in code execution may occur: if ( isFoo(baz) ) { runBar(); } When scanning hundreds of lines of the ...
2
votes
1answer
25 views

Storing exception information as a member variable for query later, bad practice? [duplicate]

I looking at the best way to handle exceptions, the answer to this question may be to handle the exception in a different place or to not handle to exception at all but to control the flow of the ...
0
votes
1answer
49 views

How valuable is decoupling in proprietary software?

When developing with Symfony2 PHP framework I often see reccomendations to decouple code but most of the time that is accompanied by a 'if you want to release as a third party bundle'. Which begs the ...
0
votes
1answer
22 views

Using sourcetree/bitbucket how can I manage multiple projects using a common codebase?

I have made a few libraries that different projects use. When I make changes to projects, I sometimes make changes to the codebase, and I want to be able to manage this all through sourcetree. So, ...
-5
votes
0answers
36 views

What is the knowledge required for kernel/OS development? [on hold]

Background: I just started coding as a beginner with Python and I'm getting the hang of Git version control. I just want to know What knowledge one needs for development or branching off from a ...
0
votes
1answer
90 views

Java: using final keyword only on method parameters that expect immutable objects?

I came across the interesting topic about final method parameters and that they essentially don't provide much advantages. I wondered if it would be sensible to mark only those method parameters as ...
1
vote
0answers
40 views

Python Classes and Design Questions

What is the best way to design a class to see if an update occurs on a property? I have a whole bunch of classes, and current am going through a re-design of the python package I created. ...
2
votes
3answers
53 views

Recommended HTTP status code for “plan limit exceeded” response

I'm designing a REST API for a project where users are always on one of several "plans" - each plan defines some resource limits, such as the max number of users an account may have or the max number ...
1
vote
1answer
145 views

Inserting C++ code into C

What I need to do before inserting C++ code into C, and how to do it? Are there any examples to show me how this can be done. I have a good knowledge of C, but never mixed those two. Thanks for the ...
2
votes
2answers
35 views

How to create a 2D array at runtime in Ada?

In Ada programming, What is a best practice way to create a 2D array of a size that is specified by the user? I'm teaching myself Ada for work (after many years of C programming), and I'm having ...
1
vote
1answer
40 views

Android & OutOfMemoryError: Possible causes besides memory leak?

In my application I keep receiving crash reports where the root cause is an OutOfMemoryError. The app is quite image heavy (I use Picasso for all the image loading) and also has a WebView component ...
2
votes
2answers
74 views

Best way to synchronize data between two different databases

I have to implement data synchronization between two big databases which have completely different structures. Basically, I need to grap some data about products in different tables in the first ...
-5
votes
0answers
32 views

Unable to hit on java controller [on hold]

home.html <div class="container"> <form th:action="@{/login}" method="post" role="form"> <center><h1 class="text-muted">WELCOME TO ABERDEEN AMS ...
-4
votes
1answer
38 views

Understanding of Component Object Model [on hold]

How can i understand Component Object Model from basic with out any programming knowledge? I tried very much to understand COM through wikipedia. But all i have got is disappointment. I can't ...
-3
votes
0answers
42 views

is it an implementation issue or a bug? [on hold]

As much as I know compiler must give an error of incompatible types, as Object Class is parent of all classes, so the statement Parent c2 = new Object(); must be erroneous, but compiler didn't give ...
-2
votes
0answers
50 views

Right path when Starting with Clojure and target VM [on hold]

EDIT (title and body changed): I'm interested to start deepening my knowledge of Clojure, but since I'm (mainly) a .NET developer I thought that ClojureCLR should be my starting point. Is this ...
1
vote
0answers
35 views

Character or symbol for representing cast opperation [on hold]

I'm writing visual programming language (before you leap to judgement, check it out: thinkVPL.org) and I need a symbol to represent the type-cast operation (converting data from one type to another). ...
3
votes
0answers
61 views

Is there a language for defining restful web services? [on hold]

I'm implementing a restful service automation tool for client applications. Basically, the tool takes a config file that defines restful resources, and creates some DTOs and resource classes for ...
0
votes
0answers
41 views

Java calculator - binary calculations converted into hex/decimal ones and vice versa [on hold]

Over the couple of days i made a very simple calculator in java, which was basically just adding/substracting/etc. two numbers. The two values where stored in double variables, as well as the result. ...
1
vote
0answers
83 views

Java: how to extend a self referencing class?

This is the class/interface hierarchy I have: Node: Basic graph node TreeNode: Node of a tree graph ModifiableTreeNode: TreeNode plus extra add and remove capability to edit the graph. TreeNodeImpl: ...
0
votes
0answers
84 views

Is it possible to generate/predict a and b by c, with condition f(a,b) = c [on hold]

I'll try to explain my challenge at my best. In my app I have following dataset: a,b,c ... 1,1,200 1,2,200 1,3,200 1,4,200 1,5,200 1,6,200 1,7,200 1,8,200 ... 1,17,400 1,18,400 1,19,500 1,20,300 ... ...
0
votes
1answer
45 views

What to do about complex business logic based on many options

To preface, I think this problem would be easier to understand if I gave an example: How does a complex tax evaluation application manage multiple tax laws and personal situations? I inherited a web ...
-5
votes
0answers
13 views

Why does next(some_generator_func()) yield a different result from next(a_var), where a_var = some_generator_fun()? [migrated]

Let some_generator_func() be the function: def some_generator_fun(): yield 1 yield 2 Why is it that >>>>next(some_generator_func()) 1 ...
1
vote
0answers
76 views

Software Design, Generic Programming, Physical Devices, and Algorithms in C++ [on hold]

I often have data that in some contexts I want to handle uniformly, but in other contexts I wish to differentiate it. For example, I could have a vector that is series of angles or a series of ...
0
votes
0answers
42 views

Will this data mining approach work? Is it a good idea?

I need to extract fields like the document number, date, and invoice amount from a bunch of .csv files, which I believe are referred to as "unstructured text." I have some labeled input files and will ...
-4
votes
0answers
27 views

Best design for a SQL API - no antlr please [on hold]

As a programming exercise, I'd like to explore creating a simplified sql like api to query csv files. Parsing the files is no problem. My concern is with design. What's the best way to design the SQL ...
2
votes
0answers
139 views

How does one cycle back to previous options in a C# console application? [migrated]

To say I'm fresh off the boat would be an understatement. I think this solution is extremely simple for an experienced programmer, but I'm completely new to C# and coding in general, so I apologize if ...
5
votes
2answers
238 views

Is automatically generating passwords during registration a good idea?

I'm developing a registration system for a project I'm working on. Since users tend not to sign up if the process is too long, I've thought to require (at least initially) just their email, where I ...
0
votes
0answers
37 views

Swift Optional types

Just had a quick question regarding the Optional type using Swift that I was hoping I could get some insight on. I understand the structure to set up an Optional statement, but I was wondering how ...
-6
votes
0answers
29 views

Seeking a Recommendation on C++ Textbooks [on hold]

S.E advisers, I would like to learn the C++ programming language as I need that language for my upcoming research in the cryptography and theoretical computing. Sadly, this is my first time learning ...
1
vote
1answer
46 views

What should this interface contain?

I am creating a schema for Doctrine but first I'm creating interfaces, abstract classes (models) which will be extended by the entities. I have a PresentationInterface which contain getter and ...
-6
votes
0answers
56 views

I am new to programming. I just google lessons and learn. I need an advice as where do I start? [on hold]

I am so confused right now. I don't know where to start. I'd really appreciate your help and advice.I could really use some tips and useful websites that can help me with my studies. Hopefully I'll be ...
-6
votes
1answer
30 views

Power Shell command GET-CHILDITEM is not seting -errorVariable $ORIG_ERR when supplied [on hold]

New to Power Shell. I am trying to add in better error handling in my programs. I am using GET-CHILDITEMS to get the names of the files in a folder. Command below: $AGENT_FILES = GET-CHILDITEM ...
-4
votes
0answers
151 views

China Style - How to code faster? [on hold]

Background: I've joined a Mainland Chinese company where it suppose to be a relaxing environment not until the newly appointed TL that keep rushing us. He succeeded to create a very stressful ...
-6
votes
1answer
34 views

Power Shell Test-Path not givinging an error for non existing part of path [on hold]

New to using powershell. I am trying to use TEST-PATH to check for the existance of a path. The Path is UNC; i.e. \testapp02\e$\my_dir. here is my code line: $DEST_RENAMED_EXISTS[$LOOP1]=test-path ...
6
votes
2answers
128 views

Why create a Logger object instead of using static logging methods across an application?

Taking an example of a simple Ruby on Rails application. It creates a Logger object during application load process: # in environment.rb config.logger = Logger.new(<STDOUT | file | whatever>) ...
0
votes
2answers
39 views

Using GNU GPL with classpath exception licensed library in a GNU GPL licensed project

I am working on a project that uses ABCL. License of ABCL is GNU GPL with classpath exception, which means we can link this library with independent modules to produce an executable, regardless of the ...
-3
votes
0answers
40 views

How to deserialize multiple objects from file [on hold]

I have this much code with me. Deserialization works fine for one object but not for many. i even tried by checking while((i=fin.read())!=-1) but it's not working Please help me with it public class ...
-4
votes
0answers
53 views

how to open a 5.8GB CSV and create filters of the necessary data? [on hold]

I need help opening a file that size and managing the data. I tried to open the file but its a large file and it takes hours. Once i get it opened it doesnt allow me to filter the data.
6
votes
1answer
102 views

IoC/DI design for class library

I am refactoring and introducing unit tests in a large application. It's currently a collection of static classes with static methods that return data, like such: // in data access project public ...
4
votes
2answers
165 views

Is this too much work for a Gateway to do?

I'm writing a Gateway class that wraps access to a web service which provides information about a player's item inventory in a video game. This web service returns a variety of information, however I ...
-5
votes
0answers
55 views

What's the best way to evaluate a candidate for ASP.NET programmer position? [on hold]

Recently i came across this interview process where the interviewer at quite a big company in UAE instructed me to make a web application that gets the information from the database and simply display ...
2
votes
1answer
32 views

Status transitions with extra information in RESTful interfaces

How would you design a REST interface that triggers a status change of an object, but requires additional properties in that moment? For example, the deliverer of a package needs to change the status ...

15 30 50 per page