1
vote
0answers
48 views

Why has JDBC chose to avoid named parameters? [on hold]

The need for this seems obvious. While I can only speak for PHP, the existence of PDO should be sufficient to show it is possible to do in Java. I know Spring JDBC has named parameters, but it seems ...
1
vote
0answers
172 views

Why are so many Python files really big (5k+ lines)? [on hold]

Is there any specific reason driving Python files to often be so large? Python files may contain several classes within one file, and some files go up over 10k lines in length. This seems to go ...
1
vote
0answers
45 views

An efficient way of starting an arbitrary number of consumer threads?

I have a Producer/Consumer implementation where the number of consumers is configurable (this is a form of configurable throttling). The producer and consumer are kicked off like this: var cts = new ...
0
votes
0answers
9 views

Matlab contour matching [migrated]

I am working on matching 2D contours with metaheuristic. I have two images, I want to initialize my contours points in order to match them. But I did not get to do that. How to initialize these ...
1
vote
1answer
52 views

How to deal with interactions between many objects

I've been working on a game in my spare time. I'm pretty much done defining the primitives and until today everything was pretty well segmented and encapsulated but now it's come time to implement ...
0
votes
1answer
35 views

Ensuring non conflicting components in a modular system

So lets say we are creating a simple "modular system" framework. The bare bones might be the user management. But we want things like the Page Manager, the Blog, the Image Gallery to all be ...
2
votes
2answers
98 views

Using a closure to avoid code duplication in Python

Sometimes I find myself wanting to run the same code from a few different spots in the same function. Say I have some function func1, and I want to do the same thing from a few different spots in ...
-1
votes
0answers
20 views

What is setShelfEnabled for in the chrome.downloads API?

I can't seem to understand how it works or what it's really for, because I want to toggle the downloads bar, but apparently that doesn't do it.
5
votes
2answers
311 views

Why is there a new() constraint in C# but no other similar constraint?

In C# generics, we can declare a constraint for a type parameter T to have a default constructor, by saying where T : new(). However, no other kinds of constraints like this are valid - new(string) ...
1
vote
0answers
37 views

Idiomatic AngularJS modal [migrated]

I'm getting to grips with AngularJS - and in my struggle I've read that $broadcast/$emit is overused. Having worked with Backbone in the past, this service seems like a natural replacement for pubSub, ...
-3
votes
0answers
35 views

Python create a virtual module [on hold]

Is there a way to create virtual module in python? Ex, I have a string: "def main(): print 'hi'", and I want to create a module, using this code, but without creating a temporary file.
-1
votes
0answers
43 views

Java tutorial for complete beginner to programming? [on hold]

I am a Java programmer, and a friend of mine wants to start learning programming :) I am excited for this opportunity to help him learn to program. I am mostly self taught, learned mostly online. ...
0
votes
0answers
25 views

Design and relationship of a cursor and its referred object

I need to implement a Cursor class to perform operations on a Document object, which is implemented internally as a simple list of rows. The Cursor class must have methods such as moving around the ...
0
votes
3answers
93 views

How to restrict the violation of an N-Tier Architecture

Recently we fitted a 4-Tier Architecture in our project composed by the following four main layers : User Interface Layer. Data Access Layer. Domain Layer. Business Layer. All the layers fulfill ...
1
vote
0answers
63 views

What algorithm should I use to create an automatic staff scheduling feature?

Imagine a small local business (in my case a dog daycare) with a few dozen part-time employees . The goal is to automatically create weekly staff schedules. My question is about what algorithmic ...
0
votes
1answer
52 views

Code & Review standard; Soliciting Input [on hold]

I am tasked to write a Java code and review standard for a small development team. The team consists of two senior and two junior developers (I am one of the junior developers) and an Analyst. It is ...
-3
votes
0answers
42 views

Monetize Android Widget [on hold]

I have been building apps for about 4 years now and have learned how to monetize them effectively, however, I'm interested in building an idea for a widget I just came up with but have been racking my ...
0
votes
0answers
51 views

JSON schemas vs dynamic typing [on hold]

What are some pros and cons of using JSON schemas versus allowing messages to be completely untyped, or bundling types along with attribute values in the JSON documents themselves? How strong is the ...
1
vote
5answers
131 views

object model and data model

I have heard/read mixed things on whether to start with an object model or a data model. And more people say to starting with an object model as it will ease your data modelling. My question is, ...
2
votes
1answer
74 views

For instance methods, would always returning self or this, instead of using a void return type, be a clean coding style?

I just came across this article, and in particular, this answer. Essentially they're talking about returning self from instance methods to allow for method chaining. That being said, one of the ...
0
votes
1answer
73 views

Application use on website

Is there a good way to run a C# application on clientside in lieu of JavaScript? I have done some front end work with JavaScript and backend C# for web developing at an old job, but I am interested in ...
2
votes
2answers
138 views

Is it good practice to declare and set properties in abstract classes?

I am using PHP and designing some abstract classes. I can declare properties with constant values within my abstract class and access/overwrite them from any class which extends this without re ...
1
vote
1answer
89 views

How do open-source licenses work when the application is for internal use only?

I am writing a MATLAB application that makes fairly heavy use of the MATLAB File Exchange. Most of the functions I use from here fall under the BSD license. My application is being deployed for ...
0
votes
0answers
25 views

Reusable and customizable charting library on top of d3js

I have started building a charting library on top of d3js using javascript's inheritance. My goal is to develop reusable and fully customizable chart components. I read the article: Towards Reusable ...
0
votes
0answers
46 views

Python hosting, what is the link between a local program and a hosted one? [on hold]

I am a python user and all my programs ran on my computer, I have never hosted my program on another website. Now I am wondering, what would be the main difference in a hosted python program and a ...
-2
votes
0answers
18 views

DIBS MAC calculation problem in PHP [on hold]

$msg = "acceptReturnUrl=test.com&amount=100&currency=EUR&merchant=########&orderId=&test=1"; $K = "############################################################"; function ...
0
votes
1answer
54 views

Image coordinates calculation algorithm

I was looking at Jcrop library code for scaled image size calculation, but I couldn't clearly understand algorithm used in following function: ...
-4
votes
0answers
33 views

How to use multi queries in PHP that can solve my problem? [on hold]

I have recently started doing PHP and MySQL. I've done a lot and now I was thinking to apply all my knowledge and build a very simple Social Network just for practice. I am doing it in object oriented ...
-3
votes
0answers
152 views

I'm not understanding what programming even is, can someone help me? [on hold]

I'm an intermediate in computers (mostly on security and hardware). I'm trying to teach myself computer programming, but I don't know how programming even works. I don't know where to begin. I know I ...
-2
votes
0answers
24 views

How to place an ad (from iAd, Admob or similar) within the page so it can be scrolled past? [on hold]

I am creating a news feed like application that requires me to have ads within it. Although, both iAd and AdMob seem to only allow banner ads and full screen ads. I am after an ad format that I can ...
1
vote
2answers
92 views

Git alternative to a shelveset in TFS

I use git for my personal projects, so I have never run into any issues with Git, however I had a discussion at work today and its something that I haven't thought about. In TFS you can store your ...
1
vote
2answers
63 views

Visitor only applicable when using the Composite pattern?

For a long time I've tried to get my head wrapped around the visitor pattern, and somehow this thing keeps being rather fuzzy to me. I'm currently under the impression it is only useful to apply ...
-3
votes
0answers
23 views

I am using VM, I want launch the applet viewer, but I am unable to launch it [on hold]

I am using VM, I want launch the applet viewer, but I am unable to launch it. So can you please give me your valuable suggestions, how to launch the applet viewer in VM. I am waiting for your ...
0
votes
1answer
54 views

Most Appropriate Authentication Type for MVC5 project

I am about to start a new ASP.NET MVC5 project and I am planning the authentication / authorization requirements at present. The client wants Windows authentication, to prevent their users having to ...
1
vote
0answers
23 views

How to choose parameter for Golomb coding?

I am trying to implement Golomb coding, but I don't understand how it's tuned to obtain optimal code. It is said that Golomb coding uses a tunable parameter M to divide an input value into two ...
1
vote
2answers
48 views

Organising models in ASP.NET MVC

I'm building websites in ASP.NET MVC and I quickly figured out that my models are getting harder to organise as they grow. What I normally do is create one model to add and edit data. But in my add ...
0
votes
0answers
31 views

Sequential to-do list using GitHub issues [migrated]

At my company we are using GitHub issues to track issues, bugs, tasks, etc. We have tags for priorities but that is not working really well. What we would like to do is to build a list of tasks that ...
-4
votes
1answer
69 views

What are the differences between lists in C# and arrays in PHP? [on hold]

I am a php developer and I want to learn some basics of C# but I really can't get my head around how lists work in C#. What are the main differences between a C# List<T> and a PHP array?
2
votes
1answer
78 views

Java Communcation API not available for Windows

I want to write a program in Java using RS-232. But I am unable to find the java.comm Package for the windows. Which library should I use for this purpose? ...
0
votes
1answer
57 views

Natural Language to Search Criteria - Date Ranges

Consider an application that stores a set of records that contain: Description Cost Purchase Date I'd like to be able to allow users to utilize natural language to search the dataset. For ...
-1
votes
2answers
82 views

Javascript: Anonymous functions [on hold]

How do I turn this definition of an anonymous function, An anonymous function is a function that is assigned to a variable. Anonymous functions are also used when you want to perform a short and ...
-1
votes
1answer
34 views

Website for process data [on hold]

I am really new to web development, so this question might be really basic. I am doing a project on spam email classification, and finished the machine learning part (written in Python). I want to ...
-1
votes
0answers
43 views

Functional programming equivalents for the following [duplicate]

I am trying to make the leap from functional programs for "hello world" equivalents to more real-world applications. As I come from a Java world and have been exposed to all it's design patterns, my ...
0
votes
3answers
211 views

Understanding object-oriented programming: why is it important? [duplicate]

Just started learning about classes in C++ and I'm have trouble understanding why object orientated programming (OOP) is useful. I understand the syntax, how to use them etc. But I'm still confused ...
1
vote
0answers
59 views

Entity Framework - Loading Related Entities Explicitly

I have been using Entity Framework for a few years. I have flip-flopped between calling out to repositories in my business logic or using lazy loading to retrieve data as I work my way through the ...
2
votes
1answer
77 views

Practical Primes In P

Or rather, practically applying PRIMES in P. I've heard a lot about "PRIMES in P", or the "AKS algorithm". It is, to oversimplify slightly, a very fast way of finding prime numbers. However, while ...
2
votes
2answers
177 views

Are multi-line comments a critical facility in a modern language?

I'm trying to convince the designers of a language that multi-line comments with an arbitrary start and end are important, and should be included. Currently there is only a "comment-to-end-of-line" ...
0
votes
1answer
67 views

What is a web API? (Application Programming Interface)

What is a web Application Programming Interface? Many common sites provide APIs. Why are they needed, and what function do they provide? How does one access a web API?
-1
votes
0answers
20 views

upload website from smart phone [on hold]

I would like to know if this is possible thanks in advance if you reply.I want to take a photo/video on my smart phone and upload it to my website. give it a unique id number add some copy. And then ...
0
votes
0answers
5 views

c++. Smart pointer for a member object of a class whose instance itself is owned by a smart pointer. Necessary? [migrated]

alert--- c++ noob coming from C# here --- class Foo { public: int fooInt; }; class Bar { Foo fooInBar; }; int _tmain(int argc, _TCHAR* argv[]) { std::unique_ptr<Bar> myBar = ...

15 30 50 per page