0
votes
1answer
49 views

Syncing data from memory process (C++) to database

I have a C++ program that read game data from memory process. For example, int points = 0; while (1) { points = ReadProcessMemory(..) // points will be read from game's memory Sleep(100) // Don't ...
1
vote
2answers
40 views

Best Practices for Automating Word Documents

I recently started at a company as a Automation Developer. My job is to automate periodic reports (in Word) for all of our customers (~50), one for each. Each report is slightly different, so I am ...
2
votes
2answers
89 views

Distinguish different type of Comments

I would like to provide design decisions in the comments as well. I want design decision comments to be distinguishable from function contract comments, on cursory examination of source code. How to ...
-3
votes
0answers
9 views

how to call wit.ai HTTP API call with say merge and stop action using converse [on hold]

I have problem in wit.ai api call i call it successfully by python and node.js script but Not able to call it via HTTP API i used the wit.ai HTTP API doc for refrence https://wit.ai/docs/http/...
-2
votes
0answers
16 views

How to key in C++ codes on this webpage [on hold]

Write a C++ algorithm to test for a prime number. My C++ codes are as follows #include<iostream> #include<cmath> using namespace std; int x,n; bool ...
5
votes
1answer
128 views

Can the C++ template system be used to perform type safe operations of the relational algebra

Assume that the parameters of functions representing operations of the relational algebra are represented by individual types: structs or classes. An operation such as (natural) join will have ...
-6
votes
0answers
19 views

Hey want to Make Pop Up window [on hold]

I want to make a Pop Up window for my website so any one can guide me, that how to done this work professionally.
2
votes
3answers
105 views

Can you pass a label as an argument, and have the function return to it?

So I would like to be able to call a function like this: void func(1, 2, 3, (void*)label) // can return normal or to the labels //some code label: //different code Is it possible, and is it bad ...
-2
votes
0answers
24 views

Vim Polyglot installation

So I've installed http://vimawesome.com/plugin/vim-polyglot as per those instructions, but it's not highlighting any of my code. Does anyone have any experience or would know why?
6
votes
5answers
135 views

Is it unnecessary to learn the kind of data structures and objects inside sql only because we are using another language to access db indirectly?

Suppose we are using java or python to access the database. Then is it considered a wastage of time and unnecessary to learn the kind of data structures and objects being used inside sql? Please ...
4
votes
1answer
56 views

Master-Slave Cluster - How to make sure the master is really dead for the slave to take over?

I have a in-house messaging system, similar to a message broker. We have one master message broker and one slave message broker. A message broker just receives messages and sends them to all nodes. ...
1
vote
2answers
153 views

Is it good practice to use a single database connection?

The PHP codebase I'm working on has an utility class that returns a database connection. The implementation looks like this: class Database { private static $conn; private static $init = false; ...
7
votes
6answers
5k views

Understanding “programming to an interface”

I have come across the term "programming to an interface instead of an implementation" a lot, and I think I kind of understand what it means. But I want to make sure I understand it's benefits and it'...
1
vote
2answers
52 views

Updating all records in MySQL table while still available to the user

I have this 'table A'. It contains two columns; email and email_alias. A sample is below: ===================================== = email | email_alias = ========================...
0
votes
1answer
156 views

Is it possible to run a program in C language without libraries?

I was working on a C program and i just noted that i can execute my program even if i didn't declared the required libraries, this is the code: #include <stdio.h> #include <string.h> int ...
15
votes
6answers
4k views

A language based on limiting amount of arguments passed to functions

The idea is inspired by the fact operators such as +, -,%, etc. can be seen as functions with either one or two arguments passed, and no side-effects. Assuming I, or someone else, writes a language ...
2
votes
1answer
42 views

Explicitly mark unexported functions in a DLL?

When writing an unmanaged Win32 DLL that exports functions, it's not uncommon to have some functions, variables and/or classes that aren't meant to be exported and are only for internal use within the ...
3
votes
2answers
860 views

Copying a git repository to USB drive

I am working on an Open Source project and I have a git repo on my machine with all the code. The repo is kind of big, and I would like to keep working on it while I do not have access to my computer. ...
7
votes
5answers
2k views

Should I use initializer blocks in Java?

I recently came across a Java construct I have never seen before and was wondering whether I should use it. It seems to be called initializer blocks. public class Test { public Test() { /* first ...
1
vote
3answers
104 views

Euler's sum of powers conjecture. How to efficiently search counterexamples?

I tried to repeat this results: 27^5 + 84^5 + 110^5 + 133^5 = 144^5 (Lander & Parkin, 1966) and 95800^4 + 217519^4 + 414560^4 = 422481^4 (Roger Frye, 1988, 110 hours this is the only ...
2
votes
0answers
77 views

Structuring a Game with Angular.JS

For a GameJam I'm trying to code a simple web-based text adventure game with sprites and small animations in AngularJS. I'm a little new to Angular and am having some trouble figuring out how to ...
12
votes
7answers
2k views

What is the “right” way to implement DI in .NET?

I'm looking to implement dependency injection in a relatively large application but have no experience in it. I studied the concept and a few implementations of IoC and dependency injectors available, ...
0
votes
2answers
107 views

Given an array of number, how to calculate to a target value

Chatting with a friend about a game we used to play, and thinking how to implement it in code. Here are the rules: Given a list of number e.g. {1,2,3,4} Try to use all the numbers from the list to ...
0
votes
1answer
30 views

Web app with a Node.js front end interefacing with a python script with sockets

Right now I have a webpage with various buttons and options that I'd like to use to send commands to a python script running on the webserver. The python script is being used to interface with devices ...
0
votes
0answers
22 views

Is passing controllers to another controller a good practice in AngularJS?

I have a register page that uses text inputs as well as an avatar input. There's another part in the website where the avatar input is also used, but it's used alone this time. So I'd like to make it ...
2
votes
0answers
231 views

How to use OAuth 2.0 roles and scopes to secure services

I have secured a REST API using OAuth 2.0 security, and I am not sure on how to configure security access using roles or scopes. There will be three types of clients: Public mobile app client used ...
-5
votes
0answers
34 views

What programs are there to use with Python? [on hold]

I know codeblocks and codelite are for C and C++ programming but what is out there for Python users? I would prefer something free at the moment since I am a newcomer to Python.
-2
votes
0answers
77 views

Why use camel case on the client if DB has snake case? [duplicate]

Why don't we all use snake case on the client if we seem to recommend snake case on the db schema side of things? It seem like everyone uses camel case on the client. This would remove the middleman ...
0
votes
0answers
36 views

Dynamic Printing Options

I believe this is the correct community to post this question in, if not please point me to the correct one. Overview: Current web app gives users the ability to print labels from specific printers. ...
0
votes
1answer
94 views

How to compare two objects for percentage of equivalence

I'm trying to create a nodeJS application. It allows users to rate a bunch of songs and it stores them in their user profiles. I use this information to compare them to other users, and try to find ...
3
votes
0answers
27 views

Qt Quick dynamic QML vs Apple's App Store rules

Imagine that I've got a piece of custom audio hardware that I'd like to be able to control in a multitude of ways via a tablet/touchscreen GUI. In particular, my goals are to have the tablet's ...
0
votes
1answer
27 views

ASP.NET - Data Encryption & Decryption framework designs

I have the following app scenario where i would need to implement the cell-level encryption. Database - MS SQL Server Web Technology - ASP.net MVC Existing app scenario:- Currently the web ...
2
votes
3answers
47 views

Shared development and CI database

I'm just about to set up CI for my web application. I'm using Bitbucket and Pipeline beta as a CI. The web application is strongly coupled to the database, nothing can be tested without data in it. ...
1
vote
1answer
132 views

python: detecting if my method is called with 0 or 1 args

I want to write a suite of methods that act as getters when passed zero arguments and as setters when passed a single argument. I have two two reasonable implementations, shown below. Is one better ...
0
votes
1answer
134 views

Business logic - Server side vs client side [duplicate]

In my current project, I have a screen which pulls data from several webservices, pulls data from database via backend API and checks that all resources have the same data or not. The other ...
2
votes
1answer
149 views

When to lock an object in a game

I'm writing a game in Java where each game object has a number of properties, but these can all be changed in one of two ways: Every second, a tick runs which may automatically cause a change. Users ...
-1
votes
0answers
11 views

E2E Test Automation Metrics?

Question: Are there any valuable metrics on E2E automated tests? (Does it make sense to gather any data around them?) Context: For example, when I wrote my unit tests, I implemented a test coverage ...
0
votes
1answer
98 views

Can I add to a built-in function?

I want be to be able to re-write the code of an existing PHP function in an abstract manner. Here is an example: scandir() scans a directory for files and folders, and returns the relative paths '.' ...

15 30 50 per page