1
vote
3answers
81 views

Are file-scope `static` variables in C as bad as `extern` global variables?

In C, you'd often/sometimes (as a matter of style) use a file-scope static variable where you'd use a private class member variable in C++. When scaling to multithreaded programs, simply adding ...
1
vote
1answer
55 views

Bower, NPM, Gulp in ASP.NET MVC, what problem am I solving? [on hold]

I work at a small web development company, and we use no dependency management whatsoever at the frontend side. External libraries are simply downloaded and pasted into the lib folder of whatever ...
3
votes
1answer
45 views

MVC Advanced Permission System Patterns

I'm familiar with role and activity based permissions, but I'm curious about patterns that go beyond the basics. In particular, I want permissions to be granted based on the user's relationship with ...
0
votes
0answers
19 views

Storing a many-to-many relationship between aggregate roots in a document store

Intro I'm currently facing a rather difficult problem. An application that we need to expand and partially overhaul, uses RavenDB as its storage backend (a NoSQL document store). The two most ...
-6
votes
0answers
12 views

CPP | std stream printing error [migrated]

I am currently programming an int matrix in cpp. I wanted to add a printing function that prints the numbers in the following way: 1 2 3 7 6 9 19 23 9 (every 2 intergers are seperated with a ...
-5
votes
0answers
33 views

Text Encoding for future reading [on hold]

I have some text that my program is writing out. This text will need to be readable for a long time. 100s or 1000s of years possibly into the future. Imagine someone in the year 3000 receives this ...
-6
votes
1answer
78 views

Why ? Constructors cannot be declared as final? [on hold]

Why final keyword is not working with constructors in java? I'm a bit confused with this, but it works fine when declared with methods. What's the reason for that? class NewClass{ int speed = 40; ...
4
votes
3answers
62 views

When to load related database data in web request?

I'm trying to determine when a web application should query a database for related data that may or may not be used in the current request. As an example, consider a database that tracks assets for a ...
0
votes
0answers
38 views

DDD and read models - where to use?

I'm coding an application using DDD and EventSourcing (therefore CQRS) for the first time. My aggregates are stored in an event stream, so they are not good for querying. That's why I'm building a ...
-4
votes
0answers
77 views

Where to search for projects implemented with some framework [on hold]

I like reviewing projects from others implementing similar things that I have implemented. I program in c# and mostly applications that work with data. I often search on ...
-1
votes
0answers
35 views

Javascript coding convention: capitalization with requirejs [on hold]

We are having an argument, where it has been proposed (among other things) to change requirejs statements like this: define(['thing', 'xyzzyView', 'backbone'], function(thing, XyzzyView, backbone) { ...
-4
votes
0answers
16 views

__android_log_print cannot function normally sometimes [on hold]

My ide is eclipse and I can confirm that Android.mk is correctly written. But sometimes __android_log_print does not work normally in that logs does not display on logCat or modifications does not ...
1
vote
2answers
91 views

What are the differences between Event Sourcing and Service Layer pattern?

I am reading a book on architecting enterprise applications. In this book the Event Sourcing pattern is introduced which can be used as the "command" part of a Command and Query Responsibility ...
-5
votes
0answers
24 views

Changing field type [on hold]

How to change drop-down field on html page to input type=text. I used j query but it doesn't work, here's my snippet $("[name=checkload1_c]").prop('type','text'); checkload1_c is name of drop ...
2
votes
2answers
60 views

How to handle multiple models that relate to a single model

First of, sorry for the vague title. In our website framework, we have modal classes to represent our database tables, that hold a rows data. I'm currently working on a stat style page, and I'm ...
-1
votes
0answers
58 views

Can I legally create and use similar icons to ones exist in another software [on hold]

I would like to create a similar icon to one used in another software (e.g. the "Share" icon on iOS, or the "Crop" tool in Photoshop). My icons are not going to be pixel-wise identical to the ...
-5
votes
0answers
31 views

Using angularjs in blogger [on hold]

How about using the angularjs in blogging? Would that be causing any conflicts with the blogger platform? Is there a smart way to do it? Asking for real responses.
0
votes
0answers
25 views

How to provide customized UI for different customers of a single web application [duplicate]

At our organisation we are developing a product which happened to be a Java web application. We are using Spring+Hibernate. Client side we are using jQuery and Bootstrap. This product would be ...
-3
votes
0answers
26 views

how to install a package in haskell that is for application [on hold]

If I want to install a package that is a program rather than providing libraries, how can I install in a way that I can use the program rather than installing like a library?
1
vote
0answers
21 views

Abstract Alert Dialog Builders (Same Method Calls, Different Objects)

Currently I'm working on an Android library that creates a dialog which allows to select colors from a palette (examples at the end) and I've stumbled upon an interesting design problem. To create ...
3
votes
1answer
122 views

Should a new type be created though it only wraps a single field?

Say I have an interface Species that's defined as public interface Species { String getId(); String getDescription(); } The question is simply this: Should I create different classes to ...
-5
votes
0answers
28 views

Windows 10 image from Clonezilla comes up in GMT-1 [migrated]

Mixed Win8.1 / Win10 shop, Linux infrastructure. Jenkins runs machines; OS, apps, drivers, Clonezilla supplies OS images. Images installed by PXE boot/Jenkins coercing it. With release of Win10, ...
-4
votes
0answers
41 views

What is the mathematical base required to master Artificial Intelligence for deep PhD-level research? [on hold]

I'm a Computer Science undergrad, and am looking forward to a PhD in Artificial Intelligence. From what I've gathered so far, most machine learning methods are "statistical inference" methods. My ...
3
votes
3answers
114 views

DDD design question

I have a question on modelling an Entity\Aggregate root in DDD. I am refactoring a project that uses Entity Framework and business logic as services, the services contain lot of logic which I believe ...
-2
votes
0answers
39 views

Free all surfaces in SDL? [migrated]

So I have a bunch of SDL_Surface*'s in a C++ program. I want the program to free all SDL_Surface*'s when the program closes by default but I can't find a function to do it. I'm currently using an ...
-1
votes
0answers
25 views

Avoiding global configuration between tests and server [migrated]

I have been working to avoid a global configuration between the tests that I run (which happen to be Mocha tests for Node.js) and the Express server and the modules therein that I need to test. ...
2
votes
1answer
61 views

Rewriting a library licensed under AGPL but keeping the public interface

We need a JSON Schema Validator for .NET. The only library that we found is Newtonsoft Json Schema. The problem with this library is that has a "strange" AGPL license with limitations, from the site: ...
-3
votes
0answers
13 views

Tracking Websockets? [on hold]

I've been researching websockets a bit and there doesn't seem to be a way reference a specific message when you send it. For instance, you seem to have to use ws.send() for everything (ws.send(user), ...
-4
votes
0answers
32 views

To use or not 3NF [on hold]

I have a question about using or not 3nf on databases and especially in relation to ruby programmers out there. Do you think 3nf should be used as often as possible and how hard is it to use in ruby ...
1
vote
1answer
59 views

Is it a good idea to modify the array keys in foreach

First let me say that i am talking about PHP, but the question is a general one. Some times i need to modify an array key for example something like: $temp = array(); foreach($arrayIWantToModify as ...
-4
votes
0answers
18 views

Extract layers from existing PDF and add it as 1 by 1 [on hold]

I have PDF with 2 layer i.e. Layer1 and Layer2. I want to separate these two layer into two different new PDF file using itextsharp in c#. Input: Pdf file with Layer 1 and Layer 2 OutPut: PDF file 1 ...
0
votes
1answer
57 views

Best way to design a database interface [duplicate]

This is my situation I have a website, mobile client and desktop client. They can all pretty much do the same operations (website might be able to do more now but in the future they might have the ...
-5
votes
0answers
35 views

Meaning of Abc##Def in C++? [on hold]

I saw this statement in a C++ program: extern "C" void * Class##Factory(arg_list); What does the "##" mean here?
1
vote
0answers
22 views

C++ - Best approach for aliases namespace from config

I'm working on a library that contains a large number of components that have namespaces that are nested. Also, when a new module inside the library get's added, we then have to add the namespace and ...
1
vote
0answers
37 views

how to store online status

I'm developing realtime web chat using pubsub pattern. To be concrete I'm using python and tornado-redis on back end and websockets (WS) (tornado) on front end. I have WS connection open and close ...
7
votes
4answers
815 views

Should Objects with lots of fields be broken up? [duplicate]

When I have an Object that has lots of fields is it better to have them all as fields or try to find logical groupings as their own Objects and make those the fields? I guess it comes down to which ...
-3
votes
0answers
32 views

Querying large number of timestamps [on hold]

I have a list of timestamps in a table (there can be millions) of every time an auto-save event occurs. I want to track the amount of time people spend on a page, so every time they type a word, I ...
3
votes
1answer
45 views

Performance of list concatenation followed by scanning

Consider the following code snippet: -- list_1 = [1, 2, 3] -- list_2 = [4, 5, 6] final_list = list_1 ++ list_2 result = map (+1) final_list Is the time spent by it proportional just to the length ...
-1
votes
0answers
57 views

How to do simple video processing with PHP? [on hold]

I've been working with PHP for a while now, but this is the first project I've done that requires video processing. Ultimately, we want to do the following: Resize videos down so that their ...
-5
votes
0answers
25 views

how to restrict & allow users to view other users profile after accepting request in php? [on hold]

How to code for allowing X user to can access for view purpose Y user profile, but only after Y user accept X user request, till that X can only view some information of the Y user....
0
votes
1answer
58 views

behaviour of SQL BETWEEN operator [on hold]

This is kind of philosophical question... Today i spent way too much time to debug a method which was generating a SQL command. I figured out the error was because the code was generating something ...
0
votes
0answers
21 views

Organising code in X++ where all classes for the application are in one long classes list

I am just beginning to develop in Dynamics AX 2012, using X++ (my background is .Net). The development environment in the application stores all classes for the application in one long classes list. ...
0
votes
0answers
33 views

How do errors make sense for hidden layers in artificial neural networks?

Its pretty clear for the output layer, since what we do is we compare the output with our prototype and calculate the error. But how does error make sense for hidden layers, What is considered to be ...
5
votes
4answers
181 views

Is Java package level scope useful?

I understand the idea of package scope, and at times have even thought I wanted it. However, every time I set down with a serious intent to try using it I discovered it did not fit the needs I ...
2
votes
3answers
90 views

Responsibility of the small business logic: in a class or in a method?

I have separated business logic to many small blocks. Each block can be coded in small number of lines. Where should I put the block code? [A] in a method, grouped in the class by some same feature ...
-2
votes
0answers
22 views

NullPointerException in clojure recursive function [migrated]

I'm learning Clojure and try to loop on a list using a recursive function. I manage to go all the way down the nested calls of the recursion but I have a java.lang.NullPointerException when it starts ...
1
vote
1answer
51 views

Send more data, or do client processing?

I have a conceptual problem that I want feedback on. First and foremost, the layout of my system. It contains a server, with many clients connected to it. The clients get fed data from the server at ...
2
votes
2answers
80 views

Delivering source code - refactor for clean up?

I'm in the middle of developing an asp.net webforms application to a customer, i've been using DataAccess and BusinessLogic layers in a folder structure within my application, in which my DataAccess ...
0
votes
4answers
160 views

Maximizing the amount of work not done in Agile? [duplicate]

Here's a quote from "Agile Principles, Patterns, and Practices in C#" By Micah Martin, Robert C. Martin Simplicity the art of maximizing the amount of work not done is essential. Agile teams ...
-2
votes
0answers
21 views

Which framework (if any) should I use with React/Flux? [on hold]

So I am coming from Angular. I have built a couple React components, but I have never used the Flux architecture. I am hoping to figure out if I am going about this correctly before I write any code. ...

15 30 50 per page