0
votes
0answers
3 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 ...
-1
votes
0answers
5 views

Error executing stored procedure query in JPA

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 @...
-1
votes
0answers
22 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
14 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
15 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 ...
1
vote
1answer
56 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 ...
-3
votes
0answers
40 views

What is the difference between declaring a variable in same line or declared in separate line [on hold]

int i=5,j; j=++i + ++i + ++i; cout<<i<<j; The result of above code is 8 24 But int i=5; int j=++i + ++i + ++i; cout<<i<<j; The result of above code is 8 21 Why? What is ...
0
votes
0answers
32 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 ...
-3
votes
0answers
12 views

Which is better JSP with JSTL expressions or HTML with JSON. Which is good in performance [on hold]

As a Java Developer, I feel comfortable to use JSTL in JSP. But I read that JSP's are server side components. So, they consume much time to fetch it to the client every time. So I am thinking of ...
0
votes
0answers
14 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 ...
-2
votes
0answers
22 views

C/C++ - allocation variable char * and malloc

I have a problem with pointers and allocation memory, because I don't really understand, when I have to allocate memory in my programme. For example: #include <iostream> struct Snack { ...
-3
votes
0answers
9 views

Tutorial to learn oracle for a sql server user [on hold]

I have used sql server as a developer for quite a while now. In my next assignment at work, I have to support Oracle's SQL developer tool. Is there any tutorial, I can go for?
0
votes
2answers
84 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
53 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 ...
-5
votes
0answers
22 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....
-4
votes
1answer
31 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 ...
1
vote
1answer
36 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
20 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' ...
-4
votes
1answer
24 views

How to Stop a program by pressing a Character input from user in C? [on hold]

// this is my program bt its not working as i want// #include <stdlib.h> int main() { int i,n[1000]; char c[1000]; for (i=1; i<1000 ;i=i+1) { scanf( "%d",&n[i]); ...
1
vote
1answer
83 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
36 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
28 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
174 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
11 views

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

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
77 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
43 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 ...
-3
votes
0answers
38 views

Explanation of DRY with regards to OOP needed [on hold]

An online test I was doing had this question re DRY with regards to OOP. I must confess that even though I thought I understood both, it has me stumped. Any ideas?
1
vote
0answers
20 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
69 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 ...
1
vote
1answer
105 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(){...
2
votes
2answers
279 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 ...
1
vote
1answer
143 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
56 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
22 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 ...
1
vote
1answer
55 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
76 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
33 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
24 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 ...
1
vote
1answer
165 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 ...
-2
votes
1answer
37 views

Moving legacy app to cloud, technical difficulties [on hold]

We have a traditional Java app that uses JSF, have a rest api, uses environment variables, and writes heavily to disk (both for caching(ehcache) and for storing-reading data files, logs). Company ...
-3
votes
0answers
24 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
61 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
13 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 ...
0
votes
1answer
36 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
82 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
47 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
30 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 ...
2
votes
0answers
68 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 ...

15 30 50 per page