-1
votes
0answers
26 views

Building a voice recognition system from MCU(DSP) [on hold]

First of all I am new in voice recognition field, and I wish to build a voice recognition module which can receive commands from user and send protocols(wired type) to my robot's MCU to execute ...
-4
votes
0answers
51 views

I'm developing a tiny db software and how to integrate a db in my installer [on hold]

This may not be a good question but i want to create a database software and im using MSACCESS as my database using JDBC but i want to integrate a lightweight database to my software installer and i ...
-2
votes
0answers
120 views

alternatives to pointer to function in C [on hold]

I have C project where I have something like iterator, works like this: Item *mem_first(MemtableIT *it); Item *mem_next(MemtableIT *it); and Item *disk_first(DisktableIT *it); Item ...
4
votes
1answer
103 views

If I fork a project on Github that is licensed under MIT, how to I handle the attribution and copyright notice?

If I plan to fork an MIT project and significantly modify and rename it, how do I handle the copyright notice above the MIT license on the main License file. Would I list the original author and my ...
2
votes
1answer
96 views

Which approach would be better for persisting these overridable configuration keys and values? A simple key-value store, or a graph database?

I'm creating a system where there are config keys and values. So for example: config.key = 10 Is an example of a configuration key and a value. These keys can also have overrides based on ...
-3
votes
0answers
28 views

receiving geojson from client, displaying on google map, responding with url to displayed map [on hold]

am new to all server side stuff, I've set up an ubuntu server with LAMP and have a simple html page displaying a google map and one of their template geojson files overlayed. <!DOCTYPE html> ...
0
votes
0answers
52 views

How to create methods at runtime for scripting purposes? [on hold]

!!! There's a TL;DR question at the bottom of this !!! I'm looking into writing a Java API that developers can implement that will allow users to write their own scripts that can interact with a ...
11
votes
2answers
261 views

Is higher-rank parametric polymorphism useful?

I'm pretty sure everyone is familiar with generic methods of the form: T DoSomething<T>(T item) This function is also called parametrically polymorphic (PP), specifically rank-1 PP. Let's ...
2
votes
1answer
256 views

DataMapper for a MMO game plugin to send packets

I am working on an plugin for some game-server. The information about the plugin is not really necessary. Few points you might find helpful to answer to this question: The server The server is ...
3
votes
1answer
252 views

Beginner Facade Pattern Example

I came across this article: http://didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformatica/tdp/dp-l10a-facade2014.pdf At the end, it has a question asking: One common problem ...
23
votes
3answers
2k views

Why is XML type safe?

Why do they say that XML provides type safety and how is it expressed in the XML itself? How is it different from JSON (for example) which (as I understand) is not type safe?
8
votes
3answers
834 views

What kinds of Open-Source licenses are NOT OK to use internally in a corporation? [on hold]

I have recently learned about several cool open source add-on tools and libraries for Microsoft Visual Studio. The tools just help you be more productive; the libraries would get linked into the ...
2
votes
0answers
55 views

Pattern matching against two similar types

What is the best way to handle pattern matching in the following situation? sealed trait A final case class A1() final case class A2() final case class A3() sealed trait B final case class B1() ...
-3
votes
1answer
73 views

Creating multiple houses in Java? [on hold]

everyone! I created a program that would draw a house in Java, which is: import java.awt.*; import java.applet.*; // Program to draw a house public class House extends Applet { public void ...
-4
votes
0answers
31 views

Should I build custom CMS from scratch or use an existing framework? [on hold]

so recently an idea came to my mind and I started pursuing it. I would like to develop my own CMS in php to (maybe) learn new things and have a CMS which completely suits my needs. And should I ...
1
vote
1answer
19 views

asp.net tracing custom implementation

I want to do event tracing in asp.net. That is whenever any method is called, i want to log some method specific details into a text file like method name, return value e.t.c But, as requests will ...
-3
votes
0answers
76 views

Can I learn the basics of C++ through Parts I and II of Bjarne Stroustrup's book? [on hold]

I'm interested in learning the basics of C++ for the purposes of making me a better programmer. I do not code in C++, and have no immediate projects in mind that could make use of C++. But a lot of ...
0
votes
1answer
430 views

CakePHP: Automation triggers after save - best done as component or behavior?

Folks, first time on CodeReview - just looking for some input in creating some automation in CakePHP, wondering if this is best used a component or a behavior. It's model driven but involves logic and ...
32
votes
13answers
10k views

What does it mean to write “good code”? [closed]

In this question I asked whether being a bad writer hinders you from writing good code. Many of the answers started of with "it depends on what you mean by good code". It appears that the term "good ...
-1
votes
0answers
84 views

Error: Code too big for 64k [on hold]

Im having a bit of an issue with a simple program I'm trying to build. Im using an IDE to code a program I wish to turn into an app in a few months. After 7500 lines of code I receive and error ...
-2
votes
0answers
32 views

How is a virtual machine process created in VirtualBox [on hold]

I'm looking into the source code of VirtualBox, but since it is very complex I wanted to know how exactly a virtual machine process is created. Since a virtual machine similar to a real mach it has ...
1
vote
1answer
73 views

Non-fixed-size Fenwick Tree implementation

I'm planning to implement a non-fixed-size Fenwick tree. That is, a Fenwick tree that allows interleaving range queries with adding/removing elements. All implementations and samples I've seen so far ...
2
votes
2answers
853 views

Front-end structure of large scale Django project

Few days ago, I started to work in new company. Before me, all front-end and backend code was written by one man. As you know, Django app contains two main directories for front-end: /static - for ...
-4
votes
0answers
46 views

What everything should I know by heart in PHP? [on hold]

I tried to google this question with my best ability and couldn't find any answer. I'm a new(ish) PHP programmer and learning PHP kind of stresses me out, because I don't know what I should be ...
0
votes
2answers
230 views

Strategy for creating a websocket relay?

I own a Raspberry Pi and would like to use it as some sort of websocket relay, so that all people who visit a specific webpage would be able to communicate with each other. The key thing about this is ...
2
votes
1answer
79 views

Integration testing and database connection string in app.config

I am working on a project where SqlConnection is created via a static method, lets say it's DatabaseAccess.GetSqlConnection(). This method reads the .config file to get the connection string and ...
-6
votes
0answers
47 views

Does microsoft prefers visual languages in his competition [on hold]

I’m confused about which language to prefer? I know C, C++, VB.NET basics I’m participating in a competition of Microsoft so should I prepare my vb.net or I should consist c/c++ Please Help me out ...
120
votes
37answers
70k views

Should curly braces appear on their own line? [closed]

Should curly braces be on their own line or not? What do you think about it? if (you.hasAnswer()) { you.postAnswer(); } else { you.doSomething(); } or should it be if (you.hasAnswer()) { ...
0
votes
1answer
223 views

Understanding the solution of Exercise 1.12 of K&R's book as given in the book “The C Answer Book”

I am reading the solution of "The C Answer Book". I think that the solution of Ex. 1.12 can be shortened. The Exercise is as, Write a program that prints its input one word per line. The ...
1
vote
1answer
147 views

Long running task initiated in the web site

The plan is to develop generic solution for long running task initiated in web site by users such as: 1. upload large file and do some custom processing and then insert in the database. 2. export ...
-2
votes
0answers
271 views

I have a Computer Science degree but I don't feel like I know how to program [on hold]

Well I went through university to obtain my Bachelors in computer science but I don't feel confident at all in programming. I know, I know, practice. Well I am practicing but I feel that it will be ...
2
votes
2answers
259 views

What UML diagram should be used for modelling permissions/users/files in Linux?

If I am planning a structure for support testing in Linux, a structure that will contain packages, such files as shell and build scripts, app configurations, DBs, sources, tests and jars for to be ...
1
vote
1answer
198 views

Solving a Sudoku variant with an unknown element

I recently stumbled upon a special Sudoku variant and am now struggling to effectively solve it programatically. Consider the following initial 6x6 grid: The rules The red question mark is ...
1
vote
2answers
80 views

Pattern for validating rules having different signatures

I have a class in charge of responding to an input event and maybe triggering another event. To decide, it has several rules to check. I'm trying to get away from a class looking like this: public ...
-1
votes
1answer
91 views

Best solution for future maintenance of a website with hardcoded ids, custom CMS using bad database design [duplicate]

Recently I was put into a position of a tech-lead on a very interesting project that I have been partially working for two years. This project carries a lot of legacy stuff with it even though we try ...
0
votes
0answers
94 views

How do I search the leaves of a tree where each node could have more than two children? [migrated]

I'm trying to search the leaves of a tree data structure for a target value. My function looks like this: def searchLeaves(self, target): #DFS if len(self.children == 0): #is a leaf ...
0
votes
1answer
62 views

Cleanly using PHP Iterator class in Loops - calling first element

I have implemented the Iterator class in PHP and built the follow mandatory methods as follows class I implements Iterator { private $a = []; function __construct(array $a) { ...
-1
votes
1answer
58 views

How to create a folder in a program's own directory, and create folders in the folders? [on hold]

I need my program to be able to create sixteen folders in its root directory where the .exe file is (Windows), and I need each folder to have preceding folders inside that contain more information, ...
-3
votes
0answers
44 views

A way to generate a text file with the name of every game installed in a computer [on hold]

I would like to make an aplication with Visual Studio that, upon start, explore every file in the user's computer looking for games and store them in a database. With that database, we create the user ...
1
vote
4answers
142 views

When to make a method part of an interface or a concrete implementation?

I create an interface for database access to a MySQL database. Currently, this is the only way to access day, but to make it easier to test and in the event that the data access might change, I used ...
-2
votes
0answers
29 views

Protecting clients interests when using offshore developers [on hold]

I'm planning to outsource some work for development using parse.com. Since I Want to protect my clients interest how can I ensure that their offshore developers don't have access to production data? ...
0
votes
0answers
4 views

Java j2ee JSTL cannot print a list of objetcs [migrated]

i'm currently working on a small Java J2E project. I want to print a list of objects in a *.jsp page, but there's an error i can't seem to get rid of. My .jsp page : <%@ page language="java" ...
2
votes
1answer
97 views

What happens when one reaches their framework's maximum requests per second?

I've been dabbling in code for many years now but it's always been personal projects. I don't have experience with much traffic. I was recently reading through a "Hello, World." tutorial for ...
1
vote
2answers
260 views

Workaround for unit testing Core Data in Swift

I am still pretty new to programming, but my first app was recently approved and is now for sale on the App Store. My app uses Core Data and is written in Swift. After some initial difficulties, I ...
1
vote
1answer
124 views

Should I modify an algorithm I coded for my employer if I remember the code perfectly and want to reuse?

My employer asked me to code a simple algorithm from a general description published by someone on the Internet (no code/pseudocode, just plain words and pictures). So to clarify, it's not my ...
1
vote
2answers
100 views

C# Subject Observer Architecture question

I'm making a C# application using the Subject Observer design pattern in a slightly different way. I am passing the Provider Class, implementing IObservable (this has the OnNext() method that ...
0
votes
1answer
46 views

Send request from a computer, wait for response from another, then trigger an action on both, with PHP [on hold]

I have a website project that is planned to work as the following: User #1, who is registered on the site, sends an invitation for some activity (whichever activity, like playing a game, etc.) to ...
0
votes
1answer
44 views

How Do I Securely Edit a Database Entry Based On ID in an Admin System?

This is more of a conceptual question because the way that I am doing it would be secure enough for my purposes (educational). I created a simple admin panel that displays a stock picks database as ...
42
votes
9answers
4k views

What are the safety benefits of a type system?

In JavaScript: The Good Parts by Douglas Crockford, he mentions in his inheritance chapter, The other benefit of classical inheritance is that it includes the specification of a system of types. ...
-3
votes
0answers
52 views

Generate random numbers in java…! [on hold]

I'm writing a code for a command line game in which I want to shuffle numbers randomly. i created 3 different functions. Each function generates a number different from other. and those 3 functions ...

15 30 50 per page