0
votes
0answers
2 views

Multi-Branch Retail System,how to control items quantity for various branches?

Currently I am developing Multi-Branch Retail software. All branches have the same set of items.However, each one has its own stock quantity. My question is, What is the best practice to apply in ...
0
votes
0answers
7 views

Erlang vs OCaml vs Haskell [on hold]

I want to start learning a new language, and I want it to be a functional language. I know some basic stuff and syntax of ML and F#. I already checked the internet for this answer, and there are a lot ...
0
votes
0answers
6 views

Testing a class which creates objects

Suppose I have some untestable code like this: class SUT def reset # ... @core = SomeDependency.new # ... end end At multiple points through out the code, SUT#reset is called. To ...
0
votes
0answers
5 views

Python card printing problem [migrated]

I wrote a program in Python3.3, that asks you how many cards you would like, and prints out these cards randomly from a deck. Also, you can't get the same card twice. So I set the variable y to the ...
0
votes
1answer
42 views

What is `using namespace` pollutuion?

I was looking at the google coding guide [here] and they do not recommend that one use the using namespace ornamespace:function` - if I did not misinterpret it. Does this apply to std as well? ...
0
votes
0answers
9 views

Designing a backup system?

I'm creating a program that allows you to backup/restore data on an iPhone/iPod Touch/etc. without the need to turn it on. The problem is that I need an effective and efficient way to store these ...
-2
votes
0answers
15 views

Standard DES encryption lib or package for C [on hold]

Is there a DES encryption lib or package for C that is similar to the Java DES package? thanks, John
0
votes
0answers
7 views

News and Image Scraping App

I'm wanting to create an app which scrapes Google and some other news sites for articles, images and videos. The user enters a keyword then the app scrapes news and media for that keyword and delivers ...
0
votes
0answers
11 views

Creating New Wrapper Objects and Extension Classes and Keeping it Organized

Here's my situation: I'm programming an embedded device with a very simple, but customizable LED array display. It's 10 RGB LEDs linearly setup. The LEDs will be used to display many different ...
-2
votes
0answers
16 views

Program which will encode the text with set of numbers and decode the same text using Maps in JAVA [on hold]

I want to write a simple program which will encode a text with set of random generated numbers and then it will decoded. I want to use Maps for it but I don't have any idea how start with. Can you ...
0
votes
0answers
15 views

Estimed number of tries

Problem: The Oscar Committee wants to decide which person should get the best actor award among the given N actors.For that they decided to use a random function random_bit() which returns either 0 ...
0
votes
0answers
11 views

Website creation, hosting, promotion [on hold]

I know little about things mentioned in the title. But I have an interesting idea for a website. I'd like to know what steps there are for this. As far as I know, one has to: 1) write a website 2) ...
0
votes
1answer
18 views

What happens to equal elements when inserting into a binary search tree?

Most BST examples show a sample of a BST with unique values; mainly to demonstrate the order of values. e.g. values in the left subtree are smaller than the root, and values in the right subtree are ...
-2
votes
0answers
22 views

What is the Best JS framework to get started with mobile development? [on hold]

I have some JS knowledge/experience, would like to get started with mobile development using JS. There are so many frameworks around (plus mozilla OS too). Which is the best to get started?
1
vote
1answer
35 views

Type inference + overloading

I'm looking for a type inference algorithm for a language I'm developing, but I couldn't find one that suits my needs because they usually are either: à la Haskell, with polymorphism but no ad-hoc ...
-4
votes
0answers
23 views

Loading a website into String using a program language like Java [on hold]

I want to be able to make a connection to a website but i don't want the website counter to track me and getting info about me. So i want to ask if i use for example this Java code: public class ...
-5
votes
0answers
22 views

How to feed live scores online in realtime [on hold]

Is anyone know how services like scorespro.com collects and feeds the data in realtime ?. I'm not asking about the programming language(Node) or stuffs like websockets which they use obviously to ...
-5
votes
0answers
26 views

Update excel sheet automatic [on hold]

I have been working with one company, they send me excel file with company data. if they make any changes in Master copy(this excel file they have already with them), and when i open the file which ...
-2
votes
0answers
15 views

Pre-requisites for Cloud Computing [on hold]

I am planning to learn the concepts of cloud computing but I don't know how to start??What courses or concepts I should have before starting something related to cloud?Is it more programming than ...
0
votes
0answers
30 views

Splitting and hiding headers in a static library

I am writing a static library for C/C++ (personal project). As my headers became rather large, I thought that splitting my headers would be a good idea. Right now a header looks like this: ...
0
votes
0answers
29 views

Java Singleton fields implementation

I have singleton in Java and I have realized, that I could make its fields static and it would work same way as regular instance fields. Would there be a performance / optimization difference? If ...
2
votes
0answers
27 views

Advice for simple communication protocol (iPod and Arduino)

I connected iPod with Arduino using serial (UART) connection. Arduino sends 0-1023 number (so it's two bytes) as it's samples light sensor value. I'm asking about advice about simple and reliable ...
8
votes
5answers
742 views

Do compiler-writers actually need to 'understand' machine code?

Might be kind of an odd question. A guy writing a C++ compiler (or whatever non-VM language): Does he need to be able to read/write raw machine language? How does that work? EDIT: I am specifically ...
0
votes
0answers
17 views

Query regarding MIT licence

If I download a MIT licences software and modify (add extra code), is it possible to not to include the copyright while selling the software? Will I be the author for the software?
-1
votes
0answers
11 views

Implementing OAuth for Desktop application [on hold]

For a desktop application, how can I get the access token by participating directly in the OAuth flows. I don't want the user to go through browser and provide me the access token. Secondly, how can ...
-2
votes
0answers
8 views

App.yaml error 404 [on hold]

i am using a template for my google appengine site it contains a template directory which have css and and sub directories this is my app.yaml handlers: - url: /templates/css static_dir: ...
1
vote
1answer
28 views

How to secure a Django application's source code?

I have developed a Django application for a company. Now I am about to ship it to my customer. After reading through online articles and books, I understood that securing the source code of any web ...
3
votes
1answer
78 views

Why do some program after installation need the system to be restarted?

I was asked this question in an interview. After installation of programs on windows OS,some program need the system to be restarted while others not. What is the reason behind this? I googled but ...
0
votes
0answers
15 views

What are the main components of a system and their relationships?

I have designed a management system for a medical practice and I am writing the design specification and I am kind of stumped by what to write. It says to include an overview of the architecture of ...
-1
votes
0answers
18 views

Best Practice to store KEY-VALUE pairs in JAVA [on hold]

I want to store following data for comparison in Code Cardinal Direction Degree Direction N 348.75 - 11.25 NNE 11.25 - 33.75 NE 33.75 - 56.25 ENE ...
0
votes
0answers
4 views

WPF Control Lifeycle and Navigating through Containers to set Focus

I wanted to understand a control's lifecycle in WPF. Let me explain my scenario: I have a complex screen containing various container controls hosting forms. Let's say my screen has 3 Accordion ...
3
votes
2answers
83 views

How to manage memory in C interface for C++ implementation considering c++11?

I have a library implemented in C++ which has a C interface. This C interface is, for all intents and purposes, the only way to use this library. C++11 seems to discourage the use of raw pointers but ...
1
vote
1answer
77 views

Why convert to assembly language instead of machine code?

When I compile a C program, it is compiled first to assembly code, then assembled into machine code. I'm curious why it doesn't just convert straight to machine code in the first place.
2
votes
1answer
65 views

Accessing a private array when I have an extension method

I'm trying to make a number of data classes for my C#/XNA game, which would essentially be a wrapper around T[,]: public interface IGrid<T> where T : struct { Point Size { get; } T ...
-1
votes
1answer
27 views

How do I save and load a std::string with object serialization in C++?

I had something simple like this POD structure... struct Actor { string name; int hp; }; Later on, for simplicity sake here, I saved the structure to file using... ...
-4
votes
0answers
23 views

Help Editing HTML, Web-Development [on hold]

I'm trying to edit the html on https://accounts.google.com/ServiceLogin to make it so the "stay signed in" box is checked. I tried inspecting the elements of the box though I can't seem to find ...
0
votes
1answer
14 views

RESTful API resource path for resource with complex relationship?

In my RESTful API, I have Users, Applications, and Tokens. An application has an owner, which is a user. A token is linked to both an application, and a user. A user has both public and private ...
0
votes
0answers
12 views

JSON or XML for parsing for Google Map API

Can someone help me to find a easy way to parse XML? I have an iOS 7 Application using Google Map API. I tried to learn this on my own. I try to create an application that uses Web Services like ...
0
votes
1answer
48 views

Encyption for passwords in config file?

I was wondering, if it makes sense to encrypt passwords for external services stored in my config file with an symmetric encryption algorithm? On the one hand I think, if someone gets access to the ...
0
votes
1answer
40 views

Advise on loose coupling between user controls

I have 5 user controls on the page and each control implements it's own interface that contains properties and events. In order to enable communication between user controls, I am creating a property ...
4
votes
7answers
622 views

Would an “as if” block be a reasonable language feature?

Consider the following "if cast": class A { public void f1() { ... } } class B : A { public void f2() { ... } } A a = foo(); // might return A or B if ( a is B ) { // It's B, go for it ...
0
votes
0answers
36 views

Dedupe while or after write

I have a summary tool written in python that reads input files, and writes them into a summary file. I have the following stipulations: No duplicates. If it exists, add a count to it. Is it ...
0
votes
1answer
38 views

How to make C++ template stack work with basic data types and compound variables?

Templates are nice for similar algorithms of different data types. Say I make a template stack of a basic data type... Stack<int> stck(10); stck.Push(5); I'd pop it... int x = stck.Pop(); ...
2
votes
2answers
170 views

Is there a point in using closures for non-fully functional programming languages? [duplicate]

Maybe I don't understand closures fully but take for example C#, why would I use closures when I can use classes? Am I missing something? Note that I read this one already but my question is specific ...
0
votes
3answers
56 views

Relative encapsulation design

Let's say I am doing a 2D application with the following design: There is the Level object that manages the world, and there are world objects which are entities inside the Level object. A world ...
-8
votes
0answers
70 views

I want to move PHP to JAVA ,How will i do it? [on hold]

I am working on PHP Framework now.I am 23 old . I will have 2 years of experience by 2016.And Company Bond will be over ,and i will be able to leave the company. I worked on ...
-5
votes
0answers
18 views

Closing MessageDialog windows with a timeout [on hold]

GTK - GTKMM In gtkmm messagedialog, How do I set a timeout handler to activate the OK button in the dialog window. I have a timer which counts down in seconds but when it reaches 0 it just hangs. The ...
-3
votes
0answers
111 views

Would it be unreasonable to try to program server software from scratch to avoid server licenses [on hold]

I've wanted to make an app that will use a dedicated server, and I recently learned that there are some expensive licenses required for the software. Do you know anything about the complexity of such ...
0
votes
3answers
231 views

C# - Typical instantiation of new object - is there a way to avoid repetitious syntax?

When learning C# (and OO concepts more generally at the same time) something I found very distracting is exemplified by the following line: ExampleClass exampleObject = new ExampleClass(); It's the ...
1
vote
2answers
42 views

Can the DDD repository modify entity in the DB without an entity object?

Say I have an aggregate root Entity with some flags which are represented by an encapsulated object EntityFlags: class Entity { /** @var EntityFlags */ private $flags; ... } I have a ...

15 30 50 per page