3
votes
1answer
144 views

How do you set and check a single bit in a programming language that does not support bitwise operations?

I'm using a programming language (more a scripting language) that does not support any bitwise operators like AND, OR, XOR, NOT (and shift as well). Common arithmetic and logical operations like + - ...
1
vote
2answers
111 views

How to capture “Display advertisement” use case?

What kind of use case it would be for to "show ad in part of the view"? Who could be the actor to relate with? User or System? As user has no specific goal to see ads, i am wondering what is the best ...
2
votes
1answer
361 views

Should we call Web API from MVC application in same solution?

I am working on a project in MVC that has mobile application so one thing is clear that we have to use Web API so it can used in mobile application. After creating API when we started to develop Web ...
1
vote
1answer
98 views

How should a GUI application written in WinAPI be structured and organized? [on hold]

I've done an extensive amount of GUI programming in Winforms and WPF using C#, and a tiny bit in C++ using MFC. I'm building a personal project using WinAPI mainly to gain a deeper knowledge in ...
7
votes
1answer
537 views

Noda Time vs Joda Time?

In the Noda Time User's Guide, the rationale section states: the public API has been largely rewritten, both to provide an API which is more idiomatic for .NET, and also to rectify some of the ...
1
vote
2answers
117 views

Should all HTTP requests including credentials be made using a POST even if it is actually just a request for data?

Assume there is a request which is going to look up a list of items from a service which requires authorisation (e.g. it's behind a Basic Authentication domain). If the service didn't require ...
1
vote
1answer
181 views

Merge two different API calls into One

I have two different apps in my django project. One is "comment" and an other one is "files". A comment might save some file attached to it. The current way of creating a comment with attachments is ...
4
votes
1answer
474 views

Is there an effective way to test XSL transforms/BizTalk maps?

Creating repeatable tests for BizTalk maps is frustrating. I can't find a way to handle testing them like I'd do unit testing, because I can't find ways to break them into logical chunks. They tend to ...
2
votes
2answers
166 views

Implementation strategies for atomic counter

I basically have a counter variable that is decremented and frequently polled. There are three options to implement that, that I can think of: Number 1: private volatile int count; public void ...
-3
votes
0answers
38 views

C++ code browser to navigate through incomplete source code? [on hold]

I frequently find myself with sets of C++ files that do not compile, they are just pieces of programs. I usually use Notepad++ to look and investigate them. However, I find very inefficient to look at ...
64
votes
6answers
5k views

Why shouldn't a GET request change data on the server?

All over the internet, I see the following advice: A GET should never change data on the server- use a POST request for that What is the basis for this idea? If I make a php service which ...
-1
votes
0answers
27 views

voice recognition technology via browser

I just came across a plugin for browsers that support microphones and voice recognition. I realize we need to ask specific questions here, and this is my first time with this technology. I'm ...
0
votes
1answer
37 views

How to get Datasource JNDI access to work with WebLogic reliably (no NameNotFoundException)?

in a WebLogic web application (bundled and deployed as a Jar) I sometimes get a NameNotFoundException when I try to fetch a datasource using JNDI lookup. The datasource is not shown in the JNDI tree ...
0
votes
1answer
99 views

Implementation of recurring fee system

I'm developing an application which will list members who have not paid their any previous month's fee and a separate list for those who have paid the fee. So, lets say a member who will be paying fee ...
3
votes
5answers
439 views

Proper OO design for State and Command

I'm working (a bit) on a (turn-based strategy) game. There are two classes relevant for the question: State: This is an immutable class, which exposes all its fields (either via getters or another ...
0
votes
2answers
66 views

C++ Data Server and J2ME client communication [on hold]

I am working on a robot that has some AI built in. However, the mandated robot controller does not have the power to do the work onboard. This means that I need to use a co-processor. I am writing ...
0
votes
0answers
49 views

Basic logical operator question [migrated]

#include <stdio.h> int main() { int k=5; if(++k < 5 && k++ / 5 || ++k <= 8) { printf("%d",k); } return 0; } Why is the output 7 and not 8?(I am a ...
0
votes
0answers
2 views

import existing pdf using TCPDF library [migrated]

I'm trying to import an existing pdf file to digitaly sign it using TCPDF library $pdf = new TCPDF_IMPORT; $pdf -> importPDF('example.pdf'); when I do so I get somthing like this So, what is ...
2
votes
0answers
57 views

How to model users accounts in ASP MVC Framework with Entity Framework using code-first approach?

I am working on a small application that requires user login, the application is in c# / ASP MVC 4. The ASP MVC framework takes care of memberships, authentication and authorization features when i ...
0
votes
1answer
285 views

can you have too many dto/bo - mapping method

I have a windows service, 2 web services and a web interface that need to follow the same path (data wise). So I came up with two ways of creating my solution. My concern is the fact that the ...
-3
votes
0answers
30 views

Text to speech software or preprogrammed [on hold]

Looking to see how to program a simple VB program, or maybe already it exists a Text to speech software (for blind people), that will monitor a screen and if text "10" is displayed, then it is read ...
0
votes
1answer
168 views

Best way to implement database design for a set of entities

Lets say I have a scenario like so: I have many claims to get money from another entity and this claim has to go through two gateways. This claim is sent from an origin system and can possibly be ...
0
votes
1answer
115 views

Moving dozens of existing standalone retail sites to one central inventory database: what should I know going in?

This will be the first project of this scale that I have attempted, and the first time I have run a website at all (much less dozens) using an off-site database. In particular, I'd like to know: ...
9
votes
9answers
421 views

What's the better user experience: Waiting once at startup for a long time or waiting frequently for a short time?

I'm currently design an application that involves a lot of calculation. Now I have generally two possibilities which I have both tested: 1) During startup of the application I calculated only the ...
7
votes
3answers
304 views

Does it make sense to develop open source python library for database inspection?

Some time ago I came up with an idea for a library for database inspection. I started developing it and got some very basic functionality, just to check if that's possible. Recently however, I get ...
4
votes
1answer
173 views

Approaches that cater for poor connectivity

First off some background info My company has a software as a service model where people log onto our servers and do work. In order to support that application we have a utility application that ...
37
votes
10answers
2k views

What can one do when “lead by example” doesn't work? [closed]

I have been working for a big company (8000+ employees) for almost 2 years now, and was hired just after I finished my study course. Everyone here has to deal daily with legacy code which is often ...
8
votes
5answers
3k views

When a task can be accomplished by either Javascript or CSS, is it better to use CSS? [on hold]

I always veto JavaScript by using CSS as much as possible. i.e. I create tabs and rollover buttons using CSS rather than JavaScript. I have seen some solutions—specifically the Wt ...
1
vote
4answers
732 views

Sign Language Recognition

I am a final year undergraduate student of Information Technology. My team and I have taken up "Sign Language Recognition" as our Final Year Project. We have just started with it and we are in the ...
-2
votes
3answers
353 views

Suggestion for technology to be used for Library management system [closed]

I am on my planning session to develop a Library Management System for a School. Now the task is a bit confusing for me to decide which technology to opt for to develop the system? I have to options ...
7
votes
6answers
396 views

Project estimation with increasing requirements

Making a project estimation with given a requirements set is one thing. But, what happens when the user suddenly starts changing them on the fly and starts adding new requirements to the already ...
6
votes
12answers
402 views

When is an application too customizable? [closed]

Say you are developing a desktop application, and you want the user to be able to customize menus, buttons, keymapping, and other commands and components. How much customization should be allowed? I ...
14
votes
8answers
3k views

Is the GoF book still the one to read? [duplicate]

Possible Duplicate: Is there a canonical book on design patterns? I'd like to read a design patterns book. GoF for sure is the one to read. But after 15 years is it still valid, I mean ...
8
votes
8answers
998 views

How can you tell if you're really going to be working with the “smartest people”? [closed]

In the same vein as this question, it seems like in every interview an engineer says that they're working with the smartest people. Well it's statistically impossible for every company to have the ...
0
votes
2answers
109 views

Best way to store revision information for quick access to view or revert changes

What I am looking for is the most optimal solution for storing content revisions in an MSSQL database. We have an application that allows users to make changes to small HTML content blocks similar to ...
-3
votes
1answer
38 views

How create unit test the performance of an application? [on hold]

What I want is to run automatically methods to tests the performance of an application. Just like the unit tests, but with the purpose of evaluate the performance and create reports if is it possible. ...
3
votes
3answers
133 views

simple let binding vs constant function

I understand the reasons why I would prefer let a = f(x) over let a() = f(x), especially when f takes is a long running function. I also think it is correct to say, that, considering lambda calculus ...
1
vote
2answers
107 views

Implementing a generic/dynamic custom property system in C#

I have an architecture design problem which I think is appropriate for this site. General problem description: My primary goal is to design a software library/program (C#) to automate a very ...
-2
votes
1answer
54 views

Is there a technology framework which will let me use Postgres as a spreadsheet? [on hold]

We are using Google Sheets to keep track of individual customers, when we should deliver services they have bought, how far we have gotten in the delivery process (50+ process steps) and exactly what ...
-2
votes
0answers
34 views

How to use the browser's (chrome/firefox) HTML/CSS/JS rendering engine to produce PDF? [on hold]

There are nice projects that generate pdf from html/css/js files http://wkhtmltopdf.org/ (open source) https://code.google.com/p/flying-saucer/ (open source) http://cssbox.sourceforge.net/ (not ...
0
votes
2answers
82 views

Does ASCII have a header or footer or anything similar?

I'm working through a problem in Programming Pearls -- specifically, the implementation of a program which sorts a file containing, at most, 10,000,000 integers, each of which is 7 digits long (Column ...
1
vote
1answer
30 views

Microchip XC8: How to pack code against an upper limit?

I have a project for a PIC16F1454 that needs some custom linking. Basically, I've separated my code into two parts that can be downloaded separately in the field and thus update (almost) all of the ...
12
votes
7answers
1k views

What constitutes “Proper use” of the javascript Eval feature?

Eval is a notoriously controversial language feature. Douglas Crockford flat out rejects it. I'm wondering what specific risks Eval brings about. According to this question, Improper use of eval ...
-1
votes
2answers
66 views

Deeper understanding of event loops and timers [on hold]

I have a basic grasp of accepting clients without creating a thread for each connection using tools such as select and modern equivalents (kqueue, epoll). But where do I go from here? e.g async I/O ...
0
votes
2answers
64 views

Separate methods or single method with if statement?

I'm working on a .NET application and I'm wondering if I should use separate methods to handle the click events of two different buttons. They essentially do the same thing, just on different objects ...
-2
votes
0answers
39 views

What are the essential parts of a MVC? [on hold]

I'm developing a Java web application using Java EE and MySQL. I have form objects, authentication filter, controller, models and DAOs. I want to implement basic features of all MVC platforms, so I ...
1
vote
1answer
68 views

Why is Throwable initCause designed to be called only once?

I find it really odd that the initCause method of Java's Throwable class can only be called once, or even not at all (if the constructor accepting a Throwable was used). This makes exception chaining ...
1
vote
2answers
93 views

How far can I drift from my original domain model and still have the benefits of an ORM?

I have the following domain models: public class User { public int Id { get; set; } public ICollection<Product> Products { get; set; } } public class Product { public int Id { ...
12
votes
6answers
1k views

Using nested public classes to organize constants

I'm working on an application with many constants. At the last code review it came up that the constants are too scattered and should all be organized into a single "master" constants file. The ...
-3
votes
0answers
43 views

Tips of how to map out my program/product [on hold]

I have a business idea that I want to start. Now first of all, I don't know if would be better for me to do it as a program, or as a website product with silverlight or whatever. I don't have the ...

15 30 50 per page