2
votes
2answers
18 views

How do I deal with imported modules in GPL?

I wish to release a non-commercial python application under GPL3 in both source and (PyInstaller) executable form. I'm struggling to find a consistent answer to the problem of imported modules. Can I ...
-6
votes
0answers
19 views

I want to convert the entered avlue to other units but i am getting my output of all units as 0.0. Plz help me . Here is my code - [on hold]

package course.example.bighacalc; import android.support.v7.app.ActionBarActivity; import android.content.Intent; import android.os.Bundle; import android.view.Menu; import android.view.MenuItem; ...
1
vote
0answers
10 views

Recommend an approach to decouple Product and Access code constructs, in order to simplify Product testing

I have some code that tightly couples Product specific code and Product-Access code. I am not sure how to untangle it. So for example, for testing Product, I have to mock up Access objects. And ...
-3
votes
0answers
10 views

Problems while implementing RTMPT server

I'm working on the RTMPT server. Seems, that all done correctly, tcpdump's logs shows no difference with Red5. Flash Flowplayer successfully passes handshake, creates and starts stream, initializes ...
-3
votes
0answers
79 views

How to use my holidays productively? [on hold]

I currently work in Financial IT after having graduated a year ago. Whilst at university I felt like I was starting to learn concepts of how to structure a program 'well' and focus on analysis, ...
0
votes
0answers
41 views

Correct name for expression tree merging

Suppose some n-ary tree, representing some expression: A and (B and (C or D)) or (B and (C or E)) A / \ B B / \ / \ C D C E And consider ...
-1
votes
0answers
64 views

Is there a keyboard with a specific layout for programmers? [on hold]

Programmers use a lot of different keys than e.g. writers. A lot of the times we have to use the SHIFT key to get a >, " or { or other usefull combinations. Is there a 'programmers keyboard' with the ...
1
vote
1answer
118 views

How can I encrypt or remove readability of source code before publishing it?

I am working on a collaborative project, for which I have to submit source code, which will be used/embedded in the main repository for re-compilation. Is there any way, I can encrypt the source code ...
7
votes
2answers
168 views

Why can't the Scala compiler give pattern matching warning for nonsealed classes/traits?

If I use an unsealed trait or abstract class in Scala and then use pattern matching, I wonder, does the compiler not know at compile time for this particular patternmatch what possible implementations ...
-1
votes
0answers
24 views

How can I protect my add-in application from cracked versions of ArcMap [on hold]

I want to allow only licensed ArcMap to use my Add-in application, and/or prevent a cracked version of ArcMap from using that add-in application.EsriLicenseStatus Constant can't control if the version ...
-2
votes
0answers
19 views

Find the number of increasing Sequence of length K

Let we are giving a Array we have to find the number of increasing sequence of length K. 1 2 3 1 1 For the first window of [1, 2, 3], there are 3 non-decreasing subranges so the answer is 3. For ...
1
vote
2answers
87 views

What's the etiquette on looking at the other person's email when pair programming?

To me - if you're pair programming - then you don't open your email, or you decide you're cool with the other person looking at it. I've worked with a person who looks away, and expects you not to ...
0
votes
1answer
19 views

Is Exploratory testing Context Driven testing?

I do not think so, yet many sources say it is. As I understand it: Context-driven testing means that when planning testing on our project, I choose the methods, practices, etc. in order to fit the ...
0
votes
0answers
8 views

Hosted sharepoint 365 howto design a transaction table with a multiple sell/purchase option

I've got a design question with Sharepoint 365 (hosted at Microsoft). Preferable without adding custom code, or with minimal custom coding. My background I'm a developer who works in a small machinery ...
-1
votes
0answers
19 views

Django Multiple Databases Fallback to Master if Slave is down [on hold]

I have master - slave replication setup for MySQL db backend for Django. Currently I am reading and writing for Master DB only, but my dashboards are quite query intensive. I was searching for an ...
-3
votes
0answers
45 views

Material on advanced C++ features [on hold]

I'm an experienced C programmer currently working on learning C++. Since I'm mainly interested in its advanced features I was looking for the following. Is there any tutorial or similar out there that ...
0
votes
1answer
57 views

Periodically polling an API, are there alternatives?

I'm currently working on a service that is supposed to aggregate data from a number of APIs, unify the data, and offer it through another API to the users. I had a couple of ideas for solving this, ...
0
votes
1answer
27 views

Java Unit testing multiple test cases in one test

Is it good practice to have multiple test cases in one test or should I always create one test for single test case in every situation even if it is redundant? Why?
-4
votes
0answers
26 views

Any birdview article about Web development with Java? [on hold]

I am new to Java Web development. And I am tasked to create a prototype with Java and related technologies in a short time. So I am looking for some birdview article about the Web development ...
-4
votes
0answers
25 views

Wordpress site prevent acces wp-admin of live [on hold]

I have a wordpress site on my production server now the point is i want to stop the user to access the admin panel of the production server www.live.com/wp-admin And to change or access the admin ...
0
votes
0answers
13 views

Is having a parent controller to manage a set of tabbed sections an anti-pattern for an angular application?

A lot of times, I have long forms that I divide into multiple tabbed sections. Each section is managed by it's own controller and there is a parent controller that manages the whole view. I use ...
1
vote
1answer
55 views

How do I Create Automated UI test code for application developed using Domain-Driven-Design with very little concrete UI requirements?

We are developing an application using Domain-Driven-Design(DDD). We have to come up with Automated UI Test code. The customer has used 3rd-party GUI Administration template ...
0
votes
2answers
23 views

What is the hierarchical DB schema for this xml?

As per this link, this is the xml that maintains "BookStore" data. I see that number of occurences of author are varying for any book. xml's hierarchical representation of BookStore looks more ...
2
votes
1answer
70 views

Most efficient/cleanest way to Kill a recursive thread safely

I have a number of worker threads which all perform a flood-fill task on different regions of a bitmap. They all make calls to a recursive sub-routine with different parameters(coordinates). Fyi, I am ...
0
votes
1answer
40 views

Calculating physical address given only an offset for my process

Learning about virtual memory with an program assignment. Currently this is what I have: Main memory has 60 bytes and virtual memory another 60 bytes. The size of a frame/page is 10 bytes. So there ...
2
votes
2answers
105 views

OpenGL vs OpenCV for beginner

I am a freshman college student currently learning C++ programming. I am good at math and physics, so I am looking to specialize in 2D/3D graphics with OpenGL. My question is about the differences ...
0
votes
0answers
42 views

How to Keep Track of Thread Safe Code in a mostly Thread Unsafe Legacy Rich C++ Code Base

For large legacy C++ code bases, notions like Herb Sutter's "const means threadsafe" don't seem to help much, because there can be an overwhelming amount of code in const functions which are modifying ...
3
votes
0answers
18 views

Toggling “maintenance mode” in Java EE app

I've been toying with the idea of feature toggles for various configuration/access purposes, but have been a little unsure of myself when it comes to toggling something like a downtime or maintenance ...
-2
votes
1answer
53 views

How common are use SDLC methodologies in real life?

My instructor told us that some programmers are not using SDLC methodologies for making a system. Because in our project, we used one of the methodologies. If we do not use one of them, maybe our ...
-1
votes
0answers
12 views

Web Service To Upload Data And Expose As API

Is there a SAAS solution that'll let me upload my data and expose that data via an API. My data is mostly simple; 90% of it can be represented by a CSV. There are some 1-Many, Many-1, 1-1, and ...
0
votes
3answers
34 views

Standard practice to publish and source-control a single file?

I often want to publish some useful standalone script - e.g., a matlab script which converts flac files into wav files. If it were a big project I would immediately place it in Github, however it ...
3
votes
4answers
115 views

Algorithm to test file equivalence

I'm writing a program that needs to test if a file is equivalent to one or more other files. To accomplish this, every time we see a new file we stat the file and get the size. We use the size as a ...
0
votes
1answer
49 views

AJAX - What exactly does that encompass?

So I see on a lot of people's resumes they list AJAX in their technologies (or programming languages - and I recognize that it is not a language). To me, AJAX seems like such a small concept to be ...
-3
votes
0answers
60 views

How to keep legal rights when hired to make a program [on hold]

I have been hired to make an iOS application where I will be given a set amount of money for completing different stages of development. I want to keep the rights to the code, however, so I can use ...
31
votes
5answers
2k views

Are all magic numbers created the same?

On a recent project, I needed to convert from bytes to kilobytes kibibyte. The code was straightforward enough: var kBval = byteVal / 1024; After writing that, I got the rest of the function ...
1
vote
0answers
14 views

Compose nested EventEmitters elegantly

I am developing a server-side JavaScript tool, and trying to do so in a modular way. I have a Parser class that is an EventEmitter - you call parse and it will eventually emit data and end events. It ...
-3
votes
0answers
38 views

Input data type conflict causing infinite loop [on hold]

The code below shows a simple program, which is a small piece of code from simple math game.But in the add() function...if we cin a data type other than an int..the console displays Try again ...
2
votes
2answers
139 views

What is a good word for the current “state” of a state machine? [on hold]

My computer program has a state machine inside it, and I am currently documenting a database table that, among other things, reports the state of that program. I am looking for wording that is ...
0
votes
0answers
6 views

Insert Dynamic HTML content for Electronic Catalogue - Magazine [migrated]

I am making an electronic book(magazine). But i have 200 pages(in jpg format). So, in order to avoid writing the same line code for 200 pages i want to find out how to do it with javascript and php. ...
-4
votes
0answers
12 views

How to change the options of a select tag b when select tag changes option? [on hold]

I have 2 select tags: 'a' and 'b'. What I want to do is upon selecting an option in select tag 'a' I want the options in select tag 'b' to change value. example: In option 'a' "Institute of Accounts, ...
-6
votes
0answers
32 views

Notepad++ is making my .html.erb files highlighted odd colors [on hold]

new Ruby on Rails dev here, coming from a Java background. I'm using Notepad++ to do all of my editing. When I open an .html.erb file, it has no syntax highlighting at all. So, I tried associating it ...
7
votes
1answer
69 views

Why are Scala's Either and Option types not interfaces/traits but classes?

I wanted to create a class CompileResult, that can be treated like an Either type but has some additional useful methods. It should be a CompileSuccess or a CompileFailure (which, too, has some ...
2
votes
4answers
79 views

REST-full design: recommended approach for fetching related entities

Suppose I have two entities author and post, were every post has an author. There exists a REST call to get a paginated list of posts: GET /posts?page={page} a REST call to get a list of authors: ...
-3
votes
0answers
62 views

Why hasn't USL become as important as UML? [on hold]

I've been reading this articles, they talk about how the Universal Systems Language is used to make unbreakable systems. Why isn't this used in common software projects? Why we use other approaches ...
0
votes
1answer
35 views

Name for an ancillary executable [on hold]

I'm a stickler for naming conventions and for their consistent use. I'm writing an application that consists of a windows service that is in charge of maintaining x number of running instances of ...
0
votes
1answer
40 views

In a REST based system should a request for a sub-resource include the parent

I'm unsure of REST best practise in the following scenario: GET /Customer/23 = returns Customer = OK GET /Customer/23/Orders In the second request should a Customer AND the Orders be returned, or ...
0
votes
0answers
11 views

Producing JSON objects from JPA entities in REST API

I have a REST service producing JSON and consuming JSON. A lot of this are simple CRUD operations. My initial idea was to simply use the DAOs directly in the controller: @ResponseBody() ...
-5
votes
0answers
19 views

Find records with a date field in last 24 hours using Laravel [on hold]

I have a question. How can i select data from database in last 24 hours with Laravel? How query looks like for that kind of action on database. Thanks in advance.
2
votes
1answer
107 views

Why use a enum to create the singleton pattern [duplicate]

Why would you use an enum to create a singleton pattern? To what purpose would it serve over a conventional singleton pattern? I have seen the above used. The code uses an enum to create this pattern ...
-4
votes
0answers
14 views

When I run apache tomcat 7.0 It is showing port 8005 required by tomcat v7.0 server at localhost is already in use [on hold]

When i run tomcat server in eclipse Juno it is showing tomcat serverv7.0 is already in use in local host. But i stopped all the services that are running in local system, and i have seen on command ...

15 30 50 per page