Hi there.
I would like to build an image gallery in Flash with AS2 or AS3 that detects automatically the number of images available in a specific folder (say a level below the swf file).
The goal is to don't have to config any xml files with the images to show.
Is this possible?
Thanks in advance.
I need to get all those files under D:\dic and loop over them to further process individually.
Does MATLAB support this kind of operations?
It can be done in other scripts like PHP,Python...
I know there's some kind of assembly probing process. Is there a similar process for looking for config files? If there is, what exact process is it? How could I customize it?
Many thanks.
I'd like to run a program on a directory of files. I know how to do this with one file, using
cat myFile.xml | myProgram.py.
How can I run myProgram.py over a folder, say myFolder?
Thanks!
In one of my application I'm using the WebClient class to download files from a web server. Depending on the web server sometimes the application download millions of documents. It seems to be when there are lot of documents, performance vise the WebClient doesn't scale up well.
Also it seems to be the WebClient doesn't immediately close the connection it opened for the WebServer even after it successfully download the particular document.
I would like to know what other alternatives I have.
I'm reading about Red Gate SQL Backup, and I liked the concept of creating a database backup compressed and writing on disk the compressed backup directly without an intermediate SQL Server native backup.
And I'm wondering how this type of software make backups. It accesses the database files directly? It uses some sort of SQL Server or Windows API? Windows Shadow Copy?
After installing the new server, I am facing an issue.
I have lot of .vbs files, all need to run in wscript, reason, I use all those command like WScript.Echo "hello"
I want to be able to see the output when I double click the VBScript file.
But when I right click on the vbs file, I see console, I want to change the default to Windows host, globally!
How can I do that?
Working with an standard configuration of the server, without any lock, my files are read-only after every check out or update to the working copy. I have to set them to be not read-only to continue working, but besides this shouldn't be happening, it's uncomfortable.
Anybody knows how to avoid this behavior?
I've got a piece of software which consists of several python sources and a couple of c++ libraries. I'd like to pack them in a executable single file, just like java does with .jar files. Is there a way to do that?
I'd like to get the image files for the constants definied in NSImage.h, like NSImageNameGoRightTemplate for example. I'd like to copy and edit some of them. Does anybody know where those images are located? I'm too stupid to find them on the drive...
I want to add this code:
<link rel="stylesheet" type="text/css" href="css/global.css" />
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="css/iehacks.css" />
<![endif]-->
to all the files in a folder right before the </head> tag
I have been facing an error when I trigger XSLT from a C# code, It mentions something about dll file access failure every time, so just want to know whether this transformation code creates any dll files (in C:\Windows\temp directory) as such??
(I have mentioned the error and triggering program in my previous question),
How do I attach multiple files as attachments in vb.net? I am trying to use a list box where user will select the file and attach which will appear in a listbox. And also I would like to give the option to delete the attachment also.
Recently I opened a .dll file produced by Visual Studio 9 while compiling a native C++ DLL project and was surprised to see the "This program cannot be run in DOS mode" text near the beginning.
Why have this text in .dll files?
If I have a working copy of a Subversion repository, is there a way to delete all unversioned or ignored files in that working copy with a single command or tool? Essentially, I'm looking for the SVN analogue to git clean.
Either a command line or GUI solution (for TortoiseSVN) would be acceptable.
in my .htaccess i've got these lines:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
i tried to include js files with this line:
<script type="text/javascript" src="system/application/media/js/jquery/jquery.js"></script>
but it doesnt work since the rules dont let it pass. it works when i turn the rewrite engine off.
how can i change the rules so it allows url with a /js, /css and /img?
thanks
It seems a good and clean thing to ensure that your deployed files appear on the target system with a consistent time/date. Many Applications seem to do this but other than for care of overwriting Users' existing data I guess it has no real significance. I'm having a purge on my installer packaging and I'd like to know if there any good reasons for specific date/time handling.
I'm writing a Java application that runs on Linux (using Sun's JDK). It keeps creating /tmp/hsperfdata_username directories, which I would like to prevent. Is there any way to stop java from creating these files?
I've checked out the man pages and did some searching but can't find info on ways to have rsync skip files greater than a certain size. We're doing rsync to an offline location and when someone puts a hug video file, the rsync jobs run into work hours.
I've looked at the 'exclude' syntax and didn't see anything for excluding based on file size.
Can I do it with rsync or should I look for other offline synching alternatives?
In MacHg, how do you select one and only one file from one folder and one and only one file from another folder to commit when you have other changed files in the same folder?
In the command line it would be:
hg commit folder1/file1 folder2/file2 -m "Message."
Using C#, how can I delete all files and folders from a directory, but still keep the root directory?
I have this
System.IO.DirectoryInfo downloadedMessageInfo = new DirectoryInfo(GetMessageDownloadFolderPath());
foreach (FileInfo file in downloadedMessageInfo.GetFiles())
{
file.Delete();
}
foreach (DirectoryInfo dir in downloadedMessageInfo.GetDirectories())
{
dir.Delete(true);
}
Is this the cleanest way to do it?