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

What are segments in Lucene?

What are segments in Lucene? What are the benefits of segments?
Mahdi Amrollahi
  • 2,930
  • 5
  • 27
  • 37
34
votes
11 answers

Storing Business Logic in Database

We want to write some business logic rules that work on top of certain data to build reports. Not sure which is the best to store them in the database MySQL. It can have a chain of the rules and then a statement for the result as shown above.
Harsha M V
  • 54,075
  • 125
  • 354
  • 529
22
votes
4 answers

What's the technology behind live stream sites?

It's amazing to notice that live stream sites like doitlive.tv can deliver videos on very low bandwidth (as low as 25kbps) home connection. Could someone explain me the technology behind such sites and how they managed to deliver under such low…
user372993
  • 358
  • 2
  • 10
19
votes
4 answers

ArraySegment - Returning the actual segment C#

I have been looking around on ways to return the segment which is basically held by ArraySegment in terms of offset and count. Although ArraySegment holds the complete and original array, it just delimits it with the fact that any changes to the…
user349026
18
votes
2 answers

How to draw an arrow on every polyline segment on Google Maps V3

I was looking for a solution to this problem on stackoverflow but since I couldn't find the accurate solution I ended up solving it myself and post it here, hope it help. Google Maps provides you the Polyline feature, which based on a list of…
Martín C
  • 1,027
  • 1
  • 9
  • 13
18
votes
1 answer

connecting points with lines in ggplot2 in r

Here is my data: mydata <- data.frame (grp = c( 1, 1, 1, 1, 1, 1, 1, 1, 1, 2,2, 2, 2,2, 2, 2, 2, 2), grp1 = c("A", "A", "A", "A", "A", "B", "B", "B", "B" , "A", "A", "A", "A", "B", "B", "B", "B", "B"), namef =…
jon
  • 11,186
  • 19
  • 80
  • 132
17
votes
3 answers

What's the right way to define an anchor tag in rails?

It's obvious from the documentation (and google) how to generate a link with a segment e.g. podcast/5#comments. You just pass a value for :anchor to link_to. My concern is about the much simpler task of generating the
Joe Flynn
  • 6,908
  • 6
  • 31
  • 44
16
votes
1 answer

URL segment using Laravel 4

How can I implement a segment based url in laravel 4? I tried using it in laravel 3 like URI::segment(1) and it works. I converted my website using laravel 4 but the URI::segment(1) got an error. Any help?
johncena
  • 183
  • 1
  • 1
  • 4
13
votes
3 answers

How to access .env variables in a Nuxt plugin?

Segment Analytics provides a snippet with a secret API key in it. In my Nuxt.js project I created a plugin called segment.js which I registered in my nuxt.config.js: nuxt.config.js plugins: [ { src: "~/plugins/segment.js", mode: 'client' …
drake035
  • 3,955
  • 41
  • 119
  • 229
12
votes
1 answer

Assembly: Using the Data Segment Register (DS)

Currently I am in the midst of learning x86 assembly for fun, I'm love microcontroller programming, so I'm familiar with assembly. Currently I've been searching high and low for the answer to this question, but can't seem to find it... the DS…
Mykel Stone
  • 311
  • 1
  • 2
  • 9
12
votes
1 answer

Is all program code loaded into the text\code section\segment of memory

I have started to look at c programming and whilst I am not a complete beginner (I have knowledge of java and web development) there are a lot of things I do not understand. My question is about when a program is first loaded into memory. I am…
berimbolo
  • 3,319
  • 8
  • 43
  • 78
10
votes
3 answers

Create a Segmented Control Widget with slider button - Flutter

How do I create something similar to this?: Demo : I know flutter has CupertinoSegmentedControl() But this creates something similar to tabs, nothing that slides like something a Switch with a button inside.
Gabriel Costache
  • 859
  • 1
  • 6
  • 17
9
votes
1 answer

Add a segment only to one facet using ggplot2

As an example, I have this data frame, called my_data: Groups FactorA FactorB FactorC N value sd se ci 1 Control Condition1 Condition1 Condition1 3 92.00000 6.0827625 3.511885 15.110420 2 …
this.is.not.a.nick
  • 2,631
  • 3
  • 21
  • 26
8
votes
2 answers

How to refer to the start-of a user-defined segment in a Visual Studio-project?

I'm struggling to convert a C-program linked with ld, of the gnu tool-chain to make it compile as a visual-studio (2005) project. The program puts .data-symbols in different segments and during an initialization phase it copies data between…
ara
  • 466
  • 5
  • 6
7
votes
1 answer

Why segment merge in Elasticsearch requires stopping the writes to index

I am looking to run the optimize(ES 1.X) which is now known as forcemerge API in ES latest version. After reading some articles like this and this. it seems we should run it only on read-only indices, quoting the official ES docs: Force merge…
user12056260
1
2 3
41 42