Questions tagged [segment]

Segment is an ambiguous tag and one should refrain from using it. It has several, very different, meanings in CS. Please try and pick a more accurate tag for your post.

  • Segmentation (memory), the division of computer memory into segments
  • Image segment created in computer vision
  • String segment, the substring of a pattern delimited by two don't cares or one don't care and beginning or end of the pattern
  • Network segment, a part of a larger computer network
  • A protocol data unit of the transport layer in computing, e.g. TCP segment
625 questions
0
votes
0 answers

How to pass the uri->segment values to other controller in codeigniter?

How to pass the uri->segment values to other controller in codeigniter? I have this URL http://localhost/sample/controller_1/view/73 and I need to get the 73 and use it on another controller like controller_2. Obviously I could get it using…
0
votes
1 answer

Rails get equal segments in between a date range

I have a product model and orders associated to the product. I wanted to analyze all orders from creation of product to current time. I was thinking to optimize, I would take products created at day, and current time as start and end points. The…
Yasir
  • 879
  • 5
  • 13
  • 31
0
votes
1 answer

Replacing segments in multiple lines with another segment in the same file, which is in multiple folders, using find and sed

I have a the following directory structure of multiple folders: Applications | |____Salford_123 | |_________SomeFile.png | |_________AnotherFile.nui | |_________MenuSettings.txt | |_________Data | …
Eggfoot
  • 49
  • 6
0
votes
2 answers

Laravel 5.1 - How to access dynamic URI segment in Controller and Route

Team, I am using Laravel 5.1, In which I have to use URI segment feature same as Codeigniter Like eg. URL - www.example.com/user_id/user_type/user_role/.... Want to access those parameters user_id, user_type, user_role in controller and also want to…
Sanjay M
  • 1
  • 4
0
votes
1 answer

Custom segments in a circle using CSS

My goal is to make circular segments which looks like this. But so far I am able to do this. #outer-circle { background: #385a94; border-radius: 50%; height: 360px; width: 360px; position: relative; /* Child elements…
Sam
  • 79
  • 2
  • 10
0
votes
1 answer

How to find if HL7 Segment has ended or not if Carriage return is not present

I am working on a tool which will construct a HL7 message in following Way : Message will start with : 0B Segment will end with : OD And Message will end with : 1C0D So, here i have reached so far, i am able to add OB and add 1C0D in the end of the…
0
votes
1 answer

Closest point on a line segment to an AABB

I need to know the point on a line segment that is closest to an AABB. I know that the line definitely does not intersect the box. As a possible simplification, one of the dimensions of the box is zero (most of the time) so finding the closest…
allanmb
  • 321
  • 3
  • 14
0
votes
2 answers

How to disable fragmentation: Tomcat8 SSL return 2 reassembled SSL segments

We have an application runned on Tomcat8, in the https get response, there're 2 reassembled SSL segments. Is there any way to turn off it and send ONE TCP packet? enter image description here
0
votes
1 answer

Matlab displaying binary images as video

I'm using this code as a starting point to detect the skin color of a hand in a video. as the first step I've manged to do that and display the result by using the imshow(segment); function in Matlab. here's the code (found online) i don't fully…
0
votes
0 answers

Divide single image into multiple images using squares as basis

We are currently doing out thesis work about OCR or optical character recognition. Just want to ask something about diving a single image into multiple images or templates. What we are trying to achieve is that we want to segment or divide each…
TheVe
  • 1
  • 2
0
votes
1 answer

Tune egmented nonlinear regression function in R with segmented package

I have a df df<-structure(list(x = c(97, 100, 101, 301, 302, 74, 75, 77, 78, 79, 49, 50, 51, 52, 53, 54, 55, 56, 2, 3, 4, 5, 13, 14, 15, 16, 17, 71, 72, 157, 160, 162, 163, 164, 165, 153, 154, 155, 71, 72, 73, 74, 37, 38, 39, 40, 41, 40, 22, 23,…
SimonB
  • 670
  • 1
  • 10
  • 25
0
votes
1 answer

About accessing %gs

I have read another discussion. I know %gs is segment register, it stores segment descriptor. OS get segment descriptor and calculate physical address. Most of time, segment descriptor is intransparent for programmer. I can do some trick like…
hwliu
  • 205
  • 2
  • 6
0
votes
2 answers

Adding a Source to Librato Data When Sending through Segment

I am trying to figure out how to add a source to a metric in Librato when sending the information via Segment. I am using the python library and have tried creating a property for source (below) but it doesn't seem to be working properly. Here's…
Meaghan Fitzgerald
  • 2,829
  • 2
  • 16
  • 22
0
votes
1 answer

determinate: is point on line segment

I am trying to code a java methods which returns a Boolean true if a point(x,y) is on a line segment and false if not. I tried this: public static boolean OnDistance(MyLocation a, MyLocation b, MyLocation queryPoint) { double value =…
Dennis
  • 90
  • 12
0
votes
1 answer

FFMPEG: Output to a new file after certain period of time with creation time stamp?

Suppose I have a command: ffmpeg -f v4l2 -framerate 30 -video_size 640x480 -i /dev/video1 -c:v libx265 -x265-params bitrate=60:vbv-maxrate=60:vbv-bufsize=16:keyint=10:qcomp=0.5 -tune zerolatency -s 640x480 -preset ultrafast -pix_fmt yuv420p -r 5…
Anakooter
  • 327
  • 4
  • 17