-4
votes
0answers
17 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
94 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 ...
2
votes
2answers
62 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
59 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
34 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
23 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
42 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 ...
4
votes
3answers
117 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
15 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
63 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 ...
0
votes
1answer
58 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 ...
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
824 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 ...
0
votes
1answer
59 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
185 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
91 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
81 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
162 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
23 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. ...
0
votes
0answers
17 views

Starting off with Grunt in an eclipse webapp project

I've been developing a webapp for some months now using struts2, jQuery and sitemesh to decorate my pages (JSP's mostly). My dependencies are managed by Maven and I've had a fun time learning as I'm ...
0
votes
1answer
35 views

Flux Pattern dispatcher broadcast

I'm trying to get a better understanding of the flux pattern Facebook introduced a while ago. From what I understand the dispatchers dispatches every payload to all registered callbacks. Does anyone ...
19
votes
1answer
1k views

Why do arrays in .Net have Length but other collection types have Count? [on hold]

In C# for example, arrays have Length property. But other collection types like lists, etc. have Count property. Is there a reason why these two are different? If so I would like to know.
22
votes
6answers
2k views

Explaining new or uncommon syntax in comments [duplicate]

As per the title, should I be explaining syntax that I use in my code when I have a reasonable expectation that a developer looking at my code in the future will not be familiar with it? Short caveats ...
2
votes
1answer
121 views

C# try/finally for state cleanup

Is there any reason (for instance: performance) against moving state "cleanup" code in a finally state? Example: this.state.InProgress = true; // logic here this.state.InProgress = false; With ...
0
votes
0answers
4 views

Could not send form data in PHPUnit? [migrated]

I am new to PHPUnit with Symfony 2. I have a problem sending form data to client. I have login details needed to log in the page. so i send it as array. Every time i run test i got Error Message as: ...
-2
votes
0answers
47 views

Builder Design Pattern : Accessing/Passing model data in/to Concrete classes [on hold]

First of all Sorry for question if its completely wrong, i am new to Design Patterns. I asked this question here also ...
2
votes
5answers
81 views

What is a URI Scheme?

I have searched for this question, but I haven't found a good answer. Even the Wikipedia Article on URIs does not explain it thoroughly. I thought it was the protocol for accessing a web page. e.g. ...
-2
votes
0answers
51 views

What's the lhs/rhs equivlent of a single parameter? [on hold]

Typical operator overloading conventions go like this: MyObject operator+(const MyObject& lhs, const MyObject& rhs) { return MyObject(lhs.my_value + rhs.my_value); } What would be the ...
2
votes
1answer
142 views

How do you troubleshoot an issue that you simply can't duplicate? [on hold]

I have a client that keeps reporting a certain issue that users are experiencing with a public-facing site written in MVC and hosted on Azure. It seems to happen at random, but for the life of me, ...
0
votes
0answers
22 views

Should an API specification include roles?

I'm considering options for specifying an API in a code library (e.g., XML or JSON) that can be consumed by various clients. In addition to the standard kinds of input/output specifications, I'm ...
1
vote
3answers
126 views

How can I create an abstract parent class which uses data from an inherited class?

I'm getting my feet wet with Android app development and tying to find a good way to manage database interactions across multiple similar objects. My goal was to have a structure like: public ...
2
votes
1answer
58 views

Algorithm for determining transactions among weekly data series?

I'm trying to develop a small reporting tool (with sqlite backend). I can best describe this tool as a "transaction" ledger. What I'm trying to do is keep track of "transactions" from weekly data ...
4
votes
0answers
31 views

Do classes in a JRE library support observable and/or asynchronous reads from external/non-JRE assemblies?

How can I implement my cross-platform library (e.g. on JRE) to operate in a thread-safe manner on object references, so that native front-ends on other platforms can observe the object and take ...
-4
votes
0answers
50 views

Spring's @Configuration - main() method required? [closed]

When you're coding for a .jar file, and you're using Spring, you can code an @Configuration class that defines your beans, using the @Bean notation. So far, so good. Do you need a separate class ...

15 30 50 per page