Assemble - how to generate thumbnails? - assemble

Would it be possible for Assemble to generate thumbnails from a source file - or is it out of the scope of assemble, if so, could someone suggest an alternate path?

You can't do that with Assemble, but maybe you can find what you are looking for in gulp-image-resize.

Related

Eclipse EMF. Generate a .JPG file from aird at each commit

I would like to know if there is a small tutorial or quick instructions to make gitlab generate a capture of the aird/ecore file in the form of jpg file each time I push my model.
I know I would set a CICD pipeline in gitlab but dont know where to start.
Thank you in advance for your help.
Abdelghani
I am guessing you have an Ecore metamodel (.ecore), with a graphical representation (.aird). This graphical representation comes from EcoreTools which is based on Eclipse Sirius.
Sirius does provide an API to export a diagram as an image, start looking around this: https://git.eclipse.org/c/sirius/org.eclipse.sirius.git/tree/plugins/org.eclipse.sirius.ui/src/org/eclipse/sirius/ui/tools/api/actions/export/ExportAction.java

Uploading to specified target with jQuery fileupload?

I'm using jQuery fileupload on a site to upload a single file for processing. I've got a simple upload working based on the Basic Plus demo, but would like to upload files to a given path and filename on the server (independent of the filename on the client machine). It seems like this should be straightforward, but I'm having problems figuring it out or finding resources. Is this possible in jQuery fileupload? If so, can anybody point me in the right direction for how?
Thanks for your time!
Answered? Found some helpful information here on changing the filename of uploads.

Using Images In SWT Browser Component

Whats the best way of using images in SWT Browser component. Currently i stream the images to temp folder and use their location for displaying them. Is there any better way of using these images in the SWT Browser component, particulary images from the platform plugins.
Best Regards,
Keshav
Convert them to a DataURI and insert them into the HTML directly.
http://en.wikipedia.org/wiki/Data_URI_scheme
If your plug-in is directory-based - rather than jar-based - you can use the files in the plug-in directly. The are several ways to find the file name of an resource entry of a bundle - I prefer FileLocator.toFileURL(URL) which converts an URL on the format platform:/<plugin>/<path> to a file:<filename>... exactly what you need.

How can I get all HTML pages from a website subfolder with Perl?

Can you point me on an idea of how to get all the HTML files in a subfolder and all the folders in it of a website?
For example:
www.K.com/goo
I want all the HTML files that are in: www.K.com/goo/1.html, ......n.html
Also, if there are subfolders so I want to get also them: www.K.com/goo/foo/1.html...n.html
Assuming you don't have access to the server's filesystem, then unless each directory has an index of the files it contains, you can't be guaranteed to achieve this.
The normal way would be to use a web crawler, and hope that all the files you want are linked to from pages you find.
Look at lwp-mirror and follow its lead.
I would suggest using the wget program to download the website rather than perl, it's not that well suited to the problem.
There are also a number of useful modules on CPAN which will be named things like "Spider" or "Crawler". But ishnid is right. They will only find files which are linked from somewhere on the site. They won't find every file that's on the file system.
You can also use curl to get all the files from a website folder.
Look at this man page and go to the section -o/--output which gives u a good idead about that.
I have used this a couple of times.
Read perldoc File::Find, then use File::Find.

not able to find nunit.framework while using icsharplibrary

I am trying to code for unzipping a file after uploading it on the sever and using following library to achieve this:
http://downloads.sourceforge.net/sharpdevelop/SharpZipLib_0855_SourceSamples.zip
But i am not able to add reference nunit.framework in my application. Where can i find this framework? I am not able to find it in the sample project that they have provided.
Thanks
You should be able to find what you are looking for at
NUnit Downloads