1
vote
1answer
37 views

How to map references in different VB.Net solutions

I just come to a small company. There are more than 500 solutions in different VS.Net versions and even VB 6.0 projects. They share several dll. Is there a way to map relation between each program? ...
-2
votes
0answers
78 views

Is there any problem with dual screens of different sizes/quality/resolution? [on hold]

If you have to buy a second screen to make a dual screen setup, what problems you may get if you were only able to get a screen of slightly different settings ? And how best to avoid those problems, ...
-2
votes
1answer
35 views

Matching address and addreses [on hold]

Suppose, we have one list of user address, and second list of addreses used in transactions which can be repeated. These lists are sorted. Usual comparison (in this case for int, for simplicity) (good ...
0
votes
0answers
11 views

Default Application Compatibilty Manifest for new Visual-Studio projects? [migrated]

I'm currently fighting with some app compat settings, specifically a certain shim, and looking into the compatibilty section of the application manifest. Details aside, one thing that strikes me as ...
-1
votes
0answers
26 views

Xamarin Forms - How to integrate app compat material design with existing actionbar [on hold]

I have integrated the appcompat material design but I am unable to change the action bar background color, menu popup background. I have used the Customtheme which extends from ...
1
vote
2answers
59 views

Catching Exception and Recalling same function?

I have a function which sends data to a third-party's server using a library they've supplied. The function is very simple. It just takes a list of objects to send, loops through each item in the ...
0
votes
3answers
64 views

Preventing information leakage while returning an error message

Say my website contains 2 functions: Allow a user to change their own password Allow an administrator to change a user's password (the user must change again before they login) Now let's say that ...
10
votes
5answers
283 views

Is indiscriminately catching exceptions (Pokemon exception handling) ever acceptable? [duplicate]

Normally, I don't anticipate exceptions and if I get them, its something that I can't fix in my code - bad user input or connectivity issues with the database. But errors do occur so at the very ...
3
votes
2answers
76 views

Creating Instances from same SuperClass Object

I have 3 subclasses (LowState, MediumState, HighState) which derive from the same superclass (State). Within the superclass, State, I have declared several variables which need to be accessed and ...
0
votes
2answers
114 views

Is there a reason beyond Fibonacci why Planning Poker doesn't involve a 4?

During our sprint planning meetings, we use a planning poker deck to reach a consensus on estimates, with the cards indicating how many days we estimate to need. We then use these estimates combined ...
0
votes
2answers
102 views

Python build system

Currently our Python application is deployed like this: Development team work on issues, commit code and create a Pull request Pull request is integrated to Development branch QA and Operations team ...
4
votes
2answers
70 views

How to facilitate thread-safe access to large set of shared variables?

I have 2 sets--inputs and outputs--of 70 32-bit integer variables and 70 bools (140 vars altogether). These need to be accessed and modified from 3 threads. What is an appropriate design pattern to ...
2
votes
1answer
35 views

In SemVer 2.0.0, what kind of public API change category is the addition of a new exception?

I am working on an implementation for an existing public API. Now I needed to change the implementation to throw an exception for a failure condition about which previously the API consumer was not ...
0
votes
1answer
27 views

Value addresses of functions

I'm reading Yung-Hsiang Lu's book, Intermediate C Programming, and I'm working through the chapter on stack memory. When defining the value address he provides this code example: int f1(int k, int m) ...
-3
votes
0answers
28 views

How and where is Swift and Objective-C interoperability implemented?

The question seems very generic but it does have a good meaning. For some time, I'm trying to find out exactly how objective-C and Swift can work together. I have been using them both and it works ...
-2
votes
0answers
93 views

How to rate your programming skills [on hold]

I am an Electrical Electronic Engineering student and I started programming 2 years ago. I am about to graduate from University and I cant tell how skillful I am in programming. I have written a ...
11
votes
2answers
1k views

How to go about testing un-injectable code?

So I have the following piece of code in use all over my system. We're currently writing unit tests retrospectively (better late than never was my argument), but I don't see how this would be ...
-4
votes
0answers
50 views

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

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 ...
2
votes
6answers
226 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
65 views

Are there methods for mapping out a program's flow?

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) ...
2
votes
1answer
37 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
43 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
23 views

Certificate Subject Name Filtering - Glassfish

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
52 views

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

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
172 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 ...
-2
votes
0answers
17 views

Combining a web and mobile application best practices

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 ...
0
votes
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
39 views

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

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
66 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
107 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
71 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 ...
4
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
228 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
37 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 ...
2
votes
1answer
80 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
16 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
19 views

PropertyGrid color cell display [on hold]

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
72 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 ...
18
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
82 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 ...
0
votes
1answer
69 views

How to use Try/catch and database transaction in PHP and laravel

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
37 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 ...
-2
votes
0answers
30 views

Suggestions about simple app to teach in mini-class about Android [on hold]

I'm a Computer Science student and I'm learning Android programming for about three years. My University asked if I would like to start a mini-class about programming on Android, I would have 2 days ...

15 30 50 per page