Questions tagged [renaming]

342 questions
9
votes
1 answer

Renaming a class file no longer prompts to rename all occurrences

It used to be that when I renamed a class file (maybe also others) in VS2012, it prompted me to renamed everything, then did a nice refactor after renaming the class to the new file name. It suddenly stopped doing that. Does anyone know why it…
ProfK
  • 49,207
  • 121
  • 399
  • 775
8
votes
1 answer

Cost of x86 register renaming

The following code compiling with gcc or clang on amd64 // gcc -O2 file.c -c int f(int a, int b, int c, int d) { return a & b & c & d; } produces following assembly: 0000000000000000 : 0: 89 d0 mov %edx,%eax 2: …
jtaylor
  • 2,389
  • 19
  • 19
7
votes
3 answers

SCP copying error : Not a directory

I want to copy a file from my local system to a remote host. I want to specify the file name while copying. This is my command for copying. scp config/1 root@remote:/home/user/config/2 I want to rename the file while copying or with the same name…
Muneeb K
  • 457
  • 1
  • 9
  • 21
7
votes
2 answers

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?"…
Dane O'Connor
  • 75,180
  • 37
  • 119
  • 173
7
votes
4 answers

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…
Rippo
  • 22,117
  • 14
  • 78
  • 117
6
votes
3 answers

replace names of all directiories and files in PS

I want to replace all space characters into "_" in names of all subfolders and files. Unfortunately when I type: Get-ChildItem -recurse -name | ForEach-Object { Rename-Item $_ $_.replace(" ","_") } Error message: Rename-Item : Source and…
matandked
  • 1,527
  • 4
  • 26
  • 51
6
votes
3 answers

bulk rename of files to lowercase in git

I have an entire git repo where I'd like to rename all the files and direcories to lowercase. Running on Win7, I've added igorecase = false to the gitconfig and renamed a few files through eclipse. The resulting commit now has the two files, one all…
Ian Wood
  • 6,515
  • 5
  • 34
  • 73
6
votes
1 answer

How to rename a variable coming into a Function in Typescript?

Trying to rename this variable: assetPayoutType to just payType, however because I'm working in TypeScript there is a problem. TypeScript thinks there is a type called payType. const { title, assetPayoutType } =…
Leon Gaban
  • 36,509
  • 115
  • 332
  • 529
6
votes
1 answer

Python- Renaming duplicated values based on another variable

Is there anyway to rename the values based on another variable? Over here I have two columns, one of which is ID and another is fruits. However, I was thinking would it be possible to uniquely identify them based on the ID ID Fruits 1 Apple 1 …
Denova
  • 71
  • 3
6
votes
1 answer

bash: Truncate Filenames, keeping them unique

I'm using a for-loop similar to this one to truncate all filenames in a folder to 16 characters: for i in *; do Shortname=${i:0:16} # Let's assume I don't need the extension mv "$i" "$Shortname" done The problem is: Whenever two…
Martin
  • 63
  • 1
  • 3
6
votes
1 answer

move a branch path in git (change its name, not its code)

we have a branch on remote called release/service-release-2016 I want to rename the branch to release/completed/service-release-2016 for archiving and clarity. How do I do this? Everything I searched for interpreted this as moving around commits and…
Oliver Williams
  • 5,966
  • 7
  • 36
  • 78
6
votes
2 answers

Rename File with Creation Date & Time in Windows Batch

I have a directory tree with thousands of pdfs and tifs. A folder may contain multiple pdfs or tifs in that case they are numbered 1.pdf, 2.pdf etc... I have to make them available and making sure they are maually processed oldest files first - so I…
Philä Bu
  • 95
  • 1
  • 3
  • 10
6
votes
2 answers

Make signal names coming from library links unique?

OK, I've been struggling with this for a while. What is the best way to accomplish the following: where Reaction Wheel 1-4 are links to the same block in a library. When the Speed Counter, Speed Direction and Current signals are added to the final…
Rody Oldenhuis
  • 37,726
  • 7
  • 50
  • 96
5
votes
1 answer

iCloud - renaming open documents on another device sometimes fails

The issue: I'm working on an iCloud document on device A, e.g. iPod Touch. Then I change the name of the document on device B, e.g. my Mac (via the Finder). The change goes up to the cloud and after a pause device A gets to hear about it. And…
Obliquely
  • 7,002
  • 2
  • 32
  • 51
5
votes
3 answers

Pandas changing order of columns after data retrieval

I would like to change the column names of a pd dataframe but I'm finding that the order of the columns change after data is retrieved. The below code specifies sector ETF symbols and fetches the data from yahoo finance. The problem is that once I…
Merv Merzoug
  • 1,149
  • 2
  • 19
  • 33
1
2
3
22 23