Importing numeric data after changing decimal and thousand separator - powerbuilder

I am using powerbuilder 2017 and I am trying to import data from a tab separated text. The problem is our country's regional settings are set to , for the sDecimal and . for the sThousand symbols.
When i use the dw_1.importfile (powerbuilder's import command), we need those settings to be the other way round: . for the sDecimal and , for the sThousand.
If i change those settings from intl.cpl additional settings and press ok, the import works fine. Since i want to automate that procedure so that our users don't have to manually do it, i tried doing it by changing the registry values (also tried all combinations of those changes):
RegistrySet("HKEY_CURRENT_USER\Control Panel\International","sDecimal", ".")
RegistrySet("HKEY_CURRENT_USER\Control Panel\International","sThousand", ",")
RegistrySet("HKEY_USERS\Control Panel\International","sDecimal", ".")
RegistrySet("HKEY_USERS\Control Panel\International","sThousand", ",")
The values change just fine, even the window settings in intl.cpl show the new values are inserted BUT when i try to use the dw_1.mportfile the import fails with the exact same behavior as if the values were set to the original settings. I'm not sure if this is a microsoft problem or powerbuilder problem. I tried searching if intl.cpl writes anywhere else in the registry or in any other file but couldn't find anything with tools like ProcessMonitor and RegShot.
My main question is why changing the registry values isn't showing the same behavior with just pressing ok in the intl.cpl window? What am i missing here?
Any help/input would be appreciated.


Refactoring/Renaming Variable in Android Studio Project

I'm writing a little Android App and things are working out nicely, actually. The only problem I'm facing is that Android Studio won't let me refactor all of the occurrences of the variable I inted to rename (see: attached link).
I'm simply using the Alt-Shift-R Shortcut, entering the wanted text and pressing enter. The field variable is changed - but its occurences (though highlighted before) aren't. Using the preview window doesn't change the outcome.
Am I missing anything? I feel like a moron. :')
Variable naming after hitting Enter-Button
valueAusgabe is the previous naming
If you're on Windows or Linux you should be able to rename all occurrences of your variable (variableAusgabe) by just using the Ctrl+Shift+R shortcut.
When you use this, a pop-up shows up and you have to enter the text you want to replace (variableAusgabe), and the text you want to replace it with. Select Refactor for each occurrence or Replace All.
In Android Studio (ver.3.1) shortcut for Refactor/Rename is: Shift+F6.
I also faced the same problem a few days back, just go ahead to refactor the variable and when the popup appears to confirm the refactoring the variable just uncheck the "Search in comments and strings", and it should work.

MFC: How to Set initial value of CMFCEditBrowseCtrl object?

I have MFC application for which I want to add one dialog to browse file location, using CMFCEditBrowseCtrl object. But I have not been able to set initial path properly, e.g. "C:\Program Files\Path".
When tried it is showing chinese letters.
How can i do that? I have the code as follows :
m_pathCtrl.SetWindowText(_T("C:\\Program Files\\Path"));
But it is showing something like this ->
How to properly show the path in English? Please Guide.

Does Sublime Text 2 have a read-only mode?

This is not about those files that have their read-only flag set at the OS level, but about every file that users don't intend to modify. I simply want sublime text to ignore any changes and prevent saving anything to such files. One example for this scenario is when the user is reading source code that shouldn't be altered in anyway.
"Just be really careful, and don't press any buttons" is undoubtedly a good advice, but if I were to "accidentally" (<- air quotes) delete that octothorpe in front of a comment, or add new lines to a file that is sensitive to such things (some config files in Linux) and then by happenstance hit save...
I found this plugin at github, but it is actually toggling the file permissions (Read Only, Write) - not quite what I wanted.
Yes, this is possible, but you'll have to write a plugin (which actually isn't that hard, especially if you know Python). The API call is view.set_read_only(flag) in the sublime module, where Flag is a boolean. Here's a quick example which checks if a newly-opened file has a certain suffix, and if so sets it to read-only.
import sublime
import sublime_plugin
class MakeViewReadOnlyCommand(sublime_plugin.TextCommand):
def run(self, edit):
if self.view.file_name().endswith(".cfg"):
class ConfigFileListener(sublime_plugin.EventListener):
def on_load(self, view):
Open a new file with Python syntax, copy the code into it, alter it as needed, then save it in your Packages/User directory as Restart Sublime to load it, and you should be all set. To test if a certain view is read-only, open the console and enter
The plugin Toggle the View Read-Only shall do it. It basically just do what MattDMo said: when you set the view as read-only, the file can still be changed by another program (or another user), and Sublime Text will pick up those changes. It also has the context menu item you asked for. I like the "Readonly" indicator in status bar.
Didn't test it on Sublime Text 2, but in Sublime Text 3 it works great, and it claims to work on Sublime Text 2 as well.

Android Studio unknown keycode - keymaps don't work with letters

That's what I have now: fresh installed Fedora 21, GNOME3 and Android Studio. Two KB languages: ru and en. Whatever is done further is done with "en" input language chosen. System language is Russian.
What I do: try any Ctrl or Ctrl-Alt or Ctrl-Shift shortcuts with any letter. No result at all. Ctrl-Alt-L should reformat code, but does nothing, same thing with Ctrl-Shift-F, for example. Meanwhile, combo with any number or +/-/= sign or arrows works well.
So what can be wrong? When I go to Setting->Keymaps and try the button "Find Actions by shortcut", press a combo there, it finds non-letter maps very well, but as I press combo with any button, it outputs, for example, "Ctrl+Alt+ unknown keycode 0x0"
Got a terrible headache with this... Any ideas?
Looks like you have non-US layout as a default one. Java doesn't like it and generates events with invalid keycodes. I'm not sure we can develop an easy workaround for the issue. As a countermeasure you can assign US a primary layout.

Sublime Text 2 auto completion popup does not work properly

I got problem with jQuery Snippet that i installed throughout package control. After installation I do not have popup with jQuery code hints and intalisance. Look at this video:
On 0:50 after typing . he got popup with code hints - I don't have this one. I have to type . on and then press Tab to display popup with snippet...
And yes, I'm in JavaScript file and I got default settings.
And after . he also got all jQuery functions like add or addClass. I do not have this one even if I press Ctrl+Space.
If you hit CTRL-SPACE you'll get the dropdown of available completions for what you've just typed.
If you want the autocomplete dropdown to appear as you type then add this line to your User Preferences.sublime-settings file:
"auto_complete_selector": "source, text"
That should do what you're looking for :-)
Consider changing User Settings to the following:
// By default, auto complete will commit the current completion on enter.
// This setting can be used to make it complete on tab instead.
// Completing on tab is generally a superior option, as it removes
// ambiguity between committing the completion and inserting a newline.
"auto_complete_commit_on_tab": true,
// Controls if auto complete is shown when snippet fields are active.
// Only relevant if auto_complete_commit_on_tab is true.
"auto_complete_with_fields": true,
// As Richard Jordan suggested, this item
// controls what scopes auto complete will be triggered in
"auto_complete_selector": "source, text"
Open your User Settings by pressing Cmd+, on Mac or Ctrl+, on Windows
And if you want to fully grasp Sublime Text 2, I do recommend this course: Perfect Workflow in Sublime Text. It used to be free by the time I first posted this answer. I still recommend it anyways.
Which OS are you using? I'm guessing Windows.
The problem here seems to be that the jQuery snippets in the available plugins have <tabTrigger> attributes that start either with a $ or a ., which causes trouble.
Try the following: Find the jQuery package that contains those snippets (Under Preferences -> Browse Packages) and open the .sublime-snippet file of a snippet that doesn't work properly. The one you named in your post would be defined in the file event-on.sublime-snippet.
Find the line
and remove the . as follows
Save and return to your .js file. Now see if the snippet shows up when you type o. This works for me.
I guess this is a bug in Sublime Text 2 for Windows (maybe Linux, too?), since it obviously works fine on OS X as we see in the video course you've linked.
There was an issue created on GitHub on this specific package and I now commented this info. I guess the only way to get this working is to have snippets that do not start with special characters.
I also filed a bug for Sublime Text on Userecho.
The creator of the video is using SublimeCodeIntel. What you see at 00:50 isn't Sublime Text 2's autocompletion popup, it's SublimeCodeIntel's import autocompletion popup:
Imports autocomplete - Shows autocomplete with the available modules/symbols in real time.
See the Github page for more information.