0
votes
0answers
8 views

Project Organization in C++

Even though I have a decent bit of professional experience with object oriented programming in Java and a basic familiarity with C, I've run into a bit of a mental block with C++ that I was hoping ...
-1
votes
0answers
6 views

spring framework or initializing one class instance in another class

If have only two or three classes, what is the better way to go with the spring or initializing one class instance in another class. and why...?
0
votes
0answers
8 views

How does TranslateMessage help main window of launched process come to foreground?

This question on StackOverflow presents a minimal Win32 program written in C which launches some processes (Notepad and Calc) using CreateProcess. The OP's issue is that the windows of these ...
1
vote
1answer
20 views

Do I lose the copyleft protections of GPLv3 when I publish my code on PyPI?

I created a Python package and licensed it under GPLv3. When I created an account on PyPI, I had to agree to the following: The PSF is free to use or disseminate any content that I upload on an ...
-3
votes
0answers
12 views

How to implement EPPlus.dll in C# using DateTime datatype?

Excel-C#-SQL Server datatype issue with DateTime for EPPlus.dll Library I am using this library: https://epplus.codeplex.com/ //Create type table according to database columns private DataTable ...
0
votes
0answers
8 views

C++ Snake Game Fruit: Change Coordinates or Spawn New Object?

I've decided to lean SDL and make a Snake game. I have gotten to coding the spawning of a fruit, which the snake eats to get longer. Every time the snake eats the fruit, the fruit needs to change to a ...
0
votes
1answer
24 views

Is it better to expose or hide dependency in OOP?

Let's say I have an object A, which is too big(having too many methods and variables). So, I break it down to smaller objects. After that, I have Object A, B, and C. Obviously, Object A is from Class ...
-1
votes
0answers
18 views

Implementation of qsort

I have been looking for implementation for qsort but using google I find implementation for something like this void qsort(int[] arr, int left, int right); What I want is implementation for ...
0
votes
0answers
8 views

high-dimensional index structures

I'm looking for information on searching (filtering) high-dimensional data. I'm not interested in nearest-neighbour search or clustering, but rather filtering/sorting by subset of dimensions - like in ...
0
votes
0answers
11 views

Website redirect in cache to old website

So I've developed a website for a client, however he used to use this url with a re-direct to 'another' site of his. I had the re-direct cancelled, but whoever visited their old website before, still ...
0
votes
0answers
8 views

Project directory structure (javascript)

Over my years of practice and through most of the reading I've done, the oft recommended directory structure for a web app project has been closely tied to the MVC structure: tests/ src/ styles/ ...
-3
votes
0answers
26 views

How to fix text down much rows

hi i'm building a forum system. and if try to send a post with down rows it sees like == hello, my name is stav == and want it sees == hello, my name is stav preg: $subject = stripslashes($...
-3
votes
0answers
38 views

Android beginner level higher/lower game. -stopped working [on hold]

I'm very new to android development (2 days to be specific). I've tried to write a game which sets a default number and a second number in every new turn. And it expects user to guess if the second ...
-1
votes
0answers
23 views

QT development on linux using eclipse?

In Linux, How can I create QT applications in Eclipse? I've seen some integration plugins in eclipse.org however it seems they are discontinued and not supported anymore. Since I'm going to develop a ...
-1
votes
0answers
12 views

Using forms in Libreoffice base to return results from a table

I have a form in libreoffice base with drop down options. I want to run a query to return results from an existing table where the option chosen on the form is part of the table record. I had this ...
1
vote
1answer
39 views

how to program a lookup table of input and output variables and

This is a small C++ application (and the table is not huge either) so if possible I would like to avoid include anything other than STL (and boost). So to the problem: I have a table of predefined ...
0
votes
0answers
13 views

Is it better in practice to pass data to a Fragment or make a Fragment retrieve it?

If we instantiate a Fragment in an Android application and the Fragment is supposed to display database-backed information, is it better in convention to retrieve information and pass it to a Fragment ...
-2
votes
1answer
52 views

How to detect someone tweets using twitter API?

I am learning API. I now want to write a program to send an email once some twitter users tweet. I have found there is an API call (user_timeline) which can get the tweets from an user. So my idea ...
0
votes
1answer
31 views

Use redundant data in database design when have multiple relation

In my web application users can submit their advertises and buy package for advertise (packages are used for priority of showing advertises) Database schema is like this: **Package: id, title, ...
-4
votes
0answers
33 views

how to create buttons in android by java ؟ [on hold]

1- when i write import android.widget... there is no Button 2- and when write all the line to import Button or something else the line deletes
0
votes
1answer
66 views

Are there any drawbacks to using two opposite listeners?

In OOP there is a common pattern of using listeners and events. Recently I've come upon a task where two opposite listeners were setup to accomplish needed logic: private ValueChanger ...
1
vote
2answers
57 views

Why include IDs of parent resources in REST endpoint?

Say I have a company directory application, so Companies have Employees. It's pretty clear to me why you would have the following GET endpoints: api/companies # Get all company records ...
3
votes
2answers
46 views

How to add users to a mapping table?

In the accepted answer to "Encrypting stored data for multiple unique users to access information", @lserni describes a mapping table for users. But among the operations for the table, they didn't ...
0
votes
0answers
20 views

What layer should contain interactions with external or remote resources which are not strictly data operations?

Assume an application with a layered architecture, i.e. presentation, business/domain/logic, data access: it makes sense to plug access to external APIs in at the data layer if what they do resembles ...
-4
votes
0answers
46 views

Best free alternative to Google Maps API [on hold]

As the title says I would like an alternative to Google MAPS API that does a similar role. It should be cross-plataform. It must allow to assign specific locations in the map, coordinates, such like ...
1
vote
2answers
154 views

When is code considered a domain specific language

Today, an interesting discussion with a colleague. We're going to create a wrapper for WCF's channels, that will handle the Close(), Abort() and Dispose() correctly. This wrapper is to be used instead....
0
votes
3answers
62 views

Choosing an epsilon when comparing floating point numbers across different systems

I am transcribing thousands of lines of computational code from MATLAB to C++. I don't fully understand the math myself, but I can run it with MATLAB, assume it's correct, and compare the results to ...
-1
votes
2answers
42 views

what is the utility to a REST API for SIP trunk's?

Why does Twilio offer: Trunking REST API docs - Provision, configure, and modify SIP Trunks and phone numbers with the REST API. What are the top usages for this API? I appreciate that the ...
-1
votes
1answer
199 views

Clean OOP-Design: How to implement single responsibility and no procedural programming

I am currently trying to refactor a piece of C# code that is somewhat procedurally written. I want to make the design clean, object oriented and using classes with single responsibilities. The code ...
1
vote
0answers
41 views

What would you call this design pattern? MVC or PAC

I have been reading and researching about MVC, HMVC, MVP, MVVM and PAC design patterns when I came accross this article by larry garfield > MVC vs. PAC My Implementation: Think of a modular app ...
-2
votes
0answers
21 views

Emitting events from PHP [on hold]

I have a website with that many Offices are connected using Browser as Client. Now I am looking for some kind of idea that if we receive a news for specific office, can we send a message to Client as ...
0
votes
1answer
20 views

Request Caching for Symfony 3 application with > 1 million combination of query parameters

We have a REST Webservice build with Symfony3 and PHP7. The application is served via Nginx and PHP-FPM. The Webservice returns a list of products. Products inside the list are filtered by attributes....
4
votes
3answers
75 views

Algorithm to satisfy given constraints - assigning values from a 2D array

So me and my friend came up with a rather interesting (maybe?) algorithm question but ironically, we are having a hard time solving it. The question goes like this: There is a sale of precious stones ...
2
votes
0answers
25 views

Implementing workflow to an enterprise application

We are a few developers develoing an enterprise project includes several modules and approximately 200 UI resources for our company. Project will be written/programmed in Asp.NET MVC, WCF services for ...
-2
votes
0answers
25 views

Synchronised HTTP proxy [on hold]

This is my first time that I write here, in this forum, and I wanted to to ask for some tips about a project that I am building. Basically it is a HTTP Proxy but it should synchronises the HTML ...
0
votes
0answers
11 views

Collaborative web development with Spring and AngularJS

We're a team of 2, me a backend developer and my friend, a front-end guy working on AngularJS. We're planning to build our new site with Spring backend (which I'll be working on). So far, I've only ...
0
votes
0answers
30 views

How to manage state in MVP pattern?

I am currently using MVP pattern to develop an android application. I have to implement pagination (i.e. on scrolling to the bottom of the RecyclerView I need to fetch new data). So what is the best ...
2
votes
0answers
59 views

How to keep IDs in sync when using Factory?

abstract class Product { public abstract Product createProduct(); ... } class OneProduct extends Product { ... static { ProductFactory.instance().registerProduct("ID1", new OneProduct(...
-3
votes
1answer
99 views

How do I remove all instances of a key from a JavaScript Object? [on hold]

I've got a Java Script object like this: let obj = { selected; true, level1: { level2: { selected: true } } level1: { selected: true, ...
0
votes
1answer
10 views

what is a better approach in replicating data from table to another? triggers or a third party ETL tool?

We have multiple tables which we need to retrieve data from and dump to one centralized table. Currently what we are doing is running an ETL job made from Pentaho, retrieve the records from the source ...
-3
votes
1answer
35 views

unable to find the text file to read in java eclipse [on hold]

import java.io.*; import java.util.Scanner; public class FileQuestion { private static Scanner kb=new Scanner ("System.in"); public static void main(String[] args) throws FileNotFoundException { ...
0
votes
1answer
33 views

Is PCRE execution time primitive recursive or recursive?

In other words, is it possible to create a PCRE "regular" expression which takes Ackermann(m,m) time for an m length string?
1
vote
1answer
40 views

Specialized API endpoints or multiple calls to generic resources?

This problem came up while designing the API for a SPA web application, which communicates with the server via AJAX. On one page the user, who is creating a list of people to invite to an event, has ...
2
votes
4answers
86 views

Best practice for RESTful API calls with variations

How do I name API endpoints that serve the same entity in different ways and still adhere to the RESTful API guidelines? Let's consider I'd like to get a customer with ALL his details. I just ...
0
votes
0answers
18 views

Automating the deployment of a web application to a shared host

I was not really sure in which SO community I should ask this question, so I am asking it here. I have a basic Angular web application, and I am ready to deploy. The app has no backend to deploy (I ...
-1
votes
1answer
52 views

turn integers from row to column .txt [on hold]

I have a huge .txt file with 5 million integers in it. Iwant though to change the integers from meing in many rows to be in all 5 millions in 1 column. I don't have programming experience but have ...
0
votes
1answer
36 views

Memory allocation while calling a sequence of functions in Java

A method getReminder takes two integers and returns r = (a^5)%m. This method relies in two BigInteger numbers BigInteger.valueOf(a).pow(5) and BigInteger.valueOf(m), but BigInteger was never declared....
1
vote
2answers
99 views

Should I document overloaded operators in C#?

So I have been working on a C# Matrix library. I've been documenting it really good so far. The thing is I don't know if I should document my overloaded operators, I mean, it is kind of obvious, isn'...
2
votes
2answers
60 views

How to create an efficient implementation of a dictionary of synonyms?

How do I create a dictionary of synonyms that is efficient in terms of retrieving synonyms of a word? Basically, I want to use some sorts of data storage to store groups of words, and enable an end-...
2
votes
2answers
124 views

Why does the development team of intellij idea store its dependencies as jars (e.g. junit) inside their cvs?

The very popular intellij idea has currently saved a lot of dependencies as actual files in their git repository e.g.junit, which i don't understand. Build tools like maven provide excellent ...

15 30 50 per page