Questions tagged [boundary]
481 questions
1
vote
2 answers
Adding boundaries in Pygame with movable characters/images
I have been creating a game where an image moves according to player input with Keydown and Keyup methods. I want to add boundaries so that the user cannot move the image/character out of the display (I dont want a game over kind of thing if…

Jim
- 25
- 6
1
vote
0 answers
R: k-means clusters area color fill
I ran k-means on lat-long data and got some 20 clusters (color coded, black dots represent center of each cluster). Is it possible to somehow fill the clusters' area with color? or add rough boundaries like shown in a mock up example from k-means…

Alexey Ferapontov
- 5,029
- 4
- 22
- 39
1
vote
3 answers
How to find out if an event occurred between two other events
I need to find out how many times an instance of one variable occurred between two instances of another variable. Given the data:
v <- c(1, 0, 0, 1, 0, 0, 0, 1)
w <- c(0, 0, 1, 0, 0, 0, 1, 0)
x <- c(0, 0, 0, 1, 1, 0, 0, 0)
y <- c(0, 0, 0, 0, 0, 0,…

PhiloT
- 171
- 5
1
vote
0 answers
ECB pattern (Entity,Control,Boundary) implementation
I'm learning about the ECB pattern. I've understood the concept of this pattern but i'm not sure about its implementation. I'm going to write a simple example:
I supposed to need a software which manages the customers of a shop. The customers are…

spx305
- 109
- 2
- 11
1
vote
1 answer
How to specify a Boundary on my multipart/form-data request?
I'm trying to send some form-data files to my backend, and I have this issue which consists on the browser (or server, or whatever) keeps ignoring the boundary I have defined and changing on my request payload to some WebKitFormBoundary random…

TheNameless
- 21
- 1
- 8
1
vote
2 answers
JavaFX Game Issues with wall boundaries
I am having trouble getting my simple JavaFX Maze Game to work. I just wanted to do this to test how much I knew, and I have gotten almost to the end.
All I want to do now is see if there is a way for me to combine all of the Rectangle2D Boundaries…

MattChris
- 397
- 4
- 19
1
vote
0 answers
Missing boundary in request (Error: content-type missing boundary)
I had this proxy:
router.post('/proxy/foo', function (req, res, next) {
const proxy = http.request({
method: 'POST',
port: 4000,
hostname: 'localhost',
path: `/files/foo`,
headers: {
…

Alexander Mills
- 90,741
- 139
- 482
- 817
1
vote
1 answer
Keeping Objects Within a Boundary
This is supposed to generate 4 shapes from a DOM that aree positioned differently across the screen, and move across the screen when prompted.
I'm having issue making the boundaryChecker function work. I've been trying for ages to figure what to do,…

kantor9991
- 61
- 6
1
vote
3 answers
How to detect the boundary of an uiimage
In my application i want to detect the boundaries of an uiimage. I'm having an flower image has many parts like,(lief,sticky bulb etc..)as a single image.If i'm touch the particular lief means it find the boundary value of that particular lief and…

kanmani
- 671
- 1
- 10
- 28
1
vote
1 answer
nodejs: does socket data need reassemble and prepend length for packet boundary?
I'm building a tcp server. I have some questions:
In nodejs, when socket receive data event:
Do need to take care whether the packet order is correct, in other words, how the tcp packets reassemble is handled? Is it handled already by the…

Aaron Shen
- 8,124
- 10
- 44
- 86
1
vote
1 answer
Efficient Boundary Approximation
Imagine I have the following structure represented in an array:
The blue cells represent "boundaries" and the red cell represents the structures origin. I have a function that calculates the distances of each interior cell (cells which aren't…

Manmax75
- 47
- 6
1
vote
2 answers
Getting Jmeter to generate the boundary dashes in the Content-Type header (eg boundary=--V0a4bfux...)
This what my HTTP request is generating
Content-Type: multipart/form-data; boundary=V0a4bfuxfGhaH_Voo_Gu6oAEtj5FJNcp; charset=UTF-8
However, when compared to the POST data, it is lacking the 2 dashes in the front, which causes the server to reject…

Michael Y
- 143
- 7
1
vote
0 answers
R. Draw boundary lines of multiple groups
I would like to draw boundary lines of multiple groups in a two dimensional plane. I know I can draw a contour line to divide only two groups using SVM, but not for multiple groups.
In the sample code below, there are 500 points in 5 groups. But in…

stok
- 375
- 4
- 8
1
vote
1 answer
Make a better grid of points with python
I can make simple grid of points in a rectangular domain by simply saying:
import numpy as np
x = np.linspace(0,2,M+1)
y = np.linspace(0,1,N+1)
X,Y = np.meshgrid(x,y)
And put this value in a particular order that I want (I want the code to read…

Martina Cotti
- 11
- 1
- 2
1
vote
0 answers
Upload data via multipart request in Java
I have a multipart/form-data request code, but it gives an error. I checked for errors, but I could not find anything. Could you help me to solve this problem? Unfortunately, I myself can not cope.
URL serverUrl = new URL("https...");
…

Magic Max
- 21
- 3