-1
votes
0answers
4 views

Reccursive function of the sequence $$U_n=\frac{1}{3} (\frac{A}{U^2_{n-1}} + \frac{1}{U_{n-2}})$$ [migrated]

#include<stdio.h> #include<conio.h> #include<math.h> void triple_root(float B[1000],int i,float A,float b,float c) { float x; x=0.333*((A/(b*b))+(1/c)); ...
-4
votes
0answers
25 views

Is Android SDK Platform folder on Windows and Linux the Same [on hold]

Is the files in Android SDK platform folder on Windows the same as the one in Linux? I just want be sure than to download a file I have already on my computer.
-6
votes
1answer
37 views

How do you pass or fail performance tests? [closed]

If you need the tests to be consistent, define some failure criteria and measure. If you need the tests to be at least X fast (where X is ideally some metric gathered by usability testing) then do ...
1
vote
2answers
46 views

Module based project vs Normal project [on hold]

I am writing code on top an established Enterprise application. I see that the application has 4 modules as shown below. -Srk -SrkEJB -SrkUtils -SrkWeb I have gone through the code and I see that ...
2
votes
1answer
43 views

What layer would an Audio Player Service fall under in a an MVP system?

I'm trying to completely overhaul an app I wrote a while back that plays audio, and I'm learning how the MVP pattern of organization works, but I'm not sure how/where an audio playback service would ...
-4
votes
1answer
31 views

What exactly a kernel means in Embree?

I am really confused what a kernel means in embree - https://embree.github.io/ I know kernel is part of an operating system which communicates with the cpu. Is it a low level assembly programming in ...
6
votes
3answers
186 views

Is it bad practice to make a subclass in name only for readability?

I have three sensors in a single package that all need to be calibrated which I will call sens1, sens2, and sens3. The calibration for sens1 and sens2 are identical, but the calibration for sens3 ...
0
votes
1answer
64 views

How does a browser remember the scroll state? [on hold]

For example you are visiting a page and scrolled down half way through and then you refresh the page the browser remembers your scroll state and loads the page at exactly the same spot where you were ...
-3
votes
1answer
56 views

What does “Place Warranty” mean? [closed]

I'm looking at TLDR Legal for some reference overviews and one of the conditions is Place Warranty. I understand it to mean the commonly seen AS IS clauses in most licenses. Why would one choose to ...
0
votes
0answers
97 views

How to deal with a never ending project? [closed]

I originally agreed to help a small team with an Android development project because of my background in mobile development. I helped them get started with a prototype for our customer. Our customer ...
2
votes
4answers
154 views

How wrong it is to have multiple associations between classes?

I'm modeling a college process, in which I have three classes: Student, Subject and Degree Degrees have their own subjects, students have a list of subjects they have passed, and also students should ...
0
votes
2answers
95 views

Is it a good idea to install more libraries than you need? [on hold]

I decided to try Anaconda, it seems that too many large companies are using it. I was amazed by the number of libraries included by default installing: python-2.7.9-2 ... installing: ...
3
votes
2answers
290 views

How do I override the Type of members in a base class from the derived class?

I have two classes that know each other in a many-to-many relationship. Now I want to have two additional classes that inherit from the existing classes. The association between the inherited classes ...
0
votes
2answers
36 views

URL routing for master detail pattern [on hold]

Are there any best practices for URL routing in a master detail application? Let's say the master is a list of fruits. And the master can be filtered based on user security (not all users have ...
1
vote
5answers
110 views

Unit-testing on higher levels of architecture

tl;dr: Libraries and classes I use as client are well tested. How I can use that knowledge to reduce amount of testing? Elaboration: Let's assume for theoretical purposes that we're implementing ...
-2
votes
0answers
30 views

Toogle Button is not Working properly on wrong password [closed]

I'm trying to Enable/Disable Bluetooth on Toggle Button and Also, there is a additional functionality and that is asking password on enable/disable. Toggle Button is taking Default state of Bluetooth ...
-3
votes
0answers
71 views

Is visual basic is strong enough to build complete system [closed]

I thinking to use visual basic in my senior project and this senior should be strong enough. Is visual basic will be good for this or i have to use other languages
1
vote
1answer
24 views

Using session managed application environment vs no protection

First of all sorry for the title, I didn't know how to explain it. So here comes the story; We are bunch of coders, front-end and back-end, and we are going to create this new system, based on ...
-2
votes
0answers
64 views

How to improve understanding of the code written by someone? [duplicate]

I'm now working on an iOS (Objective-C based) project which is already developed. Now i need to maintain the whole project. Since i know few basics of iOS programming, now its being difficult for me ...
0
votes
3answers
231 views

What arguments are there to use a coding style for each distinct language? [duplicate]

I recently had a discussion about our coding style for C# projects. Two things in particular were very hard to agree upon. Method Naming C# has the de-facto standard of naming (at least public, ...
6
votes
4answers
227 views

What makes functional programming languages declarative as opposed to Imperative?

On many articles, describing the benefits of functional programming, I have seen functional programming languages, such as Haskell, ML, Scala or Clojure, referred to as "declarative languages" ...
-1
votes
0answers
6 views

eclipse acting weird when creating methods [migrated]

I don't see what could be wrong here, I was working on a different method but had some problems so I tried to simplify it to check where could the mistake be but I ended going up into this very simple ...
-3
votes
1answer
45 views

Whats the best design to use for simple maths based problems like Towers of Honoi? [closed]

I want to solve an extended version of Honoi towers with the following set of rules: 1- The goal is moving all disks from tower 'A' to 'B' using 'C' as auxiliary 2- No larger disk can be put on ...
-3
votes
0answers
26 views

Programming with GAMS (tutorial) [closed]

I would like to ask if you know any good tutorial for learning GAMS programming language. I had a look on the official site, but I couldn't find something useful. So, I would be really grateful if ...
-1
votes
1answer
40 views

multiple IP addresses on single network adapter [closed]

I was asked to build a simulator that pretend to be 5000 UDP clients, each with a unique IP address. Can this simulator be a PC application?If it can, can it be build on Windows, or Linux. Or has to ...
-3
votes
0answers
27 views

How to Compile SDL project on Linux [closed]

How can I use either GCC or the Sublime IDE to compile my SDL based project on Linux? gcc program.cpp -o program -lSDL I have tried this and I just get errors that seem to be pointing to the idea ...
2
votes
1answer
120 views

Does the LGPL apply if I rewrite a portion of JasperReports in C++?

I would like to rewrite a portion of the JasperReports library in C++. The library will read from the same XML format used by JasperReports. If I integrate this C++ library to my proprietary ...
1
vote
3answers
75 views

Microservices and production uptime [on hold]

I have a question for people who implemented microservices in large enterprises. There are obviously huge amount of benefits to microservices (comparatively to monolith architecture). However, there ...
-1
votes
0answers
42 views

How to manage multiple versions of a project that each differ only slightly different. [duplicate]

I need multiple versions of the same project, each with some minor changes, such as a different set of GUI elements. Most of the time, I would like all of the changes I make to one project to apply ...
0
votes
1answer
37 views

PHP Multi-Page / Session Question

I created index.php that basically looks up all the individual php files (articles) in a few subfolders and prints them out. Since the quantity of articles is over 30 and growing, I implemented a ...
0
votes
1answer
87 views

Should a comparison method ever return the same type back as it's comparing?

First, this is homework, but no, I'm not asking for anyone to do any code for me. My course start date isn't for another month (it's online), so I can't ask for clarification. I thought I'd see if ...
-1
votes
1answer
56 views

What technical changes to Windows 10 will affect a desktop application publisher? [closed]

I hope Windows 10 will be bringing desktop applications back to center-stage, where they belong, but I am asking what technical changes to Windows 10 may impact desktop application developers, if any. ...
7
votes
3answers
140 views

Database Normalization vs dependencies

I am developing 3-4 interdependent programs. Call them foo bar baz and auth. I want them to be independent of each other. Imagine if I were to license out each program to other companies. Some ...
0
votes
1answer
53 views

What process(s) do you often go through when abandoning a team project?

This question is written after insight gained from my previous question here: What factors should influence how I determine when to abandon a small project with a friend?. This question is ideally ...
1
vote
2answers
75 views

Complex data structure in python: just dict, etc, or some classes?

Consider a web service API that returns a complex Json object. Using the stock Python tools for the job, this will read in from the web service as a dict which contains, in turn, a mixture of arrays, ...
-11
votes
0answers
56 views

Improve your Skills in Algoritm [closed]

If you gonna improve your skills in algoritm in relation to software programmering, is it recommended to review counterpart's source code than doing your own hobby project? What is your experience ...
0
votes
1answer
141 views

Memento pattern: saving memento [on hold]

There is one problem about this pattern that troubles me. In a situation when we have to save a state into a file, is it class Memento that should be responsible for handling this process? (for ...
0
votes
3answers
178 views

Is there a use for non-const reference parameters?

Given a function like: void do_stuff( Thing & thing ) { // at this point, I can inadvertently or purposefully change thing } Is there a reason to purposefully change thing? Changing thing ...
-7
votes
0answers
43 views

How to create a Date object in python? [closed]

I was asked, as an exercise, to build a class in python, named "Date". I have to build few functions according to the requirements. The first one is an "init" model that takes a day, month, year, ...
-4
votes
0answers
23 views

Recommending reading for writing a C++ webserver [closed]

I am a web developer that is about to graduate in computer science. I want to write a c++ webserver that uses web sockets. I am taking a network class in the fall, but unfortunately haven't taken it ...
0
votes
2answers
72 views

Should I set values using the return or by giving a reference?

Suppose I have a mouse position watcher, which should let the user extract the mouse position. Should the mouse position be set in the method and returned: Mouse_Position ...
-4
votes
0answers
44 views

what is necessary to develop complete system for my senior project [closed]

I am taking my senior project after three month it will be building system with professional GUI, free of error and maybe will be connected to internet with databases and reports with simple word ...
2
votes
2answers
68 views

Share some fields but others unique to owner of instance

I've been programming for many years and this is sort of a strange need and I've never seen anything like this but I have a game where there are abilities that you can do. There is an ability class ...
-4
votes
0answers
34 views

How to check if a date is within a range in SQL? [closed]

I would like to compare/check if a date is within a range of dates. Essentially, I would like the date formats to match as well. Say @date1 is 20150520 DECLARE @startdate DATE DECLARE @enddate DATE ...
0
votes
0answers
15 views

web app+databse+object store E2E testing

I wrote a thin layer that allows me to log every interaction between other programs and object store. It has simple logic to accept and serve only unbroken files(if checksums provided by user and ...
2
votes
2answers
247 views

Refactoring long methods with a lot of cyclomatic complexity

I'm attempting to refactor what is becoming a very large method -- currently 350 or so lines -- that contains a high degree of cyclomatic complexity. I understand and ascribe to the theories that ...
0
votes
0answers
30 views

Trouble with a heightmap adjusting algorithm [migrated]

I have a 2D grid of integers. The user can pick any location and increase or decrease its number by one. The algorithm should adjust all eight adjacent locations so there is no more than a difference ...
-5
votes
0answers
15 views

Print PHP 2D Array to English Summary Sentence w/ Oxford Comma & Duplicates Handled [closed]

I prepared PHP script to print items of 2d array containing item description and item quantity into a summary English sentence. I thought I would expose it here. If you see how I could improve it, ...
3
votes
1answer
253 views

In C++, why does the main function use 'char *argv[]'?

I was wondering why C++ uses the following function prototype for the main() function: int main(int argc, char *argv[]); instead of something like: int main(std::vector<std::string> argv); ...
-1
votes
0answers
17 views

Remove nodes with mouse click, networkX, python 2.7 [closed]

I have written a program in Python 2.7 with networkX which draws a tree for me with black and white nodes. Here is a minimal example: import networkx as nx import matplotlib.pyplot as plt import ...

15 30 50 per page