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
7
votes
2 answers

How to Implement Segment Control in android studio?

I need to use segmented control in Android. Is there a default control for the same? What might be the best and efficient way to do so?
Satish Kumar
  • 131
  • 2
  • 10
7
votes
3 answers

Create campaign with dynamic segment using MailChimp API V3.0

Using MailChimp API V3.0 to create a campaign. I want to create a campaign that sends to users with a specific interest. It looks like this is possible in the docs, but I've tried every permutation I can think of. I can create the campaign fine as…
Bob Ray
  • 1,105
  • 10
  • 20
7
votes
1 answer

ELF program header segments sizes and offsets

I am trying to understand the ELF format and right now there are some thing that I don't get about the segments defined in the program header. I have this little code that I convert to an ELF file with g++ (x86_x64 on Linux): #include…
ali
  • 10,927
  • 20
  • 89
  • 138
6
votes
1 answer

Picker with SegmentPickerStyle() doesn’t show picker title in SwiftUI

I created a segment picker for select gender in that segment picker I have to option one for Male and another for Female. Picker is working fine But set title on with picker it’s not showing. I set title Select Gender which is not showing as a…
Ravindra_Bhati
  • 1,071
  • 13
  • 28
6
votes
1 answer

How to obtain the last path segment of a URL

I have following url: targetUrl := "http://google.com/foo/bar?a=1&b=2" myUrl, err := url.Parse(targetUrl) I wonder how I can obtain last path segment (bar) from myUrl.Path?
pixel
  • 24,905
  • 36
  • 149
  • 251
6
votes
1 answer

How to use OpenCV4's FastLineDetector in Python 3?

I'm trying to use FastLineDetector from OpenCV4 library in Python 3 in order to detect lines and segments from images but it seems that there is no way to make it work. I've read the documentation here :…
maggle
  • 485
  • 4
  • 11
6
votes
2 answers

scrollable segments in ionic 2 (horizontal)

I am trying to do horizontal scroll using segments in ionic2. Here is the code: home.ts:
Mohan Gopi
  • 7,606
  • 17
  • 66
  • 117
6
votes
4 answers

May a compiler ever generate code to unload parts of the code segment during execution?

Apart from Dll concept that provides ability of loading/unloading methods or functions at run-time, I'm wondering if a compiler may ever say something like, ok as this particular part of the code takes considerable amount of space in code segment…
Pooria
  • 2,017
  • 1
  • 19
  • 37
6
votes
2 answers

Android: Joining multipart files together to make a single file

I'm working on an android application which can download files in several parallel segments. I have them separately, and now I want to join them all together. To be more clear, I will show you it by an simple example. Lets say I downloaded 100kb…
don
  • 597
  • 2
  • 8
  • 28
5
votes
1 answer

Intersection of a 2D segment with a rectangle

I using C# and XNA. I need an algorithm in any language to obtain the border intersection point(s) of a rectangle with a 2d segment. I've been looking for an answer for my question for over 3 hours already and couldn't find a solution that…
5
votes
2 answers

Can this be solved with a line sweep algorithm in O(n)?

In this problem we are given n horizontal segments in the plane, find in O(n) time a line that intersects all the segments and has the largest possible slope, or determine that there is no such line. I thought about finding all possible lines by…
5
votes
0 answers

Failed to load Analytics native module

I'm trying to use Segment for analytics on my React Native app. I want it to work for both Android and iOs. This issue persists on both OS's. I installed the NPM library as explained here by doing: yarn add @segment/analytics-react-native yarn…
Isonlaxman
  • 93
  • 8
5
votes
0 answers

Disable subdomain tracking on Segment

We have a SAAS business with Analytics.js' Segment library install on domain.com (with API key X) and a.domain.com (with API key Y). When a user logs itself on domain.com, Segment is setting a cookie *.domain.com that is read to keep user_id and…
athur
  • 51
  • 3
5
votes
1 answer

Setting segment registers after ORG instruction

I am currently following a tutorial on OS development, which includes a discussion on bootloaders. My bootloader is currently in 16-bit real mode, therefore, I am able to use the BIOS interrupts provided (e.g. VGA video interrupts, etc.). The BIOS…
Code Doggo
  • 2,146
  • 6
  • 33
  • 58
5
votes
2 answers

stack segment and stack pointer in 8086

I'm a little bit confused with stack segment (ss) and stack pointer (sp) registers . when the stack is empty, is the sp value equal to the ss value ? I read that when we push a word (2bytes) to the stack the sp is decremented by 2, if the first…
1
2
3
41 42