ExcelProvider - writing? - f#

I'm trying to use the ExcelProvider from http://fsprojects.github.io/ExcelProvider/ . I'm not sure if I'm missing something here but is there any way to actually write an Excel file?

For writing I can suggest to try NPOI library: http://fsharp.org/guides/data-science/#excel-interop

Related

How to add semicolons to Dart code on save automatically?

I am coming from languages that don't use semicolons by default and I keep forgetting adding them all the time. Also it's annoying to type ; all the time.
Is there any VS Code plugin that will add semicolons on save automatically?
If it's not possible in VS Code, is it possible in some other editor like IntelliJ or something?
For anyone looking for an answer to this problem, add this to your settings.json in VSCode:
"editor.codeActionsOnSave": {
"quickfix.insertSemicolon": true,
},
That's not directly possible at the moment. You may try this extension: https://marketplace.visualstudio.com/items?itemName=vmsynkov.colonize

How to add variable in middleman html

I have some .yml files that may be dynamic. So I wanted to add this kind of code on my html:
<h3><%=data.fitness_programs["#{f.filename}"].en.title%></h3>
Looks line the rails "#{var_in_here}" is not possible here.
How can I do this?
My bad, as this was a loop of filenames I did not realize I had an error in one of these. The code above does work :)

Cannot use Zend_Debug::dump in ZF2..how do I?

I'm using the skeleton application for ZF2.0.0Beta3.
So, normally I would just use Zend_Debug::dump($someVar); however, in ZF2 it doesn't include the zend classes it seems.
The error is: Fatal Error: Class 'Zend_Debug' not found..
This is probably a really basic question, but what's the best way to include that class? Do I have to put require_once('path/to/Debug.php');?
It still exists in ZF2, but since ZF2 started using PHP namespaces, you would now have to call it using the Zend namespace:
\Zend\Debug\Debug::dump($var);
or add a use statement at the beginning of the file and call it like this:
use Zend\Debug\Debug;
Debug::dump($var);
In my case this was the correct namespace-path :
\Zend\Debug\Debug::dump($form);
Additionally, you can get it like this:
use Zend\Debug\Debug;
// ...
Debug::dump($someVar);
Seems like a lot of work just to dump a variable, though. I'm pretty sure in most case I'll just end up using \Zend\Debug\Debug::dump() more often.
You can use it like that:
\Zend\Debug::dump('asd')

c++ dom parsing problem

hi every body
i'm new to xercses C++dom parser.can anyone tell me
can we write our own getElementsBytagName,GetNodeValue etc function ?
how to write these function and use them in my code ?
can anybody explain me the process of Dom parsing?
xerces provides methods like getElementsBytagName so you can use them in your application.
Have a look at xerces programming guide you can find there how to parse xml file and how to get elements and attributes.

Extract A Solution File From WSS

I'm trying to figure out how to extract a solution file .wsp file from a SharePoint server. Is this possible and if so how?
You can make a small console application and access the solutions using the SPFarm.Local.Solutions property. Include the Microsoft.SharePoint.Administration namespace and use the following code snippet to download the solution file:
SPSolutionCollection solutions = SPFarm.Local.Solutions;
foreach (SPSolution solution in solutions)
{
SPPersistedFile wspFile = solution.SolutionFile;
wspFile.SaveAs("c:\\Temp\\Solutions\\" + solution.Name);
}
You need to make sure that your output directory exists before calling the SaveAs() method. If it does not exists an exception is thrown.
You can access the Solutions on a farm by using the SPFarm.Local.Solutions property. I'm not sure if you can retrieve the underlying file though. That's where I'd start.

Resources