0
votes
0answers
6 views

Shortest path to visit all nodes

I am given a set of tourist attractions(nodes identified by x, y) and i need to find the shortest path to visit them. The way i thought of it, is i will ignore if there are streets available and ...
0
votes
0answers
13 views

Why define struct in variable?

Consider the following program: Many people when they want to use a struct, they create a new variable as: struct structureName variableName While it works when you just define it as: ...
0
votes
0answers
7 views

Algorithm for sweeping a 2d shape along a curve?

I am trying to create a graphics application where the user can use an arbitrary shape as a "brush", which will be swept along the drawing path. The shape may be transformed along the path (rotated, ...
-1
votes
0answers
7 views

How do I create the windows explorer kind of search bar with QT

I am currently writing a program with QT using sqlite database and I need to write code to query the database and I want it to be like the search bar in Windows. such that as the user types, it brings ...
0
votes
0answers
8 views

Repository pattern in NodeJS Mongo DB

Hi I am New to NodeJS and starting a new project on MongoDB + NodeJS stack to create a RESTful web API. I am trying to learn what is the standard way to do test driven development of nodejs Business ...
1
vote
1answer
17 views

Template pattern with varying input type in overridden method

I am trying to use template pattern to define a generic algorithm in java. But the method that needs to be overridden, takes an object as input. This object will vary depending on the concrete ...
0
votes
1answer
57 views

Whats the difference between byte and Byte?

Alright so of course, I know the differences. byte is a primitive and Byte is an object. Byte offers more functions but there is one thing I dont understand. Why would anyone create a variable using ...
-4
votes
0answers
12 views

Oracle 11g Multiple database on same Machine

I have developed software in vb6 with oracle as database for Company A database name is abc1. Now I want to have same software for group company B and say database name abc2. both databases abc1 and ...
-4
votes
0answers
24 views

Backup Plan for GIT Server

Dear i am creating my own git server machine for code version can anyone tell me recommended backup plan for the git server . This detail i have to send to my server team members to let them to work ...
-5
votes
0answers
11 views

Simple Reversi realization in Java

Where can I get simple Reversi board game realization in Java for educational purpose? I found only very hard implementations. That is not good.
-3
votes
1answer
20 views

Cross platform app (Windows, Web, Android & iOS), preferably with VS & C# as of end 2014

I recently (end of 2014) read about new technologies from Microsoft about developing cross platform apps (Apache-Cordova and more). I'm pretty unclear with what's going on and what are the options. ...
-3
votes
0answers
20 views

Where do I start with Project Management? [on hold]

I am a sole developer. I work on iOS apps and some RoR websites (and some projects incorporating both). I've been doing this for about six years and feel like I have a pretty good handle on learning ...
-2
votes
0answers
13 views

IOS app with youtube content queston

I am currently developing an iOS app whose main functionality will involve streaming video via http live streaming using MPMoviePlayer. Much of he content will be my own, however I would also like to ...
-1
votes
1answer
50 views

IRC Channels and Programmers why?

IRC is known for normal people as an old chatting network that most think is not used any more. For programmers, it is the best place to get live support, especially on freenode network! If you go ...
4
votes
3answers
248 views

readability vs shorter code in returning from function

In something as simple as int sq(int x) { int y = x*x; return y; } versus int sq(int x) { return (x*x); } the former function requires an extra IL step. EDIT: IL code from the first example, ...
-2
votes
0answers
26 views

Best approach for data storage in custom web app

I'm designing a system with clients where I have following data structure: users table: user,pass,name,address,phone,email,creditcard,verificationcode,ispro,istrial,regdate,etc. session table: ...
-2
votes
0answers
43 views

Selling off an algorithm? Patent, copyright, attorneys… what do I do? [on hold]

I built this financial algorithm that solves a broad problem but has several elaborate modules executing it. I don't think there is anything like it out there and I think it may have lucrative ...
0
votes
1answer
44 views

Why does Git's stash commit need two parents?

Why does Git's stash commit need two parents? In the Hacker's Guide to Git, I see this mental model for stashes: The guide tells me that stash@{0} needs both A and B as parents. Why? Why doesn't ...
-4
votes
0answers
43 views

Replace tabs with spaces in C [on hold]

i want to replace tabs with spaces but i didn't get it. I have an file pointer which i give into the function and there are some \t and i want to replace them with as many spaces as needed. For ...
3
votes
2answers
112 views

Where did the three tenets of OOP originate

It is easy to find the origin of the term OOP coined by Alan Kay when he created Smalltalk, but I can't find if when creating the language he also created the 3 tenets of OOP (Encapsulation, ...
-1
votes
0answers
41 views

Is it worth it to learn Swing? [on hold]

I'm a computer science student (2nd year), and in my university, they teach us java but they do not teach us how to make GUI's wich Java. Here, they say that Java Swing is slow and useless to learn. ...
-1
votes
0answers
16 views

I'm starting off as a programmer and want to expand my horizons, what languages should I try to learn? [on hold]

Ok so I'm what you could call a total newbie at coding, I've only learning html and css (which some don't even count as real coding.) but none the less that's what I've done. I want to get more ...
1
vote
1answer
43 views

Ideas on Model of simple Traffic Simulation

I want to write a simple traffic simulation with one road intersection. First I thought of a cellular automata in the model but it should not be limited by an underlying discrete grid system so the ...
-1
votes
0answers
17 views

Creating a We Based Board Game UI - Where should I Begin? [on hold]

I am trying to create a simple board game. I am writing the back-end in Scala and am thinking of creating a web based user interface. The board game is played using dice and the players have pieces ...
0
votes
1answer
73 views

The Better Parts and Delegation: Is Crockford Too Extreme?

Douglas Crockford has recently been giving a talk called The Better Parts. The gist of the talk is that JavaScript developers should actually avoid a superset of the The Bad Parts, which now includes ...
1
vote
1answer
114 views

Why is close() implemented in InputStream/OutputStream?

It make sense to see close() as non-core functionality of stream objects. This is the reason this method is placed in interface Closeable. One evidence is that class ByteArrayInputStream does not ...
-4
votes
0answers
47 views

C application vs C++ application [on hold]

What are a real life application that is based on C language rather than C++? Why is it using C and not C++ since they are almost the same? Do you think we can convert that application to C++? And how ...
-4
votes
0answers
19 views

Getting the Max Age of a student using Class C++ [on hold]

Please, help me and check my program:i want to use the maxAge() member function to get the student age (Maximum age) entered from the function MAIN using the while loops which i stored into the ...
-3
votes
0answers
17 views

UI Developer Javascript Programming Responsibilities [on hold]

What are the Main responsibilities for a UI Developer when it comes into JavaScript Programming/Development? What area in JavaScript s(he) has to concentrate? Whether s(he) need to be extreme solid in ...
-2
votes
0answers
44 views

What are the pros and cons of uploading company's all code on Github? [on hold]

I am thinking to upload all of my company's code on Github. We provide services to clients and we all also create our own products. What are the pros and cons of uploading everything on Github?
2
votes
3answers
98 views

How to code a one-sided virtual economy

I'm attempting to make an online game with a mini-economy in it. The challenge is that the only person selling anything will be the website itself, and hence the supply and demand curve doesn't apply ...
1
vote
2answers
50 views

Query on hiding implementation details in java

With the below piece of thread related code, I see that author of Thread class is hiding the details about the working of start() method. What a user of Thread class need to know is, class Thread ...
0
votes
0answers
19 views

vert.x message bus architecture

A large part of the vert.x architecture is around the message bus, and message passing between verticals. The main idea I guess being that I can create multiple modules (possibly in multiple ...
-1
votes
1answer
55 views

Thinking in Java 4th edition - How to read efficiently? [on hold]

a) Is there anyone who could give me some tips how to read Bruce Eckel's book efficiently? So far I read 230 pages of Eckel's book in 19 days (i made all the exercises, coded alot) - i went trough ...
2
votes
4answers
43 views

Handle server-side/client-side when for showing missing information as placeholders

I have a database table which stores Incident details. Each Incident can have an image saved for it. There are some Incidents which will not have an image for it. I have an API which pulls the image ...
2
votes
2answers
71 views

PHP package management with/without Composer

I noticed that many (large) PHP applications use Composer for managing the dependencies. I'm currently trying to figure out if I should switch to Composer (at the moment I'm simply keeping my ...
-1
votes
2answers
65 views

Initialize in Field, Constructor, or Argument

If I know what a field will be initialized to, should I initialize it in the field, constructor, or receive it as a parameter? For example, where should I initialize an ArrayList? Initialized in ...
-3
votes
1answer
30 views

How can this allocation of bi-dimensional arrays work?

I was seeing this post on StackOverflow and saw a new way (at least for me) to define a two dimensional array of 5x5, it works well, but I feel I don't understand what is going on in the background. ...
-1
votes
0answers
66 views

Redundant ElseIf-Else Blocks

These types of if-elseif-else blocks appear all over the place, and in no small number (so the less the better). Every time I have to think and decide: Do I want the simpler or the more thorough of ...
-1
votes
0answers
24 views

Unsure on how to start converting my application to MVC

I have a large application in PHP that I have been developing for the last few months and I am unsure on how to convert it into MVC. As I try to build it the questions arise more and more. I chose to ...
3
votes
0answers
43 views

How to model the dependencies between fields in very complex forms

We have to create a web application that will be used as an application form for multiple insurance products (15 in total). This application form will be similar to a form wizard, it will span across ...
0
votes
0answers
24 views

Order data for a fictional online store

I'm developing a warehouse automation system for a client that operates an online store. I've already made a domain model and translated it into CREATE TABLE statements for an SQL database. But to ...
3
votes
3answers
80 views

Why is Win32 API's WM_MOVE being called while dragging the window?

I have two callbacks for WM_MOVE and WM_MOVING. Oddly enough, WM_MOVE is being called while dragging the window. I expected WM_MOVE to be called only when I'm done dragging the window. MSDN says that ...
4
votes
2answers
291 views

What are the valid uses of static classes?

I noticed that nearly every time I see programmers using static classes in object oriented languages such as C#, they are doing it wrong. The major problems are obviously the global state and the ...
-4
votes
0answers
51 views

Where do programmers look for reference/documentation about Java's features/libraries/functions? [on hold]

Rookie programmers learning the language usually use a book or online materials.They are introduced to the language's syntax, common used functions for text processing or math operations. Only a small ...
0
votes
0answers
17 views

Where would you put configurable data to minimize Change Management slow downs?

I want to start by saying I understand Change Management's job especially when there are government contracts and security policies that must be followed. They are invaluable to prevent the mayhem ...
2
votes
2answers
55 views

Shared & exclusive locking

I need a "lock" that can be either shared or held exclusively, that will provide the following behavior for the following sequence of events: Process A: Requests and is granted a shared lock Process ...
1
vote
1answer
51 views

Algorithm to find the fewest number of values (from a set of values) where the sum equals a value (+ one more condition)

The simplest way to explain this is with an example. You're given then number 19 and you have a set of numbers to choose from: 1, 2, 3, 4, 6 When choosing values from the list (which can be ...
0
votes
0answers
50 views

Library in open source app

I am about to release free open source app on Google Play, which uses some classes from danielnadeau's HoloGraphLibrary (bitbucket.org/danielnadeau/holographlibrary/wiki/Home). Library is under Apache ...
-1
votes
0answers
8 views

Using linq to query a collection, gouping and summing certain items [migrated]

For some reason I cannot get the correct vb.net syntax (visual studio 2010) for a Linq statement that will do the following. Simplest and most straight forward code would be appreciated. Here is the ...

15 30 50 per page