-4
votes
0answers
41 views

Why the simplest AngularJS2 app requires 9000+ files to run?

I have been following the AngularJS2 tutorial and have gotten the first, simplest hello-world app working. But what I discovered is that even the simplest app requires 9000+ files from the node_module ...
-3
votes
0answers
22 views

How can i change the element of XML using XSLT [on hold]

I am new in XSLT. My Requirement is: I have one XML something.xml It Contains <Parent> <child1> <firstname>abcd</firstname> <lname>dcba</lname> </...
-2
votes
1answer
33 views

Domain model design

In your own opinion, which is a better design. A User object which contains an attribute Employee, and that Employee is being inherited by more specific job title. or is it better for the Employee to ...
3
votes
1answer
44 views

Algorithm for seating Zoombinis on Captain Cajun's ferryboat?

I've been playing the rerelease of The Logical Journey of the Zoombinis recently, and trying to implement some computer algorithms that can solve the various puzzles. I'm stuck on how to approach the ...
-1
votes
0answers
35 views

Developing a phrase bank to help people construct their CVs

I am currently developing the backend for a resume phrase bank which will help people construct their CVs by selecting a phrase from a large data set. I have decided to present the data in the form ...
1
vote
2answers
55 views

How should I setup a database for school management?

I'm struggling to set up a database to use in my School Academic system that is supposed to record all student's scores and then be able to prepare a report that shows students ranks. The hardest ...
0
votes
0answers
28 views

How should I implement a real-time endpoint server to handle new posts and events for a forum?

I am writing a forum component for a site and decided on using either nio or twisted for a real-time endpoint to accept users posts and notify other users who are in the same forum or page of new ...
0
votes
1answer
40 views

REST API with optional resource creation

I have a web app with JavaScript front-end which communicates with back-end via REST API (AJAX calls). Front-end have a Sign Up page. When user decides to register, front-end makes REST call to ...
-2
votes
1answer
69 views

Git Repository design questions

I have following hierarchy of topics I am working on DataStructure Linked List Array Stacks Tree Enterprise Apps EJB JMS Android App Games Productivity Apps My question is how can I best ...
0
votes
1answer
19 views

How Do DB Version Control Systems Lack in Script Semantics When Modeled on Souce/Target Difference Comparisons

There are several database version control solutions out there to assist with controlling not only the versioning of a database, but also deploying and synchronizing databases. These systems are ...
0
votes
1answer
87 views

How can the PHP send a file to Java api?

I am currently working in a project that is to build a online judging system like codeforces. That is where someone can upload a file for a programming solution and our system will compile the code ...
3
votes
0answers
53 views

Compiling for string and wstring

I'm creating a library. I want to use it in multiple projects which may use multi-byte or unicode (std::string or std::wstring). I've adopted the old MS method of conditional compiling: namespace ...
0
votes
0answers
35 views

It's 2016: Is WCF preferred over ASMX for simple IIS-installed web services? [on hold]

I've been doing some research about WCF and I'm concerned it may be going the way of numerous other Microsoft experiments: Future Direction of WCF Data Services [blogs.msdn] Is WCF Dead? [reddit] ...
4
votes
1answer
41 views

Correct Way to Implementing Authorization Checks in ASP MVC

In ASP MVC we have the Authorize attribute to perform check at either a controller level or at a controller method level. But what if you need to do check permissions inside a controller method e.g ...
0
votes
1answer
39 views

SQL: Empty value list for the IN predicate (literals, not subqueries)

Recently, while writing some Spring/JPA code, I stumbled on an issue I tend to face with from time to time: I passed an empty collection to a repository method that generates an IN expression for the ...
1
vote
0answers
32 views

MVC, Services and DAO: Fundamental design choices, error handling and return values

Behind this rather vague topic I would like to address a few problems I've been having in my last projects. As a general rule, I try to keep it simple, follow design patterns and the Single ...
4
votes
4answers
1k views

Is fixed-scope, fixed-time really impossible to deliver in agile? Or what else use?

I have been reading some similar questions here but they are not the same. The project we have inherited from our partner has fixed scope and a fixed deadline to deliver. We are now thinking about way ...
-3
votes
1answer
104 views

Is it legal to copy an MIT-licensed software and change the copyright holder and software name and claim to be the creator of it? [on hold]

According to MIT License any person can: Obtain a copy of the software Modify it Distribute it Is it legal to copy an MIT-licensed software (let's say Expressjs), change its name and copyright ...
0
votes
1answer
43 views

How to deal with different configurations with non-overlapping properties?

I am working on a project based on the Java EE technology. First I'd like to tell you what I want to achieve, then what I already tried. Task: Imagine two types of configurations, which you want to ...
0
votes
2answers
68 views

Business Layer in Database logic system

Background:I'm a not very experienced software developer, currently working on a legacy project where all the business logic is in the database(sqlserver) using stored procedures. Now we are asked to ...
-5
votes
0answers
25 views

How to secure code of Java web project? [duplicate]

I am working on one application java/jsp application. I want to package this project in a way so that ONLY intended tomcat can decrypt and deploy it ? What are the possible ways to achieve this ?
2
votes
2answers
99 views

Would it be possible to create a class during runtime execution?

This might be a little unrealistic bu i will ask anyway. Would this be possible to create literally create a new class during the run time execution, i don't mean a new instance, i mean a new class ...
1
vote
2answers
130 views

Opportunity cost of DIY DI?

Java here. I have always used Spring DI (for Spring projects) or Guice (for non-Spring projects) for dependency injection, and have always loved them. I recently took a job where they do 100% "DIY DI"...
0
votes
0answers
34 views

Inaccurate fractional exponentiation / accurate fractional exponentiation in Python? [duplicate]

In Python, 9 ** 3 obviously is 729; why is 729 ** (1 / 3) 8.999999999999998? 9 == 8.999999999999998 gives False. Is this problem solvable?
0
votes
1answer
105 views

What algorithm or program does Java use for arithmetic?

I was looking at bitwise ways to multiply and add numbers without using * or + operators. But I want to know that it might be possible that java may already be using a better approach underneath. I ...
0
votes
1answer
16 views

In SRP POV, Should converting raw data to an object be in a dedicated method?

I have a function that retrieves raw data from the database and returns an object which represents this data. Should the conversion between the raw data and the object be written in that method or ...
1
vote
1answer
88 views

Why does array.push() sometimes take more time in Javascript with Google Chrome

A while ago I've made a simple script in Javascript that tested how much time it takes to add elements to arrays. I've used 3 different methods: array.push(), array[array.length] and array[x] where x ...
-3
votes
0answers
14 views

How to generate jasper report as accordance to user request?

I have created a table as my jasper report which holds more than one million arsenic data with various arsenic levels. My requirement of my project is: [1] User should give inputs through simple html ...
1
vote
1answer
51 views

How to prevent “updating” unchanged date using Data Mappers?

In some books the implementation of Data Mappers simply update the whole row of a table using the data inside an object, but in a system is possible that two different operations update different ...
4
votes
5answers
336 views

Is “too much methods” a valid reason to break the “composition over inheritance” rule?

I usually prefer to follow "composition over inheritance" rule, until I start stepping in the world of Java GUI. In my experience, for adding custom requirements in a GUI components, for example, add ...
1
vote
1answer
48 views

Parse both en_US and en-US as locale in Java

I am writing an API (using Java) that takes locale as a parameter. We want the clients to be able to specify "en-US" or "en_US" as they both seem to be widely used across all languages. I did go ...
0
votes
0answers
41 views

Strategy To Upgrade Frontend Javascript Code - Typescript or New Framework?

Here is my scenario. I would like advice on which path to follow, along with good reasons as to why. It would even be better if you could give an example based on experience of a similar decision but ...
0
votes
1answer
82 views

How to fit a gaussian curve to data for a goodness-of-fit C++?

I've given a dataset of N samples like: (x,y) (-100,1), (-90, 30), (-50,60), (-10,90), (0,100), (10, 90), (30, 20),(100,4) Now I would like to determine how well the data fits a perfect gaussian (...
2
votes
2answers
149 views

Is 20 Java classes for just making a REST call too much?

In an Android project, I am using dagger 2 for dependency injection, applying mvp design pattern, and I am writing interface for almost every class. Although it does achieved the separation of ...
-1
votes
0answers
10 views

Rails schema showing duplicate add_index lines after migrations

In Rails, I have this odd issue where after I migrate, my schema shows duplicate add_index lines, which then causes my rspec tests to throw the error: ArgumentError: Index name 'name_here' on table '...
1
vote
1answer
61 views

How can I filter my coordinates system?

Following up with this, I have a bunch of coordinates and I draw them on a bitmap image as a coordinate system. Now, I would like to get rid of all the noise, and filter coordinates to give a "clearer"...
0
votes
1answer
52 views

Contracting Around LGPL

A client of mine wants to static link its proprietary commercial work to a library that is licensed under LGPL that is sold by VMime in France. VMime's website purports to explain that the purchaser ...
0
votes
1answer
50 views

General guidelines for architecturing a plugin based application

Our application is composed of a main webapp and a handful of windows services that perform a variety of jobs that feed, sanitize and optimize that webapp. In order to ease the task of maintaining ...
-2
votes
0answers
19 views

Need some help with making Selenium to click on a button [Python] [on hold]

<input class="button" value="Log in" tabindex="104" title="Enter your username and password in the boxes provided to login, or click the 'register' button to create a profile for yourself." ...
0
votes
0answers
13 views

Developing Python Scripting API using Petrel Ocean SDK (C#/.NET)

I use a commercial software called Petrel. Petrel has a software development kit (SDK) that allows the user to develop plugins in C#/.NET via the Ocean core API. At our offices, we have installed a ...
0
votes
1answer
27 views

Java searching for multiple keywords through a list of URLs

Hey guys I was wondering if anyone could point me into the right direction as to how to start this. And its been awhile since I've programmed in java. I basically have to search through a list of ...
-1
votes
1answer
22 views

How to handle xml element with both CDATA and regular data using SimpleXML

I'm struggling to understanding how I can deserialize the following response from an RSS feed. I need the text blah blah blah etc as well as the embedded image source http://host/path/to/picture.jpg. ...
3
votes
2answers
96 views

Get a list of user currently using an application

What I need to do : I've been asked to add a feature to one of our application that would allow a supervisor to send a message to all or one of the users currently using the application. The ...
3
votes
1answer
80 views

How does I/O occur for large data files?

Assume that we have a 4GB RAM processor. Let's say we want to play a 4GB movie in VLC player. Now, processor first starts VLC Process and then starts to load 4Gb data. My question is how does this ...
0
votes
0answers
12 views

Is there MPI_Reduce in MapReduce?

Is there a tree/logarithmic reduction function in Map Reduce similar to MPI_Reduce? From diagrams it appears the default MR reducer uses the key assigned to data during the mapper operation to direct ...
-2
votes
2answers
33 views

Using Python to start up multiple programs simultaneously

I am attempting to write a python script that with remove some of the tedium of my everyday actions. Specifically, I always need to run Eclipse, Java VisualVM, and a docker container. I had planned ...
0
votes
1answer
69 views

Are there system calls like posix in assembly level using int number for windows

I want to write assembly program using windows syscall Interrupt number , so in order to use system call in assembly level using int of sys call, In windows are there kernel calls like posix ...
-2
votes
0answers
57 views

C# and .Net Core Multi Projects Architectures Solutions [on hold]

I starting a new set of projects in C# and .net core initially in WPF or UWP (windows desktop app) with a goal to theirs to all mobiles (ios, android and wp), asp.net core, MacOS and Linux. What's ...
-2
votes
0answers
58 views

Do I need a commercial license for Qt if I'm going to sell on the Mac App store?

I would like to build an os x app and sell it on the Mac App Store. I'm going to build this in C++ and use the Qt library. I'm wondering if I can use the free version or if I need a commercial license....
3
votes
5answers
933 views

How does bitwise information storage in (32-bit) int variables work?

In this book I'm reading I'm going over bitwise operators. Its says the following in the book. Bitwise operations can potentially store a lot of information in a small amount of memory. Many ...

15 30 50 per page