repeat

zope and tal, repeat function

<div tal:define="number python: 1"> <tal:block repeat="item s_items"> <div tal:define="number python: number + 1"> <div tal:content="python: number">none</div> </div> </tal:block> </div> Hi, always show 2. but I would like to show 2 3 4 5 ... How to do? Thanks ...

Background repat in Flex 3

Hello everybody, I am trying to set a background to a canvas, and set an repeat-x on it. But anything I try don't work. I am using this code: <mx:Style> Canvas.topbar { borderColor: yellow; alpha: 1.0; backgroundImage: url('../assets/images/header.png'); backgroundRepeat: x-repeat; } </mx:Style> ...

Django - Tips to avoid repeating code in views

I'm moving from a PHP background into Django development via python, mostly for the sake of tackling a MVC (or MVT) that I feel makes the most sense, although in this pattern I've started to notice a lot of repeated code in my views. For example, when logged in I have information regarding the user that I would like to appear on every p...

Connecting repeatable and non-repeatble backgrounds without a seam

I have a 700x300 background repeating seamlessly inside of the main content-div. Now I'd like to attach a div at the bottom of the content-div, containing a different background image that isn't repeatable, connecting seamlessly with the repeatable background above it. Essentially, the non-repeatable image will look like the end piece of...

Stop SWF file from repeating

Hey people, I have converted a short clip to an .swf file, i want to implement it on my website: <object width="400" height="300"> <param name="movie" value="movie.swf"> <embed src="movie.swf" width="400" height="300"> </embed> </object> When i play it it autoplays (that's fine) but it also keeps repeating over and over, i'd like it...

3 divs as background

I've been working on this for a couple of hours and can't seem to wrap my head around it. I have three images, below, and I would like the text content to sit on top of these, but how do I do it? The middle image is the image that would need to repeat as the container div expands. Okay, I do apologise for my lack of information, it's a ...

C# Windows Media Player - Repeat single song in a playlist

I have a PlayList loaded into my WMP instance, and I want it to loop just one song. Everything I've Googled up so far tells me to do this: private AxWindowsMediaPlayer wmp; wmp.settings.setMode("loop", true); However, this only seems to make the entire PlayList repeat. The behavior I want is that, if I enable "repeat" when song 5 in t...

css: make background repeat-y with growing child content?

I Have a three column layout. The center div is a container which holds all of my content. The outer columns is just a .png that fades into the body's background (left and right respectively). I want the .png to repeat-y to grow with the center container's content. It will only print the image once, and ignores the repeat-y. If I specify...

Can one get SSRS List area elements into the Header area?

I have an SSRS 2008 report that uses a list area and several subreports. I need to have a few data items (company name, invoice number) repeat on each page that relates to that company. The report will print pages for multiple companies, with multiple pages for each company. I know how to get repeat headers to work. I also know how...

how to trigger a event handler when WPF animation repeated

I have a WPF animation with the RepeatBehavior set to Forever. There is something need be updated every time the animation is repeated. I can't figure out how to catch the repeat event, the Complete event handler don't work for this. The animation interval is programmable and determined by some environmental factors. So use a timer isn't...

Disabling repeating keyboard down event in as3

now I'm trying to make the keyboard events to stop repeating. My idea was to have a true and false condition for when the key is pressed so that it wont repeat if the key is down already. //Mouse Event Over keyCButton.addEventListener(MouseEvent.MOUSE_OVER, function(){gotoAndStop(2)}); //Variable var Qkey:uint = 81; //Key Down Event st...

UIImageView Animation Question

Is it possible to run an NSArray UIImageView Animation that plays pictures 1 through 5 only once, plays pictures 5 through 7 on repeat over and over (while holding down IBAction button) then when button is released it plays 7-10 only once? ...

how can i create a matrix with repeat another matrix?

how can i create a matrix with repeat another matrix? for example: a=[1 2 3;4 5 6;7 8 9];size of a is 3*3; for b repeat final matrix=[a a ...];size of final matrix is 3*3b please help me my id is [email protected] ...

Get all characters from a string with their number

How in Java can I get list of all characters appearing in string, with number of their appearances ? Let's say we have a string "I am really busy right now" so I should get : i-2, a-2, r-2, m-1 and so on. ...

repeat css background image a set number of times

is there a way to set the number of times a background image repeats with css? ...

Pass parameter one time, but use more times

I'm trying to do this: commands = { 'py': 'python %s', 'md': 'markdown "%s" > "%s.html"; gnome-open "%s.html"', } commands['md'] % 'file.md' But like you see, the commmands['md'] uses the parameter 3 times, but the commands['py'] just use once. How can I repeat the parameter without changing the last line (so, just passing the...

How Does One Make Scala Control Abstraction in Repeat Until?

Hi I am Peter Pilgrim. I watched Martin Odersky create a control abstraction in Scala. However I can not yet seem to repeat it inside IntelliJ IDEA 9. Is it the IDE? package demo class Control { def repeatLoop ( body: => Unit ) = new Until( body ) class Until( body: => Unit ) { def until( cond: => Boolean ) { body; ...

Optimization: Python String Repetition

I have a piece of code that will take a string and repeat it such that the length of the string is x. >>> import math >>> def repeat(data, length): return (data * int(math.ceil(float(length) / len(data))))[:length] >>> repeat("Hello World", 22) 'Hello WorldHello World' >>> repeat("Hello World", 20) 'Hello WorldHello Wor' Is th...

how to repeat a small background image througout the page?

I want to set page background image my css code is- background:url(images/body_bg.jpg) repeat-x top; but the image size is not as large as web page thats a thin strip only and gradient color too.so how can i repeat the image so that it will occupy whole background?As I said it is gradient so I can't hardcore the background color. ...

how do i forward post data to another page in asp?

I have an asp page which takes a bunch of input and posts to another page which shows a review of the submission and sends an email. I need to separate the review and email process. my idea was to copy the email page and strip the email parts, leaving the logic which generates the review elements from the request object (request items ...