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

MySQL - GROUPING into ranges based on a SUM

Thanks in advance for taking a look at my issue. What I am trying to to is take a users transaction history and sum the revenue from all of their total orders, then group these total orders into segments, and count how many users are in each…
0
votes
3 answers

How to preg_match for a specific pattern in a url?

I would like to use preg_match in PHP to test the format of a URL. The URL looks like this: /2013/09/05/item-01.html I'm trying to get this to work : if (preg_match("/([0-9]{4})\/([0-9]{2})\/([0-9]{2})/[.]+[.html]$", $_SERVER['REQUEST_URI'])) : …
0
votes
2 answers

how to hide controller name using routes when you have an id segment?

I have an url like this: http://kees.een-site-bouwen.nl/home/categorie/11 to show factories in a specific category. I want to have an url like this: http://kees.een-site-bouwen.nl/categorie/11 but when i use the url routing in my config/routes…
Kees Sonnema
  • 5,759
  • 6
  • 51
  • 106
0
votes
2 answers

using segments on default controllers in codeigniter to go to profiles after not finding the other controllers?

Does anyone know if it's possible to use segments on the default controller? For example if i want to go to a profile on my site, it would be site.com/profileName, i know you would use it to access other controllers but I want it work so that if…
user1627990
  • 2,587
  • 2
  • 16
  • 18
0
votes
1 answer

How to change segmentcontrol color while loading the iphone application?

i want to change the color of the segment color while loading the application. or is it possible to change the color of the segmentcontrol according to the NavigationBar header/title color? Provide any solution with any code snippet or any useful…
Developer
  • 1,009
  • 8
  • 25
  • 56
0
votes
1 answer

x86 assembly proper data segment usage?

I have been developing an 32 bit OS and just implemented a ELF loader. I can load executable however I would like running programs to each have there own data segment. Now from what I have gathered from research in 32 bit protected mode the data…
user1454902
  • 750
  • 9
  • 24
0
votes
1 answer

Sum of all Maximum and minimum in all segments

I am doing a problem in which there is a need to find sum of maximum elements in a segment - sum of minimum elements in a segment.I tried using Sparse Table ,but it is two slow for the time limit.So i did something like this: If n=4 segments are…
kanz
  • 87
  • 7
0
votes
1 answer

Recursive function to test all the possible combinations and find the smaller one

I'm dealing with a problem, trying to make a recursive method that will test all possible combinations and show me the "cheapest" one. The task is that: I have an Array[n] numbers, which was dynamically allocated and filled. {1, 3, 4, 2} for…
0
votes
1 answer

codeigniter uri segment url appending at the end

url : http://localhost/back-office/index.php/staff/shopping when i change the category on every onchange event i want the url should be like this…
Ragavendran Ramesh
  • 376
  • 1
  • 7
  • 23
-1
votes
3 answers

Create sequential subgroup_ID within each group_ID depending on a column

I am struggling in finding the solution to a very simple task that needs to be run over 10 millions records. Assuming the following data set: mydf <- structure(list(group_ID = c(1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2,…
Seymour
  • 3,104
  • 2
  • 22
  • 46
-1
votes
1 answer

c language memory management with string segments and fifos

Good evening, I need to create a program that will ask for 3 segment names, each segment will ask for a value. my total memory is 2000 units. I need to use structs and fifos to communicate between a client (which will get the input from the user)…
mr_nyo
  • 99
  • 1
  • 9
-1
votes
1 answer

Workaround for Segments not working in Dashboards

I was looking to create dashboards for my org's stakeholders for their specific areas of our site. I was unable to get a report for the data I needed, so I researched Segments, created & applied them, and then applied them to each specific Dashboard…
B.Foor
  • 21
  • 8
-1
votes
1 answer

Finding Anchors and slope for segmented time series

I have the following time series: Lines <- "Hour,PF 0,14/01/2015 00:00,0.305 1,14/01/2015 01:00,0.306 2,14/01/2015 02:00,0.307 3,14/01/2015 03:00,0.3081 4,14/01/2015 04:00,0.3091 5,14/01/2015 05:00,0.3101 6,14/01/2015 06:00,0.3111 7,14/01/2015…
Avi
  • 2,247
  • 4
  • 30
  • 52
-1
votes
3 answers

Copying part of an array into another variable

So I'm trying to copy part of an array into another array in the simplest way possible. I was trying to avoid using a loop. This was my thought process... char date[]="20140805"; char year =date[0..3]; The ".." is what is causing the error. I want…
halolord01
  • 173
  • 1
  • 3
  • 8
-1
votes
1 answer

Python Turtle: Drawing pie chart with one segment seperated

There is this example in my workbook that gives me a list of information and asks to draw a pie chart representing this information. The ONLY module that you can import is turtle. I can draw the pie chart like in figure 1 but I do not know how to…
1 2 3
9
10