0
votes
0answers
4 views

Testing generic errors

I've got a program that validates it's input, and then errors. So far for each kind of error I created a new derived class. But this was getting pretty unwieldy (the input is complex so there are ...
0
votes
2answers
20 views

Control CPU Clock Speed with Software

I am currently working on various performance analysis of algorithms. For this purpose I am for now using my MacbookPro. It completely fulfills my needs as the 4 cores (8 possible threads) also let me ...
0
votes
0answers
4 views

How to use an Address Gazatteer in an application that contains addresses

Say I had access to the post office address file (http://en.wikipedia.org/wiki/Postcode_Address_File) and wanted to cleanse about one million addresses. I am trying to think of an "algorithm" to do ...
-3
votes
1answer
15 views

Why is “$$” the only thing read into my input? [on hold]

I am trying to have my program read input and whenever "$$" is read the program will terminate and not include $$ however when the program terminates the input is only $$. Previously I was using just ...
0
votes
0answers
35 views

What is difficult to write in SQL but easy in other programming languages? [on hold]

I know that SQL is a query language and not a programming language. Still SQL:2008 is Turing-complete 1 hence it should be possible to express everything you can write in other languages in SQL as ...
0
votes
1answer
17 views

How to handle inmutable data on Databases

I'm working on a quotation software. It basically creates quotations for customers based on certains ProductModel that contains n Plan that contains n PriceRange Edit: Here's a ER diagram of the ...
0
votes
0answers
3 views

Using .hta file to read registry values to create checklist

Internally in the company I work for we use ActiveX to do some browser automation to help save time on repetitive tasks. There are times where profiles are messed up or re-imaging happens and it ...
-1
votes
1answer
19 views

Service that compile & test your C code on different platforms [on hold]

I was wondering if there was some service that would compile & run automated tests on different platforms like multiple versions of Windows, Linux, Mac etc. and give you a report about any ...
0
votes
0answers
23 views

memory corrupted using std::vector in constructor [migrated]

Given an array of strings, I am writing a class to separated them into different groups according to their length, i.e. the ones of same length goes to the same group. The number of groups and the ...
-4
votes
0answers
19 views

Is there any problemin my program below? [on hold]

#include<stdio.h> #include<conio.h> int main(void) { int num,i,p; printf ("enter no"); scanf("&d",&num); p=1; for(i=2;i<=num/2;i=i+1) if((num%i)==0) ...
5
votes
2answers
113 views

Why aren't “fat binaries” more widely used for cross-platform applications?

As far as I know, so-called "fat binaries"--executable files that contain machine code for multiple systems--are only really used on Apple PCs, and even there it seems like they only used them because ...
-1
votes
0answers
5 views

How to execute prepared statements inside stored procedures with user vars? [migrated]

I am trying to write a stored procedure to create a temporary table with variable columns created based on the linked data of 2 tables. I get the variable fields to be added to the temp table using a ...
1
vote
2answers
20 views

Should I use indirect properties for the properties of properties?

For the convenient purpose, sometimes I use some indirect properties to set or get some other properties, I give an example class A { public string Text { set { b.Text = value; } get { return ...
-3
votes
0answers
23 views

Does Signal R make MSMQ, ActiveMQ, nBusService and MassTransit obsolete in web applications? [on hold]

on .NET platform we now have a new kid on the block. Signal R for those who do not know, it simply implments a push mechanism and makes it possible to call client side JS code from the server side ...
2
votes
1answer
38 views

3 tier architecture in .NET web applications

We know that nowadays the systems are designed as web applications. Every imaginable system is either converted or planned to be converted to a web app. In Microsoft .NET world the famous three tier ...
0
votes
1answer
17 views

Where to put utitlty classes in php mvc?

I'm working on my first MVC website, where can I put utility classes like Security and Date (my native date) classes, are they model too? App | |--- Model |--- Controller |--- View
0
votes
0answers
5 views

Dynamic Approach For LCA

I reading a LCA Tutorial Where it defines P[1,N][1,logN] where P[i][j] is the 2j-th ancestor of i Why it is using logN and why 2j ancestor is used ? I did not understand it's intuition ?
0
votes
1answer
13 views

What is the best way to expose services to mobile devices?

We are working on providing services to mobile devices(Android, iOS and Windows). These services mostly return data and nothing OS or any programming language specific. We are currently planning on ...
-3
votes
1answer
46 views

If I want write a programming language, what I have to know? [on hold]

I think about to take this course on coursera: https://www.coursera.org/course/compilers What knowledge I absolutely have to have in order to succeeded in this class? In particularly I'd like to ...
-4
votes
0answers
31 views

An algorithm to produce, not necessarily efficiently, another algorithm that efficiently solves the Rubik cube [on hold]

How complex is the task to formulate an algorithm that produces, not necessarily efficiently, another algorithm to efficiently solves the Rubik cube? Has it been attempted before? What is the latest ...
4
votes
1answer
26 views

Should I implement the consumer/producer pattern in my java video app, and if yes, how?

I built a small video frame analysis app with desktop Java 8. On each frame, I extract data (5 doubles now, but could expand to a 1920x1080x3 OpenCV Mat in the future). I would like to store this data ...
0
votes
0answers
17 views

Run App on server view on client

I have been looking for a way for the last couple of months to run an application on my server while viewing on client. The main reasons for this is that the software needs to be updated regularly and ...
-4
votes
0answers
17 views

Create a main method to run the below code

I'm learning Java. I wonder how to run the below code? public class Test01{ public interface Printable{ public void print(); } public class PrintRectangle implements Printable{ public void ...
-5
votes
0answers
25 views

I want e-books related to programming [on hold]

I am new in programming world! . I want e-books related to JAVA , and C#.net . Best Regards, Abdulaziz.
-4
votes
0answers
23 views

What is wrong with this program? [on hold]

Something is wrong with this PRNG, it uses a large (65536 bit) pool of bits from which randomness is extracted in sets of 256 bits, what seems to fail is the bit storage feature (ests,sts,lts,elts) ...
1
vote
0answers
18 views

Pipeline-like calculations with intermediate files: should I use a build system?

I have seen multiple examples of systems that are organized essentially like a pipeline. Each stage produces some intermediate files which are then consumed by the next stage. Also, these take a long ...
-4
votes
0answers
33 views

My trying to make the program decrement every 1 second. It keeps printing 99. What did I do wrong? [on hold]

# SimpleGUI program template # Import the module import simplegui # Define global variables (program state) countdown = 100 # Define "helper" functions def blast_off(): global countdown ...
0
votes
1answer
95 views

Hypothetical : What restrictions will I need to add to Java so that I can remove its GC?

This is a hypothetical, yet very technically precise question I'm trying to ask all the compiler/static analysis programmers. I'm trying to understand the extent of prohibitive features I would need ...
-3
votes
0answers
12 views

Can someone help with a Swift / Xcode error code [on hold]

I am trying to submit an app to the app store (first time), had both iTunes connect and Xcode open at the same time trying to get profiles and certificates back and forth, and downloaded. At one point ...
0
votes
0answers
32 views

C++ ORM - but the other way

After days of searching and studying and making my brain wired I will try to put my thoughts and "questions" here. I think that there are millions of reasons for using ORM tools like ODB (together ...
2
votes
4answers
58 views

Single method with many parameters vs many methods that must be called in order

I have some raw data I need to do many things to (shift it, rotate it, scale it along certain axis, rotate it to a final position) and I am not sure what the best way to do this to maintain code ...
1
vote
1answer
104 views

raw, weak_ptr, unique_ptr, shared_ptr etc… how to choose them wisely

There is a lot of pointers in C++ but to be honest in 5 years or so in c++ programmation (specifically with the Qt Framework) I only use the old raw pointer : SomeKindOfObject *someKindOfObject = ...
-5
votes
0answers
18 views

How to Enable Suggestions on Visual Studio 2010 [on hold]

I Want to enable the suggestions Like This.... PLEASE HELP !
-5
votes
0answers
15 views

Where is the error in this python3.x code? [on hold]

I'm working on homework for my Concepts of Programming class, and here's my code thus far: http://pastebin.com/usjsUN27 Python gives the following error message: Traceback (most recent call last): ...
-3
votes
0answers
31 views

Switching To Agile For Mainframe [on hold]

Our company is discussing whether to change from waterfall to agile for mainframe development. Has someone experience with this situation? What method are you currently using and how did process of ...
-3
votes
0answers
48 views

Bewildered: programming for the real world [on hold]

I'm currently working as a iOS developer. Before that I worked as a full stack web developer (JS, Ruby) while also maintaining the servers (linux). When I started out years ago I did a little game ...
-1
votes
0answers
20 views

Multi layer parallax live wallpaper

I'm just starting android programming, and I'm trying to make a live wallpaper with multiple images and a parallax effect. I load the bitmaps at startup. This is my code for offset changed: ...
0
votes
2answers
69 views

Library design: better to leave potentially destructive feature in with a warning, or cut it out completely?

I recently created a red-black tree in C# to better understand how it works. With it, I implemented an in-order enumerator, however I quickly realized that enumerating a tree can have destructive ...
0
votes
1answer
60 views

dynamic programming with memoization

I’ve a problem with a programming exercise. I hope you can help me. In this exercise I need to find out what the maximum profit is of taking pictures from several items in a park. For taking pictures ...
-2
votes
0answers
28 views

Searching for a master's thesis topic #OpenCL #GPGPU [on hold]

I'm student of computer science, About 1 - 1,5 year ago I started learning about GPGPU, OpenCL, parallel programming etc. I like it, I'm interested in it, I want to do this. Recently I defended my ...
0
votes
0answers
42 views

Styleguide when coding in a static language

I am currently a junior engineer and keen on learning best practices and expanding my experience. My question concerns any static programming language such as Java, C#, C++ etc. When I am writing ...
-5
votes
0answers
34 views

Where can I learn about Dates/Timestamps? [on hold]

Where can I learn about dates and timestamps? My goal is to learn enough to be confident on making/using any date/timestamp. The general information seems to be very fragmented when going to ...
1
vote
2answers
56 views

MVC like design with interfaces: How to handle basic objects?

I have an (android) application and decided that the presentation layer will get data only through strict interfaces from the controller. I am at the point where some basic objects need to be passed ...
-1
votes
0answers
10 views

MySQL on delete cascade some levels [on hold]

How can I use on delete cascade or on update cascade for more than one level? consider: Table1 | |--Table2 | |--Table3 Table3 has a foreign key which references Table2 and Table2 ...
1
vote
2answers
75 views

Estimating run time of algorithm

For instance if i have an algorithm that is O(n2) and it will run for 10 seconds for a problem size of 1000. Now if i were to double the problem size to 2000 i want to know the approximate run time in ...
0
votes
1answer
26 views

What are appropriate terms to define program functionality and program parts?

Let's consider one program, for example windows notepad. This program has the following functionalities: open file,save file... One more example - I and team want to add new functionality to this ...
0
votes
0answers
9 views

Sharing data between bounded contexts

I'm developing a tournament management system that uses a mixture of CQRS/ES/DDD and basic CRUD. I've defined 2 bounded contexts so far: TeamManagement and TournamentManagement. The TeamManagement ...
0
votes
0answers
26 views

Java write to text file from multiple threads

I have a thread which read and insert new lines in same file. I must synchronized that file so that no other thread is not accessing the file at the same time. Here is how i will synchronize a file ...
0
votes
0answers
21 views

Can I use only Delphi to create cross-platform apps? [on hold]

I'm an Android developer working for a small start-up that wants to create a mobile app for iOs, Android and Windows phones. The start up is small and cannot afford to hire that many developers. As a ...
5
votes
5answers
452 views

Am I designing software or architecting software?

A large part of my job responsibility involves taking a user story, developing a technical specification for it, mentoring a junior developer with writing and testing the code against the technical ...

15 30 50 per page