0
votes
0answers
4 views

Matlab, not enought input arguments

I have a matrix ab = [12 10] This my code, I want to make a pythagoras but it fail even to define the ab(1,1). function [x] = phyt(ab) x = ab(1,1) end It show error message like this : Error ...
0
votes
0answers
7 views

Web Services Android

Android Web Service 1.I want to write a program that data is stored on the server and other users can read the data. I have to write server database with php ,so that I save multiple fields or from ...
0
votes
0answers
23 views

Graduated with an EE degree, would love some advice from the programming crowd

I graduated in May with a BSEE. While completing my degree, I realized I found software applications much more interesting than the hardware counterpart. I decided after graduation that trying to ...
0
votes
0answers
9 views

Collision detection in JS html5 canvas

i'm trying to develop a game using HTML5 canvas with javascript and I am having problems detecting collisions without hard coding it using the (x,y) coordinates of the two objects. In my code based ...
1
vote
1answer
17 views

Keeping lists of Objects, some with, some without inheritance

Let's say I have two classes, Foo and ExtendedFoo where ExtendedFoo inherits from Foo. Foo has a method .getValue() which returns a number, ExtendedFoo also has .increaseValue() which adds to the ...
1
vote
0answers
18 views

Should i consider uncertain future requirement while development?

I have one text box across multiple pages which is used to enter multiple customerids(as comma separated) . But in current page due to some subsequent implementation difficulties we make it as ...
0
votes
0answers
4 views

Finding the sum of columns in a Two Dimensional Array with rows of different lengths

So i'm having a bit of trouble with my code in returning the sum of the columns in a two dimensional array with rows of different lengths. For example a 2X2 array works perfectly to calculate the sum ...
1
vote
0answers
28 views

what are the most important coding standards in c#

I am a college student creating a C# program for the 3rd year project. In my project coding standard is a main concern. But I do not have a better understanding about C# coding standards to follow ...
1
vote
1answer
16 views

Would Docker be the right answer for deployment on AWS?

I'm about to start a new large project (both frontend and backend software) with the standard dev -> staging -> production setup. I'm always having some trouble choosing the right setup when it comes ...
-1
votes
0answers
29 views

Should I write the Server side program while creating a website? [on hold]

I want to create a website. I know html5 and css. I am still learning JavaScript. I found that these are used for client side, and now I have found that there is also server side which also needs ...
1
vote
0answers
15 views

Software or method for tracing variable use in code with graphical documentation?

So I'm reverse engineering some contractor C++ code that was not documented. It was written by engineers/scientists, and I'm not a full time programmer myself either. I have already "started from ...
0
votes
0answers
11 views

I have data how do I choose which files go within my test, cross validation and training sets?

I have data stored in a file structure as replicated below. I am using the data for a text classification system for each general category, and within each category I have different sources for my ...
0
votes
1answer
23 views

What is calendar time and execution time in terms of reliability testing?

What is calendar time and execution time in terms of reliability testing? My book is talking about the Musa Okumoto model and says that it uses calendar time and execution time. However googling and ...
-2
votes
0answers
28 views

Where to create objects and how to make them communicate with each other

I'm pretty new to OOP and need some help. I read quite a lot tutorials and watched some youtube videos but most stuff is about a small problem and quite out of the context. My problem is the ...
1
vote
0answers
20 views

When to use def in Groovy?

I have been developing in Groovy for a little while now and I'm wondering how often I should be using the dynamic casting def? A co-worker of mine believes we should use it always as it helps Groovy ...
5
votes
1answer
60 views

named arguments replaces the builder pattern

When using a language that supports named and optional arguments, does the builder pattern no longer have a practical use? Builder: new Builder(requiredA, ...
4
votes
6answers
272 views

Structuring Procedural vs OO code

I have spent the vast majority of my programming career using Java and very OO based C++. I am really interested in learning to think more procedurally, so I have been starting to do some practice ...
0
votes
0answers
38 views

C#/.NET multithreaded application design

The application to be designed serves as a bridge between two different systems. One natively speaks TCP (RS232 actually, but there's a COM->ETH server in the line of communication) - the other one is ...
2
votes
1answer
35 views

Why go uses Marshal and Unmarshal for the json encode/decode functions?

Go uses Marshal and Unmarshal to encode/decode json. Any idea why encode/decode is not used? It seems more common to me.
-4
votes
0answers
52 views

What is polymorphism, explained simply? [duplicate]

I know this is a duplicate question and a little "soft" but I have not liked any of the other explanations out there and would like to hear a simple response that does not generalize so much as to be ...
2
votes
1answer
28 views

Partial or full changelog for release

When releasing a new version of a program is it better to include the full changelog since the beginning of the project or just the part since the last release? I know that the release notes would ...
3
votes
1answer
27 views

Should I omit database and server communication (after initial response)?

I have a project that I'm working on where a user uploads a big file which gets parsed by the backend, and then returns the data back in a friendlier format. Now I'm wondering whether I actually need ...
0
votes
0answers
11 views

terminology: subject matter of a system

When a system is implemented, specifically to aid/assist/or manipulate a singular entity, what would the correct terminology for the entity? My example of this is an automated-growing system ...
0
votes
0answers
22 views

How can attributes/annotations be illustrated on a UML class diagram?

Many programming languages offer a way to annotate types. For instance, in .NET this can be achieved by deriving a custom attribute class from System.Attribute and then annotating another type with ...
1
vote
2answers
103 views

Automatic builders/chain setters for Java?

Consider that code: FancyClass c = new FancyClass(); s.setParameter(value); s.setParameter2(value2); //a lot of parameters It is really naive, so we can use a builder pattern: FancyClass c = new ...
9
votes
3answers
866 views

How to monitor a long-running program programmatically

What I've currently got can be summed up with this pseudo code: public static void Main(string[] args) { var listOfObjects = Database.GetObjectsToUploadToOnlineService(); ...
0
votes
0answers
51 views

C# async method on Windows Phone 8.1 (Nokia Lumia 920)

I am trying to better understand Windows Phone 8.1 app development and thought it might be smart to start with a sensor application. So, using examples from around the web, I was able to figure out ...
0
votes
0answers
32 views

Unit testing : verifying calls : is it a good practice for non-logic code? [duplicate]

I'm currently working on a Java project where many of our services simply call adapters, with no particular business logic. In the most extreme cases, the code of the service is simply return ...
-2
votes
0answers
48 views

why a statement is non deterministic on windows? [on hold]

I execute just a simple statement and every time i get different values. I was expecting that if the statement is the same the execution time will be the same. What is the things which cause this ...
0
votes
2answers
121 views

Is there a approximate string comparison function which is odd like mathematical functions are odd?

I say odd like a mathematical function, a mathematical function is odd if f(-x) = -f(x) I understand that comparing two strings may seem to have little to do with this, because the arguments cannot ...
-2
votes
0answers
19 views

Saving output from loop matlab [on hold]

I am trying to save the result of this loop into a matrix with the standard technique where I name a matrix in the loop. But it doesn't seem to be working here. There seems to be a problem with ...
2
votes
1answer
104 views

Alternatives to #if when polymorphism doesn't seem possible

There are couple of places where #if seems to give you abilities that polymorphism doesn't: Conditionally specifying base class When a section contains code that is not recognised by a compiler on ...
0
votes
0answers
29 views

React and simple UI state

I'm starting to playing around with React and have a basic question regarding state. I understand that in React state should only contain data which may change and cannot be computed from elsewhere, ...
-2
votes
0answers
11 views

my Vimrc disabled the copy/paste action using mouse right click [migrated]

Am using an open source .vimrc file from https://github.com/amix/vimrc/blob/master/vimrcs/basic.vim, but it is screwing up my default mouse right click copy paste actions. Whenever I do a right click, ...
-1
votes
0answers
15 views

MSMQ Issue related to HQ database [on hold]

I am newbie with the clustered HQ we are using now. I am a support in a retail store. We are encountering transaction datas not uploaded in HQ database. We isolated the issues and probably determined ...
0
votes
0answers
7 views

NodeJS Tool to control request / response flux

I m actually facing a problem with my NodeJS api with a "Cant send headers after they are sent", in a special case. To bypass this and to check a bit deeper inside nodejs, I wanted to know if there ...
0
votes
0answers
36 views

Compare names and the use of Levenshtein's algorithm

I need to cross names from two lists. What is the best away to compare the names? As you may expect, in one list we can have the complete name, on the other just the first and last. Besides that, ...
-1
votes
0answers
15 views

Retransmission logic [on hold]

I've implemented a buffer for TCP retransmission but I can't seem to get on a solid logic for monitoring the sequence number and acknowledgment of the sent packet. Can someone help me make an ...
0
votes
3answers
132 views

Does it really need to convert decimal,string, etc to binary?

I'm very new to programming. Just read some articles about algorithm for converting a decimal or string to binary. But,according to what I know, computers hold these data in binary form. So why don't ...
-4
votes
0answers
140 views

60 questions to ask the next employer [on hold]

I have written down a mind map with approximately 60 questions I wish I would ask the next exployer. Most of these questions are yes/no. What mistakes can you identify in the current mindmap - in ...
-1
votes
0answers
20 views

Passing Textbox value to Crystal Report Parameter c#

Could someone please help with my problem. I already have the codes for this but I can't seem to combine the two. Legend: dt1 = Dataset; crpt = Crystal Report File This is my code for loading the ...
1
vote
0answers
57 views

Were Java and Flash necessary pre-cursors to JavaScript and HTML5? [on hold]

Java appeared in the Netscape browser in 1995, with Javascript and Flash very soon after (I think). Java and Flash allowed programmers to add rich interactions to otherwise static sites, which can now ...
-2
votes
1answer
46 views

how integer type can handle text stream (getchar()) in C? [on hold]

While going through C programming by Ritchie and kernighan, I came across the following code. #include<stdio.h> int main() { int t; t = getchar(); while ((t=getchar()) != EOF) { ...
-1
votes
0answers
37 views

Using WiFi USB dongles to send non-WiFi data wirelessley in Java [on hold]

I'm currently trying to figure out what a good solution to make a peer to peer network. I need to stay away from existing peer to peer technologies such as ad hoc and develop my own. The equipment I ...
-2
votes
2answers
90 views

Is this a good game plan to become a fluent Java developer? [on hold]

I am an efficient person, and I am trying to find the best method of becoming a great Java developer. Here's what I'm thinking: First, learn syntax and Object Oriented concepts. Practice it, and ...
-2
votes
0answers
12 views

Reduction on array in FORTRAN [migrated]

I'm trying to parallelize a module in my FORTRAN code using OpenMP and I'm running into some issues with threads overwriting updated values in the array. Obviously my first instinct was to do a ...
1
vote
1answer
63 views

How to count sort comparison

When it is said that this sort has M number of comparisons what does it mean? As an example: procedure bubbleSort( A : list of sortable items ) n = length(A) repeat swapped = false ...
0
votes
2answers
82 views

Can someone else copyright my wordpress plugin if I don't own any copyright for it?

Assuming I have a plugin hosted on wordpress.org, can someone else just take my plugin and copyright it? Can they take the name of my plugin and copyright or trademark it (assuming I do not have it ...
0
votes
2answers
52 views

Average number of comparison for sort algorithms

I need to write different sort algorithms such as bubbleSort insertionSort selectionSort quickSort mergeSort And measure how many average comparison does each one for N number (averaging between ...
1
vote
0answers
52 views

Is the behaviour of floating-point arithmetic defined by the c++ standard?

I started writing this as a SO question but I think it's better suited here. While I'm happy for simply an answer I'm also fond of the "Teach a Man to Fish" phylosophy so I'm happy for people to point ...

15 30 50 per page