|
How to get the latest file name, or the file path that is added into a directory?
Started by Ngu Soon Hui on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
$dir = dirname(__FILE) { if (is_file($dir....
; } } } // now $latest_filename contains the filename of the newest file
If working on linux, takeEnumerate all directory files, get the filemtime() of each and you are done.
|
|
First i tried to get the latest files from the TFS , but shows a dialog box stating that i have all the latest files. Then i tried to getting the latest through Get Specific Version, still i was unable to get the latest files.
I even tried deleting the...
Answer Snippets (Read the full thread at stackoverflow):
(knock on wood).
Latest issue that needed anything more drastic...
|
|
Hey,
I'm wondering how do you deal with displaying release revision number when pushing live new versions of your app? You can use $Rev$ in a file to get latest revision, but only after you update the file.
What if I want to update a string in one file...
Started by michal kralik on
, 8 posts
by 8 people.
Answer Snippets (Read the full thread at stackoverflow):
It's always helpful to have a script which:
checks out a clean copy the repository revision and write it into... .
On the one project where I had a reason do and insert it into a file.
Update the file as part of building/deploying the release.
|
Ask your Facebook Friends
|
Pretty lame problem:
I have an xml file that gets updated everyday on a server. Chrome keeps on getting the original cached xml file and not the updated version. The file is hosted on azure.
Any ideas how I could force Chrome to get the latest version...
Started by vidalsasoon on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Place the xml file and other similar.
=20100214
That way, even if the browser caches that particular XML file, tomorrow the query string Silverlight itself, but you seem to already be able to load the file.
|
|
You may call me a maniac, but I like to be sure that just by copying the contents of the java folder and setting the environment variables, everything will work fine.
So I usually run the installer in a virtual machine, zip the \java folder contents, ...
Answer Snippets (Read the full thread at stackoverflow):
Not sure if you can just get a zip file with its contents, as the official installation install.
|
|
Some browsers cache js and css files, failing to refresh them unless you force them to. What's the easiest way.
I just implemented this solution that seems to work.
Declare a version variable on your page
public string version { get; set; }
Get the version...
Started by kiev on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Not to use a GET parameter to update, but the actual file name:
href="/css/scriptname/versionNumber.css"
even though this is more work to do, as you'll have to actually create the file, or build a URL.
|
|
I made some changes on a CSS file on a PHP site.
The changes do not show up in any browser I test it on until I hold down the CTRL key and click the browser's REFRESH button.
This means that most users are not going to seem the changes I made.
How can...
Started by Edward Tanguay on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If the new....
For example, style.css becomes style-10162009.css
You can't.
Alternatively, a common solution to FORCE uncaching is to version your CSS file names ( Rails does this internally).
file, and I'm pretty sure IIS can do the same.
|
|
I have a large file in my repository that is not text-mergeable and that I do not need multiple-version control for (PPT for example). I would like to keep it on the repository for backup purposes and to share with multiple people, but I do not want the...
Started by bsofman on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
If a file does change then surely the point....
If a file doesn't change then only one version is stored.
You can't - and rightly so.
However: subversion keeps the changes to this file as binary space.
This is not possible in Subversion.
|
|
Hi,
I'm using a local Git project repository, and have created a remote repository followed by pushing the contents of my local repository to the remote repository using the git push origin master command. I can now perform commits and other tasks just...
Started by Jason on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Usually this is done using a heuristic- if the argument matches a file that exists, the file "test.docbook" doesn't exist on the filesystem so git can't tell if you mean the commit.
A revision or a file.
|
|
Hey everyone,
I have created a shell script to backup my webfiles + database dump, put it into a tar archive and FTP it offsite. Id like to run it X times per week however I only want to keep the latest 10 backups on the FTP site.
How can I do this best...
Started by barfoon on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
(Of course, this way you only get the latest 7 files, but it's a pretty to work:
num_files_to....
Then, when you backup, you would delete or overwrite the backup file for the current day of the week.
Mon.tgz backup-tue.tgz etc.
|