Just when is a stackoverflow fair and sensible?

Code updated For fixing the bug of a filtered Interminable, the following code is updated and merged into original: public static bool IsInfinity(this IEnumerable x) { var it= x as Infinity??((Func<object>)(() => { var info=x.GetType().GetField(“source”, bindingAttr); return null!=info?info.GetValue(x):x; }))(); return it is Infinity; } bindingAttr is declared a constant. Summary I’m trying to implement an … Read more

Ionic infinite scroll function invoked on page load

I am using ionic framework to create a basic Feed app. I got the refresher going but I’m having trouble with my ion-infinite-scroll. Feed.html <ion-content ng-controller=”FeedController” > <ion-refresher pulling-text=”Pull to refresh..” on-refresh=”get_feeds()” refreshing-text=”Fetching …” refreshing-icon=”ion-loading-b”> </ion-refresher> <ion-list> <ion-item ng-repeat=”question in questions”> <div class=”item item-divider”> {{question.question}} </div> <div class=”item” ng-bind-html=”question.answer | trustHtml”> </div> </ion-item> </ion-list> <ion-infinite-scroll … Read more

Would the ability to detect cyclic lists in Haskell break any properties of the language?

In Haskell, some lists are cyclic: ones = 1 : ones Others are not: nums = [1..] And then there are things like this: more_ones = f 1 where f x = x : f x This denotes the same value as ones, and certainly that value is a repeating sequence. But whether it’s represented … Read more

What is the difference between a cyclic list and an infinite list in haskell?

Referencing @dfeuer’s answer to this question: Least expensive way to construct cyclic list in Haskell, which says that using cyclic lists ‘defeats’ the garbage collector as it has to keep everything you’ve consumed from a cyclic list allocated till you drop the reference to any cons cells in the list. Apparently in Haskell a cyclic … Read more

jQuery Infinite Scrolling/Lazy Loading

I’m currently redesigning my website and have been looking into using JavaScript and jQuery. Here is what I have so far: http://www.tedwinder.co.uk/gallery2/. My vision is to have all of the photos on one page, which the user can scroll through, like now. However, I understand the limitations and effects of having 50+ large-ish images on … Read more