renaming

cannot access excel file after renaming

I have renamed some excel files on my web server and after renaming the users cannot download those files. What could be the problem. They are all excel files. ...

Renamed Database in CakePHP

Hi all, After I uploaded my application created using cakephp, I found out that I had to rename the database. I renamed my database accordingly and changed the settings in the database.php file in the "config" folder. But my application is still not running. I am being shown this error message "Missing Database table" "Error: Database...

How to rename a column in SQL?

What is the best practice when it comes to renaming a table column using SQL (MS SQL Server 2005 variant)? This assumes that there is data in the column that must be preserved. ...

Renaming multiple files: mv changing_part_footer.php changed_part_footer.php

I have files: hallo_flower.php hallo_house.php I need to rename them to: tjena_flower.php tjena_house.php ...

How to rename a column/proprety within fluent NHibernate?

Say I already have a Table: Customer First Last Thus I would have an object with properties such as: Customer.First Customer.Last If I wanted to refactor the code so that I rename the properties: Customer.FirstName Customer.LastName Is there a way to indicate to NHibernate to update First to FirstName and so on? I already know ho...

a MYSQL script to convert the column names to lowercase

I am looking for a single MYSQL script to convert ALL column names in a database to lowercase in one go... I have inherited a MYSQL database that has a lot of mixed case column names (150 tables with a strange naming convention) and I don't want to go through manually each table by table to do this. Has anyone got such a script? Thank...

How best to cope with naming scheme changes in a Rails app

I look after an Rails app, that's about to have some key user facing parts renamed (like urls, and other such change like renaming 'blogs' to 'journals' and so on) I'm slightly worried that over time, having loads of older names in the codebase for all the methods, routes and classnames is going to be difficult to read and maintain. Wh...

Renaming Images / CSS classes in complete Project - how?

Hi guys, I have following problem: at the stat of a project, many many images and cssclasses was created. None of them are have a correct name // spelling and / or a single touch of name-style. Is there an AddIn for VS08 that allows me to rename easily images / cssclasses and searches all file assotiones and rename it to? (The most of...

Git: how to analyze code that has a multi-file history?

I'm about to move a ton of files around in an existing project. Before I do this, I'd like to have a firm grasp on some techniques used to analyze code that has a multi-file history. How can I use git to ask: "where did this line of code come from?" when the content has moved through multiple files in it's life time? I know git doesn't...

Rename several files in the BASH.

Hi, I would like to rename files numbering: I have a files with '???' format I need to put them in '????'. myfile_100_asd_4 to myfile_0100_asd_4 Thanks Arman. Not so elegant SOLUTION: #/bin/bash snap=`ls -t *_???` c=26 for k in $snap do end=${k} echo mv $k ${k%_*}_0${k##*_}_asd_4 (( c=c-1 )) done This works ...

How to rename Java packages without breaking Subversion history?

Hello everyone, The company I'm working for is starting up and they changed their name in the process. So we still use the package name com.oldname because we are afraid of breaking the file change history, or the ancestry links between versions, or whatever we could break (I don't think I use the right terms, but you get the concept). ...

Eliminating false dependencies

Hi all, I have a quite general question regarding false dependencies. As the name implies, these are not real dependencies and can be eliminated. I am aware of the technique called register renaming that eliminates such dependencies at a hardware level. Of course I could eliminate these beforehand at a "higher" level when writing assemb...

Renaming files: Visual Studio vs Version control

The problem with renaming files is that if you want to take advantage of Visual Studio refactoring, you really need to do it from inside Visual Studio. But most (not all*) version control system also want to be the ones doing the renaming. One solution is to use integrated source control, but this is not always available, and in some c...

Renaming HTML classes across CSS files

If I have 100 HTML files that use a set of classes that are used as selectors in CSS files, is there a utility that I can use to intelligently rename the classes? I know that every editor/IDE has a find/replace in project feature. Using sed you can do the same thing. This is not intelligent because it is a simple string replace. I wa...

Change model name in rails easily

I'm going to need to change one of my model names. Is there anything out there that will replace every instance of the original model name in the controllers views and tests or do I have to do it all manually, page by page? ...

Changing FileNames using RegEx and Recursion

Hello I'm trying to rename files that my program lists as having "illegal characters" for a SharePoint file importation. The illegal characters I am referring to are: ~ # % & * {} / \ | : <> ? - "" What i'm trying to do is recurse through the drive, gather up a list of filenames and then through Regular Expressions, pick out file name...

Rename all files in a folder using batch

I would like to create a batch file to rename all the files with extension ".log" in a folder to append with today's date. For example : App.log will be appended to App.log06112010 where date is 06112010. Please suggest ...

Rename files in XCode

is it possible to rename/refactor a class file and have it rename the actual file on disk? if so, how can i do this? ...

How should I rename many Stored Procedures without breaking stuff?

I've inherited an ASP.NET website with C# behind, pulling in data from MS SQL Server. The database has had several successive maintainers over the years and any naming guidelines that may have once been in place have been ignored. I'd like to rename the stored procedures to a consistent format. Obviously I can rename them from within ...

Renaming XML elements in Ruby?

How does one go about renaming an XML element using REXML or another Ruby library? Thanks for any advice. ...