Questions tagged [segments]

segments are divisible parts of something usually associated:

  • in programing with memory segmentation (memory pages, or array/table/file division)
  • in Graphics with polyline/polygon parts or any visual division of objects (like hatching,grids,...)
  • in HW architectures,linkers,compilers with separate memory/code areas for program,data,stack...
138 questions
2
votes
0 answers

timeit on separate cells different to a combined cell

I was performing some code timing of cells in jupyter notebook where I was writing to segments of a numpy array and found that breaking up the code produces a different processing time, compared to original combined code. The folowing is a minimal…
Mecgrad
  • 64
  • 5
2
votes
1 answer

Mailchimp api v3 - can't create segment based on a TEXT merge field

I'm trying to create a segment based on a new merge field of type TEXT that I just created, by using condition_type = TextMerge since it seems to be the only option from their documentation that matches my…
2
votes
2 answers

Segment intersection implementation

I was trying to implement the vector based segment intersection algorithm described here(the most up-voted answer) in Java but as it usually goes with implementing algorithms you don't fully understand, I keep failing. I would very much appreciate…
user2468893
  • 45
  • 1
  • 5
2
votes
1 answer

Translog in ElasticSearch: real-time CRUD and cheap fsyncs?

While going through ElasticSearch's definitive guide, I stumble upon some mystery. It is first established that search is near real-time, since changes need to be refreshed as a new segment into the filesystem cache (by default every second) only…
user1610325
  • 313
  • 1
  • 9
2
votes
1 answer

How to count total number of segments in codeigniter?

I want to count total number of segments in codeigniter so I can display error if user/visitor enter additional segment in my url.
Muhammad Asfund
  • 97
  • 2
  • 10
2
votes
1 answer

Nutch segments folder grows every day

I have configured nutch/solr 1.6 to crawl/index every 12 hours an intranet with about 4000 documents and html pages. If I execute the crawler with an empty database the process takes about 30 minutes. When the crawling is executed for several days,…
Marco Altieri
  • 3,726
  • 2
  • 33
  • 47
2
votes
4 answers

Storing data in segments with assembly

I am learning x86 assembly language, and I understand the purpose and usage of segments. Segments hold vital data, and can also be used to store extra data (ie. Memory Segmentation Model). Here is my question though. If segments can be used to store…
QAH
  • 4,200
  • 13
  • 44
  • 52
2
votes
2 answers

Identifying error that is causing "non-POD type 'class segment' "

Section of my code where error is occuring: int disk::access (const char fname[]){ int char_count=77; int actual_count=0; //just to pass the tests. char c; cout << "the file name is " << fname << ", and the mode is " << mode <<…
SorryEh
  • 900
  • 2
  • 15
  • 47
2
votes
1 answer

How do you show a 404 when there are extra URL segments in CodeIgniter?

Basically, I have a CodeIgniter site that registers users through this url: http://website.com/user/register/1 Unfortunately, when you pass extra arguments in the URL like this: http://website.com/user/register/1/extraargs/extraargs Here is my…
Mico Abrina
  • 507
  • 1
  • 7
  • 25
1
vote
1 answer

R: Using the segments function to plot a map of stacked lines

I have written a function that plots a number of lines along an axis, stacking them where they overlap. Below is the code, a sample table, and the image that it produces. The plot is mostly exactly what I was looking for but for a few things (in…
MattLBeck
  • 5,701
  • 7
  • 40
  • 56
1
vote
4 answers

Sectioned List in Java/Swing?

I have a list of items in a JList for the user to select. Since it's a lot of items (say, cities in states), I want to divide the list into sections. The section headings should not be selectable, though. So for my cities/states example, this might…
Robert Kosara
  • 583
  • 4
  • 10
1
vote
3 answers

Greenplum data distribution among segments

I have a Greenplum database, in which I have 10 segments reflecting the 10 hard disks. My table is divided into primary partition based on date and secondary partition based on hash id. So for a month there will be 30 primary partition and each…
Ganesh R
  • 123
  • 2
  • 10
1
vote
1 answer

Pthread segment registers

I will admit I did minimal research for this question (just a few shallow google searches). Do threading packages (pthreads specifically, but my question applies to all x86 unix user thread libraries) save segment registers (fs, cs, ds, etc) per…
Chris
  • 2,786
  • 1
  • 28
  • 31
1
vote
1 answer

what caused druid tasks failed

I had set up druid cluster(10 nodes),ingestion kafka data using indexing service.However,I found many of tasks are failed like below,but some data had been existed in segments,I am not sure if all datas are pushed in the segments. failed task…
Frank
  • 977
  • 3
  • 14
  • 35
1
vote
1 answer

C# How to use Uri equal?

Some Test: This is Ture: [Fact] public void UriEqualTest() { //Act var uri1 = new Uri("https://www.baidu.com"); var uri2 = new Uri("https://www.baidu.com/"); var boolResult = uri2.Equals(uri1); …
sicheng zuo
  • 157
  • 1
  • 5
1 2
3
9 10