I am trying to install elasticsearch plugin from couchbase, and as written in this official installation guide, I have to do this:
bin/plugin -install transport-couchbase -url \
http://packages.couchbase.com.s3.amazonaws.com/releases/elastic-search-adapter/2.0.0/elasticsearch-transport-couchbase-2.0.0.zip
However, I keep getting this error:
the system can't find the specified path
I found the error myself, it was that i was putting bin in the java home path. when i put the java home path without bin, it works
i think you need to download the plugin and the install it from you location.
https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-plugins.html
if you use --url it will download it if it is on download.elastic.co
"The plugins will be automatically downloaded in this case from download.elastic.co, and in case they don’t exist there, from maven (central and sonatype)."
Related
I'm currently using C# to build an app using WebView2, however, I need to make it accessible for those who are currently not on Edge. I decided to use a fixed version runtime, as documented here.
I'm going to use "EnsureCoreWebView2Async" to specify my environment.
My question is how do I reference the binary files needed in the "browserExecutableFolder" parameter in "CoreWebView2Environment.CreateAsync" if I'm going to package the project using ClickOnce? I won't know where the user will install the file, so I don't know what directory to reference. Could I just reference the file based on the package directory, like below:
"...\\bin\\Release\\net5.0-windows\\programName.exe.Webview2\\EBWebView\\x64\\EmbeddedBrowserWebView.dll"
...or is there another file reference syntax I would need to use?
Sorry if this seems like a beginner's question, but I just recently started learning C#/.NET and I'm still trying to get the hang of programming altogether. :-)
You can package the binary file in the click once installer. When this gets extracted the binary file will be in the same (i recon) directory as the application installed.
Which click once installer will be used for installing the application?
Once you know where the binary file gets placed on installation and if it is in the same folder as the installed application, you can use the following code for getting to that path.
var exePath = System.Reflection.Assembly.GetEntryAssembly().Location;
Documentation for above
When using it with Path.Combine(exepath, "nameofbinaryfile");
You can get a reference to the binary file.
Trying to create a code that helps me get a passeport scan so i'm following the tesseract download and insrall in this link https://github.com/tesseract-ocr/tesseract/wiki/Compiling#windows.
i did all of the above but when it comes to this
cd tesseract
cppan
mkdir build && cd build
cmake ..
i just get in the tesseract directory and can't open cppan , it says No spec file found
please help !
This isn't a tesseract error, it is a cppan error.
Make sure the cppan installation went well, if needed go here https://github.com/cppan/cppan
and install the latest version yourself.
The last option you might consider is creating the spec file yourself.
Make sure you understand the stage 4 is comprised of 4 different commands.
Did you run this in Cygwin? I did, and got the same error but it worked fine in a cmd command window. The install script seems to insist on using Windows filesystem references, because I found the failed script had created a subdirectory under my tesseract directory named "C:".
The cppan instructions should have added: "In a cmd window, navigate to the tesseract root directory. Either add cppan to your system PATH variable, or give the correct directory path to cppan.exe in the following command..."
(I think it will work fine in a command shell like cmder too, as long as it recognizes the Windows directory syntax.)
(I don't think cppan needs to remain in your system PATH permanently unless you plan to use it for other things.)
I had to format my computer, reinstall all Visual Studio and Xamarin stuff , but after that, my old projects and new ones throws this error:
The imported project "C:\Program Files (x86)\Windows Kits\10\bin\10.0.14393.0\XamlCompiler\Microsoft.Windows.UI.Xaml.Common.targets" was not found. Confirm that the path in the declaration is correct, and that the file exists on disk. C:\Program Files (x86)\MSBuild\Microsoft\WindowsXaml\v14.0\8.21\Microsoft.Windows.UI.Xaml.Common.targets
I can't even understand this error, or find anything in Google. The first file address is different than the second, it doesn't make sense. The second one, is the actual one in my UWP.csproj and it is in my drive at this location. The first file address I have no idea where it's coming from and it's not in my drive. The 10.0.14393.0 folder doesn't exist in my drive.
Any idea how to understand this problem and fix it?
Thanks
EDIT:
After formatting my computer again and reinstalling the entire Visual Studio/Xamarin suite, I verified that both paths exists in my computer. I wonder what happened.
Right click .csproj file on the Solution Explorer that is SampleProject(load failed) then right click select Edit Solution. Once you got there then find TargetPlatformVersion tags, it also has decimal value like this 10.1.17882.0 blablabla something like that... Then Open folder C:\Program Files (x86)\Windows Kits\10\bin you will see version SDK folders there, then copy FOLDER NAME of the latest version SDK folder and PASTE or replace value 10.1.17882.0 in TargetPlatformVersion tags SAME with TargetPlatformMinVersion tags but lower version of SDK on the .csproj file. Right click and reload project cheers!
I am wondering how to be able to get the my documents path on any machine.
I need to be able to create a new file there and to copy a folder into it.
Here what I got so far, I know its hardcoded so I am looking for some help.
1. make text file in:
C:\Users\ADMIN\Documents\folder1\Projects\project1\copyfolder\textfile.txt
2. copy folder and contents:
C:\ProgramData\test1\copyfolder\
to
C:\Users\ADMIN\Documents\folder1\Projects\project1\copyfolder\
Here's what I got so far:
echo. 2>C:\Users\ADMIN\Documents\folder1\Projects\project1\copyfolder\textfile.txt
But as you see its hardcoded!
Also would %USERPROFILE%\My Documents\ work?
Thanks
Correct syntax for build events is $(USERPROFILE)\Documents
As the visual studio post build is based on MSBuild it should be possible to use a macro that directly accesses the registry (See Registry Properties in the MSBuild documentation).
So you can use
$(registry:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders#Personal)
to query the exact location of the current users Documents folder no matter whether it was moved or not
I installed Mono on Win7 and trying to find the apps outlined here.
But they don't mention where are they located and launched.
Any ideas on how to access them as a user?
You just Launch the Mono command line (it's on the start menu).
Then type
csharp
And off you go
The twist is that the command line shortcut sets a bunch of environment variables (notably PATH) so that the mono binaries and batch script wrappers (!) are being found.
It's the csharp.bat file in the bin directory, along with mono.exe etc.
Having put the bin directory in your path, you should just be able to run csharp from a command line and get straight in. That's certainly the case with Mono 2.10.5, which I've just installed.