-3
votes
1answer
22 views

How do I invoke a for loop in a method with argument “self”

def commandType(self): '''P.commandType() -> str ''' for i in self: ......... I want to write a for loop such that I am able to loop through the Contents of "P" object. ...
0
votes
0answers
20 views

What to know prior to open-sourcing a project from legal perspective? [duplicate]

Previous questions and answers are focusing on "usability" and promotion (as if we are living in some ideal world). I am wondering what could be potential negative legal consequences. For example: ...
0
votes
0answers
23 views

Filtering out images that are in the golden ratio

My goal is to detect images that are probably in the golden ratio - by accident, because I take frames from a video that was taken without the intent of having the images in the golden ratio. My ...
-3
votes
0answers
24 views

Database Design: How Amazon stores product data?

First, I would like to specify that the question could be the same with others big websites (wikipedia, facebook...). It is more a design question. Amazon is available in many languages and there are ...
-2
votes
0answers
13 views

Java Start JNLP without paying to certificate authority?

I've noted that now it is difficult to run Java Web start files (JNLP) for Java8, without a proper certificate, due to "security reason". I've found that this a terrible decision by Oracle, breaking ...
0
votes
0answers
19 views

How to organize predefined queries with Entity Framework?

I have some queries that I use all the time (like get rows only of some specific type, or count something etc.). I'd like to organize them somehow (better then I currently do). Currently I have them ...
-4
votes
0answers
44 views

Type checking in dynamic language

Below is the program written to perform the explicit type check(at runtime) in addition to primary functionality(i.e., square root). from math import sqrt def isnumber(thing): try: ...
0
votes
0answers
18 views

DOmain analysis - why OFF points are inside of the domain when the border is open

I have asked on a few other sites, no response but it must be something silly as many authors mention in their books. Here is the best text I found: My ultimate question is: 1Why the OFF point ...
1
vote
0answers
21 views

Managing different Return Types when calling a Stored Procedure in Entity Framework

I am using Entity Framework to call some Stored Procedures to return results for various reports. I would like some of these SPs to return some additional columns under certain conditions based on ...
0
votes
0answers
34 views

Design, how to utilize The Hardware (multiple threads and/or GPU) while indexing (via a database) a very large set of binary files

Problem How can design my file parser to maximize the hardware when processing (creating meta data for) a large file (i.e. how to avoid being blocked by IO and running out of memory) preferably ...
0
votes
1answer
35 views

Should I implement Enterprise Web based apps without backend only REST?

I keep seeing conversations about frontend driven application and using a frontend with REST API directly. For me, the "cover all cases" architecture is: REST API - allow users to use your data ...
2
votes
0answers
47 views

how to find typos and misspellings in code comments [on hold]

I am getting familiar with some portion of code of a very large internal project (over 1 million lines of code) which is C-based and hosted on Mercurial repository. While looking at code, I found ...
3
votes
3answers
93 views

OOP Practice: how to best handle dependent dependencies

I have a problem with the design shown in the picture. My Section class has some TextBlocks (or simply Blocks). The section should be drawn on a page (a Bitmap as device context). It sets the blocks ...
0
votes
0answers
63 views

Best Data structure for implementation of dependent drop-downs

I want to implement dependent drop-down feature on a web page in my website containing the following drop-downs: User's group name Group events (dependent drop-down) Locations (dependent drop-down) ...
0
votes
1answer
152 views

What programming technique is this?

I have two Java classes. The first one is called "Index", and the second one, temporarily, I called it "IndexCache": public class IndexCache { private static Map<String, Index> map = null; ...
-3
votes
0answers
49 views

Chess program with NO ai [on hold]

Just looking for a resource with people more familiar with programming than I am. I am working on developing a HUMAN chess ANALYSIS program (not a game). When I look online for resources, everything ...
-2
votes
0answers
13 views

macro to parce email address into body

I am using Outlook 2007 and Outlook 2010. I have created a rule to move unsubscribe requests into a unique folder. This rule also replies to the sender via template and let's them know their ...
-1
votes
0answers
10 views

embedded dylibs/frameworks only run on iOS 8 or later

I am developing framework which min-target is iOS 5 and above. It is throwing this warning: embedded dylibs/frameworks only run on iOS 8 or later Does this means I should not use cocoa touch ...
-5
votes
0answers
27 views

C++ I'm a bit stuck on what I did wrong [on hold]

//Write a program that calculates and prints the final value of a ten year, $10,000 //investment whose annual return gradually declines from 2% to 1% over that term. #include <iostream> using ...
-1
votes
0answers
25 views

Handling race conditions in C using the most efficient method

I created my own linux apache module in C but after installing it on the server, I found out that in a day, the server receives at least 1,000 requests of which 4 return a segmentation fault message ...
2
votes
2answers
90 views

Best practice A.I. - check all possible moves or pick an objective?

I'm looking for some general guidance on how to produce best practice A.I. The way I understand it, the way A.I. works for games like Go, Chess etc is by considering all possible moves (combinations ...
0
votes
0answers
25 views

Make an android app “Re-configurable”

Story: I am the sole developer of an android app, which is the flagship product at my workplace. The app renders business workflow forms written in XML. These forms have simple structure and provide ...
-2
votes
1answer
62 views

Is visual c++ cross plat

Is VC++ cross platform? If, not how can i make it. Should I just use code blocks for cross platform and include any needed dlls in the project? I'm using OpenGL and need to make my game supported for ...
0
votes
0answers
28 views

Injectable, Poppable Stack

Background A project involves converting a relational expression map (rxm) to an XML/SQL statement. The map resembles: root > people, # "root" keyword starts the document ...
-2
votes
0answers
19 views

Developing a web app interfacing with Gmail

readers. I'm a guy relatively new to programming (I mainly code really basic HTML and fool around with Linux environments) and have something I'd really like to do. Say, for example, that I have an ...
0
votes
0answers
5 views

MSSQL_How to show number's range by a loop? [migrated]

I am using MSSQL to run a query, however I want to simply my current steps by using a loop. Now my script works, it returns me correct result as I wanted: BUT, can I make it simple? Can I ...
-1
votes
2answers
43 views

Making effective use of SIMD instructions without moving whole app to c++ [on hold]

I want to use SSE2 or similar instruction sets for simd to improve performance in my application. My situation is this: I've written some code for the app in c# but I don't mind porting if it's ...
0
votes
0answers
15 views

How to structure Actors and Messaging Queue into an application

What I want to do : Create a pool of actors to asynchronously analyses some user submitted content as it comes in my application of a work queue . Problem: Confused with the amount of noise ...
1
vote
1answer
40 views

Best way to centralise a php project (except bitbucket)

The structure is as follows: A: this is the live/production website B: this is the staging, which is a copy of live C: this is the testing environment for designers 2 developer and 2 designers. ...
2
votes
2answers
109 views

When to create a custom exception in C#

I'm writing a class to interface with a simple hardware device over a COM port. The device can configured to use various modes, so my class has a SetOperatingMode function, that takes in an enum of ...
-1
votes
0answers
17 views

Choosing a frontend framework to rewrite the UI of existing projects

I'm an experienced web developer and my job at this moment is to finish and polish the details of the UI of two projects made with Django. Those projects are using Bootstrap, but one of them has it ...
0
votes
0answers
17 views

Content delivery design

I'm designing a system where users can access files stored in an external content storage service such as AWS's S3. Here's a simple diagram: ------ ------------ ----------------- | User ...
0
votes
0answers
51 views

Should users be allowed to have whatever password they want? No limits [on hold]

Is it dumb to allow a user to have any password? I never understand why some sites have a minimum and maximum limit. and some forcing the user to have random characters. I use PHP's password_hash ...
2
votes
5answers
214 views

Why use a bool over more domain specific abstractions

Booleans are often used to model domain specific dichotomies. The most common example I can think of is the success or failure of an operation. It seems to me that a boolean must be interpreted in the ...
-3
votes
1answer
41 views

Software teams and surrounding support teams [on hold]

Help me understand the need for managers, product managers, program managers, design architects, engineering directors, and all other auxiliary job titles that surround software development but don't ...
3
votes
3answers
53 views

Child Object depends on member of Parent Object

I am wrestling with this OOP design issue. Take these base classes, for example: class Database { public string ConnectionString { get; set; } public Table MyTable { get; set; } } class ...
1
vote
1answer
56 views

Nested REST urls and parent id, which is better design?

Okay, we have two resources: Album and Song. Here is API: GET,POST /albums GET,POST /albums/:albumId GET,POST /albums/:albumId/songs GET,POST /albums/:albumId/songs/:songId We know that we hate ...
3
votes
3answers
92 views

Helping testers who don't have specialized domain knowledge

I am a team lead on a project that develops specialized engineering software. My developers generally have advanced degrees and the domain knowledge needed to work with the software we develop, but my ...
-4
votes
0answers
54 views

I'm about to sell my app. What are my options? [on hold]

I've developed a medical app, which I think is pretty revolutionary. I haven't yet released the app on the market, because the database is incomplete, and I probably won't be able to finish it on my ...
5
votes
3answers
115 views

How does branch prediction work, if you still have to check for the conditions?

I was reading the popular answer about Branch Prediction from http://stackoverflow.com/q/11227809/555690, and there is something confusing me: If you guessed right, it continues on. If you ...
0
votes
0answers
21 views

What is the best approach to creating a geolocation service

I am not sure, whether what I am thinking about qualifies as geolocation, but I will try to explain what I mean below. Say that I have 10 million geo-points from all over the world in a database. ...
4
votes
2answers
157 views

Why does 'zip' ignore the dangling tail of the collection?

C#, Scala, Haskell, Lisp and Python have the same zip behaviour: if one collection is longer, the tail is silently ignored. It could be an exception thrown as well, but I didn't heard of any language ...
0
votes
1answer
90 views

How can frond-end developer support different encoding (UTF-8 , UTF-16,..)other than ASCII?

I'm writing simple language compiler frond-end (based on LLVM) in C++, and I wonder how could language support encoding stuff? How can I (as compiler writer) support encoding? I need to know the ...
0
votes
1answer
37 views

Is Current CoffeeScript Module Pattern Valid?

I have a Node.js web application that's written in CoffeeScript, which has a set of "services". These various services are currently exposed as a CoffeeScript class, which does a few things that I ...
0
votes
0answers
22 views

iOS app - What architecture/design to adopt when consuming a RESTful API?

@begin_background_story I currently work for an iOS app that is aprox. 4 years old. I only joined the team a year ago. In my opinion the code is ugly, full of hacks and has a very shaky ...
2
votes
3answers
124 views

Is it good Python style to write a function that has no effect other than potentially raise exceptions?

Sometimes I find myself writing Python code that looks like this: def check_stuff(param): if condition1(param): return "condition1" # These might be enum values, etc., instead of strings ...
1
vote
1answer
87 views

Portable Data in C# App

I have developed a C# front end app for management of an SQL Database for the purposes of document control. The project this database is for has several consultants and a client spread in a variety ...
0
votes
0answers
20 views

SOC and self-initializing configuration

Disclaimer: I'm using C# for code examples. But I guess they should be readable/understandable for everyone. If they are not: please leave a comment. Okay I have a Client-Server application. The ...
0
votes
0answers
27 views

Google-like search solution for an enterprise application stack using Elasticsearch

I know, title is a little confusing but the problem is, too. I am working on a company, it has several different applications and wants these applications have search functionality. We have developed ...
0
votes
0answers
39 views

What alghorithm can I use to find the biggest subarray within a 2d array with only n different numbers?

Let's say I have a 2d array 100x100 in size, each cell in that array has a number from 1 to 50 randomly. How do I find the biggest subarray in a rectangle size in that array that has only n different ...

15 30 50 per page