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 :)
I am trying the following but every once in awhile the nativeApp is not defined.
var nativeApp:Object = getDefinitionByName("flash.desktop.NativeApplication");
nativeApp.nativeApplication.exit();
I am confused why sometimes getDefinitionByName("flash.desktop.NativeApplication") resolves and other times it does not.
I am trying to resolve this problem to address the following issue in flexcover - http://code.google.com/p/flexcover/issues/detail?id=33
I have a iAd that seems to be correctly displaying but when push a new view controller into the view i get a warning from the iAd that says it has been:
WARNING A banner view (0x490fd0) has an ad but may be obscured. This message is only printed once per banner view.
But the ad still runs fine so should i pay attention to this?
I just tried adding
self.adBannerView = nil;
[adBannerView release];`
just before i push the viewController but i still get that error
My application is a trail version apk. Once the period is completed, can I initiate another application to be installed/downloaded from the android market ( purchasing process) which is a paid application using the current running trail application.
In Visual Studio 2008, develop legacy windows form (not wpf), I wrote customized resource manager which fetched data from sql server rather than assembly. In windows form, there is property related to language setting. Once I change language, I want to form being updated automatically.
Is there any elegant way to hook up my resource manager?
I have a ListBox of constant size 4
I can Add n number of ListBoxItems,Once size exceeds 4 I have enabled scroll bar,
Problem:when scroll is enabled(more than 4 items), whenever i delete last item, there is a white patch in place of deleted Item.
Patch goes off only when I touch the scroll bar.
I tried ListBox.Invalidate(), But no use
Sorry I dont know the correct terminology to use but I have a 3x3 matrix like this
1 3 4
5 4 5
2 2 5
and I want get the highest score by picking a value from each row/column but I cant pick the same row or column more than once , so the answer in this case is
3 + 5 + 5 = 13 (row0,col1 + row1,col0 + row2,col2)
4 + 5 + 5 = 14 is not allowed because would have picked two values from col2
I'm using Java, and typically the matrix would be 15 by 15 in size.
Is there a name for what Im trying to do, and whats the algorithm
thanks Paul
Here are the relevant models:
User
Product
Order
A User can sell or buy products
An order has a buyer, a seller and one product
I know that I can do this with a HABTM relationship between orders and user, but is seems to me like it would be simpler to put in the Order table the following columns:
:seller_id
:buyer_id
and manage those relationships manually as orders are only created once and never edited. However, this doesn't seem very Rails-like and I am wondering if I am missing something conceptually at the HABTM relationship.
In Android developers I've seen that testPreconditions() method is supposed to be launch before all tests. But in my app test, it's acting like a normal test. It does not run before all tests. Is there something wrong ?
Here is the description about testPreconditions() from android developer :
"A preconditions test checks the initial application conditions prior to executing other tests. It's similar to setUp(), but with less overhead, since it only runs once."
I am trying to implement a windows service that will ping a FTP site and copy its contents once in every 3 hours.
This service has functions to
List all files in the FTP site
Copy one file
Delete the copied file
Repeats step 2 and 3 for all files in the site
What is the most painful programming mistake you have done and what lesson you have learn after?
I guess mine was making a release to production on the development code which was not tested yet.
The lesson-learned:
Delete any projects that can trigger a
release on the live application from
CCTray. I only add them when a release
to production is necessary since then.
And once I am done, I delete them from
my project lists.
I have created a JDialog to be opened when I click on the edit button of my JFrame, it is being opened properly and does'nt have any issue, but when I took this code on the windows ce 5.0 device this dialog is being opened twice. hat is i am clicking only once on the edit button but the dialog is appearing twice, I want there should be only one dialog appear on edit button click.
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!
If I am using a block cipher such as AES which has a block size of 128 bits, what do I do if my data is not an even multiple of 128 bits? I am working with packets of data and do not want to change the size of my packet when encrypting it, yet my data is not an even multiple of 128?
Does the AES block cipher allow handling of a final block that is short without changing the size of my message once encrypted?
I've just installed Magento on my website, but I can't access the backend. The frontend works fine, but in the backend once I successfully login, it takes me to a blank screen. I've read there's an issue with cookies and I've tried a range of commenting out lines in varien.php, but didn't work.
Hi there.
Once I read an MSDN article that encouraged the following programming paradigm:
public class MyClass
{
public void Method1()
{
NewCustomException();
}
public void Method2()
{
NewCustomException();
}
void NewCustomException()
{
throw new CustomException("Exception message");
}
}
Do you think this paradigm makes sense? Wouldn't it be enough to store the exception message in a static const field and then pass it to the exception's constructor, instead of encapsulating the whole exception throw?
I've tried many jQuery twitter feed plugins and they all seem to suffer from the same problem. Nothing loads for unless I refresh several times and then it will load once. I then need to refresh several more times before it loads again.
Is there some sort of limitation on Twitters side or does this only happen to me?
Example - This is the test site but it is basically ready to go live except for this issue.
how do I load a page in an iframe and set focus to a form element once the page loads? I don't have control over the page I am calling into the iframe, but I know the name of the form is 'form' and the text field I want to focus on is 'go'.
For the CS majors out there what were the hardest CS classes or concepts that you learned in your undergraduate schooling?
Did you find once you learned the basics,(data structs, OOP fundamentals, discrete math, pointers, recursion, etc) the rest followed naturally or did you hit a wall at any point in your higher classes like OS'es and Compilers?
Thanks for the input!
I'm working in VS2008 and C#, and I'm looking for a (free) code generator tool to generate a property with getter and setter, as well as the backing private field to go with. The template thingy in VS does not make the field to go with it. Just looking for something a little bit better.
I once saw a web site where you could build this code, then cust-and-paste it from the web page to your code.
When using HTTP/1.1 Pipelining what does the standard say about issuing multiple requests without waiting for each request to complete? What do servers do in practice?
I ask because I once tried writing a client which would issue a batch of GET requests for multiple files and remember getting errors. I wasn't sure if it was due to me incorrectly issuing the GET's or needing to wait for each individual request to finish before issuing the next GET.
I'm trying to display an map inside an iframe that has a needle which on mouseover shows some information about a certain company, the thing is once you click the link the page opens up inside the iframe which ruins the experience, so i was wondering is it possible to make the links inside an iframe open up in a new window instead perhaps using jquery or something similiar?
the code i have atm is
http://www.jsfiddle.net/rkd59/1/
Hi All,
I am trying to delete records in many to many using Doctrine. I used code on http://www.doctrine-project.org/documentation/manual/1_2/ru/working-with-models#many-to-many-relations:deleting-a-link
when I do the first method, it just deletes UserGroup record ONLY. How do I delete User, Group, and UserGroup records at once? The second and thrid methods do not work as well.
Is it required to use a RESTful
service to be able to make a ajax
call to a wcf service (for example: by using
WebInvoke attribute on Operation
contracts)
Once a service is made RESTful by adding a webHttp binding on the service host, can the host have other endpoints as well? (wsHttp or netTcp)
Is it required that the aspNetCompatibilityEnabled be set to true for a service that has webHttp binding (and can this setting coexist for other endpoints)
I understand I can use both JQuery and ScriptManager for making WCF calls on the client. Why should I use one over the other?
This is a pretty simple question. When I do this:
session.CreateCriteria(typeof(Product)).List();
The resulting list will load as I access it? Let's say, from 100 to 100 elements for example? Or will it load all once?
In the case it's not "virtual" how can I make it so? What's the best pratice about it?
Thanks;