-8
votes
1answer
42 views

I want to make a quiz app using C in which it must give at last based upon answers? [closed]

Like there will be three questions and according to options swlected answer will be returned. e.g. Will you return free money ? a. y b. n and two more Based on option answer will be given that ...
-4
votes
0answers
62 views

Trying to flip a picture horizontally in java, any help? [closed]

Need help getting a picture to flip in Java. How do I do it? Here's my code public void flipHorizontal() { Color tempColor; //FILL THESE OUT AND THEN UNCOMMENT THEM! int limit1 = ...
-3
votes
1answer
89 views

Complicated constant in “The Software Equation”?

Why are the constants in The Software Equation so complicated? Here is the equation. where E = Project effort measured in person-months or person-years LOC =Lines of Code estimate for the ...
0
votes
0answers
37 views

Search Page Implementation [closed]

I wish to develop a website to view song lyrics. I choose PHP as my front end Technology. And will keep songs in a text files. I don't know how to start this? I worked for User Interface and design ...
4
votes
2answers
196 views

Does such a design pattern exist? (Multi-Strategy/Multi-Traits)

Is there a design pattern that would allow a class from a hierarchy to 'subscribe to' concrete methods? For example, say you have an abstract base class that requires the implementation of a method. ...
0
votes
0answers
48 views

Options for implementing database and programming logic for statistics application?

I am implementing a statistics driven web application. The statistics relate to sporting events. Right now I have a postgresql database with a table that holds a row for each match. This is a ...
-6
votes
0answers
32 views

How interface used as listeners in java? [closed]

I have seen in Java in many place interfaces are used as listeners in Java. Also whenever we need to access some system service then Java provides interfaces for that. Please tell me why and how ...
-1
votes
0answers
71 views

Emulating an old mainframe or buying a new one? [closed]

Suppose a medium-size company (for example, a wire factory) uses a mainframe (like IBM ESA 390) for its accounting, managing customer data, production stats, transaction processing, etc. that they ...
7
votes
2answers
161 views

How to manage copyright notices from contributors to a BSD licensed project

We have the following BSD license in the LICENSE file: Copyright (c) 2006-2016 SymPy Development Team All rights reserved. Redistribution and use in source and binary forms, with or without ...
-5
votes
0answers
33 views

Java HttpURLConnection how to change URL [closed]

I'm writing a program which needs to crawl through a website to find data. I have managed to use HttpURLConnection to first login to the website so I can collect the login cookies that i can send on ...
1
vote
1answer
90 views

Compiler design prevent register override

I'm trying to write a compiler for a self-designed CPU with accompanying instruction set. The CPU has 3 registers, 2 input registers (B and C) and one output register (D). When for example an ADD ...
6
votes
1answer
172 views

MVC - Do I create 'joint' layers when dealing with multiple models?

I'm new to MVC and the different layers architecture and this is what I have currently: 2 models: User, Company 2 service layers: UserService, CompanyService 2 interfaces which abstract the ...
0
votes
2answers
41 views

DSL definition style [closed]

I am pondering the creation of a DSL. I have modelled the language and discovered several verbs, substantives and attributes. What should the language favour - a large number of verbs or a large ...
3
votes
0answers
52 views

How to efficiently query movies with characters via The Movie DB API?

I have a sort of whiteboard style question about efficiently querying The Movie DB API to find a list of characters in movies. My overall aim is to: Search for a movie by title (1 request) Look up ...
-5
votes
1answer
76 views

Dangerous Dave game parameters live access [closed]

I have searched online for Dangerous Dave source code however I wasn't able to find any. So I wanted to know, is there any way I can access the score and other game parameters while playing the game. ...
-1
votes
1answer
44 views

(Multidimensional array in C) How to make my output in a vertical position rather than in horizontal when the size of the array is n[3][4] [closed]

I would like to have some help. I must find a way that the output must be: A B C 90 60 80 50 100 70 100 20 100 10 50 75 Because the previous output is: A 90 50 100 10 B 60 100 ...
1
vote
1answer
33 views

Does having a EntityBase or DomainBase class violate LSP?

Suppose we have a abstract class EntityBase which is the base class for all our entities e.g. public abstract class EntityBase { public Guid Id {get;set;} } public class Customer : EntityBase { ...
0
votes
0answers
20 views

Range updates on sqrt decomposition (Mo's algorithm) [closed]

In the traditional sqrt decomposition algorithm, a point update and range query is allowed, both achieving O(sqrt(n)) performance. I'm wondering if it is possible to do range updates and range queries ...
1
vote
0answers
21 views

Feedback on simple authorisation system design

I'm writing a fairly simple authentication/authorisation api for an intranet application we are developing. It's my first roles based authorisation system and its a good opportunity for a first ...
1
vote
1answer
140 views

Is stack allocation in Java implementation dependent?

I've looked through the different threads, and there are a lot of conflicting information out there. The most useful article I found was this: Java theory and practice: Urban performance legends, ...
-3
votes
0answers
28 views

Unity3D: Player specific information [closed]

I'm very new to Unity so sorry for stupid question. What are the best practices to store player-specific data for multiplayer games in general and in Unity in particular? Say players share the same ...
1
vote
1answer
66 views

How to avoid having nested generic in class

I'm working on a side project, and I turned on all rules for code analysis in Visual Studio, and I got the warning notice: Warning CA1006 Consider a design where ...
2
votes
1answer
75 views

Best approach to avoid duplication of code meant to run on windows/iOS/Android devices?

I am working on a new version of the following system: A 'main control' service that runs on Windows Server (C#). Clients on the following systems, that communicate with the above service via Web ...
-3
votes
0answers
26 views

Why does a python module work in one python file but not the other? [closed]

C:\Users\AmitSingh\Anaconda2\python.exe "C:/Users/AmitSingh/PycharmProjects/HelloPython.py/exercise 2" The file in the above path can run the command "from pandasql import sqldf" However another ...
0
votes
1answer
22 views

How to guarantee web script execution sequence/order or not parallels queues

This is a very simplified version of the problem: You have an integer saved on a server called "B" and you have an script saved on a server call "A" exposed to the internet. The script pulls the ...
0
votes
0answers
36 views

Trying to understand architecture of my project [closed]

I'm embarking on a project and I'd like to get some feedback on how I plan to implement it. I have a number of IP addresses with vulnerabilities attached to them (CVE IDs). This is in the form of a ...
1
vote
1answer
58 views

Best practice for settings for PHP class for code generation

I would like to have a class create any code from given options and output it in a chosen way. Background I have written class for generation of simple JavaScript code for such cases where is needed ...
-5
votes
0answers
18 views

I want split data's from a column into multiple rows and also with this I want split data's from other column into multiple new columns [closed]

I want split data's separated by comma(,) from a column into multiple rows and also with this I want split data's from other column into multiple new columns. Finally result will insert into new ...
1
vote
0answers
24 views

How to decrease compile time when reading includes over a network? [migrated]

My project is very small but several includes are hosted on a network. Is there a way to speed up compile time and reduce latency without mirroring a local unsynced copy? I've already mapped the ...
2
votes
0answers
34 views

Polygon simplification that encloses original set of points

I have been trying to implement an optimization for 2D sprite rendering to fight the problem of limited fillrate on mobile devices. The idea is to render textured polygons instead of quads that will ...
1
vote
1answer
83 views

Prevent my clients from giving or selling my software using a LGPLv3 library to others

I am developing a commercial closed software using Qt which is under LGPLv3. May I prevent my clients from giving copies to other people?
26
votes
13answers
2k views

Help in understanding computer science, programming and abstraction [duplicate]

Until now, I always believed that you should learn programming languages that make you do low-level stuff (e.g. C) to understand what's really happening under the hood and how the computer really ...
1
vote
1answer
55 views

AGPL affects layout/design?

I've read many times AGPL3 (http://www.gnu.org/licenses/agpl-3.0.html) but I have a question, maybe somebody with a deeper knowledge can clarify me something. I would like to use a source code which ...
0
votes
1answer
109 views

How to let multiple threads write on the same file [closed]

I have got a text file called "vholders.txt". I am making multiple threads as you can see here ,those threads work with their own given data and at last they write their own output to the ...
13
votes
2answers
438 views

What are the reasons for why a Java/Linux stack fails to be “real time”?

I have often heard developers mention that Java can't "do Real Time", meaning a Java app running on Linux cannot meet the requirements of a deterministic real-time system, such as something running on ...
1
vote
0answers
46 views

What's the best way to create a two-level library, containing a class with different levels of abilities?

I would like to create a library consisting of two layers, lets call them A and B. There should be a class "Sample" in layer A. Layer B also knows about class "Sample" and enlarges it by some methods. ...
0
votes
0answers
45 views

Running Java and RIOT-OS together [closed]

I was wondering if the following would be possible to do (but not necessarily easy or the most elegant solution): Fork the open source OpenJDK HotSpot Java Virtual Machine code (written in C). ...
-1
votes
1answer
37 views

Querying Results from End of the table

Normal behavior of the SQL Table is to add new rows in end of the table. I want to query results of single row only. So mysql command is SELECT id FROM users WHERE country='india' LIMIT 1 this ...
24
votes
7answers
2k views

Should a C++ program catch all exceptions and prevent exceptions from bubbling up past main()?

I was once advised that a C++ program should ultimately catch all exceptions. The reasoning given at the time was essentially that programs which allow exceptions to bubble up outside of main() enter ...
2
votes
1answer
65 views

Does exception handling belong at the lowest level of the runtime?

I'm designing a fairly simplistic stack-based programming language, and implementing it in Python. (no link, because it's not fully implemented yet.) The language itself is essentially intended to be ...
2
votes
1answer
62 views

Cleanest way to expand a base class without explicitly mapping properties in C#

Lets assume I have following base class: public class Base { public int Id {get; set;} public string SomeText {get; set;} public string SomeOtherText {get; set;} public static Base ...
1
vote
0answers
25 views

Bounded Context naming and parts of speech

I keep coming up with the following Bounded Context names. They feel right when I just type them out in a text editor, but it's bothering me that they're not the same .. I'm going to use the word ...
-3
votes
0answers
57 views

Google AlphaGo's Deep Learning is done on von Neumann machines or dedicated analog neural chip? [closed]

As far as I read the blog post about AlphaGo, it is taking advantage of the computing power of Google Cloud Platform. But I would like to make sure that it doesn't use any analog neural chip.
0
votes
2answers
85 views

Design pattern to holds API exchanges?

I'm developing a simple application that crawls in web pages to obtain some information. For this I used and tested some libraries, like crawler4j, jsoup, jaunt and htmlunit. I exchanged several ...
4
votes
1answer
51 views

Writing a valid Test Case for validating XMLs

How would I write a unit test, say JUnit, for validating an XML file? I have an application that creates a document as an XML file. In order to validate this XML structure, do I need to create an XML ...
-1
votes
0answers
34 views

How to have both parties “validate” a timesheet of a tutoring session?

First time poster in "Programmers" - needing some help with a concept/process. A customer does in-home tutoring sessions for groups of about 8-10 kids. There are many "tutors" doing this throughout ...
0
votes
0answers
10 views

When would I choose a Lucene/MSFT Search of SQL to store Spatial data?

I need to store the locations of stores and allow customers to query nearby businesses, with a varying amount of filters. The filters in the Search world seem to be named "facets" What reasoning ...
-3
votes
0answers
40 views

Full Stack Development vs Split Stack Development for Startup [closed]

Considering that the design of the website will be done by a person in a different country, and considering that the website is rather complex with a large sitemap and with an high emphasis on the ...
-1
votes
0answers
14 views

Progress in finding GCC config Grail to suppress spurious warnings? [closed]

In translating many C utilities from gcc 4.9 windows to 5.2 Linux, programs which compile cleanly and run fine on windows suddenly produce 225 lines of preposterously pedantic warnings. I would ...
-4
votes
0answers
19 views

What are some best practices for authentication and authorization in offline data sync-enabled applications? [closed]

Consider the case of a suite of client applications that all operate against a common data store in whole or in part. Some of the clients, such as mobile apps, must function even when network ...

15 30 50 per page