2
votes
2answers
101 views

Why must essential mutable derived data have an inverse function?

I was reading the paper Out of the Tar Pit authored by Ben Moseley and Peter Marks when I came across the following section on page 25 regarding essential mutable derived data: Essential Derived ...
0
votes
4answers
108 views

What goes within the Architecture Overview of a Design Specification?

I have designed an management system for a medical practice and I am writing the design specification and I am kind of stumped by what to write for a section. It asks for me to write about the ...
0
votes
0answers
16 views

How to protect and reduce delphi ex5 executable files size? [on hold]

I'm developing a Delphi windows service and this is my first Delphi project i ever had, it works very well it has more than 20 methods and uses quit large number of libraries. I'm a php developer. ...
0
votes
0answers
20 views

CUDA Loop Question - Worthy of Unwinding?

It's a known fact that branching is bad for CUDA. The question I have is a little more specific. I have a (static) loop. Static here means that it follows the exact same path every time, and executes ...
0
votes
0answers
17 views

ListView scrolling issue in JavaFX2 [migrated]

I'm developing a application which has a ListView which contains items which needs complex cell layouts. The cells are in variable heights and some of the cells tends to be larger than the view port ...
-2
votes
0answers
13 views

Get changed file names from QFileSystemWatcher directoryChanged event [on hold]

How can i get changed file names or paths from QFileSystemWatcher directorychanged Signal
-1
votes
0answers
39 views

LEGAL - Using screennames in copyright notices [on hold]

I would prefer to keep my real name private, so I use the name john01dav on the internet. I need to put a copyright notice on a fourm software I am making, I am wondering if I can use the name ...
12
votes
7answers
2k views

Is machine language always binary?

I know absolutely nothing in low-level stuff, so this will be a very newbie question. Please excuse my ignorance. Is machine language - the series of numbers to that tell the physical computer ...
0
votes
0answers
10 views

Sempahores and Mutex Lock [migrated]

two scenarios, what is the difference. I cannot understand which to use. It seems that they basically do the same thing. pthread_lock(&mutex) critical section pthread_unlock(&mutex) vs ...
0
votes
3answers
68 views

what are the things to take in consideration when designing a database that likely will be distributed after some time? [on hold]

We are small start-up now, we don't have a DBA. if our project succeed, it will have a lot of data that will likely need to be distributed over several machines. So we want to make that step easier, ...
4
votes
4answers
144 views

Purposely raising exceptions to use catch

For a typical if...else wrapped with exception handling, is something like the following example a recommended practice to avoid code duplication? try { if (GetDataFromServer()) { ...
0
votes
2answers
56 views

Multi-Branch Retail System,how to control items quantity for various branches? [on hold]

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
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
3answers
213 views

What is “using namespace” pollution?

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
53 views

Designing a backup system? [on hold]

I'm creating a program that allows you to backup/restore data on an iPhone/iPod Touch/etc. without the need to boot it up. The problem is that I need an effective and efficient way to store these ...
-2
votes
0answers
20 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
-1
votes
0answers
15 views

News and Image Scraping App [on hold]

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
28 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
21 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
1answer
81 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 ...
-1
votes
0answers
16 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
40 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
33 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
0answers
50 views

Type inference + overloading [migrated]

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 ...
-5
votes
0answers
26 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
35 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
19 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
1answer
61 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
1answer
79 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 ...
3
votes
2answers
62 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
1k views

Do compiler-writers actually need to 'understand' machine code? [on hold]

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
18 views

Query regarding MIT licence [duplicate]

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
13 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
9 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
40 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
106 views

Why do some program after installation need the system to be restarted? [on hold]

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
21 views

What are the main components of a system and their relationships? [on hold]

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
32 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
7 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
108 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
115 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
84 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
0answers
27 views

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

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
27 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
18 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 ...
1
vote
0answers
33 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
53 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
60 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 ...
6
votes
8answers
942 views

Would a “downcast 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 ) { // Inside block, ...
0
votes
0answers
38 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 ...

15 30 50 per page