0
votes
0answers
27 views

Behavior Driven Testing / Acceptance Tests for python script

I have to write a script which consists of several functions like searching for a text inside a file, checking processes, querying databases ... I am planning to write several classes, each fulfilling ...
-2
votes
2answers
65 views

file quantity limit in a directory on a linux file server and why?

What is a good limit to use on the quantity of files in a directory, and why? EDIT: Why shouldn't someone create a system that puts hundreds of thousands of files in the same directory? Why I ask: ...
1
vote
0answers
41 views

Data structure for traversing hierarchical hostnames

So, quite often I'll come across a situation where I'd like to process hostnames in a hierarchical manner. For example, given a hostname "foo.bar.baz.example.com", I might want to compare it against ...
-4
votes
0answers
28 views

How much/deep node.js should I learn before learning into node.js frameworks [on hold]

Hello guys I just finished recently two books about node.js and played with it a bit. I am wondering how deep/much should I learn before moving into node.js frameworks like sailsjs,meteor,express? ...
0
votes
0answers
83 views

Tips for writing self-documenting Javascript [on hold]

Revising my original question: What tools have people used to make Javascript APIs more transparent? By APIs, I do not mean writing public libraries, just within any non-trivial project, keeping ...
-1
votes
1answer
45 views

Inheritance vs Association in this example

I'm designing a very simple fixed asset management system in Java. The system consists of the following entities as displayed in the following ER diagram. My problem is the design approach to be ...
-1
votes
0answers
37 views

What are data validation best practices? [on hold]

I want to create a data validation class in my application and the data validation class' sole purpose is to check user input before I perform calculations on the user input; what is the best way to ...
1
vote
1answer
89 views

How to respond with error message when making AJAX calls

I have an app that wasn't written by myself. If there is an error such as an invalid ID given as a parameter, I would return something like: (200 code) { "success": 0, "error": "The row ...
-4
votes
0answers
19 views

Does anyone know where I could find JavaScript problem sets? [on hold]

Not sure where to post this, but I am looking for some JavaScript practice problems to try out (of varying difficulties). If you know of any website that hosts these problem sets, or if you have your ...
0
votes
1answer
100 views

How to Understand the concept of Immutablity in Functional Programming [duplicate]

I have come across several sources that say that immutability is a concept that is followed in functional programming. I have come across this concept when looking at collections in Scala where a new ...
-1
votes
3answers
113 views

Generate unique integer from two integers with algorithm

I am currently trying to come up with an algoritm which would take at least two numbers (say user IDs) and then come up with an unique number which is generated based on these two numbers. Each ...
0
votes
0answers
36 views

Genetic Algorithm in Django: Defining an Individual? [on hold]

I'm working on a campus assignment for creating a TimeTable using Genetic Algorithm. I'm using a C++ guide at this site but coding in django using this guide. I'm a beginner in Django programming ...
-3
votes
0answers
55 views

What's the best way to search records when there's no option to fetch All? [on hold]

I am trying to get names of all students of UGA by using this interface but somehow I don't find option to get all records by name. One way I figured out to use permutations like aa, ab till z. I ...
1
vote
0answers
16 views

Breaking a table over multiple lines in Sphinx

Lets say I have the following function with a docstring: def foo(*args): """ do some fooness +----------------------------+----------------------------------------------------+ | ...
-1
votes
0answers
24 views

Best way to approach building search functionality using PHP on existing mySQL Database

I am looking for advice on how to approach an upcoming project I am due to undertake. The reason I am asking is that I'm just out of college and the company I work for is currently searching for a new ...
-1
votes
0answers
43 views

Is Remarkup a Phabricator-invention?

Phabricator uses a markup language named remarkup. Is this a phabricator-invention? I've googled some and my impression is that it's true. I'm curious to know how widespread this markup language is ...
-4
votes
0answers
22 views

Internationalization in website [on hold]

I am web developer working on website. i need a best and simplest method for Internationalization? I am familiar with PHP. Basically i want a selection dropdown at the top of the website. Please ...
-2
votes
0answers
45 views

Naming package `tools` or `utils` [on hold]

Does there exist a convention to name package containing utility functions utils and package containing executable end-points tools?
0
votes
0answers
27 views

Virtual Makeup application jQuery and HTML and PHP [on hold]

I checked a website http://makeovr.com which does virtual make up on an a face . it's done on different category of the image lips, hair, nails eyes and this category further divided into more ...
0
votes
1answer
92 views

Project directory structure

Actually i'm using this project directory structure http://framework.zend.com/manual/1.12/en/project-structure.project.html But recently i started using namespaces in all my php-classes like: ...
4
votes
2answers
401 views

Robustness and pointer safety in C++

I'm currently building a server responsible of storing and managing few million records of fairly complex and interconnected data. For reasons beyond my control the work has to be done with C++. I ...
0
votes
2answers
221 views

What type of structure is this in java?

I was reading the following code listView.setOnItemClickListener(new OnItemClickListener() { @Override public void onItemClick(AdapterView<?> parent, View view, int position, long id) ...
-3
votes
0answers
46 views

What should i learn to create a Virtual Reality World? [on hold]

I'm computer engineering student. Actually more than knowing the answer of this question, i am trying to find ways to make myself code more programs. But this is what i am interested on. For a long ...
-2
votes
1answer
54 views

Tool to automatically save progress while coding [on hold]

I would not code with out version control. But there are times when I need more than just version control. When I have saved stupid changes to a file and have not committed in a little while. Does ...
-6
votes
0answers
46 views

How to make a 2D to 3D converter in Java? [on hold]

I know that there is software out there that creates 3D models/scenes out of a series of images. I am very interessted in how that works and so I would like to do this on my own in java. But how does ...
2
votes
1answer
117 views

CopyOnWriteArrayList: Why do we have to make a full copy of source data?

I have a lot of confusion about Java's CopyOnWriteArrayist. I know, when we have a modification on it like update, insert of set, it will lock the whole list, copy out a total copy of the source list, ...
1
vote
0answers
38 views

Calculating “instability score” for connection quality, programmatically

First of all, apologies if this is posted in the wrong site. I thought it is more suitable here than SO because the question is quite generic, more an algorithm question than a specific programming ...
0
votes
3answers
134 views

How to pick a platform for a new application [on hold]

What should be taken into account when choosing between desktop and web as a platform for a new application? There are definitely a lot of arguments for both platforms but what are the most important ...
2
votes
2answers
57 views

Where to load data for things like a sidebar in MVC frameworks?

This seems extremely basic, but I've read a lot of related questions and haven't found a proper answer. Using Ruby on Rails or other similar MVC framework, how am I supposed to load data that is ...
0
votes
1answer
99 views

What to do if a feature is not supported natively on a platform? [on hold]

If a feature is not supported on a platform natively what would a programmer do? For example, when building an iphone app, if you are trying to slide a picture(just as an example- I know you can slide ...
-1
votes
1answer
56 views

Learning About Different Architecture Set Ups [on hold]

I'm sorry in advance if this isn't a good fit here, as it is a pretty open-ended question. In a nutshell: where / how / when does one learn about application architecture(s)? Normally for web ...
1
vote
0answers
61 views

Handle an error system in RESTful API [on hold]

Given a RESTful API, that receive parameters, send them to the business tier, and return the result the user. Suppose an error occurred in the request (parameters error or logic error etc.). The ...
-6
votes
0answers
36 views

How to get a good internship [on hold]

I am a 3rd year student of computer science from Europe. Due to personal reasons my grades dropped from 8.5 average in the first year to low 7 now, and I have had to take a year off this year where ...
-5
votes
0answers
19 views

creating a virtual museum app on android [on hold]

I'm asked to make a virtual museum app for android for my project? Are there any quick tools, helpful materials or ready templates that can be suggested. I intend to make it picture driven(good UI ...
0
votes
1answer
45 views

Storing Form Data in a class

I have a form that writes to a database. Other than creating a class handle an external API, this project is done. However, the processing script is your standard procedural calling of queries using ...
-6
votes
1answer
85 views

Environment variables in C [on hold]

How are environment variable stored in during run time on call stack? what is the difference between env and environ pointer ? I am looking for Linux and 32-bit machine
1
vote
2answers
238 views

What is the purpose of creating a member function with the same type as its class?

I'm sure I'll botch some of the specific terminology, but what is the difference between object and object2 in this implementation? Is the only purpose of the first method (prototyping the class's ...
0
votes
0answers
129 views

What scientific evidence is there that an 8-hour work day is optimal for programmers? [on hold]

For a long time I have been thinking that it has been conclusively scientifically proven that working more than 8 hours per day is unsustainable, and 8 is just right[Citation Needed]. However, a ...
0
votes
1answer
123 views

What should be in a PIMPL?

I am kinda trying to implement a windowing library in C++, the circumstances are forcing me to implement it all myself, that's not the point of this question however. My question is: What should be ...
-6
votes
0answers
84 views

How can an experienced programmer learn C# fast? [on hold]

I'm an experienced programmer and do most of my day-to-day coding in Python, though I've also used C, C++, and Perl professionally, and am pretty familiar with JavaScript as well. I'm wondering if ...
3
votes
1answer
57 views

Data structures and algorithms for a directed rooted tree with inherited properties?

I need to represent a directed rooted tree in memory. The caveat is, that nodes have properties. And those properties are inherited (but not 100%) by the child nodes, recursively. What would be a ...
2
votes
1answer
39 views

BloomFilter in ruby should have k hash functions

I am reading the Bloom Filter implementation written in ruby. It should have k hash functions, but it looks like the same hash function is being used with different seed values. Is this a common way ...
2
votes
0answers
39 views

Which data structures and algorithms should I consider for a directed rooted tree that has high churn?

I need to represent a directed rooted tree in memory. What would be a good data structure and algorithms for performing main actions, given the particulars listed below? Size: ~40,000 nodes. But ...
0
votes
0answers
5 views

semicolon and commna in for loops [migrated]

for( i=0, i<3, i=i+1 ) for( i=0; i<4; i++ ) I do not understand why they are same. for( i=0, i<3, i=i+1 ) will start with i=0, then i=0+1=1, i=1+1=2, i=2+1=3, then 3 is not satisfied with ...
-4
votes
0answers
22 views

How to show php content in inner php code [on hold]

<pre><?php $my_tabs = ' [su_tabs] **[su_tab title="Overview"] '. the_content() .' [/su_tab]** [su_tab title="General Info"] [su_tab title="Photo Gallery"]demo ...
-1
votes
0answers
20 views

MQ Connection Pooling [on hold]

This site states that connection pooling in MQ was not possible in 2008. Is it possible with later versions? If not is there a simple example/method to utilize MQ from a multi threaded application?
-6
votes
0answers
29 views

FATAL EXCEPTION: main android development [on hold]

I'm trying to access a web service from android to check the username and password in login, and when i click the login button i'm getting this errors 10-19 21:24:46.384: E/AndroidRuntime(18276): ...
0
votes
0answers
15 views

Which Communication Protocol to use for Communication between a Django App and an Android Client [on hold]

I am developing an Emergency Response System. I have developed my server using the Django Framework in Python. I have an Android Client which needs to communicate with the Server. My question is : 1) ...
2
votes
2answers
105 views

Whose responsibility is it to create the interface and/or acceptance testing? Developer or QA? [on hold]

I am a backend developer and always create tests for my applications. Recently I study and apply the interface tests (using selenium), but I doubted whether I who should create these tests, developer ...
2
votes
2answers
82 views

Database Design for Inheritance

In my project I have an object Player (attr example: pl_id, pl_data1) that is one of these types: Its GoalKeeper (attr example: gk_data1) OR Defender (attr example: df_data1) OR Forward (attr ...

15 30 50 per page