A tasklist tool for matlab - matlab

In Visual Studio there is a tool called TaskList, which searches the code for TODO comments, compiles a list of them, and lets you go to a TODO item in the code by clicking on it in the list. Is there an equivalent tool in Matlab? Is there even a convention for TODO comments in Matlab?

What’s on my TODO list? is a post on 'Mike on the MATLAB Desktop'
concerning TODO lists.

Recent version of MATLAB can generate a report of TODO/FIXME. Check out this post, or read the relevant section in the documentation: Identifying Files with Reminder Annotations

There is no such tool in the MATLAB Editor, and no formal convention for the format of TODO comments.
EDIT: Apparently, there is such a tool on the MATLAB Desktop (as the other answers point out), but I guess it's not the easiest thing to find as I've somehow managed to miss it for years. One drawback (which the MathWorks appears to be planning to fix sometime in the future) is that you can only search individual directories.
In addition, there are a couple utilities submitted by users on the MathWorks File Exchange that you may want to check out which appear to perform similar functions:
Filegrep by Brett Shoelson
parseTags by Alexander Reinhold
searchtext by Kevin
You could try these out and compare them to the built-in MATLAB TODO report generator, or even use them as a guide to create your own TaskList-like functionality.

If you use a newer version of MATLAB and can't find the directory reports-drop down as explained by zellus
You can get to this report using the directory reports-drop down in the Current Directory Browser
http://blogs.mathworks.com/desktop/2008/03/17/whats-on-my-todo-list/,
you need to navigate to the context menu of the Current Folder view as shown in the following screenshot: (due to not sufficient reputation, I unfortunately cannot show the screenshot here directly)
Screenshot of the TODO/FIXME Report location

Related

What is a comment thread in the vs code api?

In the Api docs of VS Code there is a concept of Comment Thread under the workspace. Is there an example of this? What are these threads? Can developers have discussions on comments? Where are these comments saved?
https://code.visualstudio.com/api/references/vscode-api#CommentThread
I tried googling and the closest I came to an example was this issue thread.
https://github.com/microsoft/vscode/issues/71171
How could I open this comment discussions in my workspace? Sorry if this is a newbie VS Code question - just recently converted.
How could I open this comment discussions in my workspace? Sorry if this is a newbie VS Code question - just recently converted.
This is an API used by extension developers. This is relevant to you if you want to create your own VS Code extension, and you need a way to display comments/discussions inside the code.
See https://github.com/microsoft/vscode-extension-samples/tree/main/comment-sample for an example + screencast. You first need to create a CommentController. The CommentController allows you to create a CommentThread. A CommentThread is a list of comments. Each Comment will have a body (text or markdown), author, date, etc.
A common use-case of this API is to show code review comments. In particular, this is used by the GitHub Pull Requests extension, but you could imagine other use-cases for showing comments discussions inside a file.
Where are these comments saved?
This API deals only with the UI. You decide where the discussions are stored (e.g. make request to a service, or store them on disk). Once you have the data inside your extension, use this API to render them.

How to solve the error 'Text scatter requires Text Analytics Toolbox'?

I ran a code with various functions. But the output was not complete and it showed error 'Text scatter requires Text Analytics Toolbox'. I think I have installed the complete MATLAB. Can anyone please tell me why do this error occur and how to solve it?
You don't have a "complete" MATLAB, there are multiple toolboxes available with extend the functionality of MATLAB. An overview is given here: https://mathworks.com/products.html
When you log in with your mathworks account and go to https://mathworks.com/mwaccount/ you can see the products connected to your license.
I guess if you want to use that function, you have to buy it. Alternatively you can also look around for a substitute.

Can Emmet Be Used to Create FXML?

I have a scalaFX app that currently has its views created programmatically. I am wondering if I can use the Emmet tool to create FXML (particularly ScalaFXML) because I want to recreate my views in ScalaFXML to separate my views from my controllers more effectively. I have searched the internet and cannot find out if this is possible. So far I have only used Emmet for HTML. Thanks in advance for the help!
I have been looking around for something for PrimeFaces; I had trouble finding anything. I guess maybe it's because people who are using it are actually writing "normal" HTML with JS frameworks.
The good news is, it's completely (and easily!) customizable: just find the installation directory, and edit the "snippets.json" file, or create a new one called (for example) snippets-scalaFX.json. Mine on a Windows 10 machine, installed as a plugin for NPP, was C:\Program Files (x86)\Notepad++\plugins\EmmetNPP\emmet\snippets.json.
It's pretty obvious once you get in there, but inside the "snippets" object just add some more fields for yourself. For example, to make a PrimeFaces commandButton tag I added:
"pc": "p:commandButton"
You can use $0 or ${<placeholder text>} to define tabstops for expanded snippets, and | to define the caret starting point.
Full docs on editing snippets are here.

signing pdf using itextsharp 5.4.4 - example

Can someone supply an example or a link to an example that signs an existing pdf using itextsharp 5.4.4? Ideally keeping pdf/a conformity of the pdf? Thank you.
Edit: I understand the question looks as if I did not use google etc. BUT, new versions of itextsharp contain completely rewritten code for signing as well as other functions, making the existing examples non-functional. Also, itextsharp started using different names for methods eg. instead of createSignature one has CreateSignature, instead of getSignatureAppearance one seems to have SignatureAppearance etc. making the port from java examples a real nightmare. Also the samples in the source code itself are in java not c#. There is really nowhere else I can go.
Please read http://itextpdf.com/book/digitalsignatures
The examples are in Java, but they were also ported to C#. You can find the C# examples here. I didn't vote your question down, but... the first place to go when you have a question about iText should probably be http://itextpdf.com
The book I refer to (I'm the author) as well as the new examples are on the learn page.

Is Perl's CAM::PDF able to aggregate Annotation objects?

I have several copies of the same PDF file. These copies have annotations in it (Rect type with pop-up comments).
I want to know if I can get all these annotations from these copies and aggregate them into a single master copy using CAM::PDF (or another free tool).
an example to illustrate:
I have file1_userA.pdf and file1_userB.pdf. They are both annotated.
I want to generate file1_allusers.pdf aggregating annotations from both files file1_userA.pdf and file1_userB.pdf.
ps: I have the original un-annotated copy.
-- EDIT (Aug, 4):
I have developed an extension for CAM::PDF, namely CAM::PDF::Annot. It 'use base's CAM::PDF and adds extra functionality regarding Drawing Markup Annotations.
I am in the process of tidying up the code so I can post it to CPAN.
-- EDIT (Aug, 19)
I have finally submitted it to PAUSE, but I am running into some world writable related problems...
In any case, if anyone is interested in taking a look at the code, I will try and make it available somewhere... until then, just PM me and I will mail it to you.
geez, i'm getting such a thrill posting a module to cpan... i found the joy of working in working with Perl...
best regards,
Donato Azevedo
I'm the author of CAM::PDF. I have built only very limited support for annotations to date, specifically just for form field filling. So, no, that's not a supported feature today. The feature you describe is very interesting, though, and I can imagine that others would use it too, so I'd be interested in discussing it further with you offline.