Hello,
I'd like to know if the executing thread is the one that created a given control instance (to prevent cross-thread if it's not).
Is that possible ?
Thx.
How could I implement a system where updated content on a CMS can be automatically picked up and transferred in XML (possibly RSS?)
I am using Magnolia CMS but I guess this question could apply to any CMS.
Say I edit the title of a page, I want this to be picked up and the content put in an external XML file. How could I do this?
Quoted from here:
BW = edge(I,'zerocross',thresh,h)
specifies the zero-cross method, using
the filter h. thresh is the
sensitivity threshold; if the argument
is empty ([]), edge chooses the
sensitivity threshold automatically.
If you specify a threshold of 0, the output image has closed contours,
because it includes all the zero
crossings in the input image.
I don't understand it,can someone elaborate?
My Python server receives jobs that contain a list of the items to act against, rather like a search query term; an example input:
(Customer:24 OR Customer:24 OR (Group:NW NOT Customer:26))
To complicate matters, customers can join and leave groups at any time, and the job should be updated live when this happens.
How is best to parse, apply and store (in my RDBMS) this kind of list of constraints?
Hello,
I have a site where users provide some dates, but if they enter year like 12 april 2099, then the I get date in the past (1969). How do I check it and apply a default max safe date?
thank you.
Hi
Complete novice question. I've used jQuery a bit, YUI not at all and know very little about it.
I work on a website thats IE specific, we're now looking at making it cross browser. jQuery seems great at hiding the differences between browsers from a javascript point of view. However in terms of css layout is it YUI that I should really be looking at?
thanks
Looking to store usernames and passwords in a database, and am wondering what the safest way to do so is. I know I have to use a salt somewhere, but am not sure how to generate it securely or how to apply it to crypt the password. Some sample Python code would be greatly appreciated. Thanks.
hi,
in my application i am using literal controls in data list , now i want to apply height and width for the literal controls is it possible for applying height and width to literal controls. thank you.
What is the jQuery alternative to the following JavaScript code?
var xmlobject = (new DOMParser()).parseFromString(xmlstring, "text/xml");
I believe a jQuery alternative would be more cross-browser compatible?
This is my first time building a responsive site, and as I tailor the CSS for the iPhone I'm running into a problem. The styles all apply correctly, the text changes size and the wrapper changes widths. The problem is the iPhone browser still opens up at a huge width, see the screenshot:
I'm using
@media all and (max-device-width: 480px) {}
to set the specific iPhone css. body {width:;} doesn't work.
Thanks for the help :)
hi,
what's the best way to customize html-css tooltips ? (I mean an easy cross-browser solution).
I need to reduce the fade-in delay and change the style. (also, could you suggest a good jQuery plug-in for it ?
thanks
I'm trying to float my navigation at the top much more to left around 200px atleast more towards the end of the line that can been seen below. Everytime I apply a margin or padding it pushes the navigation to go under each other even though there is loads of room, could anyone take a look at my code.
means alot thanks,
I always find things easier with firebug so I uploaded it here http://xronn.co.uk/hosting/
Thanks again!
As I just learned from this question, .NET regexes can access individual matches within a repeated capturing group.
I. e., if I apply a regex like \b(\w+\s*)+ to a string of words, only the last word will be stored in \1 or Match.Groups(1).Value, but using Match.Groups(1).Captures I get access to all the individual matches the regex iterated over.
Are there other regex flavors that support this besides .NET?
I am setting 2 css class in the code behind in ASP.NET
I could either do:
txtBox.Attributes.Add("class", "myClass1");
txtBox.Attributes.Add("class", "myClass2");
it's always apply one Class .. How can i add thw two classes ?
I have string like this:
"Some standard text CONST_INSIDE_QUOTES" blah blah CONST "There might be another quotes"
The thing is, that i want to replace all constants in string with some text, but it mustn't be applied on constants inside text in quotes. I have this regex:
sed "s/([A-Z][A-Z0-9_]*)([^a-z])/<span class=\"const\"\1<\/span\2/g"
which of course works for all consts. Any ideas how to exclude its apply on quotes constants? Unfortunately sed only...
I have JQuery working to show a particular div when a certain link is clicked.
I have managed to apply the effect I'm after with the main navigation bar through id'ing the body tag and using css to style when the id is found.
However, i'd like to apply the same effect to the sub navigation when a certain div is present.
How the main navigation is styled:
HTML:
<nav>
<ul>
<li id="nav-home"><a href="index.html">Home</a></li>
<li id="nav-showreel"><a href="showreel.html">Showreel</a></li>
<li id="nav-portfolio"><a href="portfolio.html">Portfolio</a></li>
<li>Contact</li>
</ul>
</nav>
CSS:
body#home li#nav-home,
body#portfolio li#nav-portfolio
{
background: url("Images/Nav_Underline.png") no-repeat;
background-position: center bottom;
color: white;
}
(Other links havent been added to styling as those pages are still in development)
How the sub navigation is structured:
<nav id="portfolioNav">
<ul>
<li id="portfolio-compositing"><a id="compositingWork" href="#">Compositing</a></li>
<li id="portfolio-animation"><a id="animationWork" href="#">Animation</a></li>
<li id="portfolio-motionGfx"><a id="GFXWork" href="#">Motion Graphics</a></li>
<li id="portfolio-3D"><a id="3DWork" href="#">3D</a></li>
</ul>
</nav>
As you can see, its similar format to the main navigation, however i've tried the same approach and it doesn't work :(
The Javascript that switches the divs on the navigation click:
<script type="text/javascript">
$(document).ready(function() {
$('#3DWork').click(function(){
$('#portfolioWork').load('portfolioContent.html #Portfolio3D');
});
$('#GFXWork').click(function(){
$('#portfolioWork').load('portfolioContent.html #motionGraphics');
});
$('#compositingWork').click(function(){
$('#portfolioWork').load('portfolioContent.html #PortfolioCompositing');
});
$('#animationWork').click(function(){
$('#portfolioWork').load('portfolioContent.html #PortfolioAnimation');
});
});
</script>
JSFiddle for full HTML & CSS : JSFiddle File
The effect I'm After:
I once read somewhere that apps should not copy data while doing an installation but rather all data creation must be done the first time the app is used.
Q1: Does this apply to Windows Mobile apps also?
Q2: Is it not okay then to copy a blank database to the \appdata\product\ folder and populate it when the user uses the app or must I wait for the user to se the app to even create the database.
Win Mobile
C#
.NET
If you have 2 cross classifying variables you can use rowSums and colSums to produce margin totals on an xtabs output. But how can it be done if you have 3 classifying variables (ie margin totals in each sub table)?
can I add BehaviorID attribute for asp.net textbox and use it to be recognize by java script??
On other word, I want to to apply some java script function on asp.net text box and I want to let the java script find the asp.net text box by the BehaviorID.