In C#, can multiple threads read and write to a Dictionary provided each thread only accesses one element in the dictionary and never accesses another?
i want to copy multiple files at once through xcopy. is it possible. i mean something like:
xcopy file1+file2+file3 destinationfolder
any help is appreciated :)
Hi
Does IMAP C-client support fetching of multiple email mails headers at a time.
If possible please help me.
Meanwhile I know that It can be possible using objective C Imap libraries.
I want to do same thing using IMAP C-client libraries.
Thanks In advance
Subbi
In Quarts, can I use a single trigger to schedule multiple jobs, so that all the jobs gets executed in parallel. What is the best way to do this.
Example, every hour execute Jobs j1, j2, ..., jn in parallel. Assuming that there is no dependency between the jobs.
Is there a way to include examples for multiple languages (C# and Visual Basic, for example) in XML documentation?
I'm using SandCastle to build MSDN-style documentation and would like to include usage examples for a few .NET languages.
I'm using jquery and in one function I'm calling multiple function which are doing different ajax request for example
function contactForm(){
loadCountryList();
loadMyData();
checkUserType();
// doing my stuff
}
How can I know if all the ajax request are completed so that I start doing my stuff in the end?
I don't want to call them one by one to minimize the request time. any suggestion will help me a lot.
Tue, 23 Sep 2008 05:44:40 -0700
i want to create multiple instances of zend_auth class
as i have two modules
Admin
Front
wats happening is when i login into admin it automatically get logins into
front or vice-versa.
so wat i want is the i can work on both modules separately after
simultaneous authentication.
I need to sort a 2 dimensional array of doubles on multiple columns using either C or C++. Could someone point me to the algorithm that I should use or an existing library (perhaps boost?) that has this functionality?
I have a feeling that writing a recursive function may be the way to go but I am too lazy to write out the algorithm or implement it myself if it has been done elsewhere. :-)
Thanks
I have multiple images and i wnat to place all of them in a single line.How should i manipulate the width of images such that the sum of width of al images does not exceed the browser's width.??
I am trying to extend my jQGrid to have multiple rows for the header.
It will look something like this
-----------------------
Level 1 - > | Application |
-----------------------
Level 2 - > |Code | Name |
-----------------------
| 0002827| Mobile Phone1
| 0202827| Mobile Phone2
| 0042827| Mobile Phon3e
| 0005827| Mobile Phone4
| 0002627| Mobile Phon5e
| 0002877| Mobile Phone6
| 0002828| Mobile Phone7
I am wondering how to do this with jQGrid 3.8.2? Any ideas?
Hello friends
I am trying to make a Content Slider for my site. I have multiple HTML files and the structure of these files is like this:
<div id="title"><h2>Title of the Slide</h2></div>
<div id="image"><a href="http://mylink.com"><img src="image.jpg" width="600" height="300" alt="image"</a></div>
<div id="content">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s.</div>
I have been trying to use the following script get content (but no success):
<?php
function render($position="") {
ob_start();
foreach(glob("/slides/*.html") as $fileName) {
$fname = basename( $fileName );
$curArr = file($fname);
$slides[$fname ]['title'] = $curArr[0];
$slides[$fname ]['image'] = $curArr[1];
$slides[$fname ]['content'] = $curArr[2];
foreach($slides as $key => $value){
?>
<div id="slide-title">
<?php echo $value['title'] ?>
</div>
<div id="slide-content">
<?php echo $value['image'] ?>
</div>
<div id="slide-image">
<?php echo $value['content'] ?>
</div>
<?php
}}
?>
<?php
return ob_get_clean();
}
But then I came to know about a jQuery function.... (again no success)
jQuery.noConflict();
(function($){
$(document).ready(function () {
$('#slide-title').load('slides/slide1.html #title');
$('#slide-content').load('slides/slide1.html #content');
$('#slide-image').load('slides/slide1.html #image');
});
})(jQuery);
Now My questions are.....
Am I using the right syntax.
How do I get the content from multiple files using jQuery.
Please Note : My knowledge on Programming is almost '0'. I have just started learning it.
In python zip function accepts arbitrary number of lists and zips them together.
>>> l1 = [1,2,3]
>>> l2 = [5,6,7]
>>> l3 = [7,4,8]
>>> zip(l1,l2,l3)
[(1, 5, 7), (2, 6, 4), (3, 7, 8)]
>>>
How can I zip together multiple lists in haskell?
Can I define in C++ an array operator that takes multiple arguments? I tried it like this:
const T& operator[](const int i, const int j, const int k) const{
return m_cells[k*m_resSqr+j*m_res+i];
}
T& operator[](const int i, const int j, const int k){
return m_cells[k*m_resSqr+j*m_res+i];
}
But I'm getting this error:
error C2804 binary operator '[' has too many parameters
Hi,
Is there any good control or plug-in for uploading multiple photos with preview? As far as I understand it is impossible to preview photo on local computer using just JavaScript. So it has to use Flash or Java.
Thanks, also, I use ASP.NET.
Let's say I have a data mapper function that aggregates multiple tables and generates an object instance from that data. The mapper has a typical save() method which delegates to update/insert.
When the mapper executes save - ideally it isolates object fields that have been modified, thus preventing the code from blanket bombing the database.
How would you go about this?
i have a textbox on a form and i would like the user to be able to choose from different values but also be able to enter their own values, how do i do this?
i would like to clarify that the user should be able to enter multiple values into the same textbox
I want to make a website that will have multiple pages, but because of a unique navigation bar, I cannot simply link to a new file for each page. What is the best way to accomplish this. Some possibilities that I can think of are having all of them on one page, but using css and javascript to move the other pages offscreen, or using iframes and loading them with javascript. Could someone please direct me to some examples or tutorials?
hi can you tell me how to update multiple rows in oracle as when i fired the update statment it gave me the following error
ORA-01427: single-row subquery returns more than one row
Thanks in advance
If I need to check multiple conditions, which is the preferred way with respect to performance
if( CND1 && CND2 && CND3 && CND4)
{
}
else
{
}
or
if(CND1)
{
if(CND2)
{
if(CND3)
{
if(CND4)
{
}
}
}
}
I need to insert same data to my MySQL table without having PHP loop. The reason why I'm doing this is that because I have a column with Auto_Increment feature and that column associates with other table.
So, I just need to insert some exactly same data and it's multiple rows (dynamic) but by using single INSERT syntax below :
INSERT INTO outbox_multipart (TextDecoded) VALUES ('$SMSMessage')
how to have this single INSERT syntax, but produce n number of rows?
Is it possible to have multiple authentication methods for a java servlet? For example, have form based authentication in addition to open id based authentication so users can choose how they log in.
I understand that an id must be unique within an HTML/XHTML page.
My question is, for a given element, can I assign multiple ids to it?
<div id="nested_element_123 task_123"></div>
I realize I have an easy solution with simply using a class. I'm just curious about using ids in this manner.
Hi,
I want to observe multiple select menus and respond to their changes using prototype but only the first menu seems to be observed. This is my code:
$('product_options').select('select').invoke("observe","change",optchange);
If there are - for example - 3 selects within product_options then it only observes the first, i thought it might be because of invoke so i then tried this:
$('product_options').select('select').each(function(sel){
$(sel).observe("change",optchange);
});
Still doesnt work though, any ideas whats wrong?
How would I make Object#instance_of? accept multiple arguments so that something like the below example would work?
class Foo; end
class Bar; end
class Baz; end
my_foo = Foo.new
my_bar = Bar.new
my_baz = Baz.new
my_foo.instance_of?(Foo, Bar) # => true
my_bar.instance_of?(Foo, Bar) # => true
my_baz.instance_of?(Foo, Bar) # => false
I intend to have multiple Rails apps each for site.com, api.site.com, admin.site.com. All apps will access the same tables from one single MySQL database. Apps and database runs in the same server.
Is there any settings in Rails, ActiveRecord or MySQL that I need to be concerned about for above access scenerio? Thanks
Running: Rails 2.3.5, MySQL 5.0, Nginx, Passenger, RubyEE