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
5
votes
3 answers

Losing URI segments when paginating with CodeIgniter

I have a /payments interface where the user should be able to filter via price range, bank, and other stuff. Those filters are standard select boxes. When I submit the filter form, all the post data goes to another method called payments/search.…
Dan H
  • 3,524
  • 3
  • 35
  • 46
5
votes
1 answer

Memory Segments in C — Text Segment

Can someone tell me what is a 'text segment' in C, and if possible show me a simple example?
Matt_p
  • 125
  • 2
  • 5
5
votes
1 answer

What's the real meaning of $$ in nasm

$$ is defined as current segment address in NASM. But what's the real meaning of it? I wrote two asm files to test it: a.asm extern another [section .text] global _start _start: mov ebx, $$ call another b.asm [section .text] global…
Searene
  • 25,920
  • 39
  • 129
  • 186
5
votes
2 answers

why segments in elf file can overlap

simple C file: #include int main(){ printf("Hello World"); return 0; } after compile the code, using readelf -a a.out, elf info is follow: Questions: several sections appear in different segments, like interp section both in 2nd…
bluesea
  • 429
  • 4
  • 9
4
votes
3 answers

How to find the maximal number of these intervals that have a common point?

I have been reviewing algorithms, this is question from Anany Levitin's algo book.. You have a list of n open intervals (a1, b1), ... , (an, bn) on the real line. (An open interval (a, b) comprises all the points strictly between its endpoints…
4
votes
1 answer

Oracle Segment Does Not Equal Extents?

For a given tablespace, why doesn't the sum of bytes in dba_extents equal the sum of bytes in dba_segments? (additional questions after sample script.) SQL> with "SEG" as ( select 'segment_bytes' what , to_char(sum(bytes),…
Alex Bartsmon
  • 471
  • 4
  • 9
4
votes
1 answer

Splitting an Audio File Into Equal-Lenght Segments Using FFmpeg

I want to split an audio file into several equal-length segments using FFmpeg. I want to specify the general segment duration (no overlap), and I want FFmpeg to render as many segments as it takes to go over the whole audio file (in other words, the…
GPWR
  • 186
  • 3
  • 11
4
votes
2 answers

Splitting apart overlapping segments

Here is a vector of segments class Segment { public: size_t left; size_t right; char ID; Segment(size_t a, size_t b, char c):left(a), right(b), ID(c){assert(left A = {{3, 10, 'A'}, {7, 22, 'B'}, {14,…
Remi.b
  • 17,389
  • 28
  • 87
  • 168
4
votes
1 answer

Tensorflow unsorted_segment_sum dimension

I'm using the tf.unsorted_segment_sum method of TensorFlow and it works fine when the tensor i give as data have only one line. For example: tf.unsorted_segment_sum(tf.constant([0.2, 0.1, 0.5, 0.7, 0.8]), tf.constant([0, 0,…
4
votes
2 answers

drawing line segments connecting sets of points

I am trying to connect sets of (two) points at each level of x, in each facet. Here is a reproducible example: datum <- structure(list(frequency = c(8L, 7L, 6L, 18L, 5L, 11L, 16L, 15L, 9L, 8L, 8L, 10L, 2L, 20L, 14L, 3L, 6L, 2L, 2L, 11L, 10L, 6L,…
Tjuggles
  • 43
  • 3
4
votes
2 answers

WPF, convert Path.DataProperty to Segment objects

I was wondering if there was a tool to convert a path data like "M 0 0 l 10 10" to it's equivalent line/curve segment code. Currently I'm using: string pathXaml = "
user275587
  • 690
  • 8
  • 21
4
votes
1 answer

Number of segments in a DASH MPD

How can I determine the number of segments of a DASH media if the MPD file doesn't have any segment URL's lists? It only has a segment template, so I don't know how many segments the media associated to this MPD has. This is the MPD I'm talking…
user3284980
  • 43
  • 1
  • 1
  • 3
4
votes
1 answer

How do I draw an arc based on two given points and a given height describing a circle segment?

I'm trying to draw an arc based on two given points and a given height describing a circle segment. To acomplish this I would use the following method from java.awt.Graphics. drawArc(int x, int y, int width, int height, int startAngle, int…
Robin
  • 1,927
  • 3
  • 18
  • 27
4
votes
1 answer

What is vector quantization using k-means?

First of all, can someone explain what vector quantization is, its purpose, and what it does? Secondly, an explanation of how k-means is used to do this would be appreciated as well. For the record, I don't know if this will make a difference in…
Shaayaan Sayed
  • 231
  • 2
  • 5
  • 13
4
votes
1 answer

add segments to scatter-plot

(this follows ggplot2 loess Q for which I got a nice answer) -- leading to this plot: My R knowledge is quite limited (sorry!) I plot a scatter using data from a table data1. data1<-NaRV.omit(data[,c(2,3,7,10)]) #(2=start, 3=end, 7=value,…
splaisan
  • 845
  • 6
  • 22
1 2
3
41 42