Display RSS source in Firefox - firefox

For some reasons, Firefox doesn't display rss feed source, it downloads it by default.
A trick is to manually add "view-source:" before the feed url but it's...manual.
Is there any workaround/extension to display rss feed source instead of download it?

Related

When I download file from Box into Google Colab, HTML was is downloaded

I am trying to download a file (or several files) from Box into Google Colab using "wget". But, what is downloaded looks like a HTML page not the file itself.
I am using the command:
!wget https://AAA.box.com/s/mh7xq8lou9ukb5i7lssz0frou554dupb -O script.py
Is there a problem with the URL that I am using? I get the URL by opening the file in Box and click "Get shared link".
You are trying to download from sharing link which is a webpage not a direct download link. So It will download the webpage. As a simple trick you can click download in browser and cancel it. Then copy the URL from download and use it with wget.

Download assets in it's original format in AEM

I want to download the asset in it's original format using AEM, is it possible? Currently, if I select one pdf or jpeg asset, and click download, it's downloaded as a zip file which includes the selected asset. Now I want to download it without a container zip, that's to say download it in it's original format.
If you are referring to PDF then that's how the download for PDF works because when a PDF is uploaded all it's contents are extracted as sub-assets. This behaviour can be changed via modifying the PDF extraction logic but it won't affect the download behaviour.
The logic behind this is that when an artefact is uploaded in AEM it becomes a DAM asset and rules governing to it's manipulation take over. For example, in case of PDF, a PDF asset is a collection of the original PDF and all it's images and thumbnail extractions. So when you are downloading something you are basically downloading the whole collection as AEM sees it.
Having said that, you can probably write a custom servlet and extend the DAM GUI to download just the PDF.
You can select the option as shown below, when selecting 'Download' action after selecting the asset to download, in Assets UI

Open or Save HTML Document with their associated media files

I am working on a Live HTML5 Editor and also published it on windows 8.1 store as BETA version check below link :
Propan HTML5 Live Editor
Here i have a problem of saving media files that are include in html document, i know that for security reasons windows not allow direct path for a file so i fetched its content and display on x-webview or an iframe for live preview .But how can i open or fetch attached media files with that file and same for saving a HTML document with media files ??
If you have any suggestions ,post here..So,i got your way to do so !!

Open downloaded file in browser pdf format

I am using paperclip to upload docx doc and pdf files to my railsapp, is there any way I can view this uploaded files in the browser itself in pdf format, without downloading it ?
Try pdf.js.
Firefox recently started using it as viewer for PDF files, but you can integrate it in your app. But you still need to 'download' it, that is, load into the browser.

Ruby pdf testing in browser

Has anyone been able to find a way to test pdf's with ruby within the browser? I have tried a few different ways and the only way I have been able to get any pdf testing to work is to save off the pdf and use the pdf_reader gem. This only seems to work on pdf's that, when the link is clicked, opens up a dialog box with the options to open or save the pdf. Unfortunately I have not been able to find a way to do anything like this with pdf's that are opened in browser, with no dialog box options to save it. Any ideas?
Maybe testing it in the browser isnt the best way. When you say test the pdf what are you trying to do? I wouldnt test the pdf in the browser if I was you.
Try docsplit, if you want to verify its contents.
Docsplit is a command-line utility and Ruby library for splitting apart documents into their component parts: searchable UTF-8 plain text via OCR if necessary, page images or thumbnails in any format, PDFs, single pages, and document metadata (title, author, number of pages...)
You are not inventing a browser, or a PDF generator.
Use unit tests to check your back-end modules can take data in, and write PDF out, then serve the PDF in a website and let the browser do its thing. Test (as what Rails calls a "functional test") that the MVC will produce a web page containing a link to the PDF, and you are done.
You can use gem 'mechanize' to download an online PDF (the PDF with in a browser) on your computer and then read it via gem PDF reader.

Resources