1
vote
0answers
4 views

What's an optimal procedure to create a connected cyclic grid of nodes and edges for A* pathfinding

like the title says, I'm trying to create a grid of nodes that hold edges or connections to each other so I can perform A* algorithm to have objects traverse across them as seen in your standard RTS. ...
-1
votes
0answers
8 views

After changing code, server hangs on websocket.recv()

Apologies for the ambiguous question - I actually have no idea what I changed that stopped this from working. I'm working on a text adventure engine (open source project) in Python using Websockets. ...
-3
votes
0answers
13 views

how to convert phone sensor into numbers [on hold]

from android development, i can get Accelerometer and Gyroscope information Accelerometer x, y, z Gyroscope x, y, z how can i convert these information into how much user tilt their screen? i want ...
0
votes
0answers
12 views

Software architecture for uploading dynamically created websites

I have a question that is crucial for my end of year project. Background My web application allows users to build other webapps based on drag&drop (within the domain of the webapp). These ...
0
votes
1answer
20 views

Implementing map with tail recursion

I am trying to solve this exercise. It is about reimplementing the map function in haskell for learning purpose. I found a solution which doesn't browse all the elements of the list (simple linked ...
-1
votes
1answer
21 views

What are the pros and cons of using these Multithreading Models in a Client/Server Architecture

In my classes of parallel programming the teacher mentioned three models, dynamic thread creation (create threads according to demand), thread pool (create a fixed amount of threads) and mixed or ...
0
votes
0answers
11 views

Acceptance testing a Laravel package?

I and my team are developing a package that works with a UI that uses JS heavily. This means that although we can write unit tests for some of the classes. But when it comes to acceptance testing, it ...
0
votes
3answers
53 views

How do you create immutable objects with many parameters?

I need to create an immutable object but it requires several parameters to work like: class FooRepo { public string ConnectionStringName { get; } public string SchemaName { get; } public ...
-5
votes
0answers
26 views

MS Access Database not accept updating value [on hold]

<%@page contentType="text/html"%> <%@page pageEncoding="UTF-8"%> <%@page import="java.sql.*"errorPage="" %> <% String Amount = request.getParameter("Amount"); String Append = ...
-5
votes
0answers
23 views

Is it possible to access or call a html file in one Cordova/Phonegap app from another on iOS? [on hold]

I would Like to call/open HTML file from APP(A) from APP(B) on IOS, much like you can open an HTML file from another app on chrome by using "(appid)/Myfile.html".
0
votes
3answers
93 views

Does IEnumerable required to use foreach in collections

I have following class that didnt implement IEnumerable but working perfectly with foreach. And also , arrays are working without implementing IEnumerable. So why it is keep saying that IEnumerable ...
0
votes
0answers
12 views

Is there a way to control a looping Python script with Heroku?

I have a Python script that continuously makes GET and POST requests to a third-party API at about 1 request per second. It uses a while loop, so the requests all come from the same process. Currently,...
0
votes
0answers
12 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. ...
2
votes
1answer
28 views

What does the Kruchten 4+1 Process View implementation look like using sequence or activity diagrams?

Having read about the 4+1 Kruchten, I am required to document a system architecture using this concept. Instead of the notations proposed by Philippe Kruchten, we decided to go with UML instead. I am ...
-1
votes
0answers
26 views

What are the keywords used to define the non-value? [on hold]

I am currently defining the syntax rules of the programming language I'm trying to implement, and I wonder: what are all the names used to define the non-value in all programming languages? I know for ...
-1
votes
0answers
24 views

How to find “Git clones traffic” on Github?

I have several projects that I published in my Github account, and for sometime I used to be able to see the clone traffic (graphs > traffic > Git clones). Recently I have noticed that on that page I ...
-2
votes
0answers
35 views

How to use a class, located in another project?

I need to use in the my current project a class A from another project (IDE – Eclipse). To do this I add this another project in "Java build path" tab "Project". Compiling was successful, but I get a ...
0
votes
0answers
8 views

Design pattern for application development [duplicate]

I have a Window class, which represents a window (there is only one instance of it), and has an instance of every object inside it. For example: class Window { public: //... private: Button ...
-4
votes
0answers
19 views

how can the following matlab code be converted to verilog correctly?

% clear; % clc; % load 205m.mat; function [P,Q,R,S,T,Ponset,Toffset] = pqrstDetect_new(val ,fs) % fs = 360;% sampling frequency % delay = 6 + 16;% delay due to filters inputEcg = val(1,:) ...
0
votes
1answer
31 views

Need Async/Await equivalent for BackgroundWorker

Given the following code in the DoWork() event of a BackgroundWorker object, how can the concept be converted to the Async/Await model? I wish to execute multiple downloads simultaneously in order to ...
0
votes
2answers
43 views

Return values for a delete function in php

I am writing a wrapper function for database calls, and I am confused about the best way to handle the error cases. The function has only one argument, the id of the object to be deleted. I've ...
0
votes
3answers
81 views

Best approach to write on a database with two webservers

I have an architecture/performance problem. The problem: One voting based application with: 1 loadbalancer, 2 webservers and a database 10 candidates and 200k voting users. There may be more than ...
1
vote
2answers
25 views

'first_name' vs 'name_first' for Grouping Similar SQL Columns

When creating a table with similar bits or data such as names. Is it preferred to have the column name prefixed with a common value? Consider a table to store user information. Looking at the columns ...
0
votes
0answers
25 views

Custom C# Script and Security using CodeDom

I'm making a piece of rendering software and I want to make the tools it encompasses extensible. I've built a UI that lets the user write custom C# functions for blending values. The functions (and ...
-4
votes
1answer
39 views

UserInterface and code. How they communicate? Is it just an image and nothing to do with program code

Does UI interface is just an Image created by graphics tools? I need to know that when a user interface created to read an textbox in C#. When a text entered is it take values from keyboard by ...
0
votes
0answers
15 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 ...
3
votes
5answers
103 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 ...
0
votes
1answer
43 views

How to send a http request through a program developed in C?

As you read in the title, for example, i wanna login to my account in StackOverflow by sending the E-mail and password through a program developed in c language, so all what i have to do is to enter ...
-1
votes
0answers
20 views

Shuffling of MCQ's in my examination portal

the screen shots attached are structure of database of my exam portal, one picture represents the question bank and second represents the test details.Test ID is acting as a primary and foreign key. ...
3
votes
2answers
76 views

How would one test a function with a large number of scenarios?

I've heard that it's ideal to have one assert (or expect or should, etc) per aspect of a component's behavior you're trying to test. Is this how it works? An addOne function would be tested like this, ...
-1
votes
0answers
27 views

Principles for secure user login/authentication

Backstory: In my from-scratch PHP/MySQL web development projects, I often start (and end) working on a secure user authentication. I'm self-taught and never certain that my site is adequately ...
-2
votes
0answers
36 views

Why my commands arent's working in ssh? [on hold]

I connected to my server using ssh via Putty, and I typed the command apt-get install git or sudo apt-get install git but I get the error : -bash: apt-get: command not found or -bash: sudo: command ...
-1
votes
0answers
39 views

Sorting a 2d array in java

I'm a high school student who is interested in computer science, I asked this question to my teacher but she told me not to bother messing around with code and trying to understand how to modify ...
0
votes
1answer
95 views

How to name this class? Is it a pattern?

I need to create a class which will have the following structure: public class MyClass { ArrayList<File> myList = new ArrayList<>(); public void addFile(File f) { myList....
0
votes
0answers
12 views

Coerce optBlock in AlgDesign R package to only show certain treatments per row of blocks

Using the optBlock function of the AlgDesing R package, I can create a block design with 16 treatments, 12 blocks (columns), and 4 treatment per block (rows) with the following code: optBlock(~.,...
0
votes
0answers
27 views

Choosing class names and relations for different user scopes

I am developing an online Order Management System using PHP in which I have some different behavioural scopes regarding the User class: some user scope under which the chronological transactions are ...
2
votes
3answers
80 views

Can government use a GNU GPL licensed sofware (phpBB) without posting the source code?

I'm now doing my internship in a government company (in India) and I've been assigned a project to create an online forum for the company.. I'm about to use phpBB forum software to create it, which ...
-3
votes
0answers
22 views

Mobile devices and their screen resolution [on hold]

I have used and if statement with document.write(screen.width + 'x' + screen.height); There must be a better way like knowing the type of device and then moving them to a custom website. Does ...
0
votes
0answers
12 views

Bi-directionally synchronize/mirror folders over the internet

I am programming on the C# stack, but I have next to none Azure experience. We have several customers who have various processing needs on data files that reside at the customers computers. We want ...
1
vote
1answer
37 views

How to implement a secure way to allow users to reset password via url?

Password reset option should be given only if the link has come from that specific user's inbox and not from somewhere else. How to implement url in such a way that the required information i.e. ...

15 30 50 per page