-4
votes
0answers
51 views

What will be approach for below mentioned scenario in C#/Dot Net World [closed]

Scenario Mentioned: We are having central module/service, where each client sends requests to CM/CS and central module/service forwards the request to the appropriate window pricing services like ...
1
vote
1answer
45 views

Where should you validate the state of “other” aggregates?

Scenario: A customer places an order, then, after receiving the product, provides feedback on the order process. Assume the following aggregate roots: Customer Order Feedback Here are the ...
3
votes
6answers
251 views

How efficient is malloc and how do implementations differ?

If I use malloc, does malloc always use the same algorithm regardless of what it is allocating or does it look at the data and select an appriopriate algorithm? Can we make malloc faster or smarter ...
-1
votes
1answer
66 views

Are there methods for mapping out a program's flow? [on hold]

I am writing a modeling script that is composed of many functions, and I'm trying to keep a document going that looks something like this: build_model(data, outcome_variable) returns(model) ...
3
votes
1answer
40 views

Importing large data sets into a database over the web

I need to import 100,000 products from one database to another using the results from a RESTful API. But I can only do this overnight. So if I can't get the job done in one day, I need to spread it ...
1
vote
2answers
46 views

Iterate over Collection while removing elements from it

I am iterating over a collection and want to delete some entries of it. Example: For i = 0 To Node.Nodes.Count If i >= args.TotalNumberOfNodes Then Node.Nodes.RemoveAt(i) End If ...
-3
votes
0answers
27 views

Certificate Subject Name Filtering - Glassfish [on hold]

We have an issue with our glassfish server which should only be trusting certificates with an appropriate Distinguished Name, Subject values - corresponding to certs added to the trust store. ...
2
votes
2answers
43 views

When should the naming of data structures be more abstract or literal?

Say that I create an ordered set structure, and I choose to implement it as a binary tree. I name my structure OrderedSet because I feel its underlying implementation isn’t necessarily important to ...
0
votes
0answers
55 views

What type/class of algorithms should be run on a gpu? [closed]

Is there a class of defined algorithms that run quicker on a gpu than a cpu? IE: divide and conquer, greedy, multi-threaded algorithms, etc. For algorithms that do not run faster on a gpu, but can ...
0
votes
1answer
47 views

Why is the “global” RegEx flag in JavaScript considered a property of regular expression itself?

In JavaScript, RegEx objects can be instantiated with flags such as g for global matching and i for case-insensitive. Intuitively, it makes sense for i to be a property of the constructed RegEx, ...
0
votes
3answers
230 views

What does Architecture of the project mean

I'm working on website and java application for my project and I'm writing report and there is question that say "What is the architecture of the project" I don't know what should I write because I ...
-3
votes
0answers
32 views

Connecting ASP.NET and Android applications to the same Database

I am starting to build a web application with ASP.NET which will help people who are looking for rides inside a city find drivers offering rides from defined start points and destinations. The web app ...
1
vote
1answer
22 views

Dynamic form builder with serialised sql storage

I have a requirement whereby my users will need to be able to build their own forms. Which they can specify different datatypes: Text DateTime Checkboxes All customisable mandatory/optional. I've ...
-3
votes
0answers
41 views

Assignment makes pointer from integer without a cast. C [closed]

I have this error: warning: assignment makes pointer from integer without a cast in line 6. Inicial is a string and x a character char top; void push (char* stack[], char x) { top=top+1; ...
4
votes
1answer
71 views

Patterns for maintaining consistency in a distributed, event sourced system?

I've been reading on event sourcing lately and really like the ideas behind it but am stuck with the following problem. Let's say you have N concurrent processes which receive commands (e.g. web ...
0
votes
2answers
111 views

Could Java XYZ implement (limited) Operator Overloading without breaking backwards compatibility?

Recently, I've been learning a bit more of C++ and the dangers and uses of operator overloading, and the readability boost it provides to arithmetic types (like Complex numbers). A while ago, I was ...
0
votes
1answer
63 views

Is an all-encompassing enumerator appropriate?

I will illustrate the problem with a specific case. Suppose we have a bit-flag style enumeration type defining different kinds of validations. It's tempting to define an enumerator like ...
4
votes
2answers
75 views

How to handle a one-time startup SQL script

I'm trying to figure out the best way to tackle running a one-time SQL script when a service instance starts up. Here's the scenario: We run multiple Amazon instances of our service in parallel. ...
0
votes
1answer
48 views

Would you use a responsive framework in this scenario?

I'm working with a large enterprise application custom CMS. The content managers have some level of control of the HTML, but there are a number of elements that are created by the dev team for more ...
5
votes
1answer
86 views

Is it confusing to not store the version number of a project in the source code?

Currently to create releases for our project, we're using Travis CI to upload binaries whenever a tag is created. We're using semantic versioning, so our tags have the form ...
1
vote
3answers
230 views

How to store many global variables?

I have around 30 not-changing "objects" (the amount of them is final, no more can be added or removed). Each object has an id as well as some booleans describing what the object is and what it isn't. ...
0
votes
1answer
42 views

Most Pythonic way to remove first match of potential leading strings?

This is a bit difficult to describe, but I'll do my best. In Python, I can use string.startswith(tuple) to test for multiple matches. But startswith only returns a boolean answer, whether or not it ...
3
votes
1answer
87 views

Is there a good way to use the front controller pattern for command line applications?

I am a PHP developer and I used to build web applications with one PHP file per page for a very long time. This resulted in duplicated logic and messy code (even though I didn't know it at the time). ...
0
votes
0answers
17 views

Using @Hidden or passing through BeginForm?

I have a small question about the following answer from a stackoverflow question. There seem to be 2 ways to pass parameters through a @BeginForm() to a Controller. Using a Hidden field: ...
-1
votes
0answers
22 views

PropertyGrid color cell display [closed]

Is it possible to change the default way to display a color in a property? I want to use the color as a traffic light to display working conditions with three possible values: Red, Yellow and Green. ...
0
votes
1answer
75 views

Trying to find time complexity of modulus algorithm

I can't quite figure out the time complexity of this algorithm I've written for finding the modulo. I've added it here in psuedocode. Modulo(int x, int n) // x is the dividend, n is the divisor e ...
19
votes
3answers
1k views

Why is Optional.get() without calling isPresent() bad, but not iterator.next()?

When using the new Java8 streams api to find one specific element in a collection, I write code like this: String theFirstString = myCollection.stream() .findFirst() ...
0
votes
3answers
83 views

Cyclic dependency in this project design

I have 2 modules (containing multiple classes). Let's call them Module A and Module B. Module B has a dependency on Module A: Module B -> Module A. Now, I have created an utility class C, which A ...
-1
votes
1answer
89 views

How to use Try/catch and database transaction in PHP and laravel [on hold]

I'm planing to use Try/Catch and Database Transaction in Laravel5 and my own PHP project to validate any errors occurs then rollback avoiding lost my transaction or information during user do their ...
1
vote
1answer
17 views

Android: Design for fetching update/syncing from server

I'm building a meeting app where users can create, join (by invite), and edit events like meetings, outings etc. Think What's app chat groups. So I'm looking into designing how the android app would ...
2
votes
2answers
38 views

Rails' MVC vs Microsoft MVC - where to put logics?

Some time ago I switched from Microsoft ASP.NET 2.0 (WebForms, never knew Microsoft's MVC) to Ruby on Rails and learned it's MVC approach, after which some things in ASP.NET MVC seem to be weird. In ...
1
vote
1answer
56 views

Client wants browser's back button to work on a website doing AJAX calls

I'm currently working with a client's website in which we are using ajax calls to show the content of the pages, we are doing this in a single div and obviously you don't move from the index. My ...
5
votes
1answer
38 views

How do I scale up a bot/service?

I have this bot that I've created for Twitter. It's written in Python. It lives on my Raspberry Pi and I've set up a cronjob to run it every 60 seconds. Part 2 of the project is to build a web app ...
-1
votes
0answers
37 views

How to change div values without ID or class [migrated]

How do I change the value of DIV if it has no ID or class? here's a sample code: <div id=1> <div id=2> <div id=3> <div id=4> ...
-1
votes
1answer
24 views

RSS feed topic categorization

I'm trying to make my own news feed from CNN's RSS feed (among a dozen other news sources). However, I've come across a problem that is actually quite complex, at least that's what I think. One of ...
1
vote
2answers
35 views

Listing search/query results from 30+ web services efficiently and orderly

We have a system that currently has approx 25 customers (will never expand from this) that each have a public facing web service which allows each other to query each others internal application ...
2
votes
1answer
118 views

How experts program their databases?

Let's say I create my own website and design a discussion forum in that. Now, I have multiple types of users in my system, and millions of accounts per type of user. Since the website is very popular, ...
-2
votes
0answers
27 views

Linking a database to R to automatically develop graphics on the web [on hold]

I'm working on a project where I have created a Google form and automatically saving responses into a CSV file to easily attain with R-programming. I want to generate graphics based on the data I ...
2
votes
1answer
34 views

Configuration related defines in public header?

Suppose you're building some library, C or C++ doesn't really matter for this question, IMO. The features (or implementation thereof) depend on capabilities of the target system. A simple, probably ...
2
votes
0answers
60 views

How to combine template and inheritance

I have multiple factories, each is responsible for creating instances of an inheritance tree. For example (syntax or semantics maybe incorrect), struct InterfaceA {}; struct ImplA1 : InterfaceA {}; ...
0
votes
3answers
121 views

How to deal with customer specific code

I would like some input to the following problem. Our product consists of many separate "modules" which can depend on each other. To bundle them up to a final product we create another "module" to ...
2
votes
0answers
55 views

Do all transitive dependencies of GPL software have to be compatible with GPL?

Library A is licensed under GPLv3. I want to write a program that uses that library as a dependency (programming against interfaces and using classes in that library), so I have to put my own program ...
18
votes
6answers
2k views

Is it okay for interfaces to contain a method which returns the concrete type of the implementation in form of a constant?

I very often get myself in a situation where I need a different behavior of a component which depends on the concrete type of a different Interface. To illustrate my question, I have written a small ...
5
votes
3answers
136 views

Breaking large class into smaller classes when they need a common state?

I am writing a parser for a fairly complicated language in C++. The Parser class is given a list of tokens and it builds the AST. Though only a part of the parser is completed, the Parser.cpp file is ...
0
votes
0answers
35 views

Lost in Presenter and other design pattern

I have an entity called Contact , that defines relationships with other entities and fields types (I use Eloquent). For different info non-fields, like getFullName, I use a Presenters like this: new ...
-3
votes
0answers
26 views

Where can I find bigger Android Icons (>48dp)? [closed]

I'm making a layout that has 6 icons in a grid layout, 2 across, 3 high, but the icons in the material design page by Google are a maximum of 48dp which is about 50-66% too small and makes them look ...
5
votes
4answers
190 views

Does anyone have a good DI registration pattern?

I've done this so many times but I never end up liking how my code turns out. I'm asking if anyone else has the same problems and can offer solutions or conventions that they've used to make cleaner ...
-3
votes
0answers
20 views

How can add dual license one for non-commercial and one for commercial purpose?

How can I add dual license to an open source project of mine. What i want is a like its free for any non commercial or educational purpose but i want to charge for commercial usage. Any link to the ...
-2
votes
0answers
19 views

Why is the UL element not visible? What is wrong with my code? [closed]

Below is the code <style> ul {list-style-type:none; background-color:#000; } li {float:left;} li a {background-color:green; color:white; padding:15px; ...
-4
votes
0answers
70 views

Frustrated JavaScript Student [closed]

I am learning JavaScript for the first time and the deeper I get into the lessons the more I am finding myself sitting, thinking, and trying for hours to get a peace of code right. Today I am trying ...

15 30 50 per page