H2_DATABASE lost the default settings - h2

I removed all the default saved settings suggest me how to retrieve the default settings ( i tried uninstall the old one and installed again but the default settings not came ).

Delete the file {userHome}/.h2.server.properties, as documented.
(On macOS, the .h2.server.properties file is hidden in your home directory. In this case, you can use the Cmd+Shift+. shortcut to show hidden files in Finder.)
Make sure to restart the server afterwards to see the change.

Related

SystemConfigurationException Read Only properties.settings.default.save()

The above error recently started being thrown when I was making updates to an existing C# windows app that saves a folder location for files it uses.
Upon receiving this error, I found that my whole hard drive seems to be set to read only. (recently had to build a new dev system) I have tried changing the folders back to being readable via folder properties. Dialog pops up and goes through all the files as if it were changing the properties. When I open the properties immediately after, the folder is back to read only.
I have also noticed that VS IDE does't save changes to the recent files/projects.
Anyone experience this and have the solution?
Things I have tried:
created a new admin user. Logged in and found the same situation. Not tied to my profile.
Tried command prompt changing folder attributes with attrib command.
Tried changing my users permissions to full control.
uninstalled OneDrive (to eliminate possible syncing issues)
Turns out my AppData folder hidden property was set to true. Setting this folder and all sub folders to not be hidden fixes everything.

Change default opening and saving location in Visual Studio Code?

Is it possible to change the default opening and saving location when trying to open and/or save a file.
The default location seems to be the root, but I would like it to be the desktop.
I haven't found anything in the Preferences settings that would support this, nor found anything stating that this is supported.
As you've stated yourself, the default location is the root of your system. At least, if you aren't working in a folder.
What you could do, of course, is simply open your ~/Desktop as a folder in VSCode. Then, automatically, your default save location is exactly as you'd like it to be.
In case anyone is still looking for this, you set this in settings.json using the key "git.defaultCloneDirectory"
You can change the location of your projects/solutions.
File -> Open -> Projects/Solutions
To do this modify
Tools -> Options -> Projects and Solutions -> Locations
I think that's the closest you can get.
The topic is documented in multiroot workspaces.
https://code.visualstudio.com/docs/editor/multi-root-workspaces
Just for reading, though I couldn't find default folder config by the first look into the article.

How can I export/import settings of Sublime Text 3 from one PC to another using Windows?

I use Sublime Text 3 in my company and I want to export all the settings, including packages and whatever, to use the same configurations in Sublime Text 3 I have at home. How can I do this?
PS.: I use Windows 8
The best way is to sync the User directory, there are multiple available ways to do this - dropbox, git and manual ways.
Installed packages are registered in Package Control.sublime-settings, which is located in the user folder as well, thus, it does not require you to sync anything besides that. A pretty good guide to syncing can be found here.
You also may wish to check out this package.
For me (Windows installation) transferring all the content from old installation - AppData\Roaming\Subime Text 3, to new installation - AppData\Roaming\Subime Text 3, does the job. All the packages and UI settings are transferred and are working correctly.
None of the manual efforts are needed now (I think). Both sublime text (ver 3) and visual studio code (if anyone cares) have extensions that do this for us.
For VS Code -
https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync
For ST3 -
https://packagecontrol.io/packages/Sync%20Settings
With a few clicks like generating token and configuration, one should be able to easily port the settings from any machine (Win, OSX, Linux) to any machine.
You can try this plugin PackageSync. It can package your settings and packages into a zip or 7z file, then, you can import them on another machine.
As an aside an easy way to locate the 'User' or 'Sublime text {2/3/etc}' folder regardless of OS is to:
Open go-to-anything and just type: 'us'
From the available options select 'Preferences: Package Control Settings - User’ to open that file.
Right click on the file and make the selection to open the containing folder (Mac: reveal in finder)
Navigate back up to the parent folder Sublime Text 3 (or whatever version number you are on)
Copying this folder and replacing the Sublime Text 3 folder in a fresh Sublime install with this one should install all packages and replicate any other settings you have.
source
"If you want to sync settings across machines, the best way to do so is to just sync the Packages\User\ folder. This contains all customized settings, and if you are using Package Control, it includes a list of all installed packages. If Package Control sees that an installed package is not present on the machine, it will automatically install it the next time Sublime Text starts."
PS: if I am not mistaken the author of this post is the key developer of sublime.

Sublime Text requires restart on settings changes to take effect

My Sublime Text 3 ( but also applies to ST2 as I experienced the same issue before I switched to ST3 ) requires restart for any settings changes to take effect. This happens on a Mac Mini in the office but not on my Macbook Pro ( which is pretty much the same setup ).
I do sync settings over Dropbox by symlinking Application Support/Sublime Text 3 folder to Dropbox. However, I can recall it happening even before I did that.
Any ideas how to make it apply settings changes immediately?
First, make sure you're running the latest build of ST3. Remember, this is beta software, and things break/change/get fixed again from version to version, so it may just be an issue with your particular build.
I suspect that this has something to do with Dropbox, as settings changes should be applied as soon as you save the settings file in almost all cases. For example, changing the theme should happen immediately. To test if it's Dropbox-related, unlink your current symlink to ~/Library/Application Support/Sublime Text 3 and make it a regular directory, then copy all your settings over and try to change something. If it applies right away, then it's an issue with Dropbox.
You can install the package called 'Restart' and then just restart from the admin tab.
Check the package to restart sublime text. It is just perfect https://github.com/yedderson/SublimeRestart
In Mac:
"Cmd + Shift + P"
Enter: "Install Packages"
Enter: "Restart"
Now, you should see the "Restart" option under "File" in me main menu.

Custom setting at un-install for file/folder deletion

Using Advanced installer for my java based application, it is working very good. I want to remove one folder and one file when user uninstall the application from system. Now my question is
1) how to remove a file from a given location e-g i have an abc file at desktop and i want if it exist there it should be deleted while user will uninstall the application(file will be on the same path and with same name for all) ?
2) how to delete a folder from the system while user uninstalling the application ?
3) if (2 i-e folder deletion) is possible then, can i change the location of the folder(i want to delete at uninstall) programmatic-ally ?
Thanks in advance.
Assuming your are using the latest version of Advanced Installer.
1) You can go to Files and Folders page and from the toolbar, under "File Operations", add a File Removal, which you can configure to run during install or uninstall
2) Right click on the desired folder and go to "Operations" tab, there you will find the options you need
3) Yes, you can specify the path programmatic-ally, but you need to do it from the beginning of the install process, using a property based folder. So basically you create your property based folder and configure options from Operations tab for it.

Resources