0
votes
1answer
92 views

Best way to encrypt passwords?

I've switched to PHP 7.0 very recently and I was wondering that if password_hash was better than making your own salt and using the crypt function. I have three examples of code and I don't know which ...
0
votes
0answers
38 views

Is it worth working on Google Closure now

I'm evaluating to whether to include this in my workflows. My workflow for JavaScript tools include and they offer me following. WebStorm (Excellent Code hinting, JSDocs comments, Refactoring etc.) ...
-1
votes
4answers
119 views

When should we use MongoDB?

MongoDB is a NoSQL database which I've found quite easy to use. Recently I had to develop a simple application which needed to collect some data using HTTP requests and store some results after ...
0
votes
1answer
30 views

Optimal load distribution with maximum workload

I need to find an optimal distribution of some matching tasks on multiple jobs; each job is limited by a maximum workload and the grouped tasks should maximize the workload within the same job. ...
-2
votes
1answer
82 views

Is Angular 2 ready for production use or should I use AngularJS 1? [on hold]

I want to learn AngularJS but on the website I see a button with the text Try the new Angular 2. Is Angular 2 ready for production use or should I learn and use AngularJS 1?
-1
votes
0answers
26 views

GIT, Docker and CI - How to do it effectively

Here is my current workflow... Note: This is all about the workflow. I use AppVeyor as a build server but it could be Jenkins or Teamcity or whatever. I am using Azure for the Cloud but it could be ...
-1
votes
1answer
32 views

Time complexity Computation

What will be the result of the time complexity of this piece of code i.e. int sum(int A[], int n) { int sum = 0, i; for(i = 0; i < n; i++) { sum = sum + A[i]; } ...
2
votes
2answers
30 views

How can I track down a dependency that is causing an X509TrustManager error without having the source?

I am maintaining and Android app that now suffers from an unsafe X509 TrustManager implementation. Since the app doesn't make any HTTPS calls except through dependencies, one of the dependencies is ...
1
vote
0answers
47 views

Is there a cross-platform way to open a TCP connection, send a HTTP post request and keep the connection open?

I'm searching for a way to open a TCP connection, send a HTTP post request and keep the connection open. It would be great if I can achieve this without administrator/root rights, from a command-line ...
1
vote
2answers
53 views

Refactoring to an inheritance hierarchy early on

I am building a management tool for recipes. Recipes have a bunch of data, including very generic stuff like an ID, tags, ratings and trivia. I currently only manage recipes, but i want to add support ...
-1
votes
0answers
41 views

Big web application on python [on hold]

I am experienced PHP developer. I am pretty familiar with tools in this language. I know, that for big complex application I'd use symfony or zend framework. On the other hand, for some kind of REST-...
3
votes
2answers
289 views

Is accessing lower tier members of an aggregate to perform an operation bad practice?

I am currently building a small project that is supposed to keep track of recipes. Each recipe has a bunch of information, including a rating for said recipe. Since the rating has some additional ...
3
votes
2answers
106 views

C header file order

I see that in many projects and examples that local includes are listed before external libs and before header files for built in compiler functionality. Is there any advantage here that I am missing?...
1
vote
2answers
97 views

Is it safe to say that AJAX is a particular way of using HTTP?

I really need someone to confirm the following, and if necessary help me filter what I have read so far. AJAX, which stands for Asynchronous JavaScript and XML, is used to exchange data and is a ...
-4
votes
0answers
48 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
25 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
39 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 ...
7
votes
1answer
88 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
36 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
64 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
29 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
41 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
75 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
23 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
90 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 ...
4
votes
1answer
77 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
40 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
44 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
43 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
1answer
58 views

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

Edit: There is no "right" or "wrong" answer here, I was merely trying to get people to share their dos and don'ts. Behind this rather vague topic I would like to address a few problems I've been ...
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
119 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? [closed]

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 ...
1
vote
1answer
48 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
77 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
26 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
105 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
135 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
36 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
116 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
17 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
95 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
55 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
384 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
50 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
44 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
0answers
90 views

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

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
165 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
13 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
68 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"...

15 30 50 per page