Questions tagged [boundary]

481 questions
2
votes
2 answers

How do you generate Boundary In PHP?

I'm using Curl library to simulate "multipart-form-data" submission, then I noticed that I need to generate a unique string, but I have no idea how to do that. For example: Content-Type: multipart/form-data; …
Stacker
  • 47
  • 2
  • 8
2
votes
2 answers

Python/Django mime multipart email using boundary

In Django(with python), how can I build an email that looks as follows: What I need is an e-mail that starts with: Content-Type: multipart/alternative; boundary="=_5f8686714d769f9476ce778798b84ff4" The boundary is the place to put plain…
nelsonvarela
  • 2,310
  • 7
  • 27
  • 43
2
votes
1 answer

Hightcharts max 19 is rounded op to 20

I created a line chart in Highcharts and i want the maximum to be 19. So i found the option max yAxis: { max: 19; } But Highcharts rounds the max to 20 and i realy don't want this becouse 19 is the highest value posible for this variable. I've…
janb
  • 126
  • 1
  • 2
  • 6
1
vote
0 answers

New Boundary Shading

I notice that Google Maps now displays a pink shading on internal boundaries for a search ie search for Zambia and the country has a pink boundary. Does anyone know if this is or will be available in the Google Maps Javescript v3 API or the Static…
gilest
  • 11
  • 2
1
vote
1 answer

using hitTestPoint() with stage object to create object boundaries

I'm trying to create a boundary for a player object, controlled with arrow keys, in my game using the main stage's height and width. For example, one test point is at the top edge of the player object's bounding box so that when the player object's…
user701510
  • 5,563
  • 17
  • 61
  • 86
1
vote
2 answers

is there a function similar to matlab bwboundaries in opencv?

I need to find the boundaries of a binary image in opencv, but I can't find any picture to the matlab bwboundaries. does it exist such a function? thank you
andrea
  • 1,326
  • 7
  • 31
  • 60
1
vote
1 answer

How to write the constraints for scipy SLSQP properly

I am trying to write an optimization code with constraints using SLSQP method. But I can't understand it enough to write the proper codes for constraints. Lets say we have a function f, with p parameters, all with the same starting values (0.1) and…
Erdem Şen
  • 97
  • 1
  • 10
1
vote
1 answer

Maximum value for Julia integer types

Julia Integer types have a minimum and maximum value. When calculations go beyond those boundaries, results are 'incorrect'. for i in Int8[5, 10, 15, 20] println(i, " -> ", i^2) end Result: 5 -> 25 10 -> 100 15 -> -31 20 -> -112 Is there an…
René
  • 4,594
  • 5
  • 23
  • 52
1
vote
1 answer

About Regex word boundaries

I have this string: s=''' D. JUAN: ¡Cálmate, pues, vida mía! Reposa aquí; y un momento olvida de tu convento la triste cárcel sombría. ¡Ah! ¿No es cierto, ángel de amor, que en esta apartada orilla más pura la luna brilla y se respira mejor? ''' If…
1
vote
3 answers

How to get Words length and height, when drawing the images on a canvas in GDI+

I draw a string on a canvas, using GDI+ in C++. Is there any API to get the out layer (width, height ) of a string in a certain font? Thanks very much! Many thanks to Windows programmer's solution. I wrote the following code. Bitmap…
user25749
  • 4,825
  • 14
  • 61
  • 83
1
vote
0 answers

Solving ODE using SymPy with differential boundary conditions

I want to solve the following ODE after u(x): eqdiff = sp.Eq(q + EA * d2u,0) where: x,EA,l,q0 = sp.symbols('x EA l q0') q = q0 u = sp.Function('u') du = sp.Derivative(u(x), x) d2u = sp.Derivative(u(x), x, 2) I tried sp.dsolve(eqdiff, u(x), ics =…
chrispii
  • 11
  • 2
1
vote
0 answers

Geopandas GeoDataFrame.boundary raises null value error even if .is_empty returns False

I have a geopandas dataframe with an id column and a 'geometry' column. I am calling "boundary" onto the geometry column like so: gdf_ops['start_end_points'] = gdf_ops['geometry'].boundary But this raises a Value error: ValueError: Null/empty…
Carmoldu
  • 11
  • 2
1
vote
0 answers

Open boundary with Neumann Bc

How can I specify open boundary (full absorbing boundary) with Neumann boundary condition in MATLAB? Wave is travelling to right from Edge E1 and passes the Edge E3 (below fig). MATLAB Code for incident Boundary: fun1=@(location,state)…
1
vote
1 answer

How to pad an irregularly shaped matrix in matlab

I have a matrix with values in the center and NaNs on the border (imagine a matrix representing a watershed which is never square). I need to pad it with one cell to do some component stress calculations. I am trying to avoid using outside libraries…
1
vote
0 answers

How can I use an SVM to seperate two classes in a 2D map?

I have 2d-numpy array of points defining a map with obstacles Image of the 2D Map of which I am trying to create an SVM with. The values of this 2d-array are either 0 for open space (grey) or 1,-1 for obstacles (black/white). The formatting of the…
p1unge
  • 23
  • 4