Conditional has various meanings for various languages and probably should be avoided as a tag.
0
votes
0answers
6 views
What sort of approach to serving up customised styles, based on screen size, does this website (Bell Helmets) use?
I'm new to web design and am experimenting with varying styles to suit mobile on my website. I am aiming to achieve something similar to Bell Helmets' approach ...
1
vote
7answers
99 views
checking for evenness/oddness of an integer efficiently
I have a mathematical function, which depends on three variables {n, a and b} that are given by
{a = n+1, b=n} when n is even
{b = n+1, a=n} when n is odd
My function is called many times, with ...
0
votes
1answer
6 views
actionmailer: detect what method is called or what mail is send, how?
Im using methods to send mails with a "email" layout /app/layouts/email.html.haml
is there a way in Actionmailer to determine from what method a mail is generated from inside the layout?
I need to ...
0
votes
1answer
12 views
Combine HTML conditional comments to include IE8+ and not IE
I know that for targeting IE8+ you should use:
<!--[if gte IE 8]>
According to the conditional comment this is IE 8 or higher<br />
<![endif]-->
For targeting non IE browsers you ...
0
votes
1answer
19 views
XSD optional conditional
Sorry if this is simple or already answered somewhere - I couldn't find anything useful with any of the search terms I tried.
I have some date input, that I would like to make in a conditional ...
1
vote
1answer
24 views
Check for parameters value in ant build.xml
I have a requirement where in a build.xml file I have two variables.
While calling the build.xml file from Java program, I will pass the values as properties
And while calling the same build.xml ...
3
votes
1answer
111 views
Delphi if else if else statement not working “Type of expression must be BOOLEAN”
I am trying to make a currency converter in Delphi, and it has been a while since i last used Delphi so i am a bit rusty. When i am trying to make an if, else if, else statement it is giving me the ...
0
votes
1answer
21 views
Excel - Conditional formatting and field name look up
What I need to do is find which cell in a row is the lowest value and highlight it. Very simple, I can do this. However, I cannot figure uot how to copy this conditional formatting into the proceeding ...
2
votes
3answers
48 views
Is it possible to stop .NET 2008 Debugger conditionally?
How do we stop at some place in code dynamically, say I need to break the code when a condition is true? Say some variable gets certain value?
1
vote
2answers
58 views
If … else conditional statements in CSS stylesheet processed as PHP
I'm processing a CSS stylesheet as PHP by including the following at the top of my CSS file:
<?php
header("Content-type: text/css; charset: UTF-8");
?>
My CSS stylesheet (style.css) is ...
0
votes
2answers
44 views
What's the javascript to only click a link if it exists?
I'm in the SeleniumIDE , but calling out to javascript.
Seems like this would be a fairly common scenario for others too.
I have a good test suite but the first thing it does is login.
I would like ...
-1
votes
0answers
14 views
add a rule in my .htaccess file [closed]
Where should I add this rule:
RewriteRule ([0-9]+)\-0\-location\-([a-zA-Z0-9\-]+).html bien/$2
to my .htaccess file?
<IfModule mod_rewrite.c>
RewriteEngine on
# Rewrite URLs of the ...
0
votes
1answer
34 views
Excel 2007: conditional formatting for certain cells?
What I need to do is conditionally format the below cells to highlight the lowest value.
B2, H2, G2, M2, R2, W2, AB2, AG2, AL2
But I need to do this about 50 times, and again for another set but ...
1
vote
2answers
47 views
Python-Modulus-Stuck with a coin-for-given-dollar-amount scenario
Specs: Ubuntu 13.04, Python 3.3.1
General Background: total beginner to Python;
Question-specific background: I'm exhausted trying to solve this problem, and I'm aware that, besides its ...
0
votes
2answers
26 views
Trying to pass different variables through onclick function () brackets
I am trying to pass a few different cases through a function
<div id="button1" class="button" onclick="pop(case1)">popup a</div>
and then i want to create different cases in my function ...