Pharo add configurations to startup preferences - smalltalk

I'd like to add some configuration to the startup-pref.st file so that they will be loaded automatically whenever I download a new version of pharo.
Specifically I would like to download my projects repositories from smalltalkhub, so that I don't have to do it manually every time.

you should have a look at my automatic setup gists: https://gist.github.com/Uko/7672537
There is a file called installDFlow.st that installs DFlow project. In a same way you can install whatever you want. These files have to be put into ~/Library/Preferences/pharo/

Related

How do you set up a 1.14.4 Minecraft Mod in the java IDE Eclipse?

I have set up a minecraft mod in eclipse before, only it was in 1.12.2. I installed the ´src´ forge for 1.12.2, but there is no src option for 1.14.4. I have heard that the code for minecraft was changed, so modding minecraft in 1.14.4 is different to modding 1.12.2 minecraft. Can somebody please help?
Go here: https://files.minecraftforge.net/
Click this:
You may alternatively download the recommended build. Forge for 1.14 is still under active development and some features may not be present in the recommended build.
Create a folder where you would like your workspace to live, eg workspace (I name it with the Forge version number, personally). Inside it create another folder, I name it project, but the name isn't important, just that having this extra layer will make things play nice (I will use these names in this answer only to make it clear which folder I'm talking about).
Extract the downloaded zip into the project folder
Shift-right click on the project folder and "open power shell here."
Run the two commands listed in the readme: ./gradlew genEclipseRuns and ./gradlew eclipse (note: do not do steps 4 and 5 of the readme, they are outdated)
Open eclipse, switch workspace (File -> Switch Workspace -> Other) to the workspace folder. Eclipse will restart.
File -> Import...
General -> Existing projects into workspace
Where it says "select root directory" point it at the project folder and check "search for nested projects"
Pretty much hit next until its done (or you can hit Finish right away).
This should leave you with a Package Explorer that looks like this:
Your code and assets will go inside src/main/java and src/main/resources (note that assets will contain both "assets" and "data" folders, for client-side assets and datapack assets respectively). Minecraft read-only source is available in the Project and External Dependencies group, note that many of the vanilla assets (including data packs) are found in the client-extra.jar file.
Lastly:
Find the src/main/resources/META-INF/mods.toml file
Edit as necessary with your mod ID and other information. The file is well commented.
Any further issues should be directed to the Modder Support forum.

No detect the external library (Phpoffice) in yii2

Two computers are working on the SAME repository but first computer detect the library and work well but second computer not detect it and show "Error 'PhpOffice\Phpspreadsheet\Reader\Xlsx' not found".
In vendor, the library also exist.
composer.json and composer.lock also the same on both computer.
One thing is that by git ignore, I use yii's composer mechanism at 1st computer but at sec computer(err computer), I add library manually.
If you want to use a composer package, you absolutely need to install it using composer. This ensures that the autoloader is generated properly and your class can be found through PHP.
Copying library files into vendor directory is not enough to install it. During installation Composer creates autoload script with information how to find all classes installed by Composer. If you just copy library files, Composer will not even know that it exist and will not able load any class from it.
If you cannot use Composer on server/computer A, you should install all dependencies on different computer (B) and copy the entire vendor directory into server/computer A. Autoload definitions are in vendor so it should work if you copy the whole dorectory.

PyCharm - Send directory to run configuration from right-click menu?

I have a run configuration in PyCharm with script parameters that take in a directory. Then, I have several directories (a changing number) in my project which I would like to easily be able to run this configuration on. Is there anyway to add an option to the right-click menu of directories to run the configuration passing that directory to the configuration? Or some other method which provides similar accessibility to running the configuration on a directory?
For my specific problem, I have many log directories for TensorBoard (from TensorFlow) and I would like to selectively and easily be able to start up an instance of TensorBoard running on a given directory.
Basically if you would run it in pycharm You can write your own plugin to add some functionality to the IDE. There is a great documentation on how to create plugins in idea/pycharm:
http://www.jetbrains.org/intellij/sdk/docs/basics/getting_started.html
We have done it before and it was a successful plugin, it really sped up the development processs. :)

How to force IntelliJ to use a different home folder

I have a computer with two hard drives. In the first one, an SSD disk, I have Windows partition (C) and on the second one (D), a raid volume, I install all the programs. I also moved my user folders (desktop, documents, downloads, pictures and videos) to D:/Users/David.
After installing IntelliJ Idea on D:/Program Filles(x86) a .IntelliJIdea13 directory appeared on D:/Users/David. No problem with this as all was working nice. Then I installed Scala plugin, created a new SBT project and build it. After this, the .sbt directory used by SBT was in C:/Users/David/.sbt but the references to the libraries in my project are pointing to D:/Users/David/.sbt. The question is, how can I force IntelliJ Idea or Scala plugin to download the libraries to D:/Users/David.sbt?
Not 100% sure if this can be a solution, you can change the HOME folder of Intellij IDEA. Look for the folder where the idea executable is. In Linux I have on
~/applications/idea13/bin
On Windows you can check the properties of the menu item. There should be file idea.properties that contains the home folder location of the idea files.
You can find more information here that describe more details:
Locations can be changed by editing the following file:
IDE_HOME\bin\idea.properties
Follow the comments in idea.properties file to change the defaults,
make sure to un-comment the lines defining these properties:
idea.config.path
idea.system.path
idea.plugins.path
idea.log.path
On the other hand you can change the location of your project to D:/Users/David. you should also have a look inside the project folder, there should be a .idea folder with has a library directory. They contains the location of the libs used in the project with their paths.
As dawez allready answered, you should edit idea.properties to set config, system, plugins and log paths.
But if you want to change the user.home path, then you must edit idea.exe.vmoptions file. Just add the following at the end of the file:
-Duser.home=your_new_user_home_path
If you use idea64.exe then you should edit idea64.exe.vmoptions file.
JetBrains had added complete set of features to support such a case and this is described here:
Changing IDE default directories used for config, plugins, and caches storage

How to get RavenDB to recognize a plugin?

I'm trying setup the Versioning bundle in RavenDB: http://ravendb.net/bundles/versioning
The installation instructions are pretty straight forward:
Simply place the Raven.Bundles.Versioning.dll in the Plugins
directory.
I've tried this do this by creating a "Plugins" directory under the Server directory (the Server directory contains the Raven.Server.exe), and dropping Raven.Client.Versioning.dll into that Plugins directory.
However, when I run RavenDB after that (either from the command line or as a service), it doesn't give me any indication that it has recognized the plugin, and when I save/edit new documents no versioning is being applied.
I've tried running with the default plugin directory settings (which supposedly automatically looks in the Plugins directory), and I've tried manually adding the PluginsDirectory setting to Raven.Server.exe.config, to no avail.
Has anyone been able to get plugins working, specifically the versioning bundle? Do you hae to do anything special?
Mike,
It is supposed to just work. Take a look at the statistics, you should see the versioning trigger registered there.
It is important to ensure that:
You are using the same version of the dlls
You restarts RavenDB after copying the directory
You don't reference another Raven/PluginsDirectory in the configuration
It is probably better to follow this up in the mailing list.
For Raven v2, you'll also add the bundle name to the the Raven/ActiveBundles property on a database document. The names should be semicolon-delimited.
For example, I have a database called MidwestAnimalRescue. To enable the Periodic Backup bundle and the Versioning bundle, my document will look like this: