|
In Linux, is there a way to automatically mount different network filers depending on depending on the network profile?
I have a laptop that moves from place to place and would like to mount or not mount different drives depending on where I am. Each ...
Started by jac_no_k on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at superuser):
This one-liner gives you a list of IP addresses currently .
Need depending on your network settings.
|
|
Is it possible to include/exclude certain source files depending on what target is selected in Visual Studio? If possible, how?
Started by QQ on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
#endif
If you want a more robust way, switch so by using nant
... .
Add a unique identifier to each build configuration, and wrap your source file with:
#if _MY_IDENTIFER .. .
You can do this by having a define in the beginning of the relevant source files .
|
|
In my site I am applying a stylesheet depending upon the resolution of the viewer's monitor. By using screen.width in javascript i do this. But now I have a doubt that can I use the same technique to change the whole content of the site depending upon...
Started by Goysar on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Here is reallly....
I can provide sample code if you let me know which framework / no framework you're working with .
You could detect the resolution and use this to apply a class to the body of your page and use this to tell CSS to show/hide certain columns .
|
Ask your Facebook Friends
|
I have a form, depending on the selected value of my <select> box I would like to send to a different page.
I do not know the best way to do this, but I am thinking that maybe the best way is to have an intermediate page to always post to, then ...
Started by John Isaacks on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
That way the user won't even....
Header("Location: http://www.example.com/");
which should be called before there is any output to the page .
You could do it using the HTTP redirect header, e.g .
That certainly would be the best method for user compatibility .
|
|
I would like to include a file depending on a request attribute value.
${theme} -> themeA
To sum up. I would like something like this:
<%@ include file="../themes/${theme}/jsp/content/welcome.jsp"%>
Any easy workaround?
Started by Sergio del Amo on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
You could instead use <jsp:include> tag, which is evaluated at runtime, and includes the result of executing... .
Lt;c:import url="../themes/${theme}/jsp/content/welcome.jsp"/>
Not with <%@ include%> as that is a static/compile time include .
|
|
Is it possible to get a window popup with always 400px wide, but dynamic height depending on the content in the popup window?
I have seen this but not sure how to apply it to popup windows
http://stackoverflow.com/questions/819416/adjust-width-height-...
Answer Snippets (Read the full thread at stackoverflow):
If you know that then you can pass that as a... .
The quickest solution would be to know the height of the window prior to opening it .
If you specify overflow: auto and do not specify a height on an element, that element should grow in height dynamically .
|
|
Is there a way to include a different Javascript file in an ASP.NET page depending whether it's a debug or release build?
For release builds, I want to include the minified (using yuicompressor) Javascript, but I would like to use the more readable file...
Started by Tim on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
For development, if you're using Visual Studio 2008 SP1 ... .
Either rename the appropriate file to the filename referenced in the html in a postbuild step, or dynamically include the html based on the preprocessor symbol .
You can do one of two things ...
|
|
Is it possible to setup DNS server (Win2k8) thus the same DNS name (an A record) is being resolved to different IPs depending on some option.
E.g. example.com for clients from 192.168.0.0 to 192.168.0.1, for clients from internet - to some inet IP?
P....
Started by abatishchev on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at serverfault):
It is recommended that you set up separate....
Windows Server DNS does not have views.
BIND runs quite happily on Windows systems these days, though .
I honestly don't know whether Microsoft's DNS server can do it .
Yes, in BIND this is indeed called "views".
|
|
Is there a way to get a JSON object out of a JSON object array depending on its value?
What I've got:
$users = [{"id":1, "name":"Some Name"}, {"id":2, "name":"Another Name"}, {"id":3, "name":"Third Name"}];
And what I want is to pull out the user depending...
Started by peirix on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
If you want ease of retrieving the user on the client:
jsonData = { "selectedId": 2, "users": { "Id1": {"id":1, "name":"Some Name"}, "Id2": {"id":2, "name":"Another Name"}, "Id3": {"id":3, "name":"Third Name"}, "Id100": {"id":100, "name":"Some Name"} ... .
|
|
Hi all,
I'm having a real headache trying to get the jQuery Validate plugin to work.
I have a form, the first question asking the user to select an option from a radio group. This shows further questions below, depending on their selection.
What I'm trying...
Started by Adam on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
JQuery:
validate($(.required)); function validate(elements.
depending on which radio button is clicked.
|