I have some code:
- count = 0
- @clients.each do |client|
%div{:class => "grid_2#{(" alpha" if (count % 3) == 0) || (" omega push_2" if (count % 3) == 2) || " push_1"}"}= link_to h(client.name), client
- count += 1
I want to output an opening div tag right after the each statement if the (count % 3) == 0 and out put the end tag at the end of the block if the (count % 3) == 2 but I can't figure out how to get HAML to do this. Any ideas?
I want duration to be configurable from Web.config file, so user can alter the output caching after deployment.
For achieving such puropse i need quuivalent C# codebehind snippet of following ASP.NET markup?
<%@ OutputCache Duration="120" VaryByParam="CategoryName" %>
#include<iostream.h>
void main()
{
cout<<"Love";
}
The question is how can we change the output of this program into
"I Love You" by without making any change in main().
Hi,
when compiling some projects on linux terminal, I get usually a long output consisting of a lot of information. Usually this information is MONOCHROME. I wonder if bash can be modified somehow, so in all outputs or in some specific outputs (like from Makefile, etc) I can get different colors dependeing on, for instance:
make[1]: Leaving directory
or
g++ -DHAVE_CONFIG_H -I.
etc.
Thanks
Is there a way to set BIRT to output a report as XHTML (1.0 Transitional would be fine) instead of HTML?
I did a few tests and there are some elements that are not valid:head does not include a title, html must have a namespace (xmlns) attribute
Is this functionality supported at all by BIRT?
I have a script that generates two lines as output each time. I'm really just interested in the second line. Moreover I'm only interested in the text that appears between a pair of #'s on the second line. Additionally, between the hashes, another delimiter is used: ^A. It would be great if I can also break apart each part of text that is ^A-delimited (Note that ^A is SOH special character and can be typed by using Ctrl-A)
I want to use 'cat myclip.avi' command to send the output to three running thread, i am trying to process same clip file to produce three different result.
can i use dup2 or how i can make pipe with thread not fork?
thanks
Hello guys,
can somebody tell me how to pipe the output of the serial port to a file in Windows?
In Linux the command would be:
cat /dev/ttyS0 > /opt/logs/Serial.log
Thanks in advance
Please explain me below situation
What would be the output?
interface A{}
class B implements A{}
class C extends B{}
Class D extends C{}
class E extends D{
public static void main(String args[]){
C c = new C();
B b = c;
A a = (E)c;
A a = (B)c;
C c = (C)(B)c;
}
}
I have a model which is referenced to a table registries extending Zend_Db and some methods which bascially uses fetchAll() all the time.
What happens is: my table has a DATE field and I'd like it to output already formated when I call $row-reg_date. Is it possible by doing something in the model or do I have to manually format?
I am using Python 2.5. The Python logging module allows adding contextual information to your logging output. Is something similar possible in Python 2.5?
Hello everyone, i'm looking for a way in python to run an external binary and watch it's output for: "up to date" If "up to date" isn't returned i want to run the original command again, once "up to date" is displayed i would like to be able to run another script. So far I've figured out how to run the binary with options using subprocess but thats as far as I've gotten. Thanks!
When calling help:effective-pom in some child modules position, the output prints wrong path.
some url like .../${groupId}/${some_other_sibling's_artifactId}/...
This is also make site deploy wrong.
Can anybody help?
I'm currently doing some data analysis on population data, so reporting the standard errors in the tables of parameter coefficients just doesn't really make statistical sense. I've done a fair bit of searching and can't find any way to customize the xtable output to remove it. Can anyone point me in the right direction?
Thanks a lot, I didn't post this lightly; if it's something obvious, I apologize for having wasted time!
How can you put a list of files to Vim's -o -mode?
I have a list of files as Grep's output.
I run unsuccessfully
1
grep -il sid * | vim -o
2
grep -il sid * | xargs vim -o
3
grep -il sid * | xargs vim
4
vim -o `grep -il sid *`
5
vim -o | grep -il sid *
I have an incoming data stream that is being converted with XSLT v1.0
that incoming data does not contain any date information.
what i would like, is a nice way of getting the current date to become part of the resulting output stream.
I am aware of the 2.0 current-date() type functions - unfortunately those are not available to this environment...
any thoughts/hacks/alternatives?
tia
i want to write the output of a qshell command to local data area so that it could be globally used by programs.is there some way to write from stdout file to local data area .I want it to be done through CL..its urgent thanks
We use a fucking ridiculous amount of goddamn bandwith man. It really pisses me off because now I have to fucking upgrade my goddamn account and my site doesn't make jack shit for money.
So how the fuck can I automatically reduce the whitespace and shit? I'm GZipping the output already.
Hi all
i wish make little gui with pyqt4 that show the output of "dir c:\windows\" line by line
I'm looking for QlistView but i don't understand how do it.
Can anyone help me?
I am currently developing a java program where I need to show the difference between two text.
Is there any library available for visually show the difference, that is the diff output in my java program or how can I do so. Any suggestion will be very helpful for me.
I have a column called "menu_order" which has no default value. When I select the contents of this column using the following select statement:
SELECT * FROM categories ORDER BY menu_order ASC
It lists the category items that have nothing as their menu order first and then the one's that have 1's and 2's and 3's. Is there any way to prevent SQL from take nothing to come before numbers when I am trying to list things in order?
So for example, if I have:
cat_name | menu_order
----------------------
Lunch | 1
Dinner |
And I perform my query, the output should be:
Lunch Dinner
Not:
Dinner Lunch
I am running a task on the CLI, which prompts me for a yes/no.
After selecting a choice, a vast amount of info scrolls on the screen - including several errors. I want to pipe the output to a file so I can see the errors - but a simple '' is not working since the command expects a keyboar input.
i am running on Ubuntu 9.1
In Visual Studio 2010 I added Trace to Page_Load as explained here http://www.asp101.com/articles/robert/tracing/default.asp but I can't see any Trace output, why ?
public partial class _Default : System.Web.UI.Page {
protected void Page_Load(object sender, EventArgs e) {
Trace.IsEnabled = true;
Trace.Write("Hello World");
}
}
Hi,
I need to get a row based on column value just like querying a database. I have a command output like this,
Name ID Mem VCPUs State
Time(s)
Domain-0 0 15485 16 r-----
1779042.1
prime95-01 512 1
-b---- 61.9
Here I need to list only those rows where state is "r". Something like this,
Domain-0 0 15485 16
r----- 1779042.1
I have tried using "grep" and "awk" but still I am not able to succeed.
Please help me on this issue.
Regards,
Raaj