0
votes
0answers
10 views

Dynamic Approach For LCA [on hold]

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

What is the best way to expose services to mobile devices? [on hold]

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
70 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
1answer
54 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
37 views

Run App on server view on client [on hold]

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
1answer
32 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
37 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
28 views

How to test random numbers? [migrated]

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
27 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
40 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 ...
1
vote
1answer
127 views

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

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
18 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
48 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
90 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 ...
3
votes
1answer
182 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 = ...
-3
votes
0answers
38 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 ...
-1
votes
0answers
25 views

Multi layer parallax live wallpaper [on hold]

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
87 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
83 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
34 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
1answer
98 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
43 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
85 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
11 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
94 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 ...
-1
votes
1answer
31 views

What are appropriate terms to define program functionality and program parts? [on hold]

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
1answer
22 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
44 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
24 views

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

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
500 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 ...
1
vote
1answer
52 views

Improving Haskell code performance of this particular piece of code [on hold]

I've used BangPatterns, Lazy ByteString. Don't know what else to do to improve performance of this code. Any ideas and suggestions? -- Find the sum of all the multiples of 3 or 5 below N -- Input ...
-1
votes
0answers
34 views

Visiting specific cells of an array

I am trying to implement an algorithm to fill a single dimensional array with the content of the cells from (a,b) to (c,d), (from 0 to `). How could I do this efficiently ? I can't seem to be able to ...
0
votes
1answer
31 views

Two dimensional matrix-like data type using lists and/or mutable lists

I am trying to think of an implementation of a two dimensional matrix-like data type. Normally I would take an array of arrays but I'm bound to a relatively low language level which only provides ...
0
votes
1answer
60 views

Adding permanent objects to a vector

I'm relatively new to C++ (coming from Java) and I've got a little problem regarding lifetime of objects. My situation is like this: I'm having a class A in which I'm trying to add elements to an ...
0
votes
2answers
410 views

Manage content for multiple websites and mobile apps

I need to manage content (pages, key/value list, assets and more) in one webbased system for multiple websites and mobile apps. My idea is to create a web api, secured with tokens for apps and sites ...
15
votes
3answers
1k views

Which version of Java should I use for a desktop application to reach the most users? [on hold]

Am I correct to assume that most end users are using an older version than Java 8? Since I do not want to force people to upgrade in order to use my application, should I plan it to use Java 7 or even ...
-1
votes
0answers
8 views

Running Labview VI/app/exe on an embedded board [on hold]

I want to run my LabVIEW app on an embedded board but apparently LabVIEW is only supported by x86 Architecture. Is that even possible? If yes then can anybody recommend me an embedded board with a ...
-3
votes
0answers
23 views

Is there a good guide to port Linux software to Mac OS X? [closed]

What is the best guide for porting Linux software to Mac OS X? I'm searching for a step by step guide that goes thru all you need to change in your source code to make it compile and run on OS X ...
-2
votes
0answers
37 views

Advice me - getting started with programming [closed]

This is a question I am asking to get help from the community here, it's not a technical question rather than seeking an advice from experts in the domain. It's been few years for me now getting into ...
-3
votes
0answers
28 views

Specific knowlege and skills for making android apps [closed]

I know this question has probably been posted already but i couldn't find a sufficient answer. I'm interested in learning how to make android apps, i already know how to code in java and i know oop. ...
0
votes
1answer
39 views

Boundary traversal in binary tree

How to perform boundary traversal in binary tree using only single traversal of the tree? I am doing it in this way (not a single traversal): void printBoundary (struct node* root) { if (root) ...
1
vote
1answer
20 views

PHPUnit > Best approach to mock container objects? (e.g. $item->id)

I'm using PHPUnit test doubles to mock models, libraries etc. But when I want to return an array perhaps of container objects, how best to do so. Here is what I'm currently doing: /** * This is just ...
-3
votes
0answers
53 views

Are gdb debugger and g++ compiler (by command line interface) used in industry while developing c++ application software in unix [closed]

Is gdb debugger with command line interface used in industry while developing application software(c++) in unix? If not which IDE will industry usually use while developing application software(c++) ...
0
votes
1answer
50 views

Methods accounting for all input to method

This is more of a conceptual question. Let's say that you had the following enum public enum FooEnum { ALPHA, BETA, GAMMA, DELTA; } And let's say you have the following method: ...
52
votes
9answers
9k views

Bad sign if nobody can comprehend one's code? [duplicate]

If a coder writes code that nobody other than he can understand, and code reviews always end with the reviewer scratching his head or holding their head in their hands, is this a clear sign that the ...
0
votes
1answer
48 views

Lock object in base class: private or protected? [on hold]

I have a base class that contains some lists, queues, and other fields which determine its state. In the base class I only access these fields within a protected lock object since there could be ...
1
vote
1answer
90 views

Polymorphism Question

For the sake of the question I've taken this code from http://www.cplusplus.com/doc/tutorial/polymorphism/ class Polygon { protected: int width, height; public: void set_values (int a, ...
-1
votes
0answers
7 views

Using GreaseMonkey to change Javascript variable [migrated]

I've got a question regarding a website that I use quite frequently. The website is essentially a browser-based air traffic control simulator. The page uses a php script to load the JavaScript ...
0
votes
2answers
44 views

What are some ways to get application settings from users into class objects that also follow proper design principles? [on hold]

I'm really confused how to enable the user to apply application settings for an application they are using (that get consumed by to a class object) AND the method I need to use to get the settings ...
-4
votes
0answers
48 views

Differences between books in the principles of computer programming, and in programming languages [closed]

What are differences between books in the principles of computer programming, and in programming languages (whose purposes are not for specific languages)? I am often confused by them. I heard ...

15 30 50 per page