Is there a way of batch capitalising the first letters in each word on files and/or folders. I.e dennis brown - love light (slow version).mp3 but I want it took look like Dennis Brown - Love Light (Slow Version).mp3?Is this something that can be done via powershell?
I am trying to generate a story using python. For this I'm trying to take the input from the users for some questions. The scenario I'm trying to get is that whenever the user enters the input, then it is displayed on the output screen in capital letters.
But what happens is that the text is diplayed in small letters.
Here is the sample of the code
message1 = input(" my name is: ")message2 = input(" i am from: ") message3 = input(" i love to eat: ")print( " My name is " + message1.upper() + " I am from " + message2.upper() + " I love to eat " + message3.upper())
My name is SANDEEP when the user enters
sandeep, but I get
What is the best approach to capitalize words in a string?
I'm moving databases from windows to Linux and I have the issue of capitalization of table names. While normally, in Linux, the tables have first letter capitalized in windows they all become lower case making it impossible for them to work again in Linux. I can't mess with the servers' sql settings so I'm looking for a query that will solve my problems. After doing some research I combined a few results and ended up with the query below but it doesn't work as the second concat brings out a number. Any solutions?
use information_schema;SELECT CONCAT('RENAME TABLE ', TABLE_SCHEMA, '.', TABLE_NAME, ' TO ', TABLE_SCHEMA, '.', TABLE_NAME = CONCAT(UCASE(LEFT(TABLE_NAME, 1)),LCASE(SUBSTRING(TABLE_NAME, 2))), ';')FROM information_schema.tables WHERE `TABLE_SCHEMA` = "test";
I have a String description that holds my sentence. I only want to capitalize the first letter. I tried different things but most of them give me exceptions and errors. Im using Xcode 6.
Here is what I tried so far
let cap = [description.substringToIndex(advance(0,1))] as String description = cap.uppercaseString + description.substringFromIndex(1)
It gives me: Type 'String.Index' does not conform to protocol 'IntegerLiteralConvertible'
func capitalizedStringWithLocale(locale:0) -> String
But I just can't figure out how to make it work. Any ideas?