Questions tagged [offset]

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.

3019 questions
29
votes
2 answers

ICS timezone not working

I have made an ICS feed containing a long list of events. My timezone does not seem to work. In the sample below you see that my event should start 07:55:00 and end 09:30:00. This is what it should show in my calendar. Instead it shows 09:55:00 and…
simonbs
  • 7,932
  • 13
  • 69
  • 115
27
votes
3 answers

PHP Timezone Name to Offset

How would I go about converting a timezone name ("Asia/Dubai", "Europe/Andorra", etc) to a GMT offset in hours (or even seconds, since I can convert it from there). Most people ask for the reverse, but I need to get a timezone offset from the…
Andrew M
  • 4,208
  • 11
  • 42
  • 67
26
votes
4 answers

How to use OFFSET and Fetch without Order by in SQL Server

I want use OFFSET and Fetch in my SQL server 2012 query.But without any order by.I can not use order by.Because my sort order will be lost. How can I use OFFSET and Fetch without order by and row number and where in my query? My 2 select tables have…
26
votes
3 answers

Laravel Eloquent skip n, take all?

I've noticed that in Laravel when chaining a skip() you must also use take() as well. I want to skip the first n rows but take the rest. The take method only allows integers how can I do this without resorting to some hacky trick such as specifying…
Helen Che
  • 1,951
  • 5
  • 29
  • 41
26
votes
2 answers

TypeError jQuery offset().top is undefined

The Firefox debugger is showing a TypeError for a jQuery function aimed at sticking a navbar to the to the top of the page when a user scrolls and updating the class at the same time. The function is below. $(window).scroll(function() { if…
K7Buoy
  • 936
  • 3
  • 13
  • 22
26
votes
1 answer

jQuery Get top offset relative to a specific div

With jQuery, how would you find the offset position relative to a specific container? For example, you have this:
Zach Reed
  • 683
  • 2
  • 9
  • 25
26
votes
4 answers

How to calculate offset of a class member at compile time?

Given a class definition in C++ class A { public: //methods definition .... private: int i; char *str; .... } Is it possible to calculate the offset of a class member at compile time using C++ template meta-programming? The…
Jun Yuan
  • 314
  • 1
  • 3
  • 5
23
votes
4 answers

Kafka-consumer. commitSync vs commitAsync

The quote from https://www.safaribooksonline.com/library/view/kafka-the-definitive/9781491936153/ch04.html#callout_kafka_consumers__reading_data_from_kafka_CO2-1 The drawback is that while commitSync() will retry the commit until it either…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
23
votes
4 answers

Selecting a Specific Column of a Named Range for the SUMIF Function

I am trying to create a SUMIF function that dynamically adds up values in a specific column of a named range in my Excel sheet. It is very easy to do this when there is no named range : The formula picks out all the cells that contain "London" in…
Cla Rosie
  • 345
  • 1
  • 2
  • 10
23
votes
7 answers

How to handle Undefined Offset in laravel?

I am getting this error when I land on the page after logging in: ErrorException in compiled.php line 11573: Undefined offset: 0 (View: C:\xampp\htdocs\campusguru\resources\views\home.blade.php) I know that the cause of this error is the empty…
vs_lala
  • 715
  • 2
  • 8
  • 18
23
votes
2 answers

Bootstrap 3 col-sm-offset-x affects to the col-md-x structure

I have this code
amibumping
  • 245
  • 1
  • 2
  • 13
22
votes
8 answers

In MySQL calculating offset for a time zone

Is there a way in MySQL to calculate the offset for any timezone? For example, to get the local time in the timezone Asia/calcutta. What I want to do is calculate the offset for this timezone and add that offset to GMT to get the local time.
Varun
  • 4,054
  • 6
  • 31
  • 54
22
votes
5 answers

What does "offset" mean in the context of programming?

What does "offset" mean in the context of programming? Does it mean in the beginning or by a distance? What does the String.offsetByCodePoints(int index, int codePointOffset) method do? What does "unpaired surrogates" in the method documentation…
skystar7
  • 4,419
  • 11
  • 38
  • 41
22
votes
3 answers

Bootstrap 3: Offset isn't working?

I have this code:
What I want for small (sm) screens is to have two divs that have three columns each, and…
David
  • 1,932
  • 3
  • 27
  • 35
22
votes
3 answers

How to slice an array by key, not offset?

PHP function array_slice() returns sequence of elements by offset like this: // sample data $a = array('a','b','c',100=>'aa',101=>'bb',102=>'cc'); // outputs empty array because offset 100 not defined print_r(array_slice($a,100)); Current…
Martin Ille
  • 6,747
  • 9
  • 44
  • 63