-4
votes
0answers
23 views

how to Implement custom login controller? [on hold]

How to Implement custom login controller For check login type as LDAP or DB.Now i am using /j_spring_security_check.which is internally checked authentication. And i am using Login success handler ...
1
vote
2answers
137 views

How to store passwords which need to be re-read

I have a utility which runs at certain intervals. My customer now wishes for it to send an email when the task is completed. They want to be able to control the email address, meaning, they want to ...
-3
votes
0answers
30 views

I want to retrieve image from mysql database using servlet and show that image along with that user details in table [on hold]

Everything is working well. When I delete Code for Retrieving image then I get user details in table and when I put the code to retrieve image along with the code of printing user details then I only ...
10
votes
8answers
3k views

How do I design a subclass whose method contradicts its superclass? [duplicate]

How do I design a subclass whose method contradicts its superclass? Let's say we have this example: # Example 1 class Scissor def right_handed? true end end class LeftHandedScissor < ...
-6
votes
1answer
26 views

Best and simplest algorithm to match a set of products into a category? [on hold]

I have a database with millions of products and a few hundreds of categories. I'm trying to find a way to match a given product to category. My current algorithm is insufficient and puts many products ...
-3
votes
0answers
35 views

What does HTTP response field named “X-Request-Node” mean? [on hold]

I've met a strange HTTP-field "X-Request-Node". Example response from server (see last field): Status=Found - 302 Server=nginx/1.2.9 Date=Fri, 26 Jun 2015 12:04:28 GMT Content-Type=text/html; ...
-6
votes
0answers
22 views

How to build hotel reservation panel with month view in core java [on hold]

I want to build a hotel reservation system for desktop using core java but when i come to reserve a room for multiple dates it becomes brick always, i also want a month view which show booked and ...
-2
votes
1answer
58 views

Programming to an Interface and Keep Testability in Unique Classes [duplicate]

I try to program to an interface whenever possible, but when I have a class that fulfills a very specific and unique purpose, one that can't be abstracted. Is it correct for me to say that I've ...
1
vote
3answers
53 views

Programming to an Interface and Interface Segregation in the Context of a User Class

I try to program to an interface whenever possible, but its not clear to me how I could apply it to a model as broad as a user. Which can hold many disparate fields (name, age, phone number, ssn, ...
-5
votes
0answers
38 views

Which algorithm will be efficient,if I have Database with all possible recipes of any 1 category? [on hold]

I want to make a android app on getting recipes by ingredients. Which algorithms can be used in following scenario ->if i have a database table with fields Dish_Name,Ingredients,Method/Procedure. ...
-2
votes
0answers
8 views

how parse dynamic data through routing

am trying to achieve list a page and detail page using feeds i gathered from various sourcess using the google feed api, <div class="post" ng-repeat="feed in feeds | orderBy:'title'"> ...
2
votes
4answers
332 views

what is the difference between overengineering, underengineering and rightengineering? [on hold]

What is the difference between over-engineering, under-engineering and right-engineering at coding/design perspective? I found over-engineering: Coding too much like doing future requirement code ...
2
votes
3answers
53 views

Table design for holidays

I'm creating a system to store holidays and events. I have a basic understanding of the schema for the static dates (every 23rd of march for instance). My trouble lies with the relative dates (i.e. ...
2
votes
1answer
149 views

How do I make this functional DSL written in an imperative language more efficient?

Suppose I create a simple functional Domain-specific language (DSL) using an imperative language, in this case C++. Here is a simple implementation of a DSL that can has the notion of a simple value ...
0
votes
0answers
34 views

What are the differences and benefits of different string similarity measures [on hold]

There are a variety of string similarity measures. A few that come to mind: Hamming Distance Levenstein Distance Jaro–Winkler distance But there are more. It seems like there is a whole sub-field ...
-6
votes
0answers
12 views

Centering nav bar [on hold]

I have searched this site and many more trying to fid out why I cannot center my navigational toolbar. Here is the code on my external style sheet. ul#list-nav { list-style:none; margin-left:0 auto ...
1
vote
1answer
84 views

Evaluation function for games

I have been trying to write a bot for quarto game. As usual I tried to solve it with Min-Max and alpha-beta pruning. But I am stuck at finding a proper method to evaluate non-final states. As you can ...
-1
votes
2answers
38 views

Batch geocoding [on hold]

I'm currently using Geopy and my code works as expected. However, it takes about 0.8s on average per input given. That's really not a lot unless you have a large number of data, I'm talking about ...
-1
votes
3answers
104 views

What design pattern is this? [duplicate]

I'm struggling to come up with the name of a design pattern that I need to write about. I've been lead to think it was abstraction but apparently not. Let's say I had a driver class which has a Drive ...
1
vote
3answers
46 views

Cleanest way to represent three states, where one can hold a Key/Value pair, and the other two are empty markers

I'm writing a Hash Table that uses linear probing to resolve collisions. I looked over how linear probing works, and it seems like to allow for deletions, I can't simply remove an element, since that ...
1
vote
5answers
230 views

Tricky architecture in C# involving a symmetric operation and a viewing class

I'm trying to build an architecture in C#, and I can't figure out a way to accomplish the task. Basically, there's a set of classes A, B, C and D that inherit from I. Each of these classes has an ...
3
votes
1answer
160 views

If passwords are stored hashed, does that mean that theoretically there exists another password that could be used to log in? [duplicate]

From what I understand, in most sites, passwords are stored as a hash; not in their original form. This means that if the database is hacked into, the attacker will see the (nearly) useless hashes ...
2
votes
0answers
68 views

How to manage the state in a GUI app with Haskell

I am using wxHaskell to create a simple GUI that has typical components like Buttons, Panels, etc. When some of these components perform an action (like callback), the generic status of the ...
0
votes
0answers
21 views

Feasible solution on the constructions phase of GRASP

I am learning about the GRASP (Greedy Randomized Adaptive Search) meta-heuristics. From what I understood, GRASP is based on two main phases. The first one: Construct a initial solution based on ...
3
votes
2answers
38 views

How should I handle test services not connecting to Production DB?

I want to verify that my services (used to collect data from database and handle it according logic) are not connecting to production database which can cause data loss. my first idea was to mark the ...
0
votes
0answers
26 views

C++ : mixing Directx9 and default windows [migrated]

I am looking for a method of placing a DXLinked window within a windowproc as a child window. This would allow for menus/Forms controls to be externally managed before input to the DX methods. So far ...
-5
votes
0answers
28 views

trouble in printing row from two text files [on hold]

i have two txt files of three columns each,but unequal rows. from the two files i have to perform an operation using 2nd and 3rd column of both files simultaneously. do an operation and then if ...
4
votes
1answer
67 views

Lambda Return Type Inference

Writing my own JVM compiler, I am facing a giant problem that I am desperately unable to solve: Lambda Return Type Inference 1. Overview of the compiler lifecycle More specifically, the order in ...
1
vote
0answers
50 views

C++11 best practice to use rvalue [migrated]

I am new to C++11. In fact until recently, I programmed only using dynamic allocation, in a way similar to Java, e.g. void some_function(A *a){ a->changeInternalState(); } A *a = new A(); ...
2
votes
1answer
42 views

ScrumMaster rotation with multiple scrum masters and teams

I'm currently working in a project where we discuss the question whether it is a good idea or not to rotate the scrum masters through all teams. We have different teams for ONE project. The context ...
-3
votes
0answers
17 views

Extracting from search results on a website [on hold]

After I do search query on a website, I get results grouped in a number of pages (1,2,3 etc), and on each pages they are presented in a table-like form, with each result shown in a horizontal column ...
-3
votes
0answers
37 views

Sum of a number and its digits [on hold]

So I found this problem on a website and I've been trying to solve it for a few days but I must be missing on something. I work with C++. I need to find the smallest number which, together with its ...
1
vote
2answers
139 views

shared or raw pointer c++

I am developing a noSQL database and currently moving the code from C to C++. It have class Pair, which contains a raw pointer to a memory blob. class Pair { Blob* blob; ... }; Then if you add ...
0
votes
1answer
37 views

Developing from scratch vs. joining a project [on hold]

Is the learning approach different when you are creating projects from scratch than when you join an existent project? My experience tells me that it is easier to do development from scratch, because ...
0
votes
2answers
299 views

Loops to create nested loops

Is there a way to use a loop to create more nested loops? E.g. Doing this for (int i = 0; i < iterations; i++) { //Do stuff for (int ii = 0; ii < ...
1
vote
0answers
74 views

What's special about “non-blocking” node.js?

In the short chapter, What is Node by McLaughlin, he writes: "Node has no blocks, no threads competing for the same resource (Node is happy to just let things happen however they happen), ...
0
votes
0answers
23 views

Authentication of mobile apps using Identity server [on hold]

What is the reference architecture for adding authentication and authorization to a mobile application. Do I need access tokens infrastructure or can I just use validation of a token data using ...
8
votes
3answers
205 views

Reducing boilerplate in class that implements interfaces through composition

I have a class: A that is a composite of a number of smaller classes, B, Cand D. B, C, and D implement interfaces IB, IC, and ID respectively. Since A supports all the functionality of B, C and D, A ...
-4
votes
0answers
21 views

Anyone code AngularJS and Ionic? [on hold]

Is angular for all the tiers? I want to learn it. Any advice? To make a cross-platform app. With PhoneGap. Cordoba. AWS.
-5
votes
0answers
26 views

php vs c# application [on hold]

We are writing a point of sale application for a restaurant. We are debating whether to use a locally hosted PHP solution vs something in C# .NET etc. Our preference is PHP as we have more expertise ...
3
votes
4answers
236 views

How is a state machine different from any other computer program?

I have seen several implementations of "State Machines" on github. As far as I understand, a state machine takes input that may or may not transform its state into one of a finite set of other states. ...
-4
votes
0answers
31 views

How do I use XCode 7.0 to compile Swift 1.2 apps? [on hold]

I installed the new version of XCode : 7.0. When I try to compile examples of github, for example, it tries to convert the code to Swift 2.0 and it doesn't work very well. I'd like to just use XCode ...
-3
votes
0answers
23 views

Programming design on heavy web I/O Django based scrapping application [on hold]

I've started a project few month ago for closest to real time database operations next to HTTP requests. I choose Django + Celery as a first place, then tried with home made multiprocessing + ...
0
votes
1answer
27 views

JEE MVC, controller calls the interface instead of the interface implementation

I'm following this tutorial: http://wiki4.caucho.com/Building_a_simple_listing_in_JSP It creates a basic web application in Eclipse using the MVC pattern with Resin as the web container. Here's the ...
-1
votes
0answers
22 views

Create/run a script, which securely stores account info, searches, scrapes targets, and then displays targets in canvas, without installing Python [on hold]

I made the title as brief and to the point as I could but I'll be more detailed here. I have a Python project in mind that I'd like to start working on now even though I'm still learning and should be ...
3
votes
1answer
129 views

Design: .NET web app architecture problem

I'm taking my first foray into .NET and I'm designing a web app that's heavy on other web services right now. I'm intending to do the following: Take user input (a USDOT number) Request data from a ...
1
vote
3answers
135 views

How to use Guice for an effective API Design?

I am creating a base API in JavaSE, which includes modules like MVP architecture, Service & Repository Layer, Event Model to fire events between presenter etc. I am trying to implement all best ...
2
votes
0answers
35 views

What's the etiquette of contributing to OSS that doesn't have a Contributing page

I'm thinking about contributing to a small R package on github that has only 1 contributor. What's the standard etiquette when there's not Contributing.md page on small projects like this? Should I ...
-3
votes
0answers
12 views

How to pass a string value to a String with “ ” [closed]

So it's kinda a simple thing but i can't find a way to do it without getting a syntax error.So i want to pass a string value from a variable to another.So lets say i have a variable. String view= ...
0
votes
0answers
55 views

Strategy for writing a scalable chat server in Java [on hold]

Currently I'm creating a chat server in Java using socket, seems that is the natural choice for a newbie java programmer. What are the strategies that need to be taken in order to scale the chat ...

15 30 50 per page