dependencies
The “SlowCheetah.Xdt.TransformXml” task could not be loaded from the assembly
In my case the error occured while compiling a web project. The folder %userprofile%\AppData\Local\Microsoft\MSBuild\SlowCheetah\v2.5.10.2 was empty. All the SlowCheetah components were in SlowCheetah\v1 folder instead. I’ve copied all files from V1 folder to v2.5.10.2 and everything compiled and transformed fine. To make non web projects compile, I also had to delete V1 folder as suggested … Read more
how to copy the dependencies libraries JARs in gradle
Add: build.dependsOn(copyToLib) When gradle build runs, Gradle builds tasks and whatever tasks depend on it (declared by dependsOn). Without setting build.dependsOn(copyToLib), Gradle will not associate the copy task with the build task. So: apply plugin: ‘java’ apply plugin: ‘application’ manifest.mainAttributes(‘Main-Class’: ‘com.test.HelloWorld’) repositories { mavenCentral() } dependencies { compile ( ‘commons-codec:commons-codec:1.6’, ‘commons-logging:commons-logging:1.1.1’, ‘org.apache.httpcomponents:httpclient:4.2.1’, ‘org.apache.httpcomponents:httpclient:4.2.1’, ‘org.apache.httpcomponents:httpcore:4.2.1’, ‘org.apache.httpcomponents:httpmime:4.2.1’, … Read more
Do I have to manually uninstall all dependent gems?
gem list | cut -d” ” -f1 | xargs gem uninstall -aIx deletes all installed ruby gems!
python circular imports once again (aka what’s wrong with this design)
Circular imports are not inherently a bad thing. It’s natural for the team code to rely on user whilst the user does something with team. The worse practice here is from module import member. The team module is trying to get the user class at import-time, and the user module is trying to get the … Read more
Problem with Postgres ALTER TABLE
I have run into this problem and couldn’t find any way around it. Unfortunately, as best I can tell, one must drop the views, alter the column type on the underlying table, and then recreate the views. This can happen entirely in a single transaction. Constraint deferral doesn’t apply to this problem. In other words, … Read more
JSON Schema – specify field is required based on value of another field
This is definitely possible with version 3 of the draft. Since you have a complete list of allowed countries, then you could do something like this: { “type”: [ { “title”: “New Zealand (no postcode)”, “type”: “object”, “properties”: { “country”: {“enum”: [“NZ”, “NZL”, “NEW ZEALAND”]} } }, { “title”: “Other countries (require postcode)”, “type”: “object”, … Read more
Adding a bindingRedirect to a .Net Standard library
Binding redirects are a .NET framework concept, there are no binding redirects on .NET Standard and .NET Core. However, an application (the actual .NET Framework or .NET Core application) need to resolve the files to be used. On .NET Core, this is done by generating a deps.json file based on the build input and a … Read more
What can I do to my scala code so it will compile faster?
Here are the phases of the scala compiler, along with slightly edited versions of their comments from the source code. Note that this compiler is unusual in being heavily weighted towards type checking and to transformations that are more like desugarings. Other compilers include a lot of code for: optimization, register allocation, and translation to … Read more
Anaconda: Install specific packages from specific channels using environment.yml
I saw something like dependencies: – chanelname::modulename=X.Y.Z Update It now implemented: https://github.com/conda/conda/issues/7202 Old answer Be carefull since it doesn’t seemed to be implemented. A channel is, by design, a “space” where depencies are robust. So removing this might break dependencies.