Does System.js builder support preserving of License Comments when minifying / uglifying? - r.js

I have used r.js for years but I am moving to systemjs-builder. Is there a flag so I can have it preserve license comments at the top of the file like r.js used to with preserveLicenceComments: true?
My goal is the same, having all the 3rd party licenses at the top of the uglified file.

https://github.com/systemjs/builder/issues/329
Shows the answer which is undocumented.

Related

Is project summary supported in web site output?

First of all, SHFB rocks :-)
I use the Standalone Help File Builder and Tools to render a web based "help site".
However, the specified project summary seems to be omitted/ignored and never found in the resulting output web site files.
Can anyone tell me how to include the project summary in a SHFB rendered web site?
The short story - an project summary makes no sense when using conceptual topics only.
When documenting code libraries it is important that namespaces are described. XML documentation comments do not support the addition of summary information for namespaces. However, this extra information can be added using Sandcastle Help File Builder.
SHFB gets around the limitation by allowing you to manually add a summary to each namespace. This summary is stored within the SHFB project so that you do not need to recreate it each time you build the documentation.
Having some namespaces you may want to add a root namespace and comments as node into the resulting compiled help file.
As shown below, you need to set some options and add text:
The resulting CHM file:

ExpressionEngine Blog Tags

Is there a built-in way to add tags to content in a similar way as with WordPress when using ExpressionEngine?
No, there's not an EE native equivalent to WP's tags. For something similar you need to go into the 3rd party market. Here are a couple of options:
Tagger, free & actively maintained & supported (support requires a "developer" license of $50
Tag, commercial at ~$60
Of these two I've only used Tagger. It got the job done nicely but I can't compare it to "Tag" since I haven't used it. There's another one called Taggable but I don't believe it's actively maintained or updated any more. (I would like to it but StackOverflow won't let me add more than 2 links until my rep increases.)
I've used both Tag and Tagger, mentioned by Erik. I have found for my needs Tag is more that enough to do the job. Tagger adds some higher level functions, but I didn't find I needed them in most cases.
I'd probably go with one of the two add-ons already listed though, to be thorough, there is also Taggable which Erik did mentioned though, couldn't link to it:
https://github.com/jamierumbelow/taggable

A tasklist tool for 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

GWT Lazy Loading

I want to develop a GWT application. The application contains 8 modules and all the modules run in a single page.
I have links for all the 7 options on the top.
When the page loads I want only the home content to be loaded and displayed.
Only when the user clicks the menu options, the menu content should load.
Can anyone suggest the best way to achieve this.
This has been addressed in GWT 2.0... First you'll remove the separate entry points you have for each module - since they're all on the same page, you only need one entry point per page.
Then you can use the GWT.runAsync() method at each point that you feel can be a split... it automatically cuts up the code into chunks that are downloaded as and when necessary.
Look here for the docs.
AFAIK, lazily loaded (or pluggable) modules can't be done in GWT. Partly this is due to the way the GWT compiler works - it likes to import all the code that it is ever going to see and then optimises and prunes it as viciously as possible (to make the resulting JS files as small and lead as possible). If it doesn't have access to all the source code up front, it might make optimisations that will break the pluggable modules (especially since nothing in the "core" application may reference the classes that the lazily-loaded modules need to work properly - the GWT compiler would prune those "unused" classes in the core module).
This stackoverflow question from May 09 asks the same thing and has the same answer - it can't be done.
I searched high and low about six months ago for an answer to this problem, because I really wanted to do what I believe you're asking for. Never found a solution.
(I haven't used GWT 2.0 - it might have addressed the issue)
Thank you for your answer. You are right that the whole Javascript code gets downloaded.
But there must be a way like say on of module is View Profile. Only when the user clicks the view Profile link, the widgets related to displaying my profile needs to be created. is this not possible.

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.