infinite

Having a PHP script loop forever doing computing jobs from a queue system.

Currently I have a perl script that runs forever on my server, checking a SQS for data to compute. This script has been running for about 6 months with no problems what so ever. So, now I want to switch over to PHP'S CLI, and have the script loop there forever. Mostly because I'm more familiar with PHP. Basicly, $i="forever"; while($i...

Using Infinite Scroll jQuery Plugin with ajax

Hey now! I'm doing a project similar to Google Reader. I'm using Infinite Scroll jQuery Plugin which works exactly as advertised when viewing the contents of the default selected category (in a scrollable div). However when selecting another category (or folder in the case of Google Reader) and the contents of that category is loaded...

An infinite scrolling panel in AS3

Hi everyone, I'm trying to create a infinite scrolling panel containing diagonal stripes in ActionScript 3. As the panel is dragged to the right or left, the program populates it with more stripes, to create the appearance of an infinitely scrolling panel. The stripe graphic itself is an MC in my library with the class name of Stripe. ...

Prolog - Make an app that does nothing and runs forever

Any good ways to do this? ...

iphone dev - UIScrollView massive content tricks/tips

I have a horizontally scrolling UIScrollView and I want to display potentially thousands of UIImage's side by side. Obviously I can't do that for memory reasons so what I am thinking is set the content size to be the 2000 or whatever but only show the current window of image squares. So the user would flick the scroll bar and when it sto...

Is it possible to construct an "infinite" string?

Is there any real sequence of characters that always compares greater than any other string? My first thought was that a string constructed like so: std::basic_string<T>(std::string::max_size(), std::numeric_limits<T>::max()) Would do the trick, provided that the fact that it would almost definitely fail to work isn't such a big issu...

jquery / WordPress: apply infinite scroll effect to new content loaded via AJAX

So I am trying to use jQuery infinite-scroll plugin in combination with some custom jQuery that loads a new loop from a different PHP file with AJAX. The infinite-scroll works on the initial page content, but I can't get it to work with the newly loaded content. Here's how the AJAX logic works: click on a category Get category ID which...

Best infinite loop.

Possible Duplicate: while (1) Vs. for (;;) Is there a speed difference? Hi, Which is better,faster and more optimized way to implement infinite loop - for(;;) or while(1)? and why? ...

Stream makes function run forever

Hi, What kind of stream can cause to function run forever ? Is such stream exist ? ...

Recursive MySQL query?

I have a set of data that's organized hierarchically that should be able to grow to an arbitrary size. I need to retrieve the entire tree, but I can't figure out how to do it with just SQL. My current solution is to create a temporary table and use a recursive function to successively query branches of the tree and then store the result ...

Thread.Sleep(Timeout.Infinite) performance issues

Main execution path (main thread) is going to be forked into two execution paths (two new threads on different jobs) but the main thread is no longer needed. I can assign one of the tasks to main thread and save one thread (one task by main thread and another by a new thread) but I was wondering putting main thread in an infinite sleep T...

parallel calculation of infinite series

Hi All I just have a quick question, on how to speed up calculations of infinite series. This is just one of the examples: arctan(x) = x - x^3/3 + x^5/5 - x^7/7 + .... Lets say you have some library which allow you to work with big numbers, then first obvious solution would be to start adding/subtracting each element of the sequence u...

Infinite UIScrollView for whiteboard-like app

Naturally an "infinite" UIScrollView question has been asked about before, but it always seem to be related to this sort of scenario: A scrollview with 4 card subviews on a "carousel", i.e. reaching the 4th card and then swiping in the direction of continuation would yield the 1st card again (and therefore no need to scroll backwards). ...

rewrite and redirect

hi i just applied a new url structure to my site the links were like this before using rewrite mod /detail.php?id=123 and after /restaurant123.htm but the problem is /detail.php?id=123 still work and i've spent a week to do something to redirect /detail.php?id=123 to /restaurant123.htm without an infinite loop and i searched all over th...

Android: How to stop an infinite animation applied on an ImageView?

Hi, I have an ImageView on which I have applied rotate animation. Since I want the rotation to go on continuously, I gave the repeatCount as infinite in my rotate.xml android:repeatCount="infinite" In onCreate(), I load the animation and start it. Animation myAnim = AnimationUtils.loadAnimation(this, R.anim.rotate); objectImg.sta...

Left hand side of assignment with infinite generators

Sorry to double my earlier question, but I thought to ask specific data which would solve the problem. I want this result tuple_of_vars = (item for _, item for zip(tuple_of_vars, new_vals_generator)) as this is not possible a, b, c, d = (val for val in infite_generator) actually then I want to do in single line for var in var_list...