The relational position of an entity, when compared to another entity with fixed position. Typically used, for example, to define location within a file or byte buffer from which information should be read.
Questions tagged [offset]
3019 questions
11
votes
5 answers
PHP: undefined offset in explode()
I have this:
list($firstname, $lastname) = explode(' ', $queryString);
Sometiems $lastname does not gets defined, and it's there i am getting undefined offset error.
Because it can not find anything to put in $lastname, i guess.
After the explode()…

Karem
- 17,615
- 72
- 178
- 278
11
votes
1 answer
Highlight text based on index in textContent
Bounty
The bounty will go to the fastest solution, as demonstrated by jsPerf, across the latest release versions of Firefox, Chrome and Internet Explorer at time of testing or the answer most useful in creating such a solution at my discretion.…

wizzwizz4
- 6,140
- 2
- 26
- 62
11
votes
3 answers
Change Google Map Offset Center
I'm trying to set the user location on the map such that it sits about 1/3 of the way up from the bottom of the screen, and when the map rotates, it will rotate around this point.
The closest I've got to achieving this is by using the setPadding()…

Dportology
- 836
- 1
- 9
- 32
11
votes
2 answers
Offset Top Not Working In IOS
Here is the complete code http://jsfiddle.net/vinex08/uhm26em1/
jQuery(function ($) {
var distance = $('.c').offset().top,
$window = $(window);
$window.scroll(function () {
if ($window.scrollTop() >= distance) {
$(".b").css({
…

Jeremi Liwanag
- 944
- 4
- 21
- 44
11
votes
6 answers
C code to get local time offset in minutes relative to UTC?
I didn't find a trivial way to get the time offset in minutes between the local time and the UTC time.
At first I intended to use tzset() but it doesn't provide the daylight saving time. According to the man page, it is simply an integer different…

chmike
- 20,922
- 21
- 83
- 106
11
votes
3 answers
What is byte-offset value in hadoop or in java?
I am a bit confused with the term, a byte offset value, which is treated as map key in Hadoop Map reduce program.
First, what is the byte offset value?
Second, how is it generated, and how does one view this byte-offset value?

user3493414
- 151
- 1
- 2
- 5
11
votes
1 answer
How to cleanly index numpy arrays with arrays (or anything else that supports addition so that it can be offset)
The easiest way to explain my question may be with an example, so let me define some arrays:
>>> test = arange(25).reshape((5,5))
>>> test
array([[ 0, 1, 2, 3, 4],
[ 5, 6, 7, 8, 9],
[10, 11, 12, 13, 14],
[15, 16, 17, 18,…

lnmaurer
- 1,687
- 4
- 22
- 32
11
votes
1 answer
Is this possible to get total number of rows count with offset limit
Hey Guyz Is this possible to get total number of rows count with offset limit
Scenario
SELECT * FROM users limit 0,5;
This Query contain 300 records but the issue is if i call this query with offset the result will be show only 5 record and i…

Query Master
- 6,989
- 5
- 35
- 58
10
votes
4 answers
How do you use offsetof() on a struct?
I want the offsetof() the param line in mystruct1. I've tried
offsetof(struct mystruct1, rec.structPtr1.u_line.line)
and also
offsetof(struct mystruct1, line)
but neither works.
union {
struct mystruct1 structPtr1;
struct mystruct2…

ken
- 283
- 2
- 6
- 12
10
votes
2 answers
Google maps API: Marker image positioning
I have changed the image that I use for a marker on Google maps. The new image is much wider than the old one and I have noticed that the marker is aligned with the lat and lng so that the marker rests with it's horizontal midpoint over the lat and…

David
- 183
- 1
- 2
- 7
10
votes
1 answer
kafka-python consumer start reading from offset (automatically)
I'm trying to build an application with kafka-python where a consumer reads data from a range of topics. It is extremely important that the consumer never reads the same message twice, but also never misses a message.
Everything seems to be working…

Steven
- 619
- 1
- 7
- 21
10
votes
1 answer
Using Kafka Connect HOWTO "commit offsets" as soon as a "put" is completed in SinkTask
I am using Kafka Connect to get messages from a Kafka Broker (v0.10.2) and then sync it to a downstream service.
Currently, I have code in SinkTask#put that will process the SinkRecord & then persist it to the downstream service.
A couple of key…

Chantz
- 5,883
- 10
- 56
- 79
10
votes
2 answers
Jquery sortable stange mouse offset
I'm working with the jQuery sortable plugin( 2 connected lists) and have a strange bug. When you drag the picture the mouse is above the dragged item
screenshot: http://img408.imageshack.us/i/mouseb.png/
Html for one of the lists
- 5,490
- 24
- 80
- 126

Olivier_s_j
10
votes
6 answers
UIButton background image offset
Is there a way to add some sort of offset to UIButton's background image?
I've got some custom background images for UIButton. These images do have a 5 pixel drop shadow area around the effective button area. When I use these images I have to move…

gabelkonus
- 466
- 1
- 4
- 13
10
votes
1 answer
How to get the offset of a view inside a ScrollView?
There is a ScrollView and which has many children views. Is there any way to get the offset-y to the top of the ScrollView for every child?

Freewind
- 193,756
- 157
- 432
- 708