0
votes
1answer
43 views

How to make C++ template stack work with basic data types and compound variables?

Templates are nice for similar algorithms of different data types. Say I make a template stack of a basic data type... Stack<int> stck(10); stck.Push(5); I'd pop it... int x = stck.Pop(); ...
2
votes
2answers
186 views

Is there a point in using closures for non-fully functional programming languages? [duplicate]

Maybe I don't understand closures fully but take for example C#, why would I use closures when I can use classes? Am I missing something? Note that I read this one already but my question is specific ...
0
votes
3answers
66 views

Relative encapsulation design

Let's say I am doing a 2D application with the following design: There is the Level object that manages the world, and there are world objects which are entities inside the Level object. A world ...
-5
votes
0answers
19 views

Closing MessageDialog windows with a timeout [on hold]

GTK - GTKMM In gtkmm messagedialog, How do I set a timeout handler to activate the OK button in the dialog window. I have a timer which counts down in seconds but when it reaches 0 it just hangs. The ...
-3
votes
0answers
117 views

Would it be unreasonable to try to program server software from scratch to avoid server licenses [on hold]

I've wanted to make an app that will use a dedicated server, and I recently learned that there are some expensive licenses required for the software. Do you know anything about the complexity of such ...
-1
votes
3answers
265 views

C# - Typical instantiation of new object - is there a way to avoid repetitious syntax?

When learning C# (and OO concepts more generally at the same time) something I found very distracting is exemplified by the following line: ExampleClass exampleObject = new ExampleClass(); It's the ...
1
vote
2answers
58 views

Can the DDD repository modify entity in the DB without an entity object?

Say I have an aggregate root Entity with some flags which are represented by an encapsulated object EntityFlags: class Entity { /** @var EntityFlags */ private $flags; ... } I have a ...
-2
votes
1answer
113 views

Advantages and Disadvantages of C CGI over PHP? [on hold]

I've developed a lot of websites with PHP but sometime after learning C programming I found out that it's possible to do the same thing using C CGI. But I still don't know if it will be worth ...
0
votes
3answers
80 views

“flexible” functions in SQL Server 2012? [on hold]

I'm looking for a very exotic thing and have no idea if it exists at all in SQL Server 2012. (Please forgive me - my background is in T-SQL, but not yet the fine details of SQL 'programming'.) So, ...
0
votes
0answers
49 views

How to design socks proxy server (OOP)

I'm working on a socks server application written in C#. But I don't really know how to design this in a nice way. I got this for Socks V4 and V4A: I'm not sure if it clears things up, but I think ...
2
votes
0answers
36 views

how to process document state transition?

Imagine there is an application (ASP.NET MVC) that processes some documents. The document must be revised several times by different group of users. state/role rules: simple user can only publish ...
-4
votes
0answers
20 views

Saving an array to a binary file in C? [migrated]

Suppose I create an m by n matrix in the following manner: double (*myArr)[n] = malloc(m * sizeof(*myArr)); How would I then save that to a binary file? I've tried using fwrite, but I haven't ...
0
votes
1answer
53 views

Application behavior in different screen sizes

My company is developing a .NET application that needs to work with 17 inch and 24 inch monitors using the same resolution on both. My question is whether I should expect any different behavior or ...
24
votes
2answers
1k views

Strategy for generating unique and secure identifiers for use in a “sometimes offline” web app

I have a web based project that allows users to work both online and offline and I'm looking for a way to generate unique ids for records on the client side. I'd like an approach that works while a ...
1
vote
1answer
38 views

options for data analytics for time series store

I'm building an Internet of Things solution that has a number of real time feeds. I need to make a couple of design decisions with regards to the data store and reporting and looking for input. I ...
-2
votes
0answers
34 views

Capturing client request headers (complete) along with IP address information? [on hold]

I want to write client request to a file with two things/information headers ip address The code I'm testing on free hosting service.Code is <? $headers= apache_request_headers(); foreach ...
9
votes
3answers
124 views

Categorize tasks/bugs by risk of changes

The project I'm currently working on has an issue: bugs and tasks are often assigned to people who are too new or too inexperienced and their work ends up producing more bugs down the road. The ...
2
votes
2answers
102 views

MVC: “User” model gets big and crowded. Should methods that do CRUD operations on one-to-many relationship data be in different models?

In most MVC web projects there is a User class. Many times a user has something else in a one-to-many relationship, i.e. orders. If we have a user class that has many orders, should methods that add, ...
0
votes
1answer
180 views

How to make C# methods work like javascript functions?

I'll keep it simple, I want to make C#'s methods work like javascript's functions. Mainly so I can convert this - function makeVariable(terp) { var me = {value: 0}; return function () { ...
-1
votes
0answers
8 views

php export data to cvs [migrated]

I need a help exporting search query by clicking on export button. I am able to get data from database to the browser. However, when I click on export button, it refreshes the page, and doesnt do ...
0
votes
0answers
57 views

Designing a scripting/programming language - translation - Javascript to C# [on hold]

So I'm making a small scripting language. I am following a tutorial online, it explains them. Now it has gotten to a part about closures, but I do not know how to do this in C# nor how I would set ...
-1
votes
0answers
50 views

Problema al volver a instalar android en mi aclipse [closed]

lo que sucede es por alguna razón tuve que formatear mi laptop, descarge nuevamente el eclispse, le instale el plugin, descargue el sdk y descargue algunas apis, la api 4.4 me la descargo ...
3
votes
1answer
81 views

Adding field to the class at runtime - design pattern

Imagine your customer want's to have a possibility to add new property (e.g. color) to product in their eshop in their CMS. Instead of having properties as fields: class Car extends Product { ...
-1
votes
0answers
32 views

First web development private contract [closed]

I work at a fortune 50 company in website management, deployment, and some development as a salaried employee. I usually manage vendors to build SharePoint sites. I have personal web development ...
12
votes
4answers
694 views

Which one of these answers regarding functions is incorrect?

So while I've been doing some lengthy compiles I decided to take the C++ general test on ODesk and came across this question. If I'm not mistaken, given the wording (or lack thereof) all of these ...
-3
votes
0answers
36 views

Do I need a business license to sell android apps in Texas? [closed]

I know that I don't need to open a company in the US in order to sell android apps, but do I need a business license to sell android apps in Texas?
2
votes
3answers
50 views

Best and safest API for a function which fills a buffer with variable-length data

I have a function which receives a buffer and returns some data in the buffer. The data can be smaller than the buffer capacity. Which is the best and safest API for this? int fn(void *buffer, ...
-1
votes
0answers
27 views

How to use python sockets with proxies [closed]

I am looking for a way to connect to my local Minecraft Classic Server using Python, but thru proxy. Are there any Python modules to do so? P. S. Right now I am trying SocksiPy. Hope it will work.
10
votes
3answers
973 views

Would using a hash table in garbage collection solve the stop the world problem of mark and sweep?

In mark-sweep-compact garbage collection algorithm you have to stop-the-world when relocating objects because reference graph becomes inconsistent and you have to replace values of all references ...
-4
votes
0answers
27 views

Would you recommend APF 'Adventure PHP Framework' over another MVC Framework [closed]

It was suggested to me to use APF, the Adventure PHP Framework, on an upcoming project. I was leaning towards Laravel or Symfony2 with a MongoDB and PostgresQL Database. I doesn't have a conventional ...
-3
votes
0answers
22 views

Confused About next Condition in android [closed]

enter code here package com.example.guess; import android.support.v7.app.ActionBarActivity; import android.support.v7.app.ActionBar; import android.support.v4.app.Fragment; import ...
3
votes
1answer
58 views

Using mocks to set up object even if you will not be mocking any behavior or verifying any interaction with it?

When building a unit test, is it appropriate to use a mocking tool to assist you in setting up an object even if you will not be mocking any behavior or verifying any interaction with that object? ...
-3
votes
0answers
36 views

how to select a specific word in specific column php mysql [closed]

I have table with only one column that contains a text (200 char) and I want to select a specific word that comes after my keyword to use is in autocomplete for my textbox field. suppose that: row ...
0
votes
0answers
40 views

OpenGL difference between gluPerspective, glFrustum and glOrtho [on hold]

These three OpenGL and glu calls all seem to take very similar arguments and all seem to describe a similar usage,ie: declare a three dimensional space in which to draw ones objects. I substituted ...
3
votes
1answer
70 views

In c++, difference between linking a class object and just including it.

this is my first time here. I'm a physics grad student and I've recently found a research group to work with. We study statistical mechanics using computer models, so there is a significant ...
3
votes
1answer
112 views

Is ClickOnce Deployment deprecated?

One of my internal users is having a problem with an application built by one of our long-retired developers. The application works fine on Windows XP, but in Windows 7 there is a problem with it. ...
2
votes
1answer
76 views

equivalence in callback and non-callback javascript

I'm pretty sure that the following two snippets are equivalent but I wanted to double check: CALLBACK STYLE function foo(input, callback) { // do stuff with input callback(); } function ...
0
votes
0answers
27 views

How would you rate different website based on their content [closed]

I'm the author of a ruby gem called LinkThumbnailer which basically allow you to generate website thumbnails given an URL. It fetches the images, title and more importantly a description that is ...
-3
votes
0answers
12 views

IOS-Making a array available to all files in xcode [closed]

How do I make an array available to all files in Xcode? Also, how do I then check if that arrray contains a certain object?
0
votes
1answer
50 views

What to test in this project?

Every developer advocates test-driven development, but I am coding a website in NodeJS and I am not testing my app. This is not because I don't see any reason. I know it allow me to check at each ...
2
votes
0answers
56 views

Best approach for tracking dependent state

Let's pretend I work on a project tracking application. The application is a database backed, server hosted, web application. In this application there are Projects which have many Activities which ...
0
votes
2answers
47 views

Use one or multiple files for graphics properties?

I'm creating a 2D game in plain ANSI-C using SDL2. I'm planning to let users create their own graphics. So, to achieve this, I'll use an information file which will hold some data such as Width, ...
1
vote
1answer
78 views

alternate approach of binary serialization/de-serialization

Is it possible to convert a list of object directly to byte[] (and vice versa) to gain performance (by avoiding serialization/de-serialization)? What I have in mind is that a list is somewhere in ...
0
votes
1answer
46 views

Worried about memory leak in DLL that creates a dynamic sized array

I have a wrapper DLL that interfaces to another DLL that contains the following function: char * Foobar(void) { // BLAH is the function from the DLL this wrapper interfaces too char *array ...
-2
votes
0answers
65 views

What software skills are you most likely not to pick up if you dont work for a big software company after a CS degree? [closed]

I am working on a software project with a bunch of friends. I have a CS degree but I haven't worked in a hardcore software company as such so I haven't been exposed to standard software practices. ...
0
votes
1answer
38 views

Running multiple versions on the same .NET website

I have a website (which is actually mainly a Web API site) and I'd like to be able to simultaneously access multiple versions of it. What I'm currently doing is creating a new website for each ...
0
votes
1answer
82 views

What is the difference between programming for microcontrollers and programming for embedded systems? [closed]

What is the difference precisely between an Embedded System (like Tegra, Raspberry or similar) and a Microcontroller? I understand there is a difference but I'm finding it difficult to understand. ...
0
votes
1answer
49 views

Delegate method privately called from delegate itself?

One has established design patterns so ingrained in their brain, that when sometimes somebody does something unexpected, it is a revelation. My colleague in an iOS project did call the delegate ...
0
votes
1answer
39 views

Flexible authorization design in ASP.NET pages?

I'm developing an ASP.NET webforms application with pages which displays information based on the authorization level of the authenticated user (very typical). I will write a simple example of the ...
0
votes
0answers
22 views

Http meta tag for refreshing/redirecting

I am not doing web programming usually, but while looking at the generated source of a webpage learned that a standard way to refresh a web page is to use <meta http-equiv="refresh" ...

15 30 50 per page