Questions tagged [boundary]

481 questions
154
votes
10 answers

GIT_DISCOVERY_ACROSS_FILESYSTEM not set

I have searched and read few post but my problem is not the same as described. So here's the issue: using git clone into folder under external partition of the disk works fine but all git commands fails. can't execute git status or git log... I…
user755
  • 2,521
  • 3
  • 18
  • 29
77
votes
4 answers

How to check if an element is overlapping other elements?

I have two div elements. Each of them have 450px width and height. How do I check if the first div is overlapping the second div? I've tried to use javascript hittest, but it's a little bit complicated. Since I'm trying to find out how it actually…
Moon
  • 22,195
  • 68
  • 188
  • 269
63
votes
4 answers

Python: why does `random.randint(a, b)` return a range inclusive of `b`?

It has always seemed strange to me that random.randint(a, b) would return an integer in the range [a, b], instead of [a, b-1] like range(...). Is there any reason for this apparent inconsistency?
David Wolever
  • 148,955
  • 89
  • 346
  • 502
40
votes
2 answers

What are non-word boundary in regex (\B), compared to word-boundary?

What are non-word boundary in regex (\B), compared to word-boundary?
DarkLightA
  • 14,980
  • 18
  • 49
  • 57
25
votes
3 answers

when css position sticky stops sticking

I was wondering why position: sticky works for some x-axis-scrolling, but once you scroll past the initial width of the screen width, your 'sticky div', stops sticking. In this example, I have a left-side-bar that sticks to the left (please note…
user1709076
  • 2,538
  • 9
  • 38
  • 59
21
votes
3 answers

HttpContent boundary double quotes

I have this code sample that was posted as an answer to another question (Send a file via HTTP POST with C#). It works fine except for one issue. It surrounds the boundary in the HTTP header with double quotes: multipart/form-data;…
jtaylor___
  • 609
  • 1
  • 6
  • 14
19
votes
2 answers

SVG draws outside canvas boundary in Internet Explorer 9

I am using the Raphael Javascript library to do some rudimentary drawing for a web page. I am just drawing some lines that radiate out from a point. In Chrome, Firefox, and Opera, these lines are subject to the size of the SVG canvas. This is the…
Christopher Knowl
  • 263
  • 1
  • 3
  • 6
18
votes
2 answers

How to iterate over of an array of structures

In my application I use an array of structs and I need to iterate over the array. What is the proper way to do it? How can I check if I have reached the end of the array? // structure struct MyData { int count; char name[20]; float…
Dariusz
  • 21,561
  • 9
  • 74
  • 114
17
votes
2 answers

Emacs regex wordWord boundary (specifically concerning underscores)

I am trying to replace all occurrences of a whole word on emacs (say foo) using M-x replace-regexp. The problem is that I don't want to replace occurrences of foo in underscored words such as word_foo_word If I use \bfoo\b to match foo then it will…
nsimplex
  • 449
  • 4
  • 12
14
votes
4 answers

Model View Controller vs Boundary Control Entity

What's the difference between MVC (Model View Controller) and BCE (Boundary Control Entity), I know that these two pattern are similar, but there's a difference, what is that difference?
Luan Cardoso
  • 191
  • 1
  • 2
  • 10
14
votes
2 answers

What are valid characters for creating a multipart form boundary?

In an HTML form post what are valid characters for creating a multipart boundary?
lajos
  • 25,525
  • 19
  • 65
  • 75
12
votes
1 answer

Prevent to patch if the area is already filled

This is quite a tough challenge I have with my code. First of all the code I am putting here is not runnable because I am using an Excel sheet (but I am happy to email it if people want to try using my code). What I have is an Excel sheet with data…
10
votes
3 answers

Form boundaries and writing php://input to a file in php

So I want users to be able to upload big files without having to worry about the post max size values. The alternative is using PUT and send a file as raw data. When using jquery I can do this: var data = new FormData(); …
user1494552
  • 163
  • 8
9
votes
2 answers

How can I set boundary of Content-type using python requests?

POST /write.php HTTP/1.1 HOST: upload.sitename.com accept-encoding: gzip, deflate content-length: 788 content-type: multipart/form-data; boundary=----WebKitFormBoundarycHb9L3gZr8gzENfz referer: http://www.sitename.com user-agent:…
GuySome
  • 91
  • 1
  • 1
  • 2
9
votes
3 answers

HttpClient setting boundary with content-type

I am using javascript to communicate with a third party service. As part of their authentication process they need the "multipart/form" body of the post message including an image to be encrypted in md5, this is added to a string including the…
user2548513
  • 195
  • 1
  • 2
  • 12
1
2 3
31 32