0
votes
1answer
128 views

Function pointers vs. Derived classes

So I have a Signal class and a client class which manages a list of Signal objects. The class provides a bunch of interfaces, one of them is an update()-function. The update()-code is completely ...
2
votes
2answers
101 views

How do you handle country specific behaviors?

I'm currently developping the website of my company, which is located in France. I always pay attention to giving explicit generic english names to my variables. For obvious reasons, and of course, ...
0
votes
0answers
24 views

Automated data processing in BPMN/BPEL?

In order to run complex simulations, I need to do preprocessing of data from various data sources. This is done by a bunch of Postgresql scripts. However, having only these is unsatisfactory, because ...
1
vote
3answers
78 views

Are debug-build-only UI controls a bad practice?

Often, to simplify testing, I add UI controls that are only visible and enabled in debug build only. Or prepopulate mandatory input fields in debug build. Is this a bad practice? Assuming the release ...
-3
votes
0answers
27 views

Real time change of data in ajax [on hold]

I am trying to get data from the server using ajax.I want a situation whereby if data is changed in the database it also changes in the browser without page refresh. I have the script below but it is ...
-6
votes
0answers
44 views

Changing a platform programming language [on hold]

Simply - If we have a programming language and its compiler, how to move it from platform like windows to mobile phone? For ex. Python to Windows Phone?
0
votes
1answer
30 views

How to manage image uploads?

Earlier, when images were to be added to staging/production, they were committed to the git repository and our deploy script used to take care of uploading the images to CDN (S3 in our case). But as ...
2
votes
1answer
170 views

When mapping from a database, do OOP objects (entities) need to store the database values in attributes?

When it comes to OOP where an external database is being read from and written to, is it necessary to have attributes/properties within the objects to store the data? Or is it enough to simply read ...
0
votes
1answer
42 views

Raspberry pi computer cluster question?

I am wanting to have/ or make a program that runs on a (raspberry pi)computer cluster with one pi executing only video content while the other only handles music, etc under a main program like an AI. ...
0
votes
1answer
57 views

Managing a project on github in different repos or one? [duplicate]

An app I am working on (iOS) is being distributed to different businesses and each business needs a few customizations to said app before it is distributed to users on the app store. Most files will ...
0
votes
0answers
41 views

Repositories, Gateways, Models and Architecture Questions

I am working with a Laravel project and I am looking for a way to solve the issue of bloated models and cross referencing between them. I had started extracting higher level methods to a repository ...
3
votes
1answer
34 views

Handling continuations within a priority queue

I am attempting to determine the best way to handle actions that must occur in passes. Many of these actions use objects that were created in a previous pass. The solution I have come up with is to ...
2
votes
1answer
49 views

How to write tests for browser automation script

I have a couple of scripts (two in Python, one in Java) that use Selenium to drive a browser and download files from a website. I need to do some major refactoring before I do a major expansion, so I ...
0
votes
1answer
91 views

stack based vs heap based overflow

Why is it more difficult to perform a heap based buffer overflow than a stack based? (regarding x86 architecture) I thought it could be the fact that heaps are allocating memory dynamically. But is ...
-5
votes
0answers
56 views

Looking out of the box on mine [on hold]

I apologize in advance if my post can sound like a lament but, I am a little bit desperate. Problem is with my objectively point of view. I have been learning programming for 1,5 year, 10-12 hours ...
0
votes
0answers
43 views

Using PHP to grab an excerpt of contents in a file?

I want to grab a couple of paragraphs of one of my blogs and then contain a link to see more of it on my homepage which will take the user to the page with the whole blog. The way I do it is tedious ...
-2
votes
0answers
70 views

Could DeepMind Beat Best Chess AI? [on hold]

There have been many chess engines fine-tuned over the past two decades, and today the top 5 chess engines are all at least 300 points above the best human ever. As I'm sure you all know, DeepMind ...
-6
votes
0answers
24 views

How can I render Grid vs List view with css only? [on hold]

Requirements: Render both as grid (aka. tiled) and list view, as shown in this screenshot / jsfiddle, with just css Both should come from basically the same set of html markup Be able to order data ...
0
votes
0answers
14 views

Bluetooth - acl links

I have an embedded project with no OS. Bare metal. While reading the different bluetooth specification (v4.2) volumes, I get that I have to implement l2cap framework for low energy communications, as ...
1
vote
1answer
40 views

Data Structure for Form or Survey

I am planning an app which allows users to complete surveys/forms. I'm having trouble planning the data schema for the forms. I really want to have a data structure which can be mostly automatically ...
0
votes
0answers
32 views

Visual Basic 2015 - Dynamic List of Controls

I'm working on an application that is supposed to take upwards of 30 parameters from the user; depending on which type of feature is used, this list of parameters will be different. For context, ...
0
votes
0answers
15 views

Extract the main entity from a body of text for text categorisation?

I'm trying to categorise products based on various fields of data. I've had some success just matching search terms in the product names, but this naive approach doesn't work when it comes to larger ...
-4
votes
0answers
56 views

Wondering what programming language this is? [on hold]

I am very curious as to what language uses this syntax. I just loaded a website and it took a while to load and while it was i seen this {{ gb.xp || xp }} or similar. I feel like i've used it ...
1
vote
1answer
39 views

Ring buffers for data with unknown maximum size

I see ring buffers are very useful with their speed and if you have a known maximum buffer length they make a lot of sense. Let's say in the scenario where you have streaming data, but the playing ...
0
votes
0answers
88 views

Interaction between code and user interface

I'm developing a desktop app that has many different algorithms implemented. Some algorithms require additional input from user, this info might not be known before algorithm has started. My ...
1
vote
1answer
96 views

What would I call this design pattern in which an overloaded function translates it's arguements type to call a main function?

So, I've found I've been using this design pattern fairly frequently, but I'm not sure what to call it if it has a proper name. Essentially there is one "Heavy lifter" function that does some intense ...
4
votes
1answer
124 views

Importing namespaces inside another namespace

I generally like to organize classes I make into modules by using namespaces, and I also don't go more than 2 namespaces deep but it's still painstakingly hard to fully qualify everything. I've ...
0
votes
0answers
10 views

Dynamics CRM deployment: manage solution components dependencies

We are trying to create Dynamics CRM solutions (Online version), following some of the guidelines from microsoft - ALM best practices. One of the recommendations is to create a core entities solution ...
-1
votes
0answers
43 views

Showing a “context”-like menu in a span

It is about the MELT monitor (an alpha-stage GPLv3 free software, see also here). FWIW, I am now (feb 09, 2016) at commit 63632a7cd81471... I only care about Linux & recent Firefox (e.g. 44) or ...
5
votes
2answers
142 views

REST API design for web pages with wizards

I have a web page with wizard format. The submission button to the API will be in the 4th step of wizard. However I want the data entered to be stored in database before moving to the next step in the ...
-5
votes
1answer
66 views

Is there something like a “cookie stack” [on hold]

I would like to store a collection of cookies in the browser. On each subsequent request, the browser should pop one of these cookies off the queue and send it to the server. This way, a different ...
-5
votes
0answers
25 views

currency format “DH” in vb.net [on hold]

I am trying to develop an application in VB.NET, I use text boxe to enter amounts of money I will like to know how to get this format "DH" using the function FORMAT () thanks for reading
-2
votes
0answers
28 views

Which one needs to upgrade first [on hold]

I have a situation, the question is which one to upgrade first Java or Tomcat. We are migrating tomcat 6 to 7 and Java 6 to Java8. Do we have any guidlines anywhere and which is the best way to ...
0
votes
1answer
58 views

UML specification, understanding code

I was reading the UML specification (http://www.omg.org/spec/UML/2.5/PDF) and I found here an there some "code" of this type: body: if alias->notEmpty() then alias else importedElement.name ...
1
vote
0answers
50 views

Is Shiro's use of Auth Exceptions an example of control flow? [duplicate]

In Java/OOP-land, it is a well established anti-pattern to use exceptions for control flow. Apache Shiro is one of the standard Java security frameworks. When using Shiro, especially when ...
0
votes
1answer
91 views

Algorithm to get all possible forms of a word with varying suffixes

I'm writing an application in javascript where given a word, I need to get all the possible versions of the word with the suffix being the difference between each form. For example: "sponsor" should ...
-3
votes
1answer
84 views

URL links in Javascript frameworks

I am trying to sell to my client a javascript framework to replace a server generated website, but am having a hard time selling it because of URLs. My client would like to be able to have copiable ...
0
votes
3answers
67 views

DDD: Saving changes from UI to domain object

In many cases, there are different kind of forms in an application's user interface, and these forms are use to collect all the data - that is needed to update (or create of course) domain object ...
-1
votes
0answers
45 views

What classes should I use for API -> logic -> API?

I need to fetch some information from an API, parse through it and push the relevant data to another API. How should I design this? One class handling everything? One class per API and one for the ...
-2
votes
0answers
27 views

Saving Passwords in iPhone device

In my application login user details (in one is user password) save in my iPhone devices. What way better to save user password in iPhone devices. I have what way use like NSUserDefault, Core ...
2
votes
1answer
36 views

Best practices for releasing patches that affect multiple development stories

My team uses a Kanban style approach to development where feature and bug fix stories filter through to Production as and when they are ready. We currently are using SVN as our VCS and take a feature ...
0
votes
2answers
155 views

How to reduce size of jar file?

I dont know how to reduce the size of jar file. When we normally code in Java Swing the jar file is created, is there any way to reduce the size of jar file? I can't remove the images and other stuff ...
-2
votes
0answers
28 views

Shadow Mapping Errors

I recently started to create a shadow mapping system in OpenTK. I ran into a problem: The depthtexture is always completly white -> no depth. Even if the color from the shader is changed (I know it ...
-3
votes
0answers
17 views

Emacs upgrade problem on Debian [migrated]

I am new to programming, Debian and emacs. I tried to install packages of smex on emacs and I downloaded it from smex@marmalade but when I do the install step, emacs told me there is no match for ...
-5
votes
1answer
85 views

what is the usage of binary tree in applications?

this question might be very general but after a lots of reading I still don't know the usage of binary tree in application or systems structure design. how this could help exactly. i know what is ...
0
votes
1answer
83 views

How to mock the private property of interface for UNIT testing [on hold]

//---Interface.... using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassLibrary1 { public interface IDummyInterface1 ...
-4
votes
0answers
31 views

Usage of (advance) data structures? [on hold]

We all are pretty much aware about Big Table is one of the data structure used by Google. There must be some other data structures used by industry leaders like Google, Microsoft, and Facebook. Can ...
-4
votes
0answers
30 views

Member function to compare calling object with parameter? [on hold]

I'm writing a class with temperature and I'm not sure how to write a member function that requires you to compare the calling object and the parameter. (Like if calling is lower than parameter output ...
-4
votes
0answers
21 views

Travis CI + GIT HUB + BEHAVE + PYTHON - What is the command to run behave scripts in .travis.yaml file. Please give me few examples [on hold]

I am using Behave automation tool with python and GitHUB and Travis. Could anyone please let me know how to run the behave scripts in .travis.yaml file? I tried many options for this specific setup ...
3
votes
4answers
171 views

Selecting a CPU or microcontroller needed for a given software application?

Say I had a software algorithm (for example, an FFT), and I need it to process (n) amounts of data in (t) milliseconds. This is a real-time task written in C. There are a lot of CPUs out there, and ...

15 30 50 per page