0
votes
1answer
18 views

Adding support for privileges to an ASP.NET MVC application already supporting roles based authorization

I currently have a system where there is a user table, a role table, and a user-roles association table, where one user can be associated to multiple roles (like Admin, BasicUser, etc.). I am able to ...
-4
votes
0answers
24 views

Error executing stored procedure query in JPA [on hold]

I'm getting a resultset error while trying to fetch data from a stored procedure. Here's the stored procedure: create procedure Proc_Member_Statement @Counter int,@TransDate datetime as declare @...
-2
votes
0answers
46 views

how to handle conflicts in git in text files?

We started getting a lot of conflicts lately almost exclusively caused by a single file where almost everyone adds a few lines with each commit. Every time, git detects that the same lines are ...
0
votes
0answers
25 views

Database Considerations (Loop vs comparison)

I am working on a project where I am provided a CSV file with around 60k records containing printer usage. The CSV file itself has no primary identifier per row (it's an export from another system). ...
0
votes
0answers
9 views

MVC Pattern in an SWT Eclipse Plugin

Does anybody have any examples or tips on implementing the MVC pattern in an Eclipse Plugin? The instantiation of the view is handled via the plugin.xml, so I do not see how the MVC can be ...
1
vote
1answer
25 views

Where to call OnPropertyChanged

With WPF and MVVM, properties of the ViewModel are bound to UI elements. When a property changes, its set accessor calls OnPropertyChanged which in turn raises the PropertyChanged event of the ...
4
votes
3answers
172 views

Which is the best design for callback implementation in C++?

I have a class "Parent". "Parent" class creates an object of class "Child" in my CPP module. The use-case is "Child" has to request for some information from "Parent". This can be done in several ways ...
0
votes
0answers
55 views

Why are there (c++) compilers that don't adhere to the standard?

This answer states: Should the compilers follow the the defined language standard? Some compilers explicitly have (and document) extensions to the languages they are implementing. GCC ...
0
votes
0answers
18 views

Is it a good idea to store long delimited strings in DOM?

Is it a good idea to keep long strings like base:Regular 1,optional:my_optional_plan,optional:optional_plan_2 in the DOM that could be used later when needed or should the data be brought only ...
0
votes
2answers
109 views

Should compilers follow the defined language standard?

Why do some compilers violate the defined language standard? I don't understand, in ISO/IEC 10206:1990 Extended Pascal standard on 6.8.3.2 Arithmetic operators section, Page 86. It says that, A ...
1
vote
1answer
68 views

Loading data from JSON file for one time

I have JSON file which has some hundereds of rows stored like below.. [ { "Id": "1", "Name": "A" }, { "Id": "1", "Name": "A" } ] I am trying to load this into collection of ...
-7
votes
0answers
35 views

why,where and when to use static variable and static method?

class Student8{ int rollno; String name; static String college ="ITS"; Student8(int r,String n){ rollno = r; name = n; } void display (){System....
-5
votes
1answer
35 views

software requirement process documentation [on hold]

I m working on project enhancement of a software product and there is a module of HR to be added and this module is to build from scratch right now I m performing my job role as a business analyst ...
2
votes
1answer
47 views

Preserving log of immutable Data Structure changes

I have large and complex immutable data structure (language is F#, but should be applicable to any language really) where I defined a lot of functions making changes and returning new instances of ds ...
-3
votes
0answers
25 views

Making a Call to an API service to Test Service is Up

I would like to build a call to the CallCredit (used by, amongst others, UK Fin Services organizations to validate ID's) service to only test the service is up and running and responsive to 'real' ...
1
vote
1answer
102 views

Why did DirectDraw allow developers to directly write to GPU VRAM?

I'm reversing an old DirectX 7 game and I noticed that it sometimes uses Blt and BltFast but at other times, it locks the directdraw surface and directly writes to GPU VRAM. Why did developers take ...
1
vote
0answers
45 views

Why does the last phase of Irving's Stable Roommates Matching work

Pertaining to the Stable Roommates Problem and the algorithm developed by Robert W. Irving. There are two (sometimes broken into three) phases in which we may come to a stable pairing of everyone in ...
0
votes
1answer
35 views

Should different data resource types have different data mappers?

In my application I have to consume data from an API, do some processing and then store the data retrieved from the API in my own database. Should I have multiple Data Mappers? One for the API and ...
0
votes
3answers
205 views

When NOT to use a class / member variable?

I am trying to learn WHEN NOT to use: classes member variables HERE IS THE CODE access_point_detection_classes.py from scapy.all import * class Handler : def __init__(self) : ...
0
votes
0answers
17 views

Where should I put a library in a Yii project that is not available via Composer? [migrated]

I can't put the library under vendor/ because that directory is ignored in .gitignore. I put it under bing-ads/ and I have <?php namespace app\models; include 'bing-ads\v10\bingads\ClientProxy....
2
votes
3answers
102 views

Base Class vs Common Member Class

Imagine I have two classes like this... public class SingleplayerGameSetup { public int Seed { get; private set; } public int AiNations { get; private set; } } public class ...
0
votes
2answers
49 views

Object Oriented Python methods and their parameters

Let's say I have a class MyClass ... which has a data member x class MyClass1 : def __init__(self) : self.x = 1 Also a method which does something with x Should I pass self.x as a ...
1
vote
1answer
37 views

Adding custom object-string transformers to a global static list field in my logging library. Is there a better way?

I'm writing a central logging library. In it is an AutoLogAttribute method attribute that automatically logs entry/exit of methods and their parameters (automatically serialized) like this: [AutoLog] ...
2
votes
3answers
71 views

What is the relationship between a program and processes in the Operating System?

A program, I am referring to any program written in any programming language. It could be a Java program which has only one method to do the multiplication, and a main method executes that ...
2
votes
1answer
118 views

Do extracting piece of logic to function improve or reduce code readability?

If there is some code that needs to be implemented across multiple controllers (lets say, 10), e.g.: // Inside a controller function var myField = null; var response = service.callBackend(function(){...
3
votes
3answers
470 views

Is it ethical to adopt other programmer's algorithms?

Imagine I find a completely new algorithm to compute the square root of a binary number (simplification of real scenario) on an internet forum that was an original creation. Is it ethical for me to ...
3
votes
1answer
215 views

Are recursions intrinsically less safe than iterations?

Java doesn't have a predefined recursion depth limit. As a result the recursion below (a dummy method that returns the value) throws java.lang.StackOverflowError after 62844 (with static) and 14002 (...
-3
votes
0answers
63 views

Best language to start learning GUI? [on hold]

Title says it. I'm a beginner! I only know intermediate Java and C. I'm okay with learning a new language. I know I can use Java for this, but I'm just wondering if there are better options for me. ...
-4
votes
0answers
26 views

Objects and Classes in Python [on hold]

Can anyone: 1. Define what an object is in programming and python. 2. What is class in programming 3. Give an example of an object in python 4. Give an example of class in python I can't seem to ...
0
votes
1answer
80 views

how is stack and heap are assigned to each processes?

How multiples processes are stored in the main memory , i understand every process will be divided into the equal size pages and will be stored in the frames of main memory. if whole main memory is ...
-2
votes
1answer
87 views

Why C# ASP.NET MVC Code First POCO Classes must have getters and setters?

Why in, C# ASP.NET MVC Code First project, POCO Classes must have getters and setters ( {get; set; } ) in order to work? public float data { get; set; } or in db context class public DbSet<SGD....
0
votes
1answer
42 views

Is Multi-Tenancy a viable option in any Java RAD Frameworks?

I've worked as a Full Stack Java Web Developer for many years now and of all the projects I have worked on two things are true of all of them: They were all Multi-Tenant applications with one ...
0
votes
0answers
28 views

Set up E-Mail message queue with digest system

We're currently building out a system to send out e-mail notifications in a digest format. We'll be delegating the actual sending to Sendgrid, but first we need to construct these messages using the ...
2
votes
1answer
179 views

How to efficiently store code snippets?

I've noticed that a lot of my work follows this pattern: (1) Decide that I need to add a behavior (say, align table columns right) (2) Recall that I did it few months ago on a different project, try ...
-3
votes
0answers
28 views

Swap or migrating to new technology from Vb6.0 [on hold]

Hi I have exp in Visual basic 6.0 and it's late to change my technical career but I have to do. Can you please advise which is the good technology to switch.
-2
votes
0answers
69 views

TicTacToe Project [on hold]

I am building a TicTacToe project on C++. I am using array to define the TicTacToe board. I was wondering is there a much cleaner way to define the board instead of using 2d array.Please suggest me if ...
1
vote
0answers
14 views

Forking New Consumers for RabbitMQ in NodeJS

So I'm implementing work queue with RabbitMQ in NodeJS. The consumer is a child process and I plan to fork new ones as need arises, but I read in the official documentation that : Because of the ...
1
vote
1answer
39 views

How is approval done in cors via preflight request?

As far as I have known in CORS, browser sends preflight with OPTIONS request to the server to gain approval for the real subsequent GET/POST request. Now, HTTP is sessionless. Is the custom header THE ...
1
vote
2answers
122 views

Concurrent inserts to MySQL or write to separate tables and consolidate it?

I'm working on Apache Storm (but anyone who knows MySQL well could help too). Topology is like this: Single spout ----emit---> Multiple instances of a Bolt Each instance of the Bolt inserts a ...
1
vote
1answer
49 views

Review page use of AJAX

I am currently working on a site that heavily uses AJAX. I have a page that when called renders the basic HTML and then uses AJAX to get the data that the pages needs and then renders the rest of the ...
0
votes
0answers
31 views

Name of the operation where whole table is put in array format

Consider this data struture: key1 : value1 key2 : value2 key3 : value3 I have an operation that put this data in array format: key1, value1, key2, value2, key3, value3 Which would the the name ...
-3
votes
0answers
29 views

Why can't I debug this in code::blocks? [migrated]

I have the following program and I want to debug it. #include <iostream> #include <cstdlib>> using namespace std; void display(char charArray[], int SizeOfArray); int main() { char ...
4
votes
0answers
79 views

Best practice for ensuring name uniqueness/correctness in message queues in a microservice architecture/distributed system

I was wondering what a good solution would be for ensuring that queue-names are entered correctly and are only used by the correct applications in a large system which uses message queues to exchange ...
3
votes
1answer
49 views

Testing a class with “prerequisite” methods

I'm working on a class that should manipulate files. Its interface has a Open(string filename) method, and various other methods to retrieve and manipulate the contents. Is it ok to call the open ...
-4
votes
0answers
112 views

Big Projects in C++ [on hold]

After so much digging, i am asking THE question which is on my mind from almost an year. Just look at this list List of c++ softwares 10 best c++ softwares My question is, How these are ...
0
votes
1answer
19 views

How do I use CMake to build my codebase for different purposes and resolutions?

I'm working on a C++ codebase targeted at multiple platforms, and we've just moved over to CMake as our buildsystem. Previously our buildsystem was a pretty ad-hoc affair; getting our code under a ...
1
vote
3answers
57 views

How to separate the logic of my application into a dependency when it is coupled to the structure of the data?

I am about to start prototyping a 'quiz'-like web application that tests test-scoring methodologies, and I have an interesting architectural question. Each quiz given to a user needs to use a set ...
0
votes
0answers
25 views

How to setup dependency injection framework in JavaScript

I'm creating a web page and would like to keep the UI and the JavaScript separate. To accomplish that I'd like to add event listeners after the UI elements have been created. I don't know if this is ...
1
vote
2answers
83 views

Continuous Integration and a Massive Refactor

I'm currently re-factoring a part of our application at work. I'm normalising a data structure from a flat list of fields to a parent/child relationship. This has an impact on all layers in the ...
-1
votes
0answers
15 views

Read subset of rows from a data table and post it in json and render it on a browser in table format

I have a data table that contains large number of records returned from the database, Currently browser gets all the records and are rendered on browser using client side pagination. Is there a way to ...

15 30 50 per page