-6
votes
0answers
37 views

I have problems to validate dialogs in javascript [on hold]

I have problems to validate dialogs in javascript. Please look at the following configuration When I press the submit button, no valation is done. Does anybody have an idea? ...
-2
votes
0answers
71 views

How can I run the FOR loop for more than the size of long long int [on hold]

for(i=0;i<pow(2,N);i++) { //code goes here } N=1000, i.e pow(2,1000)>10300 but long long int can only hold upto 1018. How can I be able to run this for loop.
-2
votes
0answers
22 views

How to setup SkelCl with Qt? [on hold]

I'm a beginner in parallel programming and Qt. As I've heard, OpenCL has a lot of boilerplate codes and is difficult for beginners to grasp the concept of it and SkelCl makes it easier for beginners ...
-4
votes
0answers
18 views

accessing remote mssql database from winform application [on hold]

I have completed a winform application that works fine in local database. Now, I want to use it in remote database hosted in server. Is it possible or not? What modifications I need to make in my ...
1
vote
1answer
54 views

Are there defined standards for argument sequence? [on hold]

Say I have a function taking three arguments: a symbol (an alias for a class, method or function name) a mirror/reflection of a specific object a mirror/reflection of a class in general is there a ...
-3
votes
0answers
60 views

Today should we rather develop desktop websites or an Android Applications for public applications [on hold]

First of all this is not a newbie question, I am a dev with several years of experience in the industry. For the WEB, I work with ASP.NET MVC and Web API. Very recently I had an idea and I built a ...
-2
votes
2answers
123 views

Why public access level method get overridden in java?

This question is raised with a clarification required to decide when to declare a method protected or public during class design of a package. My point is, if one needs to override a method of a ...
0
votes
2answers
78 views

Is it ok to access private members while doing same class comparison?

I am writing a class which basically is a wrapper around a dictionary with some extra functionality. This dictionary is stored as protected member _store. Now I am writing a __eq__ method to compare ...
-2
votes
0answers
39 views

What are the Steps/Algorithm to load/Parse an XML File? [on hold]

I want to write an xml parser by my own, its a project given to me, and i should complete it, i know to search for a string, load files into memory using vectors, but is theres a way i can use this to ...
0
votes
0answers
24 views

Structure of Input Events [on hold]

I know there are KeyListeners, MouseListeners, and AnyListeners everywhere. However, that is on the higher level. I want to know what the base of it all is. The lowest-level you can get ...
0
votes
1answer
56 views

What is a relation between Dependency Injection, single instance, and singletons?

I read So Singletons are bad, then what? which was a great explanation of dependency injection as the solution for inversion of control. The asker assumed singleton and single instance were synonyms, ...
-2
votes
0answers
23 views

Javascript animation based on mouse click? [migrated]

So I'm attempting to make it such that when you click it creates a circle on the mouse's position, and on the second click, the circle moves towards the second click's location. So on and so forth. ...
1
vote
1answer
60 views

Is it possible to quickly change an array declared on the stack to one declared on the heap

I have about 5000 lines of code which manipulates a large array in C++. The problem is that when I try to make the array even larger i.e. A[10000][10000], the gcc compiler throws me a segmentation ...
0
votes
0answers
13 views

Using OAuth2 to grant 2 tokens at once

I have a scenario where a client wants to start a foreground session and a background session when a user logs in. The user may log out of the foreground session, ending it and expiring the token, but ...
0
votes
1answer
72 views

Permutting a list of numbers in order to get a list which satisfies given condition

Here is algorithmic problem I'm trying to solve: Given a list [x_1,x_2,...,x_n] return a permutation of elements of the list [y_1,y_2,...,y_n] (where for each i we have y_i = x_j for only one j) ...
-1
votes
0answers
30 views

Is it apposite to have a separate api for this situation? [on hold]

This is a bit generic question . Take the case as follows There exists an web api ApiA . now this does some task taskA. Now we see that the customers are having a need to do another taskB which is ...
2
votes
3answers
55 views

Scrum and backlogged issues

I run a development team that recently started using Jira and we began using agile scrum. I'm curious about a certain aspect of backlogged issues. So far I have been marking new issues as unassigned ...
-4
votes
0answers
73 views

Divide an Array into n subarray such that each subarray have equal sum? [on hold]

You are given an array of a given length. Now we have to determine whether we can Divide the array into n sub-array such that all of them have equal sum . Note: Each sub-array may or may not have ...
-2
votes
0answers
6 views

PHP/SQL Question [migrated]

There's my problem... I have the following variables: $days_a = $array_total['days']; // This one display days $hours_a = $array_total['hours']; // This one display hours $minutes_a = ...
0
votes
3answers
65 views

CSS: When to use which selector

I've been learning HTML5/CSS3 for a month now, and I've built my first demo website. At first I was using a lot of the element selectors like: >, ,, + in combination with the type names for ...
1
vote
1answer
89 views

Should make concrete factories in the same count of families of objects or according to stages in my problem?

I am programming a game. In this game I have 3 stages. In the first stage, there is a static goal and a static shooter in the game. In the second stage, the goal will move. And in the third one both ...
1
vote
2answers
197 views

Searching algorithm used in switch statement

What is the searching algorithm used in switch statement in C language? If the cases are not in order still it searches proper case which means it is not a binary search algorithm, can anybody ...
0
votes
0answers
23 views

Managing customer-specific modules in a composer/PHP-based SaaS

I'm developing a business-to-business SaaS. I expect that most of my customers will be able to use my mainline product, and I intend to deploy it in an independent instance for each customer. Some ...
0
votes
1answer
82 views

Replacing Throwing Exceptions with Notification in Validations

Martin Fowler recommends replacing exceptions with notifications when dealing with validations. Essentially, instead of throwing an exception, you append error messages to a Notification object that ...
1
vote
0answers
121 views

Implement a new Unicode encoding in a suitable open-source text-editor? [closed]

The very fact that the Unicode standard allows multiple encodings means that there's nothing inherently special about UTF-8/16/32. I want to use the Unicode character set, but I want to encode the ...
5
votes
2answers
495 views

How should I handle logger failures?

In several of our company's applications, we use a custom logger. It's fairly robust, though we may replace it with something like NLog in the future. One of the logger's tasks is to log any ...
-2
votes
0answers
58 views

What should I check before using a project from Github? [closed]

I want to use an open source project that's hosted on Github, what can help me get an idea of how well maintained the project is? Here is what I can think of: Date of last commit number of issues ...
1
vote
1answer
47 views

Domain Driven Design and Data Conflicts

I realise it is probably overkill for what is a occasionally connected client app, but the construction of aggregates roots is bugging when thinking about it from a client perspective. For the ...
-1
votes
0answers
29 views

Where to place loops that are output data MVC [closed]

In ideal world view should only display html and echo php variables. Sometimes you would be required to do extra changes to the data while in the loop i.e reformat date or fetch extra information ...
-3
votes
0answers
103 views

Why GCC does this? [closed]

I've been programming in C for a long time, but I've never worried about the issue about what are the differences between the standards or anything like that, but now I wanted to investigate to learn ...
0
votes
1answer
25 views

Difference between Signal/Slot and DataBusPattern

I'm just trying to figure out what makes the Signal/Slot (Pattern?). Wikipedia tells me not so much and calls it an implementation of the ObserverPattern* while I would think it has much more ...
-4
votes
0answers
25 views

good C library to detect collision of 2d shapes [closed]

I'm looking for a C library to detect collision 2 shapes in 2D. I have shapes in svg or besier lines
-2
votes
0answers
11 views

Mysql fulltext match character limit [migrated]

I'm using following query to select most relevant 10 keywords for an article. I use this weird approach because there are 50 million keywords in the table. It's slow but it works good enough for my ...
0
votes
2answers
150 views

Java card game design decision

I am making an application for a card game, with a standard 52-deck playing card. For now, I am writing a solitaire game with for learning purposes. I've had some experience making platformers and ...
-1
votes
1answer
73 views

What should my approach be to tagging 10 million articles based on relatedness? [closed]

I have 50 million tags and 10 million articles in mysql db. I want to tag each article with 5 related tags. Tags have 1 to 6 words. Mostly there are 3 words in a tag. I think most accurate and ...
-3
votes
0answers
36 views

Can i use WildFly, SwitchYard, Riftsaw, Overlord (apiman), ActiveMq, Camel, CXF, Karaf, Drools , JBoss Developer Studio Standalone for FREE [closed]

http://www.jboss.org/products/fsw/community/ The [Red Hat JBoss Fuse Service Works] is a Paid product of JBOSS, its composed of the following [Free ?] products: [WildFly], [SwitchYard], ...
-3
votes
0answers
83 views

Real-world examples of failed businesses because of technical debt [closed]

At the company I work for, we're trying to prepare some information on the dangers of technical debt. As real-world cases generally work the best to convince others, I'd like to know about ...
0
votes
1answer
35 views

How to design method that returns a compact representation of sourcecode

Let's say we have a class that stores some textlike content like sourcecode as a string. We want the class to be able to not only show the sourcecode itself but also a more compact representation. My ...
0
votes
2answers
49 views

VCS - Better way to change location than pushing to branch?

I work from multiple locations quite frequently, and there's times (16:59 on a Friday for example) when I need to leave quickly with potentially unstable code. Right now I tend to commit and push the ...
-2
votes
1answer
73 views

how to discover what is inside an API that has poor documentation [closed]

I am working with this API from Streeteasy.com - http://streeteasy.com/api/info and the documentation is rather sparse. I need to find out what naming convention they use for each neighborhood in ...
0
votes
0answers
37 views

What is the difference between a single version of the truth and a single source of the truth when dealing with data?

According to Wikipedia a single version of the truth is described as "is a technical concept describing the data warehousing ideal of having either a single centralised database, or at least a ...
7
votes
4answers
820 views

Is there something as a bug-free application? [duplicate]

We are developing an application that goes through many testers before reaching our client. Finally, when it reaches the client, they find some more bugs and report to us, and this has become a ...
4
votes
3answers
226 views

Why use arg type `class Object` instead of `Comparable[]`?

In the code below, I believe it would look more appropriate to make the method argument be of type Comparable[] instead of Object[]. The first reason it would be more appropriate is that one can be ...
-1
votes
1answer
85 views

Resources for learning more about programming languages [closed]

What are some good resources for learning more about programming languages for someone who already has a CS degree? I'm a recent graduate having some interviews. Sometimes they ask me what technical ...
0
votes
1answer
79 views

Missing `$` like operators in Haskell

Below I've produced what I believe to be a summary of the standard $ like operators for various classes in Haskell. There's some gaps however. Following the applicative pattern, you would think those ...
2
votes
2answers
462 views

Isn't there a chicken-and-egg issue since GCC is written in C++ itself?

Since 4.8 release, the C++ compiler GCC (the G++ part of it) is written not in C anymore, but in C++ itself. I have a hypothetical question on this. I wonder how to compile the C++ code of GCC on a ...
1
vote
1answer
132 views

Modern OOP vs Alan Kays OOP [closed]

I've recently come to discover there's actually a strong amount of criticism towards what people refer to as "modern OOP" - often comparing it to either functional programming or Alan Kays' OOP. ...
2
votes
1answer
202 views

C# OOP Class Usage [duplicate]

I am just being picky and really wanted some of my code to look, feel, and be used a specific way but am not sure if its possible. I have a class I created that can be used like this ...
1
vote
2answers
54 views

Confusion about associations in UML class diagram

--------------------- ---------------------- | FLIGHT | | STEWARD | --------------------- ---------------------- | Arrival time | | Steward ID | | ...
1
vote
0answers
19 views

Keeping Track of Calculation Dependencies [migrated]

Suppose I have a set of calculations: x = x() y = y(x()) z = z(y(), x()) I would like to create a Python class to implement these calculations, being mindful of the dependencies and caching results ...

15 30 50 per page