regional

Visual Studio appears to randomly adopt American keyboard layout

断了今生、忘了曾经 提交于 2019-12-28 03:20:30
问题 Gah! This is really causing me hassle today. Suddenly without warning '@' (at symbol) and '"' (double quote) are trading places on my keyboard but ONLY in Visual Studio 2008! I can't seem to find anything in help or online to explain/remedy this. Is there some keyboard shortcut I am inadvertently executing? I rebooted my PC and it went away for an hour or two and then suddenly came back. Oh, the insanity :( 回答1: I have tried the same thing, but it turned out to be because I was hitting Alt

Android Developer Dashboard national/regional version

拟墨画扇 提交于 2019-12-18 13:53:39
问题 As many of you may know, Google has provided us with a nice Dashboard that shows us the current distribution of active Android devices along certain characteristics, such as platform version or screen size. It would be nice to have some similar information, but counting devices only in a specific region or country. For example, I am a Hungarian developer currently working on applications that are almost certainly only useful for people living here, in Hungary. Thus, I don't need to know the

How to read 'List separator' from OS in Java?

我的未来我决定 提交于 2019-12-18 07:44:30
问题 I am writing a CSV exporter in Java that should respect the user's custom settings, especially the "List separator" to use as a delimiter. In Windows, one can set this List separator in Control Panel -> Regional and Language Options -> Regional Options -> Customize I don't know about the other operating systems, but I'm pretty sure that you can change that on other OSes, too. What is the best way to get this custom setting from the OS into Java? I am in an Eclipse RCP environment, so I might

How to read 'List separator' from OS in Java?

為{幸葍}努か 提交于 2019-12-18 07:44:01
问题 I am writing a CSV exporter in Java that should respect the user's custom settings, especially the "List separator" to use as a delimiter. In Windows, one can set this List separator in Control Panel -> Regional and Language Options -> Regional Options -> Customize I don't know about the other operating systems, but I'm pretty sure that you can change that on other OSes, too. What is the best way to get this custom setting from the OS into Java? I am in an Eclipse RCP environment, so I might

Change regional and language options in BATCH

白昼怎懂夜的黑 提交于 2019-12-06 06:23:10
问题 How can I change the regional and language options in Windows XP and 7 using batch code? I want to change the "Standards and formats" to Mexican Spanish with a .bat file. 回答1: Those settings are in the registry under HKCU\Control Panel\International You can use reg.exe to make the changes manually. The easiest way to do that is to manually change your region and language to spanish (mexico) open a cmd window and type reg query "HKCU\Control Panel\International" which will show you the values

Convert string with commas to float

こ雲淡風輕ζ 提交于 2019-12-05 17:42:52
问题 Is there a built-in Delphi function which would convert a string such as '3,232.00' to float? StrToFloat raises an exception because of the comma. Or is the only way to strip out the comma first and then do StrToFloat? Thanks. 回答1: Do you exactly know, that '.' is decimal separator and ',' is thousand separator (always)? If so, then you should fill the TFormatSettings record and pass it to StrToFloat. FillChar(FS, SizeOf(FS), 0); ... // filling other fields FS.ThousandSeparator := ','; FS

Change regional and language options in BATCH

荒凉一梦 提交于 2019-12-04 16:24:38
How can I change the regional and language options in Windows XP and 7 using batch code? I want to change the "Standards and formats" to Mexican Spanish with a .bat file. Those settings are in the registry under HKCU\Control Panel\International You can use reg.exe to make the changes manually. The easiest way to do that is to manually change your region and language to spanish (mexico) open a cmd window and type reg query "HKCU\Control Panel\International" which will show you the values as you want them. Then to modify them, use REG ADD "HKCU\Control Panel\International" /t REG_SZ /v

Convert string with commas to float

偶尔善良 提交于 2019-12-04 01:58:56
Is there a built-in Delphi function which would convert a string such as '3,232.00' to float? StrToFloat raises an exception because of the comma. Or is the only way to strip out the comma first and then do StrToFloat? Thanks. Do you exactly know, that '.' is decimal separator and ',' is thousand separator (always)? If so, then you should fill the TFormatSettings record and pass it to StrToFloat. FillChar(FS, SizeOf(FS), 0); ... // filling other fields FS.ThousandSeparator := ','; FS.DecimalSeparator := '.'; V := StrToFloat(S, FS); below is what i use. there might be more efficient ways, but

Detecting regional settings (List Separator) from web

你离开我真会死。 提交于 2019-12-01 08:29:58
After having the unpleasant surprise that Comma Seperated Value (CSV) files are not necessarily comma-separated, I'm trying to find out if there is any way to detect what the regional settings list separator value is on the client machine from http request. Scenario is as follows: A user can download some data in CSV format from web site (RoR, if it matters). That CSV file is generated on the fly, sent to the user, and most of the time double-clicked and opened in MS Excel on Windows machine at the destination. Now, if the user has ',' set as the list separator, the data is properly arranged

Detecting regional settings (List Separator) from web

不打扰是莪最后的温柔 提交于 2019-12-01 02:45:09
问题 After having the unpleasant surprise that Comma Seperated Value (CSV) files are not necessarily comma-separated, I'm trying to find out if there is any way to detect what the regional settings list separator value is on the client machine from http request. Scenario is as follows: A user can download some data in CSV format from web site (RoR, if it matters). That CSV file is generated on the fly, sent to the user, and most of the time double-clicked and opened in MS Excel on Windows machine