Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
How to read .RData files from .NET?
Solutions provided to similar questions automate R to open an .Rdata file and return the data. The recommended way to do it in .NET would be to use the R.NET library, which is designed for fast data exchange with R.
But is there any way to read the .RData file from .NET without having R installed on the machine?
R.NET might still be the best way to go as it can be used without having R installed.
From the R.NET library GitHub page:
R needs not necessarily be installed as a software on the executing
machine, so long as DLL files are accessible (you may need to tweak
environment variables for the latter to work, though)
Note: R is provided under GPL 3 license, which mean that if you embed its DLL in a commercial .NET application, the source code of your application must be open:
You can distribute your application using a GPL library commercially,
but you must also provide the source code.
If you distribute this library in an executable, you must disclose your source code by
providing it either alongside your distribution or list an accessible
way (URL, physical copy) to obtain the source for 3 years. Does not
apply if you serve through a web portal.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I need to parse xlsx file on Linux from .NET Core Console application. However, I couldn't find any library for parsing Microsoft Office files that is supported by .NET Core 5 framework.
Have you taken a look at Excel Data Reader?
There's also a NuGet package if that makes it easier to install.
The API project file doesn't appear to have any COM interop requirements with Office, which is further supported by the existence of Android and Silverlight compatible projects included in the library.
Another possibility would be to use Gnumeric and ssconvert to convert the incoming file temporarily to a csv.
You can write a command line wrapper around that to encapsulate the process.
Update: This SO post details how to use ssconvert (as well as a few other command line alternatives): Convert xlsx to csv in linux command line
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this question
The MSDN Library provides great documentation for .NET/C#. However, the primary delivery medium, HTML via a web browser is suboptimal. A rich native Windows client for browsing this documentation seems like a perfect opportunity to showcase WPF. Is there such a client available? Are there any alternative interfaces to the MSDN Library?
Visual Studio 2010 can download the help to your local hard drive and load it from local server (it actually does use a local server, so search etc. works). Everything is seamless - you browse the documentation directly in VS itself. Hitting F1 with caret on a symbol will direct the searches into this local browser.
The help is to some extent integrated into the VS editor itself (for example as parameter info). ReSharper goes slightly further and displays even more info:
You can also browse the .Net code with some documentation bits in Object Browser.
Other than these, I don't know about anything - but I also don't know what features you would like. I personally think the old documentation browser present in VS <=2008 was horrible.
There are some features I would like to see which are currently not available anywhere as far as I know (for example list of implementors of an interface), but the solutions I listed are mostly all I personally need.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
There has been a lot of discussion on SO about using blobs vs. files to store binaries, but the current issue I'm facing involves virus scanning. There are likely a lot of APIs that can be used to scan files saved to a file system. Are there any for blobs? Are there APIs that can be given streams or byte[]s and told to scan them for viruses and malware? If so, does anybody have any recommendations? Or is this yet another reason to steer clear of blobs?
FYI - I'm using C# and MongoDb right now for my blobs.
I was in need of a solution that the question was asking about. I evaluated a lot of things and came to the conclusion that there was really not one good .NET library for this. So I made my own.
The library is called nClam, and it connects to a ClamAV server. It is open-source (Apache License 2.0) library which has a very simple API. You can obtain it here: https://github.com/tekmaven/nClam. There is also a nuget package: nClam. I also have some instructions on how to set up the ClamAV server on my blog, here: http://architectryan.com/2011/05/19/nclam-a-dotnet-library-to-virus-scan/.
I don't know if APIs exist for scanning in-memory data (I haven't found any), but you can always put your binary data into a temporary file, scan the file (by calling an external program working in command line) and delete it when it's done.
Certainly Sophos's API (SAVI) can scan arbitrary memory buffers - you can provide call-backs for accessing the data, so it can be any data you can access.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
I've used FileZilla as my favourite FTP application for quite a while, and admire its amazing functionality.
As I'm a programmer myself, I often run into situation where I need FTP support. And then I always find myself wanting to use FileZilla as a base FTP component in my system, because it supports just about everything I need.
My problem is that I program in C#.NET, and thus can't use the FileZilla source code directly, even though it's open source. Even if it was possible to use it directly, I wouldn't know where to start when looking at the source code, since I can't even get it to compile in VS.NET (I try to compile it as C++, of course).
Would it be possible to wrap the FileZilla code in C# using P/Invoke so we would get the best free .NET FTP library in existance?
While you could wrap just about anything, controlling the interface and error conditions is going to be very challenging. I'd recommend you check for a component/library
This class is already in the .NET Framework: http://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest.aspx
This open source apparently supports SFTP: http://sshnet.codeplex.com/
Or there are a few commercials ones: http://www.dart.com/ptftpnet.aspx or http://www.rebex.net/ftp.net/
or a search of stackoverflow reveals lots of .net/FTP related questions: https://stackoverflow.com/search?q=.net+FTP+library
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 4 years ago.
Improve this question
I've been searching for a while to see if anyone has done any work on reading Matlab mat files in CSharp, and it seems that there is nothing out there.
Has anybody seen any solutions?
I can't simply export my mat files to text and then read them into my C# code, because there are fairly complex structures.
I don't like to inter operate with Matlab and I don't want to use Python (SciPy with loadmat) either.
One option to try is the submission CSMatIO by David Zier on the MathWorks File Exchange. It's an API for .NET 2.0 that will allow you to read level 5 .mat files.
If you have to read newer .mat file formats, you can first load your .mat file into MATLAB and resave it as an older format using the SAVE function's version option.
ILNumerics is able to read and write to/from Matlab mat files, version 6.
Since CSMatIO doesn't seem to be supported, I'd like to share a link to a similar library for reading/writing MATLAB .mat files: MatFileHandler, which targets .NET Standard 2.0.
Wanted to add another alternative. The Accord.Math library (available via Nuget, or here: http://accord-framework.net/ provides a .mat file reader.