All Questions
0
votes
1answer
15 views
Do bare computer system (without OS installed) use (executable) files?
As far as I read, files are introduced in OS books. Before an OS is
installed on a bare computer system, does the computer use files?
In particular, executable files have formats in OSes, e.g.
...
0
votes
0answers
13 views
Finding the first subarray that sums to a given total
I was in an interview the other day and was asked this question...
Given an unordered array of positive integers how can you find the first subarray that has a total sum of a given number.
I came ...
0
votes
3answers
67 views
How do you iterate through an array and delete an element?
I have an array and I can iterate through it. I know that it is impossible to change the size of an array; however, how do I take out a certain element that I not want in the array anymore?
Example: ...
-2
votes
0answers
28 views
need help understanding these instructions, using java ----polymorphism, interfaces---
I will create a LogNode class in which it will contain a log entry and a link to the next LogNode. I a log entry that will work for all the log entry classes.(I will have 3 logEntry classes)To hold ...
0
votes
0answers
19 views
Different license for logo files
I'm working on a software that I intend to release under the terms of the GPL 3. However, I'd like to exempt the name and logo: the images with the logo should only be used with official releases, and ...
-3
votes
0answers
18 views
How to get file extension in JAVA [on hold]
How to get file extension in jdk1.6 without string manipulation and FilenameUtils.
I want to make a lightweight application which performs file operation on large number of files (approx. 75000 ...
0
votes
0answers
16 views
How to create good positive and negative images for opencv to distinguish smiling from not smiling?
My goal is to create an opencv haar classifier xml that distinguishes between me smiling and not smiling.
I created images, cut them, showing me smiling and as negatives not smiling. About 5000 ...
1
vote
0answers
8 views
How to handle Django get-single-instance-in-view pattern?
A lot of my Django views start a little bit like this:
try:
# here request.POST could also be request.GET or a captured URL parameter
MyModel.objects.get(user = request.user, some_attr = ...
-2
votes
0answers
21 views
(CQRS) with ASP.NET MVC5
I have a project and want to implement that,using ASP.NET MVC5 and N-Layer architectural pattern.I become interest to use Command Query Responsibility Segregation (CQRS) in my project.I am new to CQRS ...
-3
votes
0answers
23 views
what linux distribution suits this needs [on hold]
I want to create a software to be setup on any linux distribution
I want it to be
- lightweight
- fast
- simple
- good touch support
the most important thing is that I want it to run as a single ...
0
votes
1answer
27 views
Algorithm for the Simplication and Evaluation of Equations
As a new programmer messing around in python, I've been playing about with writing small programs which can calculate some of the stuff I did in maths at school.
I've been trying to think of a way ...
1
vote
1answer
64 views
Working on Free Software
My main experience is with iOS, but I'd like to move into writing free and open source software instead. Are there many jobs out there that allow you to work on projects like this? I've looked on the ...
-4
votes
1answer
59 views
Is there is a way to pass more than one value to the calling function in c++?
I'm new at computer science and programming, Can any one give me a hand to know "Is there is a way to pass more than one value to the calling function in c++". Explain how?
0
votes
1answer
53 views
Observer pattern without state change?
My question is whether there is a similar pattern to Observer that does not imply a state change in the observed object. The following is a concrete example:
I have a ConnectionFactory class which is ...
-1
votes
0answers
15 views
NFC reader and passing data to browser
I'm working on my university project. The main goal is to transfer information from android application to web browser on a pc(windows) via nfc connection. During my research I found some articles ...
-2
votes
0answers
17 views
Programming job titles Categories? [on hold]
I have read a article some time ago, and now I am having trouble to locate it. The only details I can recall is that it is linked from the Hacker news site(https://news.ycombinator.com) and some ...
-2
votes
0answers
31 views
Which Keyboard-only Editor are out there? [on hold]
I like the idea of not needing to use the mouse while coding. So recently I started learning emacs and wanted to try vim afterwards. I got even more into the idea now after just learning a few of the ...
-1
votes
2answers
52 views
Counting digits of a decimal number
Is there an algorithm to count digits of a decimal number other than saving it as a string and then looping to find the decimal point and thus count the digits?
0
votes
1answer
67 views
What's the algorithm should I use for seeing how well 2 strings match?
Suppose I have 2 strings:
string1 = "home/lisa/Music/some_files/01.05 - Garden Ground.mp3"
string2 = "Music/Jim Smith/Unknown/(Deluxe Version/Garden Ground).mp3"
string4 = "Music/Jim Smith/Unknown/00 ...
-2
votes
2answers
28 views
how to load html data into dom in javascript/jquery
My page has multiple containers along with some elements. I performed drag and drop operations on the container elements. Initially i stored the element sequence structure and later after all drag ...
-2
votes
0answers
21 views
How To create .htacces File For website [on hold]
My Code Is Here-->
function get(tab)
{
var city=document.getElementById('city').value;
if(tab=='Cuisine'){
location.href='index_cuisine.php?tab='+tab+'&city='+city;
}
...
-1
votes
1answer
39 views
How is the UnitOfWork pattern related to Monadic programming?
Looking over the definition of the Unit of Work pattern it seems very much like what a programmer would get if they implemented a Monad such as an IO or Transaction Monad. What makes the unit of work ...
0
votes
0answers
21 views
How can I model this scenario in a graph database?
I'm developing an application where users can tag resources and it's also important to know who tagged the resource with a specific tag.
A graph database seems like a good fit for this and the rest ...
1
vote
0answers
33 views
Is there accepted decimal-based Unicode notation for technical audiences?
When writing for technical audiences, there are various ways to type Unicode representations, but they all seem to be Hexadecimal:
\uFFFF - From C# / Java Strings
\U0000FFFF - From C# / Java Strings
...
1
vote
1answer
54 views
More efficient alternative that checks if a list can be made a palindrome
I asked this question on Stackoverflow, but they told me this is the best place to ask.
For my algorithms and data structures class, I have to write an algorithm that is more efficient in the worst ...
1
vote
1answer
25 views
Paravirtualization and process virtualization: with or without hardware support?
In Tanenbaum's Modern Operating Systems, fourth edition, about virtualization:
Are Virtualization without HW support, Virtualization with HW support, Paravirtualization, and Process virtualization ...
-1
votes
0answers
48 views
Should I bother to learn c++ for game programming? [on hold]
So I'm a cs major and I want to start building some stuff in my spare time, namely some games. However all I know is java, and python but I hear that c++ is used alot for games. Should I bother to ...
1
vote
0answers
16 views
How can I build a seamless login for multiple sites using OAuth2?
The question is admittedly a bit leading, but what I mean to ask is:
If a user logs into into site X, is there a way to automatically log into site Y? Site Y utilises single sign-on via OAuth2 ...
2
votes
0answers
41 views
What is the correct approach for creating an application around a library?
I have a library that defines messages. In my particular instance, it's autogenerated code from an XSD using JAXB (Java). The messages can be very complex, with some members as objects and those ...
0
votes
0answers
19 views
Limiting repetitions in Backus Naur forms
Is there a method using Backus-Naur Form (BNF) to limit the number of repetitions?
Let's take the description of a decimial number. A decimal number will consist of 1 to many digits. Is there a ...
0
votes
1answer
49 views
To One Repository or Two
I have a C codebase which supports a number of build personalities, for a given board architecture. It's mostly in maintenance mode. We don't do new active development on it.
We have a new board for ...
4
votes
1answer
48 views
Compute Adjacent Pair
I was asked the following question as part of an interview:
Integer V lies strictly between integers U and W if U < V < W or if U > V > W.
A non-empty zero-indexed array A consisting of ...
1
vote
1answer
16 views
Mixing REST and websocket in the same API
A bit of background first, I'm working on an application that manages a piece of physical equipment with motors, stuff like that. When I started on the project, there was an existing application, ...
-1
votes
2answers
36 views
Should POJOs be abstracted?
My coworker tends to have each POJO implement an interface.
Like Customer would implement ICustomer, with the motivation that we can now have multiple implementations of ICustomer. One example would ...
1
vote
2answers
53 views
What is better for scalability for this specific dataset, MongoDB or MySQL?
I have a web app which has users, forms, and volunteers signed up on those forms.
Currently I am using MongoDB and have it setup with a collection for admins, and a collection for forms with ...
1
vote
1answer
64 views
component-based power system for a game
My issue is that I've been trying to implement a power/electrical system for a while now. I'm using Unreal Engine 4 with C++ but that's not really relevant.
I'm trying to implement some sort of ...
1
vote
1answer
33 views
Is using triggers best solution for this scenario
A large SQL transactional database has more than 100 tables (and it will grow). One of them is called Order. Then, there is another table WorkLoad which derives from Order and many other joined table ...
-5
votes
0answers
34 views
Career Move — PHP to .NET/Java [on hold]
I have been interviewing for the last year trying to figure out where I want to land in terms of location (going back to Phoenix, AZ where I was born and raised) and I am now having an issue with the ...
0
votes
1answer
50 views
Is it a good idea to include extra libraries in jars?
When creating executable jars for a java project, it is possible to create jar bundle which includes all the external libraries used. It is also possible to create a jar without those external ...
-5
votes
0answers
32 views
Help with boolean values in paameters [on hold]
My code is always returning the value as if the boolean is tru even though i have it as false inn the test case
my code is:
public class HealthRecord
{
static boolean dependent;
static ...
3
votes
1answer
54 views
Do conditional delegation or different member types break the Composite pattern?
Here's how I understand the composite pattern:
In the composite pattern, a root object is composed of objects which may be further composed. Moreover, to be considered composite, all those objects ...
1
vote
0answers
28 views
Design ideas - validation based on conditions outside of the domain
I am facing a very interesting problem here, and I'd like to see some design ideas from domain driven design perspective.
To make it easier to express what I need I have following hypothetical ...
2
votes
1answer
60 views
Is Dependency Inversion a valid alternative to the pImpl idiom?
If I want to present to the user of my code an interface, that is unlikely to change, I can write only the public part of the classes in public headers and have a single private pointer to another ...
-5
votes
0answers
25 views
Depth wise distribution of children in json tree [on hold]
I have a json tree of the form
{"id":442500000904671234, "reply":0, "children":[{"id":442500532536893440, "reply":1, "children":[{"id":442500826561785856, "reply":1, ...
-6
votes
0answers
48 views
Python code for file - PyPDF2 question [on hold]
I am new to Python - I am using Python 3.4 but most of the online sample code I can find are for Python 2. In particular, the package I am trying to use, PyPDF2 has sample code:
...
-1
votes
1answer
20 views
Extracting client specific code. refactoring possibilities required
I am facing a Design problem. I have a set of classes which writes data in XML,JSON or HTML formates for different clients.
I have a class which receives Data and a XML, JSON or HTML writer as it ...
0
votes
0answers
9 views
Extracting client specific code. refactoring possibilities required [duplicate]
I am facing a Design problem. I have a set of classes which writes data in XML,JSON or HTML formates for different clients.
I have a class which receives Data and a XML, JSON or HTML writer as it ...
0
votes
3answers
81 views
Is the Model part of MVC an inner platform
I'm not particularly up on MVC as an architecture but isn't the Model just a duplication (except slower and buggier) of the database?
Given modern databases support stored queries, user definable ...
1
vote
1answer
124 views
Is SICP still relevant? [on hold]
Today, I came across this book entitled:The Structure and Interpretation of Computer Programs
I read the Table Of Contents and it really interests, me. It seems to be exactly what I've been looking ...
1
vote
0answers
30 views
How is ORB distinct from an endpoint?
What, fundamentally, am I misunderstanding about how to use appclient?
The Application Client Container (ACC) includes a set of Java classes,
libraries, and other files that are required for ...