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
1 answer

How to change color of single segment in segmented control

I've created a segmented control for my app that consists of 4 segments. I know how to change a background color for the all four of them but I want each segment to have their own color: 1st segment - blue background color 2nd segment - red…
0
votes
2 answers

Selecting rows based on a number of orders

My table PURCHASES has the following columns: NAME, ORDER_ID, ITEM_ID. When a client orders 2 items, it is recorded with 2 rows under same ORDER_ID and two identical or different ITEM_ID (depending if the customer has bought the same items or…
Arnaud Martinn
  • 95
  • 2
  • 11
0
votes
0 answers

Draw a Pieslice with SetPixel

I use an Graphical LCD together with an microcontroller. I would like to draw some Pieslices. I only can set single Pixels. Are there any already existing functions to draw Pieslices? Can someone give me a hint where i can find such a function? I…
C. Hediger
  • 434
  • 7
  • 22
0
votes
0 answers

How to set the stack segment of a program?

As is know to all, mordern 32-bit operating systems employe flat mode.That is, all segments such as the code segment, data segment and stack segment start from 0 and spans over 2^32 - 1 address space. But here is a task that requires to set a…
Matthewxie
  • 141
  • 2
  • 10
0
votes
1 answer

how to detect Segment controller if enabled or not?

I want to make the segment controller must be selected by user but i don't know how to detect if he choose a button on segment controller or not? I'm trying to write: if ( segmentbtn != nil) { Println(" You must select!") } but isn't working, i'm…
Salah
  • 933
  • 3
  • 13
  • 32
0
votes
2 answers

How to remove ship wake in image by using opencv?

I want to use color to detect a white ship.When the ship speed is low ,i can get a good result.But when the speed is high,i can't.Because the ship wake is white,too.I try to use erode and dilate method to remove ship wake,but the result is not…
GKG DTH
  • 117
  • 1
  • 10
0
votes
1 answer

Can I replicate the IsStroked property for a PathSegment in Silverlight 4?

In WPF it is possible to use the IsStroked property of a PathSegment to make the Segment invisible, I'm looking for a way to replicate this behavior in Silverlight, which doesn't have this property. Is this possible? [EDIT] I'm looking for a way to…
Aviv B.
  • 685
  • 1
  • 6
  • 8
0
votes
1 answer

add segment before controller without changing base url

I have a url like this localhost/codeIgniter/Depan?lang=id and I want to make it like this localhost/codeIgniter/id/Depan where localhost/codeIgniter is the base_url, /id is parameter for language, and /Depan is the controller name. But since I…
estu
  • 117
  • 1
  • 3
  • 9
0
votes
0 answers

Amd64 - segments and their limit: just 4Gb?

I am on the amd64 arch, on intel c2d. I can't understand something simple : A segment descriptor is a the representation of a process (code segment, data, stack..) How is it that we are stil limited to 4Gb on the amd64 architecture (that is the…
Jdarc
  • 55
  • 6
0
votes
2 answers

qsort Segmentation Fault structs

So, my first question here, please be patient with me: My task is to sort an array of structs (name, surname and another struct for the birthday, which consists of the year, month, day). I have to sort by birthdate and by using qsort. My problem is,…
WoodPecker
  • 19
  • 2
0
votes
0 answers

Send Android Parse Push Notification to segment

I am trying to send push notifications to segment users in Android. Below is the code, it worked for few trials but now the same code send the push to everyone instead of the intended receiver (at the least that is what is shown on the dashboard).…
saintjab
  • 1,626
  • 20
  • 31
0
votes
1 answer

Formula to determine if a line segment intersects a circle (flat)

Apologies if this is considered a repeat question, but the answers I've seen on here are too complex for my needs. I simply need to find out if a line segment intersects a circle. I don't need to find the distance to the line from the circle…
Dan
  • 1
  • 1
0
votes
3 answers

NSSegmentedControl -selectedSegment always returns 0

I have an NSSegmentedControl with two segments set to "Select None" mode in Interface Builder. No matter what I try, I can't get -selectedSegment to return anything but 0, even though segment 0 is even disabled by default and can't possibly be…
vilhalmer
  • 1,149
  • 3
  • 11
  • 23
0
votes
1 answer

Is there a way to make pagination on 4th segment in codeigniter?

So, here is my url: http://example.com/ci/index.php/home/sort_by_week As you see, my 3rd segment is sort_by_week, but i need to make pagination on this page, is there a way to get the 4th segment? I already tried to do $this->uri->segment(4) in…
Radu Dascălu
  • 318
  • 4
  • 15
0
votes
1 answer

Which of these two operations on an 8086 CPU will be faster in execution and why?

Which of these two operations on an 8086 CPU will be faster in execution and why? Read the word 0x000A from the address 0x0000B Read the word 0x000B from the address 0x0000A
JohnnyFromBF
  • 9,873
  • 10
  • 45
  • 59